:root {
  --purple-950: #0d0318;
  --purple-900: #160625;
  --purple-850: #1d0a31;
  --purple-800: #25103e;
  --purple-700: #34185a;
  --purple-600: #4a247b;
  --purple-500: #613499;
  --gold-300: #f4da8d;
  --gold-400: #e4bd59;
  --gold-500: #cfa33a;
  --gold-600: #ad8126;
  --ivory: #fffaf0;
  --text: #f9f5ff;
  --muted: #c7bad5;
  --muted-2: #9f8eb4;
  --line: rgba(229, 190, 90, .22);
  --line-soft: rgba(255,255,255,.10);
  --surface: rgba(31, 11, 52, .82);
  --surface-2: rgba(39, 15, 67, .86);
  --shadow: 0 28px 80px rgba(0,0,0,.32);
  --shell: 1240px;
  --radius-lg: 24px;
  --radius-md: 17px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(105, 50, 159, .28), transparent 32rem),
    radial-gradient(circle at 86% 8%, rgba(214, 168, 57, .12), transparent 28rem),
    linear-gradient(180deg, var(--purple-950), #10041c 50%, #0b0213);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.016) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 85%);
  z-index: -2;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.shell {
  width: min(var(--shell), calc(100% - 42px));
  margin-inline: auto;
}

.site-glow {
  position: fixed;
  pointer-events: none;
  filter: blur(80px);
  opacity: .35;
  z-index: -1;
}

.site-glow-a {
  width: 420px;
  height: 420px;
  background: #622e91;
  border-radius: 50%;
  left: -180px;
  top: 25%;
}

.site-glow-b {
  width: 360px;
  height: 360px;
  background: #b68a2c;
  border-radius: 50%;
  right: -180px;
  top: 9%;
  opacity: .16;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(229,190,90,.16);
  background: rgba(13,3,24,.78);
  backdrop-filter: blur(20px);
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  text-decoration: none;
}

.brand-seal {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244,218,141,.6);
  background: linear-gradient(145deg, #f0cf78, #b48127);
  color: #1b0829;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  box-shadow: 0 0 0 5px rgba(229,190,90,.05);
}

.brand-copy {
  display: grid;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  letter-spacing: -.015em;
}

.brand-copy small {
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 9px;
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 29px;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  transition: color .2s ease;
}

.main-nav a:hover {
  color: var(--gold-300);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.04);
}

.nav-toggle span {
  width: 18px;
  height: 1px;
  background: var(--gold-300);
  display: block;
  margin: 4px auto;
}

.hero {
  position: relative;
  padding: 112px 0 94px;
  overflow: hidden;
  border-bottom: 1px solid rgba(229,190,90,.1);
}

.hero::after {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  right: -300px;
  bottom: -360px;
  border: 1px solid rgba(229,190,90,.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 75px rgba(229,190,90,.025),
    0 0 0 150px rgba(229,190,90,.018);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, .65fr);
  gap: 70px;
  align-items: center;
}

.eyebrow,
.section-kicker,
.panel-kicker {
  text-transform: uppercase;
  letter-spacing: .17em;
  color: var(--gold-400);
  font-size: 11px;
  font-weight: 850;
}

.hero h1,
.section-heading h2,
.interpretation-grid h2,
.friction-layout h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.045em;
}

.hero h1 {
  max-width: 850px;
  margin: 17px 0 23px;
  font-size: clamp(52px, 6.5vw, 91px);
  line-height: .93;
}

.hero-lede {
  max-width: 770px;
  color: var(--muted);
  font-size: clamp(18px, 1.75vw, 23px);
  margin: 0;
}

.hero-search {
  max-width: 750px;
  margin-top: 39px;
}

.hero-search label,
.state-selector label {
  display: block;
  color: var(--gold-300);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .11em;
  margin-bottom: 9px;
}

.search-row {
  display: flex;
  gap: 10px;
  padding: 7px;
  border-radius: 16px;
  border: 1px solid rgba(229,190,90,.36);
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.search-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  padding: 13px 15px;
  font-size: 18px;
  letter-spacing: .04em;
}

.search-row input::placeholder {
  color: #89789d;
}

.search-row button {
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: #21102a;
  padding: 12px 23px;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(207,163,58,.17);
}

.search-hint {
  color: var(--muted-2);
  font-size: 12px;
  margin: 8px 4px 0;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 25px;
  color: #b7a8c7;
  font-size: 11px;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-trust i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 12px rgba(229,190,90,.7);
}

.hero-panel {
  position: relative;
  border: 1px solid rgba(229,190,90,.28);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(76,34,113,.43), rgba(27,8,43,.78)),
    rgba(30,10,50,.88);
  padding: 31px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-300), transparent);
}

.hero-metric {
  margin: 28px 0 24px;
}

.hero-metric-value {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--gold-300);
  font-size: 61px;
  line-height: 1;
}

.hero-metric-label {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
}

.metric-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-split > div {
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  padding: 15px;
  background: rgba(255,255,255,.035);
}

.metric-split strong {
  display: block;
  color: var(--ivory);
  font-size: 22px;
}

.metric-split span {
  color: var(--muted-2);
  font-size: 11px;
}

.gold-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229,190,90,.55), transparent);
  margin: 24px 0;
}

.featured-leader span,
.featured-leader small {
  color: var(--muted-2);
  display: block;
}

.featured-leader span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.featured-leader strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  margin: 4px 0;
}

.featured-leader small {
  font-size: 12px;
}

.intelligence-result {
  padding: 65px 0;
  background:
    linear-gradient(90deg, rgba(68,27,105,.16), transparent 30%, transparent 70%, rgba(207,163,58,.05));
  border-bottom: 1px solid rgba(229,190,90,.12);
}

.section {
  padding: 92px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 34px;
}

.section-heading h2,
.interpretation-grid h2,
.friction-layout h2 {
  margin: 9px 0 0;
  font-size: clamp(36px, 4.5vw, 61px);
  line-height: 1;
}

.section-heading p,
.section-copy {
  max-width: 570px;
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

.result-heading {
  margin-bottom: 22px;
}

.ghost-button {
  color: var(--gold-300);
  border: 1px solid var(--line);
  background: transparent;
  padding: 10px 14px;
  border-radius: 10px;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr .9fr;
  gap: 15px;
}

.score-card,
.result-narrative,
.leaderboard,
.pillar-card,
.state-dashboard,
.friction-callout {
  border: 1px solid var(--line-soft);
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.score-card {
  padding: 23px;
  position: relative;
  overflow: hidden;
}

.score-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
}

.score-card-capacity::after {
  background: linear-gradient(90deg, var(--gold-300), transparent);
}

.score-card-friction::after {
  background: linear-gradient(90deg, #b78bff, transparent);
}

.score-card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.status-pill {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(229,190,90,.22);
  color: var(--gold-300);
  font-size: 9px;
  font-weight: 850;
}

.status-pill.not-qualified {
  color: #d2c5de;
  border-color: rgba(255,255,255,.15);
}

.score-big {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 62px;
  line-height: 1;
  margin: 23px 0;
}

.score-card-capacity .score-big {
  color: var(--gold-300);
}

.score-card-friction .score-big {
  color: #c9a6ff;
}

.rank-line {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 9px;
}

.rank-line > div {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255,255,255,.025);
}

.rank-line span {
  display: block;
  color: var(--muted-2);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.rank-line strong {
  display: block;
  margin-top: 3px;
  font-size: 15px;
}

.coverage-block {
  margin-top: 18px;
}

.coverage-copy {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.coverage-copy strong {
  color: var(--ivory);
}

.progress {
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  margin: 8px 0;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300));
  transition: width .45s ease;
}

.score-card-friction .progress span {
  background: linear-gradient(90deg, #6e3f9c, #c9a6ff);
}

.coverage-meta {
  color: var(--muted-2);
  font-size: 10px;
}

.result-narrative {
  padding: 25px;
}

.result-narrative h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.1;
  margin: 8px 0 13px;
}

.result-narrative p {
  color: var(--muted);
  margin: 0;
}

.governance-note {
  border-left: 2px solid var(--gold-500);
  margin-top: 20px;
  padding: 10px 0 10px 13px;
  color: var(--gold-300);
  font-size: 11px;
}

.national-section {
  background:
    linear-gradient(180deg, rgba(255,255,255,.015), transparent),
    rgba(10,2,18,.22);
}

.leaderboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.leaderboard {
  overflow: hidden;
}

.leaderboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 22px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(103,48,147,.2), transparent);
}

.leaderboard-head span {
  display: block;
  color: var(--gold-400);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .11em;
}

.leaderboard-head strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  margin-top: 3px;
}

.leader-icon {
  width: 38px;
  height: 38px;
  display: grid !important;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-300) !important;
  font-size: 19px !important;
}

.leader-list {
  min-height: 270px;
}

.leader-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 14px 21px;
  border-bottom: 1px solid rgba(255,255,255,.055);
}

.leader-row:last-child {
  border-bottom: 0;
}

.leader-rank {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--gold-400);
  font-size: 17px;
}

.leader-place strong,
.compact-row strong {
  display: block;
  font-size: 13px;
}

.leader-place span,
.compact-row span {
  color: var(--muted-2);
  font-size: 10px;
}

.leader-score {
  text-align: right;
}

.leader-score strong {
  display: block;
  font-size: 16px;
}

.leader-score span {
  color: var(--muted-2);
  font-size: 9px;
  text-transform: uppercase;
}

.pillars-section {
  border-top: 1px solid rgba(229,190,90,.08);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.pillar-card {
  padding: 24px;
}

.pillar-weight {
  color: var(--gold-300);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 37px;
}

.pillar-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  margin: 8px 0 10px;
}

.pillar-card p {
  color: var(--muted);
  font-size: 12px;
  min-height: 72px;
  margin: 0;
}

.pillar-line {
  margin-top: 20px;
  height: 3px;
  background: rgba(255,255,255,.07);
}

.pillar-line span {
  display: block;
  height: 100%;
  background: var(--gold-400);
}

.friction-section {
  background:
    radial-gradient(circle at 80% 50%, rgba(104,51,145,.2), transparent 28rem),
    linear-gradient(180deg, rgba(41,15,68,.45), rgba(16,4,27,.6));
  border-block: 1px solid rgba(229,190,90,.09);
}

.friction-layout {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 60px;
  align-items: center;
}

.friction-dimensions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.friction-dimensions span {
  border: 1px solid rgba(201,166,255,.18);
  background: rgba(116,72,160,.10);
  color: #d8c3ee;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 10px;
}

.friction-callout {
  padding: 30px;
  text-align: center;
}

.callout-number {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 88px;
  color: #c9a6ff;
  line-height: .9;
}

.friction-callout strong {
  display: block;
  margin-top: 8px;
  font-size: 16px;
}

.friction-callout p {
  color: var(--muted);
  font-size: 12px;
}

.hold-chip {
  display: inline-block;
  margin-top: 9px;
  color: var(--gold-300);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.state-selector {
  min-width: 250px;
}

.state-selector select {
  width: 100%;
  color: var(--text);
  background: var(--purple-800);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  outline: none;
}

.state-dashboard {
  min-height: 200px;
  padding: 25px;
}

.state-empty {
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted-2);
}

.state-title-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.state-title-row h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 35px;
  margin: 4px 0 0;
}

.state-zcta-count {
  color: var(--gold-300);
  font-size: 12px;
}

.state-stat-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
}

.state-stat {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 16px;
  background: rgba(255,255,255,.025);
}

.state-stat span,
.state-stat small {
  display: block;
}

.state-stat span {
  color: var(--muted-2);
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: .07em;
}

.state-stat strong {
  display: block;
  font-size: 25px;
  margin: 4px 0 2px;
}

.state-stat small {
  color: var(--muted);
  font-size: 9px;
}

.state-leaders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 24px;
}

.state-leaders-grid h4 {
  font-family: Georgia, "Times New Roman", serif;
  margin: 0 0 9px;
  font-size: 17px;
}

.compact-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.055);
}

.compact-score {
  color: var(--gold-300);
  font-weight: 800;
}

.interpretation-section {
  background:
    linear-gradient(90deg, rgba(207,163,58,.08), transparent 45%),
    rgba(255,255,255,.012);
  border-block: 1px solid rgba(229,190,90,.09);
}

.interpretation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.interpretation-copy {
  color: var(--muted);
  font-size: 16px;
}

.gold-text {
  color: var(--gold-300);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
}

.method-grid article {
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  padding: 20px;
  background: rgba(255,255,255,.022);
}

.method-grid strong {
  display: block;
  color: var(--gold-300);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
}

.method-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}

.data-details {
  margin-top: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255,255,255,.018);
}

.data-details summary {
  cursor: pointer;
  padding: 16px 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.data-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 18px;
}

.data-links a {
  text-decoration: none;
  color: var(--gold-300);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 10px;
}

.site-footer {
  border-top: 1px solid rgba(229,190,90,.16);
  background: #09010f;
  padding: 55px 0 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .6fr .6fr;
  gap: 55px;
}

.footer-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  color: var(--gold-300);
}

.footer-grid p {
  color: var(--muted-2);
  max-width: 560px;
  font-size: 12px;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 7px;
}

.footer-links span {
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 9px;
  margin-bottom: 3px;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 11px;
}

.footer-links a:hover {
  color: var(--gold-300);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 40px;
  padding-top: 20px;
  color: #776987;
  font-size: 9px;
}

.loading-row {
  color: var(--muted-2);
  padding: 20px;
  font-size: 12px;
}

@media (max-width: 1050px) {
  .hero-grid,
  .friction-layout,
  .interpretation-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 620px;
  }

  .result-grid {
    grid-template-columns: 1fr 1fr;
  }

  .result-narrative {
    grid-column: 1 / -1;
  }

  .pillar-grid,
  .state-stat-grid,
  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(var(--shell), calc(100% - 26px));
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 13px;
    right: 13px;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(20,6,34,.98);
    overflow: hidden;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255,255,255,.055);
  }

  .hero {
    padding: 76px 0 65px;
  }

  .hero-grid {
    gap: 35px;
  }

  .hero h1 {
    font-size: clamp(48px, 13vw, 69px);
  }

  .search-row {
    flex-direction: column;
  }

  .search-row button {
    width: 100%;
  }

  .section {
    padding: 70px 0;
  }

  .section-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .result-grid,
  .leaderboard-grid,
  .pillar-grid,
  .state-stat-grid,
  .state-leaders-grid,
  .method-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-line {
    grid-template-columns: 1fr;
  }

  .state-title-row,
  .footer-bottom {
    align-items: start;
    flex-direction: column;
  }

  .pillar-card p {
    min-height: auto;
  }
}

/* NDS BLACK WEALTH x PLACE INTELLIGENCE V1.0.0 */

.hero-search {
  position: relative;
}

.place-search-results {
  position: absolute;
  z-index: 100;
  left: 0;
  right: 0;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid rgba(229,190,90,.34);
  border-radius: 15px;
  background: rgba(15,4,27,.985);
  box-shadow: 0 24px 70px rgba(0,0,0,.48);
  backdrop-filter: blur(20px);
}

.place-search-result {
  width: 100%;
  display: grid;
  grid-template-columns: 68px 1fr;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  color: var(--text);
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: transparent;
}

.place-search-result:hover,
.place-search-result:focus {
  outline: 0;
  background: rgba(207,163,58,.09);
}

.place-search-zip {
  color: var(--gold-300);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.place-search-copy {
  min-width: 0;
}

.place-search-copy strong,
.place-search-copy small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.place-search-copy strong {
  font-size: 12px;
}

.place-search-copy small {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 10px;
}

.place-search-empty {
  padding: 15px;
  color: var(--muted);
  font-size: 11px;
}

.place-breadcrumb {
  margin: -7px 0 18px;
  color: var(--muted-2);
  font-size: 10px;
}

.place-identity-card {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px solid rgba(229,190,90,.23);
  border-radius: var(--radius-md);
  background:
    linear-gradient(110deg, rgba(207,163,58,.06), transparent 35%),
    var(--surface);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.place-identity-card h3 {
  margin: 7px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
}

.place-identity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.place-identity-grid > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
}

.place-identity-grid span,
.place-neighborhoods > span {
  display: block;
  color: var(--muted-2);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .075em;
}

.place-identity-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--ivory);
  font-size: 13px;
}

.place-neighborhoods {
  margin-top: 14px;
  padding: 8px 0 8px 13px;
  border-left: 2px solid var(--gold-500);
}

#placeNeighborhoodList {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.place-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
}

.place-evidence span {
  padding: 5px 8px;
  color: var(--muted-2);
  border: 1px solid rgba(229,190,90,.16);
  border-radius: 999px;
  font-size: 8px;
}

@media (max-width: 760px) {
  .place-search-results {
    position: relative;
  }

  .place-identity-grid {
    grid-template-columns: 1fr;
  }
}

/* Standard NDS footer links */
.footer-bottom a {
  color: var(--gold-400);
  text-decoration: none;
  font-weight: 800;
}
.footer-bottom a:hover {
  color: var(--gold-300);
  text-decoration: underline;
}

/* ========================================================================
   NDS ACCESSIBLE TYPOGRAPHY MINIMUMS - BLACK WEALTH
   Presentation-only readability floor.
   Larger existing typography remains larger.
   ======================================================================== */

html,
body {
  font-size: 17px;
}

/* Navigation */
.main-nav a {
  font-size: max(15px, 0.882rem);
}

/* Eyebrows, kickers, compact section labels */
.eyebrow,
.section-kicker,
.panel-kicker {
  font-size: max(13px, 0.765rem);
}

/* Search */
.hero-search label,
.state-selector label {
  font-size: max(13px, 0.765rem);
}

.search-row input {
  font-size: max(18px, 1.059rem);
}

.search-row button {
  font-size: max(14px, 0.824rem);
}

.search-hint {
  font-size: max(14px, 0.824rem);
}

/* Hero explanatory / regional context */
.hero-lede {
  font-size: max(20px, 1.176rem);
}

.hero-trust {
  font-size: max(14px, 0.824rem);
}

/* Hero facts */
.hero-metric-label,
.metric-split span,
.featured-leader span,
.featured-leader small {
  font-size: max(13px, 0.765rem);
}

.metric-split strong {
  font-size: max(26px, 1.529rem);
}

/* Section explanatory text */
.section-heading p,
.section-copy,
.interpretation-copy {
  font-size: max(16px, 0.941rem);
}

/* Score cards / metric labels */
.score-card-topline,
.rank-line span,
.coverage-copy,
.coverage-meta {
  font-size: max(13px, 0.765rem);
}

.status-pill {
  font-size: max(11px, 0.647rem);
}

.rank-line strong {
  font-size: max(18px, 1.059rem);
}

/* Numeric intelligence */
.score-big {
  font-size: max(62px, 3.647rem);
}

.hero-metric-value {
  font-size: max(61px, 3.588rem);
}

/* Narrative / evidence */
.result-narrative h3 {
  font-size: max(24px, 1.412rem);
}

.result-narrative p {
  font-size: max(15px, 0.882rem);
}

.governance-note {
  font-size: max(13px, 0.765rem);
}

/* National leaderboards */
.leaderboard-head span {
  font-size: max(13px, 0.765rem);
}

.leaderboard-head strong {
  font-size: max(24px, 1.412rem);
}

.leader-rank {
  font-size: max(18px, 1.059rem);
}

.leader-place strong,
.compact-row strong {
  font-size: max(17px, 1rem);
}

.leader-place span,
.compact-row span {
  font-size: max(14px, 0.824rem);
}

.leader-score strong {
  font-size: max(26px, 1.529rem);
}

.leader-score span {
  font-size: max(13px, 0.765rem);
}

/* Pillars / governed modules */
.pillar-card h3 {
  font-size: max(24px, 1.412rem);
}

.pillar-card p {
  font-size: max(15px, 0.882rem);
}

.pillar-weight {
  font-size: max(37px, 2.176rem);
}

/* Friction dimensions / badges / chips */
.friction-dimensions span {
  font-size: max(14px, 0.824rem);
}

.friction-callout strong {
  font-size: max(18px, 1.059rem);
}

.friction-callout p {
  font-size: max(15px, 0.882rem);
}

.hold-chip {
  font-size: max(11px, 0.647rem);
}

/* State intelligence */
.state-zcta-count {
  font-size: max(14px, 0.824rem);
}

.state-stat span {
  font-size: max(13px, 0.765rem);
}

.state-stat strong {
  font-size: max(26px, 1.529rem);
}

.state-stat small {
  font-size: max(13px, 0.765rem);
}

.state-leaders-grid h4 {
  font-size: max(24px, 1.412rem);
}

/* Methodology */
.method-grid strong {
  font-size: max(31px, 1.824rem);
}

.method-grid span {
  font-size: max(15px, 0.882rem);
}

.data-details summary {
  font-size: max(14px, 0.824rem);
}

.data-links a {
  font-size: max(14px, 0.824rem);
}

/* Place Intelligence enrichment */
.place-breadcrumb {
  font-size: max(14px, 0.824rem);
}

.place-search-zip {
  font-size: max(18px, 1.059rem);
}

.place-search-copy strong {
  font-size: max(17px, 1rem);
}

.place-search-copy small {
  font-size: max(14px, 0.824rem);
}

.place-search-empty {
  font-size: max(14px, 0.824rem);
}

.place-identity-card h3 {
  font-size: max(24px, 1.412rem);
}

.place-identity-grid span,
.place-neighborhoods > span {
  font-size: max(13px, 0.765rem);
}

.place-identity-grid strong {
  font-size: max(18px, 1.059rem);
}

#placeNeighborhoodList {
  font-size: max(14px, 0.824rem);
}

.place-evidence span {
  font-size: max(11px, 0.647rem);
}

/* Footer: never microtype */
.site-footer,
.footer-grid p,
.footer-links a,
.footer-bottom {
  font-size: max(14px, 0.824rem);
}

.footer-links span {
  font-size: max(13px, 0.765rem);
}
