:root {
  --ink: #1a2230;
  --muted: #5b6675;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --line: #e3e8ef;
  --accent: #2c6e8f;     /* lobbying / primary */
  --accent2: #b5532a;    /* mental-health signal */
  --accent3: #7a5ba6;    /* overlap */
  --dark: #102a3a;
  --maxw: 1080px;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
a { color: var(--accent); }

/* ---------- shared top nav (injected by ui.js) ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16,42,58,0.97); backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-nav .wrap {
  max-width: var(--maxw); margin: 0 auto; padding: 0.8rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-nav .brand { color: #fff; font-weight: 800; letter-spacing: 0.16em; text-decoration: none; font-size: 0.95rem; }
.site-nav .links { display: flex; flex-wrap: wrap; gap: 0.15rem; align-items: center; }
.site-nav .links .navlink {
  color: #cfe2ec; text-decoration: none; font: inherit; font-size: 0.9rem;
  padding: 0.4rem 0.7rem; border-radius: 8px; background: none; border: none; cursor: pointer;
}
.site-nav .links .navlink:hover { background: rgba(255,255,255,0.08); color: #fff; }
.site-nav .links .navlink.active { background: var(--accent); color: #fff; }
/* Policymaking dropdown */
.navgroup { position: relative; }
.navgroup .dropdown {
  position: absolute; top: 100%; left: 0; min-width: 170px; margin-top: 2px;
  background: #143548; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px;
  padding: 0.3rem; display: none; flex-direction: column; z-index: 60;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}
.navgroup:hover .dropdown, .navgroup.open .dropdown { display: flex; }
.navgroup .dropdown a {
  color: #cfe2ec; text-decoration: none; font-size: 0.88rem;
  padding: 0.45rem 0.7rem; border-radius: 6px; white-space: nowrap;
}
.navgroup .dropdown a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.navgroup .dropdown a.active { background: var(--accent); color: #fff; }

/* ---------- page header ---------- */
.page-head {
  background: linear-gradient(135deg, #102a3a 0%, #1f4a63 60%, #2c6e8f 100%);
  color: #fff; padding: 3rem 1.5rem;
}
.page-head .wrap { max-width: var(--maxw); margin: 0 auto; }
.page-head .eyebrow { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.75rem; color: #9fc4d6; margin: 0 0 0.5rem; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 0.6rem; }
.page-head p { color: #e7f1f6; max-width: 78ch; margin: 0; }

/* hero (landing only): photo background, muted, with dark overlay for legible text */
.hero { position: relative; overflow: hidden; padding: 3rem 1.5rem 3.25rem; background: #0d202d; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("gettyimages.jpg") center 32% / cover no-repeat;
  filter: saturate(0.6) brightness(0.85);   /* make the picture less vivid */
}
.hero::after {  /* dark gradient: heavier on the left where the text sits */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(13,32,45,0.92) 0%, rgba(13,32,45,0.68) 48%, rgba(13,32,45,0.42) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 1rem; }
.hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 66ch; color: #e7f1f6; }
.hero .badge {
  display: inline-block; margin-top: 1.5rem; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25); color: #eaf3f7;
  padding: 0.45rem 0.9rem; border-radius: 999px; font-size: 0.82rem;
}
/* rotating/typewriter word in the hero title */
.rotate { color: #ffd9a8; white-space: nowrap; }
.rotate::after {
  content: "|"; margin-left: 2px; color: #ffd9a8; font-weight: 400;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* project-goals audience cards */
.goal { border-top: 4px solid var(--accent); }
.goal .who { display: flex; align-items: baseline; gap: 0.5rem; margin: 0 0 0.5rem; }
.goal .n { font-size: 1.4rem; font-weight: 800; color: var(--accent); line-height: 1; }
.goal h3 { margin: 0; font-size: 1.1rem; }

/* project-goal bullet points */
.goal-points { list-style: none; padding: 0; margin: 1.3rem 0 2.4rem; max-width: 74ch; }
.goal-points li { position: relative; padding: 0.7rem 0 0.7rem 1.7rem; border-bottom: 1px solid var(--line); color: var(--ink); }
.goal-points li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.audiences-head { font-size: 1.2rem; margin: 0 0 0.3rem; }

/* gradient color-bar across the pipeline steps (color set inline per step) */
.pipeline .step { border-top: 4px solid var(--accent); }

/* vertical step boxes (data-processing) */
.steps-v { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.6rem; }
.step-box { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--line);
  border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 1.2rem 1.4rem;
  box-shadow: 0 2px 10px rgba(16,42,58,0.08); }
.step-box .n { font-size: 1.5rem; font-weight: 800; color: var(--accent); line-height: 1.1; min-width: 1.4rem; }
.step-box h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.step-box ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.95rem; }
.step-box li { margin: 0.25rem 0; }
.step-box li strong { color: var(--ink); }

/* feedback form (Netlify Forms) */
.feedback-form { max-width: 660px; margin-top: 1.6rem; display: grid; gap: 1rem; }
.feedback-form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.feedback-form input, .feedback-form select, .feedback-form textarea {
  font: inherit; padding: 0.6rem 0.7rem; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--ink); width: 100%;
}
.feedback-form textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn { justify-self: start; background: var(--accent); color: #fff; border: none;
  border-radius: 8px; padding: 0.65rem 1.5rem; font-weight: 700; cursor: pointer; font-size: 0.95rem; }
.btn:hover { background: #245d79; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 3.5rem 1.5rem; }
.section.alt { max-width: none; background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.tight { padding-top: 2.2rem; padding-bottom: 2.4rem; }
.section.tight .feedback-form { margin-top: 1rem; }
.section.alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 1rem; }
.prose { max-width: 80ch; color: var(--muted); font-size: 1.05rem; }
.subhead { font-size: 1.15rem; margin: 2.4rem 0 0.5rem; }

/* CSS-method callout */
.method { background: #eef4f8; border-left: 4px solid var(--accent); border-radius: 10px;
  padding: 0.9rem 1.1rem; margin: 1.4rem 0 0; max-width: 80ch; }
.method .mlabel { display: block; font-weight: 800; color: var(--accent);
  text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.09em; margin-bottom: 0.25rem; }
.method p { margin: 0; font-size: 0.95rem; color: var(--ink); }
.method code { background: #dde9f0; padding: 0.05rem 0.3rem; border-radius: 4px; font-size: 0.85em; }

/* team member cards */
.member p { font-size: 0.95rem; }
.member .member-meta { font-size: 0.82rem; color: var(--muted); margin: 0 0 0.7rem; line-height: 1.35; }
.member .member-methods { font-size: 0.82rem; color: var(--muted); margin: 0.7rem 0 0.3rem; }
.member .member-link { margin: 0; }
.member .member-link a { font-size: 0.85rem; font-weight: 700; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* agency seal grid (2x5) */
.agency-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 1rem; }
@media (max-width: 760px) { .agency-grid { grid-template-columns: repeat(2, 1fr); } }
.agency-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 0.6rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.agency-logo { height: 48px; width: 48px; object-fit: contain; }
.agency-logo-blank { font-size: 2rem; line-height: 48px; }
.agency-card .agency-n { font-size: 1.35rem; font-weight: 800; color: var(--accent); }
.agency-card .agency-name { font-size: 0.78rem; color: var(--muted); line-height: 1.2; }
.prose strong { color: var(--ink); }
.note { font-size: 0.85rem; color: var(--muted); font-style: italic; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-top: 1.8rem; }
.stat { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1rem; text-align: center; }
.stat .num { display: block; font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat .num .emoji { font-size: 1.3rem; font-weight: 400; vertical-align: middle; }
.stat .lab { font-size: 0.85rem; color: var(--muted); }
/* small inline "Suggestion?" pill */
.suggest-btn { display: inline-block; margin-left: 0.4rem; font-size: 0.72rem; font-weight: 700;
  color: var(--accent); background: #eaf1f5; border: 1px solid var(--accent);
  border-radius: 999px; padding: 0.08rem 0.6rem; text-decoration: none; white-space: nowrap; }
.suggest-btn:hover { background: var(--accent); color: #fff; }

/* flip cards (fun facts) */
.stat.flip { background: transparent; border: 0; padding: 0; cursor: pointer; perspective: 900px; }
.stat.flip .flip-inner { position: relative; min-height: 118px; transition: transform 0.5s; transform-style: preserve-3d; }
.stat.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1rem; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.flip-front .flip-hint { position: absolute; top: 0.45rem; right: 0.6rem; font-size: 0.85rem; color: var(--muted); opacity: 0.55; }
.flip-back { transform: rotateY(180deg); background: #fff; }
.flip-back .back-title { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); margin-bottom: 0.4rem; }
.flip-back .back-body { font-size: 0.95rem; color: var(--ink); line-height: 1.55; text-align: center; }

/* most-targeted bills */
.bills-list { max-width: 72ch; margin: 1.4rem 0 0; padding-left: 1.3rem; }
.bills-list li { margin: 0.65rem 0; color: var(--muted); }
.bills-list a { font-weight: 700; }
.bills-list .bill-count { font-size: 0.82rem; color: var(--muted); }

/* network: firm-detail caption */
.firm-detail { margin-top: 0.8rem; font-size: 0.92rem; color: var(--ink); min-height: 1.3rem; }
.firm-detail strong { color: var(--accent2); }

/* pipeline flow (landing big picture) */
.pipeline { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.5rem; margin-top: 2rem; }
.pipeline .step {
  flex: 1 1 140px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; text-align: center; position: relative; text-decoration: none; color: var(--ink);
}
.pipeline .step:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(44,110,143,0.12); }
.pipeline .step .k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-weight: 700; }
.pipeline .step .t { font-weight: 700; margin-top: 0.2rem; }
.pipeline .step .d { font-size: 0.8rem; color: var(--muted); }
.pipeline .arrow { align-self: center; color: var(--muted); font-size: 1.3rem; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 1.8rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; text-decoration: none; color: var(--ink); display: block; }
.card:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(44,110,143,0.12); }
.card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.tag { display: inline-block; margin-top: 1rem; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.2rem 0.6rem; border-radius: 999px; }
.tag.ok { background: #e6f4ec; color: #2f8f5b; }
.tag.wip { background: #fdf0e6; color: var(--accent2); }

/* charts */
.chart-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-top: 1.8rem; }
.chart-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.1rem 0.4rem; margin: 0; }
.chart-box.wide { grid-column: 1 / -1; }
.chart-box figcaption { font-weight: 600; font-size: 0.98rem; margin-bottom: 0.4rem; }
.plot { width: 100%; height: 320px; }
.plot.tall { height: 460px; }

/* placeholder (stub pages) */
.placeholder { border: 2px dashed var(--line); border-radius: var(--radius); padding: 2.5rem; text-align: center; color: var(--muted); background: var(--bg-alt); margin-top: 1.8rem; }
.placeholder .big { font-size: 2.5rem; }

/* roadmap */
.roadmap { list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: 86ch; }
.roadmap li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.roadmap .done { color: #2f8f5b; font-weight: 800; margin-right: 0.7rem; }
.roadmap .todo { color: var(--accent); font-weight: 800; margin-right: 0.7rem; }

/* footer (injected) */
.site-footer { background: var(--dark); color: #b9cdd8; padding: 2.5rem 1.5rem; text-align: center; font-size: 0.9rem; }
.site-footer .muted { color: #6f8b99; font-size: 0.8rem; margin-top: 0.4rem; }

/* ---------- floating action buttons (injected) ---------- */
.fab-stack { position: fixed; right: 1.3rem; bottom: 1.3rem; display: flex; flex-direction: column; gap: 0.6rem; z-index: 60; }
.fab {
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; font-size: 1.2rem; color: #fff;
  box-shadow: 0 4px 14px rgba(16,42,58,0.3); transition: transform .15s, opacity .2s;
}
.fab:hover { transform: translateY(-2px); }
.fab-top { background: var(--accent); opacity: 0; pointer-events: none; }
.fab-top.show { opacity: 1; pointer-events: auto; }
.fab-ask { background: var(--accent3); }
.fab-ask[disabled] { opacity: 0.55; cursor: not-allowed; }
.fab-label { position: absolute; right: 58px; white-space: nowrap; background: var(--ink); color: #fff; font-size: 0.75rem; padding: 0.25rem 0.55rem; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .15s; top: 50%; transform: translateY(-50%); }
.fab-wrap { position: relative; display: flex; align-items: center; }
.fab-wrap:hover .fab-label { opacity: 1; }

@media (max-width: 720px) {
  .chart-grid { grid-template-columns: 1fr; }
  .pipeline .arrow { display: none; }
}
