.overview-hero.page-hero.small { padding-block: 28px; }
.overview-hero h1 { margin-bottom: 12px; }
.overview-hero p:last-child { margin-bottom: 0; }
.season-link { color: inherit; text-underline-offset: 5px; }
.project-overview { scroll-margin-top: 0; }
.project-wall { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 28px; align-items: start; }
.project { margin: 0; min-width: 0; grid-column: span 4; }
.project img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #f6f6f5; border-radius: 12px; }
.project figcaption { padding-top: 12px; font-size: 20px; font-weight: 600; }
.project-1 { grid-column: span 7; }
.project-1 img { aspect-ratio: 7/5; }
.project-2 { grid-column: span 5; padding-top: 48px; }
.project-2 img { aspect-ratio: 1; }
.project-4 { padding-top: 40px; }
.project-4 img { aspect-ratio: 4/3; }
.project-6 { grid-column: span 5; }
.project-6 img { aspect-ratio: 4/5; }
.project-7 { grid-column: span 3; padding-top: 80px; }
.project-8 { padding-top: 32px; }
.course-overview-page .ico svg, .ico svg { display: block; margin-bottom: 12px; color: var(--action-dark); }
.course-formats a.opt { display: block; color: inherit; text-decoration: none; }
.course-formats a.opt:hover { border-color: var(--action-dark); }
.course-formats a.opt:focus-visible { outline: 3px solid var(--action-dark); outline-offset: 4px; }
.winter-hero.page-hero.small { padding-block: 24px; }
.winter-hero h1 { margin-bottom: 0; font-size: 40px; line-height: 1.3; }
.session-comparison { margin-block: 24px 48px; }
.session-comparison h2 { margin-bottom: 16px; }
.session-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; line-height: 1.6; }
.session-table caption { text-align: left; caption-side: bottom; padding-top: 14px; color: var(--muted); }
.session-table th, .session-table td { padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.session-table thead { background: var(--ink); color: white; text-align: left; }
.session-table thead th:nth-child(1) { width: 19%; }
.session-table thead th:nth-child(2) { width: 18%; }
.session-table thead th:nth-child(3) { width: 13%; }
.session-table thead th:nth-child(4) { width: 22%; }
.session-table thead th:nth-child(5) { width: 19%; }
.session-table thead th:nth-child(6) { width: 9%; }
.session-table tbody th { text-align: left; color: var(--action-dark); }
.session-table tbody tr:nth-child(even) { background: var(--tint); }
.session-table small { display: block; font-size: 13px; line-height: 1.6; font-weight: 400; margin-top: 6px; }
.session-table .btn { padding: 8px 10px; min-height: 44px; white-space: nowrap; }
.session-details { margin-block: 48px; }
.session-details > summary, .course-intro > summary { cursor: pointer; font-size: 20px; font-weight: 600; padding-block: 16px; }
.session-details .sessions { margin-top: 16px; width: 100%; }
.course-intro { border-block: 1px solid var(--line); margin-block: 24px; }
.winter-signup-page #signup { scroll-margin-top: 0; }
@media (max-width: 900px) {
  .project-wall { gap: 24px; }
  .session-table { font-size: 14px; }
  .session-table th, .session-table td { padding: 12px 8px; }
}
@media (max-width: 600px) {
  .overview-hero.page-hero.small, .winter-hero.page-hero.small { padding-block: 24px; }
  .winter-hero h1 { font-size: 30px; }
  .project-wall { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 16px; }
  .project { grid-column: span 1; padding-top: 0; }
  .project-1, .project-6 { grid-column: 1/-1; }
  .project img { aspect-ratio: 1; }
  .project-1 img, .project-6 img { aspect-ratio: 4/3; }
  .project-3, .project-5, .project-8 { padding-top: 24px; }
  .project figcaption { font-size: 16px; line-height: 1.5; padding-top: 8px; }
  .session-table, .session-table tbody { display: block; }
  .session-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .session-table tr { display: block; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; padding: 12px; }
  .session-table th, .session-table td { display: grid; grid-template-columns: 3em minmax(0,1fr); column-gap: 12px; width: auto; padding: 8px 0; border: 0; font-size: 15px; text-align: left; }
  .session-table tbody th { font-size: 17px; }
  .session-table th::before, .session-table td::before { content: attr(data-label); grid-column: 1; grid-row: 1/4; font-size: 14px; color: var(--muted); font-weight: 500; }
  .session-table small { grid-column: 2; margin-top: 4px; }
  .session-table .btn { justify-self: start; }
  .session-table caption { display: block; font-size: 14px; }
}

/* Winter course preview, above the session comparison. */
.winter-signup-page .winter-preview { display: grid; grid-template-columns: minmax(0,1fr) 240px; align-items: center; gap: 32px; margin-block: 24px; }
.winter-preview-copy { min-width: 0; }
.winter-preview-copy > p { max-width: 38em; margin: 0; font-size: 19px; line-height: 1.8; }
.winter-preview-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 20px; }
.winter-preview-actions > a:last-child { text-underline-offset: 5px; }
.winter-preview figure { margin: 0; min-width: 0; }
.winter-preview img { display: block; width: 100%; height: auto; border-radius: 12px; }
.winter-preview figcaption { margin-top: 6px; font-size: 14px; color: var(--muted); }
.session-content-note { margin: 16px 0 0; font-size: 15px; line-height: 1.8; }
.winter-signup-page #course-a, .winter-signup-page #course-b { scroll-margin-top: 0; }
.winter-signup-page #comparison, .winter-signup-page #faq { scroll-margin-top: 0; }
.winter-anchor-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-block: 32px 16px; }
.winter-anchor-nav a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 5px; }
.winter-signup-page .mailform [hidden] { display: none; }
.price-reference { min-width: 0; padding: 16px; background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-card); overflow-wrap: anywhere; }
.price-reference select { max-width: 100%; margin-block: 8px; }
.price-reference #price-estimate { font-weight: 600; margin-block: 8px; }
.course-b-warning { padding: 12px; border-left: 3px solid var(--action-dark); }
.school-partnership { overflow-wrap: anywhere; }
/* The existing observer hides LINE while the comparison or form is visible.
   The reserved space also keeps the last row clear when scrolling to an anchor. */
.winter-signup-page .session-comparison { padding-bottom: 64px; }
.winter-signup-page .float-line { min-height: 44px; padding: 10px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
.winter-signup-page .float-line span { display: none; }
@media (max-width: 600px) {
  .winter-signup-page .winter-preview { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .winter-preview-copy > p { font-size: 17px; }
  .winter-preview figure { width: min(100%,220px); }
}

/* Keep inline short-term spans inside one mobile comparison value column. */
@media (max-width: 600px) {
  .session-table .session-cell { grid-column: 2; min-width: 0; }
  .session-table th::before, .session-table td::before { grid-row: 1; }
}

/* 2026-11-01: 手機版報名表加寬、加大勾選框 */
@media (max-width: 420px) {
  .winter-signup-page section.wrap.narrow.signup { width: calc(100% - 16px); max-width: none; margin-inline: 8px; padding: 12px; }
  .winter-signup-page .signup .mailform { padding: 0; }
  .winter-signup-page .mailform fieldset { padding: 8px 10px; }
  .winter-signup-page .mailform input[type="checkbox"],
  .winter-signup-page .mailform input[type="radio"] { width: 22px; height: 22px; }
}
