/* White copy over the full-page photo/video; preserve contrast in light panels. */
body.video-copy-white {
  --ink:#fff;
  --slate:#fff;
  --mute:#fff;
  --copy-shadow:0 1px 3px rgba(0,0,0,.9),0 0 12px rgba(0,0,0,.65);
  color:#fff;
}
body.video-copy-white :is(h1,h2,h3,h4,p,li,td,th,dt,dd,small,figcaption,strong,b,summary) {
  text-shadow:var(--copy-shadow);
}
body.video-copy-white :is(.topbar,.callbar) { background:#10161f; }
/* These components retain light backgrounds; their copy stays dark. */
body.video-copy-white :is(header.nav,.mobile-menu,.nav-drop-m,.hamb,.pa,.fight,.atty,.rev,details,.pr-note,.pr-warn,.pr-cta,.pr-counties a,.pr-table th,.info,.stat,.tag,.flag,.towns span,.cty,.consult .cb) {
  --ink:#10161f;
  --slate:#44566e;
  --mute:#6e7e93;
  --copy-shadow:none;
  color:#132339;
}
body.video-copy-white :is(input,select,textarea) {
  --ink:#10161f;
  --slate:#44566e;
  color:#10161f;
  text-shadow:none;
}
body.video-copy-white :is(input,textarea)::placeholder { color:#526176; opacity:1; }
body.video-copy-white .pr-table td { background:rgba(0,0,0,.18); }
/* Light boxes over the video: dark text, no glow (Dustin, 28 Oct 2026 - white on white was unreadable). */
body.video-copy-white :is(.info,.stat,.tag,.flag,.towns span,.cty,.consult .cb) :is(h1,h2,h3,h4,p,li,td,th,dt,dd,small,span,strong,b,label,div){color:#132339;text-shadow:none!important}
body.video-copy-white .consult .cb :is(label,.fine,.fine *){color:#132339!important;text-shadow:none!important}
body.video-copy-white :is(.info,.cty,.consult .cb) .sub{color:#44566e}
/* No glow/shadow behind any text (Dustin, 28 Oct 2026). */
body.video-copy-white, body.video-copy-white *{text-shadow:none!important}

/* Header lock (Dustin, 31 Oct 2026): the top bar and the logo/nav bar stay
   perfectly still while the visitor scrolls, the WHOLE logo stays visible,
   and Make a Payment + Client Login are always on screen.
   - The logo (172px) is taller than the nav (88px) and overlaps the top bar on
     purpose, so the top bar sits BELOW the nav in stacking order (59 < 60).
   - Top-bar items never wrap (wrapping made it taller than 42px and pushed the
     buttons out of the bar). Lower-priority items drop out as the screen narrows
     so nothing slides under the logo; the phone stays in the nav and the
     mobile call bar. */
.topbar{position:sticky;top:0;z-index:59}
header.nav{top:42px}
.topbar-in{gap:1rem}
.topbar-in .l > *{white-space:nowrap}
@media(max-width:1499px){.topbar-in > .l:first-child .hidem{display:none}}
@media(max-width:940px){.topbar-in > .l:nth-child(2){display:none}}
@media(max-width:480px),(min-width:561px) and (max-width:720px){.topbar .avail{display:none}}
/* Code-library pages (penal-code-*, vehicle-code-*, california-code-guide) */
.site-header{position:sticky;top:0;z-index:60}
/* Keep in-page anchor jumps from landing under the locked header */
html{scroll-padding-top:140px}

/* No section divider lines over the background video (Dustin, 31 Oct 2026):
   the 1px cream borders on .fights/.trust read as a "page end" line. */
body.video-copy-white :is(section,.trust,footer){border-top:0!important;border-bottom:0!important}

/* Make the DMV deadline line legible over the photo on the home and county pages. */
.fights .clockline{
  width:fit-content;
  max-width:100%;
  margin:26px auto 0;
  padding:.25rem .55rem;
  background:#0b49b5;
  color:#fff;
  font-weight:700;
  line-height:1.35;
}
