/* =============================================================================
   NDV SHELL — site-wide nav, footer, and publication components
   Path A publication rebuild, 2026-07-21.

   Canonical NDV palette. Inter only. Olive accent (#6B745E), bright #8B9474
   reserved for CTA fills. NO blue/navy/purple/gold/red anywhere, including
   links and focus rings. NO gradients, NO fintech chrome.

   Linked as /assets/ndv-shell.css?v=1 — bump ?v when this file changes.
   Loaded by: /, state hubs, /brief-archive, /corrections, /financing-questions,
   and (from Phase 3) every remaining public page.

   Pages retain their own inline <style> for page-specific body content; this
   file owns the shell (header, footer) plus the publication component set.
   ============================================================================= */

:root {
  --ndv-bg:            #F4F5F3;
  --ndv-bg-soft:       #EEF0EC;
  --ndv-charcoal:      #1F2326;
  --ndv-deep:          #141719;
  --ndv-olive:         #6B745E;
  --ndv-olive-bright:  #8B9474;
  --ndv-olive-hover:   #5a6350;
  --ndv-olive-light:   rgba(107,116,94,0.10);
  --ndv-olive-tint:    rgba(139,148,116,0.12);
  --ndv-muted:         rgba(31,35,38,0.62);
  --ndv-text-secondary:#5b6158;
  --ndv-text-muted:    #8b9089;
  --ndv-border:        rgba(31,35,38,0.10);
  --ndv-border-olive:  rgba(107,116,94,0.20);
  --ndv-card-bg:       #FFFFFF;
  --ndv-radius:        4px;
  --ndv-radius-lg:     8px;
  --ndv-ring:          0 0 0 3px rgba(107,116,94,0.28);
  --ndv-shell-max:     1120px;
}

/* ---------------------------------------------------------------- Utility strip */
.ndv-utility {
  background: var(--ndv-bg-soft);
  border-bottom: 1px solid var(--ndv-border);
  font-size: 12.5px;
  color: var(--ndv-muted);
}
.ndv-utility-inner {
  max-width: var(--ndv-shell-max);
  margin: 0 auto;
  padding: 9px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ndv-utility a { color: var(--ndv-olive); text-decoration: none; font-weight: 500; white-space: nowrap; }
.ndv-utility a:hover { color: var(--ndv-olive-hover); text-decoration: underline; }
@media (max-width: 640px) {
  .ndv-utility-inner { padding: 8px 18px; font-size: 11.5px; }
  .ndv-utility-note { line-height: 1.4; }
}

/* ---------------------------------------------------------------- Header / nav */
.ndv-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ndv-border);
}
.ndv-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--ndv-shell-max); margin: 0 auto;
  padding: 0 32px; height: 76px; gap: 20px;
}
.ndv-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.ndv-logo img { width: 38px; height: 38px; object-fit: contain; display: block; }
.ndv-logo-text { display: flex; flex-direction: column; }
.ndv-logo-name {
  font-size: 0.95rem; font-weight: 700; color: var(--ndv-charcoal);
  letter-spacing: -0.01em; line-height: 1.2;
}
.ndv-logo-sub {
  font-size: 0.58rem; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: rgba(31,35,38,0.55); line-height: 1.25;
}

/* Nav links + dropdowns. No JS: dropdowns open on hover and on keyboard focus
   via :focus-within, so tabbing through a group reveals its children. */
.ndv-nav-links { display: flex; align-items: center; gap: 4px; }
.ndv-nav-item { position: relative; }
.ndv-nav-top {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 12px; font-size: 14px; font-weight: 500;
  color: var(--ndv-muted); text-decoration: none; white-space: nowrap;
  border-radius: var(--ndv-radius); transition: color 0.15s, background 0.15s;
}
.ndv-nav-top::after {
  content: ""; width: 5px; height: 5px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: 0.55;
}
.ndv-nav-item:hover .ndv-nav-top,
.ndv-nav-item:focus-within .ndv-nav-top { color: var(--ndv-charcoal); background: var(--ndv-olive-light); }
.ndv-nav-top:focus-visible { outline: none; box-shadow: var(--ndv-ring); }

.ndv-dropdown {
  position: absolute; top: calc(100% + 2px); left: 0; min-width: 232px;
  background: #fff; border: 1px solid var(--ndv-border);
  border-radius: var(--ndv-radius-lg); box-shadow: 0 10px 28px rgba(31,35,38,0.10);
  padding: 6px; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.13s, transform 0.13s, visibility 0.13s;
}
.ndv-nav-item:hover .ndv-dropdown,
.ndv-nav-item:focus-within .ndv-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.ndv-dropdown a {
  padding: 9px 12px; font-size: 13.5px; font-weight: 500; line-height: 1.35;
  color: var(--ndv-text-secondary); text-decoration: none;
  border-radius: var(--ndv-radius); transition: background 0.12s, color 0.12s;
}
.ndv-dropdown a:hover { background: var(--ndv-olive-light); color: var(--ndv-charcoal); }
.ndv-dropdown a:focus-visible { outline: none; box-shadow: var(--ndv-ring); }

.ndv-nav-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.ndv-cta-btn {
  display: inline-block; padding: 10px 18px; background: var(--ndv-olive-bright);
  color: #fff; border-radius: var(--ndv-radius); font-size: 14px; font-weight: 600;
  text-decoration: none; white-space: nowrap; transition: background 0.12s;
}
.ndv-cta-btn:hover { background: var(--ndv-olive-hover); }
.ndv-cta-btn:focus-visible { outline: none; box-shadow: var(--ndv-ring); }

/* Mobile disclosure — checkbox toggle, no JS. Hidden entirely on desktop. */
.ndv-menu-toggle { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.ndv-menu-btn { display: none; }

@media (max-width: 960px) {
  .ndv-nav-inner { padding: 0 18px; height: 66px; gap: 12px; flex-wrap: wrap; }
  .ndv-menu-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 40px; height: 40px; padding: 0 9px; cursor: pointer;
    border: 1px solid var(--ndv-border); border-radius: var(--ndv-radius);
    margin-left: auto; order: 2;
  }
  .ndv-menu-btn span { display: block; height: 1.5px; background: var(--ndv-charcoal); border-radius: 2px; }
  .ndv-nav-actions { order: 3; }
  .ndv-nav-links {
    order: 4; display: none; width: 100%; flex-direction: column;
    align-items: stretch; gap: 0; padding: 4px 0 18px;
    border-top: 1px solid var(--ndv-border);
  }
  .ndv-menu-toggle:checked ~ .ndv-nav-links { display: flex; }
  .ndv-nav-top { padding: 13px 4px 6px; font-size: 12px; font-weight: 600; color: var(--ndv-olive);
                 text-transform: uppercase; letter-spacing: 0.08em; }
  .ndv-nav-top::after { display: none; }
  .ndv-nav-item:hover .ndv-nav-top, .ndv-nav-item:focus-within .ndv-nav-top { background: transparent; color: var(--ndv-olive); }
  .ndv-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: none; box-shadow: none; background: transparent; padding: 0 0 0 4px;
    min-width: 0;
  }
  .ndv-dropdown a { padding: 8px 0; font-size: 15px; }
}
@media (max-width: 400px) { .ndv-logo-sub { display: none; } }

/* ---------------------------------------------------------------------- Footer */
.ndv-footer {
  background: var(--ndv-deep); color: rgba(255,255,255,0.72);
  padding: 56px 0 32px; margin-top: 80px;
}
.ndv-footer-inner { max-width: var(--ndv-shell-max); margin: 0 auto; padding: 0 32px; }
.ndv-footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(5, 1fr);
  gap: 32px 24px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.ndv-footer-brand-name { font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.ndv-footer-brand-tag { margin-top: 8px; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.55); max-width: 250px; }
.ndv-footer-col { display: flex; flex-direction: column; gap: 9px; }
.ndv-footer-col-hd {
  font-size: 11px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-bottom: 3px;
}
.ndv-footer-col a {
  font-size: 13.5px; color: rgba(255,255,255,0.72); text-decoration: none; line-height: 1.4;
  transition: color 0.12s;
}
.ndv-footer-col a:hover { color: #fff; }
.ndv-footer-col a:focus-visible { outline: none; box-shadow: var(--ndv-ring); border-radius: 2px; }
.ndv-footer-legal {
  padding-top: 26px; font-size: 12.5px; line-height: 1.7; color: rgba(255,255,255,0.55);
}
.ndv-footer-legal .ndv-sep { padding: 0 7px; color: rgba(255,255,255,0.28); }
.ndv-footer-pub { margin-top: 10px; font-size: 11.5px; color: rgba(255,255,255,0.40); }
.ndv-footer-note { margin-top: 10px; font-size: 11.5px; line-height: 1.65; color: rgba(255,255,255,0.40); max-width: 720px; }
@media (max-width: 900px) { .ndv-footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) {
  .ndv-footer-inner { padding: 0 18px; }
  .ndv-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
  .ndv-footer { padding: 40px 0 28px; margin-top: 56px; }
}

/* =============================================================================
   PUBLICATION COMPONENTS — shared by homepage, state hubs, archive, policy pages
   ============================================================================= */

.ndv-wrap { max-width: var(--ndv-shell-max); margin: 0 auto; padding: 0 32px; }
.ndv-wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 560px) { .ndv-wrap, .ndv-wrap-narrow { padding: 0 18px; } }

.ndv-eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ndv-olive); margin-bottom: 14px;
}
.ndv-section { padding: 68px 0; }
.ndv-section-alt { background: var(--ndv-bg-soft); }
.ndv-section-head { max-width: 640px; margin-bottom: 34px; }
.ndv-section-head h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); margin-bottom: 12px; letter-spacing: -0.02em; line-height: 1.18; }
.ndv-section-head p { font-size: 1rem; line-height: 1.65; color: var(--ndv-text-secondary); }

/* Cards */
.ndv-card {
  background: var(--ndv-card-bg); border: 1px solid var(--ndv-border);
  border-radius: var(--ndv-radius-lg); padding: 24px;
}
.ndv-card-link {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.ndv-card-link:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(31,35,38,0.08); border-color: var(--ndv-border-olive); }
.ndv-card-link:focus-visible { outline: none; box-shadow: var(--ndv-ring); }
.ndv-card h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: var(--ndv-charcoal); }
.ndv-card p { font-size: 0.92rem; line-height: 1.6; color: var(--ndv-text-secondary); }
.ndv-card-label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ndv-olive);
}
.ndv-card-meta { font-size: 0.78rem; color: var(--ndv-text-muted); margin-top: auto; padding-top: 6px; }
.ndv-arrow { font-size: 0.88rem; font-weight: 600; color: var(--ndv-olive); margin-top: 4px; }

.ndv-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ndv-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ndv-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .ndv-grid-4, .ndv-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ndv-grid-2, .ndv-grid-3, .ndv-grid-4 { grid-template-columns: 1fr; } }

/* beehiiv embed slot — the v3 loader hydrates [data-beehiiv-form] with the form.
   Height is managed by beehiiv; we only constrain measure. */
/* beehiiv embed — plain iframe, no JS loader. The v3 loader never hydrated in
   production (verified: /florida and /brief both left an empty 52px slot with
   zero children), so every subscribe surface is now a direct iframe.
   The form draws its own heading in BLACK on a transparent background, so it
   needs a light surface underneath — including on the dark signup panel.
   Heights are fixed because the embed does not report its size to the parent.
   Measured deepest content bottom by rendered width:
     490px -> 422    340px -> 482    270px -> 566
   body.scrollHeight under-reports this form; measuring the deepest element is
   what these are based on. Undersizing clips the Subscribe button. */
.ndv-embed-card {
  max-width: 480px; width: 100%; background: #fff;
  border: 1px solid var(--ndv-border); border-radius: var(--ndv-radius-lg);
  padding: 6px; overflow: hidden;
}
.ndv-embed-card-wide { max-width: none; }
.ndv-embed-frame { display: block; width: 100%; height: 440px; border: 0; }
@media (max-width: 620px) { .ndv-embed-frame { height: 500px; } }
@media (max-width: 460px) { .ndv-embed-frame { height: 590px; } }
.ndv-form-note { margin-top: 12px; font-size: 12.5px; color: var(--ndv-text-muted); }

/* Signup panel (final conversion + inline modules) */
.ndv-signup-panel {
  background: var(--ndv-deep); border-radius: var(--ndv-radius-lg);
  padding: 48px 44px; color: #fff;
}
.ndv-signup-panel h2 { color: #fff; font-size: clamp(1.4rem, 2.8vw, 1.95rem); margin-bottom: 14px; letter-spacing: -0.02em; }
.ndv-signup-panel p { color: rgba(255,255,255,0.66); font-size: 1rem; line-height: 1.65; max-width: 560px; margin-bottom: 26px; }
.ndv-signup-panel .ndv-form-note { color: rgba(255,255,255,0.42); }
@media (max-width: 560px) { .ndv-signup-panel { padding: 32px 22px; } }

.ndv-signup-inline {
  background: var(--ndv-olive-tint); border: 1px solid var(--ndv-border-olive);
  border-radius: var(--ndv-radius-lg); padding: 28px;
}
.ndv-signup-inline h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; color: var(--ndv-charcoal); }
.ndv-signup-inline p { font-size: 0.92rem; color: var(--ndv-text-secondary); margin-bottom: 18px; }

/* Dated change log ("What's changing" / corrections log) */
.ndv-log { border-top: 1px solid var(--ndv-border); }
.ndv-log-row {
  display: grid; grid-template-columns: 128px 1fr; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid var(--ndv-border); align-items: start;
}
.ndv-log-date { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ndv-olive); padding-top: 2px; }
.ndv-log-body { font-size: 0.94rem; line-height: 1.6; color: var(--ndv-text-secondary); }
.ndv-log-body strong { color: var(--ndv-charcoal); font-weight: 600; }
.ndv-log-body a { color: var(--ndv-olive); text-decoration: underline; text-underline-offset: 2px; }
.ndv-log-empty { padding: 26px 0; font-size: 0.94rem; color: var(--ndv-text-muted); border-bottom: 1px solid var(--ndv-border); }
@media (max-width: 620px) { .ndv-log-row { grid-template-columns: 1fr; gap: 5px; } }

/* Principles list */
.ndv-principle { display: flex; flex-direction: column; gap: 7px; }
.ndv-principle h3 { font-size: 0.98rem; font-weight: 600; color: var(--ndv-charcoal); }
.ndv-principle p { font-size: 0.9rem; line-height: 1.6; color: var(--ndv-text-secondary); }

/* Quiet outbound route — deliberately plain text, never a CTA panel */
.ndv-quiet-route {
  border-top: 1px solid var(--ndv-border); padding: 34px 0 0;
  font-size: 0.92rem; line-height: 1.7; color: var(--ndv-text-muted); max-width: 720px;
}
.ndv-quiet-route a { color: var(--ndv-olive); text-decoration: underline; text-underline-offset: 2px; }
.ndv-ext-icon { display: inline-block; width: 0.72em; height: 0.72em; margin-left: 3px; vertical-align: baseline; }

/* Signup band — dedicated subscribe section below hero */
.ndv-signup-band { padding: 40px 0 52px; background: var(--ndv-bg-soft); text-align: center; }
.ndv-signup-band-line {
  font-size: clamp(1.05rem, 2.2vw, 1.22rem); line-height: 1.55;
  color: var(--ndv-charcoal); font-weight: 500; max-width: 580px;
  margin: 0 auto 24px;
}
.ndv-signup-band .ndv-embed-card { margin: 0 auto; }
.ndv-signup-band .ndv-form-note { text-align: center; }

/* State coverage note below state cards */
.ndv-state-note {
  margin-top: 22px; font-size: 0.9rem; line-height: 1.6;
  color: var(--ndv-text-muted); text-align: center;
}

/* Article-ish body for the smaller new pages */
.ndv-prose h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 16px; }
.ndv-prose h2 { font-size: 1.25rem; letter-spacing: -0.01em; margin: 34px 0 12px; }
.ndv-prose p { font-size: 1rem; line-height: 1.75; color: var(--ndv-text-secondary); margin-bottom: 16px; }
.ndv-prose ul { margin: 0 0 18px 20px; }
.ndv-prose li { font-size: 1rem; line-height: 1.7; color: var(--ndv-text-secondary); margin-bottom: 8px; }
.ndv-prose a { color: var(--ndv-olive); text-underline-offset: 2px; }
.ndv-reviewed { font-size: 0.8rem; color: var(--ndv-text-muted); margin-top: 28px; }
