:root {
  --ground: #F2EFE1;
  --panel: #FBF9F0;
  --panel-2: #EAE6D4;
  --ink: #16242B;
  --ink-soft: #2C3A41;
  --ink-faint: #5C6D74;
  --pine: #4A6135;
  --pine-deep: #364A24;
  --pine-tint: #E2E5CC;
  --sea: #1D4E63;
  --sea-deep: #152836;
  --amber: #C98A3D;
  --amber-soft: rgba(201,138,61,.16);
  --line: #DBD6C1;
  --shadow: 0 1px 2px rgba(27,43,51,.06), 0 8px 24px rgba(27,43,51,.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #12191A;
    --panel: #1A2423;
    --panel-2: #202C2A;
    --ink: #E7EBDC;
    --ink-soft: #ACB8A3;
    --ink-faint: #75857A;
    --pine: #A3B968;
    --pine-deep: #BCCE88;
    --pine-tint: #2A331D;
    --sea: #7FB8D4;
    --sea-deep: #101B24;
    --amber: #DBA054;
    --amber-soft: rgba(219,160,84,.14);
    --line: #2C3A36;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.flocku {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Avenir Next", "Avenir", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Body copy needs a touch more weight so dark text doesn't anti-alias to gray on the light ground */
.card p, .prose p, .prose li, .sec-head p, .steps p,
.hero p.lede, .page-hero p.lede, .finder-note, .cam-list .where,
.news .src, .feed-empty, .soon .card p { font-weight: 450; }
.serif, .flocku h1, .flocku h2 { font-family: "Charter", "Bitstream Charter", "Iowan Old Style", Georgia, serif; }
.flocku a { color: var(--pine); }
.flocku a:focus-visible, .flocku button:focus-visible, .flocku input:focus-visible {
  outline: 2px solid var(--pine); outline-offset: 2px;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; height: auto; }

/* ---------- Nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 500;
  background: color-mix(in srgb, var(--ground) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand img.logo-img { width: 42px; height: 42px; border-radius: 50%; display: block; }
.brand img.logo-img.sm { width: 34px; height: 34px; }
.brand .name { font-weight: 700; font-size: 19px; letter-spacing: .01em; }
.brand .name span { color: var(--pine); }
.brand .name .tld { color: var(--ink-faint); font-weight: 500; }
.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav .cta {
  background: var(--pine); color: var(--panel); text-decoration: none;
  padding: 9px 16px; border-radius: 6px; font-size: 14.5px; font-weight: 600; white-space: nowrap;
}
.nav .cta:hover { background: var(--pine-deep); }
.nav-burger { display: none; margin-left: auto; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2.5px; background: var(--ink); margin: 4.5px 0; border-radius: 2px; }
@media (max-width: 860px) {
  .nav-burger { display: block; }
  .nav-links, .nav .cta { display: none; }
  header.site.nav-open .nav { flex-wrap: wrap; }
  header.site.nav-open .nav-links {
    display: flex; flex-direction: column; gap: 4px; width: 100%; order: 10; padding: 10px 0 4px;
    border-top: 1px solid var(--line); margin-left: 0;
  }
  header.site.nav-open .nav-links a { padding: 8px 4px; font-size: 16px; }
  header.site.nav-open .nav .cta { display: inline-block; order: 11; margin: 6px 0 12px; text-align: center; }
}

/* ---------- Hero / sections ---------- */
.hero { padding: 64px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 600;
  color: var(--pine); margin: 0 0 18px;
}
.flocku h1 {
  font-size: clamp(34px, 5vw, 52px); line-height: 1.12; margin: 0 0 20px;
  font-weight: 700; letter-spacing: -.01em; text-wrap: balance;
}
.hero p.lede, .page-hero p.lede { font-size: 19px; color: var(--ink-soft); max-width: 34em; margin: 0 0 30px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 13px 22px; border-radius: 7px; border: none; cursor: pointer; font-family: inherit;
}
.flocku .btn-primary { background: var(--pine); color: var(--panel); }
.flocku .btn-primary:hover { background: var(--pine-deep); color: var(--panel); }
.flocku .btn-quiet { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.flocku .btn-quiet:hover { border-color: var(--ink-faint); color: var(--ink); }

.hero-side { position: relative; padding-top: 64px; }
.hero-side .sticker {
  position: absolute; top: 0; right: 22px; z-index: 2;
  width: 148px; height: 148px; border-radius: 50%;
  transform: rotate(6deg);
  border: 5px solid var(--panel);
  box-shadow: var(--shadow);
}
@media (max-width: 880px) { .hero-side .sticker { right: 8px; width: 128px; height: 128px; } }
.hero-stats {
  background: var(--sea-deep); color: #E8F1F0; border-radius: 12px; padding: 30px 30px 26px;
  box-shadow: var(--shadow);
}
.hero-stats .row:first-child { padding-right: 118px; border-top: none; margin-top: 0; padding-top: 0; }
.hero-stats .big {
  font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.hero-stats .big small { font-size: 20px; font-weight: 500; color: #C7DED8; }
.hero-stats .row { border-top: 1px solid rgba(255,255,255,.18); margin-top: 18px; padding-top: 16px; }
.hero-stats .label { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: #CFE1DB; font-weight: 600; margin-bottom: 6px; }
.hero-stats .src { font-size: 13px; color: #BAD2CB; margin-top: 18px; }

section.fk { padding: 64px 0; }
section.fk.alt { background: var(--panel-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-pad { padding: 64px 0; }
.sec-head { max-width: 640px; margin-bottom: 40px; }
.flocku h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; margin: 0 0 14px; letter-spacing: -.008em; text-wrap: balance; }
.sec-head p { color: var(--ink-soft); margin: 0; font-size: 17.5px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 26px 24px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 10px; font-size: 18.5px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.card .k { color: var(--pine); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; display: block; margin-bottom: 12px; }
.why-stat {
  font-family: "Charter", "Bitstream Charter", "Iowan Old Style", Georgia, serif;
  font-size: 38px; font-weight: 700; line-height: 1.05; color: var(--pine-deep);
  margin-bottom: 14px; font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.why-stat small { display: block; font-family: "Avenir Next", "Avenir", "Segoe UI", system-ui, sans-serif; font-size: 12.5px; font-weight: 600; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .1em; margin-top: 6px; }

/* ---------- Finder / live map ---------- */
.finder {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden;
  display: grid; grid-template-columns: 380px 1fr;
}
@media (max-width: 880px) { .finder { grid-template-columns: 1fr; } }
.finder-form { padding: 30px 28px; }
.finder-form label { font-weight: 600; font-size: 15px; margin-bottom: 10px; display: block; }
.addr-row { display: flex; gap: 10px; }
.addr-row input {
  flex: 1; min-width: 0; padding: 12px 14px; font-size: 16px; border-radius: 7px;
  border: 1.5px solid var(--line); background: var(--ground); color: var(--ink);
  font-family: inherit;
}
.addr-row input::placeholder { color: var(--ink-faint); }
.addr-row button {
  background: var(--pine); color: var(--panel); border: none; border-radius: 7px;
  padding: 0 18px; font-weight: 600; font-size: 15px; cursor: pointer; font-family: inherit;
}
.addr-row button:hover { background: var(--pine-deep); }
.finder-note { font-size: 13px; color: var(--ink-faint); margin-top: 12px; }
.finder-status { margin-top: 16px; font-size: 14.5px; color: var(--ink-soft); display: none; }
.finder-status.show { display: block; }
.result-count { margin-top: 22px; display: none; }
.result-count.show { display: block; }
.result-count .n {
  font-size: 42px; font-weight: 700; line-height: 1.05; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.result-count .n em { font-style: normal; color: var(--amber); }
.result-count .sub { color: var(--ink-soft); font-size: 15px; margin-top: 4px; }
.cam-list { margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); max-height: 300px; overflow-y: auto; }
.cam-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.cam-list .where { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.cam-list .dist { color: var(--ink-faint); font-size: 13px; white-space: nowrap; }
.cam-list .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber); margin-right: 8px;
}
.finder-map { position: relative; min-height: 460px; background: var(--panel-2); }
#flocku-map { position: absolute; inset: 0; z-index: 1; }
.map-page .finder { grid-template-columns: 420px 1fr; }
.map-page .finder-map { min-height: 620px; }
@media (max-width: 880px) { .map-page .finder, .finder { grid-template-columns: 1fr; } .finder-map { min-height: 420px; } }
.map-note {
  position: absolute; left: 50%; transform: translateX(-50%); top: 14px; z-index: 400;
  background: var(--panel); border: 1px solid var(--line); border-radius: 99px;
  padding: 7px 16px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  box-shadow: var(--shadow); white-space: nowrap; display: none;
}
.map-note.show { display: block; }

/* Leaflet brand overrides */
.leaflet-container { font-family: inherit; background: var(--panel-2); }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background-color: rgba(74,97,53,.35); }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div {
  background-color: #4A6135; color: #FBF9F0; font-family: inherit; font-weight: 600;
}
.leaflet-popup-content-wrapper { border-radius: 8px; }
/* Level-of-detail count bubbles (preloaded national grid) */
.fk-grid-bubble { background: none; border: none; cursor: pointer; }
.fk-grid-bubble span {
  display: block; border-radius: 50%; text-align: center;
  background: #4A6135; color: #FBF9F0; font-weight: 700; font-size: 13px;
  box-shadow: 0 0 0 6px rgba(74,97,53,.25), 0 1px 5px rgba(0,0,0,.22);
  font-family: "Avenir Next", "Avenir", "Segoe UI", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.fk-grid-bubble:hover span { background: #3B4E29; }

/* ---------- Steps / notes ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.steps .glyph {
  width: 40px; height: 40px; border-radius: 8px; background: var(--pine-tint);
  display: grid; place-items: center; color: var(--pine-deep); font-weight: 700;
}
.steps h3 { margin: 2px 0 6px; font-size: 17.5px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.legal-note {
  margin-top: 30px; background: var(--amber-soft); border-left: 3px solid var(--amber);
  padding: 14px 18px; border-radius: 0 8px 8px 0; font-size: 14.5px; color: var(--ink-soft);
}
.legal-note strong { color: var(--ink); }

/* ---------- News ---------- */
.feed-meta {
  display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-faint);
  margin-bottom: 24px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--pine); }
.news { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.news article {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; align-items: baseline;
  padding: 20px 4px; border-bottom: 1px solid var(--line);
}
@media (max-width: 700px) { .news article { grid-template-columns: 1fr; gap: 6px; } }
.news time { font-size: 13.5px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.news h3 { margin: 0 0 4px; font-size: 17.5px; line-height: 1.35; font-weight: 600; }
.news h3 a { color: var(--ink); text-decoration: none; }
.news h3 a:hover { color: var(--pine); text-decoration: underline; }
.news .src { font-size: 12.5px; color: var(--ink-faint); }
.tag {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 9px; border-radius: 4px; white-space: nowrap;
}
.tag.misuse { background: var(--amber-soft); color: var(--amber); }
.tag.pushback { background: var(--pine-tint); color: var(--pine-deep); }
.tag.legal { background: color-mix(in srgb, var(--sea) 14%, transparent); color: var(--sea); }
.tag.news { background: var(--panel-2); color: var(--ink-soft); }
.feed-empty { color: var(--ink-soft); }

/* ---------- Share ---------- */
.share-box {
  background: var(--sea-deep); border-radius: 14px; color: #E8F1F0;
  padding: 44px 40px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
@media (max-width: 780px) { .share-box { grid-template-columns: 1fr; padding: 32px 26px; } }
.share-box h2 { color: #fff; margin-bottom: 8px; }
.share-box p { margin: 0; color: #C6DAD4; font-size: 16px; max-width: 30em; }
.share-actions { display: flex; flex-direction: column; gap: 10px; min-width: 240px; }
.share-actions button, .share-actions a {
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.22);
  color: #F0F7F5; padding: 11px 18px; border-radius: 7px; font-size: 15px; font-weight: 600;
  cursor: pointer; text-align: center; text-decoration: none; font-family: inherit;
}
.share-actions button:hover, .share-actions a:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ---------- Coming soon / newsletter ---------- */
.soon { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 780px) { .soon { grid-template-columns: 1fr; } }
.soon .card { position: relative; }
.soon .badge {
  position: absolute; top: 20px; right: 20px; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint);
  border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px;
}
.nl-row { display: flex; gap: 10px; margin-top: 18px; }
.nl-row input {
  flex: 1; min-width: 0; padding: 11px 13px; font-size: 15px; border-radius: 7px;
  border: 1.5px solid var(--line); background: var(--ground); color: var(--ink); font-family: inherit;
}
.nl-row button {
  background: var(--ink); color: var(--ground); border: none; border-radius: 7px;
  padding: 0 16px; font-weight: 600; cursor: pointer; font-family: inherit; font-size: 14.5px;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Inner pages ---------- */
.page-hero { padding: 56px 0 8px; }
.page-hero .eyebrow { margin-bottom: 12px; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 44px; }
.prose h3 { font-size: 19px; margin: 30px 0 8px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.kit-doc {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 28px 30px; margin: 22px 0;
  font-family: "Charter", "Bitstream Charter", "Iowan Old Style", Georgia, serif;
  font-size: 16px; color: var(--ink);
}
.kit-doc p { color: var(--ink); margin: 0 0 14px; }
.kit-doc p:last-child { margin-bottom: 0; }
.kit-tools { display: flex; gap: 10px; margin: -8px 0 30px; }
.kit-tools button {
  background: transparent; border: 1.5px solid var(--line); color: var(--ink); border-radius: 6px;
  padding: 8px 14px; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.kit-tools button:hover { border-color: var(--ink-faint); }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line); padding: 44px 0 56px; font-size: 14px; color: var(--ink-soft);
}
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 780px) { footer.site .cols { grid-template-columns: 1fr; gap: 28px; } }
footer.site h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); }
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
footer.site a { color: var(--ink-soft); text-decoration: none; }
footer.site a:hover { color: var(--pine); text-decoration: underline; }
footer.site .about { margin: 10px 0 0; max-width: 26em; }
footer.site .fine { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-faint); max-width: 62em; }

/* Hide any admin-bar bump */
body.admin-bar header.site { top: 32px; }
