/*
Theme Name: Deflock the Valley
Theme URI: https://deflockthevalley.com
Description: A dark surveillance-watchdog theme for citizen ALPR-tracking sites, built to match deflockthevalley.com: Archivo and Spline Sans Mono typography, a client-side visitor readout, a strike-through jurisdiction roster, transparency-portal cards, a case-file dossier, and filing-ready ordinance downloads. Fonts are self-hosted; no external font requests and no trackers.
Author: Deflock the Valley
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: deflock-valley
*/

/* ============================================================
   SELF-HOSTED FONTS (variable woff2, subset to Latin + symbols)
   Family names match the design system below, so no other rule
   needs to change. font-display: swap keeps text visible while
   the face loads. No connection to Google Fonts is made.
   ============================================================ */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/archivo-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/spline-sans-mono-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/newsreader-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/newsreader-italic-var.woff2') format('woff2');
}

  :root {
    --bg: #0a0e14;
    --bg-2: #10161f;
    --panel: #141b26;
    --panel-2: #1a222f;
    --line: #263243;
    --line-bright: #35465c;
    --text: #e6edf5;
    --text-dim: #8c9bb0;
    --text-faint: #5c6b80;
    --scan: #35e0a1;
    --scan-dim: #1c7d5c;
    --alert: #ff5b52;
    --alert-dim: #7d211c;
    --amber: #ffb638;
    --plate: #f2f4f7;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Archivo', system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

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

  a { color: inherit; }

  .mono {
    font-family: 'Spline Sans Mono', ui-monospace, monospace;
  }

  .wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

  /* ── TOP BAR ─────────────────────────────── */
  .topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(10,14,20,0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }

  .topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    flex-shrink: 0;
  }

  .brand-mark {
    width: 26px; height: 26px;
    flex-shrink: 0;
  }

  .brand-text {
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: -0.01em;
    color: var(--text);
  }
  .brand-text b { color: var(--scan); font-weight: 800; }

  .topnav {
    display: flex;
    gap: 26px;
    list-style: none;
    align-items: center;
  }
  .topnav a {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.15s;
  }
  .topnav a:hover { color: var(--scan); }

  /* ── HERO ─────────────────────────────────── */
  .hero {
    position: relative;
    padding: 96px 0 84px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
  }
  .hero-grid-bg {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(var(--line) 1px, transparent 1px),
      linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 46px 46px;
    opacity: 0.28;
    mask-image: radial-gradient(ellipse 80% 70% at 30% 0%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 0%, #000 20%, transparent 75%);
    pointer-events: none;
  }
  /* moving scan line */
  .hero-scan {
    position: absolute; left: 0; right: 0; top: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--scan), transparent);
    opacity: 0.5;
    animation: scandown 7s linear infinite;
    pointer-events: none;
  }
  @keyframes scandown {
    0% { transform: translateY(0); opacity: 0; }
    8% { opacity: 0.5; }
    92% { opacity: 0.5; }
    100% { transform: translateY(520px); opacity: 0; }
  }

  .hero-inner { position: relative; max-width: 900px; }

  .status-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 30px;
  }
  .live-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--alert);
    border: 1px solid var(--alert-dim);
    background: rgba(255,91,82,0.06);
    padding: 6px 12px;
    border-radius: 3px;
  }
  .live-chip .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--alert);
    animation: blink 1.4s ease-in-out infinite;
  }
  @keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

  .coord {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--text-faint);
  }

  .hero h1 {
    font-weight: 900;
    font-size: clamp(2.4rem, 6.2vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 26px;
  }
  .hero h1 .hl {
    color: var(--scan);
    position: relative;
    white-space: nowrap;
  }
  .hero h1 .redact {
    background: var(--text);
    color: var(--text);
    border-radius: 2px;
    padding: 0 0.12em;
    transition: color 0.3s, background 0.3s;
    cursor: default;
  }
  .hero h1 .redact:hover { background: var(--alert); color: var(--bg); }

  .hero-lead {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 1.28rem;
    line-height: 1.6;
    color: var(--text-dim);
    max-width: 720px;
  }
  .hero-lead b { color: var(--text); font-weight: 500; }

  .hero-actions {
    margin-top: 38px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
  }
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 13px 22px;
    border-radius: 4px;
    transition: transform 0.15s, background 0.15s, border-color 0.15s;
  }
  .btn-primary { background: var(--scan); color: #05120c; border: 1px solid var(--scan); }
  .btn-primary:hover { transform: translateY(-2px); background: #4ff0b3; }
  .btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-bright); }
  .btn-ghost:hover { transform: translateY(-2px); border-color: var(--scan); color: var(--scan); }

  /* ── COUNTER STRIP ────────────────────────── */
  .counters {
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
  }
  .counters-inner {
    max-width: 1180px; margin: 0 auto; padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .counter {
    padding: 26px 22px;
    border-left: 1px solid var(--line);
  }
  .counter:first-child { border-left: none; }
  .counter .num {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--scan);
    line-height: 1;
    letter-spacing: -0.02em;
  }
  .counter .lbl {
    margin-top: 9px;
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.35;
  }
  @media (max-width: 720px) {
    .counters-inner { grid-template-columns: repeat(2, 1fr); }
    .counter:nth-child(3) { border-left: none; }
    .counter:nth-child(odd) { border-left: none; }
    .counter { border-top: 1px solid var(--line); }
    .counter:nth-child(1), .counter:nth-child(2) { border-top: none; }
  }

  /* ── SECTION SCAFFOLD ─────────────────────── */
  section.block { padding: 80px 0; }

  .eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--scan);
    margin-bottom: 16px;
  }
  .eyebrow::before {
    content: '';
    width: 26px; height: 1px; background: var(--scan-dim);
  }
  .h-sec {
    font-weight: 800;
    font-size: clamp(1.7rem, 3.6vw, 2.7rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    max-width: 820px;
  }
  .sec-intro {
    margin-top: 18px;
    font-family: 'Newsreader', Georgia, serif;
    font-size: 1.12rem;
    color: var(--text-dim);
    max-width: 720px;
    line-height: 1.6;
  }

  /* ── ROSTER (running jurisdiction list) ───── */
  #roster { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

  .roster-board {
    margin-top: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    overflow: hidden;
  }
  .roster-head {
    display: grid;
    grid-template-columns: 40px 1fr 130px 120px;
    gap: 12px;
    padding: 13px 20px;
    background: var(--panel-2);
    border-bottom: 1px solid var(--line);
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
  }
  .roster-row {
    display: grid;
    grid-template-columns: 40px 1fr 130px 120px;
    gap: 12px;
    padding: 15px 20px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    transition: background 0.15s;
  }
  .roster-row:last-child { border-bottom: none; }
  .roster-row:hover { background: var(--panel-2); }
  .roster-idx {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-faint);
  }
  .roster-name {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
  }
  .roster-name .sub {
    display: block;
    font-family: 'Spline Sans Mono', monospace;
    font-weight: 400;
    font-size: 0.68rem;
    color: var(--text-faint);
    letter-spacing: 0.04em;
    margin-top: 2px;
    text-transform: uppercase;
  }
  .roster-type {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
  }
  .status-pill {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    display: inline-block;
    white-space: nowrap;
  }
  .status-active { color: var(--scan); border: 1px solid var(--scan-dim); background: rgba(53,224,161,0.07); }
  .status-removed { color: var(--alert); border: 1px solid var(--alert-dim); background: rgba(255,91,82,0.07); }

  /* struck-through removed jurisdictions */
  .roster-row.removed .roster-name > span:first-child,
  .roster-row.removed .roster-idx {
    text-decoration: line-through;
    text-decoration-color: var(--alert);
    text-decoration-thickness: 2px;
    color: var(--text-faint);
  }
  .roster-row.removed .roster-name { color: var(--text-faint); }

  .roster-group {
    padding: 11px 20px;
    background: var(--panel-2);
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
  }
  .roster-group:first-of-type { border-top: none; }

  .roster-note {
    padding: 15px 20px;
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-dim);
    background: var(--panel-2);
    line-height: 1.6;
    border-top: 1px solid var(--line);
  }
  .roster-note b { color: var(--scan); }

  @media (max-width: 680px) {
    .roster-head { grid-template-columns: 30px 1fr 96px; }
    .roster-head .col-type { display: none; }
    .roster-row { grid-template-columns: 30px 1fr 96px; }
    .roster-row .roster-type { display: none; }
  }

  /* ── PORTALS ──────────────────────────────── */
  .portal-warning {
    margin-top: 34px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 4px 1fr;
    gap: 18px;
    background: rgba(255,182,56,0.05);
    border: 1px solid rgba(255,182,56,0.22);
    border-radius: 6px;
    overflow: hidden;
  }
  .portal-warning::before { content: ''; background: var(--amber); }
  .portal-warning p {
    padding: 18px 22px 18px 4px;
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.6;
  }
  .portal-warning b { color: var(--amber); font-weight: 600; }

  .portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 16px;
  }
  .portal-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    padding: 24px 24px 22px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    transition: border-color 0.18s, transform 0.18s, background 0.18s;
    overflow: hidden;
  }
  .portal-card::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--scan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s;
  }
  .portal-card:hover { border-color: var(--line-bright); transform: translateY(-3px); background: var(--panel-2); }
  .portal-card:hover::after { transform: scaleX(1); }

  .portal-card.is-removed::after { background: var(--alert); transform: scaleX(1); }
  .portal-card.is-removed { opacity: 0.72; }
  .portal-card.is-removed .portal-title { text-decoration: line-through; text-decoration-color: var(--alert); text-decoration-thickness: 2px; }

  .portal-tag {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
  .portal-tag .flag-active { color: var(--scan); }
  .portal-tag .flag-removed { color: var(--alert); }
  .portal-title {
    font-weight: 700;
    font-size: 1.18rem;
    letter-spacing: -0.01em;
    margin-bottom: 9px;
    line-height: 1.2;
  }
  .portal-card p {
    font-size: 0.86rem;
    color: var(--text-dim);
    line-height: 1.55;
    margin-bottom: 18px;
    flex-grow: 1;
  }
  .portal-go {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--scan);
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }
  .portal-go::after { content: '↗'; font-size: 0.9rem; }

  /* ── EXPLAINER ────────────────────────────── */
  #explainer { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .prime-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }
  .prime-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    padding: 26px 24px;
  }
  .prime-num {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--scan);
    line-height: 1;
    letter-spacing: -0.02em;
  }
  .prime-card h4 {
    margin: 12px 0 10px;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.01em;
  }
  .prime-card p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.55; }

  .quote-band {
    margin-top: 34px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--scan);
    border-radius: 0 8px 8px 0;
    background: var(--panel);
    padding: 26px 30px;
  }
  .quote-band p {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 1.24rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--text);
  }
  .quote-band cite {
    display: block;
    margin-top: 12px;
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.72rem;
    font-style: normal;
    color: var(--text-faint);
    letter-spacing: 0.04em;
  }

  /* ── DOSSIER / ARTICLES ───────────────────── */
  .dossier {
    margin-top: 44px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  @media (max-width: 860px) { .dossier { grid-template-columns: 1fr; } }

  .file {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    padding: 28px 28px 26px;
    position: relative;
    transition: border-color 0.18s;
  }
  .file:hover { border-color: var(--line-bright); }
  .file.wide { grid-column: 1 / -1; }

  .file.flag {
    border-color: var(--alert-dim);
    background: linear-gradient(180deg, rgba(255,91,82,0.05), rgba(255,91,82,0) 120px), var(--panel);
  }
  .file.local {
    border-color: var(--scan-dim);
    background: linear-gradient(180deg, rgba(53,224,161,0.05), rgba(53,224,161,0) 120px), var(--panel);
  }

  .file-tag {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--alert);
    margin-bottom: 13px;
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .file.local .file-tag { color: var(--scan); }
  .file-tag::before {
    content: '';
    width: 6px; height: 6px; border-radius: 1px;
    background: currentColor;
    flex-shrink: 0;
  }
  .file h3 {
    font-weight: 800;
    font-size: 1.34rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
  }
  .file.wide h3 { font-size: 1.7rem; }
  .file-body { font-size: 0.96rem; color: var(--text-dim); line-height: 1.68; }
  .file-body p + p { margin-top: 13px; }
  .file-body b { color: var(--text); font-weight: 600; }
  .file-body em { color: var(--text); font-style: italic; }

  .file.wide .split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
  }
  @media (max-width: 760px) { .file.wide .split { grid-template-columns: 1fr; gap: 24px; } }

  .inset-quote {
    border-left: 2px solid var(--scan);
    padding: 4px 0 4px 20px;
    margin-bottom: 20px;
  }
  .inset-quote p {
    font-family: 'Newsreader', Georgia, serif;
    font-style: italic;
    font-size: 1.14rem;
    line-height: 1.5;
    color: var(--text);
  }
  .inset-quote cite {
    display: block;
    margin-top: 10px;
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.68rem;
    font-style: normal;
    color: var(--text-faint);
  }

  .sources {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.68rem;
    color: var(--text-faint);
    line-height: 1.7;
  }
  .sources a { color: var(--scan); text-decoration: none; }
  .sources a:hover { text-decoration: underline; }

  .subhead-row { margin-top: 60px; }

  /* ── CALLOUT ──────────────────────────────── */
  #act {
    position: relative;
    border-top: 1px solid var(--line);
    background:
      radial-gradient(ellipse 60% 100% at 50% 0%, rgba(255,91,82,0.08), transparent 70%),
      var(--bg);
    text-align: center;
    padding: 90px 0;
    overflow: hidden;
  }
  #act .grid-bg {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(var(--line) 1px, transparent 1px),
      linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 46px 46px;
    opacity: 0.2;
    mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000, transparent 75%);
  }
  #act .wrap { position: relative; }
  #act h2 {
    font-weight: 900;
    font-size: clamp(1.9rem, 4.4vw, 3.1rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    max-width: 720px;
    margin: 0 auto 20px;
  }
  #act h2 .hl { color: var(--scan); }
  #act p {
    max-width: 640px;
    margin: 0 auto 34px;
    color: var(--text-dim);
    font-size: 1.06rem;
    line-height: 1.65;
  }

  /* ── ORDINANCE ────────────────────────────── */
  #ordinance { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

  .ord-panel {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--panel);
  }
  @media (max-width: 820px) { .ord-panel { grid-template-columns: 1fr; } }

  .ord-left {
    padding: 34px 34px 32px;
    border-right: 1px solid var(--line);
  }
  @media (max-width: 820px) { .ord-left { border-right: none; border-bottom: 1px solid var(--line); } }

  .ord-doc-tag {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--scan);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .ord-doc-tag::before {
    content: '';
    width: 6px; height: 6px; border-radius: 1px;
    background: var(--scan);
  }
  .ord-left h3 {
    font-weight: 800;
    font-size: 1.4rem;
    line-height: 1.22;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
  }
  .ord-left p {
    font-size: 0.96rem;
    color: var(--text-dim);
    line-height: 1.65;
  }
  .ord-left p + p { margin-top: 13px; }
  .ord-left b { color: var(--text); font-weight: 600; }

  .ord-cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

  .ord-right {
    padding: 30px 32px;
    background: var(--bg);
  }
  .ord-right h4 {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 20px;
  }
  .ord-list { list-style: none; }
  .ord-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
  }
  .ord-list li:last-child { border-bottom: none; }
  .ord-list .ord-sec {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.68rem;
    color: var(--scan);
    white-space: nowrap;
    letter-spacing: 0.02em;
  }
  .ord-list .ord-what {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
  }
  .ord-list .ord-what b { color: var(--text); font-weight: 600; }

  .ord-foot {
    margin-top: 22px;
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.68rem;
    color: var(--text-faint);
    line-height: 1.6;
  }

  /* ── PROPOSED ORDINANCES (per town) ────────── */
  .ordset-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
  }
  .ordset-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    padding: 22px 22px 20px;
    transition: border-color 0.18s, transform 0.18s;
  }
  .ordset-card:hover { border-color: var(--line-bright); transform: translateY(-2px); }
  .ordset-top {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-bottom: 12px;
  }
  .ordset-county {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-faint);
  }
  .ordset-name {
    font-weight: 700; font-size: 1.22rem; letter-spacing: -0.01em; line-height: 1.2;
    margin-bottom: 6px;
  }
  .ordset-cite {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.68rem; color: var(--text-dim); line-height: 1.5;
    margin-bottom: 18px; flex-grow: 1;
  }
  .btn-dl {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%;
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    text-decoration: none;
    padding: 11px 16px;
    border-radius: 4px;
    background: transparent; color: var(--scan);
    border: 1px solid var(--scan-dim);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
  }
  .btn-dl::before { content: '\2193'; font-size: 0.95rem; }
  .btn-dl:hover { background: var(--scan); color: #05120c; border-color: var(--scan); }

  /* ── FOOTER ───────────────────────────────── */
  footer {
    background: var(--bg-2);
    border-top: 1px solid var(--line);
    padding: 56px 0 40px;
  }
  .foot-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
  }
  @media (max-width: 780px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
  @media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

  .foot-brand { font-weight: 800; font-size: 1.1rem; margin-bottom: 12px; }
  .foot-brand b { color: var(--scan); }
  .foot-about { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; }
  .foot-about a { color: var(--scan); text-decoration: none; }
  .foot-about a:hover { text-decoration: underline; }

  footer h5 {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 14px;
  }
  footer ul { list-style: none; }
  footer li { margin-bottom: 9px; }
  footer li a {
    font-size: 0.86rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.15s;
  }
  footer li a:hover { color: var(--scan); }
  footer li a.struck { text-decoration: line-through; text-decoration-color: var(--alert-dim); color: var(--text-faint); }

  .foot-bottom {
    max-width: 1180px;
    margin: 44px auto 0;
    padding: 22px 24px 0;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.68rem;
    color: var(--text-faint);
  }

  @media (max-width: 720px) {
    .topnav { display: none; }
  }

  /* ── VISITOR READOUT ──────────────────────── */
  .readout {
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
  }
  .readout-inner { padding: 26px 0 30px; }
  .readout-label {
    display: flex; align-items: center; gap: 9px;
    font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--alert); margin-bottom: 18px;
  }
  .readout-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--alert); animation: blink 1.4s ease-in-out infinite;
  }
  .readout-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  }
  @media (max-width: 640px) { .readout-grid { grid-template-columns: 1fr; } }
  .readout-item {
    border: 1px solid var(--line); border-left: 2px solid var(--alert);
    border-radius: 4px; background: var(--panel); padding: 14px 16px;
  }
  .readout-key {
    font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-faint); margin-bottom: 6px;
  }
  .readout-val {
    font-size: 0.98rem; font-weight: 600; color: var(--text);
    word-break: break-word;
  }
  .readout-note {
    margin-top: 18px; max-width: 720px;
    font-size: 0.88rem; color: var(--text-dim); line-height: 1.6;
  }
  .readout-note a { color: var(--scan); text-decoration: none; border-bottom: 1px solid var(--scan-dim); }
  .readout-note a:hover { border-bottom-color: var(--scan); }

  @media (prefers-reduced-motion: reduce) {
    .hero-scan, .live-chip .dot { animation: none; }
    * { scroll-behavior: auto; }
  }

  /* ============================================================
     WORDPRESS INTEGRATION
     Accessibility utilities, mobile navigation, and styling for
     posts, pages, archives, search, and comments — all in the
     same token system as the landing page above.
     ============================================================ */

  /* Skip link + screen-reader text (a11y) */
  .skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 999;
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--scan);
    color: #05120c;
    padding: 10px 16px;
    border-radius: 4px;
  }
  .skip-link:focus { left: 16px; }
  .screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    word-wrap: normal !important;
  }
  :focus-visible {
    outline: 2px solid var(--scan);
    outline-offset: 2px;
  }

  /* Custom-logo sizing inside the brand */
  .brand img, .brand .custom-logo { height: 30px; width: auto; display: block; }

  /* Mobile navigation toggle */
  .nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px; height: 34px;
    background: transparent;
    border: 1px solid var(--line-bright);
    border-radius: 4px;
    color: var(--text);
    cursor: pointer;
    padding: 0;
  }
  .nav-toggle span,
  .nav-toggle span::before,
  .nav-toggle span::after {
    content: '';
    display: block;
    width: 16px; height: 1.5px;
    background: currentColor;
    position: relative;
    transition: transform 0.2s, opacity 0.2s;
  }
  .nav-toggle span::before { position: absolute; top: -5px; }
  .nav-toggle span::after  { position: absolute; top: 5px; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-5px) rotate(-45deg); }

  @media (max-width: 720px) {
    .nav-toggle { display: inline-flex; }
    .topnav {
      display: none;
      position: absolute;
      top: 60px; left: 0; right: 0;
      flex-direction: column;
      align-items: flex-start;
      gap: 0;
      background: var(--bg-2);
      border-bottom: 1px solid var(--line);
      padding: 8px 24px 16px;
    }
    .topnav.open { display: flex; }
    .topnav li { width: 100%; }
    .topnav a {
      display: block;
      width: 100%;
      padding: 12px 0;
      border-bottom: 1px solid var(--line);
      font-size: 0.78rem;
    }
    .topnav li:last-child a { border-bottom: none; }
  }

  /* ── Inner pages: posts, pages, archives, search ─────────── */
  .site-main { padding: 64px 0 80px; }
  .content-narrow { max-width: 760px; margin: 0 auto; }

  .page-head { margin-bottom: 40px; }
  .page-head .eyebrow { margin-bottom: 14px; }
  .page-title {
    font-weight: 900;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    letter-spacing: -0.02em;
    line-height: 1.08;
  }
  .page-title a { text-decoration: none; }
  .page-title a:hover { color: var(--scan); }

  .entry { margin-bottom: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
  .entry:last-child { border-bottom: none; }
  .entry-meta {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 12px;
    display: flex; flex-wrap: wrap; gap: 8px 16px;
  }
  .entry-meta a { color: var(--text-dim); text-decoration: none; }
  .entry-meta a:hover { color: var(--scan); }
  .entry-title {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    line-height: 1.18;
    margin-bottom: 14px;
  }
  .entry-title a { text-decoration: none; }
  .entry-title a:hover { color: var(--scan); }

  .entry-thumb { margin-bottom: 20px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
  .entry-thumb img { display: block; width: 100%; height: auto; }

  .entry-content { font-size: 1.02rem; line-height: 1.75; color: var(--text-dim); }
  .entry-content > * + * { margin-top: 1.1em; }
  .entry-content p { color: var(--text-dim); }
  .entry-content b, .entry-content strong { color: var(--text); }
  .entry-content a { color: var(--scan); text-decoration: none; border-bottom: 1px solid var(--scan-dim); }
  .entry-content a:hover { border-bottom-color: var(--scan); }
  .entry-content h1, .entry-content h2, .entry-content h3,
  .entry-content h4, .entry-content h5 {
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin-top: 1.6em;
  }
  .entry-content h2 { font-size: 1.5rem; }
  .entry-content h3 { font-size: 1.24rem; }
  .entry-content ul, .entry-content ol { padding-left: 1.4em; }
  .entry-content li { margin-bottom: 8px; }
  .entry-content blockquote {
    border-left: 3px solid var(--scan);
    background: var(--panel);
    border-radius: 0 8px 8px 0;
    padding: 18px 24px;
    font-family: 'Newsreader', Georgia, serif;
    font-style: italic;
    font-size: 1.16rem;
    color: var(--text);
  }
  .entry-content img { max-width: 100%; height: auto; border-radius: 8px; }
  .entry-content code {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.9em;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 1px 6px;
  }
  .entry-content pre {
    font-family: 'Spline Sans Mono', monospace;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px 20px;
    overflow-x: auto;
  }
  .entry-content pre code { background: none; border: none; padding: 0; }
  .entry-content figure { margin: 1.4em 0; }
  .entry-content figcaption {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-faint);
    margin-top: 8px;
  }

  /* alignwide / alignfull for block content */
  .entry-content .alignwide { width: min(1000px, 92vw); margin-left: 50%; transform: translateX(-50%); max-width: none; }
  .entry-content .alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); max-width: none; border-radius: 0; }
  .entry-content .alignleft { float: left; margin: 0 24px 16px 0; }
  .entry-content .alignright { float: right; margin: 0 0 16px 24px; }
  .entry-content .aligncenter { margin-left: auto; margin-right: auto; }
  .wp-caption-text { font-family: 'Spline Sans Mono', monospace; font-size: 0.7rem; color: var(--text-faint); margin-top: 8px; }
  .sticky-badge {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--scan);
    border: 1px solid var(--scan-dim);
    border-radius: 3px;
    padding: 3px 8px;
  }

  /* Read-more / buttons on inner pages reuse .btn */
  .more-link, .read-on {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--scan);
    text-decoration: none;
  }
  .more-link:hover, .read-on:hover { color: #4ff0b3; }

  /* Pagination */
  .pagination {
    margin-top: 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .pagination .page-numbers {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-dim);
    text-decoration: none;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    transition: border-color 0.15s, color 0.15s;
  }
  .pagination .page-numbers:hover { border-color: var(--scan); color: var(--scan); }
  .pagination .page-numbers.current { background: var(--scan); color: #05120c; border-color: var(--scan); }

  /* Search form */
  .search-form { display: flex; gap: 10px; max-width: 480px; }
  .search-field {
    flex: 1;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    padding: 11px 14px;
  }
  .search-field::placeholder { color: var(--text-faint); }
  .search-field:focus { outline: none; border-color: var(--scan); }
  .search-submit {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--scan);
    color: #05120c;
    border: 1px solid var(--scan);
    border-radius: 4px;
    padding: 0 20px;
    cursor: pointer;
  }
  .search-submit:hover { background: #4ff0b3; }

  /* 404 */
  .error-404 { text-align: center; padding: 80px 0; }
  .error-404 .code {
    font-family: 'Spline Sans Mono', monospace;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    color: var(--scan);
    line-height: 1;
    letter-spacing: -0.03em;
  }

  /* Comments */
  .comments-area { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
  .comments-title, .comment-reply-title {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
  }
  .comment-list { list-style: none; }
  .comment-list li { margin-bottom: 24px; }
  .comment-body {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px 22px;
  }
  .comment-author { font-weight: 700; font-size: 0.98rem; }
  .comment-meta {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.68rem;
    color: var(--text-faint);
    margin-bottom: 10px;
  }
  .comment-content { font-size: 0.95rem; color: var(--text-dim); line-height: 1.65; }
  .comment-list .children { list-style: none; margin-top: 20px; margin-left: 28px; }
  .comment-respond { margin-top: 32px; }
  .comment-form { display: grid; gap: 14px; max-width: 640px; }
  .comment-form label {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
    display: block;
    margin-bottom: 6px;
  }
  .comment-form input[type="text"],
  .comment-form input[type="email"],
  .comment-form input[type="url"],
  .comment-form textarea {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    padding: 11px 14px;
  }
  .comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--scan); }
  .comment-form .submit {
    justify-self: start;
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--scan);
    color: #05120c;
    border: 1px solid var(--scan);
    border-radius: 4px;
    padding: 12px 22px;
    cursor: pointer;
  }
  .comment-form .submit:hover { background: #4ff0b3; }

  /* Footer widget area (optional) */
  .foot-widgets { margin-top: 8px; }
  .foot-widgets .widget { margin-bottom: 20px; }
  .foot-widgets .widget-title {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 12px;
  }
