/* Kituwa Hub 2026 theme — SearchAll navy + marigold, ReferStash lime. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #152637;
  --ink2: #24384f;
  --ink3: #4c5d71;
  --paper: #f7f6f1;
  --paper2: #eef1f4;
  --white: #ffffff;
  --cream: #fff3d6;
  --sky: #7fb4ff;
  --sky2: #2c5d9f;
  --navy: #162e50;
  --navy-deep: #0f223d;
  --grass: #c6f432;
  --grass2: #6f8f13;
  --grass3: #dcff7a;
  --forest: #0f3d2e;
  --soil: #8a5a34;
  --soil2: #5c3a1e;
  --sun: #ffd166;
  --sun2: #e6a817;
  --tomato: #d64545;
  --tomato2: #a32e2e;
  --orange: #e89a2f;
  --silver: #c3ccd8;
  --grey: #8a94a6;
  --grey2: #5b6474;
  --line: #d8e0ea;
  --line-soft: #e7ecf2;
  --pixel: 0;
  --radius: 18px;
  --shadow: 0 20px 48px rgba(21, 38, 55, .12);
  --shadow-sm: 0 8px 20px rgba(21, 38, 55, .08);
  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-pixel: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(900px 420px at 8% -8%, rgba(255, 209, 102, .22), transparent 70%),
    radial-gradient(760px 380px at 96% 0%, rgba(198, 244, 50, .14), transparent 68%);
  background-repeat: no-repeat;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { image-rendering: auto; max-width: 100%; }
img[src$=".png"] { image-rendering: auto; }
a { color: var(--navy); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--sky2); }
button, input, select, textarea { font: inherit; }
:focus-visible {
  outline: 3px solid var(--sun2);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(198, 244, 50, .55);
}
h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(34px, 4.6vw, 56px); }
h2 { font-size: clamp(26px, 3.2vw, 38px); display: flex; align-items: center; gap: 10px; }
h2 img { flex: 0 0 auto; }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
code, .mono {
  font-family: var(--font-mono);
  font-size: .9em;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1px 6px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 10px 16px; background: var(--sun); color: var(--ink);
  border-radius: 0 0 12px 0; font-weight: 700;
}
.skip-link:focus { left: 0; top: 0; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 22px 44px;
}

/* header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 10px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 14px 10px 12px;
  margin: 0 0 18px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(216, 224, 234, .9);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(21, 38, 55, .08);
  backdrop-filter: blur(14px);
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.site-brand img { flex: none; }
.site-brand-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.site-brand-text small {
  display: block;
  margin-top: 3px;
  color: var(--ink3);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.site-nav a, .site-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  color: var(--ink2);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.site-nav a:hover, .site-nav .nav-link:hover { background: var(--paper2); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.site-nav .inline-form { display: inline-flex; margin: 0; }
.site-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  color: var(--navy-deep) !important;
  background: var(--grass);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.site-cta:hover { background: var(--grass3); color: var(--navy-deep) !important; }

/* hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  padding: clamp(24px, 4vw, 54px);
  margin: 0 0 18px;
  color: #fff;
  background:
    radial-gradient(620px 320px at 88% 8%, rgba(255, 209, 102, .2), transparent 70%),
    radial-gradient(520px 300px at 0% 100%, rgba(198, 244, 50, .14), transparent 70%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 68%, #0b1a30 100%);
  border: 0;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(16, 34, 61, .28);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .18;
  mask-image: linear-gradient(110deg, transparent 35%, #000 100%);
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow {
  margin: 0 0 12px;
  color: var(--sun);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(40px, 5.6vw, 70px);
  line-height: .98;
}
.hero h1 em { color: var(--grass); font-style: normal; }
.hero .lede {
  max-width: 58ch;
  margin: 0;
  color: #dbe5f1;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
}
.hero .hint { color: #aebdd0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 16px; }
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}
.hero-art .hero-stash {
  width: min(100%, 560px);
  height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .28));
}
.hero-sticker {
  position: absolute;
  z-index: 2;
  padding: 7px 13px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
}
.hero-sticker-search { top: 8%; left: 2%; background: var(--sun); color: var(--navy-deep); transform: rotate(-6deg); }
.hero-sticker-stash { right: 1%; bottom: 9%; background: var(--grass); color: var(--navy-deep); transform: rotate(5deg); }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  color: #c7d5e6;
  font-size: 13px;
}
.hero-facts span { display: inline-flex; align-items: center; gap: 6px; }
.hero-facts strong { color: #fff; font-size: 16px; }
.hero-fact-live i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grass);
  box-shadow: 0 0 0 4px rgba(198, 244, 50, .18);
}

/* buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 19px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { color: var(--ink); background: var(--paper2); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-primary { color: var(--navy-deep); background: var(--grass); border-color: var(--grass); }
.btn-primary:hover { color: var(--navy-deep); background: var(--grass3); }
.btn-light { color: var(--navy-deep); background: var(--sun); border-color: var(--sun); }
.btn-light:hover { color: var(--navy-deep); background: #ffe19a; }
.btn-ghost-light { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .38); }
.btn-ghost-light:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.btn-small { padding: 8px 13px; font-size: 13px; }
.btn-ghost { background: #fff; }
.btn-danger { color: #fff; background: var(--tomato); border-color: var(--tomato); }
.btn-danger:hover { color: #fff; background: var(--tomato2); }

/* value strip ---------------------------------------------------------- */
.stash-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.stash-strip-item {
  display: flex;
  gap: 12px;
  padding: 15px 16px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(21, 38, 55, .02);
}
.stash-strip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  color: var(--navy);
  background: var(--cream);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}
.stash-strip-item strong { display: block; font-size: 14px; }
.stash-strip-item p { margin: 2px 0 0; color: var(--ink3); font-size: 12px; line-height: 1.45; }

/* directory ------------------------------------------------------------ */
.directory-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  margin: 26px 0 14px;
}
.directory-head h2 { margin: 0 0 5px; }
.directory-head .eyebrow { margin: 0 0 6px; color: var(--sky2); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; }
.directory-head .hint { color: var(--ink3); font-size: 14px; }
.filter {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(360px, 100%);
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(21, 38, 55, .05);
}
.filter:focus-within { outline: 3px solid var(--sun2); outline-offset: 2px; }
.filter input {
  flex: 1;
  width: 100%;
  padding: 9px 2px;
  color: var(--ink);
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 14px;
}
.filter input:focus { outline: none; }
.stash-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 16px; }
.stash-chip {
  padding: 7px 13px;
  color: var(--ink3);
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.stash-chip:hover { color: var(--ink); background: #fff; }
.stash-chip.is-active { color: #fff; background: var(--navy); border-color: var(--navy); }
.shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 20px;
}
.shelf-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(21, 38, 55, .03);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
a.shelf-card:hover {
  color: var(--ink);
  border-color: #b9c7d8;
  box-shadow: 0 16px 32px rgba(21, 38, 55, .11);
  transform: translateY(-2px);
}
.shelf-card.is-soon { border-style: dashed; background: #fbfbf8; }
.shelf-top { display: flex; align-items: flex-start; gap: 11px; }
.shelf-icon {
  flex: none;
  width: 46px;
  height: 46px;
  padding: 3px;
  object-fit: contain;
  background: var(--paper2);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.shelf-heading { min-width: 0; flex: 1; }
.shelf-heading h3 { margin: 1px 0 0; font-size: 18px; line-height: 1.15; }
.shelf-tagline { margin: 3px 0 0; color: var(--sky2); font-size: 12.5px; font-weight: 700; line-height: 1.35; }
.shelf-arrow { color: #a9b6c5; font-size: 19px; line-height: 1; transition: color .15s ease, transform .15s ease; }
a.shelf-card:hover .shelf-arrow { color: var(--navy); transform: translate(2px, -2px); }
.shelf-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 10px 0 12px;
  color: var(--ink3);
  font-size: 13px;
  line-height: 1.5;
}
.shelf-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.shelf-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.shelf-tags li {
  padding: 3px 7px;
  color: var(--ink3);
  background: var(--paper2);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .01em;
}
.shelf-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.shelf-state-live { color: var(--forest); background: #e8f8c8; }
.shelf-state-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--grass2); }
.shelf-state-internal { color: #8a5a00; background: var(--cream); }
.shelf-state-soon { color: var(--sky2); background: #e8efff; }
.shelf-note {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  margin: 9px 0 0;
  color: #7b8796;
  font-size: 11.5px;
  line-height: 1.4;
}
.shelf-card-cta {
  align-items: flex-start;
  justify-content: center;
  color: #fff;
  background:
    radial-gradient(300px 200px at 100% 0%, rgba(255, 209, 102, .25), transparent 70%),
    linear-gradient(135deg, var(--forest), var(--navy));
  border: 0;
  gap: 4px;
}
.shelf-card-cta:hover { color: #fff; transform: translateY(-2px); }
.shelf-card-cta h3 { color: #fff; margin: 0; }
.shelf-card-cta p { margin: 6px 0 12px; color: #d6e2ef; font-size: 13px; line-height: 1.5; }
.cta-spark { color: var(--grass); font-size: 24px; line-height: 1; }
.cta-link { margin-top: auto; color: var(--sun); font-size: 13px; font-weight: 800; }
.empty-filter {
  margin: 10px 0 24px;
  padding: 16px;
  color: var(--ink3);
  background: var(--cream);
  border: 1px solid #f2dfb6;
  border-radius: 14px;
  font-size: 14px;
  text-align: center;
}

/* cards, forms, admin -------------------------------------------------- */
.card, .request-card, .callout, .result, .estimator-results, .side-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card h2 { margin-bottom: 12px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--ink3);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hint { color: var(--ink3); font-size: 13px; line-height: 1.55; }
.label {
  display: block;
  color: var(--ink2);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .01em;
}
textarea, input[type="text"], input[type="search"], input[type="email"],
input[type="tel"], input[type="url"], input[type="number"], input[type="date"],
input[type="password"], select {
  width: 100%;
  padding: 11px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
}
textarea { resize: vertical; min-height: 120px; }
textarea:focus, input:focus, select:focus {
  outline: 3px solid var(--sun2);
  outline-offset: 1px;
  border-color: var(--sun2);
}
input[readonly] { background: var(--paper2); }
.pill, .chip, .tab, .tags li, .shelf-tags li {
  border: 1px solid transparent;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  color: var(--ink3);
  background: var(--paper2);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.pill-internal { color: #8a5a00; background: var(--cream); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  color: var(--ink3);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}
.tab:hover { color: var(--ink); background: var(--paper2); }
.tab.is-active { color: #fff; background: var(--navy); border-color: var(--navy); }
.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  color: #fff;
  background: var(--tomato);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}
.table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; font-size: 13px; }
.table th {
  color: #fff;
  background: var(--navy);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.table tr:last-child td { border-bottom: 0; }
.table td.mono { background: transparent; border: 0; }
.callout { padding: 14px 16px; border-left: 4px solid var(--sun2); border-radius: 12px; }
.callout-ok { background: #f2fbe1; border-left-color: var(--grass2); }
.callout-error { background: #fff0ef; border-left-color: var(--tomato); }
.callout-warn { background: #fff8e6; border-left-color: var(--orange); }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-head h1 { margin: 0 0 4px; font-size: clamp(30px, 3.5vw, 42px); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.inline-form { display: inline; }
.admin-search { display: flex; gap: 8px; margin-bottom: 16px; }
.admin-search input { flex: 1; }
.prose { max-width: 860px; }
.prose h2 { margin-top: 26px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 7px; }

/* cluster pulse -------------------------------------------------------- */
.cluster-pulse {
  margin: 0 0 18px;
  border-radius: 24px;
  border: 1px solid #263c59;
  box-shadow: 0 20px 50px rgba(15, 34, 61, .2);
}
.pulse-stat, .pulse-figure { border-radius: 14px; }
.pulse-figure { border: 1px solid #2c3a50; box-shadow: none; }
.pulse-offer { border-radius: 14px; }

/* promo bar ------------------------------------------------------------ */
.perk-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 10px 14px;
  color: #fff;
  background: linear-gradient(100deg, var(--navy), var(--forest));
  border: 0;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 34, 61, .16);
}
.perk-bar-text { margin: 0; font-size: 13px; }
.perk-bar-text strong { color: var(--sun); }
.perk-bar-text span { color: #c9d8e8; }
.perk-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 7px; }
.perk-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 0;
  margin: 26px 0 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}
.perk-card-art { display: block; min-height: 210px; background: var(--paper2); }
.perk-card-art img { width: 100%; height: 100%; object-fit: cover; }
.perk-card-body { padding: 24px; }
.perk-card-body h2 { margin-bottom: 8px; font-size: clamp(22px, 2.4vw, 30px); }
.perk-card-body .actions { margin: 14px 0 10px; }

/* footer --------------------------------------------------------------- */
.site-footer {
  margin-top: 34px;
  padding: 22px 4px 8px;
  border-top: 1px solid var(--line);
}
.site-footer-brand { display: flex; align-items: flex-start; gap: 12px; }
.site-footer-brand strong { display: block; font-family: var(--font-display); font-size: 18px; }
.site-footer-brand p { margin: 2px 0 0; color: var(--ink3); font-size: 13px; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 12px; }
.site-footer-links a { color: var(--ink2); font-size: 13px; font-weight: 600; text-decoration: none; }
.site-footer-links a:hover { color: var(--navy); text-decoration: underline; }
.site-footer-fine { margin: 0; color: var(--ink3); font-size: 12px; }
.footer-badge { color: var(--sky2); font-weight: 700; }

/* misc legacy overrides ------------------------------------------------ */
.request-head, .admin-dash, .quickfind, .quicklinks-panel { min-width: 0; }
.request-controls { border-top-color: var(--line-soft); }
.quicklink, .quickfind-row, .pulse-stat, .req, .donation-row { border-radius: 10px; }
.status-new { background: #e8efff; }
.status-reviewing { background: #e6f2ff; }
.status-planned { background: var(--cream); }
.status-built { background: #e8f8c8; }
.status-declined { background: #ffe7e5; }
.invest-hero, .compute-hero {
  background:
    radial-gradient(620px 320px at 88% 8%, rgba(255, 209, 102, .2), transparent 70%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 70%, #0b1a30 100%);
}
.invest-hero .eyebrow { color: var(--sun); }
.invest-hero h1, .compute-hero h1 { color: #fff; }
.invest-hero .lede, .compute-hero .lede { color: #dbe5f1; }
.invest-hero .hint, .compute-hero .hint { color: #aebdd0; }
.theme, .kituwa-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }

@media (max-width: 1080px) {
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stash-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .site-header { position: static; flex-wrap: wrap; gap: 10px; }
  .site-nav { order: 3; width: 100%; margin-left: 0; }
  .site-cta { margin-left: auto; }
  .hero, .theme, .kituwa-hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art .hero-stash { width: min(100%, 420px); }
  .hero-sticker-search { left: 6%; }
  .hero-sticker-stash { right: 4%; }
  .perk-card { grid-template-columns: 1fr; }
  .perk-card-art { min-height: 160px; }
}
@media (max-width: 640px) {
  .wrap { padding: 10px 14px 30px; }
  .site-brand-text { font-size: 18px; }
  .site-brand-text small { white-space: normal; }
  .site-nav a, .site-nav .nav-link { padding: 7px 9px; font-size: 12.5px; }
  .site-cta { padding: 9px 13px; font-size: 12.5px; }
  .hero { padding: 22px 18px; border-radius: 22px; }
  .hero h1 { font-size: clamp(34px, 10vw, 48px); }
  .hero-facts { gap: 6px 12px; }
  .shelf { grid-template-columns: 1fr; }
  .stash-strip { grid-template-columns: 1fr; }
  .directory-head { align-items: stretch; }
  .filter { width: 100%; }
  .perk-bar { align-items: flex-start; flex-wrap: wrap; }
  .perk-actions { width: 100%; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shelf-card, .btn, .shelf-arrow { transition: none; }
}

@media (max-width: 640px) {
  .site-cta { display: none; }
  .site-nav { flex-wrap: wrap; gap: 0; }
  .site-nav a, .site-nav .nav-link {
    padding: 6px 7px;
    font-size: 12px;
  }
}

/* forms, pool and inner pages */
.fieldset {
  margin: 0 0 12px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.fieldset legend {
  padding: 4px 12px;
  color: var(--ink2);
  background: var(--paper2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.qr-card {
  max-width: 300px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.qr-card img { image-rendering: auto; border-radius: 12px; }
.qr-label { font-family: var(--font-body); font-size: 11px; font-weight: 700; }
.fund-stat {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
}
.fund-num { font-family: var(--font-display); color: var(--navy); }
.progress {
  height: 22px;
  background: var(--paper2);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: none;
}
.progress span {
  background: linear-gradient(90deg, var(--grass2), var(--grass));
  border: 0;
  border-radius: 999px;
}
.fund-balance { font-family: var(--font-display); color: var(--forest); }
.compute-step, .invest-step {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(21, 38, 55, .03);
}
.compute-step h3, .invest-step h3 { font-size: 16px; }
