*, *::before, *::after { box-sizing: border-box; }

/* The hidden attribute must actually hide, everywhere.
   It is otherwise applied only by the browser's own stylesheet, which
   ANY author display: rule outranks - so `.btn` below (display:
   inline-flex) silently defeated `element.hidden = true` and left two
   payment buttons on screen at checkout (DEF-020). That was patched
   locally in checkout.css at the time; this is the durable fix, since
   the trap applies to every .btn, .price-card, .row-card and anything
   else here that sets display.
   Standard practice - normalize.css and friends carry this exact rule
   for this exact reason. !important is warranted: `hidden` is a
   statement of fact, not a style preference. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100vw;
}

img, svg, video, canvas, audio, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--ink-2); text-decoration: none; }
a:hover { color: var(--accent-strong); }

/* A link inside a paragraph of prose must be distinguishable from its
   surrounding text by more than color alone (WCAG 2.2 SC 1.4.1, "Use
   of Color") - the base `a` rule above turns underlines off globally
   for nav items, buttons-styled-as-links, and card links, none of
   which need one (they're already visually set apart by position and
   styling). Underlining every <a> nested in a <p> is the standard,
   minimal-footprint fix that covers the actual failure mode (an
   inline link inside a sentence) without touching anything else -
   confirmed against the real running app via
   tools/accessibility_scan.py, this was a pre-existing gap the color
   refresh happened to surface, not something the refresh caused. */
p a, .crumb a { text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

::selection { background: oklch(0.90 0.08 85); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--ink); color: var(--on-ink);
  padding: 10px 16px; border-radius: var(--radius-md);
  font-size: var(--text-small); font-weight: 600;
  z-index: 100; transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 40px; }
.container--narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 40px; }

.section { padding: var(--space-8) 0 0; }
.section:last-child { padding-bottom: var(--space-8); }
.section--band { background: var(--bg-band); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section--dark { background: var(--brand); color: var(--on-ink); border-top: 1px solid var(--brand-soft); border-bottom: 1px solid var(--brand-soft); }
.section--dark h2, .section--dark h3 { color: var(--on-ink); }
.section--tight { padding-top: var(--space-6); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.eyebrow--on-dark { color: var(--accent-border); }
.u-on-dark { color: var(--on-ink); }
.u-on-dark-muted { color: var(--on-ink-muted) !important; }

.link-btn { font-family: var(--font-sans); font-size: var(--text-small); font-weight: 700; color: var(--brand); }
.link-btn:hover { color: var(--accent-strong); }

.crumb {
  font-family: var(--font-sans);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--ink-faint);
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; margin: 0; color: var(--ink); }
h1, h2 { font-weight: 800; }
h1 { font-size: var(--text-h1); line-height: 1.06; letter-spacing: -0.02em; }
h2 { font-size: var(--text-h2); line-height: 1.1; letter-spacing: -0.017em; }
h3 { font-size: var(--text-h3); letter-spacing: -0.014em; }

.lead { font-size: var(--text-lead); line-height: 1.55; color: var(--ink-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-size: var(--text-body);
  font-weight: 700; padding: 15px 26px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn--primary { background: var(--accent-strong); color: var(--accent-on); }
.btn--primary:hover { background: var(--accent-press); color: var(--accent-on); }
.btn--secondary { background: none; color: var(--ink); border-color: var(--border-strong); }
.btn--secondary:hover { border-color: var(--accent-strong); color: var(--accent-strong); }
.btn:disabled { cursor: default; opacity: 0.6; }
.btn--secondary:disabled:hover { border-color: var(--border-strong); color: var(--ink); }
.btn--accent { background: var(--accent-strong); color: var(--accent-on); }
.btn--accent:hover { background: var(--accent-press); }
.btn--sm { padding: 11px 20px; font-size: var(--text-small); }
.btn--block { width: 100%; }

/* Announcement bar (the comp's "utility bar") */
.announcement-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 24px; padding: 8px 40px; background: var(--brand); color: var(--on-ink-muted);
  font-family: var(--font-body); font-size: 0.78125rem; font-weight: 500;
}
.announcement-bar__group { display: flex; flex-wrap: wrap; gap: 18px; }
.announcement-bar__sep { opacity: 0.35; }
.announcement-bar a { color: var(--on-ink-muted); }
.announcement-bar a:hover { color: var(--on-ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  box-shadow: 0 1px 3px rgb(16 24 40 / 0.04);
  border-bottom: 1px solid var(--border-soft);
}
.site-header__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px 24px; flex-wrap: wrap;
  padding: 12px 40px;
}
.site-header__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex: 0 0 auto; }
.brand:hover { color: var(--ink); }
.brand__mark { flex: none; }
.brand__text { display: block; }
.brand__name { display: block; font-family: var(--font-serif); font-weight: 800; font-size: 17.5px; line-height: 1.1; letter-spacing: -0.03em; white-space: nowrap; }
.brand__domain { display: block; font-family: var(--font-sans); font-size: 9.5px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-soft); margin-top: 2px; white-space: nowrap; }

.site-search { display: flex; align-items: center; flex: 1 1 320px; min-width: 240px; max-width: 520px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.site-search input { flex: 1 1 auto; min-width: 0; font-family: var(--font-body); font-size: 0.90625rem; padding: 11px 14px; border: 0; background: transparent; color: var(--ink); }
.site-search input:focus { outline: none; }
.site-search button { font-family: var(--font-sans); font-size: var(--text-small); font-weight: 700; color: var(--on-ink); background: var(--brand); border: 0; padding: 11px 18px; cursor: pointer; white-space: nowrap; }
.site-search button:hover { background: var(--accent-strong); }

.site-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 0 40px 2px; border-top: 1px solid var(--border-soft); }
.site-nav__link {
  font-family: var(--font-sans); font-size: 0.875rem; font-weight: 600;
  color: var(--ink-2); padding: 12px 14px; border-bottom: 2px solid transparent; white-space: nowrap;
}
.site-nav__link:hover { color: var(--accent-strong); }
.site-nav__link.is-active { border-bottom-color: var(--accent); color: var(--ink); }
.site-nav__signin { font-family: var(--font-sans); font-size: var(--text-small); font-weight: 600; color: var(--ink-muted); padding: 9px 12px; }
.site-nav__signin:hover { color: var(--accent-strong); }

/* CR-099: the two revenue CTAs at the end of the nav row - set apart
   from the plain text links with a divider and real buttons, not
   another underlined link, so they read as "buy" rather than "browse". */
.site-nav__revenue {
  display: flex; align-items: center; gap: 8px;
  margin-left: 10px; padding-left: 12px; border-left: 1px solid var(--border-soft);
}
.site-nav__revenue .btn--sm { height: 34px; padding: 0 14px; font-size: 13px; white-space: nowrap; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-band); }
.footer__grid {
  max-width: var(--container-max); margin: 0 auto; padding: 56px 40px;
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer__about p { font-size: var(--text-small); line-height: 1.6; color: var(--ink-faint); margin: 14px 0 0; max-width: 26em; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: var(--text-small); }
.footer__col-title {
  font-family: var(--font-mono); font-size: 0.65625rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px;
}
.footer__col a { color: var(--ink-2); }
.footer__bottom { border-top: 1px solid var(--border); }
.footer__bottom-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 20px 40px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: var(--text-label); color: var(--ink-faint);
}

@media (max-width: 900px) {
  .site-header__row { padding: 12px 20px; }
  .site-nav { gap: 0; padding: 0 20px 2px; }
  .site-search { order: 3; flex-basis: 100%; max-width: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; padding: 44px 24px; }
}
@media (max-width: 640px) {
  .site-nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .container, .container--narrow { padding: 0 20px; }
}

/* CR-066: the header had no colour in it at all - a white bar with a
   white button inside it. One accent rule across the top, a brand mark
   that reads as a brand, and a call to action that looks like one. */
.site-header { border-top: 4px solid var(--accent); box-shadow: 0 2px 8px rgb(16 24 40 / .06); }
.brand__name { font-size: 19px; }
.brand__domain { color: var(--accent-strong); }
.site-nav__link { font-weight: 700; }
.site-nav__link:hover { color: var(--accent-strong); border-bottom-color: var(--accent-border); }
.site-header__actions .btn--primary,
.site-header__actions .btn--accent {
  height: 44px; padding: 0 22px; font-size: 15px; font-weight: 800;
  box-shadow: 0 2px 0 rgb(14 116 144 / .35);
}
.announcement-bar { background: var(--brand-strong); }

/* ===============================================================
   CR-075 — one mobile layer for every signed-in page.

   Measured with a real phone viewport (390x844, Chrome through
   Playwright) on 2026-10-13: the sign-up form overflowed the screen
   sideways, the announcement bar took three lines before anything
   useful, the search box took a whole row on every page, and the
   footer added roughly a thousand pixels to the bottom of each one.
   Most of this traffic arrives from Instagram on a phone, so these
   are not edge cases; they are the common case.

   Everything here is a media query. No desktop rule is touched.
   =============================================================== */
@media (max-width: 760px) {
  /* The chrome above the content was taller than the content. The
     search box lives on Find colleges, which is one tap away in the
     navigation, so it does not need a row of its own on a phone. */
  .site-search { display: none; }
  .announcement-bar { font-size: 11px; padding: 6px 0; }
  .announcement-bar__group:nth-child(2) { display: none; }
  .site-header__row { padding: 10px 16px; gap: 10px; }
  .brand__name { font-size: 16.5px; }
  .brand__domain { font-size: 8.5px; }
  .site-nav { padding: 0 16px 2px; }
  .site-nav__link { padding: 10px 12px; font-size: 13.5px; }
  .site-header__actions .btn--primary, .site-header__actions .btn--accent { height: 38px; padding: 0 14px; font-size: 13.5px; }

  /* Side padding small enough that a form field fits between the
     edges. 40px of padding on a 390px screen left 310px for inputs
     that wanted 380. */
  .container, .container--narrow { padding: 0 16px; }
  .section { padding-top: 22px; padding-bottom: 22px; }

  /* Every control big enough for a thumb, and 16px type so iOS does
     not zoom the page when a field takes focus. */
  input[type="text"], input[type="email"], input[type="password"], input[type="date"],
  input[type="number"], input[type="tel"], input[type="search"], select, textarea {
    width: 100%; box-sizing: border-box; min-height: 46px; font-size: 16px;
  }
  .btn { min-height: 46px; padding: 0 18px; }

  /* A wide table on a phone scrolls inside its own box rather than
     pushing the whole page sideways. */
  .admin-table-wrap, .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* The footer was a thousand pixels of links under every page. */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 20px; padding: 26px 16px; }
  .footer__about { grid-column: 1 / -1; }
  .footer__about p { font-size: 12.5px; }
  .footer__col { gap: 7px; font-size: 12.5px; }
  .footer__bottom-inner { padding: 14px 16px; font-size: 11px; gap: 10px; }
}

@media (max-width: 560px) {
  .announcement-bar { display: none; }
  .container, .container--narrow { padding: 0 14px; }
  .site-header__row { padding: 8px 14px; }
}

/* CR-075b: the header took three rows on a phone - brand, then the
   account buttons, then the navigation - before a single word of the
   page itself. Brand and buttons now share one row; the brand text
   shrinks rather than pushing the buttons onto their own line. */
@media (max-width: 760px) {
  .site-header__row { flex-wrap: nowrap; }
  .brand { min-width: 0; }
  .brand__text { min-width: 0; overflow: hidden; }
  .brand__name { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .site-header__actions { flex: none; gap: 6px; }
  .site-nav__signin { padding: 8px 8px; font-size: 13px; }
}

/* CR-075c: a signed-in header carries two controls (My account, Sign
   out) where a signed-out one carries one, and on a phone that pushed
   the row past the screen edge. Both shrink; the brand truncates
   before anything is allowed to overflow. */
@media (max-width: 760px) {
  .site-header__actions { flex-wrap: nowrap; min-width: 0; }
  .site-header__actions .btn--sm,
  .site-header__actions .btn { height: 34px; padding: 0 10px; font-size: 12.5px; }
  .site-header__signout { margin: 0; }
  .site-header__actions a { font-size: 12.5px; white-space: nowrap; }
  .brand { flex: 1 1 auto; }
}
@media (max-width: 420px) {
  /* At the narrowest common phone width the brand drops its second
     line and the wordmark alone identifies the site. */
  .brand__domain { display: none; }
  .brand__name { font-size: 14px; }
}
