/* AICoach Frontier Academy: the curriculum page. It wears the home page's system (Refract: pool blue on white,
 * hairlines, clear glass for the few raised panels) and adds only what a curriculum needs: the three levels as
 * slabs of glass, programme fact sheets, numbered modules, a track index that filters without script, and editions. */
@import url("./site.css");

h4 { margin: 0; color: var(--color-ink); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 400; font-synthesis: none; letter-spacing: -0.01em; line-height: 1.2; text-wrap: balance; }
:lang(zh) h4 { letter-spacing: 0; line-height: 1.4; }
/* Chinese titles here sit in narrow columns: let them break between any two characters, and balance the lines */
html:lang(zh) main :is(h3, h4), html:lang(zh) .know .specs dd { word-break: normal; }
.program .kicker, .tracks .kicker { margin-bottom: var(--space-md); }

/* ---- hero: the promise on the left, the three levels on the right ---- */
.ac-hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); align-items: center; min-height: calc(100svh - var(--nav-h)); padding-block: var(--space-2xl) var(--space-3xl); }
.ac-hero__text { grid-column: 1 / 7; }
.ac-hero h1 { max-width: 12ch; font-size: clamp(2.5rem, 4.4vw + 0.5rem, 4.75rem); }
:lang(zh) .ac-hero h1 { max-width: none; font-size: clamp(2.25rem, 3.6vw + 0.5rem, 4rem); }
.ac-hero h1 .ph { display: block; }
.ac-hero .lead { max-width: 44ch; margin-top: var(--space-lg); }
:lang(zh) .ac-hero .lead { max-width: 30em; }

.levels { grid-column: 7 / -1; display: grid; gap: var(--space-md); padding: var(--space-lg); border-radius: var(--radius-card); background: radial-gradient(110% 80% at 78% 0%, oklch(93.5% 0.03 205), transparent 62%), var(--color-shade); box-shadow: var(--edge-light); }
.levels__art { width: min(100%, 30rem); height: auto; margin-inline: auto; overflow: visible; }
.slab__cast { fill: var(--color-shade-2); fill-opacity: 0.6; filter: blur(12px); }
.slab__top { fill-opacity: 0.9; }
.slab__rim { fill: none; stroke: oklch(100% 0 0 / 0.85); stroke-width: 1.5; stroke-linejoin: round; }
.slab__marks { fill: oklch(100% 0 0 / 0.72); }
.slab--exec .slab__top { fill: var(--color-agent); } .slab--exec .slab__side { fill: color-mix(in oklab, var(--color-agent) 78%, var(--color-ink)); }
.slab--mgmt .slab__top { fill: var(--color-skill); } .slab--mgmt .slab__side { fill: color-mix(in oklab, var(--color-skill) 78%, var(--color-ink)); }
.slab--tracks .slab__top { fill: var(--color-data); } .slab--tracks .slab__side { fill: color-mix(in oklab, var(--color-data) 78%, var(--color-ink)); }
.slab__side--r { filter: brightness(0.9); }
.levels__list { margin: 0; padding: var(--space-2xs); list-style: none; border-radius: var(--radius-inner); background: color-mix(in oklab, var(--color-light) 88%, transparent); box-shadow: var(--edge-light), inset 0 0 0 1px var(--color-rule-2), var(--shadow-card); }
.levels__list li + li { border-top: var(--rule-hair) solid var(--color-rule-2); }
.levels__list a { display: grid; grid-template-columns: auto minmax(0, 6fr) minmax(0, 7fr) auto; gap: var(--space-xs) var(--space-sm); align-items: baseline; min-height: 52px; padding: var(--space-sm) var(--space-sm); border-radius: calc(var(--radius-inner) - 4px); color: var(--color-ink-2); font-size: var(--text-sm); line-height: 1.35; text-decoration: none; transition: background-color var(--dur-short) var(--ease-out); }
.levels__list a:hover { background: var(--color-paper-2); }
.levels__list .glyph { align-self: center; }
.levels__name { color: var(--color-ink); font-family: var(--font-display); font-size: var(--text-md); font-weight: 500; }
.levels__len { color: var(--color-muted); text-align: end; white-space: nowrap; }

/* ---- how we teach: four rules ---- */
.teach { padding-block: var(--section-gap-s) var(--section-gap); }
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); margin: var(--space-2xl) 0 0; padding: 0; list-style: none; counter-reset: rule; }
.rules li { padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); counter-increment: rule; }
.rules li::before { content: counter(rule); display: block; margin-bottom: var(--space-xs); color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; font-variant-numeric: tabular-nums; }
.rules h3 { font-size: var(--text-title); }
.rules p { margin-top: var(--space-xs); color: var(--color-muted); }

/* ---- a programme: who, how long and what they leave with, then its modules ---- */
.program { padding-block: var(--section-gap); }
.program__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); align-items: end; }
.program__head > div { grid-column: 1 / 7; }
.program__head .lead { margin-top: var(--space-lg); max-width: 40ch; }
.facts { grid-column: 8 / -1; margin: 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.facts > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.facts dt { color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; line-height: 1.7; }
.facts dd { margin: 0; color: var(--color-ink-2); }
.facts__out dd { color: var(--color-ink); font-weight: 500; }
.program__sub { max-width: none; margin-top: var(--space-2xl); color: var(--color-muted); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500; letter-spacing: 0; line-height: 1.4; }
.modules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); margin: var(--space-md) 0 0; padding: 0; list-style: none; counter-reset: module; }
.modules li { padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); counter-increment: module; }
.modules li::before { content: counter(module, decimal-leading-zero); display: block; margin-bottom: var(--space-sm); color: var(--color-accent); font-family: var(--font-display); font-size: var(--text-xl); font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.modules p { margin-top: var(--space-xs); color: var(--color-muted); font-size: var(--text-md); }
.rhythm { margin-top: var(--space-md); }
.rhythm h4 { font-size: var(--text-xl); line-height: 1.15; }

/* ---- the tracks: an index of twelve; the control above it shows the ones for one audience, in plain CSS ---- */
.tracks { padding-block: var(--section-gap); }
.tracks__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-lg) var(--gap-columns); align-items: end; }
.tracks__head > :first-child { grid-column: 1 / 7; }
.tracks__head .lead { grid-column: 8 / -1; max-width: 38ch; }
.seg--wrap { flex-wrap: wrap; margin-top: var(--space-2xl); border-radius: calc(22px + var(--space-3xs)); }
.tlist { margin: var(--space-lg) 0 0; padding: 0; list-style: none; border-bottom: var(--rule-hair) solid var(--color-rule); }
.track { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 6fr) minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-xs) var(--gap-columns); align-items: baseline; padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.track__num { color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; font-variant-numeric: tabular-nums; }
.track h3 { max-width: none; font-size: var(--text-xl); line-height: 1.2; }
.track__what p { margin-top: var(--space-2xs); color: var(--color-ink-2); }
.track__for { color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; }
.track__len { color: var(--color-ink-2); font-size: var(--text-sm); }
.core { display: inline-block; margin-inline-start: var(--space-xs); padding: 0.2em 0.7em; border-radius: var(--radius-pill); background: var(--color-accent-soft); color: var(--color-accent-hi); font-family: var(--font-body); font-size: var(--text-xs); font-weight: 500; letter-spacing: 0; line-height: 1.4; vertical-align: 0.2em; white-space: nowrap; }
.tracks:has(#for-board:checked) .track:not([data-for~="board"]),
.tracks:has(#for-heads:checked) .track:not([data-for~="heads"]),
.tracks:has(#for-managers:checked) .track:not([data-for~="managers"]),
.tracks:has(#for-specialists:checked) .track:not([data-for~="specialists"]) { display: none; }
.tracks__note { max-width: 72ch; margin-top: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); }

/* ---- three places to start: each a short chain of what to take, in order ---- */
.starts { padding-block: var(--section-gap); }
.starts__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin: var(--space-2xl) 0 0; padding: 0; list-style: none; }
.starts__list > li { display: grid; align-content: start; gap: var(--space-xs); padding: var(--space-xl); border-radius: var(--radius-card); background: color-mix(in oklab, var(--color-light) 82%, transparent); box-shadow: var(--edge-light), inset 0 0 0 1px var(--color-rule-2), var(--shadow-card); }
.starts__list h3 { font-size: var(--text-title); }
.starts__list p { color: var(--color-muted); }
.chain { margin: var(--space-md) 0 0; padding: 0; list-style: none; counter-reset: link; }
.chain li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-sm); align-items: start; min-height: 44px; padding-block: 11px; color: var(--color-ink); font-weight: 500; line-height: 1.35; counter-increment: link; }
.chain li::before { content: counter(link); display: grid; place-items: center; width: 28px; height: 28px; margin-top: -3px; border-radius: 50%; background: var(--color-light); box-shadow: inset 0 0 0 1px var(--color-rule); color: var(--color-accent); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
/* the link runs from one numeral to the next, however many lines the name takes */
.chain li:not(:last-child)::after { content: ""; position: absolute; left: 13.5px; top: 36px; bottom: -8px; width: 1px; background: var(--color-rule); }

/* ---- the same curriculum, in four editions ---- */
.editions { padding-block: var(--section-gap); }
.editions__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); margin: var(--space-2xl) 0 0; padding: 0; list-style: none; }
.edition { padding-top: var(--space-md); border-top: 2px solid var(--color-ink); }
.edition h3 { font-size: var(--text-title); }
.edition dl { margin: var(--space-md) 0 0; }
.edition dl > div { padding-block: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.edition dt { color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; }
.edition dd { margin: var(--space-3xs) 0 0; color: var(--color-ink-2); font-size: var(--text-md); }

/* ---- what else to know, and the way in ---- */
.know { padding-block: var(--section-gap); }
/* six details read better three across than four and two */
@media (min-width: 60.0625rem) { .know .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-xl); } }
.engage__grid > .contact { grid-column: 7 / -1; align-self: end; margin-top: 0; }

@media (max-width: 60rem) {
  .ac-hero { min-height: 0; padding-block: var(--space-2xl); }
  .ac-hero__text, .levels, .program__head > div, .facts, .tracks__head > :first-child, .tracks__head .lead, .engage__grid > .contact { grid-column: 1 / -1; }
  .rules, .modules, .editions__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules { row-gap: var(--space-xl); }
  .editions__list { row-gap: var(--space-2xl); }
  .starts__list { grid-template-columns: minmax(0, 1fr); }
  .track { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .track > :not(.track__num) { grid-column: 2; }
}
@media (max-width: 40rem) {
  .levels { padding: var(--space-md); margin-inline: calc(-1 * var(--space-xs)); }
  .levels__list a { grid-template-columns: auto minmax(0, 1fr) auto; }
  .levels__for { grid-column: 2 / -1; grid-row: 2; }
  .rules, .modules, .editions__list { grid-template-columns: minmax(0, 1fr); }
  .modules { row-gap: var(--space-lg); }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .track { grid-template-columns: minmax(0, 1fr); }
  .track > :not(.track__num) { grid-column: 1; }
  .starts__list > li { padding: var(--space-lg); }
  .seg--wrap label { padding-inline: var(--space-sm); }
}
@media (prefers-reduced-motion: reduce) {
  .levels__list a { transition: none; }
}
