/* 학년별 수강 정보와 기본 수업·특강 설명을 차례로 읽는 편집형 구성. */
.class-page #main-content h1,
.class-page #main-content h2,
.class-page #main-content h3 {
  font-family: inherit;
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: 1.45;
}

.class-page #main-content .eyebrow {
  display: none;
}

.class-page .pagehead {
  padding: 56px 0 26px;
  border: 0;
  background: transparent;
}

.class-page .pagehead h1 {
  margin: 0;
  font-size: clamp(2.25rem, 4.1vw, 3.1rem);
  line-height: 1.25;
}

.class-page .pagehead .lead {
  max-width: 42em;
  margin: 20px 0 0;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--ink);
}

.class-page #main-content mode-copy {
  white-space: pre-line;
}

.class-page .chips {
  gap: 4px 26px;
  margin-top: 22px;
}

.class-page .chips a {
  min-height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--g8);
}

.class-page .chips a:hover {
  color: var(--g6);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.class-page .sec {
  padding: 64px 0;
  border: 0;
  background: transparent;
}

.class-page #schedule {
  padding-top: 24px;
}

.class-page .section-heading {
  align-items: baseline;
  gap: 16px 28px;
}

.class-page .section-heading h2 {
  margin: 0;
  font-size: 1.5rem;
}

.class-page .section-heading .text-link {
  font-size: .9375rem;
  font-weight: 500;
}

.class-page .schedule-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  margin: 18px 0 12px;
}

.class-page .schedule-source,
.class-page .schedule-context {
  margin: 0;
  font-size: .8125rem;
  line-height: 1.7;
  color: var(--mute);
}

/* 모집 여부는 별도 카드나 배지 없이 반 이름 옆 열에서 확인한다. */
.class-page .schedule-summary {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--g8);
  background: transparent;
  font-size: 1rem;
}

.class-page .schedule-summary thead {
  background: transparent;
}

.class-page .schedule-summary th,
.class-page .schedule-summary td {
  padding: 17px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  line-height: 1.6;
}

.class-page .schedule-summary th:first-child {
  padding-left: 0;
}

.class-page .schedule-summary td:last-child,
.class-page .schedule-summary thead th:last-child {
  padding-right: 0;
}

.class-page .schedule-summary thead th {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--mute);
}

.class-page .column-note {
  display: block;
  margin-top: 2px;
  font-size: .6875rem;
  font-weight: 400;
  line-height: 1.55;
}

.class-page .schedule-summary tbody th {
  width: 30%;
  font-weight: 400;
}

.class-page .schedule-summary tbody th strong {
  display: inline;
  margin: 0 8px 0 0;
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink);
}

.class-page .schedule-summary tbody th > span {
  display: inline;
  margin: 0;
  font-size: .875rem;
  font-weight: 400;
  color: var(--mute);
}

.class-page .schedule-summary td[data-column="status"] {
  width: 17%;
}

.class-page .schedule-summary td:last-child {
  width: 15%;
  font-variant-numeric: tabular-nums;
}

.class-page .schedule-status,
.class-page .schedule-status.is-open {
  display: inline-block;
  width: max-content;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--mute);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}

.class-page .schedule-status.is-open {
  color: var(--g8);
  font-weight: 700;
  animation: registration-pulse 1.8s ease-in-out infinite;
}

@keyframes registration-pulse {
  0%, 20%, 80%, 100% { opacity: 1; }
  50% { opacity: .65; }
}

@media (prefers-reduced-motion: reduce) {
  .class-page .schedule-status.is-open {
    animation: none;
  }
}

.class-page .schedule-footnotes {
  margin-top: 14px;
  font-size: .875rem;
  line-height: 1.8;
  color: var(--mute);
}

.class-page .schedule-footnotes p {
  margin: 0;
}

.class-page .course-operation {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr);
  gap: 28px 40px;
  margin: 34px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.class-page .course-operation h3 {
  margin: 0;
  font-size: 1.0625rem;
}

.class-page .course-operation p {
  margin: 0;
  line-height: 1.8;
}

.class-page .course-operation .operation-price {
  margin-top: 8px;
  font-size: .875rem;
  color: var(--g8);
}

.class-page .operation-price strong {
  font-weight: 500;
}

.class-page .operation-body {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 20px 32px;
}

.class-page .operation-key {
  font-size: .9375rem;
  font-weight: 600;
}

.class-page .operation-body .small {
  margin-top: 7px;
  font-size: .8125rem;
  line-height: 1.8;
  color: var(--mute);
}

/* 수업 설명은 제목 열과 세부 정보 열로 나누고, 본문 너비를 일정하게 둔다. */
.class-page .course-section {
  grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr);
  gap: 28px 40px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
  background: transparent;
}

.class-page .sec:not(#schedule) { padding: 0 0 52px; }
.class-page mode-copy[data-website-text="class-t062"] + a { display: block; margin-top: 8px; }

.class-page .course-section > div {
  min-width: 0;
}

.class-page .course-section h2 {
  margin: 0;
  font-size: clamp(1.75rem, 2.9vw, 2.25rem);
}

.class-page .prog .lead {
  margin: 16px 0 0;
  max-width: 18em;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--mute);
}

.class-page .spec {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 1rem;
  line-height: 1.85;
}

.class-page .spec > div {
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 10px 24px;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.class-page .spec > div:first-child {
  padding-top: 0;
}

.class-page .spec > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.class-page .spec dt {
  font-size: .875rem;
  font-weight: 600;
  color: var(--g8);
}

.class-page .spec dd,
.class-page .spec ul {
  margin: 0;
}

.class-page .spec ul {
  padding: 0;
  list-style: none;
}

.class-page .spec li {
  margin: 0 0 8px;
}

.class-page .spec li:last-child {
  margin-bottom: 0;
}

.class-page .course-capacity {
  font-weight: 600;
}

.class-page .course-session-line {
  display: block;
}

.class-page .course-session-line:has(> mode-copy:empty) {
  display: none;
}

.class-page .learning-outline {
  margin-top: 34px;
}

.class-page .learning-outline h3 {
  margin: 0 0 18px;
  font-size: 1rem;
}

.class-page .learning-outline ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.class-page .learning-outline li {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.class-page .learning-outline strong {
  display: block;
  margin-bottom: 6px;
  font-size: .9375rem;
  font-weight: 600;
}

.class-page .learning-outline span {
  display: block;
  font-size: .875rem;
  line-height: 1.85;
  color: var(--mute);
}

.class-page .course-notice {
  margin-top: 24px;
  padding: 0;
  border: 0;
  background: transparent;
}

.class-page #main-content .small {
  font-size: .875rem;
  line-height: 1.85;
}

.class-page .apply-row {
  gap: 12px 24px;
  margin-top: 28px;
}

.class-page .apply-row > a {
  font-size: .9375rem;
}

.class-page .apply-row .btn {
  min-height: 46px;
  border-radius: 0;
}

.class-page .contact-hours {
  margin: 14px 0 0;
  max-width: 48em;
  color: var(--mute);
}

.class-page .table-wrap {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.class-page .fee {
  font-size: 1rem;
  border-top: 0;
}

.class-page .fee thead th {
  font-size: .9375rem;
}

/* 등록표는 하단에서 펼쳐 읽되, 본문과 같은 글자 크기를 유지한다. */
.class-page .footer-fees {
  margin: 16px 0;
  color: var(--ink);
}

.class-page .footer-fees > summary {
  min-height: 44px;
  padding: 8px 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.75;
  cursor: pointer;
}

.class-page .fee-open-label,
.class-page .fee-close-label {
  margin-left: 12px;
  font-size: .875rem;
  font-weight: 400;
  color: var(--mute);
}

.class-page .footer-fees .fee-close-label,
.class-page .footer-fees[open] .fee-open-label {
  display: none;
}

.class-page .footer-fees[open] .fee-close-label {
  display: inline;
}

.class-page .footer-fees-content {
  max-width: 900px;
  min-width: 0;
  margin: 16px 0 24px;
  font-size: 1rem;
  line-height: 1.85;
}

.class-page .footer-fees .fee-registration-meta {
  margin: 0 0 24px;
  font-size: .875rem;
  color: var(--mute);
}

.class-page .footer-fees h3 {
  font-family: inherit;
  font-weight: 600;
  line-height: 1.5;
}


@media (max-width: 900px) {
  .class-page .course-section,
  .class-page .course-operation {
    grid-template-columns: minmax(150px, 1fr) minmax(0, 3fr);
    gap: 28px;
  }

  .class-page .schedule-summary th,
  .class-page .schedule-summary td {
    padding-inline: 10px;
  }

  .class-page .schedule-summary tbody th > span {
    display: block;
    margin-top: 2px;
  }

  .class-page .operation-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .class-page .learning-outline ul {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .class-page .learning-outline strong {
    margin-bottom: 2px;
  }
}

@media (max-width: 650px) {
  .class-page .sec:not(#schedule) { padding: 0 0 32px; }
  .class-page .pagehead {
    padding: 36px 0 20px;
  }

  .class-page .pagehead .lead {
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.85;
  }

  .class-page .chips {
    gap: 0 24px;
    margin-top: 18px;
  }

  .class-page .chips a {
    font-size: .875rem;
  }

  .class-page .sec {
    padding: 38px 0;
  }

  .class-page #schedule {
    padding-top: 18px;
  }

  .class-page .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .class-page .section-heading h2 {
    font-size: 1.375rem;
  }

  .class-page .section-heading .text-link {
    font-size: .875rem;
    margin-bottom: 0;
  }

  .class-page .schedule-meta {
    display: block;
    margin-top: 18px;
  }

  .class-page .schedule-context {
    margin-top: 3px;
  }

  /* 모바일 수강표는 반 이름·모집 여부를 첫 줄에 두는 평면 목록으로 전환한다. */
  .class-page .schedule-summary,
  .class-page .schedule-summary tbody {
    display: block;
  }

  .class-page .schedule-summary {
    border-top: 1px solid var(--g8);
  }

  .class-page .schedule-summary thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .class-page .schedule-summary tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 16px;
    margin: 0;
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .class-page .schedule-summary tbody th {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    grid-column: 1;
    grid-row: 1;
  }

  .class-page .schedule-summary tbody th strong {
    font-size: 1rem;
  }

  .class-page .schedule-summary tbody th > span {
    display: inline;
    font-size: .8125rem;
  }

  .class-page .schedule-summary td {
    display: block;
    width: auto !important;
    padding: 0;
    border: 0;
    font-size: .875rem;
    line-height: 1.7;
  }

  .class-page .schedule-summary td[data-column="status"] {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    white-space: nowrap;
  }

  .class-page .schedule-summary td[data-column="status"]::before {
    display: none;
  }

  .class-page .schedule-summary td[data-column="frequency"] {
    grid-column: 1;
    grid-row: 2;
  }

  .class-page .schedule-summary td[data-column="duration"] {
    grid-column: 1;
    grid-row: 3;
  }

  .class-page .schedule-summary td[data-column="fee"] {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: center;
    text-align: right;
  }

  .class-page .schedule-summary td::before {
    content: attr(data-label);
    display: inline;
    margin-right: 8px;
    color: var(--mute);
    font-size: .75rem;
    font-weight: 400;
  }

  .class-page .schedule-summary td > div {
    display: inline;
  }

  .class-page .schedule-summary td[data-column="fee"]::before {
    display: block;
    margin-right: 0;
  }

  .class-page .course-operation {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 26px;
    padding-top: 22px;
  }

  .class-page .operation-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 20px;
  }

  .class-page .course-operation .operation-price {
    margin: 0;
  }

  .class-page .operation-body {
    gap: 16px;
  }

  .class-page .course-section {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 32px;
  }

  .class-page .prog .lead {
    margin-top: 10px;
    max-width: 30em;
    font-size: 1rem;
  }

  .class-page .spec > div {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
  }

  .class-page .learning-outline {
    margin-top: 28px;
  }

  .class-page .apply-row {
    margin-top: 24px;
  }

  .class-page .apply-row .btn {
    width: auto;
    justify-content: center;
  }

  .class-page .contact-hours,
  .class-page .course-notice {
    font-size: .8125rem;
  }

  .class-page .fee {
    min-width: 100%;
  }

  .class-page .fee th,
  .class-page .fee td {
    padding: 16px 8px;
    white-space: normal;
  }

  .class-page .fee td,
  .class-page .fee td > mode-copy {
    white-space: nowrap !important;
  }
}

@media (max-width: 380px) {
  .class-page .schedule-summary tr {
    gap: 5px 10px;
  }

  .class-page .schedule-summary tbody th > span {
    display: block;
  }

  .class-page .fee { font-size: .875rem; }
  .class-page .fee thead th { font-size: .8125rem; }
  .class-page .fee th,
  .class-page .fee td { padding-inline: 4px; }
}
