/*
  Teen Internship Guide: Davis, Silicon Valley, Oakland.
  Layout concept: a street poster. Thick ink edges, hard offset shadows, black label tags,
  one loud orange headline per screen, everything else quiet.
  Theme: palette is borrowed from the Ignition NorCal 2026 conference flyer (orange, yellow, ink,
  off-white). Unofficial; no logos or artwork from the conference are used.
*/
:root {
  --paper: #efede8;
  --paper-2: #e4e1da;
  --surface: #ffffff;
  --ink: #151515;
  --ink-2: #4a4743;
  --edge: #151515;
  --orange: #e9572b;
  --orange-text: #b53611;
  --orange-display: #cf4519;
  --yellow: #f6c431;
  --on-orange: #151515;
  --tag-bg: #151515;
  --tag-fg: #ffffff;
  --good: #1b6b45;
  --good-bg: #d8efe2;
  --warn: #8a4b00;
  --warn-bg: #fbe7bd;
  --bad: #a1261a;
  --bad-bg: #f8d7d2;
  --focus: #0b57d0;
  --shadow: 4px 4px 0 var(--edge);
  --shadow-sm: 3px 3px 0 var(--edge);
  --radius: 10px;
  --display: "Archivo", "Archivo Fallback", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --marker: "Permanent Marker", "Permanent Marker Fallback", "Comic Sans MS", cursive;
  --body: "DM Sans", "DM Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --speckle-opacity: 0.35;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131211;
    --paper-2: #1c1b19;
    --surface: #211f1d;
    --ink: #f3f0ea;
    --ink-2: #bdb7ae;
    --edge: #ece7df;
    --orange: #f06a3f;
    --orange-text: #ff8d68;
    --orange-display: #f06a3f;
    --tag-bg: #f3f0ea;
    --tag-fg: #151515;
    --good: #7fd6a6;
    --good-bg: #173b2a;
    --warn: #f4c46b;
    --warn-bg: #3d2d0c;
    --bad: #ff9d90;
    --bad-bg: #44211c;
    --focus: #8ab4ff;
    --speckle-opacity: 0.18;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #131211;
  --paper-2: #1c1b19;
  --surface: #211f1d;
  --ink: #f3f0ea;
  --ink-2: #bdb7ae;
  --edge: #ece7df;
  --orange: #f06a3f;
  --orange-text: #ff8d68;
  --orange-display: #f06a3f;
  --tag-bg: #f3f0ea;
  --tag-fg: #151515;
  --good: #7fd6a6;
  --good-bg: #173b2a;
  --warn: #f4c46b;
  --warn-bg: #3d2d0c;
  --bad: #ff9d90;
  --bad-bg: #44211c;
  --focus: #8ab4ff;
  --speckle-opacity: 0.18;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--speckle-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .1  0 0 0 0 .1  0 0 0 0 .1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
/* Users who ask the OS for more contrast get full-strength secondary text and no speckle noise under the text.
   The :root selectors match the specificity of the dark-mode blocks above, so this later block wins in both themes. */
@media (prefers-contrast: more) {
  :root, :root:not([data-theme="light"]), :root[data-theme] { --ink-2: var(--ink); }
  body::before { display: none; }
}
img, svg { max-width: 100%; }
a { color: var(--orange-text); text-underline-offset: 3px; text-decoration-thickness: 2px; }
@media (hover: hover) { a:hover { color: var(--ink); } }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--tag-bg); color: var(--tag-fg); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
/* 2026-10-15 (keyboard users at 200% zoom): a skip link that shows where it sits, only when focused. Find has about 90 filter
   stops before the results; this one is the first stop after the header. */
.skip-here { position: absolute; left: -999px; }
.skip-here:focus { position: static; display: inline-block; margin-bottom: .75rem; background: var(--tag-bg); color: var(--tag-fg); padding: .6rem 1rem; }
.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-left: max(1rem, env(safe-area-inset-left, 0px)); padding-right: max(1rem, env(safe-area-inset-right, 0px)); }
@media (min-width: 48rem) { .wrap { padding-left: max(1.5rem, env(safe-area-inset-left, 0px)); padding-right: max(1.5rem, env(safe-area-inset-right, 0px)); } }
main { flex: 1; }
/* The skip link moves focus to <main> (tabindex -1). That focus is for screen readers and the next Tab, not a visual cue, so hide the ring here. */
#main:focus { outline: none; }
section { padding-block: 2.75rem; }
h1, h2, h3, h4 { font-family: var(--display); font-stretch: 112%; font-weight: 900; font-style: italic; line-height: 1.02; text-transform: uppercase; letter-spacing: -.01em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: min(clamp(2.5rem, 9vw, 5.5rem), 9.8vw); }
/* min(..., 9.8vw) on h1 and h1.display, 2026-10-15: under about 410 px the longest word (INTERNSHIPS) was wider than the column and broke inside the word.
   Wider screens are unchanged. Headings hyphenate at a syllable if a word must still break (large text settings). */
h1.display { font-size: min(clamp(2.2rem, 7vw, 4rem), 9.8vw); }
h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; }
h2 { font-size: clamp(1.8rem, 5vw, 2.9rem); }
h3 { font-size: 1.35rem; letter-spacing: 0; }
h4 { font-size: 1.05rem; letter-spacing: .01em; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding-left: 1.2rem; }
li { margin-bottom: .35em; }
.lede { font-size: clamp(1.15rem, 2.4vw, 1.4rem); max-width: 46ch; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.caps { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .04em; }
.marker { font-family: var(--marker); font-weight: 400; text-transform: none; letter-spacing: 0; }
.hl { background: linear-gradient(transparent 52%, var(--yellow) 52% 92%, transparent 92%); padding-inline: .1em; color: inherit; }
.orange { color: var(--orange-display); }
.stroke { -webkit-text-stroke: 2px var(--edge); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--edge); }

/* header */
.top { position: static; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--paper); border-bottom: 3px solid var(--edge); }
.top .wrap { display: flex; align-items: center; gap: .75rem 1.25rem; flex-wrap: wrap; padding-block: .65rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-family: var(--display); font-stretch: 118%; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 1.1rem; line-height: 1; }
.brand svg { width: 1.7rem; height: 1.7rem; flex: none; }
.brand b { color: var(--orange-text); font-weight: 900; }
.nav { display: flex; flex-wrap: wrap; gap: .4rem; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-family: var(--display); font-stretch: 105%; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: .82rem; letter-spacing: .04em; text-decoration: none; color: var(--ink); padding: .45rem .7rem; border: 2px solid transparent; border-radius: 6px; }
@media (hover: hover) { .nav a:hover { border-color: var(--edge); color: var(--ink); } }
.nav a[aria-current="page"] { background: var(--tag-bg); color: var(--tag-fg); }
.theme-btn { border: 2px solid var(--edge); background: var(--surface); color: var(--ink); border-radius: 999px; width: 2.75rem; height: 2.75rem; cursor: pointer; display: grid; place-items: center; font-size: 1.05rem; }
@media (max-width: 40rem) { .nav { margin-left: 0; width: 100%; order: 3; } .theme-btn { margin-left: auto; } .top { position: static; } }
/* On a phone the eight links fold behind one Menu button (the links are still in the page; without scripts they all show) */
.menu-btn { display: none; }
@media (max-width: 40rem) {
  .menu-btn { display: inline-flex; align-items: center; margin-left: auto; font: inherit; font-family: var(--display); font-stretch: 105%; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: .85rem; letter-spacing: .02em; color: var(--ink); background: var(--surface); border: 2px solid var(--edge); border-radius: 999px; min-height: 2.75rem; padding: 0 1rem; cursor: pointer; }
  .menu-btn ~ .theme-btn { margin-left: 0; }
  .top.menu-js .nav { display: none; }
  /* 2026-10-15: fold the nav from the first paint (html.js is set in the head), so the header does not shrink when common.js adds Menu */
  html.js .top:not(.open) .nav { display: none; }
  .top.menu-js.open .nav { display: flex; }
}
/* 320 px phones (first iPhone SE): a smaller logo mark gap and Menu padding keep the theme button on the header row. 2026-10-15 */
@media (max-width: 21rem) { .top .brand { gap: .2rem; letter-spacing: -.01em; } .top .menu-btn { padding: 0 .4rem; } }
/* ux9-header-footer: one header row on a phone, Menu as a 2 column grid, footer links in 2 columns */
@media (max-width: 40rem) {
  .top .wrap { gap: .5rem clamp(.35rem, 2vw, .75rem); }
  /* 3.5vw (was 4vw), 2026-10-15: at 360 px the brand, Menu and theme buttons were 2 px too wide and the theme button fell to a second row */
  /* flex 1 1 0 (2026-10-15): the brand takes the space left and wraps its own text (FIND / INTERNSHIPS) with large text
     settings, instead of pushing the theme button onto a second row (persona round 11, 125% text). min-width auto keeps the
     longest word whole: if even that cannot fit (150% text on a 320 px phone), the row wraps rather than overlapping Menu. */
  .brand { gap: .35rem; font-size: clamp(.75rem, 3.5vw, 1rem); min-width: auto; flex: 1 1 0; }
  .brand svg { width: clamp(1.25rem, 6vw, 1.5rem); height: clamp(1.25rem, 6vw, 1.5rem); }
  .menu-btn { padding: 0 clamp(.6rem, 3vw, 1rem); }
  .top.menu-js.open .nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .top.menu-js.open .nav a { border-color: var(--edge); background: var(--surface); min-height: 2.75rem; }
  .top.menu-js.open .nav a[aria-current="page"] { background: var(--tag-bg); color: var(--tag-fg); }
  .foot .qlinks { column-count: 2; column-gap: 1rem; }
  .foot .qlinks li { break-inside: avoid; }
}
/* Jump-link targets (On this page chips, find.html#id deep links) stop under the sticky header on desktop */
main [id], .prog { scroll-margin-top: 5rem; }
/* Keyboard focus (Tab) scrolls the target under the sticky header on desktop too; the header is static at 40rem and under */
@media (min-width: 40.0625rem) { html { scroll-padding-top: 5rem; } }
/* The header sticks only at 64rem wide (under 7rem tall; at 40 to 64rem it was 13rem, over the 8rem offset, and hid focus)
   and 34rem tall, so a phone held sideways keeps it static. */
@media (min-width: 64rem) and (min-height: 34rem) {
  .top { position: sticky; }
  html { scroll-padding-top: 8rem; }
  main [id], .prog { scroll-margin-top: 8rem; }
}

/* buttons, tags, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--display); font-stretch: 108%; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .03em; font-size: .95rem; text-decoration: none; background: var(--orange); color: var(--on-orange); border: 3px solid var(--edge); border-radius: 8px; padding: .7rem 1.1rem; box-shadow: var(--shadow-sm); cursor: pointer; min-height: 2.75rem; transition: transform .08s, box-shadow .08s; }
@media (hover: hover) { .btn:hover { color: var(--on-orange); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--edge); } }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--edge); }
.btn.alt { background: var(--surface); color: var(--ink); }
@media (hover: hover) { .btn.alt:hover { color: var(--ink); } }
.btn.dark { background: var(--tag-bg); color: var(--tag-fg); }
@media (hover: hover) { .btn.dark:hover { color: var(--tag-fg); } }
.btn.sm { font-size: .8rem; padding: .45rem .75rem; min-height: 2.25rem; border-width: 2px; box-shadow: 2px 2px 0 var(--edge); }
/* A disabled button looks off: faded, dashed edge, no lift on hover, and the normal pointer is replaced with not-allowed. */
.btn:disabled, .btn[disabled] { opacity: .5; border-style: dashed; box-shadow: none; cursor: not-allowed; }
@media (hover: hover) { .btn:disabled:hover, .btn[disabled]:hover { transform: none; box-shadow: none; } }
.btn:disabled:active, .btn[disabled]:active { transform: none; box-shadow: none; }
.tag { display: inline-flex; align-items: center; gap: .3rem; background: var(--tag-bg); color: var(--tag-fg); font-family: var(--display); font-stretch: 100%; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .05em; font-size: .75rem; line-height: 1; padding: .38rem .55rem .34rem; border-radius: 4px; white-space: nowrap; }
.tag.y { background: var(--yellow); color: #151515; }
.tag.o { background: var(--orange); color: #151515; }
.tag.good { background: var(--good-bg); color: var(--good); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.tag.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--edge); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
/* Breadcrumb trail. The separator is a drawn chevron (empty content), so screen readers do not read it aloud. */
.breadcrumb { margin: 0 0 .6rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; }
.breadcrumb li { display: inline-flex; align-items: center; margin: 0; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 2.75rem; }
/* Checkboxes: the browser default is about 13 px. Make them a 1.25rem tap target, and give the label that wraps one a 2.75rem row. */
/* 24 px (WCAG 2.2 target size minimum), 2026-10-15 */
input[type="checkbox"] { width: 1.5rem; height: 1.5rem; flex: none; accent-color: var(--orange); }
label:has(> input[type="checkbox"]) { min-height: 2.75rem; }
.breadcrumb li + li::before { content: ""; display: inline-block; flex: none; width: .4em; height: .4em; margin: 0 .6rem 0 .35rem; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.chip { font: inherit; font-size: .92rem; font-weight: 600; color: var(--ink); background: var(--surface); border: 2px solid var(--edge); border-radius: 999px; padding: .38rem .8rem; cursor: pointer; min-height: 2.25rem; }
@media (hover: hover) { .chip:hover { background: var(--paper-2); } }
.chip[aria-pressed="true"] { background: var(--tag-bg); color: var(--tag-fg); }
.chip .n { opacity: .65; font-weight: 500; margin-left: .25rem; }
.chip .n:empty { display: none; }
.chip.zero { color: var(--ink-2); border-style: dashed; font-weight: 500; }
/* Zero-count chips: the count is full strength so it stays 4.5:1 or better (opacity blends it with the background). */
.chip.zero .n { opacity: 1; }
.chip.zero[aria-pressed="true"] { color: var(--tag-fg); border-style: solid; }

/* cards */
.card { background: var(--surface); border: 3px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.15rem; min-width: 0; }
.card.flat { box-shadow: none; }
.grid { display: grid; gap: 1.1rem; }
.jOld { grid-column: 1 / -1; margin-top: .8rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.g2x2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
.stack > * + * { margin-top: 1rem; }
.callout { border: 3px solid var(--edge); border-radius: var(--radius); background: var(--yellow); color: #151515; padding: 1rem 1.15rem; box-shadow: var(--shadow); }
.callout.plain { background: var(--surface); color: var(--ink); }
.callout.warn { background: var(--warn-bg); color: var(--ink); }
.callout.bad { background: var(--bad-bg); color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }
/* Stacked notes: one width, 1rem gap. */
.notes > *, .topnote { max-width: 52rem; margin-top: 1rem; }
.callout h3 { margin-bottom: .35em; }
.eyebrow { display: inline-block; max-width: 100%; white-space: normal; line-height: 1.25; margin-bottom: .8rem; }

/* hero */
.hero { position: relative; overflow: hidden; padding-block: 2.2rem 3.2rem; border-bottom: 3px solid var(--edge); }
.hero .splat { position: absolute; z-index: 0; pointer-events: none; }
.hero .s1 { width: min(46rem, 110vw); right: -10rem; top: -6rem; opacity: .95; }
.hero .s2 { width: 18rem; left: -6rem; bottom: -5rem; opacity: .85; }
.hero .inner { position: relative; z-index: 1; }
.hero h1 { margin-bottom: .2em; }
.hero h1 .a { display: block; font-size: .55em; letter-spacing: .02em; }
.hero h1 .b { display: block; color: var(--orange); }
/* #coverage too (2026-10-15): at mid widths in dark mode it sat bare on the yellow splash */
.hero .lede, .hero #coverage { text-shadow: 0 0 .6rem var(--paper), 0 0 1.2rem var(--paper); }
.hero .cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.stats { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; margin-top: 1.6rem; }
.stat { background: var(--surface); border: 3px solid var(--edge); border-radius: 8px; padding: .5rem .8rem; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-family: var(--display); font-stretch: 112%; font-style: italic; font-weight: 900; font-size: 1.7rem; line-height: 1; }
.stat span { font-size: .8rem; color: var(--ink-2); }
.swoosh { display: block; width: min(22rem, 70%); height: auto; margin-top: -.3rem; }

/* directory */
.filters { background: var(--surface); border: 3px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; display: grid; gap: .9rem; }
.fgroup { display: grid; gap: .4rem; }
.fgroup > .lbl { font-family: var(--display); font-stretch: 108%; font-style: italic; font-weight: 800; text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; }
.search { width: 100%; font: inherit; font-size: 1rem; padding: .7rem .85rem; border: 3px solid var(--edge); border-radius: 8px; background: var(--paper); color: var(--ink); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; justify-content: space-between; margin: 1.25rem 0 1rem; }
.sel { font: inherit; padding: .5rem .7rem; border: 2px solid var(--edge); border-radius: 8px; background: var(--surface); color: var(--ink); }
.results { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.prog { display: flex; flex-direction: column; gap: .65rem; padding: 1rem 1.05rem; }
:where(body:not(.page-index,.page-find)) :is(.card>h3,.grid>.card h3) { font-size: 1.15rem; line-height: 1.1; text-transform: none; font-style: normal; font-stretch: 100%; font-weight: 800; letter-spacing: -.005em; }
a.chip { text-decoration: none; }
.prog h3 { font-size: 1.15rem; margin: 0; line-height: 1.1; text-transform: none; font-style: normal; font-stretch: 100%; font-weight: 800; letter-spacing: -.005em; }
.prog .org { font-size: .9rem; color: var(--ink-2); margin: 0; }
.prog .what { margin: 0; font-size: .98rem; }
.prog .row { display: flex; flex-wrap: wrap; gap: .4rem; }
.prog .when { font-size: .9rem; border-top: 2px dashed color-mix(in srgb, var(--edge) 35%, transparent); padding-top: .55rem; margin: 0; }
.prog .when b { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: .75rem; letter-spacing: .05em; display: block; }
.prog details { font-size: .93rem; }
.prog summary { cursor: pointer; font-weight: 700; padding: .3rem 0; }
/* Tap targets (ticket r2-a11y-perf-3): every details summary in main is at least 2.75rem tall, like chips and nav links.
   Flex hides the browser's triangle, so a plus or minus mark stands in for it. .acc keeps its own mark. */
main details > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; cursor: pointer; }
main details > summary::-webkit-details-marker { display: none; }
/* Empty alt text after the slash: screen readers skip the marks. */
main details > summary::after { content: "+";
  content: "+" / ""; flex: none; font-size: 1.4rem; line-height: 1; font-weight: 800; }
main details[open] > summary::after { content: "\2212";
  content: "\2212" / ""; }
.prog dl { margin: .4rem 0 0; display: grid; gap: .5rem; }
.prog dt { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: .75rem; letter-spacing: .05em; color: var(--ink-2); }
.prog dd { margin: 0; }
.prog .actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; align-items: center; }
.star { border: 2px solid var(--edge); background: var(--surface); color: var(--ink); border-radius: 8px; min-width: 2.25rem; min-height: 2.25rem; cursor: pointer; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; gap: .3rem; padding: 0 .5rem; }
.star[aria-pressed="true"] { background: var(--yellow); color: #151515; }
.star-w { font-weight: 700; font-size: .875rem; }
#count:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (forced-colors: active) {
  .chip[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .tile[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .combo-opt[aria-selected="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .fchip.on { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .nav a[aria-current="page"] { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .star[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  :focus-visible { outline: 3px solid Highlight; outline-offset: 3px; }
  /* Chart fills, legend keys and the progress meter keep a visible difference when colors are forced. */
  .k1 { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .k2 { forced-color-adjust: none; background: CanvasText; color: Canvas; }
  .k3 { forced-color-adjust: none; background: repeating-linear-gradient(45deg, CanvasText 0 2px, Canvas 2px 6px); color: CanvasText; }
  .cv { color: inherit; }
  .bar.h { forced-color-adjust: none; background: Highlight; }
  .bar.a { forced-color-adjust: none; background: GrayText; }
  .meter > i { forced-color-adjust: none; background: Highlight; }
  .meter.over > i { forced-color-adjust: none; background: CanvasText; }
  .btn:disabled, .btn[disabled] { forced-color-adjust: none; opacity: 1; color: GrayText; border-color: GrayText; background: Canvas; }
}
.checked { font-size: .78rem; color: var(--ink-2); }
.empty { text-align: center; padding: 2.5rem 1rem; }
.month { margin-top: 1.6rem; }
.month h3 { background: var(--tag-bg); color: var(--tag-fg); display: inline-block; padding: .35rem .7rem; border-radius: 4px; font-size: 1rem; }
.picks { margin: 0 0 1.25rem; max-width: 52rem; }
.picklist { list-style: decimal; margin: .6rem 0 0; padding-left: 1.4rem; display: grid; gap: .6rem; }
.picklist li { padding-left: .2rem; line-height: 1.4; }
.tl { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; }
.tl li { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: .8rem; align-items: start; background: var(--surface); border: 2px solid var(--edge); border-radius: 8px; padding: .6rem .75rem; margin: 0; }
.tl .d { font-family: var(--display); font-stretch: 108%; font-style: italic; font-weight: 900; text-transform: uppercase; line-height: 1; }
.tl .tag { white-space: normal; line-height: 1.25; }
.tl .d small { display: block; font-size: .75rem; letter-spacing: .06em; color: var(--ink-2); }

/* forms */
.field { display: grid; gap: .3rem; }
.field label { font-weight: 700; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--ink-2); }
.field input, .field textarea, .field select { font: inherit; font-size: 1rem; padding: .6rem .75rem; border: 2px solid var(--edge); border-radius: 8px; background: var(--paper); color: var(--ink); width: 100%; min-width: 0; }
.field textarea { min-height: 5.5rem; resize: vertical; }
/* Placeholder example text uses the ink-2 token, so it passes contrast on --paper, --paper-2 and --surface in both themes. */
::placeholder { color: var(--ink-2); opacity: 1; }
.formgrid { display: grid; gap: .9rem 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.letter { background: #fff; color: #151515; border: 3px solid var(--edge); border-radius: 4px; padding: 1.2rem; box-shadow: var(--shadow); white-space: pre-wrap; font-size: 1.02rem; line-height: 1.6; min-height: 10rem; }
.meter { height: .6rem; border: 2px solid var(--edge); border-radius: 99px; overflow: hidden; background: var(--surface); }
.meter > i { display: block; height: 100%; background: var(--orange); width: 0; transition: width .15s; }
.meter.over > i { background: var(--bad); }
.check { display: grid; gap: .45rem; list-style: none; padding: 0; margin: 0; }
.check li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .5rem; align-items: start; margin: 0; }
.check .box { width: 1.4rem; height: 1.4rem; border: 2px solid var(--edge); border-radius: 4px; display: grid; place-items: center; font-size: .9rem; line-height: 1; background: var(--surface); }
.check li.ok .box { background: var(--yellow); color: #151515; }

/* tables */
.tablewrap { position: relative; overflow-x: auto; border: 3px solid var(--edge); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
#jHours > :first-child { margin-top: 1rem; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .95rem; }
@media (max-width: 40rem) { .page-handout .tablewrap td:first-child { white-space: nowrap; } }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 2px solid color-mix(in srgb, var(--edge) 25%, transparent); vertical-align: top; }
th { font-family: var(--display); font-style: italic; text-transform: uppercase; font-size: .78rem; letter-spacing: .05em; background: var(--tag-bg); color: var(--tag-fg); border-bottom: 0; }
tr:last-child td { border-bottom: 0; }
tbody th[scope="row"] { background: transparent; color: var(--ink); text-transform: none; letter-spacing: normal; font-family: inherit; font-style: normal; font-size: inherit; border-bottom: 2px solid color-mix(in srgb, var(--edge) 25%, transparent); }
/* .stackt: on phones each row becomes a block, the column name shows above each cell, and the head row hides. */
.stackt .tk { display: none; }
/* A phone number moves down whole, never "833-526-" then "4636"; it wraps only when wider than the line (320 px) */
a[href^="tel:"] { display: inline-block; }
@media (max-width: 40rem) {
  /* 2026-10-14: no table keeps the 34rem desktop floor on a phone. Every 2 and 3 column table fits at 390 px,
     and a wider one stacks with .stackt instead of scrolling sideways. */
  table, table.stackt { min-width: 0; }
  .stackt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .stackt tr, .stackt tbody th[scope="row"], .stackt td { display: block; }
  .stackt tbody tr { border-bottom: 3px solid var(--edge); }
  .stackt tbody tr:last-child { border-bottom: 0; }
  .stackt tbody th[scope="row"] { font-family: var(--display); font-size: 1.1rem; border-bottom: 0; padding-bottom: .2rem; }
  .stackt td { border-bottom: 0; padding-top: .35rem; padding-bottom: .35rem; }
  .stackt td:last-child { padding-bottom: .8rem; }
  .stackt .tk { display: block; font-family: var(--display); font-style: italic; text-transform: uppercase; font-size: .75rem; letter-spacing: .05em; color: var(--ink-2); }
}
tr:last-child th { border-bottom: 0; }

/* steps */
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 1rem; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: .9rem; align-items: start; margin: 0; }
.steps > li::before { content: counter(s); font-family: var(--display); font-stretch: 118%; font-style: italic; font-weight: 900; font-size: 1.5rem; width: 2.7rem; height: 2.7rem; display: grid; place-items: center; background: var(--orange); color: var(--on-orange); border: 3px solid var(--edge); border-radius: 50%; box-shadow: 2px 2px 0 var(--edge); }
.steps h3 { margin: .1rem 0 .25rem; font-size: 1.15rem; }
.acc { border: 3px solid var(--edge); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.acc + .acc { margin-top: .8rem; }
.acc summary { cursor: pointer; font-family: var(--display); font-stretch: 105%; font-style: italic; font-weight: 800; text-transform: uppercase; padding: .85rem 1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.acc summary::after { content: "+"; font-size: 1.4rem; line-height: 1; }
.acc[open] summary::after { content: "\2212"; }
.acc summary::-webkit-details-marker { display: none; }
.acc .body { padding: 0 1rem 1rem; }
.acc .body > *:last-child { margin-bottom: 0; }

/* footer: always dark, in both themes */
.foot { border-top: 3px solid var(--edge); background: #0d0c0c; color: #f3f0ea; padding-block: 2rem; margin-top: 2rem; }
.foot a { color: #f6c431; }
@media (hover: hover) { .foot a:hover { color: #ffffff; } }
.foot .cols { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.foot .fh { color: #f6c431; font-size: 1.05rem; letter-spacing: .01em; margin: 0 0 .6em; }
.foot p { font-size: .92rem; }
/* quick links: a real list, each link a 2.75rem (44px) tap target, the same size as every other control */
.foot .qlinks { list-style: none; padding-left: 0; margin: 0; font-size: .92rem; }
.foot .fh2 { color: #f3f0ea; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 1rem 0 .1rem; }
.foot .fh + .fh2 { margin-top: 0; }
.foot li { margin-bottom: 0; }
.foot li a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* resume preview + print */
.resume { background: #fff; color: #111; border: 3px solid var(--edge); box-shadow: var(--shadow); padding: 1.5rem 1.6rem; font-family: "DM Sans", Arial, sans-serif; font-size: .92rem; line-height: 1.45; max-width: 46rem; }
.resume h2 { font-family: Arial, sans-serif; font-style: normal; font-stretch: 100%; font-size: 1.7rem; letter-spacing: .02em; margin: 0; text-transform: uppercase; }
.resume .contact { margin: .1rem 0 .7rem; color: #333; }
.resume h3 { font-family: Arial, sans-serif; font-style: normal; font-stretch: 100%; font-size: .85rem; letter-spacing: .08em; border-bottom: 2px solid #111; padding-bottom: .1rem; margin: .9rem 0 .35rem; }
.resume ul { margin: .2rem 0 .4rem; padding-left: 1.15rem; }
.resume li { margin-bottom: .15rem; }
.resume .rrow { display: flex; justify-content: space-between; gap: 1rem; font-weight: 700; }
.resume .rrow span:last-child { font-weight: 500; white-space: nowrap; }
@media print {
  /* Always print in the light palette, even when the screen is in dark mode.
     !important beats the dark blocks above, including the system-dark rule that has no data-theme attribute. */
  :root, :root[data-theme] {
    color-scheme: light !important;
    --paper: #efede8 !important;
    --paper-2: #e4e1da !important;
    --surface: #ffffff !important;
    --ink: #151515 !important;
    --ink-2: #4a4743 !important;
    --edge: #151515 !important;
    --orange: #e9572b !important;
    --orange-text: #b53611 !important;
    --orange-display: #cf4519 !important;
    --tag-bg: #151515 !important;
    --tag-fg: #ffffff !important;
    --good: #1b6b45 !important;
    --good-bg: #d8efe2 !important;
    --warn: #8a4b00 !important;
    --warn-bg: #fbe7bd !important;
    --bad: #a1261a !important;
    --bad-bg: #f8d7d2 !important;
    --focus: #0b57d0 !important;
  }
  body.print-one > *:not(#printRoot) { display: none !important; }
  body.print-one #printRoot { display: block !important; }
  body::before, .top, .foot, .noprint, .skip, .toast, .theme-btn { display: none !important; }
  /* Jump chips ("On this page", "Jump to", "Next steps") and breadcrumbs are buttons on screen only. Paper cannot click them. */
  main nav.chips, main nav.breadcrumb { display: none !important; }
  /* Every button in the page body does nothing on paper (Print, Copy, Clear, Add a person, Save as picture, filter chips).
     Only the chosen tap tile is kept, and it is a .tile so it is not matched here. */
  main button:not(.tile) { display: none !important; }
  /* The print-one copy (#printRoot) sits outside main, so the rule above does not reach it. Hide any control a copied sheet carries
     (resume, permit packet, prep sheet, safety card, QR sheet, leaders letters). Tap tiles and links stay. */
  #printRoot button:not(.tile), #printRoot input, #printRoot select, #printRoot textarea, #printRoot .noprint { display: none !important; }
  main details > summary::after { content: none; }
  /* Paper keeps the teen's own answer only: unselected tap tiles, the picker captions, the Show more pager,
     the "Text this to a parent" row and the Menu button stay on the screen. The selected tile still prints. */
  .tp .tile[aria-pressed="false"], .tp .tile[aria-expanded="false"], .tp-cap, .pager, .share-parent, .menu-btn { display: none !important; }
  body { background: #ffffff; color: #151515; display: block; }
  /* Browsers drop background colors on paper unless asked to keep them. Keep the tag fills, chart fills and the chosen tile. */
  .tag, .k1, .k2, .k3, .bar, .meter > i, .tile[aria-pressed="true"], .tile[aria-expanded="true"] { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .printonly { display: block !important; }
  /* The source line: the address and the last-checked date, so a printed sheet says where its numbers came from. */
  .print-source { display: block; margin: 0 0 .6rem; color: #151515; }
  .resume { border: 0; box-shadow: none; max-width: none; padding: 0; }
  main, section, .wrap { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .prog, .card { break-inside: avoid; box-shadow: none; }
  /* Boxes that a teen must read whole stay on one page: safety notes and deadline callouts, Calendar month blocks,
     Playbook people cards, numbered steps and fact boxes. A heading or a short run of text is never left alone at a page end. */
  .callout, .person, .month, .steps > li, .facts > div { break-inside: avoid; }
  h4, summary { break-after: avoid; page-break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  /* Paper: margins on every page, wide tables fit the page width instead of being cut off at the edge,
     the header row repeats on each page, table rows do not split across pages, and headings stay with the text after them. */
  @page { margin: 12mm; }
  .tablewrap { overflow: visible; box-shadow: none; }
  table { min-width: 0; width: 100%; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; page-break-after: avoid; }
  a { color: #151515; text-decoration: none; }
  /* Print the address after each link in the main content, so a paper copy keeps where it goes. Buttons and .noprint links are skipped. */
  main a[href^="http"]:not(.btn):not(.noprint)::after { content: " (" attr(href) ")"; overflow-wrap: anywhere; }
  /* The print-one copy (#printRoot) sits outside main, so the rule above misses it. Same rule for it; same skips as main. */
  #printRoot a[href^="http"]:not(.btn):not(.noprint)::after { content: " (" attr(href) ")"; overflow-wrap: anywhere; }
  /* Program cards: the "Official page" and "Apply" buttons are .btn links, so the rule above skips them. Print their addresses too. */
  .prog a.btn[href^="http"]:not(.noprint)::after { content: " (" attr(href) ")"; overflow-wrap: anywhere; }
  /* Languages and Calendar cards: their "Open the official page" and "Official page" buttons are .btn links in a plain .card, so print their addresses too. */
  .card a.btn[href^="http"]:not(.noprint)::after { content: " (" attr(href) ")"; overflow-wrap: anywhere; }
}
.printonly { display: none; }
.print-source { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.toast { position: fixed; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 8px); background: var(--tag-bg); color: var(--tag-fg); padding: .6rem 1rem; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 80; font-weight: 700; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.pager { display: flex; justify-content: center; margin-top: 1.5rem; }

/* bar chart (home) */
.bars { display: grid; gap: 1.2rem; }
.bl { display: block; font-family: var(--display); font-stretch: 108%; font-style: italic; font-weight: 800; text-transform: uppercase; margin-bottom: .35rem; }
.bt { display: grid; grid-template-columns: minmax(0, 1fr) 9.5rem; gap: .6rem; align-items: center; margin-bottom: .35rem; }
.trk { height: 1.9rem; border-left: 3px solid var(--edge); }
.bar { height: 100%; width: calc(var(--w) * 1.8%); min-width: 6px; border: 3px solid var(--edge); border-left: 0; border-radius: 0 4px 4px 0; }
.bar.a { background: var(--paper-2); }
.bar.h { background: var(--orange); }
.bk { font-size: .88rem; line-height: 1.15; }
.bk b { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.15rem; display: block; }
@media print { .filters, .toolbar, .noprint, #dates, .hero .splat { display: none !important; } }

.steps.row { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.2rem 1.4rem; }
.steps.row > li { grid-template-columns: 3rem 1fr; }

@media (max-width: 40rem) {
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .stat { padding: .45rem .55rem; }
  .stat b { font-size: 1.35rem; }
  .stat span { font-size: .75rem; }
}

.callout:not(.plain):not(.warn):not(.bad) a { color: #151515; }
/* 2026-10-15: the yellow callout keeps dark text in both themes, so its muted text keeps the light theme's muted ink
   (dark mode gave light gray on yellow, 1.22:1; #4a4743 on the yellow is about 6.4:1). */
.callout:not(.plain):not(.warn):not(.bad) { --ink-2: #4a4743; }
@media (prefers-contrast: more) { .callout:not(.plain):not(.warn):not(.bad) { --ink-2: #151515; } }
@media (hover: hover) { .callout:not(.plain):not(.warn):not(.bad) a:hover { color: #151515; text-decoration-thickness: 3px; } }
/* ux9-callout-btn: buttons inside the yellow callout keep their own text colour (the link rule above made them dark on dark in dark mode). */
.callout:not(.plain):not(.warn):not(.bad) a.btn.alt { color: var(--ink); }
.callout:not(.plain):not(.warn):not(.bad) a.btn.dark { color: var(--tag-fg); }
@media (hover: hover) {
  .callout:not(.plain):not(.warn):not(.bad) a.btn.alt:hover { color: var(--ink); }
  .callout:not(.plain):not(.warn):not(.bad) a.btn.dark:hover { color: var(--tag-fg); }
}

.callout.bad a, .callout.warn a { color: var(--ink); }

/* The yellow callout (#f6c431) stays yellow in dark mode, where --focus #8ab4ff is about 1.3:1 on it. Use the light-mode blue there (about 3.9:1). */
.callout:not(.plain):not(.warn):not(.bad) :focus-visible { outline-color: #0b57d0; }
/* The footer is always #0d0c0c. The light-mode blue is only about 3.1:1 on it, so use the dark-mode light blue (about 9:1). */
.foot :focus-visible { outline-color: #8ab4ff; }

.prog .row .tag { white-space: normal; max-width: 100%; line-height: 1.25; }
.prog .pay { margin: 0; font-size: .92rem; }
.prog .pay b { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: .75rem; letter-spacing: .05em; margin-right: .25rem; }

/* people map and tracker */
#printRoot { display: none; }
.people { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.person { display: grid; gap: .6rem; align-content: start; }
.person .ph { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.person .ph b { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; }
.person .pstat { font: inherit; font-size: .9rem; font-weight: 600; border: 2px solid var(--edge); border-radius: 999px; padding: .25rem .6rem; background: var(--surface); color: var(--ink); max-width: 100%; }
.person .pfoot { display: grid; gap: .5rem; padding-top: .6rem; border-top: 2px dashed var(--line, var(--edge)); }
.person .pfoot p { margin: 0; font-size: .92rem; }
.person.is-due { border-color: var(--orange-display); }
.person .due { color: var(--orange-text); font-weight: 800; }
.plansum { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin: 1rem 0; }
.plansum .big { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.25rem; text-transform: uppercase; }

/* insights charts */
.chart { display: grid; gap: .5rem; }
.crow { display: grid; grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr); gap: .6rem; align-items: center; text-decoration: none; color: var(--ink); padding: .15rem 0; }
@media (hover: hover) { .crow:hover .cl { text-decoration: underline; } }
.crow .cl { font-weight: 700; }
.crow .cn { font-family: var(--display); font-style: italic; font-weight: 900; font-size: .95rem; margin-left: .4rem; align-self: center; white-space: nowrap; }
.crow .cn small { font-family: var(--body, inherit); font-style: normal; font-weight: 500; color: var(--ink-2); }
/* The track keeps 3.1rem free on the right for the total, so a 100 percent bar and its number both fit. */
.ctrack { display: flex; height: 1.7rem; border-left: 3px solid var(--edge); padding-right: 3.1rem; }
.ctrack > * { flex-shrink: 0; }
.ctrack i { display: flex; align-items: center; justify-content: center; height: 100%; border: 3px solid var(--edge); border-left: 0; min-width: 4px; overflow: hidden; container-type: inline-size; }
.ctrack.multi i + i { border-left: 0; margin-left: -3px; }
/* Small value labels inside bar segments. Dark ink on orange and yellow in both themes; the paper and white parts use the theme ink. */
.cv { font-family: var(--body); font-size: .75rem; font-weight: 700; line-height: 1; padding: 0 .25rem; white-space: nowrap; color: var(--ink); }
.k1 .cv, .k2 .cv { color: #151515; }
@container (width < 2.2rem) { .ctrack .cv { display: none; } }
@container (height < 1.1rem) { .cbar .cv { display: none; } }
.nocq .cv { display: none; }
.k1 { background: var(--orange); }
.k2 { background: #f6c431; }
.k3 { background: var(--paper-2); }
.chart.cols { display: flex; align-items: flex-end; gap: .8rem; height: 17rem; }
.ccol { flex: 1; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; height: 100%; text-decoration: none; color: var(--ink); gap: .3rem; min-width: 0; }
@media (hover: hover) { .ccol:hover .cl { text-decoration: underline; } }
.ccol .cbar { width: 100%; display: flex; align-items: flex-end; border-bottom: 3px solid var(--edge); }
.ccol .cbar i { display: flex; flex-direction: column; justify-content: flex-end; width: 100%; border: 3px solid var(--edge); border-bottom: 0; background: var(--surface); }
.ccol .cbar i > b { display: flex; align-items: center; justify-content: center; width: 100%; border-top: 3px solid var(--edge); overflow: hidden; container-type: size; }
.ccol .cbar .cw { display: flex; align-items: center; justify-content: center; flex: 1 1 0; min-height: 0; overflow: hidden; container-type: size; }
.ccol .cn { font-family: var(--display); font-style: italic; font-weight: 900; }
.ccol .cl { font-weight: 700; font-size: .9rem; display: block; text-align: center; }
.legend { margin-top: .8rem; align-items: center; font-size: .9rem; }
.legend .key { display: inline-block; width: 1rem; height: 1rem; border: 3px solid var(--edge); vertical-align: -2px; }
.legend .key.kw { background: var(--surface); }
.legend .li { display: inline-block; margin-right: 1rem; }
.ccol .csplit { display: block; font-weight: 600; line-height: 1.3; text-align: center; margin-top: .2rem; }
.ccol .csplit span { display: block; white-space: nowrap; }
.ccol .csplit .key { display: inline-block; width: .7rem; height: .7rem; border: 2px solid var(--edge); margin-right: .25rem; vertical-align: -1px; }
.ccol .csplit .key.kw { background: var(--surface); }
.legend .key:first-child { margin-left: 0; }
@media (max-width: 40rem) {
  .crow { grid-template-columns: minmax(5.5rem, 8rem) minmax(0, 1fr); font-size: .92rem; }
  .chart.cols { gap: .35rem; }
}

/* known gaps */
.gaplist { display: grid; gap: .6rem; padding-left: 1.1rem; }
#gaps ul { margin: .4rem 0 0; padding-left: 1.1rem; display: grid; gap: .4rem; }

/* long fill-in lines (underscores) must wrap on narrow screens */
.letter { overflow-wrap: anywhere; }

/* Long addresses and links (monospace code, URLs in the text) must wrap at 320px, so the page never scrolls sideways */
main, main a, code { overflow-wrap: break-word; }

/* Tap targets: at least 44px tall on small buttons and chips */
.chip, .star, .btn.sm { min-height: 2.75rem; }

/* Tap tiles: a short list of choices as big buttons instead of a dropdown. The real <select> stays in the page, hidden, and stays in sync. */
.tp-hidden { position: absolute !important; left: 0; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tp { display: grid; gap: .6rem; margin-top: .2rem; }
.tp-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.tile { font: inherit; font-size: 1.02rem; font-weight: 700; color: var(--ink); background: var(--surface); border: 2px solid var(--edge); border-radius: 12px; padding: .55rem 1rem; cursor: pointer; min-height: 3rem; text-align: left; }
@media (hover: hover) { .tile:hover { background: var(--paper-2); } }
.tile[aria-pressed="true"] { background: var(--tag-bg); color: var(--tag-fg); }
.tile .n { font-weight: 500; opacity: .7; margin-left: .3rem; }
.tp-sub { border-left: 4px solid var(--edge); padding-left: .8rem; display: grid; gap: .4rem; }
.tp-sub[hidden] { display: none; }
/* An opened group ("now pick one in Texas") is not a choice: 2026-10-15 it keeps the plain fill, a thick border (which also
   shows in forced colors) and a chevron, so it no longer looks like the chosen tile (persona round 10, low vision). */
.tile[aria-expanded="true"] { border-width: 4px; padding: calc(.55rem - 2px) calc(1rem - 2px); }
.tile[aria-expanded="true"]::after { content: " \25BE"; }
.tp-sub .tp-cap { font-size: .85rem; font-weight: 700; color: var(--ink-2); margin: 0; }

/* Answer facts: a label over a short answer, in a grid of small panels (rides, state rules, paycheck rules) */
dl.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .7rem; margin: .8rem 0 0; }
dl.facts > div { background: var(--paper); border: 2px solid var(--edge); border-radius: 10px; padding: .65rem .85rem; min-width: 0; }
dl.facts dt { font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
dl.facts dd { margin: .25rem 0 0; overflow-wrap: anywhere; }
dl.facts dd.ns { color: var(--ink-2); font-style: italic; }
dl.facts > div.key { border-width: 3px; }

/* Plain facts: the same label over answer, without the boxes (long lists of cards) */
dl.facts.plain { display: grid; grid-template-columns: 1fr; gap: .55rem; }
dl.facts.plain > div { border: 0; border-top: 2px solid var(--edge); border-radius: 0; padding: .5rem 0 0; background: none; }
#jOut h2 { margin-top: 2rem; }

/* Back to the list of parts: a link at the end of each long section. At least 44px tall to tap. Hidden on print through .noprint. */
.backtop { margin: 1rem 0 0; }
.backtop a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* Handout for teachers and counselors: one US letter page */
.handout { max-width: 46rem; }
.handout-code { display: flex; align-items: center; gap: 1.2rem; margin: 1rem 0; flex-wrap: wrap; }
.handout-code p { margin: 0; }
.qrcard img, .handout-code img, #qrPrint img { background: #fff; border: 3px solid var(--edge); padding: .3rem; }
.handout-url { font-size: 1.25rem; font-weight: 800; overflow-wrap: anywhere; }
.handout-steps li, .handout-not li { margin-bottom: .4rem; font-size: 1.1rem; }
.handout-foot { margin-top: 1rem; }
@media print {
  .handout { max-width: none; break-inside: avoid; }
  .handout h1 { font-size: 2.6rem; }
  .handout .lede { font-size: 1.2rem; }
  .handout-code img { width: 2.2in; height: 2.2in; }
  .handout-steps li, .handout-not li { font-size: 1.15rem; }
}

.handout-weeks { padding-left: 1.3rem; display: grid; gap: .7rem; }
.small-h { font-size: 1.15rem; margin: .2rem 0 .5rem; }

/* 2026-10-12: home picker flow. Three numbered steps, top aligned so none stretches. The ring on the raised badge survives forced colors. Tokens only. */
.formgrid-top { align-items: start; }
.flow { grid-template-columns: 1fr; }
.flow .field { grid-template-columns: auto 1fr; align-content: start; align-items: center; gap: .6rem .7rem; padding: .9rem 1rem 1rem; border: 3px solid var(--edge); border-radius: var(--radius); background: var(--paper); min-width: 0; }
.flow .field > * { grid-column: 1 / -1; min-width: 0; }
.flow .field > .step, .flow .field > label { grid-column: auto; }
.flow .field > label { font-family: var(--display); font-stretch: 112%; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(1rem,4.5vw,1.2rem); line-height: 1.1; }
.flow .field.now { background: var(--surface); box-shadow: var(--shadow-sm); }
.step { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--tag-bg); color: var(--tag-fg); font-family: var(--display); font-weight: 900; font-style: italic; font-size: 1.1rem; }
.flow .field.now .step { background: var(--orange); color: var(--on-orange); outline: 3px solid var(--edge); outline-offset: 2px; }
.flow .field.done .step { background: var(--yellow); color: #151515; }
#pAge + .tp .tile { flex: 0 0 3.4rem; padding-inline: 0; text-align: center; font-family: var(--display); font-weight: 900; font-size: 1.3rem; }
.combo { display: grid; gap: .5rem; }
.field .combo input { font-size: 1.15rem; font-weight: 700; min-height: 3.4rem; padding: .7rem 1.1rem; border-width: 3px; border-radius: 999px; background: var(--surface); }
.combo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.combo-opt { display: flex; justify-content: space-between; align-items: center; gap: .6rem; min-height: 3rem; margin: 0; padding: .5rem 1rem; border: 2px solid var(--edge); border-radius: 12px; background: var(--surface); font-weight: 700; cursor: pointer; }
.combo-opt .n { font-weight: 500; font-size: .9rem; }
@media (hover: hover) { .combo-opt:hover { background: var(--paper-2); } }
.combo-opt[aria-selected="true"] { background: var(--tag-bg); color: var(--tag-fg); }
.chip.clear { background: var(--tag-bg); color: var(--tag-fg); font-weight: 700; padding-inline: 1rem; }

/* 2026-10-12: Programs filters redesign. A summary bar of the picks, compact pill rows, popular areas inside Where, a phone bar. Tokens only. */
#filters { gap: 1.1rem; }
.fsum { display: flex; flex-wrap: wrap; min-width: 0; align-items: center; gap: .4rem .75rem; padding: .7rem .85rem; background: var(--paper); border: 3px solid var(--edge); border-radius: var(--radius); }
.fsum-t { font-family: var(--display); font-stretch: 108%; font-style: italic; font-weight: 800; text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; }
.fchips { display: flex; flex-wrap: wrap; gap: .45rem; flex: 1 1 12rem; min-width: 0; }
.fchip { font: inherit; font-size: .95rem; font-weight: 700; min-height: 2.75rem; max-width: 100%; padding: .3rem .95rem; border: 2px dashed var(--edge); border-radius: 999px; background: var(--surface); color: var(--ink-2); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fchip.on { border-style: solid; background: var(--tag-bg); color: var(--tag-fg); }
@media (hover: hover) { .fchip:hover { background: var(--paper-2); } .fchip.on:hover { background: var(--tag-bg); text-decoration: underline; } }
.fsum-clear { font: inherit; font-weight: 700; min-height: 2.75rem; padding: 0 .6rem; background: none; border: 0; color: var(--ink); text-decoration: underline; cursor: pointer; }
.fsum-clear[hidden] { display: none; }
#goalChips .chip { font-size: 1rem; min-height: 3rem; padding: .45rem 1.1rem; }
.hubs { display: grid; gap: .4rem; margin-top: .3rem; padding-top: .7rem; border-top: 2px dashed color-mix(in srgb, var(--edge) 35%, transparent); }
.hubs[hidden] { display: none; }
.hubs > span { font-weight: 700; }
.frow { display: grid; grid-template-columns: 5.2rem 1fr; gap: .3rem .8rem; align-items: start; }
.frow > label { grid-column: 1; padding-top: .8rem; font-weight: 700; color: var(--ink-2); }
.frow > :not(label) { grid-column: 2; min-width: 0; }
.filters .combo input { font: inherit; font-size: 1.1rem; font-weight: 700; min-height: 3.2rem; width: 100%; min-width: 0; padding: .6rem 1.1rem; border: 3px solid var(--edge); border-radius: 999px; background: var(--surface); color: var(--ink); }
.fpill .tp-row { gap: .4rem; }
/* ux9-pills: .fpill makes a tile picker round pills */
.fpill .tp .tile { flex: 0 0 auto; min-width: 3.4rem; min-height: 2.75rem; padding: .3rem .95rem; border-radius: 999px; font-size: .95rem; text-align: center; }
.fpill #pAge + .tp .tile { font-family: inherit; font-weight: 700; flex: 0 0 auto; padding-inline: .95rem; white-space: nowrap; }
details + #hClose { margin-top: 1.5rem; }
#age + .tp .tile { min-width: 3.1rem; padding-inline: .5rem; }
#moreFilters { padding-top: .7rem; border-top: 2px dashed color-mix(in srgb, var(--edge) 35%, transparent); }
.mf-count { margin: 0 auto 0 -.8rem; }
.showbar { display: none; }
/* CLS: fixed row */
@media (max-width: 40rem) { .fchip { white-space: normal; } .fsum-t { flex: 1; min-height: 2.75rem; display: flex; align-items: center; } .fsum-clear { order: 1; } .fchips { order: 2; flex: 1 1 100%; } }
@media (max-width: 30rem) { .frow { grid-template-columns: 1fr; } .frow > label, .frow > :not(label) { grid-column: 1; padding-top: 0; } }
@media (max-width: 47.99rem) {
  .showbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: .6rem max(1rem, env(safe-area-inset-right, 0px)) calc(.6rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px)); background: var(--paper); border-top: 3px solid var(--edge); }
  .showbar[hidden], .showbar.off { display: none; }
  .showbar .btn { width: 100%; justify-content: center; min-height: 3rem; }
  body.has-showbar { padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px)); }
  /* Focus moved by Tab or a jump stays above the fixed Show bar (WCAG 2.2 SC 2.4.11), 2026-10-15 */
  html:has(body.has-showbar) { scroll-padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
  body.has-showbar .toast { bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
}
/* Map page: theme tokens only; motion is off under reduced motion */
.field > .lbl { font-weight: 700; font-size: .95rem; }
.mzoom .chip { font-size: .85rem; padding: .3rem .7rem; }
.mapbox { background: var(--surface); border: 3px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.mapbox:empty, .mapbox svg { aspect-ratio: 975 / 610; }
.mapbox svg { display: block; width: 100%; height: auto; cursor: pointer; touch-action: manipulation; }
.mapbox [hidden] { display: none; }
.mapbox :not(text) { vector-effect: non-scaling-stroke; }
.mapbox .nation { fill: none; stroke: var(--ink-2); stroke-width: 1.5; opacity: .45; }
.mapbox .st { fill: color-mix(in srgb, var(--ink-2) 16%, var(--surface)); stroke: var(--surface); }
.mapbox .bc { fill: var(--paper); stroke: var(--ink-2); stroke-dasharray: 4 3; }
.mapbox .dot { fill: var(--orange-display); stroke: var(--surface); transition: opacity .3s; }
.mapbox .dot.off { fill: var(--ink-2); opacity: .3; }
.mapbox .dot.sel { stroke: var(--ink); stroke-width: 2; }
.mapbox .ring { fill: none; stroke: var(--orange); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.map-anim .ring.pulse { animation: mpulse 1.6s ease-out infinite; }
@keyframes mpulse { to { opacity: 0; transform: scale(2.2); } }
.mapbox text { fill: var(--ink-2); stroke: var(--surface); paint-order: stroke; font-weight: 700; pointer-events: none; }
.mapbox .bcl { stroke: none; }
.mapbox .mlabel { fill: var(--ink); font-weight: 800; }
/* street map (map-gl.js): the box takes its height first, the drawn map waits inside it, the street map covers it when ready */
.mapbox.gl { position: relative; height: clamp(20rem, min(60vh, 115vw), 40rem); }
.mapbox.gl > svg { height: 100%; aspect-ratio: auto; }
/* transparent, not hidden: MapLibre does not draw (or finish loading) in a box the browser counts as hidden */
.mapbox .mgl { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.mapbox.gl-on .mgl { opacity: 1; pointer-events: auto; }
.mapbox.gl-on > svg { display: none; }
.mapbox .maplibregl-ctrl-group { border: 2px solid var(--edge); border-radius: 8px; box-shadow: var(--shadow-sm); background: var(--surface); }
.mapbox .maplibregl-ctrl-group button { width: 2.75rem; height: 2.75rem; }
.mapbox .maplibregl-ctrl-group button + button { border-top: 1px solid var(--edge); }
.mapbox .maplibregl-ctrl-group button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; box-shadow: none; }
.mapbox .maplibregl-ctrl-attrib { font: 12px/1.4 var(--body); background: color-mix(in srgb, var(--surface) 85%, transparent); }
.mapbox .maplibregl-ctrl-attrib a { color: var(--ink); }
.mapbox .maplibregl-cooperative-gesture-screen { font: 600 1.05rem/1.4 var(--body); }
:root[data-theme="dark"] .mapbox .maplibregl-ctrl button .maplibregl-ctrl-icon { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mapbox .maplibregl-ctrl button .maplibregl-ctrl-icon { filter: invert(1); } }
.mpanel-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.mlist { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .6rem; overflow-wrap: anywhere; }
.mstate { padding: .2rem 1rem; margin-top: .6rem; box-shadow: none; }
.mstate summary { font-weight: 700; min-height: 2.75rem; display: flex; align-items: center; gap: .5rem; }
.mstate .n { font-weight: 500; color: var(--ink-2); }
.mstate h3 { font-size: 1.05rem; margin: 1rem 0 0; }
.mstate > div { padding-bottom: .8rem; }
