/* =============================================================================
   The Duty Station Brief — shared funnel stylesheet
   Canonical NDV palette. Inter only. Olive accent (#6B745E) with the bright
   #8B9474 variant reserved for CTAs. NO blue/navy/purple/gold/red anywhere,
   including links and focus rings.
   Used by: /brief, /brief/{fl,oh,tn,md}, /brief/{state}/thanks
   ============================================================================= */

:root {
  --ndv-bg:            #F4F5F3;
  --ndv-bg-dark:       #1F2326;
  --ndv-text:          #1F2326;
  --ndv-text-secondary:#5b6158;
  --ndv-text-muted:    #8b9089;
  --ndv-olive:         #6B745E;   /* accent */
  --ndv-olive-bright:  #8B9474;   /* CTA fill */
  --ndv-olive-hover:   #5a6350;   /* CTA hover / active olive */
  --ndv-olive-light:   rgba(107,116,94,0.10);
  --ndv-olive-tint:    rgba(139,148,116,0.12);
  --ndv-border:        rgba(107,116,94,0.2);
  --ndv-card-bg:       #FFFFFF;
  --ndv-radius:        4px;
  --ndv-radius-lg:     8px;
  --ndv-ring:          0 0 0 3px rgba(107,116,94,0.28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ndv-text);
  background: var(--ndv-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: var(--ndv-text); }
p { color: var(--ndv-text-secondary); }
a { color: var(--ndv-olive); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

/* ---------------------------------------------------------------- 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 rgba(31,35,38,0.06); }
.ndv-nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1080px; margin: 0 auto; padding: 0 32px; height: 80px; gap: 24px; }
.ndv-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.ndv-logo img { width: 40px; height: 40px; object-fit: contain; display: block; }
.ndv-logo-text { display: flex; flex-direction: column; }
.ndv-logo-name { font-size: 0.95rem; font-weight: 700; color: #1F2326; letter-spacing: -0.01em; line-height: 1.2; }
.ndv-logo-sub { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(31,35,38,0.55); line-height: 1.2; }
.ndv-nav-links { display: flex; align-items: center; gap: 24px; }
.ndv-nav-links a { font-size: 14px; font-weight: 500; color: rgba(31,35,38,0.62); text-decoration: none; white-space: nowrap; transition: color 0.15s; }
.ndv-nav-links a:hover { color: #1F2326; }
.ndv-nav-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.ndv-cta-btn { display: inline-block; padding: 10px 20px; background: var(--ndv-olive-bright); color: #fff; border-radius: var(--ndv-radius); font-size: 14px; font-weight: 600; text-decoration: none; transition: background 0.12s; }
.ndv-cta-btn:hover { background: var(--ndv-olive-hover); }
@media(max-width: 768px) {
  .ndv-nav-inner { padding: 0 18px; height: 68px; }
  .ndv-nav-links { display: none; }
}

/* ------------------------------------------------------------- Shared blocks */
.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; }

/* CTA buttons — bright olive fill, never blue */
.cta-primary {
  display: inline-block; padding: 15px 26px; background: var(--ndv-olive-bright); color: #fff;
  border: none; border-radius: var(--ndv-radius); font-family: inherit; font-weight: 600;
  font-size: 1.02rem; cursor: pointer; transition: background 0.12s; text-align: center;
  text-decoration: none; letter-spacing: -0.01em;
}
.cta-primary:hover { background: var(--ndv-olive-hover); }
.cta-primary:focus-visible { outline: none; box-shadow: var(--ndv-ring); }

/* beehiiv embed slot — the v3 loader hydrates [data-beehiiv-form] with the form.
   Keep a max-width so the embed matches the hero measure; beehiiv sizes its own height. */
.beehiiv-slot { max-width: 480px; width: 100%; min-height: 52px; }
.signup-card .beehiiv-slot { max-width: none; }
.brief-form-note { margin-top: 12px; font-size: 12.5px; color: var(--ndv-text-muted); }

/* ------------------------------------------------------------- Hero (generic) */
.brief-hero { padding: 72px 0 56px; }
.brief-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }
.brief-hero .brief-lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--ndv-text-secondary); max-width: 620px; margin-bottom: 32px; }

/* ----------------------------------------------------------------- State tiles */
.state-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-bottom: 12px; }
.state-tile {
  display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; text-decoration: none;
  background: var(--ndv-olive-tint); border: 1px solid var(--ndv-border); border-radius: var(--ndv-radius-lg);
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.state-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(31,35,38,0.08); border-color: var(--ndv-olive); }
.state-tile:focus-visible { outline: none; box-shadow: var(--ndv-ring); }
.state-tile .abbr { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ndv-olive); line-height: 1; }
.state-tile .tile-hook { font-size: 0.9rem; color: var(--ndv-text-secondary); line-height: 1.45; }
@media(max-width: 860px) { .state-tiles { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 420px) { .state-tiles { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- Content pillars */
.pillars { padding: 64px 0 8px; }
.pillars-head { max-width: 620px; margin-bottom: 36px; }
.pillars-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
.pillar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.pillar { display: flex; gap: 16px; align-items: flex-start; }
.pillar-icon { flex: 0 0 40px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--ndv-olive-light); border-radius: var(--ndv-radius); color: var(--ndv-olive); }
.pillar-icon svg { width: 22px; height: 22px; }
.pillar h3 { font-size: 1.08rem; margin-bottom: 6px; }
.pillar p { font-size: 0.95rem; color: var(--ndv-text-secondary); line-height: 1.6; margin: 0; }
@media(max-width: 720px) { .pillar-grid { grid-template-columns: 1fr; gap: 24px; } }

/* --------------------------------------------------------- Playbook + author */
.brief-showcase { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; padding: 64px 0; }
.playbook-cover {
  width: 100%; max-width: 320px; aspect-ratio: 3 / 4; margin: 0 auto; display: block;
  border-radius: var(--ndv-radius-lg); border: 1px solid var(--ndv-border);
  box-shadow: 0 12px 32px rgba(31,35,38,0.14); object-fit: cover; background: var(--ndv-olive-tint);
}
.playbook-cover-slot {
  width: 100%; max-width: 320px; aspect-ratio: 3 / 4; margin: 0 auto; display: flex;
  align-items: center; justify-content: center; text-align: center; padding: 24px;
  border-radius: var(--ndv-radius-lg); border: 1px solid var(--ndv-border);
  box-shadow: 0 12px 32px rgba(31,35,38,0.14); background: var(--ndv-olive-tint);
  color: var(--ndv-olive); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3;
}
.author { display: flex; gap: 18px; align-items: center; margin-top: 8px; }
.author-photo { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--ndv-olive-tint); border: 1px solid var(--ndv-border); }
.author-photo-slot { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; background: var(--ndv-olive-tint); border: 1px solid var(--ndv-border); display: flex; align-items: center; justify-content: center; color: var(--ndv-olive); font-weight: 700; font-size: 1.2rem; }
.author-note { font-size: 0.95rem; color: var(--ndv-text-secondary); line-height: 1.6; }
.author-note strong { color: var(--ndv-text); font-weight: 600; }
@media(max-width: 720px) { .brief-showcase { grid-template-columns: 1fr; gap: 32px; } }

/* ------------------------------------------------------------- State signup */
.signup-hero { padding: 64px 0 72px; }
.signup-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: start; }
.signup-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.signup-lede { font-size: 1.05rem; color: var(--ndv-text-secondary); max-width: 560px; margin-bottom: 28px; }
.teasers { list-style: none; padding: 0; margin: 0 0 4px; }
.teasers li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--ndv-olive-light); font-size: 1rem; color: var(--ndv-text); line-height: 1.5; }
.teasers li:last-child { border-bottom: none; }
.teasers .lock { flex: 0 0 20px; width: 20px; height: 20px; color: var(--ndv-olive); margin-top: 2px; }
.signup-card { background: var(--ndv-card-bg); border: 1px solid var(--ndv-border); border-radius: var(--ndv-radius-lg); padding: 28px; box-shadow: 0 2px 12px rgba(31,35,38,0.05); position: sticky; top: 100px; }
.signup-card h2 { font-size: 1.15rem; margin-bottom: 6px; }
.signup-card .card-sub { font-size: 0.9rem; color: var(--ndv-text-secondary); margin-bottom: 20px; }
@media(max-width: 760px) { .signup-grid { grid-template-columns: 1fr; gap: 32px; } .signup-card { position: static; } }

/* ------------------------------------------------------------- Thanks page */
.ty-wrapper { min-height: calc(100vh - 80px - 120px); display: flex; align-items: center; justify-content: center; padding: 72px 24px; }
.ty-card { max-width: 600px; width: 100%; }
.ty-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ndv-olive); margin-bottom: 18px; }
.ty-card h1 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); margin-bottom: 16px; }
.ty-sub { font-size: 1rem; color: var(--ndv-text-secondary); line-height: 1.7; margin-bottom: 18px; }
.ty-spam { font-size: 0.95rem; color: var(--ndv-text-secondary); line-height: 1.7; }
.ty-cadence { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--ndv-olive-light); font-size: 0.95rem; color: var(--ndv-text-secondary); }

/* ----------------------------------------------------------------- Footer B */
.brief-footer { background: var(--ndv-bg-dark); color: rgba(255,255,255,0.5); padding: 32px 24px; }
.brief-footer-inner { max-width: 1080px; margin: 0 auto; text-align: center; }
.brief-footer-legal { font-size: 12.5px; line-height: 1.7; color: rgba(255,255,255,0.5); }
.brief-footer-legal strong { color: rgba(255,255,255,0.72); font-weight: 600; }
