/* core.css = tokens.css + base.css (generated) */
/* LA CCTV Supply — SCIF site design tokens ("Night Ops Blueprint"). Single source of truth. */
:root{
  /* grounds */
  --bg:#05080D; --bg-2:#070C13; --surface:#0B121B; --surface-2:#101A26; --surface-3:#15212F;
  --glass:rgba(11,18,27,.72); --glass-border:rgba(140,190,230,.16);
  /* ink */
  --ink:#E6EEF5; --ink-2:#A9BACB; --ink-3:#6F8398; --ink-4:#4A5A6B;
  /* lines */
  --line:rgba(120,180,220,.14); --line-2:rgba(120,180,220,.08); --grid:rgba(63,208,255,.06);
  /* signal colors */
  --cyan:#3FD0FF;   --cyan-soft:rgba(63,208,255,.12);   /* shield / secure perimeter / BLACK-side safe */
  --amber:#FFB547;  --amber-soft:rgba(255,181,71,.12);  /* caution / trap / compartment */
  --red:#FF5A5F;    --red-soft:rgba(255,90,95,.12);     /* RED (unencrypted classified) / denied */
  --green:#3DDC97;  --green-soft:rgba(61,220,151,.12);  /* pass / granted / compliant */
  --violet:#9C8CFF; --violet-soft:rgba(156,140,255,.12);/* history / reference */
  /* type */
  --font-display:"Barlow Semi Condensed","Arial Narrow",system-ui,sans-serif;
  --font-body:"IBM Plex Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --font-mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  /* shape & depth */
  --r-sm:8px; --r:14px; --r-lg:22px; --r-pill:999px;
  --shadow:0 1px 0 rgba(255,255,255,.03) inset, 0 24px 60px -30px rgba(0,0,0,.8);
  --glow-cyan:0 0 0 1px rgba(63,208,255,.35), 0 0 28px -6px rgba(63,208,255,.45);
  /* motion */
  --ease:cubic-bezier(.2,.8,.2,1); --t-fast:180ms; --t:320ms; --t-slow:700ms;
  /* layout */
  --maxw:1240px; --gutter:clamp(16px,4vw,40px);
}
@media (prefers-reduced-motion:reduce){:root{--t-fast:0ms;--t:0ms;--t-slow:0ms}}

/* ==========================================================================
   LA CCTV Supply -- SCIF site base ("Night Ops Blueprint")
   Shared by every SCIF page. Values come from tokens.css; layout-only vars below.
   Sections: reset · ground · type · links/buttons · chips/badges/cards · prose
             tables · callouts · site nav · mobile sheet · footer · utilities · print
   ========================================================================== */

:root {
  --nav-h: 64px;
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--amber);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color-scheme: dark; scroll-padding-top: calc(var(--nav-h) + 16px); background: var(--bg); }
body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
svg.icon { display: inline-block; flex: none; vertical-align: middle; }
input, button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

/* ---------- ground: blueprint grid + glow (fixed, CSS only) ---------- */
body {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
body::before {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%);
  opacity: .55;
}
body::after {
  background:
    radial-gradient(900px 520px at 88% -8%, var(--cyan-soft), transparent 70%),
    radial-gradient(700px 480px at -6% 12%, var(--violet-soft), transparent 72%),
    radial-gradient(800px 600px at 50% 110%, var(--amber-soft), transparent 75%);
  opacity: .7;
}

::selection { background: var(--cyan); color: var(--bg); }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.005em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.35rem + 3.2vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { text-wrap: pretty; }
strong, b { font-weight: 600; color: var(--ink); }
small { font-size: .8125rem; }
code, kbd, pre, samp { font-family: var(--font-mono); }
abbr[title] { text-decoration: underline dotted var(--ink-3); cursor: help; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.lede { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.6; color: var(--ink-2); max-width: 66ch; }
.lede strong { color: var(--ink); }
.section-head { display: grid; gap: .6rem; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.section-head h2 { max-width: 22ch; }
.u-cyan { color: var(--cyan); }
.u-amber { color: var(--amber); }
.u-green { color: var(--green); }
.u-red { color: var(--red); }
.u-mono { font-family: var(--font-mono); }

/* ---------- links ---------- */
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 1000;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--amber); color: var(--bg); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  --btn-h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: var(--btn-h); padding: 0 1.25rem;
  border: 1px solid var(--glass-border); border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink);
  font-family: var(--font-body); font-size: .9375rem; font-weight: 600; line-height: 1.1; letter-spacing: .005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:hover { color: var(--ink); border-color: var(--line); background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cyan); border-color: var(--cyan); color: var(--bg); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); box-shadow: var(--glow-cyan); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--glass-border); color: var(--ink); }
.btn-amber { background: var(--amber); border-color: var(--amber); color: var(--bg); }
.btn-amber:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-sm { --btn-h: 40px; padding: 0 1rem; font-size: .875rem; }
.btn-lg { --btn-h: 54px; padding: 0 1.6rem; font-size: 1rem; }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }

/* ---------- chips, tags, badges, kbd ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45em;
  min-height: 40px; padding: .5rem .95rem;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--glass); color: var(--ink-2);
  font-size: .875rem; line-height: 1.3; text-decoration: none; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.chip:hover { border-color: var(--amber); background: var(--amber-soft); color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-on { border-color: var(--cyan); background: var(--cyan-soft); color: var(--ink); }

.tag {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .2rem .55rem; border-radius: 6px;
  background: var(--cyan-soft); color: var(--cyan);
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4;
}
.tag--amber { background: var(--amber-soft); color: var(--amber); }
.tag--violet { background: var(--violet-soft); color: var(--violet); }
.tag--green { background: var(--green-soft); color: var(--green); }
.tag--red { background: var(--red-soft); color: var(--red); }

.badge {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .3rem .7rem; border: 1px solid var(--line); border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.badge .icon { color: var(--green); }

kbd {
  display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .4em;
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px;
  background: var(--surface-2); color: var(--ink-2); font-size: .75rem; line-height: 1;
}

/* ---------- cards / glass ---------- */
.card, .glass {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}
.card { padding: clamp(1.1rem, 2.4vw, 1.75rem); }
.card--link { display: block; color: inherit; text-decoration: none; transition: border-color var(--t-fast) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.card--link:hover { color: inherit; border-color: var(--line); transform: translateY(-2px); box-shadow: var(--shadow), var(--glow-cyan); }
.card .corner, .ticks::before {
  content: ""; position: absolute; inset: 8px; pointer-events: none; border-radius: calc(var(--r-lg) - 6px);
  background:
    linear-gradient(var(--cyan), var(--cyan)) top left / 10px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) top left / 1px 10px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) bottom right / 10px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) bottom right / 1px 10px no-repeat;
  opacity: .5;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 8vw, 6.5rem); }

.hazard { height: 6px; border-radius: 2px; background: repeating-linear-gradient(135deg, var(--amber) 0 8px, transparent 8px 16px); opacity: .9; }

/* ---------- prose (rendered KB markdown) ---------- */
.prose { color: var(--ink-2); font-size: 1rem; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose p, .prose li { max-width: 78ch; }
.prose strong { color: var(--ink); }
.prose em { color: var(--ink); font-style: italic; }
.prose a { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(63, 208, 255, .35); }
.prose a:hover { color: var(--ink); text-decoration-color: currentColor; }
.prose a[target="_blank"]::after { content: "\2197"; display: inline-block; margin-left: .15em; font-size: .75em; color: var(--ink-3); text-decoration: none; }
.prose a.xref { font-style: normal; font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: .4em; }
.prose li > ul, .prose li > ol { margin-top: .4em; }
.prose ul > li::marker { color: var(--cyan); }
.prose ol > li::marker { color: var(--ink-3); font-family: var(--font-mono); font-size: .875em; }
.prose h3, .prose h4 { margin-top: 1.6em; color: var(--ink); font-size: 1.2rem; letter-spacing: .01em; }
.prose h4 { font-size: 1rem; font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.prose code {
  padding: .1em .38em; border: 1px solid var(--line-2); border-radius: 5px;
  background: var(--surface-2); color: var(--ink); font-size: .875em;
}
.prose pre {
  overflow-x: auto; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg-2); color: var(--ink-2); font-size: .8125rem; line-height: 1.55; tab-size: 2;
}
.prose pre code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }
.prose blockquote { padding: .2em 0 .2em 1.1em; border-left: 2px solid var(--line); color: var(--ink-2); font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.prose--sm { font-size: .9375rem; line-height: 1.6; }
mark { padding: 0 .12em; border-radius: 3px; background: var(--amber-soft); color: var(--amber); box-shadow: inset 0 -1px 0 rgba(255, 181, 71, .45); }

/* ---------- tables ---------- */
.tablewrap {
  position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent;
}
.tablewrap table { width: 100%; min-width: 520px; font-size: .875rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.tablewrap th, .tablewrap td { padding: .65rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.tablewrap thead th {
  position: sticky; top: 0;
  background: var(--surface-2); color: var(--ink-3);
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  border-bottom-color: var(--line);
}
.tablewrap tbody tr:last-child > * { border-bottom: 0; }
.tablewrap tbody tr:nth-child(even) { background: rgba(120, 180, 220, .025); }
.tablewrap tbody tr:hover { background: var(--cyan-soft); }
.tablewrap td:first-child, .tablewrap tbody th { color: var(--ink); }
.tablewrap td strong { color: var(--ink); }
.tablewrap td p { margin: 0; }
.prose .tablewrap { max-width: 100%; }

/* ---------- callouts ---------- */
.co {
  --co: var(--cyan); --co-soft: var(--cyan-soft);
  position: relative;
  padding: .95rem 1.1rem 1rem 1.15rem;
  border: 1px solid var(--line-2); border-left: 3px solid var(--co); border-radius: 0 var(--r) var(--r) 0;
  background: linear-gradient(90deg, var(--co-soft), transparent 75%), var(--surface);
  color: var(--ink-2);
}
.co > p, .co > ul, .co > ol { max-width: 76ch; }
.co > * + * { margin-top: .6em; }
.co-label {
  display: inline-flex; align-items: center; gap: .5em; margin-bottom: .45rem;
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--co);
}
.co-label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--co); box-shadow: 0 0 10px var(--co); }
.co-label + p { margin-top: 0; }
.co-trap { --co: var(--amber); --co-soft: var(--amber-soft); }
.co-trap .co-label::before { width: 22px; height: 8px; border-radius: 1px; box-shadow: none; background: repeating-linear-gradient(135deg, var(--amber) 0 3px, transparent 3px 6px); }
.co-field { --co: var(--green); --co-soft: var(--green-soft); }
.co-plain { --co: var(--cyan); --co-soft: var(--cyan-soft); }
.co-verify { --co: var(--red); --co-soft: var(--red-soft); }
.co-hist { --co: var(--violet); --co-soft: var(--violet-soft); }

.src-line {
  padding-top: .9rem; border-top: 1px dashed var(--line);
  font-size: .8125rem; line-height: 1.8; color: var(--ink-3);
}
.prose .src-line a { color: var(--ink-2); text-decoration-color: var(--ink-4); }
.prose .src-line a:hover { color: var(--cyan); }
.prose .src-line a[target="_blank"]::after { display: none; }
.src-label {
  margin-right: .6em; padding: .15rem .45rem; border-radius: 4px; background: var(--surface-3);
  font-family: var(--font-mono); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}

/* ==========================================================================
   Site nav
   ========================================================================== */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 8, 13, .78);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.site-nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(63, 208, 255, .45), transparent); opacity: .6; pointer-events: none; }
.site-nav__bar {
  display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.75rem);
  height: var(--nav-h); max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter);
}
.site-logo { display: inline-flex; flex: none; border-radius: 10px; }
.site-logo__plate {
  display: inline-flex; align-items: center;
  padding: 4px 2px; border-radius: 10px;
  background: none;
}
.site-logo__plate img { width: auto; height: 34px; filter: drop-shadow(0 0 14px rgba(63, 208, 255, .18)); }
.site-logo__plate--sm img { height: 24px; }
.site-nav__primary { flex: 1; min-width: 0; }
.site-nav__list { display: flex; align-items: center; gap: 2px; }
.site-nav__link {
  position: relative; display: inline-flex; align-items: center; gap: .4em;
  height: 40px; padding: 0 .8rem; border: 0; border-radius: var(--r-pill);
  background: none; color: var(--ink-2);
  font-size: .875rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.site-nav__link:hover { color: var(--ink); background: var(--surface-2); }
.site-nav__link[aria-current="page"] { color: var(--ink); }
.site-nav__link[aria-current="page"]::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: -12px; height: 2px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.site-nav__link--portal .icon { color: var(--amber); }
.site-nav__actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.site-nav__burger, .site-sheet__close {
  display: none; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
}

.site-dd { position: relative; }
.site-dd__btn .icon { transition: transform var(--t-fast) var(--ease); color: var(--ink-3); }
.site-dd__btn[aria-expanded="true"] { color: var(--ink); background: var(--surface-2); }
.site-dd__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.site-dd__menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 260px; padding: .4rem;
  border: 1px solid var(--glass-border); border-radius: var(--r);
  background: rgba(11, 18, 27, .96); box-shadow: var(--shadow), 0 30px 60px -20px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility 0s linear var(--t-fast);
}
.site-dd.is-open .site-dd__menu,
.no-js .site-dd:hover .site-dd__menu,
.no-js .site-dd:focus-within .site-dd__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.site-dd__menu a { display: block; padding: .55rem .8rem; border-radius: 8px; color: var(--ink-2); font-size: .875rem; text-decoration: none; }
.site-dd__menu a:hover, .site-dd__menu a:focus-visible { background: var(--surface-2); color: var(--ink); }

/* mobile sheet */
.site-sheet {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column;
  height: 100vh; height: 100dvh;
  background: var(--bg-2);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  animation: sheet-in var(--t) var(--ease);
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.site-sheet__head { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); padding-inline: var(--gutter); border-bottom: 1px solid var(--line); }
.site-sheet__close { display: grid; }
.site-sheet__body { flex: 1; overflow-y: auto; padding: 1.25rem var(--gutter) 1.5rem; }
.site-sheet__body .eyebrow { margin: .5rem 0 .6rem; }
.site-sheet__list { margin-bottom: 1.25rem; }
.site-sheet__list a {
  display: flex; align-items: center; gap: .6rem; padding: .7rem .2rem;
  border-bottom: 1px solid var(--line-2); color: var(--ink);
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; text-decoration: none;
}
.site-sheet__list a[aria-current="page"] { color: var(--cyan); }
.site-sheet__list a .icon { color: var(--amber); }
.site-sheet__list--sm a { padding: .5rem .2rem; font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--ink-2); }
.site-sheet__foot { display: grid; gap: .6rem; padding: 1rem var(--gutter) calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
html.has-sheet, html.has-sheet body { overflow: hidden; }

@media (max-width: 1180px) {
  .site-nav__link { padding: 0 .6rem; }
  .site-nav__link[aria-current="page"]::after { left: .6rem; right: .6rem; }
}
@media (max-width: 1060px) {
  .js .site-nav__primary { display: none; }
  .js .site-nav__burger { display: grid; }
  .no-js .site-nav__bar { height: auto; flex-wrap: wrap; padding-block: .6rem; }
  .no-js .site-nav__primary { order: 3; flex-basis: 100%; overflow-x: auto; }
  .site-nav__actions { margin-left: auto; }
}
@media (max-width: 420px) {
  .js .site-nav__cta { display: none; }
  .site-logo__plate img { height: 24px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative; margin-top: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 12, 19, .6), var(--bg-2) 40%);
  color: var(--ink-2); font-size: .9375rem;
}
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 181, 71, .5), transparent); }
.site-footer__inner { max-width: 1440px; margin-inline: auto; padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 1.5rem; }
.site-footer__grid { display: grid; grid-template-columns: minmax(240px, 1.5fr) repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.site-footer__brand .site-logo__plate img { height: 34px; }
.site-footer__tag { margin-top: 1rem; max-width: 34ch; color: var(--ink-2); }
.site-footer__badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.site-footer__h { margin-bottom: .9rem; font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.site-footer__col ul { list-style: none; padding: 0; display: grid; gap: .45rem; }
.site-footer__col a:not(.btn) { display: inline-block; padding-block: .32rem; margin-block: -.32rem; color: var(--ink-2); text-decoration: none; }
.site-footer__col a:not(.btn):hover { color: var(--cyan); }
.site-footer__addr { display: grid; gap: .6rem; margin-bottom: 1.1rem; font-style: normal; }
.site-footer__addr > span, .site-footer__addr > a { display: flex; gap: .55rem; align-items: flex-start; }
.site-footer__addr .icon { margin-top: .28em; color: var(--cyan); }
.site-footer__scope {
  margin-top: clamp(2rem, 5vw, 3rem); padding: 1rem 1.15rem;
  border: 1px solid var(--line-2); border-left: 3px solid var(--cyan); border-radius: 0 var(--r) var(--r) 0;
  background: linear-gradient(90deg, var(--cyan-soft), transparent 70%), var(--surface);
  color: var(--ink-2); font-size: .875rem; line-height: 1.6; max-width: 110ch;
}
.site-footer__scope + .site-footer__disclaimer { margin-top: 1rem; }
.site-footer__disclaimer {
  margin-top: clamp(2rem, 5vw, 3rem); padding: 1rem 1.15rem;
  border: 1px solid var(--line-2); border-left: 3px solid var(--amber); border-radius: 0 var(--r) var(--r) 0;
  background: var(--surface); color: var(--ink-3); font-size: .8125rem; line-height: 1.6; max-width: 110ch;
}
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-2); font-size: .8125rem; color: var(--ink-3); }
.site-footer__legal-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer__legal a { display: inline-flex; align-items: center; gap: .35em; min-height: 32px; color: var(--ink-2); text-decoration: none; }
.site-footer__legal a:hover { color: var(--ink); }
@media (max-width: 1000px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; } .site-footer__col:nth-child(2) { grid-column: 1 / -1; } }

/* ---------- utilities ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.no-js .js-only { display: none !important; }
.js .no-js-only { display: none !important; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- print ---------- */
@media print {
  :root {
    --ink: #000; --ink-2: #222; --ink-3: #555; --ink-4: #666; --line: #bbb; --line-2: #ddd;
    /* paper grounds: every surface token goes light so panels stop printing black */
    --bg: #fff; --bg-2: #fff; --surface: #fff; --surface-2: #f4f6f8; --surface-3: #eceff3;
    --glass: #fff; --glass-border: #c9ced4; --grid: transparent;
    /* signal colours legible on white */
    --cyan: #0b6e93; --amber: #8a5300; --red: #b3282d; --green: #17694a; --violet: #4f42a6;
    --shadow: none; --glow-cyan: none;
  }
  html, body { background: #fff !important; color: #000; }
  body::before, body::after, .site-nav, .site-sheet, .skip-link, .site-footer__grid, .site-footer__legal, .js-only, .btn { display: none !important; }
  .site-footer { margin-top: 2rem; background: none; border-top: 1px solid #999; }
  .site-footer__disclaimer { background: none; border-color: #999; color: #333; }
  a { color: #000; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .75em; color: #555; }
  .card, .glass, .tablewrap, .co { background: none !important; box-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tablewrap { overflow: visible; }
  .tablewrap table { min-width: 0; }
  .tablewrap thead th { position: static; background: #eee; color: #000; }
  .co { border-color: #999; break-inside: avoid; }
  mark { background: #ffe9a8; color: #000; box-shadow: none; }
  h1, h2, h3 { color: #000; break-after: avoid; }
}


.hm-trust__bbb, .hm-cta__seal, .rs-seal { display: inline-flex; align-items: center; }
.hm-cta__seal { margin-right: .55rem; vertical-align: middle; }

/* BBB accredited-business seal (official artwork, links to the live profile) */
.bbb-seal { display: inline-flex; border-radius: 6px; line-height: 0; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.bbb-seal img { width: auto; height: auto; max-width: 100%; border-radius: 4px; }
.bbb-seal:hover, .bbb-seal:focus-visible { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--glass-border), 0 10px 24px -14px rgba(0,0,0,.9); }
.site-footer__badges { align-items: center; }
@media print { .bbb-seal { filter: grayscale(1); } }
