/* AcademyWeb: "따뜻한 신뢰형" (warm trust)
   Keeps the white / navy #2f3984 / yellow #f5c922 identity, page structure and copy.
   Loaded last on every public and reservation page. page-motion.css is appended later by JS,
   so rules that must beat it are prefixed with `html`. */
:root {
    --academy-text: #1f2340;
    --academy-body: #4f5467;
    --academy-muted: #6b7080;
    --warm-yellow-tint: #fff5cf;
    --warm-yellow-ink: #5a4700;
    --warm-navy-tint: #eef0f9;
    --warm-highlight: #fbe38a;
}

/* 1. One Korean web font everywhere (Windows/Android no longer fall back to different system fonts). */
html body { font-family: "Noto Sans KR", "Noto Sans CJK KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif; }
button, input, select, textarea { font-family: inherit; }

/* 2. One heading weight on PC and mobile. */
html .simple-page h1, html .simple-page h2,
html .precheck-heading h1, html .reservation-hero h1, html .reservation-complete-box h1,
html .reservation-form-heading h2 { font-weight: 800; letter-spacing: -.035em; }
html .simple-page h3 { font-weight: 700; }
html .simple-page .home-intro h1 span { letter-spacing: inherit; }

/* 3. Highlighter mark instead of the pencil underline and star. */
html .simple-page .headline-accent { position: relative; color: var(--academy-navy); white-space: nowrap; padding: 0 .04em; background: linear-gradient(transparent 62%, var(--warm-highlight) 62%) no-repeat left / 100% 100%; animation: warm-mark .7s .35s cubic-bezier(.3,.6,.3,1) both; }
html .simple-page .home-intro h1 .headline-accent::before { content: none; animation: none; }
html .simple-page .home-intro h1 > span { color: var(--academy-text); }
@keyframes warm-mark { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }

/* 4. Home hero: badge on top, 3-step application flow under the buttons. */
.home-intro-badge { display: inline-flex; align-items: center; margin: 0 0 32px; padding: 8px 16px; border-radius: 999px; background: var(--warm-yellow-tint); color: var(--warm-yellow-ink); font-size: 15px; font-weight: 700; line-height: 1.4; }
.home-flow { display: inline-flex; align-items: center; margin: 40px auto 0; padding: 16px 32px; list-style: none; border-radius: 999px; background: #f6f7fa; }
.home-flow li { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--academy-text); }
.home-flow li + li::before { content: ''; display: block; width: 28px; height: 1px; margin: 0 8px; background: #c9cddb; }
.home-flow-num { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--academy-navy); color: #fff; font-size: 13px; font-weight: 700; }
.home-flow li:last-child .home-flow-num { background: var(--academy-yellow); color: var(--academy-text); }

/* 5. Ready / Set / Go read as a progression. */
html .home-stage-grid article.stage-ready { background: var(--warm-yellow-tint); border-color: transparent; }
html .home-stage-grid article.stage-set { background: #fff; border: 1px solid var(--academy-border); }
html .home-stage-grid article.stage-go { background: var(--academy-navy); border-color: transparent; }
.stage-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
html .home-stage-grid .stage-top .stage-range { margin: 0; font-size: 14px; font-weight: 500; }
html .home-stage-grid h3 { font-weight: 800; letter-spacing: -.02em; }
.stage-level { display: flex; flex: 0 0 auto; gap: 8px; }
.stage-level i { display: block; width: 22px; height: 7px; border-radius: 4px; background: #dfe2ec; }
.stage-ready .stage-level i { background: #e0d19a; }
.stage-ready .stage-level i:first-child,
.stage-set .stage-level i:nth-child(-n+2) { background: var(--academy-navy); }
.stage-go .stage-level i { background: var(--academy-yellow); }
html .home-stage-grid .stage-ready .stage-range { color: var(--warm-yellow-ink); }
html .home-stage-grid .stage-ready p:not(.stage-range) { color: #3f4457; }
html .home-stage-grid .stage-go h3 { color: #fff; }
html .home-stage-grid .stage-go .stage-range { color: #d7dbef; }
html .home-stage-grid .stage-go p:not(.stage-range) { color: #e6e9f5; }

/* 6. Principles with small icons. */
html .academy-principles article { display: flex; align-items: flex-start; gap: 24px; }
.principle-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 16px; background: var(--warm-navy-tint); color: var(--academy-navy); }
html .academy-principles h3 { color: var(--academy-text); font-weight: 700; }
html .academy-principles p { word-break: keep-all; }

/* 7. Closing call-to-action: navy band with the yellow button (all pages). */
.simple-button-secondary { border-color: #dfe2ec; }

@media (max-width: 1199px) {
}
@media (max-width: 767px) {
    .home-intro-badge { margin-bottom: 24px; padding: 8px 16px; font-size: 13px; }
    .home-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 8px; width: 100%; box-sizing: border-box; margin-top: 32px; padding: 16px 16px; border-radius: 18px; }
    .home-flow li { flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.45; text-align: center; word-break: keep-all; }
    .home-flow li + li::before { content: none; }
    .home-flow-num { width: 30px; height: 30px; flex-basis: 30px; }
    html .home-stage-grid .stage-top .stage-range { font-size: 13px; }
    .stage-level i { width: 18px; height: 6px; }
    html .academy-principles article { gap: 16px; }
    .principle-icon { flex-basis: 44px; width: 44px; height: 44px; border-radius: 14px; }
    .principle-icon svg { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    html .simple-page .headline-accent { animation: none; background-size: 100% 100%; }
}

/* UI review: retain brand styling while increasing readable and focusable areas. */
h1,h2,h3,.home-flow li { text-wrap: balance; word-break: keep-all; }
html .academy-logo,html .footer-nav a,html a[href^="tel:"],html .simple-info-grid a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
html .site-header .academy-menu .nav-link { min-width: 44px; }
html .academy-nav-button { font-size: 14px; }
html .academy-logo small,html .simple-phase-list small { font-size: 13px; }
html .simple-copy,html .simple-phase-list p { color: var(--academy-body); }
html .social-footer-bottom small { font-size: 13px; }
html :is(a,button,input,select,textarea,summary) { scroll-margin-top: 152px; scroll-margin-bottom: 24px; }
html .social-footer :focus-visible { outline-color: #fff; }
html .nav-link[aria-current="page"] { background: var(--academy-navy); border-radius: 999px; }
html .academy-menu:has(.menu-indicator.is-ready) .nav-link[aria-current="page"] { background: transparent; }
@media (max-width: 767px) {
 html .academy-header-inner { grid-template-columns: minmax(0,1fr) auto; column-gap: 8px; }
 html .academy-logo { white-space: normal; min-width: 0; }
 html .academy-nav-button { padding-inline: 8px; }
 /* Home 3-step flow on phones: centered left-to-right stepper with connector lines (matches the PC pill). */
 html .home-flow { position: relative; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 24px 8px 16px; }
 html .home-flow li { position: relative; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.45; text-align: center; }
 html .home-flow li + li::before { content: ''; position: absolute; top: 14px; left: calc(-50% + 17px); right: calc(50% + 21px); width: auto; height: 2px; margin: 0; border-radius: 1px; background: #d5d9e6; }
 html .home-flow-num { position: relative; z-index: 1; }
}
@media (max-width: 359px) {
 html .home-flow li { font-size: 13px; }
}

/* Curriculum: native disclosures, regular lesson rows, optional program list. */
.course-hint,.course-label { color: var(--academy-navy); font-size: 14px; font-weight: 700; }
.regular-program { margin: 0; }
.regular-program > div { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 32px; padding: 32px 0; border-top: 1px solid var(--academy-border); }
.regular-program dt { display: flex; align-items: center; gap: 16px; font-size: 21px; }
.program-number { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--warm-yellow-tint); color: var(--academy-navy); font-size: 15px; font-weight: 800; }
.regular-program dd { margin: 0; }
.regular-program h3 { font-size: 21px; }
.regular-program p { margin: 16px 0 0; color: var(--academy-body); line-height: 1.8; }
.bridge-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 40px; background: #fff; border-radius: 24px;  }
.bridge-feature h3 { margin: 16px 0; font-size: clamp(24px,3vw,32px); color: var(--academy-navy); }
.bridge-feature p,.bridge-feature li span { color: var(--academy-body); line-height: 1.8; }
.bridge-feature ol { margin: 0; padding: 0; list-style: none; }
.bridge-feature li { display: grid; grid-template-columns: 52px 1fr; gap: 24px; padding: 16px 0; }
.course-evaluation { margin-top: 40px; }
/* The Star: low-key two-column block (no panel, no CTA). */
.star-simple { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 56px; align-items: start; }
html .star-simple-head .course-detail-note { margin: 24px 0 0; color: var(--academy-muted); }
.star-points { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--academy-border); }
.star-points li { padding: 24px 0; border-bottom: 1px solid var(--academy-border); }
.star-points strong,.star-points span { display: block; }
.star-points strong { color: var(--academy-text); font-size: 18px; font-weight: 700; }
.star-points span { margin-top: 8px; color: var(--academy-body); line-height: 1.8; }
/* Elective programs: labelled panel so "수요 특화 프로그램 · 선택 수강" reads first. */
.elective-feature { padding: 48px; border-radius: 28px; background: #fff; border: 1px solid var(--academy-border); border-top: 6px solid var(--academy-navy); }
.elective-head { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; margin-bottom: 40px; }
.elective-badge { display: inline-flex; align-items: center; margin: 0 0 16px; padding: 8px 16px; border-radius: 999px; background: var(--academy-navy); color: #fff; font-size: 16px; font-weight: 800; line-height: 1.4; }
html .elective-head h2 { margin: 0; }
html .elective-head .simple-copy { max-width: 640px; }
html .simple-page .star-simple-head h2 { font-size: clamp(28px,3vw,36px); }
html .elective-head .simple-copy { margin: 0; }
.elective-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.elective-facts li { padding: 8px 16px; border-radius: 999px; background: var(--warm-navy-tint); color: var(--academy-navy); font-size: 14px; font-weight: 700; line-height: 1.5; }
.elective-program { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.elective-program li { padding: 24px; border-radius: 20px; background: #f6f7fa; }
.elective-tag { display: inline-block; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1.5; background: var(--warm-yellow-tint); color: var(--warm-yellow-ink); }
html .elective-program h3 { margin: 16px 0 0; font-size: 20px; }
.elective-program p { margin: 16px 0 0; color: var(--academy-body); line-height: 1.8; }
.home-guide-links { border-top: 1px solid var(--academy-border); }
.home-guide-links a { display: flex; align-items: center; gap: 24px; padding: 32px 8px; min-height: 88px; border-bottom: 1px solid var(--academy-border); color: var(--academy-text); text-decoration: none; }
.home-guide-links a > span:nth-child(2) { flex: 1; min-width: 0; }
.home-guide-links strong,.home-guide-links a > span:nth-child(2) > span { display: block; }
.home-guide-links strong { font-size: 23px; font-weight: 700; }
.home-guide-links a > span:nth-child(2) > span { margin-top: 8px; color: var(--academy-body); line-height: 1.8; }
.home-guide-links a > span:last-child { color: var(--academy-navy); font-size: 24px; }
@media (max-width: 991px) {
 .regular-program > div { grid-template-columns: 180px minmax(0,1fr); gap: 24px; }
 .bridge-feature,.star-simple { grid-template-columns: 1fr; }
 .star-simple { gap: 24px; }
 .elective-program { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .elective-feature { padding: 40px; }
 .bridge-feature { gap: 24px; }
}
@media (max-width: 767px) {
 .regular-program > div { grid-template-columns: 1fr; gap: 16px; padding: 24px 0; }
 .regular-program dt { font-size: 19px; }
 .regular-program h3,.elective-program h3 { font-size: 19px; }
 .bridge-feature { padding: 24px; }
 .bridge-feature li { gap: 16px; }
 .elective-program { grid-template-columns: 1fr; }
 .elective-feature { padding: 32px 24px; border-radius: 22px; }
 .elective-head { margin-bottom: 24px; }
 .elective-badge { font-size: 15px; }
 .elective-program { gap: 16px; }
 .elective-program li { padding: 24px; }
 .star-points strong { font-size: 17px; }
 .home-guide-links a { gap: 16px; padding: 24px 0; }
 .home-guide-links strong { font-size: 19px; line-height: 1.6; word-break: keep-all; }
 .home-guide-links a > span:nth-child(2) > span { font-size: 14px; }
}

/* Korean text: wrap between words, never inside a word (mobile body copy). */
html .simple-page :is(p,li,dd,dt,span,strong) { word-break: keep-all; overflow-wrap: break-word; }
.course-detail-note { font-size: 14px; line-height: 1.8; }

/* Course explorer (curriculum): Ready / Set / Go cards open one shared, full-width panel.
   DOM order is card, panel, card, panel (mobile reading order). From 768px the panels move under the card row. */
html .course-explorer { grid-auto-rows: auto; align-items: stretch; }
html .course-explorer .course-card { position: relative; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .3s cubic-bezier(.2,.65,.3,1); }
html .course-explorer .course-card:hover { transform: none; box-shadow: 0 10px 28px rgba(36,44,79,.08); }
.course-card-time { margin-top: 16px !important; font-size: 14px !important; font-weight: 700; font-variant-numeric: tabular-nums; }
html .home-stage-grid .stage-ready .course-card-time { color: var(--warm-yellow-ink); }
html .home-stage-grid .stage-set .course-card-time { color: var(--academy-navy); }
.course-explorer:not(.is-enhanced) .course-trigger { display: none; }
.course-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; margin-top: auto; padding: 16px 0 0; border: 0; background: none; color: inherit; font: inherit; font-size: 15px; font-weight: 700; text-align: left; cursor: pointer; }
.stage-go .course-trigger { color: #fff; }
.course-trigger::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.course-trigger[aria-expanded="false"] .when-open,
.course-trigger[aria-expanded="true"] .when-closed { display: none; }
.course-trigger-icon { position: relative; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: rgba(47,57,132,.1); transition: transform .2s ease, background-color .2s ease; }
.stage-go .course-trigger-icon { background: rgba(255,255,255,.18); }
.course-trigger-icon::before,.course-trigger-icon::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: 0px 0 0 -8px; border-radius: 1px; background: currentColor; }
.course-trigger-icon::after { transform: rotate(90deg); }
.course-trigger[aria-expanded="true"] .course-trigger-icon { transform: rotate(45deg); }
@supports selector(:has(*)) {
  .course-trigger:focus-visible { outline: none; }
  .course-card:has(.course-trigger:focus-visible) { outline: 3px solid var(--academy-navy); outline-offset: 4px; }
  .stage-go.course-card:has(.course-trigger:focus-visible) { outline-color: var(--academy-yellow); }
}
/* Selected card: ring + notch pointing at its panel. */
html .course-explorer .course-card.is-open { box-shadow: 0 0 0 3px var(--academy-navy); }
html .course-explorer .stage-go.course-card.is-open { box-shadow: 0 0 0 3px var(--academy-yellow); }
.course-card.is-open::after { content: ''; position: absolute; left: 50%; bottom: -13px; width: 20px; height: 20px; margin-left: -8px; transform: rotate(45deg); border-radius: 0 0 4px 0; background: inherit; box-shadow: 3px 3px 0 0 var(--academy-navy); pointer-events: none; }
.stage-go.course-card.is-open::after { box-shadow: 3px 3px 0 0 var(--academy-yellow); }
.stage-ready.course-card.is-open::after { background: var(--warm-yellow-tint); }
.stage-set.course-card.is-open::after { background: #fff; }

.course-panel { --panel-accent: var(--academy-navy); padding: 40px; border: 1px solid var(--academy-border); border-top: 6px solid var(--panel-accent); border-radius: 24px; background: #fff; animation: course-panel-in .3s cubic-bezier(.2,.65,.3,1) both; }
.course-explorer.is-enhanced .course-panel[hidden] { display: none; }
.course-explorer:not(.is-enhanced) .course-panel { animation: none; }
html .course-panel .course-label { margin: 0; font-size: 14px; line-height: 1.5; color: var(--academy-navy); }
.course-panel-ready { --panel-accent: var(--academy-yellow); }
.course-panel-set { --panel-accent: #8f98c9; }
.course-panel-head { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 40px; align-items: start; }
html .course-panel h3 { margin: 8px 0 16px; color: var(--academy-navy); font-size: clamp(26px,2.6vw,34px); font-weight: 800; letter-spacing: -.03em; }
html .course-panel-head p:not(.course-label) { margin: 0; color: var(--academy-body); line-height: 1.8; }
.course-panel-time { margin: 0; padding: 8px 24px; border-radius: 18px; background: var(--warm-navy-tint); }
.course-panel-time > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; }
.course-panel-time > div + div { border-top: 1px solid #d8dcec; }
.course-panel-time dt { flex: 0 0 auto; color: var(--academy-body); font-size: 14px; font-weight: 700; }
.course-panel-time dd { margin: 0; color: var(--academy-navy); font-size: 26px; font-weight: 800; letter-spacing: -.02em; text-align: right; font-variant-numeric: tabular-nums; }
.course-panel-time > div:first-child dd { font-size: 17px; font-weight: 700; }
.course-panel-time small { font-size: 14px; font-weight: 500; color: var(--academy-body); }
.course-panel-body { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 40px; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--academy-border); }
.course-panel-body h4 { margin: 0 0 8px; color: var(--academy-text); font-size: 19px; font-weight: 700; }
html .course-panel-body p { margin: 0; color: var(--academy-body); line-height: 1.8; }
.course-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.course-chips li { padding: 8px 16px; border-radius: 999px; background: var(--warm-yellow-tint); color: var(--warm-yellow-ink); font-size: 14px; font-weight: 700; line-height: 1.5; }
html .course-panel .course-panel-note { margin: 32px 0 0; padding-top: 16px; border-top: 1px dashed var(--academy-border); color: var(--academy-body); font-size: 14px; line-height: 1.8; }
@keyframes course-panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (min-width: 768px) {
  .course-explorer > .stage-ready { grid-column: 1; grid-row: 1; }
  .course-explorer > .stage-set { grid-column: 2; grid-row: 1; }
  .course-explorer > .stage-go { grid-column: 3; grid-row: 1; }
  .course-explorer > .course-panel { grid-column: 1 / -1; }
  .course-explorer.is-enhanced > .course-panel { grid-row: 2; margin-top: 8px; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .course-panel { padding: 32px; }
  .course-panel-head { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 767px) {
  .course-panel { padding: 32px 24px; border-radius: 20px; }
  .course-panel-head { grid-template-columns: 1fr; gap: 24px; }
  .course-panel-time { padding: 8px 16px; }
  .course-panel-time dd { font-size: 22px; }
  .course-panel-time > div:first-child dd { font-size: 15px; }
  .course-panel-body { grid-template-columns: 1fr; gap: 24px; margin-top: 24px; padding-top: 24px; }
  .course-chips li { font-size: 13px; padding: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .course-panel { animation: none; }
  .course-trigger-icon,html .course-explorer .course-card { transition: none; }
}

/* Shared section boundary and entrance across informational pages. */
html .simple-page > section { position: relative; }
html .simple-page > .simple-hero { border-bottom: 0; }
html .simple-page > section + section { border-top: 1px solid var(--academy-border); }
html .simple-page > section + section::before { content: ''; position: absolute; top: -3px; left: 50%; width: 48px; height: 5px; border-radius: 999px; background: var(--academy-yellow); transform: translateX(-50%); }
html .simple-page > section > .container[data-reveal] { transition: opacity .5s ease, transform .5s ease; transition-delay: 0s; }
html .simple-page > section > .container[data-reveal]:not(.is-visible) { transform: translateY(24px); }
html .simple-page > section > .container[data-reveal]:focus-within { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
 html .simple-page > section > .container[data-reveal],html .simple-page > section > .container[data-reveal]:not(.is-visible) { opacity: 1; transform: none; transition: none; }
}

/* 2026-10-04 flow pass (Claude): shorter PC sections, quicker entrances, steady level-test column. */
@media (min-width: 768px) {
  /* Sections after the first fit their content instead of filling a whole screen. */
  html .simple-page > section:not(:first-child) { min-height: 0; }
  html .simple-page > .simple-section { padding-top: clamp(88px,10vh,120px); padding-bottom: clamp(88px,10vh,120px); }
  html .simple-page > .simple-cta { min-height: 0; padding-top: 96px; padding-bottom: 96px; }
  html .simple-page > .simple-hero { min-height: min(620px, calc(100svh - 104px)); }
}
html .simple-page > section > .container[data-reveal] { transition: opacity .35s ease, transform .4s cubic-bezier(.2,.65,.3,1); }
html .simple-page > section > .container[data-reveal]:not(.is-visible) { transform: translateY(12px); }
/* Level test: same left edge as the other sections. */
html .leveltest-choice-section .simple-heading,
html .leveltest-choice-section .grade-switch,
html .leveltest-choice-section .grade-panel,
html .leveltest-choice-section .test-selection-note { margin-left: 0; }
/* Tab indicator moves with transform (page-effects.js proposal); left/width kept for the current script. */
html .grade-switch-indicator { transition: transform .34s cubic-bezier(.2,.75,.25,1), left .34s cubic-bezier(.2,.75,.25,1), width .34s cubic-bezier(.2,.75,.25,1); }

/* Keep reduced motion effective after the flow overrides. */
@media (prefers-reduced-motion: reduce) {
 html .simple-page > section > .container[data-reveal],html .simple-page > section > .container[data-reveal]:not(.is-visible) { opacity: 1; transform: none; transition: none; }
 html .grade-switch-indicator { transition: none; }
}

/* 2026-10-05 mobile detail pass (Claude) */
/* 1. Closing call-to-action: same full-width section style as the other sections, centered, navy button. */
html .simple-page > .simple-cta { background: #fff; text-align: center; }
html .simple-cta .simple-cta-inner { flex-direction: column; align-items: center; justify-content: center; gap: 32px; }
html .simple-cta .simple-kicker { display: block; margin: 0 0 16px; }
html .simple-cta h2 { color: var(--academy-text); }
html .simple-cta .simple-cta-inner p:last-child { margin-top: 16px; color: var(--academy-body); }
html .simple-cta .simple-button, html .simple-cta .simple-button:hover { min-width: 240px; background: var(--academy-navy); border-color: var(--academy-navy); color: #fff; font-weight: 700; }
/* 6. Daily Bridge card: plain border like the other cards. */
html .bridge-feature { border: 1px solid var(--academy-border); }
/* 7. Program tags: no yellow pills; small navy label with the site's yellow bar as the accent. */
html .elective-tag { display: inline-flex; align-items: center; gap: 8px; padding: 0; border-radius: 0; background: none; color: var(--academy-navy); font-size: 14px; font-weight: 700; }
html .elective-tag::before { content: ''; flex: 0 0 5px; width: 5px; height: 14px; border-radius: 2px; background: var(--academy-yellow); }
/* 2. Learning-area cards: compact, content-sized. */
html .simple-page .simple-subject-grid { grid-auto-rows: auto; }
html .simple-page .simple-subject-grid article { min-height: 0; }
@media (max-width: 767px) {
  /* Learning areas on phones: one grouped list card, readable type, no empty card space. */
  html .simple-page .simple-subject-grid { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--academy-border); border-radius: 18px; background: #fff; overflow: hidden; }
  html .simple-page .simple-subject-grid article { padding: 16px 24px; border: 0; border-radius: 0; background: transparent; box-shadow: none; transform: none; }
  html .simple-page .simple-subject-grid article + article { border-top: 1px solid var(--academy-border); }
  html .simple-page .simple-subject-grid h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.4; }
  html .simple-page .simple-subject-grid p { font-size: 15px; line-height: 1.6; }
  html .simple-cta .simple-cta-inner { gap: 24px; }
}

/* 2026-10-05 learning areas on tablet/PC (Claude): same grouped list card as phones, laid out in a grid with inner dividers. */
@media (min-width: 768px) {
  html .simple-page .simple-subject-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--academy-border); border-radius: 22px; background: #fff; overflow: hidden; }
  html .simple-page .simple-subject-grid article { padding: 32px 32px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  html .simple-page .simple-subject-grid article:hover { transform: none; box-shadow: none; }
  html .simple-page .simple-subject-grid h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.4; }
  html .simple-page .simple-subject-grid p { font-size: 16px; line-height: 1.7; }
}
@media (min-width: 768px) and (max-width: 991px) {
  html .simple-page .simple-subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html .simple-page .simple-subject-grid article { padding: 24px; }
}

/* Refund reference uses compact text cards, without promotional card heights. */
html .refund-guide .simple-info-grid article { min-height: 0; padding: 24px; }
html .refund-guide h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.4; }

/* Native disclosures share one compact explanation template. */
.info-accordion { border-top: 1px solid var(--academy-border); }
.info-accordion details { border-bottom: 1px solid var(--academy-border); }
html .info-accordion summary { display: flex; align-items: center; gap: 24px; min-height: 64px; padding: 24px 0; cursor: pointer; list-style: none; }
.info-accordion summary::-webkit-details-marker { display: none; }
.info-accordion summary > span:not(.program-number) { flex: 1; min-width: 0; }
.info-accordion summary strong { display: block; font-size: clamp(19px,2vw,23px); line-height: 1.5; color: var(--academy-text); }
.info-accordion summary span > span { display: block; margin-top: 8px; font-size: 15px; color: var(--academy-body); line-height: 1.7; }
.info-accordion summary::after { content: '+'; flex: 0 0 24px; font-size: 26px; text-align: center; color: var(--academy-navy); }
.info-accordion details[open] > summary::after { content: '−'; }
.info-accordion summary:focus-visible { outline: 3px solid var(--academy-navy); outline-offset: 4px; border-radius: 8px; }
html .info-accordion .info-panel { padding: 24px; margin-bottom: 24px; background: var(--warm-navy-tint); border-radius: 16px; }
.info-panel p { margin: 0 0 24px; line-height: 1.8; }
.info-panel p:last-child { margin-bottom: 0; }
.care-steps { margin: 0; }
.care-steps > div { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 16px 0; }
.care-steps > div + div { border-top: 1px solid var(--academy-border); }
.care-steps dt { margin: 0; color: var(--academy-text); line-height: 1.8; }
.care-steps dd { margin: 0; color: var(--academy-body); line-height: 1.8; }
html .home-guide-links .info-panel a { display: inline-flex; min-height: 44px; padding: 16px 24px; border-bottom: 0; font-size: 15px; }
@media (max-width: 767px) { html .info-accordion summary { gap: 16px; } html .info-accordion .info-panel { padding: 24px; } }
html .home-guide-links .info-panel a.simple-button { color: #fff; }


/* Open divider lists replace boxed learning-area and elective cards. */
html .simple-page .simple-subject-grid { border: 0; border-top: 1px solid var(--academy-border); border-radius: 0; background: transparent; overflow: visible; column-gap: 32px; }
html .simple-page .simple-subject-grid article { border: 0; border-bottom: 1px solid var(--academy-border); padding: 32px 0; }
html .elective-program { column-gap: 32px; row-gap: 0; }
html .elective-program li { padding: 32px 0; border-radius: 0; background: transparent; border-top: 1px solid var(--academy-border); }
html .elective-program h3 { display: flex; align-items: baseline; gap: 8px; margin: 0; line-height: 1.5; }
html .elective-program h3::before { content: ''; flex: 0 0 5px; width: 5px; height: 16px; border-radius: 2px; background: var(--academy-yellow); }
@media (max-width: 767px) { html .simple-page .simple-subject-grid article { padding: 24px 0; } }

/* "Next level" button at the end of the Ready and Set panels. Shown only when page-effects.js wires it (.has-next-step). */
.course-next { display: none; }
html .course-explorer.has-next-step .course-next { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 24px; padding: 8px 24px; border: 1px solid var(--academy-navy); border-radius: 999px; background: #fff; color: var(--academy-navy); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
html .course-explorer.has-next-step .course-next:hover { background: var(--academy-navy); color: #fff; }

/* 2026-10-05 corner radius system (Claude):
   controls (buttons, menu, tabs, chips) = pill; content boxes = one box radius; boxes inside boxes and small icon tiles = inner radius. */
:root { --radius-box: 20px; --radius-inner: 12px; }
@media (max-width: 767px) { :root { --radius-box: 16px; } }
html .home-flow,
html .simple-page .simple-info-grid article,
html .simple-page .test-info-card,
html .elective-feature,
html .course-panel,
html .info-accordion .info-panel { border-radius: var(--radius-box); }
@media (min-width: 992px) { html .home-stage-grid article.course-card { border-radius: var(--radius-box); } }
html .course-panel-time,
html .principle-icon { border-radius: var(--radius-inner); }


/* 2026-10-05 card layout on phones/tablets (Claude, user chose cards over tabs):
   level gauge colours per card background, and the panel title is screen-reader only because the card right above already names the course. */
@media (max-width: 991px) {
  html .motion-demo .course-explorer.is-enhanced .course-card .stage-level { display: flex; gap: 8px; }
  html .motion-demo .course-explorer.is-enhanced .course-card .stage-level i { display: block; width: 22px; height: 6px; border-radius: 3px; }
  html .motion-demo .course-explorer.is-enhanced .stage-ready .stage-level i { background: #c3c9e0; }
  html .motion-demo .course-explorer.is-enhanced .stage-set .stage-level i { background: rgba(32,38,74,.22); }
  html .motion-demo .course-explorer.is-enhanced .stage-go .stage-level i { background: rgba(255,255,255,.3); }
  html .motion-demo .course-explorer.is-enhanced .stage-ready .stage-level i:first-child,
  html .motion-demo .course-explorer.is-enhanced .stage-set .stage-level i:nth-child(-n+2) { background: var(--academy-navy); }
  html .motion-demo .course-explorer.is-enhanced .stage-go .stage-level i { background: var(--academy-yellow); }
  html .motion-demo .course-explorer.is-enhanced .course-card.is-open::after { display: none; } /* panel sits right below; no pointer needed */
  html .motion-demo .course-explorer.is-enhanced .course-panel h3 { position: absolute; width: 1px; height: 1px; margin: 0px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}

.course-tab-word { display: none; }

/* 2026-10-08 Claude 15: one colour per role (user choices: levels plan 1, 6A, 7A).
   - Level colours match on every page: Ready light yellow, Set white, Go navy.
   - One light tint (#f3f4f8), one yellow (--academy-yellow), one box border (#e7e8ee).
   - Boxes rest without shadows; hover shows a navy border instead. Selected ring and the cover-edge shadow stay.
   - Lists: plain navy numbers, no yellow side bars, no tinted item boxes; rows split by space + a thin line.
   ":not(#_)" outranks older page and motion rules without !important. Decorative circles are untouched. */
html:not(#_) {
  --u15-tint: rgba(243,244,248,.7);
  --u15-border: #e7e8ee;
  --u15-ready: #fff5cf;
  /* existing tint tokens point to the one tint */
  --warm-navy-tint: var(--u15-tint);
  --academy-light: var(--u15-tint);
}

/* Level colours */
html:not(#_) .motion-chapter.motion-ready,
html:not(#_) .motion-demo .course-panel-ready,
html:not(#_) .motion-demo .home-stage-grid.course-explorer.is-enhanced > article.stage-ready { background: var(--u15-ready); }
html:not(#_) .motion-chapter.motion-set,
html:not(#_) .motion-demo .home-stage-grid.course-explorer.is-enhanced > article.stage-set { background: #fff; box-shadow: inset 0 0 0 1px var(--u15-border); }
html:not(#_) .motion-demo.is-home-motion .motion-chapter.motion-set { box-shadow: inset 0 0 0 1px var(--u15-border), 0 -12px 24px rgba(31,35,64,.06); }
html:not(#_) .motion-demo .home-stage-grid.course-explorer.is-enhanced .stage-go.is-open { box-shadow: 0 0 0 3px var(--academy-yellow, #f5c922); }

/* One light tint */
html:not(#_) .home-flow,
html:not(#_) .info-panel,
html:not(#_) .principle-icon,
html:not(#_) .social-arrow,
html:not(#_) .test-duration { background: var(--u15-tint); }

/* One box border, no resting shadows, hover = navy border */
html:not(#_) .academy-social-card,
html:not(#_) .test-info-card { border-color: var(--u15-border); box-shadow: none; }
html:not(#_) a.academy-social-card:hover,
html:not(#_) .test-info-card:hover { border-color: #8f9bc2; box-shadow: none; }
html:not(#_) .test-info-card,
html:not(#_) .elective-feature { border-radius: var(--radius-box, 20px); }

/* Lists: one style */
html:not(#_) .program-number { flex: 0 0 auto; width: auto; height: auto; border-radius: 0; background: none; color: var(--academy-navy, #2f3984); font-weight: 800; }
html:not(#_) .elective-program h3::before { display: none; }
html:not(#_) .elective-program li { padding: 24px 0; border-radius: 0; background: none; border-top: 1px solid var(--u15-border); }

html .site-header .academy-nav-button,
html .site-header .academy-nav-button:hover {
 background: var(--academy-navy); border-color: var(--academy-navy);
 color: #fff;
}

/* Match the selection inset to the menu's 8px padding on every side. */
html .site-header .academy-menu .menu-indicator {
 top: 8px; height: calc(100% - 16px);
}

/* Present elective subjects as open rows like learning management. */
html:not(#_) .elective-feature {
 padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
html:not(#_) .elective-program {
 grid-template-columns: 1fr; gap: 0; border-bottom: 1px solid var(--academy-border);
}
html:not(#_) .elective-program li {
 padding: 24px 0; border-top: 1px solid var(--academy-border);
 background: transparent; border-radius: 0; box-shadow: none;
}

html .regular-program > div:last-child { border-bottom: 1px solid var(--academy-border); }

html .leveltest-choice-section .grade-switch {
 width: 100%; max-width: none;
}
html .leveltest-choice-section .grade-switch-indicator {
 top: 8px; bottom: 8px;
}

@media (min-width:768px) and (max-width:866px) {
.academy-header-inner { gap: 16px; }
.site-header .academy-menu .nav-link { padding: 8px 16px; font-size: 13px; }
.academy-logo { font-size: 17px; }
.academy-nav-button { font-size: 13px; padding: 8px 16px; }
.academy-header-inner { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.academy-logo { font-size: 17px; }
.academy-logo small { font-size: 13px; }
.brand-mark { height: 28px; width: 6px; }
.academy-menu { grid-column: 1 / -1; grid-row: 2; width: 100%; }
.site-header .academy-menu .nav-link { flex: 1; padding: 8px 8px; font-size: 13px; }
.academy-nav-button { font-size: 13px; min-height: 44px; padding: 8px 16px; }
.academy-header-inner { grid-template-columns: minmax(0, 1fr) auto; }
.academy-logo { min-width: 0; white-space: normal; }
.academy-logo > span:last-child { overflow-wrap: anywhere; }
:root { --mobile-header-bar: 68px; }
.site-header { top: 0; background: #fff; clip-path: inset(0 0 0 0); transition: clip-path .3s ease; }
.site-header::after { content: ''; position: absolute; left: 0; right: 0; top: calc(var(--mobile-header-bar) - 1px); height: 1px; background: var(--academy-border); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.site-header.is-condensed { clip-path: inset(0 0 calc(100% - var(--mobile-header-bar)) 0); }
.site-header.is-condensed::after { opacity: 1; }
.site-header.is-condensed .academy-menu { visibility: hidden; transition: visibility 0s .3s; }
.academy-header-inner { grid-template-rows: 48px auto; row-gap: 8px; column-gap: 16px; min-height: 0; padding-top: 16px; padding-bottom: 8px; }
.academy-logo { font-size: 16px; line-height: 1.25; word-break: keep-all; }
.academy-logo > span:last-child { overflow-wrap: normal; }
.academy-menu { padding: 8px; }
.academy-header-inner > .academy-logo, .academy-header-inner > .academy-nav-button { align-self: center; margin: 0; }
.menu-indicator { top: 4px; height: calc(100% - 8px); }
 html .academy-header-inner { column-gap: 8px; }
}
html .leveltest-choice-section .grade-panel,
html .leveltest-choice-section .test-info-card { width: 100%; max-width: none; }
/* Restore the original solid navigation and buttons. */
html .site-header { background: #fff; }
html .site-header .academy-menu { background: #f3f4f8; }
html .site-header .academy-menu .menu-indicator { top: 8px; height: calc(100% - 16px); }

/* 2026-10-20 Claude 20: one type scale (visible sizes, mobile → PC).
   Content uses native dimensions. --u20-z stays 1 so the tokens equal visible pixel sizes.
   Not covered here (own components): home level cards (.motion-chapter / .levels-static / .level-unfold),
   curriculum course-card names and the open course panel title. */
:root {
  --u20-z: 1;
  --t-h1-home: clamp(34px, 2.6vw + 24px, 60px);
  --t-h1: clamp(28px, 1.8vw + 21px, 44px);
  --t-h2: clamp(24px, 1.35vw + 18.7px, 36px);
  --t-h3: clamp(19px, .34vw + 17.7px, 22px);
  --t-kicker: clamp(14px, .11vw + 13.6px, 15px);
  --t-lead: clamp(17px, .22vw + 16.1px, 19px);
  --t-body: clamp(16px, .11vw + 15.6px, 17px);
  --t-small: 14px;
  --t-button: 16px;
  --t-cta: 17px;
  --t-footer: clamp(14px, .11vw + 13.6px, 15px);
  --t-footer-name: clamp(17px, .11vw + 16.6px, 18px);
}
html:not(#_) .motion-demo > section > .container,
html:not(#_) .common-ending > section > .container,
html:not(#_) .common-ending > footer > .container { --u20-z: 1; }

/* Body first (lowest specificity), roles after (one class more). */
html:not(#_) :is(main.simple-page, .common-ending) :is(p, li, dd):where(:not(.motion-chapter *, .levels-static *, .level-unfold *)) {
  font-size: calc(var(--t-body) / var(--u20-z)); line-height: 1.75; text-wrap: pretty;
}
html:not(#_) :is(main.simple-page, .common-ending) :is(.simple-steps li > span, .test-info-card > p, .care-steps dd):where(:not(.motion-chapter *, .levels-static *, .level-unfold *)) { font-size: calc(var(--t-body) / var(--u20-z)); line-height: 1.75; }
html:not(#_) :is(main.simple-page, .common-ending) .care-steps dt { font-size: calc(var(--t-body) / var(--u20-z)); font-weight: 700; line-height: 1.75; }
html:not(#_) :is(main.simple-page, .common-ending) :is(.simple-lead, .home-intro-copy) { font-size: calc(var(--t-lead) / var(--u20-z)); line-height: 1.75; }
html:not(#_) :is(main.simple-page, .common-ending) .refund-guide p { max-width: 40em; }

/* Headings */
html:not(#_) :is(main.simple-page, .common-ending) .home-intro h1 { font-size: calc(var(--t-h1-home) / var(--u20-z)); font-weight: 800; line-height: 1.25; }
html:not(#_) :is(main.simple-page, .common-ending) :is(.simple-hero, .refund-guide) h1 { font-size: calc(var(--t-h1) / var(--u20-z)); font-weight: 800; line-height: 1.3; }
html:not(#_) :is(main.simple-page, .common-ending) h2:where(:not(.motion-chapter *, .levels-static *, .level-unfold *)), html:not(#_) :is(main.simple-page, .common-ending) .motion-chapters .motion-heading h2 {
  font-size: calc(var(--t-h2) / var(--u20-z)); font-weight: 800; line-height: 1.35;
}
html:not(#_) :is(main.simple-page, .common-ending) :is(h3, h4, summary strong, .regular-program dt, .simple-steps li > strong):where(:not(.motion-chapter *, .levels-static *, .level-unfold *, .course-card h3, .course-panel h3)) {
  font-size: calc(var(--t-h3) / var(--u20-z)); font-weight: 700; line-height: 1.45;
}
html:not(#_) :is(main.simple-page, .common-ending) .simple-faq summary { font-size: calc(var(--t-h3) / var(--u20-z)); font-weight: 700; line-height: 1.45; text-wrap: pretty; }
html:not(#_) :is(main.simple-page, .common-ending) summary span:not(.program-number):not(:has(strong)) { font-size: calc(var(--t-small) / var(--u20-z)); line-height: 1.6; }

/* Labels */
html:not(#_) :is(main.simple-page, .common-ending) .simple-kicker { font-size: calc(var(--t-kicker) / var(--u20-z)); font-weight: 700; line-height: 1.4; }
html:not(#_) :is(main.simple-page, .common-ending) :is(.home-intro-badge, .elective-badge, .course-label, .test-duration, .program-number, .course-panel-note, .grade-panel-note, .level-open-hint) {
  font-size: calc(var(--t-small) / var(--u20-z)); line-height: 1.5;
}
/* These two carry !important in course-production.css. */
html:not(#_) :is(main.simple-page, .common-ending) .home-stage-grid .stage-top .stage-range,
html:not(#_) :is(main.simple-page, .common-ending) .course-detail-note { font-size: calc(var(--t-small) / var(--u20-z)) !important; line-height: 1.5 !important; }
html:not(#_) :is(main.simple-page, .common-ending) small { font-size: calc(13px / var(--u20-z)); }

/* Buttons */
html:not(#_) :is(main.simple-page, .common-ending) :is(.simple-button, .simple-text-link, .course-trigger, .grade-switch button) { font-size: calc(var(--t-button) / var(--u20-z)); }
html:not(#_) :is(main.simple-page, .common-ending) .course-trigger { font-size: calc(var(--t-button) / var(--u20-z)) !important; } /* course-production.css sets 15px !important */
html:not(#_) :is(main.simple-page, .common-ending) .course-trigger :is(.course-trigger-text, .when-closed, .when-open) { font-size: inherit; }
html:not(#_) .common-ending .simple-cta .simple-button { font-size: calc(var(--t-cta) / var(--u20-z)); }
html:not(#_) .site-header .academy-nav-button { font-size: 14px; }

/* Footer and social */
html:not(#_) .common-ending .social-card-copy strong { font-size: calc(var(--t-button) / var(--u20-z)); }
html:not(#_) .common-ending .social-footer :is(p, address a, .footer-policy-link) { font-size: calc(var(--t-footer) / var(--u20-z)); line-height: 1.6; }
html:not(#_) .common-ending .social-footer .academy-footer-inner strong { font-size: calc(var(--t-footer-name) / var(--u20-z)); }
html:not(#_) .common-ending .social-footer small { font-size: calc(13px / var(--u20-z)); }

/* Short two-line text: balance the lines instead of leaving one word behind. */
html:not(#_) :is(main.simple-page, .common-ending) :is(h1, .simple-cta-inner p, .simple-faq summary, summary strong, .simple-lead) { text-wrap: balance; }
