/* Spot the Violation - pages.css
 * Styles for the prerendered pages only (scripts/prerender.js writes dist/drill/<id>/, dist/drills/ and its per-trade and
 * per-category pages, the /minnesota/ and /codes/ hubs and their per-trade pages /minnesota/<track>/ and /codes/<track>/,
 * /terms/ and /privacy/), loaded after css/app.css: the no-JS menu button, the breadcrumb, the static choices, the answer
 * <details>, the link lists, the hubs' spacing and the print layout of a drill page, which css/app.css has no class for. The header, its trade switcher and
 * More menu (both <details>, so they need no script), the footer, the hubs' .chooser-grid/.chooser-card, .also-row,
 * .code-jump/.jump-link, .card-go and the pills are css/app.css's (the open phone menu there is written for both
 * .site-nav.is-open and this checkbox). A stylesheet rather than an inline <style> block, so the Content-Security-Policy
 * can be style-src 'self' with no 'unsafe-inline'.
 */
.nav-toggle { cursor: pointer; }
.nav-check:focus-visible ~ .header-actions .nav-toggle { outline: 3px solid var(--accent); outline-offset: 2px; }
.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 6px; font-size: 0.85rem; color: var(--muted); }
.crumbs li + li::before { content: "\203A"; margin-right: 6px; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--text); font-weight: 600; }
.drill-meta { display: block; white-space: normal; }
.drill-meta > span { margin-right: 6px; }
.pre-choices .choice, .pre-choices .choice:hover { cursor: default; box-shadow: none; background: var(--surface); border-color: var(--border-strong); }
.pre-start { width: 100%; }
.pre-answer { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.pre-answer > summary { cursor: pointer; padding: 14px 16px; min-height: 52px; font-weight: 700; color: var(--accent-text); }
.pre-answer[open] > summary { border-bottom: 1px solid var(--border); }
.pre-answer .ref-title .code-badge { vertical-align: 2px; }
.pre-answer .ref-title .ref-section { font-size: 1rem; }
.pre-why { margin: 0; padding-left: 1.25rem; display: grid; gap: 6px; font-size: 0.92rem; }
.lede { font-size: 1.05rem; color: var(--muted); max-width: 46em; }
.pre-group { margin-top: 28px; }
.pre-group > h2, .pre-group > h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pre-group > ul + h3 { margin-top: 20px; }
.pre-group .sub { margin: -2px 0 12px; color: var(--muted); font-size: 0.92rem; max-width: 46em; }
.pre-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 24px; }
@media (min-width: 720px) { .pre-list.is-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .pre-list.is-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pre-list li { display: flex; align-items: baseline; gap: 8px; }
.pre-list a { padding: 7px 0; min-width: 0; color: var(--text); text-decoration-color: var(--border-strong); }
.pre-list a:hover { color: var(--accent-text); text-decoration-color: currentColor; }
.pre-list .pill { flex: none; }
.code-sec { padding: 12px 14px; scroll-margin-top: 12px; }
.code-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0; font-size: 1rem; }
.code-sec .code-drills { padding: 2px 0 0; background: none; }
.code-sec .code-drills a { min-height: 36px; padding: 6px 0; text-decoration: none; }
.code-sec .code-drills .t { text-decoration: underline; }
.code-sec:target { box-shadow: inset 4px 0 0 var(--accent); }
/* related pages as one line of plain links ("GFCI (6) · All electrical drills · All drills") */
.pre-links { margin: 20px 0 0; color: var(--muted); }
/* the /codes/ and /minnesota/ hubs: the trade cards under the lede */
.pre-hub .chooser-grid { margin-top: 16px; }
/* printing a drill page: the answer (js/theme.js opens it on beforeprint; its summary line is hidden only once it is
   open, so a printout without JavaScript keeps the "Show the answer" cue), not the menus, the Start button or the
   related drills; the picture at a readable size; blocks kept whole across pages; no shadows */
@media print {
  .site-header, .site-footer, .crumbs, .pre-start, .pre-links, section[aria-labelledby="more-h"], #theme-toggle,
  details.pre-answer[open] > summary { display: none !important; }
  .scene-wrap { max-width: 4.5in; margin: 0 auto; }
  .choice, .ref-card, .reveal-block, .mn-note { break-inside: avoid; }
  *, *::before, *::after { box-shadow: none !important; }
  /* paper is read up close: a smaller type scale and tighter boxes, so a drill fits two Letter pages */
  html { font-size: 13px; }
  .pre-choices .choice { min-height: 0; padding: 6px 10px; gap: 8px; }
  .pre-choices .choice .key { width: 22px; height: 22px; margin-top: 0; font-size: 0.8rem; }
  .pre-answer { border: 0; }
  .pre-answer .reveal-body { padding: 12px 0 0; gap: 12px; }
}
