@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Literata:opsz,wght@7..72,400;7..72,600&display=swap');

:root{
  --ds-blue:#4d62c6;
  --ds-blue-hover:#3d4fa9;
  --ds-pink:#c95e8a;
  --ds-green:#a4df4d;
  --ds-ink:#1f1f1f;
  --ds-paper:#fbfaf4;
  --ds-lilac:#eef0ff;
  --ds-border:#d8d5cc;
  --primary:var(--ds-blue);
  --accent:var(--ds-blue);
  --purple:var(--ds-pink);
  --pink:var(--ds-pink);
  --ink:var(--ds-ink);
  --paper:var(--ds-paper);
  --tint:var(--ds-lilac);
  --on-primary:#fff;
  --blue:var(--ds-blue);
  --green:var(--ds-green);
  --dark:var(--ds-ink);
  --lilac:var(--ds-lilac);
  --space-1:8px;
  --space-2:16px;
  --space-3:24px;
  --space-4:32px;
  --space-5:48px;
  --space-6:64px;
}

html,body,button,input,select,textarea{font-family:'Bricolage Grotesque','Segoe UI',sans-serif}
body{background:var(--ds-paper);color:var(--ds-ink)}
h1,h2,h3,h4,.brand{font-family:'Bricolage Grotesque','Segoe UI',sans-serif}
h1{font-size:clamp(42px,5vw,64px);font-weight:800;line-height:1.02;letter-spacing:-.045em}
h2{font-size:clamp(32px,3.4vw,40px);font-weight:700;line-height:1.1;letter-spacing:-.025em}
h3{font-size:32px;font-weight:700;line-height:1.12;letter-spacing:-.015em}
h4{font-size:20px;line-height:1.2}
blockquote,.voice-section blockquote{font-family:'Literata',Georgia,serif;font-weight:400;letter-spacing:-.02em}

a{transition:color .18s ease,background-color .18s ease,border-color .18s ease}
a:hover{color:var(--ds-blue-hover)}
:focus-visible{outline:3px solid var(--ds-green);outline-offset:4px}

header,.search-header{padding:var(--space-3) 4%;background:var(--ds-paper);border-bottom:1px solid var(--ds-border)}
.brand{font-size:18px;font-weight:800;letter-spacing:-.02em}
nav{gap:var(--space-1);align-items:center}
nav a{padding:8px 11px;border:1px solid transparent;border-radius:8px;font-weight:600}
nav a:hover{background:var(--ds-lilac);text-decoration:none}
nav a[aria-current=page],.search-header nav a[aria-current=page]{color:var(--ds-blue-hover);background:var(--ds-lilac);border-color:var(--ds-blue);text-decoration:none}

.button,.plain-button,.voice-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid var(--ds-blue);
  background:var(--ds-blue);
  color:#fff;
  padding:13px 22px;
  font-weight:700;
}
.button:hover,.plain-button:hover,.voice-links a:hover{background:var(--ds-blue-hover);border-color:var(--ds-blue-hover);color:#fff;text-decoration:none}

select{border:1px solid #aaa;border-radius:8px;padding:12px 14px;background:#fff}
.routes{gap:var(--space-3)}
.routes article,.state-card,.institution-grid>article{border:1px solid var(--ds-border);border-radius:14px;background:#fff}
.routes article{padding:var(--space-4)}
.routes article:hover{border-color:var(--ds-blue)}
.routes h3{font-size:24px}
.icon{background:var(--ds-blue)}
.routes article:nth-child(2) .icon{background:var(--ds-pink)}
.routes article:nth-child(3) .icon{background:var(--ds-green);color:var(--ds-ink)}
.data-section{border-top-color:var(--ds-blue);border-radius:0 0 14px 14px}
.stat{color:var(--ds-blue)}

.search-story{background:var(--ds-paper)}
.search-hero{background:radial-gradient(circle at 17% 70%,#fff 0 9%,transparent 9.5%),radial-gradient(circle at 88% 8%,#e8eaff 0 22%,transparent 22.5%),linear-gradient(135deg,#fff 0 65%,var(--ds-lilac) 65%)}
.search-hero h1{font-size:clamp(42px,5vw,64px);letter-spacing:-.045em}
.section-heading{max-width:940px}
.section-heading h2{font-size:clamp(32px,3.4vw,40px)}
.kicker,.state-card .card-label,.institution-scope{font-size:14px!important;line-height:1.3;letter-spacing:.12em}
.source-note,.institution-source{font-size:14px!important}
.state-card{padding:var(--space-3);box-shadow:0 8px 24px rgb(31 31 31 / 7%)}
.state-card h3{font-size:32px}
.state-card .primary-value{color:var(--ds-blue)}
.state-card .status{background:var(--ds-lilac);border-radius:8px}
.institution-grid{gap:var(--space-3)}
.institution-grid>article{padding:var(--space-3)}
.institution-grid h3{font-size:20px;margin-bottom:var(--space-2)}
.institution-grid p{font-size:16px}
.institution-grid>article:nth-child(2){background:var(--ds-lilac);border-color:var(--ds-blue)}
.institution-dot.green{background:var(--ds-green)}
.chapter-row h3{font-size:20px}
.voice-section blockquote{font-size:clamp(38px,4vw,58px)}

@media(max-width:650px){
  h1,.search-hero h1{font-size:42px}
  h2,.section-heading h2{font-size:32px}
  h3,.state-card h3{font-size:26px}
  header,.search-header{padding:20px 5%}
  nav a{padding:6px 8px}
  .routes article,.state-card,.institution-grid>article{padding:var(--space-3)}
}

@media(prefers-reduced-motion:reduce){a{transition:none}}
.search-story{max-width:none;margin-left:0;margin-right:0}
.search-story .institution-grid dd{font-size:clamp(13px,1.05vw,17px);white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
