/* The pages a searcher lands on (web/state/, api/found.py): a state's test, its road
 * signs, its practice questions, and the page for an address that is not there. They
 * are the front page's road: its bar, its sign buttons, exits and plaques come from
 * /site/front.css and the kit, and only what those pages add is here. */

main.found { padding: 8px 0 0; }
main.found h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 14px; max-width: 22ch; }
main.found .lede { margin: 0; }

/* an address with no page */
.lost { padding-top: clamp(28px, 6vw, 64px); padding-bottom: clamp(48px, 8vw, 96px); }
.lost .picks { margin-top: 26px; }
.picks.on-ground a { box-shadow: 0 0 0 1.5px var(--line-2), 0 2px 0 rgb(0 0 0 / .12); }

/* where you are: the brand, the state, this page */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-top: 10px; padding-bottom: 22px;
  font: 600 14px/1.2 var(--sign-face); color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--guide-ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

/* the top of a page: its heading, the answer, the way on */
.top { padding-bottom: clamp(32px, 5vw, 56px); }
.top .lede { max-width: 60ch; }
.top .cta { margin-top: 22px; }
.read { max-width: 66ch; }
.read > p { margin: 0 0 14px; font-size: 18px; line-height: 1.55; }
.read > p:first-child { font-size: clamp(19px, 2vw, 22px); font-weight: 600; }
.found .plaques { margin-top: 30px; padding: 0; }
.found .plaque b { font-size: clamp(34px, 6vw, 52px); }

/* a test marked in parts: each part on a white plate, the way a rule is posted */
.parts { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.parts li { padding: 12px 16px; border-radius: 12px; background: var(--plate); color: var(--plate-ink);
  box-shadow: inset 0 0 0 2px var(--plate-ink); font-size: 17px; }

/* the sections below the top: bands across the road's shoulder */
.band { padding: clamp(34px, 5vw, 60px) 0; border-top: 1.5px solid var(--line); }
.band.zone { background: var(--zone); border-top: 0; }
.band h2, .said h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.015em; }
.band .lede { margin: 0 0 6px; font-size: 18px; }

/* the state's own words on its test, from its guide */
.said p, .said li { font-size: 17px; }
.said p { margin: 0 0 14px; }
.said h3 { margin: 22px 0 8px; font-size: 19px; }
.said ul:not(.ticks) { margin: 0 0 14px; padding-left: 1.2em; }
.said .ticks { margin: 0 0 16px; }
.said figure { margin: 0 0 16px; max-width: 200px; }
.said img { display: block; max-width: 100%; height: auto; border-radius: 10px; }

/* ways on: plain rows with the road's arrow */
.ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 560px; }
.ways a { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: var(--tap); padding: 10px 16px;
  border-radius: 12px; background: var(--plate); color: var(--plate-ink); text-decoration: none;
  font: 700 17px/1.2 var(--sign-face); box-shadow: inset 0 0 0 2px var(--plate-ink); }
.ways a::after { content: ""; flex: none; width: 18px; height: 18px; background: currentColor;
  clip-path: polygon(0 38%, 58% 38%, 58% 6%, 100% 50%, 58% 94%, 58% 62%, 0 62%); }
@media (hover: hover) { .ways a:hover { background: var(--guide); color: #fff; box-shadow: inset 0 0 0 2px var(--guide); } }
.more-head { margin-top: 34px !important; }
.band .source-sign { margin-top: 0; }
.band .source-sign + .fine { max-width: 72ch; }

/* the signs: each as it looks on the road, its name, what it means */
.signs { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0 36px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.signs li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 0;
  border-top: 1.5px solid var(--line-2); }
.signs img { width: 76px; height: 76px; object-fit: contain; }
.signs h3 { margin: 2px 0 5px; font: 800 14.5px/1.2 var(--sign-face); letter-spacing: .05em; }
.signs p { margin: 0; font-size: 16.5px; line-height: 1.4; }
.signs .shape { margin-top: 5px; font-size: 14.5px; color: var(--muted); }

/* practice questions: each on a white plate; an answer picked turns red or green, the
   right one shows, and the reason opens. No script: the browser does it (:has). */
.qs { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; max-width: 780px; counter-reset: q; }
.q { counter-increment: q; padding: 24px 20px 20px; border-radius: 18px; background: var(--plate); color: var(--plate-ink);
  box-shadow: inset 0 0 0 5px var(--plate), inset 0 0 0 7.5px var(--plate-ink), 0 0 0 1px var(--line-2); }
.q-topic { margin: 0 0 10px; font: 800 12.5px/1 var(--sign-face); letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.q-topic::before { content: "Question " counter(q) " · "; }
.q h2 { margin: 0 0 16px; font: 700 clamp(19px, 2.4vw, 23px)/1.25 var(--sign-face); letter-spacing: -.01em; }
.q-sign { display: block; width: 120px; height: 120px; object-fit: contain; margin: 0 0 16px; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; min-height: var(--tap); margin: 0; padding: 10px 14px; border-radius: 12px;
  cursor: pointer; font: 600 16.5px/1.3 var(--read-face); color: var(--plate-ink); box-shadow: inset 0 0 0 2px var(--plate-ink); }
.opt input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: #14191e; }
.opt:has(input:focus-visible) { outline: 3px solid var(--info); outline-offset: 2px; }
.opt:has(input:checked) { background: var(--stop); color: #fff; box-shadow: inset 0 0 0 2px var(--stop); }
.q:has(input:checked) .opt.right { background: var(--orr-green); color: #fff; box-shadow: inset 0 0 0 2px var(--orr-green); }
.why { display: none; margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--plate-ink); }
.q:has(input:checked) .why { display: block; }
@supports not selector(:has(a)) { .why { display: block; } }
.why p { margin: 0 0 10px; font-size: 16.5px; }
.q-src { display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 0 !important; padding: 9px 13px; border-radius: 10px;
  background: var(--orr-blue); color: #fff; font: 700 14.5px/1.3 var(--sign-face) !important; }
.q-src svg { flex: none; width: 20px; height: 20px; }
.after { max-width: 62ch; margin: 28px 0 0; font-size: 18px; }
.band .cta { margin-top: 18px; }

/* the front page's list of what there is to read for each open state */
.reads { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(36px, 6vw, 72px); }
.reads .lede { margin: 12px 0 0; }
.reads ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 0 36px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.reads li { padding: 12px 0; border-top: 1.5px solid var(--line-2); font-size: 16.5px; }
.reads li b { display: block; font: 800 15px/1.3 var(--sign-face); letter-spacing: .02em; }
.read-first a, .reads a { white-space: nowrap; }
