/* Norfolk DCS. Shared styles: page layout lives in inline styles,
   this file holds only what inline styles cannot express. */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #FBF8F3; color: #22414F; font-size: 17px;
  font-family: 'Atkinson Hyperlegible', 'Lexend', system-ui, sans-serif; }
* { box-sizing: border-box; }
a { color: #0B5A8A; text-underline-offset: 3px; }
a:hover { color: #093F60; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #B4551F; outline-offset: 3px; border-radius: 4px; }
::selection { background: #FFC24B; color: #0C3446; }
input, select, textarea, button { font: inherit; }
img { max-width: 100%; }
header a:not(.skip-link) { text-decoration: none; }
header nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 60; background: #0C3446;
  color: #fff; padding: 12px 18px; border-radius: 0 0 12px 0; font-weight: 700; text-decoration: none; }
.skip-link:focus { left: 0; }
.only-desktop { display: contents; }
.only-mobile { display: none; }
@media (max-width: 899px) {
  .only-desktop { display: none; }
  .only-mobile { display: contents; }
}
.nextup-mobile { display: none; }
/* ---- Mobile refinements (<=899px) ---- */
@media (max-width: 899px) {
  body { font-size: 16.5px; }
  .util-bar { font-size: 13.5px; }
  .util-bar > div { padding-top: 7px !important; padding-bottom: 7px !important; row-gap: 4px !important; }
  .util-links { gap: 16px !important; }
  .util-links a:first-child { display: none; }      /* Accessibility also sits in the footer */
  .brand-row { padding-top: 10px !important; padding-bottom: 10px !important; gap: 10px !important; }
  .brand-logo { width: 52px !important; height: 52px !important; }
  .brand-name { font-size: 16px !important; }
  .nextup-desktop { display: none !important; }
  .nextup-mobile { display: block; }
  .util-bar { display: none; }
  .mobile-actions { gap: 6px !important; flex-wrap: nowrap !important; white-space: nowrap; }
  .mobile-actions a, .mobile-actions button { white-space: nowrap !important; flex: 0 0 auto; }
  .mobile-actions a { padding: 10px 14px !important; font-size: 14.5px !important; }
  .mobile-actions button { padding: 0 12px !important; font-size: 14.5px !important; }
  main section { padding-left: clamp(16px, 4vw, 40px) !important; padding-right: clamp(16px, 4vw, 40px) !important; }
  h1 { letter-spacing: -.02em !important; }
}
@media (max-width: 419px) {
  .brand-name { font-size: 15px !important; }
  .brand-logo { width: 46px !important; height: 46px !important; }
  .mobile-actions a { padding: 10px 12px !important; font-size: 14px !important; }
  .mobile-actions button span svg { display: none; }  /* "Menu" word alone keeps the tap target */
}
/* Auto-fit grids: collapse to one column before the tracks get cramped.
   Two 290px cards in a 640px phone leaves ~10px of breathing room — the
   "squish". Below 700px everything on the home page stacks instead. */
@media (max-width: 700px) {
  [style*="minmax(320px"], [style*="minmax(300px"], [style*="minmax(290px"],
  [style*="minmax(280px"], [style*="minmax(260px"], [style*="minmax(250px"],
  [style*="minmax(240px"], [style*="minmax(220px"], [style*="minmax(210px"] {
    grid-template-columns: 1fr !important;
  }
  /* the stat card floating off the hero image edge clipped on narrow screens */
  main section:first-of-type [style*="position:absolute"][style*="bottom:-18px"] {
    position: static !important;
    margin-top: 14px;
    box-shadow: 0 4px 14px rgba(12,52,70,.10) !important;
  }
  main section:first-of-type { padding-bottom: 8px !important; }
  /* hero and section headings hold their shape better a touch smaller */
  main h1 { font-size: clamp(30px, 8.4vw, 40px) !important; }
  /* full-width buttons read better than two cramped pills */
  main section > div > div > div > a[style*="min-height:54px"] { flex: 1 1 100%; }
}
@media (max-width: 420px) {
  main section [style*="border-radius:28px"],
  main section [style*="border-radius:24px"] { border-radius: 20px !important; }
  main section [style*="padding:26px;"], main section [style*="padding:24px;"] { padding: 20px !important; }
}
/* clip, not hidden: `overflow:hidden` on html/body turns the page into a
   nested scroll container in some browsers and strands the footer. */
body { overflow-x: clip; }

/* Eight nav items need a little less room between 900 and 1100px. */
@media (min-width: 900px) and (max-width: 1100px) {
  header nav[aria-label="Main"] a { padding-left: 7px !important; padding-right: 7px !important; font-size: 14.5px !important; letter-spacing: -.01em; }
}
header nav[aria-label="Main"] { scrollbar-width: none; }
header nav[aria-label="Main"]::-webkit-scrollbar { display: none; }

[data-hover]:hover { filter: brightness(0.96); }
[data-lift] { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
[data-lift]:hover { transform: translateY(-3px); border-color: #0B5A8A; box-shadow: 0 10px 24px rgba(12,52,70,.12); }
input:focus, select:focus, textarea:focus { border-color: #0B5A8A; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print { header, footer, .skip-link { display: none !important; } }
