/* Referral Grove Registry
   Palette lifted from the existing marketing site so the registry reads as
   part of referralgrove.com rather than a bolted-on subdomain.
   Fonts: Fraunces (display) + Inter (text), same pairing as the main site. */

:root {
  --ink:         #071E24;
  --ink-soft:    #0D2C34;
  --teal:        #1A7A8C;
  --teal-deep:   #0D4F5C;
  --teal-bright: #2299B0;
  --teal-pale:   #9DCCD4;
  --wash:        #F2F8F9;
  --wash-2:      #EBF5F7;
  --slate-900:   #1E293B;
  --slate-600:   #475569;
  --slate-500:   #64748B;
  --slate-200:   #E2E8F0;
  --slate-100:   #F1F5F9;
  --gold:        #F5C842;
  --gold-deep:   #D4860A;
  --danger:      #E53E3E;
  --white:       #FFFFFF;

  --radius:      10px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 2px rgba(7,30,36,.06), 0 1px 3px rgba(7,30,36,.08);
  --shadow-md:   0 4px 12px rgba(7,30,36,.08), 0 2px 4px rgba(7,30,36,.06);
  --shadow-lg:   0 18px 40px rgba(7,30,36,.16);
  --max:         1180px;
}

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

html { -webkit-text-size-adjust: 100%; }

html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100vw;
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-900);
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-deep); text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- gate + demo banners ---------------------------------------- */

.banner {
  font-size: 13px; letter-spacing: .02em; text-align: center;
  padding: 8px 16px; font-weight: 500;
}
.banner-gate { background: var(--ink); color: var(--teal-pale); }
.banner-demo { background: var(--gold); color: #4A3200; }
.banner a { color: inherit; text-decoration: underline; }

/* ---------- header ------------------------------------------------------ */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  position: sticky; top: 0; z-index: 40;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 28px; height: 66px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
}
.brand:hover { text-decoration: none; opacity: .85; }
.brand img { display: block; height: 40px; width: auto; }
.brand .sub {
  font-family: 'Inter', sans-serif; font-size: 28px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--slate-500);
  padding-left: 10px; border-left: 1px solid var(--slate-200);
  align-self: stretch; display: flex; align-items: center;
}
.site-nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.site-nav a {
  font-size: 14px; font-weight: 500; color: var(--slate-600);
}
.site-nav a:hover { color: var(--teal); text-decoration: none; }
/* .site-nav a's type+class selector otherwise outranks .btn-primary's
   plain class selector, so the "Referral Grove" button was rendering
   with dark nav-link text on its teal background instead of the white
   .btn-primary is supposed to give it (Jim, 2026-08-24). */
.site-nav a.btn-primary, .site-nav a.btn-primary:hover { color: var(--white); }

/* ---------- buttons ----------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; font-family: inherit;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-deep); color: var(--white); }
.btn-ghost {
  background: var(--white); color: var(--slate-900);
  border-color: var(--slate-200);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-dark { background: var(--ink); color: var(--teal-pale); }
.btn-dark:hover { background: var(--ink-soft); color: var(--white); }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-danger { background: var(--danger); color: #fff; }

/* ---------- hero + map -------------------------------------------------- */

.hero { position: relative; background: var(--ink); }
.hero-map {
  width: 100%; height: min(72vh, 660px); min-height: 420px;
  background: var(--ink-soft);
}
.hero-map.is-panel { height: 460px; min-height: 320px; }

/* Fullscreen expand button (Jim, 2026-08-23): .hero-map has a fixed
   min(72vh,660px) height normally, which the Fullscreen API won't
   override on its own -- without this the map would "go fullscreen"
   but stay capped at its normal size, centered on a blank screen. */
.hero-map:fullscreen { width: 100vw; height: 100vh; }
.hero-map:-webkit-full-screen { width: 100vw; height: 100vh; }

.map-overlay {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 34px 24px;
}
.map-overlay > * { pointer-events: auto; }

.hero-copy {
  position: relative;
  max-width: 560px; background: rgba(7,30,36,.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg); padding: 26px 28px;
  box-shadow: var(--shadow-lg);
}
.hero-copy.is-hidden { display: none; }
.hero-copy h1 { color: var(--white); margin-bottom: .35em; }
.hero-copy p {
  color: var(--teal-pale); margin: 0 0 18px; font-size: 15.5px;
}
.hero-copy-toggle {
  position: absolute; top: 10px; right: 12px;
  background: transparent; border: 1px solid rgba(255,255,255,.25);
  border-radius: 4px; color: var(--teal-pale);
  font-size: 8px; font-weight: 700; letter-spacing: .03em;
  line-height: 1; padding: 3px 5px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 3px;
}
.hero-copy-toggle-x { font-size: 15px; font-weight: 400; line-height: 1; }
.hero-copy-toggle:hover { color: var(--white); }
.hero-show-btn {
  align-self: flex-start;
  background: rgba(7,30,36,.86); color: var(--teal-pale);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15); border-radius: 10px;
  padding: 9px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  box-shadow: var(--shadow-lg);
}
.hero-show-btn:hover { color: var(--white); }

/* ---------- place finder ------------------------------------------------ */

.finder { position: relative; }
.finder-row { display: flex; gap: 8px; }
.finder input[type=search], .finder input[type=text] {
  flex: 1; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08);
  color: var(--white); font-size: 15px; font-family: inherit;
}
.finder input::placeholder { color: rgba(157,204,212,.7); }
.finder input:focus {
  outline: none; border-color: var(--teal-bright);
  background: rgba(255,255,255,.14);
}
.finder-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); max-height: 320px; overflow-y: auto;
  z-index: 30; display: none;
}
.finder-results.open { display: block; }
.finder-results a {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--slate-100);
  color: var(--slate-900); font-size: 14px;
}
.finder-results a:last-child { border-bottom: 0; }
.finder-results a:hover { background: var(--wash); text-decoration: none; }
.finder-results .sub { color: var(--slate-500); font-size: 12.5px; }

.map-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.map-tool {
  background: rgba(7,30,36,.86); color: var(--teal-pale);
  border: 1px solid rgba(157,204,212,.25); border-radius: 999px;
  padding: 8px 15px; font-size: 13px; font-weight: 500; cursor: pointer;
  font-family: inherit; backdrop-filter: blur(10px);
}
.map-tool:hover { background: var(--teal-deep); color: var(--white); }
.map-legend {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  background: rgba(7,30,36,.86); backdrop-filter: blur(10px);
  border-radius: 999px; padding: 8px 16px; font-size: 12.5px;
  color: var(--teal-pale); align-self: flex-start;
}
.map-legend .dot {
  width: 9px; height: 9px; border-radius: 50%; display: inline-block;
  margin-right: 6px; vertical-align: middle;
}

/* pin popup
   Tethered to the pin by MapLibre, which also chooses the anchor so the
   popup flips sides near a viewport edge instead of being clipped. */
.maplibregl-popup.pin-popup { z-index: 25; }
.pin-popup .maplibregl-popup-content {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 16px 18px 18px;
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--slate-900);
}
.pin-popup .maplibregl-popup-tip { border-top-color: var(--white);
  border-bottom-color: var(--white); border-left-color: var(--white);
  border-right-color: var(--white); }
.pin-popup h3 { margin: 9px 0 2px; font-size: 16.5px; padding-right: 14px; }
.pin-popup .chapter {
  font-size: 13px; color: var(--slate-500); margin-bottom: 9px;
}
.pin-popup .when {
  font-size: 14px; font-weight: 600; color: var(--teal-deep);
  margin-bottom: 3px;
}
.pin-popup .where { font-size: 13.5px; color: var(--slate-600); }
.pin-popup .btn { margin-top: 13px; width: 100%; }
/* multi-listing popup: several groups at one address */
.pin-popup-stack .maplibregl-popup-content { padding: 0; overflow: hidden; }
.stack-head {
  padding: 14px 16px 12px; border-bottom: 1px solid var(--slate-200);
  background: var(--wash);
}
.stack-n {
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal);
}
.stack-where {
  font-family: 'Fraunces', serif; font-size: 16px; color: var(--ink);
  margin-top: 3px; padding-right: 18px;
}
.stack-city { font-size: 13px; color: var(--slate-500); margin-top: 1px; }
.stack-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--slate-100);
  color: var(--slate-900);
}
.stack-row:last-of-type { border-bottom: 0; }
.stack-row:hover { background: var(--wash-2); text-decoration: none; }
.stack-row-main { min-width: 0; }
.stack-row .t {
  display: block; font-weight: 600; font-size: 14.5px; line-height: 1.3;
}
.stack-row .s { display: block; font-size: 12.5px; color: var(--slate-500); }
.stack-row .w {
  display: block; font-size: 13px; color: var(--teal-deep); font-weight: 600;
  margin-top: 2px;
}
.stack-row .badge { flex: 0 0 auto; margin-top: 2px; }
.stack-foot {
  padding: 9px 16px; background: var(--slate-100); font-size: 12.5px;
  color: var(--slate-500);
}
/* Popup body can outgrow the map on a busy venue; cap and scroll. */
.pin-popup-stack .maplibregl-popup-content { max-height: 340px; overflow-y: auto; }

.pin-popup .maplibregl-popup-close-button {
  font-size: 20px; line-height: 1; color: var(--slate-500);
  padding: 2px 8px; border-radius: var(--radius);
}
.pin-popup-stack .maplibregl-popup-close-button {
  background: rgba(255,255,255,.7); border-radius: 0 0 0 6px;
}
.pin-popup .maplibregl-popup-close-button:hover {
  background: var(--slate-100); color: var(--slate-900);
}

/* ---------- hero dual-purpose paths ------------------------------------ */

.hero-paths {
  display: grid; gap: 8px; margin-top: 14px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.hero-path {
  display: block; padding: 11px 14px; border-radius: var(--radius);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(157,204,212,.22);
  transition: background .15s ease, border-color .15s ease;
}
.hero-path:hover {
  text-decoration: none; background: rgba(255,255,255,.13);
  border-color: var(--teal-bright);
}
.hero-path .t {
  display: block; color: var(--white); font-weight: 600; font-size: 14.5px;
}
.hero-path .d {
  display: block; color: var(--teal-pale); font-size: 12.5px; margin-top: 2px;
}

/* ---------- browse by region -------------------------------------------
   Fifty equal-weight cards is a wall. Four labelled columns of compact
   links is scannable, still every state is a real crawlable <a>. */

.region-cols {
  display: grid; gap: 26px 32px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.region-col h3 {
  font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--teal);
  padding-bottom: 8px; margin-bottom: 4px;
  border-bottom: 1px solid var(--slate-200);
}
.state-list { list-style: none; margin: 0; padding: 0; }
.state-list li { border-bottom: 1px solid var(--slate-100); }
.state-list li:last-child { border-bottom: 0; }
.state-list a {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px; padding: 7px 2px; font-size: 14.5px; color: var(--slate-900);
}
.state-list a:hover { color: var(--teal); text-decoration: none; }
.state-list .n {
  font-size: 12.5px; color: var(--slate-500);
  font-variant-numeric: tabular-nums;
}

/* ---------- map attribution --------------------------------------------
   OpenFreeMap serves OpenStreetMap data under ODbL, which requires
   attribution on any publicly used work, and OSMF guidance is that it sits
   visibly in a corner of the map. So this is toned down, NOT hidden:
   smaller, lower contrast, less weight. Collapsed to the compact "i" only
   at narrow widths, where that is the accepted norm. */

.maplibregl-ctrl-attrib {
  font-size: 10.5px !important;
  background: rgba(255,255,255,.62) !important;
  border-radius: 4px 0 0 0 !important;
  padding: 1px 6px !important;
}
.maplibregl-ctrl-attrib a,
.maplibregl-ctrl-attrib { color: rgba(30,41,59,.5) !important; }
.maplibregl-ctrl-attrib a:hover { color: var(--teal) !important; }
.maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib { margin: 0 !important; }
.maplibregl-ctrl-attrib-button { opacity: .5; }

/* ---------- sections ---------------------------------------------------- */

section { padding: 56px 0; }
section.tight { padding: 36px 0; }
section.wash { background: var(--wash); }
.section-head { margin-bottom: 28px; max-width: 720px; }
.section-head p { color: var(--slate-600); margin: 0; }
.eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 8px;
}

.stats { display: flex; flex-wrap: wrap; gap: 14px; }
.stat {
  flex: 1 1 150px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(157,204,212,.2); border-radius: var(--radius);
  padding: 14px 16px;
}
.stat .n {
  font-family: 'Fraunces', serif; font-size: 26px; color: var(--white);
  line-height: 1;
}
.stat .k {
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-pale); margin-top: 6px;
}

/* ---------- grids + cards ----------------------------------------------- */

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg); padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
a.card { display: block; color: inherit; }
a.card:hover {
  text-decoration: none; border-color: var(--teal-pale);
  box-shadow: var(--shadow-md);
}
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--slate-600); font-size: 14.5px; }

.region-card { display: flex; justify-content: space-between; gap: 10px;
  align-items: baseline; padding: 14px 16px; }
.region-card .name { font-weight: 600; font-size: 15px; }
.region-card .n { color: var(--slate-500); font-size: 13px; }

/* listing rows */
.listing {
  display: flex; gap: 18px; padding: 20px 0;
  border-bottom: 1px solid var(--slate-200);
}
.listing:last-child { border-bottom: 0; }
.listing-main { flex: 1; min-width: 0; }
.listing h3 { margin: 0 0 4px; font-size: 18px; }
.listing .meta {
  display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px;
  color: var(--slate-600); margin-top: 6px;
}
.listing .meta strong { color: var(--teal-deep); font-weight: 600; }
.listing .blurb {
  color: var(--slate-600); font-size: 14.5px; margin: 8px 0 0;
}
.listing-aside { flex: 0 0 auto; text-align: right; }

/* ---------- badges ------------------------------------------------------ */

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; }
.badge-listed   { background: var(--slate-100); color: var(--slate-500); }
.badge-listed   .dot { background: #A8B4C0; }
/* Richer green + white text, per Jim (2026-08-25) -- was a pale teal
   wash that read too close to "located" being just a minor variant of
   "listed" rather than a real step up (a confirmed address is worth
   standing out). */
.badge-located  { background: #178A5D; color: #FFFFFF; }
.badge-located  .dot { background: #BEEAD3; }
.badge-claimed  { background: #FFF6DF; color: var(--gold-deep); }
.badge-claimed  .dot { background: var(--gold); }
/* Purple, per Jim (2026-08-25) -- was a green nearly identical in hue
   to the new "located" green above; needed real separation since
   verified is a meaningfully bigger claim (proof of representation,
   not just a public-records match). */
.badge-verified { background: #F3E8FF; color: #7E22CE; }
.badge-verified .dot { background: #A855F7; }
.badge-powered  { background: var(--ink); color: var(--teal-pale); }
/* Gold star instead of a plain dot, per Jim (2026-08-25) -- "powered"
   is the top tier and should read as a badge of honor, not just
   another status dot in the same shape as the other four. Sized
   larger than the pill's own line-height and pulled up/down with
   negative margins so the points visibly poke past the pill's edge
   rather than sitting flush inside it -- the badge itself has no
   overflow:hidden, so this just works in normal inline-flex flow. */
.badge-powered .star {
  width: 16px; height: 16px; flex: 0 0 auto;
  margin: -5px 0 -5px -3px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%,
                      21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.chip {
  display: inline-block; font-size: 12.5px; padding: 3px 10px;
  border-radius: 999px; background: var(--slate-100); color: var(--slate-600);
  margin-right: 6px;
}

/* ---------- tables ------------------------------------------------------ */

table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  text-align: left; font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--slate-500);
  padding: 10px 12px; border-bottom: 2px solid var(--slate-200);
}
table.data td {
  padding: 11px 12px; border-bottom: 1px solid var(--slate-100);
  vertical-align: top;
}
table.data tr:hover td { background: var(--wash); }

/* ---------- forms ------------------------------------------------------- */

.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--slate-900); margin-bottom: 5px;
}
.field .hint {
  font-size: 12.5px; color: var(--slate-500); margin-top: 4px;
}
.field input[type=text], .field input[type=email], .field input[type=url],
.field input[type=tel], .field input[type=number], .field select,
.field textarea {
  width: 100%; padding: 10px 12px; font-family: inherit; font-size: 14.5px;
  border: 1px solid var(--slate-200); border-radius: var(--radius);
  background: var(--white); color: var(--slate-900);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,122,140,.12);
}
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field-row > .field { flex: 1 1 160px; }

.method-list { display: grid; gap: 10px; }
.method {
  display: flex; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--slate-200); border-radius: var(--radius);
  cursor: pointer;
}
.method:hover { border-color: var(--teal-pale); background: var(--wash); }
.method input { margin-top: 3px; }
.method .t { font-weight: 600; font-size: 14.5px; }
.method .d { font-size: 13px; color: var(--slate-600); margin-top: 2px; }
.method .strength {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--teal); margin-top: 4px;
}

.notice {
  border-left: 3px solid var(--teal); background: var(--wash);
  padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14.5px; color: var(--slate-600); margin: 18px 0;
}
.notice.warn { border-left-color: var(--gold-deep); background: #FFFBF0; }
.notice strong { color: var(--slate-900); }

/* honeypot: must be reachable in the DOM but invisible to people */
.hp {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* ---------- breadcrumb + footer ----------------------------------------- */

.crumbs {
  font-size: 13px; color: var(--slate-500); padding: 18px 0 0;
}
.crumbs a { color: var(--slate-600); }
.crumbs span { margin: 0 7px; color: var(--slate-200); }

.page-head { padding: 10px 0 30px; }
.page-head .lede {
  font-size: 17px; color: var(--slate-600); max-width: 640px; margin: 0;
}

.site-footer {
  background: var(--ink); color: var(--teal-pale); padding: 44px 0 34px;
  margin-top: 60px; font-size: 14px;
}
.site-footer a { color: var(--teal-pale); }
.site-footer .cols {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.site-footer h4 {
  color: var(--white); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; font-family: 'Inter', sans-serif;
  margin-bottom: 10px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .fine {
  margin-top: 30px; padding-top: 20px;
  border-top: 1px solid rgba(157,204,212,.18);
  font-size: 12.5px; color: rgba(157,204,212,.72);
}

/* ---------- admin ------------------------------------------------------- */

.admin-bar {
  background: var(--slate-900); color: var(--white); padding: 10px 0;
  font-size: 13.5px;
}
.admin-bar .wrap { display: flex; gap: 20px; align-items: center; }
.admin-bar a { color: var(--teal-pale); }
.admin-bar .spacer { margin-left: auto; }

.kpi { display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.kpi .box {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius); padding: 14px 16px;
}
.kpi .n { font-family: 'Fraunces', serif; font-size: 24px; color: var(--ink); }
.kpi .k {
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--slate-500); margin-top: 4px;
}
.kpi .box.alert { border-color: var(--gold); background: #FFFBF0; }

.login-page {
  min-height: 100vh; display: grid; place-items: center; background: var(--ink);
}
.login-box {
  background: var(--white); padding: 34px 34px 30px; border-radius: var(--radius-lg);
  width: min(380px, 90vw); box-shadow: var(--shadow-lg);
}
.login-box h1 { font-size: 22px; margin-bottom: 6px; }
.login-box p { color: var(--slate-500); font-size: 14px; margin: 0 0 20px; }
.login-box .err { color: var(--danger); font-size: 13.5px; margin-top: 10px; }

@media (max-width: 720px) {
  .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) {
    padding: 2px 22px 2px 4px !important;
  }
  .site-header .wrap { height: auto; padding: 12px 20px; flex-wrap: wrap; }
  .brand img { height: 32px; }
  .site-nav { gap: 16px; width: 100%; margin-left: 0; }
  /* Hero box was absolutely overlaying the map (position:absolute;
     inset:0), so on a narrow viewport the box's natural content height
     exceeded the map's own height and blotted out the whole map --
     Jim, 2026-08-24. Stack it above the map in normal flow instead:
     column-reverse renders the second DOM child (.map-overlay) first
     without needing to reorder the actual markup. */
  .hero { display: flex; flex-direction: column-reverse; }
  .map-overlay {
    position: static; padding: 18px 16px;
    background: var(--ink);
  }
  .hero-map { height: 50vh; min-height: 320px; }
  .hero-copy { padding: 20px; }
  .pin-popup .maplibregl-popup-content { padding: 14px 16px 16px; }
  .listing { flex-direction: column; gap: 10px; }
  .listing-aside { text-align: left; }
  /* The footer leaf floats into the grid gutter to the left of the h4
     (see .footer-leaf below) -- with no adjacent column there on a
     single-column mobile stack, it was sitting off the left edge of
     the viewport and forcing a horizontal scroll (Jim, 2026-08-24).
     Back to normal inline flow at this width instead. */
  .footer-leaf {
    position: static !important; display: inline-block;
    vertical-align: middle; margin-right: 6px;
  }
  .site-footer h4 { display: inline-flex; align-items: center; }
}



/* SCROLL REVEAL -- same technique as marketing-site/index.html, ported
   here so the Registry has the same alive-as-you-scroll feel below the
   fold (Jim, 2026-08-23). */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    opacity: 1; transform: none; transition: none;
  }
}
