/* Editorial look (in the spirit of thinkcompany.com) - grainy deep-navy bands, a cream page,
   heavy grotesk headlines, signal-red pills and markers, soft rounded cards and small mono labels. */
/* The web fonts, served from this site so no page tells Google a visitor's IP address (SIL Open Font License: /fonts/OFL.txt). */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-stretch: 100%; font-display: swap; src: url("/fonts/instrument-sans-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-stretch: 100%; font-display: swap; src: url("/fonts/instrument-sans-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 600 800; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 600 800; font-display: swap; src: url("/fonts/schibsted-grotesk-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #FDFFEE;               /* cream page */
  --frame: #EFF1E4;            /* tiles and cards */
  --frame-2: #E3E6D6;          /* hover / tracks */
  --surface: #FFFFFF;          /* inputs and cards that sit on a frame */
  --text: #031B36;             /* navy ink */
  --muted: #4E5D70;
  --faint: #4E5D70;
  --border: #DCDFCF;
  --border-strong: #C3C7B4;
  --primary: #031B36;          /* navy pills, the same blue as the top bar and hero */
  --primary-hover: #0B2C52;
  --on-primary: #FDFFEE;
  --on-primary-hover: #FDFFEE;
  --accent: #FF2C17;           /* red: logo mark, markers, the hero's second line */
  --on-accent: #031B36;
  --ink: #031B36;              /* navy bands: top bar, hero, call to action, footer */
  --ink-2: #0B2C52;
  --on-ink: #FDFFEE;
  --on-ink-muted: rgba(253, 255, 238, .72);
  --title: #031B36;            /* page titles (h1) */
  --good: #0F7B45;
  --warn: #8A4B00;
  --warn-soft: #FFF1D6;
  --danger: #D21F0E;
  --focus: #031B36;
  --radius: 18px;
  --radius-sm: 10px;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Schibsted Grotesk", "Instrument Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  /* Film grain over the navy bands, plus a soft red and blue glow. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .16 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --ink-bg: var(--grain),
    radial-gradient(ellipse 60% 70% at 85% 15%, rgba(255, 44, 23, .16), transparent 70%),
    radial-gradient(ellipse 70% 80% at 10% 100%, rgba(84, 128, 196, .32), transparent 70%),
    var(--ink);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #031B36;
    --frame: #0B2C52;
    --frame-2: #163A64;
    --surface: #04203F;
    --text: #FDFFEE;
    --muted: #AEBBCC;
    --faint: #AEBBCC;
    --border: #1F4370;
    --border-strong: #2F5689;
    --primary: #8DB8F2;        /* lighter banner blue so pills show on the navy page */
    --primary-hover: #B9D4F8;
    --on-primary: #031B36;
    --on-primary-hover: #031B36;
    --ink: #020F21;
    --ink-2: #0B2C52;
    --title: #FDFFEE;
    --good: #5BD69A;
    --warn: #FFC56B;
    --warn-soft: #2B2614;
    --danger: #FF7A6B;
    --focus: #FDFFEE;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  /* Keeps the navy footer at the bottom of short pages. */
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
}
img, svg { display: block; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); color: var(--text); font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); line-height: 1.05; color: var(--title); font-weight: 800; }
h2 { font-size: 1.4rem; line-height: 1.15; }
h3 { font-size: 1.08rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }
strong { font-weight: 600; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: .875rem; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--text); color: var(--bg); }

/* ---------- layout ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--ink);
  color: var(--on-ink);
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px; min-height: 72px;
  display: flex; align-items: center; gap: 12px;
}
/* The links sit just after the logo rather than at the far edge of the bar. */
.topbar-inner nav { margin-left: 20px; }
@media (max-width: 640px) { .topbar-inner nav { margin-left: auto; } }
@media (max-width: 640px) { .topbar-inner { padding: 0 24px; min-height: 60px; } }
.topbar nav { gap: 4px; flex-wrap: nowrap; }
.topbar .btn { white-space: nowrap; }
/* Short labels ("Invite") once the top bar gets crowded. */
@media (max-width: 900px) { .topbar .hide-sm { display: none; } }
/* On narrow phones, signed-in students get several links: keep just the logo mark and tighten the buttons. */
@media (max-width: 520px) {
  .topbar .btn { padding: 0 9px; font-size: .85rem; }
  .topbar-inner:has(#nav-invite:not([hidden])) .brand-name,
  .topbar-inner:has(#nav-parents:not([hidden])) .brand-name { display: none; }
}
.topbar .btn { min-height: 40px; padding: 0 16px; font-size: .9rem; }
/* Signed-in sponsors get four links: on phones keep just the logo mark and tighten them. */
@media (max-width: 640px) { .topbar-inner:has(#nav-reports:not([hidden])) .brand-name { display: none; } }
@media (max-width: 520px) { .topbar-inner:has(#nav-reports:not([hidden])) .btn { padding: 0 9px; font-size: .85rem; } }
/* Signed-out visitors get Careers, Education & Training, Parents & Counselors, Sponsors and Log in: as the bar narrows,
   drop the logo text, then Careers and Education & Training, then Sponsors (all still in the footer). */
@media (max-width: 940px) { .topbar-inner:has(#nav-careers:not([hidden])) .brand-name { display: none; } }
@media (max-width: 780px) { .topbar #nav-careers, .topbar #nav-training { display: none; } }
@media (max-width: 480px) { .topbar #nav-sponsors { display: none; } }
@media (max-width: 480px) {
  .topbar #nav-signout { display: none; } /* still on the dashboard and profile pages */
}
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.04em; color: var(--on-ink); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.topbar .btn-ghost, .topbar .btn-link { color: var(--on-ink-muted); }
.topbar .btn-ghost:hover, .topbar .btn-link:hover { color: var(--on-ink); }
/* On the navy bands a navy pill would vanish, so buttons there are cream. */
.topbar .btn-primary, .cta .btn-primary { background: var(--on-ink); color: var(--ink); }
.topbar .btn-primary:hover, .cta .btn-primary:hover { background: #FFFFFF; color: var(--ink); }
.topbar :focus-visible, .cta :focus-visible { outline-color: var(--on-ink) !important; }
.progress { height: 3px; background: transparent; }
.progress > span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .35s ease; }

main { flex: 1 0 auto; width: 100%; max-width: 1200px; margin: 0 auto; padding: 40px 32px 112px; }
@media (max-width: 640px) { main { padding: 24px 24px 104px; } }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

/* Cards are soft, rounded panels on the cream page. */
.card {
  background: var(--frame);
  border-radius: var(--radius);
  padding: 20px;
}
@media (min-width: 640px) { .card { padding: 32px; } }

/* A full-width grainy navy band (the hero and the closing call to action). */
.band { position: relative; color: var(--on-ink); }
.band::before {
  content: ""; position: absolute; z-index: -1; inset: 0 auto 0 50%; width: 100vw;
  transform: translateX(-50%); background: var(--ink-bg); background-size: 180px 180px, auto, auto, auto;
}
.band h1, .band h2 { color: var(--on-ink); }
.band .card { background: var(--bg); color: var(--text); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.band .card h2 { color: var(--text); }

/* Small mono labels, like "FEATURED WORK" on thinkcompany.com. */
.eyebrow { align-self: flex-start; color: var(--muted); font-family: var(--font-mono); font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.band .eyebrow { color: var(--on-ink-muted); }

/* ---------- buttons ---------- */
.btn {
  appearance: none; border: 1px solid transparent; border-radius: 999px;
  min-height: 44px; padding: 0 20px;
  font-family: inherit; font-size: .95rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; text-decoration: none;
  transition: background .12s, border-color .12s, color .12s;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary-hover); }
.btn-primary:disabled { background: var(--frame-2); color: var(--muted); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--bg); }
.topbar .btn-ghost { background: transparent; border-color: transparent; }
.topbar .btn-ghost:hover { background: transparent; }
.btn-link { background: none; border: 0; color: var(--muted); padding: 0 8px; min-height: 44px; }
.btn-link:hover { color: var(--text); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, .choice input:focus-visible + span, a:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 8px; }

/* ---------- forms ---------- */
label.field { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--text); }
.hint { color: var(--muted); font-size: .85rem; }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  font-family: inherit; font-size: 16px; line-height: 1.4; letter-spacing: -0.01em;
  transition: border-color .12s;
}
input:hover, select:hover, textarea:hover { border-color: var(--border-strong); }
input:focus, select:focus, textarea:focus { border-color: var(--text); outline: none; }
input:disabled, select:disabled { background: var(--frame); color: var(--muted); }
textarea { resize: vertical; min-height: 46px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; }

/* option cards (learning mode etc.) */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer;
  transition: border-color .12s;
}
.choice span:hover { border-color: var(--border-strong); }
.choice small { color: var(--muted); font-size: .85rem; }
.choice input:checked + span { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }

/* Likert scale */
.q { padding: 22px 0; border-top: 1px solid var(--border); }
.q:first-child { border-top: 0; padding-top: 4px; }
.q-text { font-size: 1.05rem; margin-bottom: 14px; float: left; width: 100%; }
.q-text + * { clear: both; }
.scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.scale label { position: relative; }
.scale input { position: absolute; opacity: 0; inset: 0; }
.scale label > span {
  display: grid; place-items: center; min-height: 46px; padding: 6px 4px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  font-size: .82rem; text-align: center; line-height: 1.15; cursor: pointer; color: var(--muted);
  transition: border-color .12s, background .12s, color .12s;
}
.scale label > span:hover { border-color: var(--text); color: var(--text); }
.scale input:checked + span, .scale input:checked + span .num { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.scale input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.scale-ends { display: none; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 560px) {
  .scale span .lbl { display: none; }
  .scale span .num { font-size: 1rem; }
  .scale-ends { display: flex; }
}
@media (min-width: 561px) { .scale span .num { display: none; } }

/* Aptitude options */
.options { display: grid; gap: 8px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; }
.option span {
  display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 10px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer;
  transition: border-color .12s;
}
.option span:hover { border-color: var(--border-strong); }
.option b { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); color: var(--muted); font-size: .82rem; font-weight: 400; }
.option input:checked + span { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.option input:checked + span b { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.option input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- home ---------- */
.hero { display: flex; flex-direction: column; gap: 16px; }
.hero p { font-size: 1.05rem; color: var(--muted); max-width: 54ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.steps li { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 2px solid var(--text); }
.steps .n { color: var(--muted); font-family: var(--font-mono); font-size: .8rem; font-weight: 500; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.steps .n::before { content: "0"; }
.steps h3 { font-size: 1.25rem; }
.part-foot { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }

/* ---------- "couldn't save" notice, bottom left (the chat button sits bottom right) ---------- */
.save-status { position: fixed; left: 16px; bottom: 16px; z-index: 30; max-width: min(420px, calc(100vw - 32px)); margin: 0;
  padding: 10px 16px; border-radius: var(--radius-sm); background: var(--ink); color: var(--on-ink); font-size: .9rem;
  box-shadow: 0 6px 24px rgba(3, 27, 54, .25); }
.save-status.problem { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn); }
.save-status[hidden] { display: none; }
@media (max-width: 640px) { .save-status { bottom: 84px; } } /* above the chat button on phones */

/* ---------- divider between sections ---------- */
.divider-count { color: var(--muted); font-family: var(--font-mono); font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding-top: 12px; border-top: 1px solid var(--frame); }

/* ---------- landing ---------- */
.landing { display: flex; flex-direction: column; gap: 88px; }
/* One column at every width (the user chose this): the pitch, then "Start Here", then the feature pills. */
.landing-hero { display: flex; flex-direction: column; gap: 40px; margin-top: -40px; padding: 56px 0 72px; }
.landing-hero .signup-card { width: 100%; max-width: 520px; }
.landing-hero .checks { margin: 0; }
@media (max-width: 640px) { .landing-hero { margin-top: -24px; padding: 40px 0 48px; } }
@media (min-width: 900px) { .landing-hero { padding: 88px 0 96px; } }
.landing h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: .98; letter-spacing: -0.045em; font-weight: 800; }
.hl { display: block; color: var(--accent); }
.landing-hero .hero p { color: var(--on-ink-muted); font-size: 1.1rem; }
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.checks li { padding: 8px 16px; border-radius: 999px; background: rgba(253, 255, 238, .06); border: 1px solid rgba(253, 255, 238, .22); font-size: .9rem; color: var(--on-ink); }
.signup-card h2 { font-size: 1.7rem; }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.04em; line-height: 1; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border-strong); }

/* Gallery tiles: a grey frame holding a small preview, with a caption underneath. */
.features { display: grid; grid-template-columns: 1fr; gap: 40px 24px; }
@media (min-width: 600px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.feature { display: flex; flex-direction: column; gap: 14px; }
.tile-frame { aspect-ratio: 16 / 11; border-radius: var(--radius); background: var(--frame); padding: 24px; display: grid; place-items: center; overflow: hidden; transition: background .15s; }
.feature:hover .tile-frame { background: var(--frame-2); }
.tile-shot { width: 100%; max-width: 260px; background: var(--surface); border-radius: var(--radius-sm); padding: 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 12px 28px -14px rgba(3, 27, 54, .35); transition: transform .25s; }
.feature:hover .tile-shot { transform: translateY(-4px) rotate(-1deg); }
.tile-shot .big { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; letter-spacing: -0.04em; line-height: 1; }
.tile-shot .line { height: 6px; border-radius: 3px; background: var(--frame-2); }
.tile-shot .line.dark { background: var(--text); }
.tile-shot .tiny { font-size: .75rem; color: var(--muted); }
.tile-shot .pill { align-self: flex-start; font-size: .75rem; padding: 3px 10px; border-radius: 999px; background: var(--primary); color: var(--on-primary); }
.tile-shot .bubble { align-self: flex-start; max-width: 85%; font-size: .78rem; padding: 6px 10px; border-radius: 10px; background: var(--frame); }
.tile-shot .bubble.me { align-self: flex-end; background: var(--primary); color: var(--on-primary); }
.tile-cap { display: flex; flex-direction: column; gap: 2px; }
.tile-cap p { color: var(--muted); font-size: .92rem; }

.faq details { padding: 18px 0; border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.015em; min-height: 28px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-family: var(--font); font-weight: 500; display: grid; place-items: center; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; max-width: 64ch; }
.cta { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: 80px 0; margin-bottom: -112px; }
@media (max-width: 640px) { .cta { padding: 56px 0; margin-bottom: -104px; } }
.cta h2 { font-size: clamp(2rem, 5.4vw, 3.8rem); line-height: 1; letter-spacing: -0.045em; font-weight: 800; }
.cta .btn { min-height: 52px; padding: 0 28px; font-size: 1.05rem; }
.narrow { max-width: 560px; margin: 0 auto; width: 100%; }
.forgot summary, .change-password summary { cursor: pointer; color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; min-height: 28px; }
.change-password { padding: 14px 0 0; border-top: 1px solid var(--border); }
#account-line { overflow-wrap: anywhere; } /* a long email address mustn't push the page sideways on a phone */
.form-error { color: var(--danger); font-size: .92rem; }
.form-error:empty { display: none; }
.mail-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }

/* ---------- results ---------- */
.bar { height: 6px; border-radius: 999px; background: var(--frame-2); overflow: hidden; }
.card .bar { background: var(--border-strong); }
.bar > span { display: block; height: 100%; border-radius: inherit; background: var(--text); }
.bar-ends { grid-column: 2; display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-top: -8px; }

/* Tabs wrap onto more lines on narrow screens instead of scrolling sideways. */
.tabs { display: inline-flex; flex-wrap: wrap; align-self: flex-start; gap: 4px; margin-bottom: 16px; max-width: 100%; }
.tab { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; background: transparent; font-family: inherit; font-size: .92rem; letter-spacing: -0.01em; color: var(--muted); cursor: pointer; }
.tab:hover { color: var(--text); }
/* The results tabs plus a "Look up a career" link that sits beside them (a link, not a tab: it opens another page). */
.tabs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 16px; }
.tabs-row .tabs { margin-bottom: 0; }
.tab-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.tab-link::after { content: "→"; }
.tab[aria-selected=true] { background: var(--surface); border-color: var(--border); color: var(--text); }

.match { display: flex; flex-direction: column; gap: 14px; color: inherit; scroll-margin-top: 88px; transition: background .15s; }
.match:hover { background: var(--frame-2); }
.more-row { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0 4px; text-align: center; }
.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
.match-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.score { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface); font-size: .95rem; font-variant-numeric: tabular-nums; }
.score::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .8rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--muted); }
.tag.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.match h3 { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.03em; }
.match-title { color: inherit; text-decoration: none; }
.match-title:hover { text-decoration: underline; }
.pay { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-height: 34px; }
.pay-amt { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; letter-spacing: -0.04em; color: var(--text); }
.pay-label { color: var(--muted); }
.pay-other { font-size: .88rem; color: var(--muted); }
.pay-other::before { content: "· "; }
.pay-loading { display: inline-block; width: 220px; height: 26px; border-radius: 4px; }
.mini-head { display: block; margin-bottom: 4px; font-size: .8rem; color: var(--muted); }
.job-about { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); }
.match-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
/* "Find Related Careers": its own row along the bottom of the card; the list opens below it. */
.related-row { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--border-strong); }
.related-toggle { width: 100%; }
.related-panel .lookup-hit { background: var(--surface); }
.related-panel .lookup-hit:hover { background: var(--frame-2); }
/* Heart toggle at the top of each match card, beside the score. */
.match-side { flex: none; display: flex; align-items: center; gap: 8px; }
.love { min-height: 38px; padding: 0 14px; gap: 6px; background: var(--surface); border-color: var(--border-strong); color: var(--text); font-size: .9rem; }
.love svg { color: var(--accent); transition: transform .15s; }
.love:hover { border-color: var(--accent); }
.love:hover svg { transform: scale(1.15); }
.love.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
/* Love buttons on fields of study and school programs: smaller, beside the name. */
.love-sm { min-height: 34px; padding: 0 12px; font-size: .85rem; flex: none; }
.major-head, .program-head, .loved-training-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.loved-training { display: flex; flex-direction: column; gap: 4px; }
.loved-training h3 { font-size: 1.1rem; margin-top: 2px; }
.section-sub { font-size: 1.15rem; margin-top: 8px; }
.compare-major-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.compare-major-head .love-sm { font-family: var(--font); font-weight: 500; letter-spacing: 0; }
.tab-loved { display: inline-flex; align-items: center; gap: 6px; }
.tab-loved svg { color: var(--accent); }
.loved-empty svg { width: 40px; height: 40px; color: var(--accent); }
/* On narrower screens the buttons and score drop below the title; on phones they share the row evenly. */
@media (max-width: 760px) { .match-head { flex-wrap: wrap; } .match-side { flex: 1 1 100%; flex-wrap: wrap; } .match-side .score { margin-left: auto; } }
@media (max-width: 480px) { .match-side .btn { flex: 1 1 auto; } }

/* "I'm NOT interested": an outlined red button beside Love, so it's easy to spot. Undo sits at the end of the
   action row on the "Not interested" tab. */
.match-actions .not-interested { margin-left: auto; }
.match-side [data-action=not-interested] { min-height: 38px; padding: 0 14px; gap: 6px; font-size: .9rem; color: var(--danger); border-color: var(--danger); }
.match-side [data-action=not-interested]:hover { background: var(--danger); border-color: var(--danger); color: #FFFFFF; }
@media (prefers-color-scheme: dark) { .match-side [data-action=not-interested]:hover { color: var(--bg); } }
@media (max-width: 480px) { .match-actions .btn { flex: 1 1 140px; } }

.program-finder { scroll-margin-top: 88px; }
.finder-head { display: flex; gap: 14px; align-items: flex-start; }
.finder-title { font-size: clamp(1.5rem, 4vw, 2rem); }
.finder-head .feature-icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; margin: 0; }
.feature-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--text); display: grid; place-items: center; }
.finder { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.finder-career, .finder .btn, .finder-online { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .finder-career, .finder .btn { grid-column: auto; }
  .finder { grid-template-columns: 1.6fr 1.2fr .8fr auto; align-items: end; }
  .finder-online { grid-column: 1 / -1; }
}
.finder-count { margin-bottom: 4px; }
#finder-results .program:first-of-type { border-top: 0; }

.mini-fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 10px; font-size: .8rem; color: var(--muted); }
.mini-fit .bar { height: 4px; margin-top: 6px; }
@media (max-width: 480px) { .mini-fit { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* ---------- look up a career ---------- */
.lookup-form { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .lookup-form { grid-template-columns: 1fr auto; align-items: end; } }
.lookup-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.lookup-hit { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--radius); background: var(--frame); color: inherit; text-decoration: none; transition: background .15s; }
.lookup-hit:hover { background: var(--frame-2); }
/* "More like your Loved careers" at the end of the Loved tab reuses the lookup list. */
.similar-section { margin-top: 28px; padding-top: 24px; border-top: 2px solid var(--text); }
.lookup-title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.lookup-hit:hover .lookup-title { text-decoration: underline; text-underline-offset: 3px; }
.lookup-rank { font-size: 1.02rem; }
.lookup-rank strong { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; }
.lookup-fit { color: var(--text); font-size: .85rem; }
.fit-val { float: right; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .hide-sm { display: none; } }

ul.plain { margin: 0; padding-left: 20px; }
ul.plain li + li { margin-top: 6px; }
/* "How to use your matches" at the top of the matches tab. */
.match-tips summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.015em; min-height: 28px; }
.match-tips p { margin: 0; line-height: 1.55; }
.tips-list { line-height: 1.55; }
.tips-list li + li { margin-top: 8px; }
.tips-list svg { display: inline; vertical-align: -2px; color: var(--accent); }

/* ---------- career detail ---------- */
.wage { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--radius-sm); background: var(--surface); }
.wage .amt { font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -0.04em; color: var(--text); }
.wage.local { box-shadow: inset 0 0 0 1px var(--text); }
/* "How to get there": numbered steps joined by a thin line, ending on this career. */
.path { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.path li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding-bottom: 22px; }
.path li:last-child { padding-bottom: 0; }
.path li:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 1px; background: var(--border-strong); }
.path-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border-strong); color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.path li.here .path-n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
/* Roles beyond this career: dashed, since they're possibilities rather than the usual route in. */
.path.next .path-n { border-style: dashed; }
.path.next li:not(:last-child)::before { background: none; border-left: 1px dashed var(--border-strong); }
.path-body { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; }
.path-body h3 { font-size: 1.05rem; }
.path-related { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.path-related li { display: flex; flex-direction: column; }.note { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn); font-size: .92rem; }
.program { padding: 16px 0; border-top: 1px solid var(--border-strong); display: flex; flex-direction: column; gap: 4px; }
.program:first-child { border-top: 0; }
.program-link { align-self: flex-start; margin-top: 4px; font-size: .9rem; font-weight: 500; }
/* A school profile's address and website link. */
.school-place { display: flex; flex-direction: column; gap: 2px; }
.filters { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .filters { grid-template-columns: 2fr 1fr auto; align-items: end; } }

/* ---------- loading ---------- */
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--frame-2); border-top-color: var(--text); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.center { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 56px 0; text-align: center; }
.skeleton { background: linear-gradient(90deg, var(--frame-2), var(--border-strong), var(--frame-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 4px; height: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- counselor chat ---------- */
.chat-fab {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 30;
  min-height: 48px; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .35);
}
.chat {
  position: fixed; z-index: 40; background: var(--bg); border: 1px solid var(--border);
  display: flex; flex-direction: column; box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .25);
  inset: auto 0 0 0; height: min(80vh, 640px); border-radius: 10px 10px 0 0;
}
@media (min-width: 720px) { .chat { inset: auto 24px 24px auto; width: 400px; height: 600px; border-radius: 10px; } }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 12px 14px 20px; border-bottom: 1px solid var(--border); }
.chat-head { background: var(--ink); color: var(--on-ink); border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.chat-head h3 { color: var(--on-ink); }
.chat-head .faint { color: var(--on-ink-muted); }
.chat-head .icon-btn { color: var(--on-ink-muted); }
.chat-head .icon-btn:hover { background: rgba(253, 255, 238, .1); color: var(--on-ink); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; font-size: .95rem; }
.msg.user { align-self: flex-end; background: var(--primary); color: var(--on-primary); border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: var(--frame); border-bottom-left-radius: 4px; }
.msg .used { display: block; margin-top: 6px; font-size: .75rem; color: var(--muted); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: var(--frame); color: var(--text); }

footer { padding: 32px max(32px, calc((100% - 1200px) / 2 + 32px)) 48px; background: var(--ink); color: var(--on-ink-muted); font-size: .82rem; border-top: 1px solid rgba(253, 255, 238, .12); }
@media (max-width: 640px) { footer { padding: 28px 24px 40px; } }
main:focus { outline: none; }

/* ---------- "how likely are you to recommend" (bottom of the results page) ---------- */
.nps { margin-top: 12px; }
.nps-answered { display: flex; flex-direction: column; gap: 12px; }
.nps-answered p { margin: 0; }
.nps-score { font-size: 1.2rem; }
.nps fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.nps legend { padding: 0; margin-bottom: 14px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.03em; }
.nps-scale { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; }
.nps-option { position: relative; }
.nps-option input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.nps-option span { display: grid; place-items: center; min-height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); font-weight: 600; font-variant-numeric: tabular-nums; }
.nps-option input:hover + span { border-color: var(--text); }
.nps-option input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.nps-option input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.nps-ends { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: .82rem; }
.nps textarea { width: 100%; }
/* Two rows of buttons on phones, so each stays big enough to tap. */
@media (max-width: 480px) { .nps-scale { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.nps-comments { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.nps-comments li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; }
.nps-comments p { margin: 0 0 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.nps-chip { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 700; color: #fff; }
.nps-chip.pro { background: #2E7D4F; }
.nps-chip.pas { background: #8A7A2B; }
.nps-chip.det { background: var(--danger); }

/* ---------- public career and major pages (/careers/..., /majors/...) ---------- */
main.public { max-width: 920px; }
.quiz-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  margin-bottom: 28px; padding: 22px 26px; border-radius: var(--radius); background: var(--ink); color: var(--on-ink); }
.quiz-banner .quiz-q { margin: 0; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.03em; }
.quiz-banner .quiz-sub { margin: 4px 0 0; color: var(--on-ink-muted); font-size: .92rem; }
.quiz-banner .btn-primary { background: var(--on-ink); color: var(--ink); }
.quiz-banner .btn-primary:hover { background: #FFFFFF; color: var(--ink); }
.public-page { gap: 20px; }
.public-back { align-self: flex-start; display: inline-flex; align-items: center; padding: 0; }
.public-lead { font-size: 1.12rem; line-height: 1.6; margin: 0; }
.public-big { margin: 0; font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; }
.public-big .muted { font-family: var(--font); font-size: 1rem; font-weight: 400; letter-spacing: 0; }
.public-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.public-index { list-style: none; margin: 0; padding: 0; columns: 2 260px; column-gap: 32px; }
.public-index li { break-inside: avoid; padding: 3px 0; }
.public-page h3 { margin-top: 4px; }
.public-page h4 { margin: 0 0 4px; font-family: var(--font-display); font-size: 1rem; font-weight: 600; line-height: 1.3;
  letter-spacing: -0.015em; color: var(--text); }
.public-page .path-body h4 { margin: 0; font-size: 1.05rem; }
/* "Start Here for More Info" on a career page: what the app adds (the visitor's fit, local pay, programs). */
.start-here { border: 2px solid var(--accent); }
.start-here p { margin: 0; }
.public-list { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; line-height: 1.55; }
/* "What we never do" at the top of the parents page: the promises, in larger type. */
.never-do h2 { font-size: clamp(1.5rem, 3.6vw, 1.9rem); }
.never-do .public-list { font-size: clamp(1.15rem, 2.8vw, 1.35rem); font-weight: 600; line-height: 1.45; gap: 12px; }
footer a { color: inherit; }
@media (max-width: 640px) { .quiz-banner { padding: 18px; } .quiz-banner .btn, .start-here .btn { width: 100%; } }
/* Google AdSense space after a public page's content (only when Ads is set up). Space is kept for it so the page
   doesn't jump when the ad arrives. */
.ad-slot { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); }
.ad-slot .ad-label { margin: 0 0 8px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ad-slot .adsbygoogle { min-height: 100px; }
.ad-slot .ad-label strong { font-family: var(--font); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: .85rem; color: var(--text); }
/* A sponsored listing (public pages and the sponsor's preview): image, then headline, text and a call to action. */
.sponsored { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); text-decoration: none; }
.sponsored:hover { border-color: var(--accent); }
.sponsored img { width: 160px; max-width: 40%; height: auto; border-radius: 8px; flex: none; }
.sponsored-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sponsored-headline { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.015em; }
.sponsored-body { color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.sponsored-cta { font-weight: 600; color: var(--text); }
/* The sponsor's optional contact email, under the listing. */
.sponsored-email { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-weight: 600; color: var(--text);
  text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.sponsored-email::before { content: "✉"; margin-right: 8px; text-decoration: none; }
@media (max-width: 520px) { .sponsored { flex-direction: column; } .sponsored img { width: 100%; max-width: 100%; } }

/* Sponsor pages (/advertise/) and the admin's advertising page. */
.tag-warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.editor { align-items: start; }
.placements { border: 0; padding: 0; margin: 0; }
.placements legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.chosen-list, .pl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.chosen-list li, .pl-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.total { margin: 0; }
.review-item .placement-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); }
.review-item .placement-row input[type=text] { flex: 1 1 200px; min-height: 36px; }
/* Three links in the top bar: on narrow phones show just the logo mark, as in the app. */
/* Public pages' top bar has four links: drop the logo text, then Careers and Education & Training (still in the
   footer), as it narrows. */
@media (max-width: 820px) { .public-top .brand-name { display: none; } }
@media (max-width: 600px) { .public-top .explore-link { display: none; } }

/* ---------- majors for loved careers ---------- */
.major-career h2 { margin-bottom: 2px; }
.major-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.major { display: grid; gap: 8px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface); }
.major h3 { font-size: 1.1rem; }
.major-pay { margin: 0; }
.tag-on { border-color: var(--text); color: var(--text); font-weight: 500; }
.major-colleges summary { cursor: pointer; font-weight: 500; padding: 4px 0; }
.major-colleges[open] summary { margin-bottom: 8px; }
.major-level { max-width: 280px; margin-bottom: 10px; }
.major-college-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.major-college-list li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--border-strong); }
.major-college-list h4 { font-size: 1rem; }

/* ---------- usage metrics (admin) ---------- */
.admin-period { min-width: 180px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--radius); background: var(--frame); }
.kpi strong { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: -0.04em; line-height: 1.1; }
.admin .card { margin-bottom: 20px; }
.admin-grid { gap: 20px; }
.admin-grid .card { margin-bottom: 0; }
.admin-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.admin-bars li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 40%) 3.5em; align-items: center; gap: 12px; }
.admin-bars .val { text-align: right; font-variant-numeric: tabular-nums; }
/* sponsor dashboard charts: one bar per day */
.adv-chart { margin: 0; display: grid; gap: 8px; }
.adv-chart svg { display: block; width: 100%; height: 110px; }
.adv-chart rect { fill: var(--text); }
.adv-chart-clicks rect { fill: var(--accent); }
.adv-chart .bar-ends { grid-column: auto; margin-top: 0; }
.tab[aria-pressed=true] { background: var(--surface); border-color: var(--border); color: var(--text); }
.admin-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .9rem; }
.admin-table th, .admin-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border-strong); vertical-align: top; }
.admin-table th { color: var(--muted); font-weight: 500; }
.admin-table td:not(:first-child) { font-variant-numeric: tabular-nums; }

/* ---------- invite a friend (dialog from the top bar) ---------- */
.invite { width: min(440px, calc(100vw - 32px)); padding: 24px; border: 0; border-radius: var(--radius); background: var(--bg); color: var(--text);
  box-shadow: 0 20px 60px rgba(3, 27, 54, .35); }
.invite::backdrop { background: rgba(3, 27, 54, .55); }
.invite h2 { margin-bottom: 6px; }
.invite input { width: 100%; }
.invite-sent { color: var(--text); font-weight: 500; }
.invite-sent:empty { display: none; }

/* ---------- job outlook and where they work (career page, comparison) ---------- */
.bright { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.bright-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.tag-bright { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 500; }
[data-bright]:empty { display: none; }
/* Rank and the Bright Outlook badge, above the career's title. */
.match-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.facts { display: grid; gap: 10px; margin: 0; }
.facts div { display: grid; gap: 2px; }
.facts dt { color: var(--muted); font-size: .85rem; }
.facts dd { margin: 0; }
.industries { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.industries li { display: grid; grid-template-columns: minmax(0, 1fr) 120px 3.5em; align-items: center; gap: 12px; }
.industries .val { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .industries li { grid-template-columns: minmax(0, 1fr) 3.5em; } .industries .bar { display: none; } }

/* ---------- compare careers ---------- */
.compare-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); background: var(--frame); }
.table-scroll:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; }
.compare th, .compare td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-strong); }
.compare thead th { font-family: var(--font-display); font-size: 1.05rem; }
.compare thead th a { color: inherit; }
.compare tbody th { width: 22%; color: var(--muted); font-weight: 500; font-size: .9rem; }
/* Row labels stay in view while the table scrolls sideways on a phone. */
.compare tbody th, .compare thead td { position: sticky; left: 0; background: var(--frame); z-index: 1; }
@media (max-width: 640px) { .compare tbody th { width: 96px; min-width: 96px; } }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare-majors { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: .85rem; margin: 2px 0; }

/* ---------- what you can do now (career path) ---------- */
.now-steps { display: grid; gap: 8px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); }
.now-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.now-list li { display: grid; gap: 2px; padding-left: 18px; position: relative; }
.now-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- tuition and pay (training finder) ---------- */
.tuition { font-size: .9rem; }
.cost-pay { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 8px 0; }
.cost-pay > div { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); }
.cost-pay strong { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.03em; }

/* ---------- notes on loved careers ---------- */
.career-note { display: grid; gap: 6px; }
.career-note .field { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.career-note textarea { width: 100%; }

/* ---------- printable summary ---------- */
.summary-head h1 { margin-top: 6px; }
.summary-block { display: grid; gap: 8px; padding: 20px 24px; border-radius: var(--radius); background: var(--frame); }
.summary-block p { margin: 0; }
.summary-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.summary-table th, .summary-table td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-strong); }
.summary-table th { color: var(--muted); font-weight: 500; }
.summary-note { margin-top: 4px; color: var(--muted); font-size: .85rem; white-space: pre-wrap; }
@media (max-width: 560px) { .summary-table { font-size: .82rem; } .summary-table th, .summary-table td { padding: 6px 4px; } }

@media print {
  .topbar, footer, .chat, .chat-fab, .no-print, .progress { display: none !important; }
  body { background: #fff !important; color: #000; }
  body::before, body::after { display: none !important; }
  main { padding: 0 !important; }
  .summary-block { background: none; border: 1px solid #999; break-inside: avoid; padding: 12px 14px; }
  .summary-block.summary-long { break-inside: auto; } /* longer than a page: let it continue, row by row */
  .summary-block h2, .summary-block h3 { break-after: avoid; }
  .summary-table tr { break-inside: avoid; }
  .summary-table th, .summary-table td { border-color: #999; }
  .eyebrow, .muted, .faint, .summary-table th, .summary-note { color: #333 !important; }
  a { color: #000; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; }
}
