:root {
  --navy: #0f2a4a;
  --navy-deep: #0a1f38;
  --red: #b22234;
  --cream: #f7f3ea;
  --white: #ffffff;
  --ink: #1b2431;
  --gold: #c9a227;
  --border: #e5ded0;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--navy);
}

a:hover {
  color: var(--red);
}

img, svg {
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.kicker {
  display: block;
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75em;
}

.kicker-on-navy {
  color: var(--gold);
}

/* Header */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 20;
}

.header-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}

.brand:hover {
  color: var(--navy);
}

.shield {
  flex: 0 0 auto;
  width: 34px;
  height: 38px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.wordmark-top {
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.wordmark-main {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  flex: 0 0 auto;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--red);
}

.site-nav a[aria-current="page"] {
  color: var(--red);
  border-bottom-color: var(--red);
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  /*
    Visible by default (no JS): the nav simply flows onto its own row
    beneath the brand and toggle, so every link stays reachable without
    JavaScript. JS marks it js-collapsed on load and the toggle button
    then shows/hides it.
  */
  .site-nav {
    display: flex;
    flex-basis: 100%;
    order: 3;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }

  .site-nav.js-collapsed {
    display: none;
  }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav a[aria-current="page"] {
    border-bottom-color: var(--red);
  }
}

/* Hero */

.hero {
  background: var(--navy);
  color: var(--cream);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  padding: 72px 0 64px;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.1rem);
  max-width: 18ch;
  margin: 0 auto 0.5em;
}

.hero .sub {
  max-width: 62ch;
  margin: 0 auto 2em;
  font-size: 1.1rem;
  color: var(--cream);
}

.hero .kicker {
  text-align: center;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: #93192b;
  border-color: #93192b;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

.btn-outline:hover {
  background: var(--cream);
  color: var(--navy);
}

/* Sections generic */

.section {
  padding: 64px 0;
}

.section-header {
  text-align: center;
  max-width: 62ch;
  margin: 0 auto 2.5em;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Mission band */

.mission {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
  text-align: center;
}

.mission .kicker {
  text-align: center;
}

.mission blockquote {
  margin: 0 auto;
  max-width: 46ch;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--navy);
  line-height: 1.4;
}

/* Cards grid */

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

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}

.card:hover {
  border-top-color: var(--red);
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4em;
  color: var(--navy);
}

.card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Bipartisan band */

.bipartisan {
  background: var(--navy);
  color: var(--cream);
  text-align: center;
  padding: 56px 0;
}

.bipartisan p {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  max-width: 56ch;
  margin: 0 auto;
  line-height: 1.5;
}

/* Fellows strip / grid */

.fellows-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .fellows-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .fellows-grid {
    grid-template-columns: 1fr;
  }
}

.fellow-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  border-radius: 4px;
  padding: 28px 24px;
  text-align: center;
}

.fellow-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.fellow-card-link:hover {
  border-top-color: var(--red);
}

.fellow-card-link:hover h3 {
  color: var(--red);
}

.avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--gold);
  color: var(--cream);
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.fellow-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.15em;
}

.fellow-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 0.8em;
}

.fellow-card p {
  font-size: 0.94rem;
  text-align: left;
  margin-bottom: 0;
}

/* Newsletter band */

.newsletter {
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
  text-align: center;
}

.newsletter-box {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  padding: 32px;
}

.newsletter h3 {
  margin-bottom: 0.3em;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--ink);
}

.newsletter-form button {
  flex: 0 0 auto;
  cursor: pointer;
  font-family: "Public Sans", Arial, sans-serif;
}

.newsletter-confirm {
  font-weight: 600;
  color: var(--navy);
  margin: 20px 0 0;
}

/* Page header (interior pages) */

.page-header {
  background: var(--navy);
  color: var(--cream);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  padding: 56px 0 48px;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.page-header .kicker {
  text-align: center;
}

.page-header .intro {
  max-width: 62ch;
  margin: 0 auto;
  color: var(--cream);
  font-size: 1.05rem;
}

/* Research programs */

.programs {
  padding: 56px 0;
}

.program {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  border-radius: 4px;
  padding: 32px;
  margin-bottom: 28px;
  scroll-margin-top: 90px;
}

.program h2 {
  font-size: 1.4rem;
}

.program-expert {
  display: block;
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin: -0.4em 0 1.2em;
}

.program-expert a {
  color: inherit;
}

.program .recs-label {
  font-weight: 700;
  color: var(--navy);
  margin: 1.2em 0 0.5em;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.program ul {
  margin: 0;
  padding-left: 1.2em;
}

.program li {
  margin-bottom: 0.5em;
}

/* Fellows page */

.fellows-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .fellows-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .fellows-page-grid {
    grid-template-columns: 1fr;
  }
}

/* Experts page */

.experts-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.expert-section .kicker {
  text-align: center;
}

.expert-card {
  max-width: 640px;
  margin: 0 auto;
}

/* About page */

.about-body {
  max-width: 72ch;
  margin: 0 auto;
}

.about-body h2 {
  margin-top: 1.4em;
}

.approach-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.approach-list li {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 18px;
  margin-bottom: 14px;
}

/* Analysis pages */

.analysis-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.analysis-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  border-radius: 4px;
  padding: 28px;
  color: var(--ink);
  text-decoration: none;
}

.analysis-card:hover {
  border-top-color: var(--red);
}

.analysis-card:hover h2 {
  color: var(--red);
}

.analysis-card h2 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  margin-bottom: 0.35em;
}

.analysis-dek {
  margin-bottom: 1em;
}

.analysis-meta,
.article-byline {
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.analysis-meta {
  color: var(--red);
  margin-bottom: 0;
}

.article-byline {
  max-width: 72ch;
  margin: 0 auto;
  color: var(--cream);
}

.article-byline a {
  color: var(--gold);
}

.article-byline a:hover {
  color: var(--white);
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  overflow-wrap: break-word;
}

.article-body .lede {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  line-height: 1.5;
  color: var(--navy);
  margin-bottom: 1.6em;
}

.article-body h2 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  margin-top: 1.8em;
}

.note-ref {
  font-weight: 700;
  text-decoration: none;
}

.endnotes {
  border-top: 1px solid var(--border);
  margin-top: 3em;
  padding-top: 2em;
}

.endnotes h2,
.related-analysis h2 {
  font-size: 1.25rem;
}

.endnotes ol {
  margin: 0;
  padding-left: 1.3em;
}

.endnotes li {
  margin-bottom: 0.9em;
  overflow-wrap: anywhere;
}

.related-analysis {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  margin-top: 3em;
  padding: 28px;
}

.related-analysis ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-analysis li {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 12px;
}

.related-analysis li:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.related-analysis a {
  font-weight: 700;
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: 48px 0 32px;
  text-align: center;
  font-size: 0.92rem;
}

.site-footer .footer-brand {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.3em;
}

.site-footer p {
  margin: 0 0 0.5em;
  color: var(--cream);
}

.site-footer a {
  color: var(--gold);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-legal {
  margin-top: 1.2em;
  font-size: 0.82rem;
  opacity: 0.85;
}

@media (max-width: 560px) {
  .hero {
    padding: 56px 0 48px;
  }

  .section {
    padding: 48px 0;
  }

  .program {
    padding: 24px;
  }

  .analysis-card,
  .related-analysis {
    padding: 24px;
  }
}
