/* Coursework info pages (Support, Privacy, Terms, Final grade calculator).
   Same transit world as the landing page: signage black, platform white, gold for the Daily line. */

@font-face { font-family: "Overpass"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/overpass-latin-400-normal.woff2") format("woff2") }
@font-face { font-family: "Overpass"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/overpass-latin-600-normal.woff2") format("woff2") }
@font-face { font-family: "Overpass"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/overpass-latin-700-normal.woff2") format("woff2") }
@font-face { font-family: "Overpass"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/overpass-latin-800-normal.woff2") format("woff2") }

:root {
  --platform: #f6f7f5; --surface: #ffffff; --sunk: #eceeeb;
  --sign: #121314; --on-sign: #ffffff; --on-sign-2: #b9bcbf;
  --ink: #121314; --ink-2: #3d4043; --muted: #676b70;
  --rule: #d8dbd8; --rule-2: #e7e9e6;
  --gold: #f5a300; --gold-ink: #121314; --gold-soft: #fff1d1;
  --late: #d7261e; --link: #0b5fbf; --focus: #0b6fd6;
  --sans: "Overpass", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --r: 10px; --ease: cubic-bezier(.22, .9, .25, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --platform: #0d0e0f; --surface: #17181a; --sunk: #1f2123; --sign: #000000; --on-sign-2: #a8abaf;
    --ink: #f1f2f0; --ink-2: #c8cbcd; --muted: #9a9ea3; --rule: #2c2e31; --rule-2: #232527;
    --gold: #ffb52e; --gold-soft: #3a2a07; --late: #ff6a5f; --link: #6fb0ff; --focus: #6fb0ff;
    color-scheme: dark;
  }
}

* { box-sizing: border-box }
[hidden] { display: none !important }
html { -webkit-text-size-adjust: 100%; overflow-x: clip }
body { margin: 0; background: var(--platform); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; -webkit-tap-highlight-color: transparent }
::selection { background: var(--gold); color: var(--gold-ink) }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1.5px }
button, input { font: inherit; color: inherit }
button { cursor: pointer }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px }
.skip { position: absolute; left: 12px; top: -60px; z-index: 99; padding: 12px 16px; border-radius: var(--r); background: var(--gold); color: var(--gold-ink); font-weight: 800; text-decoration: none }
.skip:focus { top: 12px }

/* header: black sign bar */
.top { position: sticky; top: 0; z-index: 20; background: var(--sign); color: var(--on-sign); border-bottom: 1px solid #2a2c2f }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-sign); text-decoration: none }
.brand-mark { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--on-sign); box-shadow: inset 0 0 0 4px var(--gold) }
.brand-mark::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--sign) }
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: -.03em }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r); border: 2px solid transparent; font-weight: 700; font-size: 15.5px; line-height: 1; white-space: nowrap; text-decoration: none; transition: background-color 120ms var(--ease), transform 120ms var(--ease) }
.btn:active { transform: translateY(1px) scale(.98) }
.btn-go, .btn-primary { background: var(--gold); color: var(--gold-ink); box-shadow: 0 1px 0 rgba(0,0,0,.15), 0 6px 14px -8px rgba(160,100,0,.6) }
.btn-go:hover, .btn-primary:hover { background: #ffb21a }

/* title band */
.band { position: relative; isolation: isolate; overflow: hidden; background: var(--sign); color: var(--on-sign); padding: clamp(48px, 7vw, 88px) 0 clamp(44px, 6vw, 72px) }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 70% 90% at 80% 20%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 90% at 80% 20%, #000 20%, transparent 75%) }
.band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--gold) 0 38%, transparent 38%) }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--on-sign-2); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase }
.eyebrow::before { content: ""; width: 28px; height: 6px; border-radius: 3px; background: var(--gold) }
.band h1 { margin: 0; max-width: 18ch; font-weight: 800; font-size: clamp(40px, 6vw, 76px); line-height: .98; letter-spacing: -.045em; text-wrap: balance }
.band .meta { margin: 18px 0 0; max-width: 60ch; color: var(--on-sign-2); font-size: clamp(15px, 1.4vw, 17px) }

/* document body */
.doc { max-width: 760px; padding-top: 44px; padding-bottom: 88px }
.doc .summary { margin: 0 0 12px; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--rule); border-left: 6px solid var(--gold); background: var(--surface); color: var(--ink); font-size: 18px; font-weight: 700; line-height: 1.55 }
.doc h2 { display: flex; align-items: center; gap: 12px; margin: 44px 0 10px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -.025em; line-height: 1.15 }
.doc h2::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 4px solid var(--gold); background: var(--platform) }
.doc p, .doc li { color: var(--ink-2); font-size: 16.5px; line-height: 1.7 }
.doc strong { color: var(--ink) }
.doc ul { list-style: none; margin: 0; padding: 0 }
.doc li { position: relative; margin-bottom: 8px; padding-left: 22px }
.doc li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold) }

/* final grade calculator */
.calc { display: grid; gap: 16px; margin: 0 0 24px; padding: 24px; border-radius: 20px; background: var(--sign); color: var(--on-sign); box-shadow: 0 30px 60px -40px rgba(0,0,0,.6) }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0 }
.field > span { color: var(--on-sign-2); font-size: 13.5px; font-weight: 700 }
.field input { width: 100%; min-height: 50px; padding: 0 14px; border-radius: var(--r); border: 2px solid #3a3d40; background: #1c1d1f; color: #fff; font-size: 17px; font-variant-numeric: tabular-nums; transition: border-color 120ms }
.field input::placeholder { color: #8d9195 }
.field input:focus { outline: none; border-color: var(--gold) }
.calc .btn { justify-self: start; min-height: 52px; padding: 0 26px; font-size: 16.5px }
.form-err { margin: 0; color: #ff8f86; font-weight: 700; font-size: 14.5px }
.form-err:empty { display: none }
.calc-out { margin: 0 0 12px; padding: 22px 24px; border-radius: 20px; border: 1px solid var(--rule); border-left: 6px solid var(--gold); background: var(--surface) }
.calc-big { margin: 0 0 8px; color: var(--ink); font-size: clamp(28px, 5vw, 42px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; font-variant-numeric: tabular-nums }
.calc-table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums }
.calc-table caption { padding-bottom: 6px; color: var(--muted); font-size: 14px; text-align: left }
.calc-table th, .calc-table td { padding: 11px 0; border-bottom: 1px solid var(--rule); text-align: left }
.calc-table tr:last-child td { border-bottom: 0 }
.calc-table thead th { color: var(--muted); font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase }

/* footer: same as the landing page */
.foot { border-top: 1px solid var(--rule); padding: 28px 0 calc(44px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14.5px }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px }
.foot p { margin: 0 }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px }
.foot nav a { color: var(--ink-2); font-weight: 700; text-decoration: none }
.foot nav a:hover { color: var(--ink) }

@media (prefers-reduced-motion: reduce) { * { transition: none !important } }

@media (max-width: 760px) {
  .wrap { padding: 0 16px }
  .top-row { height: 62px }
  .brand-name { font-size: 19px }
  .doc { padding-top: 32px; padding-bottom: 64px }
  .doc .summary { padding: 18px 16px; font-size: 17px }
  .calc { padding: 20px 16px }
  .row2 { grid-template-columns: 1fr }
  .calc .btn { justify-self: stretch }
  .calc-out { padding: 18px 16px }
}
