:root {
  --chalk: #d7d2cb;
  --green-grey: #495449;
  --terracotta: #995c53;
  --terracotta-dark: #78443e;
  --white: #ffffff;
  --black: #11120e;
  --text: #2f302c;
  --muted: #6b6d67;
  --line: #d7d2cb;
  --line-dark: #aca8a1;
  --surface-soft: #f5f3f0;
  --success: #495449;
  --danger: #8e3f39;
  --focus: #224f96;
  --max: 1220px;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--black); font-family: var(--sans); line-height: 1.52; -webkit-font-smoothing: antialiased; }
button, a { font: inherit; } button { color: inherit; } a { color: inherit; } [hidden] { display: none !important; }
.skip-link { position: fixed; left: 12px; top: -120px; z-index: 1000; background: var(--black); color: var(--white); padding: .75rem 1rem; }
.skip-link:focus { top: 12px; }
.top-area { position: relative; }
.utility-header { background: var(--white); border-bottom: 1px solid var(--chalk); }
.utility-inner,.info-inner,main,footer { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.utility-inner { min-height: 58px; display: flex; align-items: center; justify-content: flex-end; gap: 1.25rem; }
.utility-actions { display: flex; align-items: center; justify-content: flex-end; gap: .9rem; flex-wrap: nowrap; }
.text-action,.rail-link { appearance: none; border: 0; border-bottom: 1px solid currentColor; background: transparent; padding: .18rem 0; color: var(--black); font-size: .78rem; font-weight: 700; cursor: pointer; }
.text-action:hover,.rail-link:hover { color: var(--terracotta); }
.source-state { display: inline-flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .76rem; }
.state-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-dark); flex: 0 0 auto; }
.source-state[data-state="fresh"] .state-dot { background: var(--green-grey); }
.source-state[data-state="loading"] .state-dot { background: var(--terracotta); }
.source-state[data-state="error"] .state-dot { background: var(--danger); }

.header-dismiss { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--black); font-size: 1.45rem; line-height: 1; cursor: pointer; }
.header-dismiss:hover { background: var(--chalk); }
.top-restore { position: fixed; z-index: 40; top: 12px; right: 12px; min-height: 36px; padding: .45rem .7rem; border: 1px solid var(--black); background: var(--white); color: var(--black); font-size: .72rem; font-weight: 700; cursor: pointer; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.top-restore:hover { background: var(--black); color: var(--white); }
.info-bar { background: var(--chalk); border-bottom: 1px solid var(--line-dark); transition: opacity 180ms ease; }
.info-bar.is-leaving { opacity: 0; }
.info-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; padding-block: 14px; }
.info-copy h2,.finder-heading h1,.question-panel h2,.result-head h2,.course h3,.catalog-heading h2,.result-section-title { font-family: var(--serif); font-weight: 700; }
.info-copy h2 { margin: .12rem 0 .28rem; max-width: 790px; font-size: clamp(1.18rem, 1.05rem + .45vw, 1.55rem); line-height: 1.12; }
.info-copy p:last-child { margin: 0; max-width: 780px; color: var(--text); font-size: .8rem; }
.eyebrow,.question-kicker,.source-note-label { margin: 0; color: var(--terracotta); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.info-points { display: grid; gap: .42rem; color: var(--text); font-size: .83rem; }
.info-points span { display: grid; grid-template-columns: 34px 1fr; gap: .7rem; align-items: baseline; }
.info-points strong { color: var(--terracotta); font-family: var(--serif); font-size: 1rem; }
.info-actions { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.button { min-height: 44px; border: 1px solid transparent; border-radius: 0; padding: .72rem 1.05rem; font-weight: 700; cursor: pointer; transition: background 120ms ease, color 120ms ease, border-color 120ms ease; }
.button:disabled { opacity: .42; cursor: not-allowed; }
.button-primary { background: var(--terracotta); border-color: var(--terracotta); color: var(--white); }
.button-primary:hover:not(:disabled) { background: var(--terracotta-dark); border-color: var(--terracotta-dark); }
.button-secondary { background: var(--white); border-color: var(--black); color: var(--black); }
.button-secondary:hover:not(:disabled) { background: var(--black); color: var(--white); }
.button-quiet { min-height: auto; padding: .35rem 0; background: transparent; border: 0; border-bottom: 1px solid var(--black); color: var(--black); justify-self: start; }
.finder-heading { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(290px, .7fr); gap: clamp(1.5rem, 4vw, 3.4rem); align-items: end; padding: clamp(1.7rem, 3.5vw, 3rem) 0 clamp(1.35rem, 2.5vw, 2rem); border-bottom: 2px solid var(--black); }
.finder-heading h1 { margin: .25rem 0 0; font-size: clamp(2.15rem, 4vw, 3.8rem); line-height: .98; letter-spacing: -.04em; max-width: 780px; }
.finder-heading > p { margin: 0 0 .55rem; color: var(--muted); max-width: 450px; font-size: .94rem; }
.finder-shell { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: 650px; border-bottom: 1px solid var(--black); }
.finder-rail { background: var(--green-grey); color: var(--white); padding: 34px 30px 38px; }
.rail-label { display: flex; justify-content: space-between; gap: 1rem; font-size: .78rem; font-weight: 700; }
.rail-label span:last-child { color: rgba(255,255,255,.72); font-weight: 400; }
.progress-track { height: 3px; margin: 16px 0 27px; background: rgba(255,255,255,.24); }
.progress-fill { height: 100%; width: 10%; background: var(--white); transition: width 180ms ease; }
.progress-list { list-style: none; padding: 0; margin: 0; display: grid; }
.progress-list li { position: relative; min-height: 42px; display: grid; grid-template-columns: 36px 1fr; align-items: center; border-top: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.6); font-size: .78rem; }
.progress-list li::before { content: attr(data-index); font-family: var(--serif); color: inherit; }
.progress-list li.active { color: var(--white); font-weight: 700; }
.progress-list li.done { color: rgba(255,255,255,.85); }
.progress-list li.active::after { content: ""; width: 8px; height: 8px; background: var(--terracotta); position: absolute; right: 0; }
.rail-note { margin-top: 34px; padding-top: 21px; border-top: 1px solid rgba(255,255,255,.32); color: rgba(255,255,255,.82); font-size: .79rem; }
.rail-note strong { color: var(--white); } .rail-note p { margin: .35rem 0 0; }
.rail-link { margin-top: 1.15rem; color: var(--white); border-color: rgba(255,255,255,.7); text-align: left; }
.rail-link:hover { color: var(--chalk); }
.question-panel { padding: clamp(2.3rem, 5vw, 5.4rem) clamp(2rem, 6vw, 6.2rem); min-width: 0; }
.question-panel > div { max-width: 840px; }
.question-panel h2 { margin: .3rem 0 .6rem; font-size: clamp(2rem, 3.5vw, 3.45rem); line-height: 1.04; letter-spacing: -.03em; }
.question-help { margin: 0; color: var(--muted); max-width: 670px; }
.selection-status { min-height: 28px; margin-top: .65rem; color: var(--terracotta); font-size: .78rem; font-weight: 700; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 1.25rem; border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.option { appearance: none; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: .95rem; align-items: start; min-height: 116px; padding: 1.2rem; border: 0; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); background: var(--white); text-align: left; cursor: pointer; transition: background 100ms ease, box-shadow 100ms ease; }
.option:hover { background: var(--surface-soft); }
.option[aria-pressed="true"] { background: color-mix(in srgb, var(--terracotta) 8%, var(--white)); box-shadow: inset 4px 0 0 var(--terracotta); }
.option-control { width: 19px; height: 19px; margin-top: 2px; border: 1px solid var(--black); background: var(--white); position: relative; }
.option[data-multiple="false"] .option-control { border-radius: 50%; }
.option[aria-pressed="true"] .option-control { border-color: var(--terracotta); background: var(--terracotta); }
.option[aria-pressed="true"] .option-control::after { content: ""; position: absolute; inset: 4px; background: var(--white); }
.option[data-multiple="false"][aria-pressed="true"] .option-control::after { border-radius: 50%; }
.option-title { display: block; color: var(--black); font-weight: 700; font-size: .98rem; line-height: 1.28; opacity: 1; visibility: visible; }
.option-desc { display: block; margin-top: .32rem; color: var(--muted); font-size: .8rem; line-height: 1.42; }
.option[aria-pressed="true"] .option-title { color: var(--terracotta-dark); }
.question-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; padding-top: 1.45rem; border-top: 1px solid var(--chalk); }
.loading-view { padding-top: 4rem; }
.loading-line { width: 100%; max-width: 540px; height: 4px; margin-bottom: 2rem; background: var(--chalk); overflow: hidden; position: relative; }
.loading-line::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 42%; background: var(--terracotta); animation: loading 1.2s ease-in-out infinite alternate; }
@keyframes loading { from { transform: translateX(-90%); } to { transform: translateX(250%); } }
.result-head,.catalog-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; padding-bottom: 1.6rem; border-bottom: 2px solid var(--black); }
.result-head h2,.catalog-heading h2 { margin: .2rem 0 .55rem; font-size: clamp(2.1rem, 4vw, 3.7rem); line-height: 1; }
.result-head p,.catalog-heading p { margin: 0; color: var(--muted); max-width: 690px; }
.result-actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.result-list { display: grid; }
.course { display: grid; grid-template-columns: 78px minmax(0, 1fr) 195px; gap: clamp(1.1rem, 3vw, 2.7rem); padding: 1.65rem 0; border-bottom: 1px solid var(--line-dark); }
.course-rank { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; }
.course-rank strong { display: block; margin-bottom: .15rem; color: var(--terracotta); font-family: var(--serif); font-size: 2rem; line-height: 1; }
.level-fit-label { display: inline-block; margin: 0 0 .48rem; padding: .22rem .45rem; border-left: 3px solid var(--terracotta); background: color-mix(in srgb, var(--terracotta) 8%, var(--white)); color: var(--terracotta-dark); font-size: .72rem; font-weight: 700; line-height: 1.25; }
.course h3 { margin: 0; font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.12; }
.course-summary { margin: .55rem 0 .8rem; color: var(--text); font-size: .88rem; max-width: 690px; }
.reason-list { margin: .6rem 0 .85rem; padding-left: 1.15rem; color: var(--terracotta-dark); font-size: .8rem; }
.meta { display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin-top: .65rem; color: var(--muted); font-size: .76rem; }
.meta span { position: relative; } .meta span + span::before { content: "·"; position: absolute; left: -.62rem; }
.dates { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--chalk); font-size: .78rem; }
.dates.no-date { color: var(--muted); }
.source-format { margin-top: .55rem; color: var(--muted); font-size: .72rem; }
.course-action { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.price strong { display: block; font-size: 1rem; } .price span { display: block; color: var(--muted); font-size: .68rem; margin-top: .15rem; }
.course-link { display: inline-flex; align-items: center; min-height: 42px; border-bottom: 2px solid var(--terracotta); color: var(--black); text-decoration: none; font-weight: 700; font-size: .79rem; }
.course-link:hover { color: var(--terracotta-dark); }
.result-section-title { margin: 2.5rem 0 .3rem; color: var(--green-grey); font-size: 1.65rem; }
.catalog-count { margin: .85rem 0 0; color: var(--terracotta); font-weight: 700; font-size: .78rem; }
.source-note { display: block; margin-block: 2.1rem 3.3rem; padding: 1.4rem 0; border-top: 1px solid var(--chalk); border-bottom: 1px solid var(--chalk); }
.source-copy p { margin: .24rem 0 0; max-width: 880px; color: var(--muted); font-size: .79rem; }
footer { min-height: 80px; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; border-top: 1px solid var(--black); color: var(--muted); font-size: .75rem; }
footer a { color: var(--black); text-underline-offset: 2px; }
footer a:hover { color: var(--terracotta-dark); }
button:focus-visible,a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (max-width: 920px) {
  .info-inner { grid-template-columns: 1fr auto; gap: 1rem; } .info-actions { display: flex; }
  .finder-heading { grid-template-columns: 1fr; gap: 1rem; } .finder-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .finder-rail { padding-inline: 22px; } .question-panel { padding-inline: 2rem; }
  .course { grid-template-columns: 62px minmax(0, 1fr); } .course-action { grid-column: 2; flex-direction: row; align-items: end; }
}
@media (max-width: 700px) {
  .utility-inner,.info-inner,main,footer { width: min(calc(100% - 28px), var(--max)); }
  .utility-inner { min-height: 52px; gap: .7rem; } .source-state { display: none; } .utility-actions { gap: .65rem; } .header-dismiss { width: 32px; height: 32px; }
  .finder-heading { padding: 1.8rem 0 1.45rem; } .finder-heading h1 { font-size: clamp(2.1rem, 10vw, 3.15rem); }
  .finder-shell { display: block; min-height: 0; } .finder-rail { padding: 18px 18px 16px; margin-inline: -14px; }
  .progress-list,.rail-note { display: none; } .progress-track { margin: 12px 0 10px; } .rail-link { margin-top: .45rem; }
  .question-panel { padding: 2.4rem 0 3rem; } .question-panel h2 { font-size: clamp(2rem, 9vw, 3rem); }
  .options { grid-template-columns: 1fr; } .option { min-height: 100px; }
  .question-actions { position: static; background: var(--white); padding-bottom: 0; }
  .result-head,.catalog-heading { grid-template-columns: 1fr; align-items: start; } .result-actions { justify-content: flex-start; }
  .course { grid-template-columns: 46px minmax(0, 1fr); gap: .85rem; } .course-rank strong { font-size: 1.45rem; }
  .course-action { grid-column: 2; display: grid; grid-template-columns: 1fr; align-items: start; } .dates { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 1rem; } .info-inner { grid-template-columns: 1fr; } .info-actions { align-items: flex-start; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
