/* Northbound Security theme
   Dark field-instrument panels, north-star marks, newswire front page. */

:root {
  --bg: #0c0e0f;
  --bg-2: #111416;
  --panel: #14181a;
  --panel-head: #1b2023;
  --line: #2a3135;
  --line-hi: #3a4449;
  --text: #d6dcdf;
  --dim: #8a959b;
  --accent: #f2c14e;      /* north-star gold, matches the logo */
  --accent-dim: #8f7230;
  --alt: #7fb2ff;         /* secondary: menu text, sub-headings */
  --ok: #25ff06;          /* status only: success, InfoCon green */
  --warn: #ffcc00;        /* status only: InfoCon yellow */
  --red: #ff2d2d;
  --cyan: #3fd8ff;
  --display: "Doto", "Share Tech Mono", ui-monospace, monospace;
  --head: "Share Tech Mono", ui-monospace, monospace;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 1240px;
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0 !important; }
input, select, textarea, button { -webkit-appearance: none; appearance: none; }
html { -webkit-text-size-adjust: 100%; }
html { background: var(--bg); }
body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font: 15px/1.6 var(--mono);
  overflow-x: hidden;
}
a { color: var(--text); }
a:hover { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.accent { color: var(--accent); }
.alt { color: var(--alt); }
.red { color: var(--red); }
.dim { color: var(--dim); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- ticker ---------- */
.ticker {
  border-bottom: 1px solid var(--line);
  background: #070809;
  overflow: hidden;
  white-space: nowrap;
  font: 13px/1 var(--head);
  letter-spacing: .06em;
  display: flex;
}
.ticker-label {
  flex: 0 0 auto;
  background: var(--red);
  color: #fff;
  padding: 8px 12px;
  font-weight: 700;
  z-index: 1;
}
.ticker-track { flex: 1; overflow: hidden; position: relative; }
.ticker-inner {
  display: inline-block;
  padding: 8px 0;
  color: var(--accent);
  animation: tick 160s linear infinite;
}
.ticker-inner a { color: var(--accent); text-decoration: none; }
.ticker-inner a:hover { color: #fff; text-decoration: underline; }
.ticker-inner i { font-style: normal; color: var(--dim); }
.ticker:hover .ticker-inner { animation-play-state: paused; }
a.ticker-label { text-decoration: none; }
a.ticker-label:hover { color: #fff; background: #c41c1c; }
.ticker-inner span { margin: 0 28px; }
.ticker-inner b { color: var(--alt); font-weight: 400; }
.ticker-inner b.red { color: var(--red); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-inner { animation: none; } }

/* ---------- masthead (newswire style) ---------- */
.masthead { text-align: center; padding: 22px 0 10px; }
.masthead a { text-decoration: none; }
.mast-logo {
  display: inline-flex; align-items: center; gap: 14px;
  font: 900 clamp(30px, 6.4vw, 72px)/1 var(--display);
  color: #fff;
  letter-spacing: .02em;
  text-shadow: 0 0 18px rgba(242,193,78,.25);
}
.mast-logo img, .mast-star { width: clamp(38px, 5.6vw, 66px); height: auto; }
.mast-star { aspect-ratio: 1; filter: drop-shadow(0 0 10px rgba(242,193,78,.45)); }
.mast-logo .g { color: var(--accent); }
.mast-rule { border: 0; border-top: 3px double var(--line-hi); margin: 14px 0 8px; }
.mast-date {
  font: 13px/1.4 var(--head);
  color: var(--dim);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---------- nav: flat tabs on a rule ---------- */
.nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0;
  margin: 8px 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.nav a {
  font: 15px/1 var(--head);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--alt);
  padding: 13px 16px 11px;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.on { color: var(--accent); border-bottom-color: var(--accent); }
.nav a.cta { color: #000; background: var(--accent); font-weight: 700; border-bottom-color: var(--accent); }
.nav a.cta:hover { color: #000; filter: brightness(1.1); }

/* ---------- lead headline ---------- */
.lead-block { text-align: center; padding: 18px 0 26px; border-bottom: 1px solid var(--line); }
.lead-head {
  margin: 0 auto;
  max-width: 980px;
  font: 700 clamp(26px, 4.6vw, 52px)/1.08 var(--head);
  text-transform: uppercase;
  letter-spacing: .01em;
}
.lead-head a { color: var(--red); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.lead-head a:hover { color: #fff; }
.lead-sub { margin: 14px auto 0; max-width: 760px; color: var(--dim); font-size: 15px; }

/* ---------- top headline strip ---------- */
.strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.strip a {
  display: block;
  font: 600 13.5px/1.4 var(--mono);
  text-transform: uppercase;
  padding: 6px 0;
}
.strip a.hot { color: var(--red); }

/* ---------- three column newswire layout ---------- */
.cols {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 22px;
  padding: 22px 0 10px;
}
.col > * + * { margin-top: 18px; }

/* panel = field-instrument card, titled with a north-star mark */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
 
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--panel-head);
  border-bottom: 1px solid var(--line);
  padding: 8px 12px;
  font: 15px/1.2 var(--head);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #fff;
}
.panel-head .tag { color: var(--accent); font-size: 12px; }
.panel-head > span:first-child { display: inline-flex; align-items: center; gap: 9px; }
.star {
  flex: 0 0 auto; width: 11px; height: 11px; background: var(--accent);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.panel-body { padding: 12px 14px; }

/* newswire link list */
.wire { list-style: none; margin: 0; padding: 0; }
.wire li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.wire li:last-child { border-bottom: 0; }
.wire a {
  font: 700 14.5px/1.35 var(--mono);
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-hi);
}
.wire a:hover { text-decoration-color: var(--accent); }
.wire a.hot { color: var(--red); }
.wire a.new::after {
  content: "NEW"; margin-left: 8px; padding: 1px 5px;
  font: 10px/1.4 var(--head); color: #fff; background: var(--red);
  vertical-align: 2px; text-decoration: none; display: inline-block;
}
.wire p { margin: 4px 0 0; color: var(--dim); font-size: 13px; line-height: 1.5; }

/* hero card with compass bearing */
.hero-card {
  position: relative;
  background: radial-gradient(ellipse at 50% 30%, #1f1a0f 0%, #0a0d0e 70%);
  border: 1px solid var(--line);
 
  padding: 26px 24px 22px;
  overflow: hidden;
}
.bearing {
  position: absolute; top: 16px; right: 18px;
  display: flex; align-items: center; gap: 10px;
  font: 11px/1.5 var(--head); letter-spacing: .14em; color: var(--dim); text-transform: uppercase; text-align: right;
}
.bearing b { display: block; font: 800 22px/1 var(--display); color: var(--accent); letter-spacing: .06em; }
.bearing svg { width: 46px; height: 46px; }
.hero-card h1 {
  margin: 34px 0 12px;
  font: 800 clamp(26px, 3.6vw, 40px)/1.08 var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
}
.hero-card h1 .g { color: var(--accent); }
.hero-card p { color: var(--text); margin: 0 0 16px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn {
  display: inline-block;
  font: 700 15px/1 var(--head);
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  padding: 14px 20px;
}
.btn-go { background: var(--accent); color: #000; }
.btn-go:hover { color: #000; filter: brightness(1.12); }
.btn-ghost { border: 1px solid var(--alt); color: var(--alt); }
.btn-ghost:hover { background: rgba(127,178,255,.08); color: var(--alt); }

/* terminal */
.term { font: 13px/1.7 var(--mono); margin: 0; padding: 12px 14px; white-space: pre-wrap; color: var(--text); }
.term .p { color: var(--dim); }
.term .o { color: var(--cyan); }
.term .k { color: #fff; }
.term .ok { color: var(--accent); }
.cursor { display: inline-block; width: 8px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* creed / quote */
.creed { text-align: center; padding: 18px 16px; }
.creed q { font: 700 20px/1.35 var(--head); color: #fff; text-transform: uppercase; }
.creed q span { color: var(--accent); }
.creed p { color: var(--dim); font-size: 13.5px; margin: 10px 0 0; }

/* explainer box */
.explain h3 { margin: 0 0 8px; font: 700 16px/1.3 var(--head); color: var(--alt); text-transform: uppercase; letter-spacing: .06em; }
.explain p { margin: 0 0 10px; font-size: 14px; }
.explain ul { margin: 0; padding-left: 18px; font-size: 14px; }
.explain li { margin: 4px 0; }
.explain li::marker { color: var(--accent); }

/* status rows */
.stat { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.stat:last-child { border-bottom: 0; }
.stat b { font-weight: 400; color: var(--accent); }

/* CTA bar */
.cta-bar {
  margin: 26px 0 0;
  border-top: 3px double var(--line-hi);
  border-bottom: 3px double var(--line-hi);
  padding: 26px 0; text-align: center;
}
.cta-bar h2 { margin: 0 0 6px; font: 800 clamp(22px, 3.4vw, 34px)/1.15 var(--display); text-transform: uppercase; color: #fff; letter-spacing: .04em; }
.cta-bar p { margin: 0 0 16px; color: var(--dim); }

/* ---------- inner pages ---------- */
.page { padding: 10px 0 20px; }
.crumb { font: 13px/1 var(--head); letter-spacing: .1em; color: var(--dim); text-transform: uppercase; padding: 10px 0 0; }
.crumb a { color: var(--accent); text-decoration: none; }
.page-head { text-align: center; padding: 14px 0 22px; border-bottom: 1px solid var(--line); }
.page-head .kicker { font: 13px/1 var(--head); color: var(--accent); letter-spacing: .16em; text-transform: uppercase; }
.page-head h1 {
  margin: 10px 0 10px;
  font: 800 clamp(28px, 5vw, 54px)/1.05 var(--display);
  text-transform: uppercase; color: #fff; letter-spacing: .03em;
}
.page-head p { margin: 0 auto; max-width: 760px; color: var(--dim); }
.two { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; padding: 22px 0; }
.prose { font-size: 15px; }
.prose h2 { font: 700 20px/1.3 var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--alt); margin: 26px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 20px; margin: 0 0 16px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.prose .lead { font-size: 17px; color: #fff; }
.prose .note { border-left: 3px solid var(--alt); padding: 8px 12px; background: rgba(127,178,255,.05); font-size: 14px; color: var(--text); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 22px 0; }

/* contact form */
.form label { display: block; font: 12px/1 var(--head); color: var(--dim); letter-spacing: .14em; text-transform: uppercase; margin: 14px 0 6px; }
.form input, .form select, .form textarea {
  width: 100%;
  background: #090b0c; color: var(--text);
  border: 1px solid var(--line-hi);
  padding: 11px 12px; font: 14px/1.4 var(--mono);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 1px solid var(--accent); border-color: var(--accent); }

.form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(-45deg, transparent 50%, var(--accent) 50%);
  background-position: right 16px center, right 11px center;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px;
}
.form textarea { min-height: 140px; resize: vertical; }
.form button { margin-top: 18px; border: 0; cursor: pointer; }
.form-result { display: none; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--line-hi); font-size: 14px; }
.form-result.ok { border-color: var(--ok); color: var(--ok); }
.form-result.err { border-color: var(--red); color: var(--red); }
ol.steps { margin: 0; padding-left: 20px; font-size: 14px; }
ol.steps li { margin: 6px 0; }
ol.steps li::marker { color: var(--accent); font-family: var(--head); }

/* ---------- footer ---------- */
.foot {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding: 22px 0 30px;
  text-align: center;
  font: 13px/1.8 var(--head);
  letter-spacing: .08em;
  color: var(--dim);
  text-transform: uppercase;
}
.foot a { color: var(--accent); text-decoration: none; }
.foot .links a { margin: 0 6px; }
.foot .brand { color: #fff; font: 800 18px/1.4 var(--display); letter-spacing: .06em; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .cols { grid-template-columns: 1fr 1fr; }
  .cols .col-center { grid-column: 1 / -1; order: -1; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .strip { grid-template-columns: 1fr; }
  .cols, .two, .svc-grid { grid-template-columns: 1fr; }
  .bearing { position: static; justify-content: flex-start; text-align: left; margin-bottom: 4px; }
  .hero-card h1 { margin-top: 8px; }
  .nav a { padding: 9px 11px; font-size: 13px; }
  .mast-logo { font-size: 8.4vw; gap: 8px; flex-wrap: wrap; justify-content: center; }
}

/* ---------- threat intel page ---------- */
.ti-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font: 13px/1.4 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
}
.ti-bar b { font-weight: 400; color: var(--accent); }
.infocon { padding: 1px 8px; border: 1px solid currentColor; }
.infocon-green { color: var(--ok); }
.infocon-yellow { color: var(--warn); }
.infocon-orange { color: #ff8a00; }
.infocon-red { color: var(--red); }
.chip {
  display: inline-block; margin-left: 4px; padding: 0 6px;
  font: 11px/1.6 var(--head); letter-spacing: .06em; color: var(--accent);
  border: 1px solid var(--accent-dim); text-transform: uppercase; vertical-align: 1px;
}
.chip.red-chip { color: #fff; background: var(--red); border-color: var(--red); }
.wire a .chip { text-decoration: none; }
.mono-id { color: var(--text); }
.wire-big a { font-size: 15.5px; }
/* long lists scroll inside their panel instead of stretching the page */
.wire-scroll { max-height: 560px; overflow-y: auto; overscroll-behavior: contain; padding-right: 8px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.wire-scroll:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.wire-scroll::-webkit-scrollbar { width: 8px; }
.wire-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
/* Desktop: the centre column sets the row height; the side columns stretch to match
   and their list panels share the space, each list scrolling inside its panel. */
@media (min-width: 1001px) {
  .col-side { position: relative; min-height: 640px; }
  .col-fill { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 18px; }
  .col-fill > .panel { flex: none; }
  .col-fill > .panel-fill { flex: 1 1 0; min-height: 180px; display: flex; flex-direction: column; }
  .panel-fill > .panel-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .panel-fill .wire-scroll { flex: 1; min-height: 0; max-height: none; }
}
@media (max-width: 1000px) {
  .col-fill > * + * { margin-top: 18px; }
  .wire-scroll { max-height: 440px; }
}
.wire a, .wire p { overflow-wrap: anywhere; }
.src { margin: 10px 0 0; font-size: 12px; color: var(--dim); }
.src a { color: var(--accent); }
.src.center { text-align: center; margin-top: 18px; }

/* ---------- briefings ---------- */
.desk { margin-top: 22px; border-color: var(--accent-dim); }
.desk-title { margin: 0 0 8px; font: 700 clamp(20px, 2.6vw, 28px)/1.2 var(--head); text-transform: uppercase; }
.desk-title a { color: var(--accent); }
.desk-items { list-style: none; margin: 12px 0 0; padding: 0; }
.desk-items li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.desk-items .chip { margin: 0 6px 0 0; }
.chip.sev-critical { color: #fff; background: var(--red); border-color: var(--red); }
.chip.sev-high { color: #000; background: var(--accent); border-color: var(--accent); }
.chip.sev-medium { color: var(--alt); border-color: var(--alt); }
.brief-title { font-size: clamp(24px, 4vw, 42px) !important; }
.brief-item { padding: 6px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.brief-item h2 { color: #fff !important; font-size: 19px !important; }
.brief-item h2 .chip { vertical-align: 3px; }
.lbl { color: var(--accent); font-weight: 600; }
.todo { background: rgba(242,193,78,.06); border-left: 3px solid var(--accent); padding: 8px 12px; }
.src-inline { font-size: 12px; color: var(--accent); }

/* ---------- globe ---------- */
.globe-wrap { display: grid; place-items: center; padding: 14px 10px 6px;
  background: radial-gradient(ellipse at 50% 50%, #1a160c 0%, transparent 70%); }
.globe-wrap canvas { display: block; max-width: 100%; }
.globe-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.globe-stats div { padding: 10px 8px; text-align: center; border-left: 1px solid var(--line); }
.globe-stats div:first-child { border-left: 0; }
.globe-stats b { display: block; font: 800 24px/1.1 var(--display); color: var(--accent); }
.globe-stats span { font: 11px/1.3 var(--head); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.lead-head.ti-lead { font-size: clamp(22px, 3.4vw, 38px); }

/* ---------- rippling flag background ---------- */
#flag-bg {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
  opacity: .13;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 30%, transparent 100%);
}

/* ---------- spinning stars + slogan ---------- */
.star3d { flex: 0 0 auto; width: 15px; height: 15px; display: inline-block; vertical-align: -2px; }
.bearing-star { width: 52px; height: 52px; filter: drop-shadow(0 0 8px rgba(242,193,78,.4)); }
.slogan {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 12px 0 0;
  font: 700 clamp(15px, 2.1vw, 21px)/1.3 var(--head);
  letter-spacing: .14em; text-transform: uppercase; color: #fff;
}
.slogan b { color: var(--accent); font-weight: 700; }
.slogan .star, .slogan .star3d { width: 20px; height: 20px; }
.slogan-foot { font-size: 14px; margin: 6px 0 4px; }
.slogan-foot .star, .slogan-foot .star3d { width: 14px; height: 14px; }
@media (max-width: 720px) { .slogan { gap: 10px; letter-spacing: .08em; } }

/* ---------- Serving America band ---------- */
.usa-band {
  background: #1d2350;
  border-top: 2px solid #b22234; border-bottom: 2px solid #b22234;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -1px 0 rgba(255,255,255,.25);
}
.usa-track { overflow: hidden; white-space: nowrap; }
.usa-inner {
  display: inline-flex; align-items: center;
  padding: 8px 0;
  font: 700 14px/1.3 var(--head); letter-spacing: .16em; text-transform: uppercase; color: #fff;
  animation: usa-scroll 70s linear infinite;   /* moves right, opposite the ticker */
}
.usa-item { display: inline-flex; align-items: center; gap: 10px; margin-right: 44px; }
.usa-strong { color: var(--accent); }
.usa-band .star, .usa-band .star3d { width: 16px; height: 16px; }
.usa-band:hover .usa-inner { animation-play-state: paused; }
@keyframes usa-scroll { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .usa-inner { animation: none; } }
@media (max-width: 720px) { .usa-inner { font-size: 12px; letter-spacing: .1em; } .usa-item { margin-right: 30px; } }

/* ================= 90s pass ================= */

/* CRT scanlines + soft vignette over everything (clicks pass through) */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.20) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(0,0,0,.35) 100%);
}
@media (prefers-reduced-motion: no-preference) {
  body::after { animation: crt-flicker 6s steps(1) infinite; }
}
@keyframes crt-flicker { 0%, 100% { opacity: 1; } 47% { opacity: .92; } 48% { opacity: 1; } 83% { opacity: .95; } }

/* Windows 95-style bevels */
.panel, .hero-card {
  border: 2px solid; border-color: #4f5a60 #050607 #050607 #4f5a60;
  box-shadow: 1px 1px 0 #000;
}
.panel-head {
  background: linear-gradient(90deg, #0a1e6e 0%, #1c5fb8 100%);
  border-bottom: 2px solid #050607;
  font-weight: 700;
}
.panel-head .tag { color: #ffe27a; }
.ph-right { display: inline-flex; align-items: center; gap: 10px; }
.winbtns { display: inline-flex; gap: 2px; }
.winbtns i {
  width: 16px; height: 14px; display: inline-grid; place-items: center;
  font: 700 10px/1 var(--mono); font-style: normal; color: #000; background: #c0c0c0;
  border: 1px solid; border-color: #fff #404040 #404040 #fff; box-shadow: inset -1px -1px 0 #808080;
}
.winbtns i:last-child { margin-left: 2px; }

/* raised buttons that press in */
.btn, .nav a.cta {
  border: 2px solid; border-color: #fff3c4 #6b5418 #6b5418 #fff3c4;
  box-shadow: 1px 1px 0 #000;
}
.btn-ghost { border-color: #b9d4ff #1d3c6e #1d3c6e #b9d4ff !important; background: #142035; }
.btn:active, .nav a.cta:active { border-color: #6b5418 #fff3c4 #fff3c4 #6b5418; transform: translate(1px, 1px); box-shadow: none; }
.form input, .form select, .form textarea { border: 2px solid; border-color: #050607 #4f5a60 #4f5a60 #050607; }

/* blinking NEW! tags */
.wire a.new::after { content: "NEW!"; }
@media (prefers-reduced-motion: no-preference) {
  .wire a.new::after, .chip.sev-critical { animation: blink 1.1s steps(1) infinite; }
}

/* grooved rules */
.mast-rule { border: 0; height: 4px; border-top: 2px groove #5a646a; border-bottom: 2px groove #5a646a; }

/* chunky beveled scrollbars */
::-webkit-scrollbar { width: 16px; height: 16px; background: #1b2023; }
::-webkit-scrollbar-thumb { background: #3a4449; border: 2px solid; border-color: #6c777d #111 #111 #6c777d; }
::-webkit-scrollbar-button { display: block; height: 16px; width: 16px; background: #3a4449; border: 2px solid; border-color: #6c777d #111 #111 #6c777d; }
html { scrollbar-color: #3a4449 #1b2023; }

/* footer: hit-counter odometer, 88x31 badges, last updated */
.counter-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 14px 0 6px; }
.odometer { display: inline-flex; gap: 2px; padding: 3px; background: #000; border: 2px solid; border-color: #050607 #4f5a60 #4f5a60 #050607; }
.odometer b {
  display: inline-block; width: 16px; padding: 2px 0; text-align: center;
  font: 700 16px/1 var(--mono); color: #ff3b3b; background: linear-gradient(#1a1a1a, #000 50%, #1a1a1a);
  text-shadow: 0 0 6px rgba(255,59,59,.8);
}
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 14px 0 8px; }
.b88 {
  width: 88px; height: 31px; display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
  font: 700 11px/1 var(--head); letter-spacing: .04em; color: #fff; text-decoration: none;
  border: 2px solid; border-color: #ddd #333 #333 #ddd;
}
.b88 small { font-size: 7px; letter-spacing: .08em; opacity: .9; margin-bottom: 2px; }
.b-usa { background: linear-gradient(180deg, #b22234 0 50%, #1d2350 50%); }
.b-y2k { background: #0a7a2f; color: #e8ffe8; }
.b-res { background: #c0c0c0; color: #000; }
.b-human { background: #000; color: var(--accent); }
.b-guest { background: #6a0dad; color: #fff !important; }
.b-guest:hover { filter: brightness(1.2); }
.updated { font-size: 12px; color: var(--dim); margin-bottom: 4px; }
/* keep title bars on one line next to the window buttons */
.panel-head { font-size: 14px; letter-spacing: .07em; gap: 8px; padding: 6px 8px 6px 10px; }
.panel-head > span:first-child { min-width: 0; line-height: 1.25; }
.panel-head .ph-right { flex: none; align-self: flex-start; }
.ph-right { white-space: nowrap; flex: 0 0 auto; }
.panel-head .tag { font-size: 11px; letter-spacing: .06em; }
.cols > .col, .two > *, .svc-grid > * { min-width: 0; }

/* ---------- boxes end flush on every multi-column page ----------
   Grid columns already stretch to the row height; stacking each column's boxes
   and letting the last one grow makes every column end on the same line. */
.cols > .col:not(.col-side), .two > .col { display: flex; flex-direction: column; }
.cols > .col:not(.col-side) > :last-child, .two > .col > :last-child { flex: 1 1 auto; }
@media (min-width: 1001px) {
  /* a box left alone on the last row of the services grid spans the full width */
  .svc-grid > :nth-child(3n+1):last-child { grid-column: 1 / -1; }
}
