/* ═══════════════════════════════════════════════════════════════════════════
   FOSTER HOPE FRIENDS — styles.css
   Mobile-first. Matches Foster Toolkit's visual tokens so the whole family
   of sites feels like one family.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* Palette (matches Toolkit) */
  --bg:       #F4F0E8;
  --paper:    #FEFCF8;
  --paper2:   #F0EDE4;
  --ink:      #1C1814;
  --ink2:     #3C3530;
  --ink3:     #6B5F55;
  --ink4:     #9C908A;
  --line:     #E5DFD4;

  --teal:     #2E6B8A;
  --teal-d:   #1F4D66;
  --teal-l:   #4A8FAD;
  --teal-p:   #EAF3F8;

  --gold:     #B8843A;
  --gold-p:   #FBF5E8;

  --sage:     #3E6B5A;
  --sage-p:   #EAF2EE;

  --coral:    #C45A4E;
  --coral-p:  #F7E6E2;

  --navy:     #141C26;
  --navy2:    #1E2A38;

  /* Radii + spacing */
  --r:   8px;
  --r2:  12px;
  --r3:  16px;
  --r4:  24px;
  --s1:  8px;
  --s2:  16px;
  --s3:  24px;
  --s4:  32px;
  --s5:  48px;
  --s6:  64px;

  /* Fonts */
  --ff-d: 'Playfair Display', Georgia, serif;     /* display / headings */
  --ff-s: 'Lora', Georgia, serif;                  /* body serif */
  --ff-u: 'DM Sans', system-ui, sans-serif;        /* labels / UI */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--ff-s);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;

  /* App-shell grid: sidebar + scrollable main */
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: 100vh;
  overflow: hidden;
}

/* Mobile: sidebar collapses to a compact top bar; main takes the rest */
@media (max-width: 900px) {
  body {
    grid-template-columns: 1fr;
    grid-template-rows: 56px 1fr;
  }
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--ff-d); font-weight: 700; color: var(--ink); margin: 0 0 var(--s2); line-height: 1.2; }
h1 { font-size: clamp(32px, 6vw, 56px); letter-spacing: -0.01em; }
h2 { font-size: clamp(24px, 4vw, 36px); letter-spacing: -0.005em; }
h3 { font-size: clamp(18px, 3vw, 22px); }

p  { margin: 0 0 var(--s2); color: var(--ink2); }
small, .small { font-family: var(--ff-u); font-size: 13px; color: var(--ink3); }

/* Utility */
.wrap     { max-width: 1040px; margin: 0 auto; padding: 0 var(--s3); }
.wrap-sm  { max-width: 680px; margin: 0 auto; padding: 0 var(--s3); }
.ey       { font-family: var(--ff-u); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--teal); display: inline-block; margin-bottom: var(--s1); }
.hide     { display: none !important; }
.center   { text-align: center; }
.stack > * + * { margin-top: var(--s2); }

/* ─── Sidebar (desktop) + compact top bar (mobile) ────────────────────── */
.sidebar {
  background: linear-gradient(180deg, #3F88B2 0%, #25627F 100%);
  color: #F0F5F9;
  padding: var(--s4) var(--s3) var(--s3);
  overflow-y: auto;
  display: flex; flex-direction: column; gap: var(--s3);
  border-right: 1px solid rgba(255,255,255,.08);
}
.sb-brand {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding-bottom: var(--s3); border-bottom: 1px solid rgba(255,255,255,.08);
}
.sb-brand .mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal-l);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--ff-d); font-weight: 700; font-size: 18px;
  flex-shrink: 0;
}
.sb-brand .mark-img {
  width: 48px; height: 48px; border-radius: 50%;
  background: #fff; padding: 2px; object-fit: contain;
  flex-shrink: 0;
}
.mbar .mbar-brand .mark-img {
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; padding: 2px; object-fit: contain;
  flex-shrink: 0;
}
.sb-brand .sb-name {
  font-family: var(--ff-d); font-size: 17px; font-weight: 700;
  color: #fff; line-height: 1.2;
}
.sb-brand .sb-sub {
  font-family: var(--ff-u); font-size: 11px; color: #7A8494;
  letter-spacing: 0.04em; margin-top: 2px;
}
.sb-section { display: flex; flex-direction: column; gap: 2px; }
.sb-section h4 {
  font-family: var(--ff-u); font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6); margin: 0 0 6px; padding: 0 8px;
}
.sb-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--r);
  font-family: var(--ff-u); font-size: 14px; color: rgba(255,255,255,0.88);
  cursor: pointer; transition: background .15s ease, color .15s ease;
  text-decoration: none;
}
.sb-link:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.sb-link.active { background: rgba(255,255,255,.18); color: #fff; }
.sb-link .sb-ico {
  width: 16px; height: 16px; display: inline-block;
  opacity: 0.9; flex-shrink: 0;
}
.sb-foot {
  margin-top: auto; padding-top: var(--s3);
  border-top: 1px solid rgba(255,255,255,.15);
  font-family: var(--ff-u); font-size: 12px; color: rgba(255,255,255,0.6);
}
.sb-foot a { display: block; color: rgba(255,255,255,0.78); padding: 4px 8px; border-radius: 4px; }
.sb-foot a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }

/* Mobile top bar (only shown < 900px; desktop sidebar hidden instead) */
.mbar {
  display: none;
  background: linear-gradient(135deg, #3F88B2 0%, #25627F 100%); color: #fff;
  padding: 10px var(--s3); align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.mbar .mbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-d); font-weight: 700; font-size: 15px; color: #fff;
  cursor: pointer;
}
.mbar .mbar-brand .mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal-l); display: inline-flex; align-items: center;
  justify-content: center; color: #fff; font-size: 14px; font-weight: 700;
  font-family: var(--ff-u);
}
.mbar-burger {
  width: 40px; height: 40px; border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.15); background: transparent;
  color: #fff; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center;
}
.mbar-burger svg { width: 22px; height: 22px; stroke: #fff; }

/* Slide-in mobile sidebar */
.sb-backdrop {
  display: none; position: fixed; inset: 56px 0 0 0;
  background: rgba(0,0,0,.4); z-index: 90;
}
.sb-backdrop.open { display: block; }

/* Mobile breakpoint: hide desktop sidebar, show top bar, sidebar becomes a drawer */
@media (max-width: 900px) {
  .mbar { display: flex; }
  .sidebar {
    position: fixed; inset: 56px 0 0 0;
    width: 280px; max-width: 85vw; z-index: 95;
    transform: translateX(-100%);
    transition: transform .22s ease;
  }
  .sidebar.open { transform: translateX(0); }
}
@media (min-width: 901px) {
  .mbar { display: none; }
}

/* Main scroll area */
.main-scroll {
  overflow-y: auto;
  height: 100vh;
  scroll-behavior: smooth;
}
@media (max-width: 900px) {
  .main-scroll { height: calc(100vh - 56px); }
}

/* ─── Pages ───────────────────────────────────────────────────────────── */
.pg { display: none; }
.pg.active { display: block; }

/* ─── Hero ────────────────────────────────────────────────────────────── */
.hero {
  padding: clamp(32px, 6vh, 56px) var(--s3) clamp(24px, 4vh, 40px);
  background: linear-gradient(180deg, var(--paper) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-kicker {
  font-family: var(--ff-u); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--teal); margin-bottom: var(--s2);
}
.hero h1 { max-width: 16ch; font-size: clamp(28px, 5vw, 48px); }
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--ink2); max-width: 52ch; }

/* Home page: Toolkit-style three-band layout.
   Hero (navy) → Time-picker tiles → Promise + links
   Scoped to .active so it doesn't override .pg's display:none when inactive. */
#pg-home.active {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* Sky-blue hero band — darker to match sidebar */
.fh-hero {
  background: linear-gradient(135deg, #3F88B2 0%, #25627F 100%);
  color: #fff;
  padding: clamp(26px, 4vh, 48px) clamp(24px, 4vw, 48px);
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.fh-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 30%, rgba(255,255,255,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.fh-hero-in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: clamp(20px, 3vw, 32px);
  align-items: center; max-width: 1240px; margin: 0 auto;
}
@media (min-width: 900px) {
  .fh-hero-in { grid-template-columns: 1fr auto; }
}
.fh-hero-eyebrow {
  font-family: var(--ff-u); font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: rgba(255,255,255,0.85); margin-bottom: 10px;
}
.fh-hero-title {
  font-family: var(--ff-d); font-weight: 700;
  font-size: clamp(30px, 4.6vw, 56px); line-height: 1.08;
  letter-spacing: -0.01em;
  color: #fff; margin: 0 0 12px; max-width: 22ch;
  text-shadow: 0 2px 20px rgba(0,0,0,0.22);
}
.fh-hero-sub {
  font-family: var(--ff-s); font-style: italic;
  font-size: clamp(14px, 1.4vw, 17px); color: rgba(255,255,255,0.9);
  margin: 0; max-width: 60ch;
}
.fh-hero-logo {
  display: flex; justify-content: center;
}
.fh-hero-logo img {
  width: clamp(96px, 11vw, 130px); height: auto;
  border-radius: 50%; background: rgba(255,255,255,0.95);
  padding: 6px;
}
@media (max-width: 899px) {
  .fh-hero-logo { display: none; }
}

/* Tiles section */
.fh-tiles-sec {
  padding: clamp(18px, 2.5vh, 28px) clamp(24px, 4vw, 48px) clamp(10px, 1.5vh, 16px);
}
.fh-tiles {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  max-width: 1240px; margin: 0 auto;
}
@media (min-width: 720px)  { .fh-tiles { grid-template-columns: repeat(3, 1fr); } }

.fh-tile {
  text-align: left; cursor: pointer; border: 1px solid var(--line);
  background: var(--paper); border-radius: var(--r3);
  padding: 14px 16px;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 12px; align-items: center;
  transition: all .15s ease;
  font-family: inherit;
}
.fh-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.07);
  border-color: transparent;
}
.fh-tile-ic {
  width: 44px; height: 44px; border-radius: var(--r2);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fh-tile-ic svg { width: 24px; height: 24px; }
.fh-tile-tag {
  font-family: var(--ff-u); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink4);
  margin-bottom: 6px;
}
.fh-tile-title {
  font-family: var(--ff-d); font-weight: 700; font-size: 17px;
  color: var(--ink); line-height: 1.3; margin-bottom: 6px;
}
.fh-tile-desc {
  font-family: var(--ff-s); font-size: 14px; color: var(--ink3);
  line-height: 1.45;
}
.fh-tile-arrow {
  align-self: center; color: var(--ink4);
  font-size: 18px; transition: transform .15s ease;
}
.fh-tile:hover .fh-tile-arrow { transform: translateX(4px); color: var(--ink2); }

/* Accent color variants */
.fh-tile-teal .fh-tile-ic { background: var(--teal-p); color: var(--teal); }
.fh-tile-gold .fh-tile-ic { background: var(--gold-p); color: var(--gold); }
.fh-tile-sage .fh-tile-ic { background: var(--sage-p); color: var(--sage); }

.fh-tiles-fallback {
  max-width: 1240px; margin: 18px auto 0;
  font-family: var(--ff-u); font-size: 14px; color: var(--ink3);
}
.fh-tiles-fallback a { color: var(--teal); cursor: pointer; font-weight: 500; }

/* Promise band */
.fh-promise-sec {
  padding: clamp(16px, 2.5vh, 28px) clamp(24px, 4vw, 48px) clamp(20px, 3vh, 32px);
}
.fh-promise-sec .wrap { max-width: 1240px; }
#pg-home h1 {
  font-size: clamp(32px, 5vw, 60px);
  max-width: none;
  line-height: 1.1;
  margin-bottom: 14px;
}
#pg-home .hero-sub {
  font-size: clamp(16px, 1.8vw, 21px);
  max-width: 72ch;
  margin-bottom: clamp(20px, 3vh, 32px);
}
#pg-home .hero-kicker { font-size: 13px; }
#pg-home .wrap { max-width: 1240px; }
#pg-home .tpick-fallback { margin-top: clamp(12px, 2vh, 18px); }

/* ─── Home bottom band ─────────────────────────────────────────────────
   Expanded 3-column promise + 4-link row. Sized to take roughly the
   bottom third of the viewport; at minimum 30vh, but content-flex to
   avoid feeling too empty on tall screens. */
.home-bottom {
  padding: clamp(28px, 5vh, 56px) 0 clamp(28px, 4vh, 48px);
  min-height: 30vh;
  background: var(--paper);
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center;
}

.promise-strip {
  list-style: none; padding: 0; margin: 0 0 clamp(20px, 3vh, 32px);
  display: grid; gap: clamp(14px, 2vw, 28px);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .promise-strip { grid-template-columns: repeat(3, 1fr); } }

.promise-item {
  display: flex; gap: 14px; align-items: flex-start;
}
.promise-n {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-d); font-weight: 700; font-size: 17px;
  flex-shrink: 0;
}
.promise-content { flex: 1; min-width: 0; }
.promise-title {
  font-family: var(--ff-d); font-weight: 700; color: var(--ink);
  font-size: clamp(18px, 2vw, 22px); line-height: 1.2; margin-bottom: 4px;
}
.promise-desc {
  font-family: var(--ff-s); color: var(--ink2);
  font-size: clamp(14px, 1.4vw, 16px); line-height: 1.5;
}

/* Link row — bigger, pill-style */
.home-links {
  display: flex; flex-wrap: wrap; gap: 10px 12px;
  padding-top: clamp(16px, 2.5vh, 24px);
  border-top: 1px dashed var(--line);
}
.home-link {
  font-family: var(--ff-u); font-size: 14px; font-weight: 500;
  color: var(--teal-d);
  padding: 10px 18px; border-radius: 99px;
  background: var(--teal-p);
  cursor: pointer; transition: all .15s ease;
  text-decoration: none;
}
.home-link:hover {
  background: var(--teal); color: #fff;
  text-decoration: none; transform: translateY(-1px);
}

/* On short viewports, scale things down further */
@media (max-height: 760px) and (min-width: 901px) {
  #pg-home h1 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 6px; }
  #pg-home .hero-sub { font-size: 15px; margin-bottom: 18px; }
  #pg-home .tpick { margin-top: 16px; }
  .tpick-card { padding: 16px; }
  .tpick-body h3 { font-size: 16px; }
  .tpick-body p  { font-size: 13px; }
  .promise-strip { margin: 20px 0 12px; padding-top: 14px; }
  .home-preview { margin-top: 20px; padding-top: 16px; }
}

/* ─── Home "All 10 Packs" preview ─────────────────────────────────────── */
.home-preview {
  margin-top: clamp(24px, 4vh, 40px);
  padding-top: clamp(16px, 2.5vh, 24px);
  border-top: 1px solid var(--line);
}
.home-preview-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
}
.home-preview-head a {
  font-family: var(--ff-u); font-size: 13px; color: var(--teal);
  cursor: pointer;
}
.home-preview-head a:hover { text-decoration: underline; }

.pack-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.pack-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 99px; padding: 8px 14px 8px 8px;
  cursor: pointer; transition: all .15s ease;
  text-decoration: none;
}
.pack-chip:hover {
  border-color: var(--teal); background: var(--teal-p);
  text-decoration: none;
  transform: translateY(-1px);
}
.pack-chip .chip-n {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-u); font-weight: 600; font-size: 12px;
  flex-shrink: 0;
}
.pack-chip .chip-title {
  flex: 1; font-family: var(--ff-u); font-size: 13px; font-weight: 500;
  color: var(--ink); line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pack-chip .chip-time {
  font-family: var(--ff-u); font-size: 11px; color: var(--ink4);
  text-transform: lowercase; flex-shrink: 0;
}
.pack-chip:hover .chip-title { color: var(--teal-d); }

/* Time-picker (home page) */
.tpick { margin-top: var(--s4); display: grid; grid-template-columns: 1fr; gap: var(--s2); }
.tpick-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r3);
  padding: var(--s3); cursor: pointer; transition: all .15s ease;
  display: flex; align-items: center; gap: var(--s2);
}
.tpick-card:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(46, 107, 138, .08); }
.tpick-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--teal-p); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-d); font-weight: 700; font-size: 18px; flex-shrink: 0;
}
.tpick-body { flex: 1; }
.tpick-body h3 { margin: 0 0 4px; font-size: 17px; }
.tpick-body p  { margin: 0; font-size: 14px; color: var(--ink3); }
.tpick-chev { color: var(--ink4); }

@media (min-width: 720px) { .tpick { grid-template-columns: repeat(3, 1fr); } }

/* Fallback line below time-picker */
.tpick-fallback {
  margin-top: var(--s3); text-align: center;
  font-family: var(--ff-u); font-size: 14px; color: var(--ink3);
}
.tpick-fallback a { color: var(--teal); cursor: pointer; font-weight: 500; }

/* ─── Sections ────────────────────────────────────────────────────────── */
section.sec { padding: var(--s6) 0; }
section.sec.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 12px 22px;
  font-family: var(--ff-u); font-size: 15px; font-weight: 500;
  border-radius: var(--r); border: 1px solid transparent;
  cursor: pointer; transition: all .15s ease; text-decoration: none;
  line-height: 1; background: transparent; color: var(--ink);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-d); }
.btn-outline { border-color: var(--line); color: var(--ink2); }
.btn-outline:hover { border-color: var(--ink3); }
.btn-ghost   { color: var(--teal); }
.btn-ghost:hover { background: var(--teal-p); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ─── Cards / Pack tiles ──────────────────────────────────────────────── */
.cardgrid { display: grid; grid-template-columns: 1fr; gap: var(--s2); }
@media (min-width: 680px) { .cardgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cardgrid { grid-template-columns: repeat(3, 1fr); } }

.pack-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r3);
  padding: var(--s3); cursor: pointer; transition: all .15s ease;
  display: flex; flex-direction: column; gap: 10px;
}
.pack-card:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.05); }
.pack-num {
  font-family: var(--ff-u); font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink4);
}
.pack-title { font-family: var(--ff-d); font-size: 20px; font-weight: 700; color: var(--ink); margin: 0; }
.pack-tagline { font-family: var(--ff-s); font-style: italic; color: var(--ink3); font-size: 15px; margin: 0; }
.pack-meta {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: var(--s2);
  border-top: 1px dashed var(--line);
}
.pill {
  font-family: var(--ff-u); font-size: 11px; font-weight: 500;
  padding: 4px 10px; border-radius: 99px; background: var(--paper2); color: var(--ink3);
  display: inline-flex; align-items: center; gap: 5px;
}
.pill-time     { background: var(--teal-p); color: var(--teal-d); }
.pill-novet    { background: var(--sage-p); color: var(--sage); }
.pill-lightvet { background: var(--gold-p); color: var(--gold); }
.pill-reqvet   { background: var(--coral-p); color: var(--coral); }

/* The BYO tile looks different to draw the eye */
.pack-card.byo {
  background: linear-gradient(135deg, var(--teal-p) 0%, var(--gold-p) 100%);
  border-style: dashed; border-color: var(--teal);
}
.pack-card.byo .pack-title { color: var(--teal-d); }

/* Updating banner */
.updating-banner {
  background: var(--gold-p); border: 1px solid #E8D4A4;
  padding: var(--s2) var(--s3); border-radius: var(--r2);
  margin-bottom: var(--s3); text-align: center;
  font-family: var(--ff-u); font-size: 14px; color: var(--ink2);
}
.updating-banner a { color: var(--teal); cursor: pointer; font-weight: 500; }

/* ─── Pack detail ─────────────────────────────────────────────────────── */
.pg-hero {
  padding: var(--s5) 0 var(--s4);
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.pg-crumb {
  font-family: var(--ff-u); font-size: 13px; color: var(--ink3); margin-bottom: var(--s2);
}
.pg-crumb a { color: var(--ink3); cursor: pointer; }

.pdetail { padding: var(--s5) 0; }
.pdetail .lede {
  font-family: var(--ff-d); font-style: italic; font-size: clamp(19px, 2.8vw, 22px);
  color: var(--ink2); max-width: 60ch; margin-bottom: var(--s4);
}
.pdetail h3 { margin-top: var(--s4); }
.pdetail ul { padding-left: 20px; }
.pdetail ul li { margin-bottom: 8px; color: var(--ink2); }

.scripture-box {
  background: var(--gold-p); border-left: 3px solid var(--gold);
  padding: var(--s3); border-radius: var(--r);
  margin: var(--s4) 0;
}
.scripture-box .quote {
  font-family: var(--ff-d); font-style: italic; font-size: 18px;
  color: var(--ink); margin-bottom: 10px;
}
.scripture-box .ref { font-family: var(--ff-u); font-size: 13px; color: var(--ink3); }

.dodont-grid { display: grid; grid-template-columns: 1fr; gap: var(--s3); margin: var(--s3) 0; }
@media (min-width: 680px) { .dodont-grid { grid-template-columns: 1fr 1fr; } }
.dodont-col { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r2); padding: var(--s3); }
.dodont-col h4 { font-family: var(--ff-u); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 var(--s2); }
.dodont-col.do   h4 { color: var(--sage); }
.dodont-col.dont h4 { color: var(--coral); }
.dodont-col ul { margin: 0; padding-left: 18px; }
.dodont-col ul li { font-size: 14px; }

.sticky-cta {
  position: sticky; bottom: 0;
  background: var(--paper); border-top: 1px solid var(--line);
  padding: var(--s2) var(--s3);
  display: flex; gap: var(--s2); justify-content: flex-end; align-items: center;
  margin-top: var(--s5);
}

/* ─── Pack "Before you call" vetting callout ─────────────────────────── */
.vet-callout {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--gold-p); border: 1px solid #E8D4A4;
  border-radius: var(--r2); padding: var(--s3);
  margin: var(--s3) 0;
}
.vet-callout-ic {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-d); font-weight: 700; font-size: 16px;
  flex-shrink: 0;
}
.vet-callout-body { flex: 1; }
.vet-callout-title {
  font-family: var(--ff-d); font-weight: 700; font-size: 16px;
  color: var(--ink); margin-bottom: 6px;
}
.vet-callout-body p {
  color: var(--ink2); font-size: 14px; margin: 0 0 8px;
}

/* ─── Pack steps list ─────────────────────────────────────────────────── */
.pack-steps {
  list-style: none; padding: 0; margin: var(--s2) 0 var(--s4);
  display: flex; flex-direction: column; gap: var(--s2);
}
.pack-step {
  display: flex; gap: var(--s2); align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r2);
  padding: var(--s3);
}
.pack-step-n {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-u); font-weight: 600; font-size: 14px;
  flex-shrink: 0;
}
.pack-step-body { flex: 1; min-width: 0; }
.pack-step-title {
  font-family: var(--ff-d); font-weight: 700; font-size: 17px;
  color: var(--ink); margin-bottom: 4px;
}
.pack-step-text {
  color: var(--ink2); font-size: 15px; line-height: 1.55;
}
.pack-step-text a {
  color: var(--teal); cursor: pointer; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 2px;
}

/* ─── Optional help block at the bottom of Pack detail ────────────────── */
.pack-helpblock {
  margin-top: var(--s5); padding: var(--s4);
  background: var(--paper2); border: 1px dashed var(--line);
  border-radius: var(--r3);
}
.pack-helpblock h3 { font-family: var(--ff-d); color: var(--ink); }
.pack-helpblock p  { color: var(--ink2); }

/* ─── Forms ───────────────────────────────────────────────────────────── */
.form {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r3);
  padding: var(--s4); max-width: 560px; margin: 0 auto;
}
.field { margin-bottom: var(--s3); }
.field label {
  display: block; font-family: var(--ff-u); font-size: 13px; font-weight: 500;
  margin-bottom: 6px; color: var(--ink2);
}
.field .hint { font-size: 12px; color: var(--ink4); margin-top: 4px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  font-family: var(--ff-s); font-size: 16px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper); color: var(--ink);
  -webkit-appearance: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-p);
}
.field textarea { min-height: 120px; resize: vertical; }

/* Radio pill row (Tell us about you) */
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.radio-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 99px;
  background: var(--paper); border: 1px solid var(--line);
  cursor: pointer; font-family: var(--ff-u); font-size: 14px; color: var(--ink2);
  transition: all .15s ease;
}
.radio-pill:hover { border-color: var(--teal-l); background: var(--teal-p); }
.radio-pill input[type="radio"] {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--line); margin: 0; position: relative;
  flex-shrink: 0;
}
.radio-pill input[type="radio"]:checked {
  border-color: var(--teal); background: var(--teal);
}
.radio-pill input[type="radio"]:checked::after {
  content: ''; position: absolute;
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff; left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.radio-pill:has(input:checked) {
  border-color: var(--teal); background: var(--teal-p); color: var(--teal-d); font-weight: 500;
}

/* Check grid */
.check-grid {
  display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 6px;
}
@media (min-width: 560px) { .check-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .check-grid { grid-template-columns: 1fr 1fr 1fr; } }
.check-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--r);
  background: var(--paper); border: 1px solid var(--line);
  cursor: pointer; font-family: var(--ff-u); font-size: 14px; color: var(--ink2);
  transition: all .15s ease;
}
.check-pill:hover { border-color: var(--teal-l); }
.check-pill input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; border-radius: 4px;
  border: 2px solid var(--line); margin: 0; position: relative;
  flex-shrink: 0;
}
.check-pill input[type="checkbox"]:checked {
  border-color: var(--teal); background: var(--teal);
}
.check-pill input[type="checkbox"]:checked::after {
  content: '✓'; color: #fff; font-size: 12px; font-weight: 700;
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.check-pill:has(input:checked) {
  border-color: var(--teal); background: var(--teal-p); color: var(--teal-d);
}

.form-status { margin-top: var(--s2); font-size: 14px; }
.form-status.error { color: var(--coral); }
.form-status.ok    { color: var(--sage); }

/* ─── County lookup ──────────────────────────────────────────────────── */
.county-loading {
  padding: var(--s4); text-align: center; color: var(--ink3);
  font-family: var(--ff-u); font-size: 14px;
}
.county-loading .spinner {
  display: inline-block; width: 32px; height: 32px;
  border: 3px solid var(--teal-p); border-top-color: var(--teal);
  border-radius: 50%; animation: spin 1s linear infinite;
  margin-bottom: var(--s2);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Multi-step progress */
.county-progress {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r3); padding: var(--s4);
}
.county-progress-head { margin-bottom: var(--s3); }
.county-progress-head h2 { margin: 4px 0 8px; }
.county-progress-head p { color: var(--ink3); font-size: 14px; }
.county-progress-bar {
  background: var(--paper2); border-radius: 99px; overflow: hidden;
  height: 8px; margin-bottom: var(--s3);
}
.county-progress-bar > div {
  height: 100%; background: linear-gradient(90deg, var(--teal) 0%, var(--teal-l) 100%);
  transition: width .3s ease;
}
.cstep-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cstep {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--ff-u); font-size: 14px; color: var(--ink4);
  padding: 6px 0;
}
.cstep-ic {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line); flex-shrink: 0;
  position: relative;
}
.cstep.active { color: var(--ink); }
.cstep.active .cstep-ic {
  border-color: var(--teal);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(46, 107, 138, 0.15); } }
.cstep.done { color: var(--sage); }
.cstep.done .cstep-ic {
  border-color: var(--sage); background: var(--sage);
}
.cstep.done .cstep-ic::after {
  content: '✓'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px; font-weight: 700;
}

/* Rich result */
.county-result-new { display: flex; flex-direction: column; gap: var(--s3); }
.county-result-head h2 { margin: 4px 0 6px; }

/* Toolkit-style "Research complete" banner */
.cr-banner {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: var(--r2);
  background: linear-gradient(135deg, #E6F5EC 0%, #D5ECDE 100%);
  border: 1px solid #A6D4B8;
  color: var(--sage);
}
.cr-banner-ic {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--sage); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.cr-banner-title {
  font-family: var(--ff-d); font-weight: 700;
  font-size: 17px; color: var(--ink); margin-bottom: 2px;
}
.cr-banner-sub {
  font-family: var(--ff-u); font-size: 13px; color: var(--ink3);
}
.cr-banner-sub a { color: var(--sage); font-weight: 500; }

/* Rich result — tightened for density (Toolkit-style) */
.county-result-new { display: flex; flex-direction: column; gap: 12px; }
.county-card, .county-section {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r2); padding: 18px 20px;
}
.county-h3 {
  font-family: var(--ff-d); font-size: 17px; font-weight: 700;
  margin: 0 0 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

/* "A Possible First Idea" section (now bottom, gold accent) */
.county-firststep { background: var(--gold-p); border-color: #E8D4A4; }
.county-firststep .county-h3 { color: var(--ink); border-color: rgba(0,0,0,0.08); }
.county-firststep-step {
  font-family: var(--ff-d); font-weight: 600; font-size: 15.5px;
  color: var(--ink); line-height: 1.4; margin: 0 0 8px;
}
.county-firststep-contact {
  font-family: var(--ff-u); font-size: 13px; color: var(--ink2);
  padding: 6px 10px; background: var(--paper); border-radius: var(--r);
  margin-bottom: 8px; display: inline-block;
}
.county-firststep-why { color: var(--ink3); font-size: 13px; margin: 0 0 10px; font-style: italic; }

/* Partner list (5 possible places that could partner locally) */
.county-partners { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; }
.county-partner {
  display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: flex-start;
  padding: 8px 10px; background: var(--paper); border-radius: var(--r);
  font-size: 13px; line-height: 1.35;
}
.county-partner .cp-n {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-u); font-weight: 600; font-size: 11px;
  flex-shrink: 0;
}
.county-partner .cp-name { font-family: var(--ff-d); font-weight: 700; font-size: 14px; color: var(--ink); }
.county-partner .cp-why  { color: var(--ink3); font-size: 12.5px; margin-top: 1px; }
.county-partner .cp-contact { color: var(--ink2); font-family: var(--ff-u); font-size: 11.5px; margin-top: 2px; }
.county-partner .cp-contact a { color: var(--teal); }

/* Stats row — tighter */
.county-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px;
}
@media (max-width: 520px) { .county-stats { grid-template-columns: 1fr 1fr; } }
.county-stat {
  background: var(--bg); border-radius: var(--r); padding: 12px 10px; text-align: center;
}
.county-stat-n {
  font-family: var(--ff-d); font-weight: 700; color: var(--teal-d);
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1;
}
.county-stat-l {
  font-family: var(--ff-u); font-size: 10.5px; color: var(--ink3);
  margin-top: 5px; letter-spacing: 0.03em; line-height: 1.2;
}
.county-context { color: var(--ink2); font-size: 13.5px; margin: 8px 0 0; }

/* Door cards grid — denser (2 or 3 cols) */
.door-grid {
  display: grid; grid-template-columns: 1fr; gap: 8px;
}
@media (min-width: 640px)  { .door-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .door-grid { grid-template-columns: 1fr 1fr 1fr; } }

.door-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13.5px;
}
.door-card h4 { font-family: var(--ff-d); margin: 2px 0 0; font-size: 15.5px; color: var(--ink); line-height: 1.25; }
.door-type {
  display: inline-block; font-family: var(--ff-u); font-size: 9.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal-d);
  padding: 1px 7px; background: var(--teal-p); border-radius: 99px;
  align-self: flex-start;
}
.door-card p { font-size: 13px; color: var(--ink2); margin: 2px 0; line-height: 1.45; }
.door-offers { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 2px; }
.door-offers .pill { font-size: 10px; padding: 1px 7px; }
.door-contact {
  font-family: var(--ff-u); font-size: 12px; color: var(--ink3);
  margin-top: auto; padding-top: 4px;
}

.county-actions {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px;
}

/* ─── Footer ──────────────────────────────────────────────────────────── */
footer {
  background: var(--navy); color: #E8E5E0;
  padding: var(--s5) var(--s3) var(--s4); margin-top: var(--s6);
}
footer .wrap { display: grid; grid-template-columns: 1fr; gap: var(--s4); }
@media (min-width: 720px) { footer .wrap { grid-template-columns: 2fr 1fr 1fr; } }
footer h4 { font-family: var(--ff-u); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #A8B3C0; margin-bottom: var(--s2); }
footer a { color: #E8E5E0; display: block; padding: 4px 0; font-family: var(--ff-u); font-size: 14px; cursor: pointer; }
footer a:hover { color: #fff; text-decoration: none; }
footer .foot-brand { font-family: var(--ff-d); font-size: 22px; color: #fff; margin-bottom: var(--s2); }
footer .foot-fine { font-family: var(--ff-u); font-size: 12px; color: #7A8494; margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid rgba(255,255,255,.08); }

/* ─── Basics + Pastor Packet skeletons ────────────────────────────────── */
.basics-grid, .pastor-grid { display: grid; grid-template-columns: 1fr; gap: var(--s3); }
@media (min-width: 720px) { .basics-grid, .pastor-grid { grid-template-columns: 1fr 1fr; } }
.basics-card, .pastor-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r3);
  padding: var(--s3);
}
.basics-card h3, .pastor-card h3 { margin-bottom: var(--s1); }

.pastor-ideas {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: flex; flex-direction: column; gap: 12px;
}
.pastor-ideas li {
  font-family: var(--ff-s); color: var(--ink2);
  font-size: 14.5px; line-height: 1.5;
  padding-left: 18px; position: relative;
}
.pastor-ideas li::before {
  content: '•'; position: absolute; left: 4px; top: 0;
  color: var(--teal); font-weight: 700;
}
.pastor-ideas li strong { color: var(--ink); font-weight: 600; }

.glossary-term {
  border-bottom: 1px dotted var(--teal); cursor: help; color: var(--teal-d);
}
