@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Lora:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

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

:root {
  --ink:       #111827;
  --ink-2:     #374151;
  --ink-3:     #6b7280;
  --surface:   #ffffff;
  --surface-2: #f7f7fb;
  --surface-3: #ededf5;
  --border:    #e5e5f0;
  --accent:    #059669;
  --accent-2:  #047857;
  --accent-glow: rgba(5,150,105,.1);
  --green:     #16a34a;
  --orange:    #ea580c;
  --red:       #dc2626;
  --font:      'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
  --max-w:     1160px;
  --r:         12px;
  --r-sm:      8px;
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { opacity: .8; }

.content-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* legacy alias */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #047857, #059669);
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(5,150,105,.3);
}

.logo-text {
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: .15rem;
}

.main-nav a {
  font-size: .84rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: .4rem .75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background .12s, color .12s;
  white-space: nowrap;
}

.main-nav a:hover { background: var(--surface-2); color: var(--ink); opacity: 1; }

.nav-cta {
  background: var(--accent) !important;
  color: white !important;
  font-weight: 600 !important;
  border-radius: 20px !important;
  margin-left: .4rem !important;
}

.nav-cta:hover { background: var(--accent-2) !important; opacity: 1 !important; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--ink);
  padding: .25rem;
}

/* ── Masthead ───────────────────────────────────────────────── */
.masthead {
  border-bottom: 1px solid var(--border);
  padding: 5rem 0 0;
  background: linear-gradient(160deg, #ffffff 50%, #d1fae5 100%);
}

.masthead-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem 3.5rem;
}

.masthead-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.masthead-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 1.25rem;
  max-width: 740px;
}

.masthead-sub {
  font-size: 1.05rem;
  color: var(--ink-3);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.masthead-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.masthead-stats {
  border-top: 1px solid var(--border);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  gap: 0;
  align-items: center;
}

.stat-item { padding: 0 2.5rem 0 0; }
.stat-item:first-child { padding-left: 0; }

.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: .75rem;
  color: var(--ink-3);
  font-weight: 500;
  margin-top: .2rem;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  margin: 0 2.5rem 0 0;
  flex-shrink: 0;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: white;
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 600;
  padding: .65rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background .12s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { background: #222; opacity: 1; color: white; }
.btn-lg { font-size: .95rem; padding: .8rem 1.75rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 600;
  padding: .65rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1.5px solid var(--border);
  transition: border-color .12s, background .12s;
}

.btn-ghost:hover { border-color: #aaa; background: var(--surface-2); opacity: 1; color: var(--ink); }

/* legacy */
.btn-secondary { display: inline-flex; align-items: center; background: var(--surface); color: var(--ink); font-family: var(--font); font-size: .88rem; font-weight: 600; padding: .65rem 1.4rem; border-radius: 8px; text-decoration: none; border: 1.5px solid var(--border); transition: border-color .12s; }
.btn-secondary:hover { border-color: #aaa; opacity: 1; color: var(--ink); }

/* ── Tags ───────────────────────────────────────────────────── */
.tag {
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .55rem;
  border-radius: 4px;
  display: inline-block;
}

.tag-high   { background: #fef2f2; color: var(--red);    border: 1px solid #fecaca; }
.tag-medium { background: #fff7ed; color: var(--orange);  border: 1px solid #fed7aa; }
.tag-low    { background: #f0fdf4; color: var(--green);   border: 1px solid #bbf7d0; }
.tag-desert { background: #f5f3ff; color: var(--accent);  border: 1px solid #ddd6fe; }
.tag-date   { font-size: .72rem; font-weight: 600; color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--border); padding: .2rem .55rem; border-radius: 4px; }

/* legacy badge aliases */
.badge { display: inline-block; font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .2rem .55rem; border-radius: 4px; }
.badge-high   { background: #fef2f2; color: var(--red);    border: 1px solid #fecaca; }
.badge-medium { background: #fff7ed; color: var(--orange);  border: 1px solid #fed7aa; }
.badge-low    { background: #f0fdf4; color: var(--green);   border: 1px solid #bbf7d0; }
.badge-desert { background: #f5f3ff; color: var(--accent);  border: 1px solid #ddd6fe; }

/* ── Section shared ─────────────────────────────────────────── */
.section-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: .5rem;
}

.section-heading {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.text-link {
  font-size: .84rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.text-link:hover { opacity: .75; }

/* ── Research section ───────────────────────────────────────── */
.research-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

@media (max-width: 900px) {
  .brief-cards-grid { grid-template-columns: 1fr; }
}

/* Featured report */
.featured-report {
  display: block;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 2.25rem 2.5rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow .15s, border-color .15s;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.featured-report::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #34d399);
}

.featured-report:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(5,150,105,.12);
  opacity: 1;
  color: var(--ink);
}

.featured-meta {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.featured-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.15;
  margin-bottom: .5rem;
}

.featured-location {
  font-size: .8rem;
  color: var(--ink-3);
  font-family: var(--font-mono);
  margin-bottom: .85rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.featured-summary {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink-2);
  line-height: 1.8;
  max-width: 700px;
  margin-bottom: 1.25rem;
}

.featured-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  font-weight: 700;
  color: white;
  background: var(--accent);
  padding: .5rem 1.1rem;
  border-radius: 6px;
  transition: background .12s;
}

.featured-report:hover .featured-cta { background: var(--accent-2); }

/* Report grid */
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  border-radius: var(--r);
}

.report-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  transition: box-shadow .15s, border-color .15s, transform .15s;
}

.report-card:hover {
  background: var(--surface);
  opacity: 1;
  color: var(--ink);
  box-shadow: 0 6px 24px rgba(5,150,105,.1);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card-meta-row { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }

.card-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin-bottom: .4rem;
}

.card-location {
  font-size: .75rem;
  color: var(--ink-3);
  font-family: var(--font-mono);
  margin-bottom: .75rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}

.card-excerpt {
  font-family: var(--font-serif);
  font-size: .9rem;
  color: var(--ink-2);
  line-height: 1.65;
  flex: 1;
}

.card-link {
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.empty-research { text-align: center; padding: 4rem 0; color: var(--ink-3); }

/* ── Brief cards on homepage (on dark bg) ── */
.brief-cards-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.25rem;
}

.brief-home-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--r);
  padding: 1.75rem;
  text-decoration: none;
  color: var(--ink);
  border: 1.5px solid rgba(255,255,255,.1);
  transition: transform .15s, box-shadow .15s;
}

.brief-home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
  opacity: 1;
  color: var(--ink);
}

.brief-home-meta { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.brief-home-title { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; margin-bottom: .6rem; }
.brief-home-excerpt { font-family: var(--font-serif); font-size: .92rem; color: var(--ink-2); line-height: 1.7; flex: 1; }
.brief-home-cta { font-size: .8rem; font-weight: 700; color: var(--accent); margin-top: 1rem; display: inline-block; }

/* ── About strip ────────────────────────────────────────────── */
.about-strip {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
  background: #022c22;
  color: white;
}

.about-strip .section-eyebrow { color: #6ee7b7; }
.about-strip .section-heading { color: white; }
.about-strip .about-strip-main p { color: rgba(255,255,255,.7); }
.about-strip .about-strip-cards { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.12); }
.about-strip .method-card { background: rgba(255,255,255,.06); }
.about-strip .method-card:hover { background: rgba(255,255,255,.1); }
.about-strip .method-card h4 { color: white; }
.about-strip .method-card p { color: rgba(255,255,255,.6); }
.about-strip .method-num { background: rgba(110,231,183,.15); color: #6ee7b7; }

.about-strip-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.about-strip-main p {
  font-size: .95rem;
  color: var(--ink-2);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 420px;
}

.about-strip-cards {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--border);
}

.method-card {
  background: var(--surface);
  padding: 1.4rem 1.6rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.method-num {
  font-size: .72rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-glow);
  padding: .25rem .5rem;
  border-radius: 4px;
  letter-spacing: .04em;
  flex-shrink: 0;
  margin-top: .1rem;
}

.method-card h4 {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: .25rem;
}

.method-card p {
  font-size: .83rem;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0;
}

/* ── Apply banner ───────────────────────────────────────────── */
.apply-banner {
  padding: 4rem 0;
  background: var(--surface);
}

.apply-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  border-radius: var(--r);
  padding: 2.5rem 2.75rem;
  flex-wrap: wrap;
}

.apply-banner-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .4rem;
  color: white;
}

.apply-banner-sub {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  line-height: 1.6;
  max-width: 560px;
}

.apply-banner .btn-primary {
  background: white;
  color: #047857;
  flex-shrink: 0;
}

.apply-banner .btn-primary:hover { background: #f0effe; }

/* ── Finding blocks ─────────────────────────────────────────── */
.finding {
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  background: var(--surface);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.finding.high   { border-left-color: var(--red);   background: #fffafa; }
.finding.medium { border-left-color: var(--orange); background: #fffcf9; }
.finding.low    { border-left-color: var(--green);  background: #f9fff9; }

.finding-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .5rem; }
.finding.high   .finding-label { color: var(--red); }
.finding.medium .finding-label { color: var(--orange); }
.finding.low    .finding-label { color: var(--green); }
.finding-fact { font-size: .94rem; font-weight: 500; margin-bottom: .6rem; line-height: 1.5; }
.finding-question { font-size: .88rem; color: var(--ink-2); font-style: italic; line-height: 1.55; padding: .45rem .7rem; background: rgba(0,0,0,.03); border-radius: var(--r-sm); }
.finding-source { font-size: .73rem; font-family: var(--font-mono); color: var(--ink-3); margin-top: .55rem; }

/* ── Prose (report pages) ───────────────────────────────────── */
.prose { max-width: 680px; font-family: var(--font-serif); }
.prose h2 { font-family: var(--font); font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; margin: 2.5rem 0 .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); color: var(--ink); }
.prose h3 { font-family: var(--font); font-size: 1.05rem; font-weight: 600; margin: 1.75rem 0 .5rem; color: var(--ink); }
.prose p  { font-size: 1.05rem; color: var(--ink-2); margin-bottom: 1.1rem; line-height: 1.85; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1.1rem; }
.prose li { font-size: 1.05rem; color: var(--ink-2); margin-bottom: .5rem; line-height: 1.75; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .85rem; margin: 1.25rem 0; }
.prose th { text-align: left; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: .5rem .75rem; border-bottom: 2px solid var(--border); }
.prose td { padding: .55rem .75rem; border-bottom: 1px solid var(--border); color: var(--ink-2); }
.prose tr:last-child td { border-bottom: none; }
.prose blockquote { border-left: 3px solid var(--accent); padding: .6rem 1.25rem; margin: 1.25rem 0; background: var(--accent-glow); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-2); font-style: italic; }

/* ── Page content ───────────────────────────────────────────── */
.page-content { padding: 3.5rem 0 5rem; }
.page-content h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; margin-bottom: 1.5rem; }

/* ── Report page ────────────────────────────────────────────── */
.report-header { margin-bottom: 2rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--border); }
.report-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .85rem; }
.report-header h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.15; margin-bottom: .6rem; }
.report-meta { font-size: .8rem; font-weight: 500; color: var(--ink-3); font-family: var(--font-mono); }
.report-footer { margin-top: 2.5rem; padding: 1.1rem 1.4rem; background: var(--surface-2); border-radius: var(--r-sm); border: 1px solid var(--border); font-size: .83rem; color: var(--ink-3); }

/* ── Map ────────────────────────────────────────────────────── */
.map-intro { font-size: .9rem; color: var(--ink-3); margin-bottom: 1.25rem; }
#map { width: 100%; height: 520px; border: none; border-radius: var(--r); overflow: hidden; margin-bottom: 1.5rem; box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.map-legend { display: flex; gap: 2rem; font-size: .8rem; color: var(--ink-2); font-weight: 600; padding: 1rem 0 2rem; flex-wrap: wrap; background: var(--surface-2); border-radius: var(--r-sm); padding: 1rem 1.25rem; border: 1px solid var(--border); }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .35rem; vertical-align: middle; }

/* ── Submit form ────────────────────────────────────────────── */
.submit-form { margin-top: 2rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .81rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: .6rem .85rem; border: 1.5px solid var(--border); border-radius: var(--r-sm); font-family: var(--font); font-size: .9rem; background: var(--surface); color: var(--ink); transition: border-color .12s, box-shadow .12s; outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-group textarea { min-height: 90px; resize: vertical; }
.form-hint { font-size: .76rem; color: var(--ink-3); margin-top: .25rem; }
.radio-group { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .25rem; }
.radio-option { display: flex; align-items: center; gap: .4rem; font-size: .88rem; cursor: pointer; }
.btn-submit { font-family: var(--font); font-weight: 700; font-size: .9rem; background: var(--accent); color: white; border: none; padding: .75rem 1.75rem; border-radius: 8px; cursor: pointer; transition: background .12s; margin-top: .5rem; }
.btn-submit:hover { background: var(--accent-2); }
.req { color: var(--red); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.5);
  padding: 2.5rem 0;
  font-size: .82rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: white;
  font-size: .85rem;
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  flex: 1;
}

.footer-links a {
  color: rgba(255,255,255,.5);
  font-size: .8rem;
  text-decoration: none;
  transition: color .12s;
}

.footer-links a:hover { color: white; opacity: 1; }

.footer-tagline {
  font-size: .78rem;
  color: rgba(255,255,255,.3);
  margin-left: auto;
  text-align: right;
  max-width: 260px;
  line-height: 1.5;
}

/* ── Brief topic colors ─────────────────────────────────────── */
.topic-pill {
  display: inline-block;
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .22rem .6rem;
  border-radius: 4px;
}
.topic-property-tax   { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.topic-fiscal-stress  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.topic-pension        { background: #ede9fe; color: #4c1d95; border: 1px solid #c4b5fd; }
.topic-shared         { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.topic-state-aid      { background: #dbeafe; color: #1e3a8a; border: 1px solid #93c5fd; }
.topic-economic-dev   { background: #fce7f3; color: #831843; border: 1px solid #f9a8d4; }
.topic-default        { background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; }

/* ── Briefs section (homepage) ──────────────────────────────── */
.briefs-section {
  padding: 4rem 0 5rem;
  background: linear-gradient(135deg, #022c22 0%, #065f46 60%, #059669 100%);
  border-bottom: none;
}

.briefs-section .section-eyebrow { color: #6ee7b7; }
.briefs-section .section-heading { color: white; }
.briefs-section .text-link { color: #6ee7b7; }
.briefs-section .text-link:hover { color: white; opacity: 1; }

.brief-card {
  display: block;
  background: white;
  border: 1px solid #e5e5f0;
  border-radius: var(--r);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow .15s, border-color .15s;
}

.brief-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(91,91,214,.12);
  opacity: 1;
  color: var(--ink);
}

.brief-card-topic { margin-bottom: .75rem; }
.brief-card-title { font-size: 1rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; margin-bottom: .4rem; }
.brief-card-summary { font-size: .84rem; color: var(--ink-3); line-height: 1.55; }

/* ── Page hero (dark gradient, used on list/section pages) ── */
.page-hero {
  background: linear-gradient(135deg, #022c22 0%, #065f46 55%, #059669 100%);
  color: white;
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  pointer-events: none;
}
.page-hero .masthead-label,
.page-hero .section-eyebrow { color: #6ee7b7; }
.page-hero h1 { color: white; font-size: clamp(2rem,4vw,3rem); font-weight:800; letter-spacing:-.04em; margin:.5rem 0 1rem; }
.page-hero p { color: rgba(255,255,255,.75); max-width: 600px; line-height: 1.7; font-size: 1rem; }
.page-hero-stats {
  display: flex; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap;
}
.page-hero-stat-num { font-size: 2rem; font-weight: 800; letter-spacing:-.03em; color: #6ee7b7; line-height:1; }
.page-hero-stat-label { font-size: .75rem; color: rgba(255,255,255,.6); font-weight:500; margin-top:.2rem; }

/* ── Global serif body text ─────────────────────────────────── */
.about-body { font-family: var(--font-serif) !important; font-size: 1rem !important; line-height: 1.85 !important; color: var(--ink-2) !important; }
.about-pullquote { font-family: var(--font-serif); }
.about-method-desc { font-family: var(--font-serif); font-size: .88rem !important; }
.about-do-list li { font-family: var(--font-serif); }
.about-cta-card p { font-family: var(--font-serif); }
.brief-prose { font-family: var(--font-serif); }
.brief-prose p { font-size: 1.05rem; line-height: 1.85; color: var(--ink-2); margin-bottom: 1.1rem; }
.brief-prose h2 { font-family: var(--font); font-size: 1.2rem; font-weight: 700; }
.brief-prose h3 { font-family: var(--font); }
.brief-abstract p { font-family: var(--font-serif); font-size: 1rem; line-height: 1.75; color: var(--ink-2); }
.brief-card-summary, .brief-card-title + p { font-family: var(--font-serif); }
.masthead-sub { font-family: var(--font-serif); font-size: 1.1rem !important; line-height: 1.8 !important; }
.page-hero p { font-family: var(--font-serif); }
.apply-intro { font-family: var(--font-serif); }
.about-strip .about-strip-main p { font-family: var(--font-serif); }
.section-desc { font-family: var(--font-serif); }
.apply-banner-sub { font-family: var(--font-serif); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .report-grid { grid-template-columns: 1fr 1fr; }
  .about-strip-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 680px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 58px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--border); padding: 1rem; gap: .25rem; }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; }
  .mobile-menu-btn { display: block; }
  .report-grid { grid-template-columns: 1fr; }
  .masthead { padding: 3rem 0 0; }
  .masthead-title { font-size: 2rem; }
  .masthead-stats { flex-wrap: wrap; gap: 1.25rem; padding: 1.25rem 2rem; }
  .stat-divider { display: none; }
  .apply-banner-inner { flex-direction: column; }
  .section-header-row { flex-direction: column; gap: .5rem; align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-tagline { margin-left: 0; text-align: left; }
  #map { height: 360px; }
}
