/* ==========================================================================
   Nexus Point Family Foundation — Main Stylesheet
   Brand values come from tokens.css. Do not hardcode brand colors here.
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; }

/* ---------- Typography ---------- */
h1, h2, h4 { font-family: var(--font-title); font-weight: 700; line-height: 1.12; color: var(--text-primary); letter-spacing: -0.01em; }
h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--text-primary); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { max-width: 66ch; }
.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-hover);
}
.eyebrow.on-dark { color: var(--orange-400); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.narrow { max-width: var(--container-narrow); }
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head .eyebrow { margin-bottom: 0.75rem; display: block; }
.section-head p { color: var(--text-secondary); margin-top: 0.9rem; font-size: 1.15rem; }
.center { text-align: center; margin-inline: auto; }

.bg-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: var(--white); }
.bg-dark p { color: var(--text-on-dark-muted); }
.bg-warm { background: var(--bg-warm); }
.bg-surface { background: var(--bg-surface); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-ui); font-weight: 600; font-size: 0.98rem;
  padding: 0.85em 1.6em; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--teal-900); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); color: var(--white); }
.btn-light { background: var(--white); color: var(--teal-900); }
.btn-light:hover { background: var(--cream-100); }
.btn-outline { background: transparent; color: var(--teal-800); border-color: var(--teal-700); }
.btn-outline:hover { background: var(--teal-900); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-outline-light:hover { background: var(--white); color: var(--teal-900); }
.btn-lg { font-size: 1.05rem; padding: 1em 1.9em; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,248,243,0.85); backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 0.65rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.12rem; color: var(--teal-900); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 38px; height: 38px; border-radius: 10px; background: var(--teal-700); color: var(--orange-400); display: grid; place-items: center; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.footer-logo { background: var(--cream-50); border-radius: 50%; padding: 3px; }
.brand small { display: block; font-family: var(--font-ui); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-secondary); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 0.35rem; }
.nav-links a { font-family: var(--font-ui); color: var(--ink-700); font-weight: 500; font-size: 0.95rem; padding: 0.5rem 0.85rem; border-radius: var(--radius-sm); }
.nav-links a:hover { background: var(--cream-100); text-decoration: none; color: var(--teal-900); }
.nav-links a.active { color: var(--teal-700); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 0.6rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; color: var(--teal-900); }
.nav-toggle svg { width: 26px; height: 26px; }
/* ---- Find Help dropdown ---- */
.nav-dropdown { position: relative; }
.nav-dropbtn { display: inline-flex; align-items: center; gap: 0.25rem; font-family: var(--font-ui); color: var(--ink-700); font-weight: 500; font-size: 0.95rem; padding: 0.5rem 0.85rem; border-radius: var(--radius-sm); background: none; border: 0; cursor: pointer; }
.nav-dropbtn:hover, .nav-dropdown:focus-within .nav-dropbtn { background: var(--cream-100); color: var(--teal-900); }
.nav-dropbtn .ti { font-size: 1rem; transition: transform 0.2s ease; }
.nav-dropdown:hover .nav-dropbtn .ti, .nav-dropdown:focus-within .nav-dropbtn .ti, .nav-dropdown.open .nav-dropbtn .ti { transform: rotate(180deg); }
.nav-dropdown.active .nav-dropbtn { color: var(--teal-700); font-weight: 600; }
.nav-dropmenu { position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--bg-page); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 0.4rem; display: none; flex-direction: column; gap: 0.1rem; }
.nav-dropdown:hover .nav-dropmenu, .nav-dropdown:focus-within .nav-dropmenu, .nav-dropdown.open .nav-dropmenu { display: flex; }
.nav-dropmenu a { white-space: nowrap; padding: 0.55rem 0.75rem; border-radius: var(--radius-sm); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg-page); border-bottom: 1px solid var(--line); padding: 0.75rem 1.25rem 1.25rem; gap: 0.15rem;
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 0.5rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-dropdown { width: 100%; }
  .nav-dropbtn { width: 100%; justify-content: space-between; padding: 0.8rem 0.5rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-dropmenu { position: static; display: flex; min-width: 0; box-shadow: none; border: 0; border-radius: 0; padding: 0; }
  .nav-dropmenu a { padding: 0.8rem 0.5rem 0.8rem 1.4rem; border-radius: 0; }
}

/* ---------- Hero (warm & human, with 3D globe) ---------- */
.hero { position: relative; background: var(--cream-50); color: var(--text-primary); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 55% at 85% 30%, rgba(232,141,96,0.16), transparent 70%),
    radial-gradient(45% 50% at 10% 90%, rgba(140,172,65,0.12), transparent 70%);
}
.hero .container { position: relative; z-index: 1; padding-block: clamp(3rem, 8vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.hero h1 { font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-hero); color: var(--teal-900); margin-bottom: 1.25rem; letter-spacing: -0.015em; }
.hero .lead { font-family: var(--font-body); font-size: 1.3rem; color: var(--ink-700); max-width: 42ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem 1.4rem; align-items: center; }
.hero-actions .text-link { font-family: var(--font-ui); font-weight: 600; color: var(--teal-700); display: inline-flex; align-items: center; gap: 0.4em; }
.hero-trust { font-family: var(--font-ui); margin-top: 1.75rem; font-size: 0.86rem; color: var(--text-secondary); display: flex; align-items: center; gap: 0.5em; }
.hero-trust .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--leaf-500); }

/* Interactive US resource map */
.hero-map { position: relative; width: 100%; max-width: 540px; margin-inline: auto; }
.usmap { width: 100%; position: relative; aspect-ratio: 975 / 610; }
.usmap svg { width: 100%; height: 100%; display: block; overflow: visible; }
.map-fallback { display: grid; place-items: center; min-height: 260px; text-align: center; font-family: var(--font-ui); font-weight: 600; color: var(--teal-700); background: var(--teal-100); border-radius: var(--radius-lg); padding: 1.5rem; }

.usmap .state { fill: var(--teal-100); stroke: var(--teal-600); stroke-width: 0.85; cursor: pointer; transition: fill 0.18s var(--ease); }
.usmap .state:hover { fill: var(--teal-500); }
.usmap .state.dim { fill: var(--cream-200); opacity: 0.55; pointer-events: none; }
.usmap .county { fill: var(--teal-100); stroke: rgba(255,255,255,0.85); stroke-width: 0.4; cursor: pointer; transition: fill 0.15s var(--ease); }
.usmap .county:hover { fill: var(--orange-500); }
.usmap .state-outline { fill: none; stroke: var(--teal-700); stroke-width: 1.2; pointer-events: none; }
.usmap .state, .usmap .county, .usmap .state-outline { vector-effect: non-scaling-stroke; }

.map-bar { position: absolute; top: 0.5rem; left: 0.5rem; right: 0.5rem; display: flex; justify-content: space-between; gap: 0.5rem; pointer-events: none; }
.map-back, .map-state-link { pointer-events: auto; font-family: var(--font-ui); font-size: 0.82rem; font-weight: 600; padding: 0.45em 0.9em; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--white); color: var(--teal-800); box-shadow: var(--shadow-sm); cursor: pointer; display: inline-flex; align-items: center; gap: 0.35em; text-decoration: none; }
.map-back:hover { background: var(--cream-100); }
.map-state-link { background: var(--teal-700); color: var(--white); border-color: var(--teal-700); }
.map-state-link:hover { background: var(--teal-800); text-decoration: none; }

.map-tip { position: absolute; pointer-events: none; z-index: 5; background: var(--white); color: var(--teal-900); font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 8px; box-shadow: var(--shadow); transform: translate(-50%, -130%); white-space: nowrap; opacity: 0; transition: opacity 0.12s; }
.map-tip.show { opacity: 1; }
.map-hint { font-family: var(--font-ui); text-align: center; font-size: 0.78rem; color: var(--text-secondary); margin: 0.6rem 0 0; }
.map-section .map-large { max-width: 1000px; }

/* Hero visual slot (3D piece mounts here) */
.hero-viz { position: relative; aspect-ratio: 1 / 1; max-width: 460px; width: 100%; margin-inline: auto; }
.hero-viz canvas { width: 100%; height: 100%; display: block; }
.hero-viz-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--orange-400); }
.hero-viz-fallback i { font-size: 5rem; opacity: 0.45; }

@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-map { max-width: 480px; } .hero-viz { max-width: 300px; } }

/* ---------- Motion: scroll reveal + depth ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
.js [data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
.grid > [data-reveal]:nth-child(2) { transition-delay: 0.09s; }
.grid > [data-reveal]:nth-child(3) { transition-delay: 0.18s; }
.lift { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.lift:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .lift:hover { transform: none; }
}

/* ---------- Trust / stat strip ---------- */
.trust-strip { background: var(--bg-dark-soft); border-top: 1px solid var(--line-dk); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; color: var(--text-on-dark); }
.stat .num { font-family: var(--font-title); font-size: 2.1rem; font-weight: 700; color: var(--orange-400); line-height: 1.05; }
.stat .label { font-family: var(--font-ui); font-size: 0.88rem; color: var(--text-on-dark-muted); margin-top: 0.4rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; } }

/* ---------- Cards / feature grid ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-sm); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1.1rem; }
.icon-teal { background: var(--teal-700); color: var(--orange-400); }
.icon-orange { background: var(--orange-100); color: var(--orange-700); }
.icon-leaf { background: var(--leaf-100); color: var(--leaf-700); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-secondary); font-size: 1rem; }
.card .card-link { font-family: var(--font-ui); display: inline-flex; align-items: center; gap: 0.35em; margin-top: 1rem; font-weight: 600; font-size: 0.92rem; }
.tag { font-family: var(--font-ui); display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3em 0.7em; border-radius: var(--radius-pill); }
.tag-live { background: var(--leaf-100); color: var(--leaf-700); }
.tag-soon { background: var(--cream-100); color: var(--text-secondary); border: 1px solid var(--line); }
/* ---- Blog chips + post meta ---- */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.chip { font-family: var(--font-ui); font-size: 0.85rem; font-weight: 600; color: var(--ink-700); background: var(--cream-100); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.9rem; }
.chip-active { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }
.post-meta { font-family: var(--font-ui); font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.6rem; }
.post-meta time { font-weight: 600; }
/* ---- Blog post (article) layout ---- */
.post { padding-block: 3.5rem; }
.post-head { margin-bottom: 2rem; }
.post-head h1 { margin-top: 0.5rem; }
.post-body { font-family: "EB Garamond", Georgia, serif; font-size: 1.18rem; line-height: 1.8; color: var(--text-primary); }
.post-body p { margin-bottom: 1.2rem; }
.post-body h2 { font-family: var(--font-heading); font-size: var(--fs-h2); margin: 2.2rem 0 0.8rem; }
.post-body h3 { font-family: var(--font-heading); margin: 1.6rem 0 0.6rem; }
.post-body ul, .post-body ol { margin: 0 0 1.2rem 1.3rem; }
.post-body li { margin-bottom: 0.5rem; }
.post-body a { color: var(--teal-700); text-decoration: underline; }
.post-body blockquote { margin: 1.5rem 0; padding: 0.5rem 0 0.5rem 1.2rem; border-left: 4px solid var(--orange-400); color: var(--text-secondary); font-style: italic; }
.post-callout { background: var(--cream-100); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 1.6rem 0; font-family: var(--font-ui); font-size: 1rem; line-height: 1.6; }
.post-sources { margin-top: 2.6rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-sources h2 { font-family: var(--font-heading); font-size: 1.15rem; margin-bottom: 0.6rem; }
.post-sources ol { font-family: var(--font-ui); font-size: 0.92rem; color: var(--text-secondary); margin-left: 1.2rem; }
.post-sources li { margin-bottom: 0.4rem; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.reverse .split-media { order: -1; }
.split-media { background: var(--teal-100); border-radius: var(--radius-lg); min-height: 360px; display: grid; place-items: center; color: var(--teal-700); border: 1px solid var(--line); }
.split-media i { font-size: 4rem; opacity: 0.6; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }

.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 0.75rem; color: var(--text-secondary); }
.checklist li i { color: var(--leaf-600); margin-top: 0.25em; flex-shrink: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--teal-900); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p { color: var(--text-on-dark-muted); margin-inline: auto; margin-bottom: 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-900); color: var(--text-on-dark-muted); padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { font-family: var(--font-ui); color: var(--white); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 600; }
.site-footer a { font-family: var(--font-ui); color: var(--text-on-dark-muted); display: block; padding: 0.3rem 0; font-size: 0.93rem; }
.site-footer a:hover { color: var(--orange-400); }
.footer-brand p { font-size: 0.95rem; margin-top: 1rem; max-width: 34ch; }
.footer-legal { font-family: var(--font-ui); border-top: 1px solid var(--line-dk); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.84rem; color: var(--text-on-dark-muted); }
.footer-legal .ein { font-variant-numeric: tabular-nums; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.1rem; }
.field label { font-family: var(--font-ui); display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--ink-700); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--text-primary);
  padding: 0.75rem 0.9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 3px rgba(10,139,141,0.18);
}
.field textarea { min-height: 150px; resize: vertical; }
.form-card { background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-sm); }
.form-note { font-family: var(--font-ui); font-size: 0.85rem; color: var(--text-secondary); }

/* ---------- Zeffy donation embeds ---------- */
.zeffy-embed { position: relative; width: 100%; max-width: 640px; margin-inline: auto; }
.zeffy-embed iframe { width: 100%; min-height: 920px; border: 0; display: block; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.zeffy-fallback { font-family: var(--font-ui); font-size: 0.85rem; text-align: center; margin-top: 0.75rem; color: var(--text-secondary); }
.campaign-block { max-width: 720px; margin-inline: auto; }
.campaign-block + .campaign-block { margin-top: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--line); padding-top: clamp(2.5rem, 6vw, 4rem); }

/* ---------- Free Item Tracker ---------- */
.tracker-toolbar { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: flex-end; margin: 1.75rem 0 1rem; }
.tracker-toolbar .field { margin: 0; flex: 1 1 180px; }
.tracker-toolbar .btn { flex: 0 0 auto; }
.tracker-status { font-family: var(--font-ui); font-size: 0.9rem; color: var(--text-secondary); margin: 0.25rem 0 1.25rem; }
.tracker-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.item-card { background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 0.55rem; }
.item-card h4 { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--text-primary); }
.item-card .item-cat { align-self: flex-start; }
.item-card p { font-size: 0.95rem; }
.item-meta { font-family: var(--font-ui); font-size: 0.82rem; color: var(--text-secondary); display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; margin-top: auto; }
.item-meta i { color: var(--teal-600); }
.item-card .btn { margin-top: 0.4rem; }
.item-contact { background: var(--leaf-100); color: var(--ink-700); border-radius: var(--radius-sm); padding: 0.7rem 0.85rem; font-size: 0.95rem; word-break: break-word; }
.safety-note { display: flex; gap: 0.7rem; align-items: flex-start; background: var(--teal-100); border: 1px solid var(--line); border-left: 4px solid var(--teal-600); border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; font-size: 0.92rem; color: var(--ink-700); line-height: 1.55; }
.safety-note i { color: var(--teal-700); font-size: 1.2rem; margin-top: 0.1rem; flex-shrink: 0; }
.safety-note a { font-weight: 600; }

/* ---------- Resource directory cards ---------- */
.res-eligibility { font-size: 0.9rem; color: var(--ink-700); display: flex; gap: 0.4rem; align-items: flex-start; }
.res-eligibility i { color: var(--teal-600); margin-top: 0.15rem; flex-shrink: 0; }
.res-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.res-link { font-family: var(--font-ui); font-size: 0.82rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.4em 0.85em; border-radius: var(--radius-pill); background: var(--teal-100); color: var(--teal-700); text-decoration: none; transition: background 0.15s ease; }
.res-link:hover { background: var(--teal-600); color: #fff; }
.res-link i { font-size: 0.95rem; }
.res-verified { font-family: var(--font-ui); font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-secondary); margin-top: 0.2rem; }
.res-advisory { display: flex; gap: 0.45rem; align-items: flex-start; font-size: 0.85rem; line-height: 1.45; color: var(--ink-700); background: #fff7ed; border: 1px solid #fed7aa; border-left: 4px solid var(--orange-400, #e88d60); border-radius: var(--radius-sm); padding: 0.55rem 0.7rem; }
.res-advisory i { color: #c2620e; margin-top: 0.1rem; flex-shrink: 0; }

/* ---------- County / state place pages ---------- */
.cat-list { display: flex; flex-direction: column; gap: 2.5rem; }
.cat-section { }
.cat-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.1rem; }
.cat-head .icon { margin: 0; flex-shrink: 0; }
.cat-head h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; color: var(--text-primary); }

/* ---------- Tracker accounts ---------- */
.auth-bar { max-width: 460px; margin: 0 auto 1.75rem; }
.auth-card { background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.auth-card h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; margin-bottom: 0.35rem; }
.auth-signed { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: var(--leaf-100); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 0.55rem 0.6rem 0.55rem 1.2rem; font-family: var(--font-ui); font-size: 0.92rem; color: var(--ink-700); }
.auth-toggle { display: inline-block; margin-top: 0.85rem; background: none; border: 0; padding: 0; cursor: pointer; color: var(--teal-700); font-family: var(--font-ui); font-weight: 600; text-decoration: underline; font-size: 0.9rem; }
.auth-toggle:hover { color: var(--teal-900); }

/* ---------- Quote / editorial ---------- */
.pullquote { font-family: var(--font-quote); font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.45; color: var(--teal-800); font-style: italic; }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--teal-900); color: #fff; padding: 0.75rem 1rem; z-index: 1000; border-radius: 0 0 var(--radius-sm) 0; }
.skip-link:focus { left: 0; }
.muted { color: var(--text-secondary); }
.lead { font-size: 1.25rem; color: var(--text-secondary); }

/* ---------- Forms: subheadings + checkbox row ---------- */
.form-subhead { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--text-primary); margin: 0 0 0.4rem; padding-top: 0.4rem; border-top: 1px solid var(--line); }
.check-row { display: flex; align-items: flex-start; gap: 0.6rem; margin: 1rem 0 0.25rem; font-size: 0.95rem; line-height: 1.45; color: var(--ink-700); cursor: pointer; }
.check-row input[type="checkbox"] { margin-top: 0.2rem; width: 1.05rem; height: 1.05rem; flex-shrink: 0; accent-color: var(--teal-700); }
.check-row.inline { margin: 0; align-items: center; }

/* ---------- Community events board ---------- */
.event-group { margin-top: 2.25rem; }
.event-group-head { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: var(--teal-800); display: flex; align-items: center; gap: 0.4rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--line); margin-bottom: 1.1rem; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.event-card { background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem 1.35rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 0.55rem; }
.event-card h4 { font-family: var(--font-heading); font-weight: 700; font-size: 1.12rem; color: var(--text-primary); }
.event-card .tag { align-self: flex-start; }
.event-card .item-meta { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.9rem; color: var(--text-secondary); }
.event-card .item-meta span { display: flex; align-items: center; gap: 0.4rem; }
.event-desc { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.5; white-space: pre-line; }
.event-flyer { align-self: flex-start; margin-top: 0.2rem; padding: 0.4em 1em; font-size: 0.85rem; }

/* ---------- Admin event review queue ---------- */
.admin-gate { display: flex; gap: 0.6rem; align-items: flex-start; max-width: 640px; margin: 1.5rem auto; background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--radius); padding: 1rem 1.2rem; color: var(--ink-700); }
.admin-gate i { color: #c2620e; font-size: 1.3rem; margin-top: 0.1rem; }
.admin-gate code { background: var(--cream-100); padding: 0.1em 0.4em; border-radius: 4px; font-size: 0.9em; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.5rem 0 1.25rem; }
.admin-tabs .chip { cursor: pointer; }
.admin-refresh { margin-left: auto; padding: 0.4em 1em; font-size: 0.85rem; }
.admin-bulkbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; background: var(--cream-100); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 1rem; margin-bottom: 1.25rem; }
.admin-count { font-family: var(--font-ui); font-size: 0.88rem; color: var(--text-secondary); }
.admin-bulk-actions { display: flex; gap: 0.5rem; margin-left: auto; flex-wrap: wrap; }
.admin-bulk-actions .btn { padding: 0.45em 1.1em; font-size: 0.88rem; }
.admin-list { display: flex; flex-direction: column; gap: 1.1rem; }
.admin-card { background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.2rem 1.35rem; box-shadow: var(--shadow-sm); }
.admin-card-head { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.admin-card-head input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: var(--teal-700); }
.admin-card-head h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--text-primary); margin-right: auto; }
.admin-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.5rem 1.25rem; margin-bottom: 0.8rem; }
.admin-field { font-size: 0.92rem; color: var(--ink-700); display: flex; flex-direction: column; }
.admin-field-label { font-family: var(--font-ui); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-secondary); }
.admin-block { margin-bottom: 0.8rem; }
.admin-block strong { display: block; font-family: var(--font-ui); font-size: 0.8rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 0.2rem; }
.admin-block p { font-size: 0.95rem; line-height: 1.5; color: var(--ink-700); white-space: pre-line; }
.admin-private { background: var(--leaf-100); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.6rem 0.8rem; }
.admin-flyer { margin-bottom: 0.8rem; }
.admin-flyer-input { width: 100%; }
.admin-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.admin-actions .btn { padding: 0.45em 1.3em; font-size: 0.9rem; }
.tag-pending { background: #fbe7dc; color: #c2620e; }
.tag-approved { background: var(--leaf-100); color: var(--leaf-700); }
.tag-denied { background: var(--cream-200); color: var(--text-secondary); }

/* ---------- Messaging ---------- */
.btn-sm { padding: 0.35em 0.9em; font-size: 0.82rem; }
.team-email { margin-top: 0.7rem; font-size: 0.85rem; }
.team-email a { color: var(--teal-700); word-break: break-word; }
.team-email i { color: var(--teal-700); margin-right: 0.2rem; }
.petition-count { font-size: 1.05rem; color: var(--text-secondary); margin-top: 0.9rem; }
.petition-count strong { font-family: var(--font-heading); font-size: 1.7rem; color: var(--teal-700); margin-right: 0.25rem; }
.msg-wrap { display: flex; gap: 1rem; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-surface); box-shadow: var(--shadow-sm); height: 72vh; min-height: 460px; }
.msg-list { width: 320px; flex-shrink: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow-y: auto; }
.msg-list-head { font-family: var(--font-ui); font-weight: 700; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg-surface); }
.msg-empty { padding: 1.1rem; color: var(--text-secondary); font-size: 0.92rem; }
.conv-item { display: block; width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid var(--line); padding: 0.85rem 1.1rem; cursor: pointer; font-family: var(--font-ui); }
.conv-item:hover { background: var(--cream-50); }
.conv-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.conv-name { font-weight: 700; color: var(--text-primary); }
.conv-time { font-size: 0.75rem; color: var(--text-secondary); flex-shrink: 0; }
.conv-item-title { font-size: 0.85rem; color: var(--teal-700); margin-top: 0.1rem; }
.conv-preview { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-closed { display: inline-block; margin-top: 0.3rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); background: var(--cream-200); padding: 0.1rem 0.45rem; border-radius: var(--radius-pill); }
.msg-thread { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.msg-thread-empty { margin: auto; text-align: center; color: var(--text-secondary); }
.msg-thread-empty i { font-size: 2.2rem; display: block; margin-bottom: 0.5rem; color: var(--line); }
.msg-thread-active { display: flex; flex-direction: column; height: 100%; }
.msg-thread-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
.msg-thread-title { display: flex; flex-direction: column; margin-right: auto; min-width: 0; }
.msg-thread-title strong { color: var(--text-primary); }
.msg-thread-title .muted { font-size: 0.82rem; }
.msg-thread-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }
.msg-back { display: none; background: none; border: none; cursor: pointer; color: var(--teal-700); font-size: 1.2rem; padding: 0.2rem; }
.msg-safety { display: flex; gap: 0.45rem; align-items: flex-start; font-size: 0.82rem; line-height: 1.4; color: var(--ink-700); background: var(--leaf-100); border-bottom: 1px solid var(--line); padding: 0.5rem 1rem; }
.msg-safety i { color: var(--leaf-700); margin-top: 0.1rem; flex-shrink: 0; }
.msg-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; background: var(--cream-50); }
.msg-bubble { max-width: 78%; padding: 0.55rem 0.8rem; border-radius: 14px; font-size: 0.95rem; line-height: 1.4; }
.msg-bubble .msg-text { white-space: pre-wrap; word-wrap: break-word; }
.msg-bubble .msg-time { font-size: 0.68rem; opacity: 0.7; margin-top: 0.2rem; text-align: right; }
.msg-bubble.mine { align-self: flex-end; background: var(--teal-700); color: #fff; border-bottom-right-radius: 4px; }
.msg-bubble.theirs { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--text-primary); border-bottom-left-radius: 4px; }
.msg-compose { display: flex; gap: 0.5rem; padding: 0.7rem; border-top: 1px solid var(--line); background: var(--bg-surface); }
.msg-compose textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.6rem 0.8rem; font-family: var(--font-body, inherit); font-size: 0.95rem; max-height: 120px; }
.msg-compose .btn { flex-shrink: 0; }
#composeNotice { padding: 0 0.7rem 0.6rem; }
@media (max-width: 720px) {
  .msg-wrap { height: 78vh; }
  .msg-list { width: 100%; border-right: none; }
  .msg-thread { display: none; }
  .msg-wrap.show-thread .msg-list { display: none; }
  .msg-wrap.show-thread .msg-thread { display: flex; }
  .msg-back { display: inline-block; }
}


/* ---------- County resource pages (generated by tools/build_places.py) ---------- */
.item-card h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--text-primary); }
.item-card .res-addr { font-size: 0.9rem; color: var(--text-secondary); }
.item-card .res-addr a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--line); }
.item-card .res-addr a:hover { color: var(--teal-700); border-bottom-color: var(--teal-600); }
.item-card .res-hours { font-family: var(--font-ui); font-size: 0.78rem; color: var(--text-secondary); line-height: 1.5; }
.item-card .res-eligibility { font-size: 0.88rem; }

.res-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); align-items: start; }
.cat-section { scroll-margin-top: 90px; }
.cat-head h2 { font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; color: var(--text-primary); }
.cat-head .muted { font-family: var(--font-ui); font-size: 0.78rem; }
.res-jump { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.5rem 0 2.25rem; }
.res-jump .res-link span { opacity: 0.65; font-size: 0.75rem; }

.county-index { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem 1.25rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.county-index li { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; padding: 0.55rem 0.75rem; background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.county-index a { font-weight: 600; text-decoration: none; color: var(--teal-700); }
.county-index a:hover { text-decoration: underline; }
.county-index .muted { font-family: var(--font-ui); font-size: 0.78rem; flex-shrink: 0; }

/* ---------- Two doors ---------- */
/* The closing band on county and state pages is read by two different people:
   a family who needs help today, and someone who wants to help families here.
   One shared call to action served neither of them well. */
.two-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; text-align: left; margin-top: 2.25rem; }
.two-doors .door { background: rgba(255,255,255,0.06); border: 1px solid var(--line-dk); border-radius: var(--radius); padding: 1.9rem; display: flex; flex-direction: column; }
.two-doors .door h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 0.6rem; }
.two-doors .door p { color: var(--text-on-dark-muted); margin: 0 0 1.6rem; font-size: 0.97rem; }
.two-doors .door .cta-actions { justify-content: flex-start; margin-top: auto; }
.doors-more { margin-top: 1.75rem; font-family: var(--font-ui); font-size: 0.95rem; }
.doors-more a { color: var(--orange-400); }
@media (max-width: 760px) { .two-doors { grid-template-columns: 1fr; } }


/* ---------- Category disclosures ---------- */
/* Each category shows three listings, then offers the rest. Keeps a county
   page readable as a menu of categories instead of one endless column. */
.cat-more { margin-top: 1.15rem; }
.cat-more > summary { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; list-style: none; }
.cat-more > summary::-webkit-details-marker { display: none; }
.cat-more > summary::after { content: "A"; display: inline-block; transform: rotate(90deg); font-size: 1.1em; line-height: 1; }
.cat-more[open] > summary::after { transform: rotate(-90deg); }
.cat-more[open] > summary .more-open { display: none; }
.cat-more:not([open]) > summary .more-close { display: none; }
.cat-more > .res-grid { margin-top: 1.15rem; }
/* Without JavaScript the foot button cannot close anything, so it stays hidden
   and the summary above remains the only control. */
.cat-collapse { display: none; margin-top: 1.15rem; }
.js .cat-more[open] .cat-collapse { display: inline-flex; }


/* ---------- County picker ---------- */
/* Two questions and a button. The button sits on the baseline with the two
   fields on a desktop and goes full width once they stack. */
.county-picker { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; align-items: end; margin-top: 2rem; }
.county-picker .field { margin: 0; }
.county-picker .btn { height: 3rem; }
.picker-status { font-family: var(--font-ui); font-size: 0.95rem; color: var(--text-secondary); margin-top: 1rem; min-height: 1.4em; }
@media (max-width: 760px) {
  .county-picker { grid-template-columns: 1fr; }
  .county-picker .btn { width: 100%; }
}


/* ---------- Locked form ---------- */
/* The event application is visible while signed out, so a host can read what
   will be asked before making an account, but nothing in it can be filled in. */
.form-locked { opacity: 0.55; }
.form-locked input, .form-locked select, .form-locked textarea, .form-locked button { cursor: not-allowed; }


/* ---------- Your applications ---------- */
/* Shown to a signed-in host above the application form, so a submission does
   not disappear into a confirmation message. */
.my-applications { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.app-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1rem; }
.app-card { background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.app-card h4 { margin: 0.6rem 0 0.35rem; }
.app-meta { font-family: var(--font-ui); font-size: 0.92rem; color: var(--text-secondary); margin: 0 0 0.5rem; }
.app-note { font-size: 0.95rem; margin: 0 0 0.5rem; }
.app-status { font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; padding: 0.28rem 0.7rem; border-radius: 999px; display: inline-block; }
.app-pending { background: rgba(232,141,96,0.16); color: #8a4a22; }
.app-approved { background: rgba(140,172,65,0.18); color: #4a5c1d; }
.app-denied { background: rgba(120,120,120,0.16); color: #4a4a4a; }

/* ---------- Email signup ---------- */
/* Popup (js/subscribe.js). Centered card on desktop, bottom sheet on phones
   so it never covers the whole screen. Built by JS, so nothing here renders
   without scripting. */
.sub-pop { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.sub-pop[hidden] { display: none; }
.sub-pop-backdrop { position: absolute; inset: 0; background: rgba(4,59,61,0.55); opacity: 0; transition: opacity 0.25s ease; }
.sub-pop.is-open .sub-pop-backdrop { opacity: 1; }
.sub-pop-card {
  position: relative; z-index: 1; width: 100%; max-width: 460px;
  max-height: calc(100vh - 2rem); overflow-y: auto;
  background: var(--bg-surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  opacity: 0; transform: translateY(14px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.sub-pop.is-open .sub-pop-card { opacity: 1; transform: none; }
.sub-pop-title { font-size: clamp(1.35rem, 3.4vw, 1.7rem); line-height: 1.25; margin: 0.5rem 0 0; }
.sub-pop-body { color: var(--text-secondary); font-size: 0.97rem; line-height: 1.55; margin: 0.75rem 0 1.25rem; }
.sub-pop-card .field { margin-bottom: 0.9rem; }
.sub-pop-x {
  position: absolute; top: 0.6rem; right: 0.6rem; width: 2.2rem; height: 2.2rem;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 50%; cursor: pointer;
  color: var(--text-secondary); font-size: 1.15rem; line-height: 1;
}
.sub-pop-x:hover { background: var(--bg-warm); color: var(--ink-900); }
.sub-pop-no {
  display: block; width: 100%; margin: 0.6rem 0 0; padding: 0.5rem;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-ui); font-size: 0.9rem; color: var(--text-secondary);
  text-decoration: underline;
}
.sub-pop-no:hover { color: var(--ink-900); }
.sub-pop-fine { margin: 0.9rem 0 0; font-size: 0.8rem; line-height: 1.45; }

@media (max-width: 560px) {
  .sub-pop { align-items: flex-end; padding: 0; }
  .sub-pop-card { max-width: none; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 0; max-height: 88vh; }
}
@media (prefers-reduced-motion: reduce) {
  .sub-pop-backdrop, .sub-pop-card { transition: none; }
  .sub-pop-card { transform: none; }
}

/* Inline signup band. Always present, never interrupts, and it is the only
   signup on the pages where someone is looking for help right now. */
.sub-band { background: var(--bg-warm); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.25rem); }
.sub-band h2, .sub-band h3 { margin: 0.4rem 0 0; }
.sub-band p { color: var(--text-secondary); margin: 0.6rem 0 1.1rem; }
.sub-band form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; }
.sub-band .field { margin: 0; flex: 1 1 220px; }
.sub-band button[type="submit"] { flex: 0 0 auto; }
.sub-band [data-subscribe-status] { flex: 1 1 100%; margin: 0; }
.sub-band .sub-pop-fine { flex: 1 1 100%; margin: 0.2rem 0 0; }

/* ---------- Newsletter admin ---------- */
.ed-layout { display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: 1.5rem; align-items: start; margin-top: 1rem; }
.ed-list { display: grid; gap: 0.5rem; }
.ed-row {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem;
  width: 100%; text-align: left; cursor: pointer;
  background: var(--bg-surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.85rem 1rem;
  font-family: var(--font-ui); font-size: 0.92rem; color: var(--ink-900);
}
.ed-row:hover { border-color: var(--teal-600); }
.ed-row.is-current { border-color: var(--teal-700); box-shadow: inset 3px 0 0 var(--teal-700); }
.ed-row-date { font-weight: 600; }
.ed-editor { background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 1.75rem); }
.ed-preview { width: 100%; height: 620px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #f4f4ef; }
.ed-summary { font-family: var(--font-ui); font-weight: 600; font-size: 0.92rem; cursor: pointer; color: var(--teal-700); }

@media (max-width: 780px) {
  .ed-layout { grid-template-columns: 1fr; }
  .ed-preview { height: 460px; }
}
