@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/dm-serif-display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #0a1628;
  --navy-deep: #06101c;
  --navy-mid: #132a4a;
  --authority: #1a3a6b;
  --signal: #c41e3a;
  --signal-deep: #9e1830;
  --gold: #b8956c;
  --mist: #eef2f7;
  --fog: #d9e2ef;
  --white: #ffffff;
  --ink: #0f172a;
  --slate: #475569;
  --muted: #64748b;
  --line: #cfd8e6;
  --focus: #2563eb;
  --sans: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --display: "DM Serif Display", Georgia, serif;
  --radius: 4px;
  --max: 1180px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--authority); text-underline-offset: 0.18em; }
a:hover { color: var(--signal); }
button, input, select, textarea { font: inherit; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.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;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.narrow { width: min(100% - 2rem, 720px); margin-inline: auto; }

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--signal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.muted { color: var(--slate); }
.tiny { font-size: 0.875rem; color: var(--muted); }

h1, h2, h3, h4 {
  margin: 0 0 0.75rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}
h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}
h2 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 400;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(207, 216, 230, 0.9);
  backdrop-filter: blur(12px);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}
.brand:hover { color: var(--navy); }
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--navy) 0%, var(--authority) 100%);
  color: var(--white);
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0;
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--authority); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 1rem;
  background: var(--signal);
  color: var(--white) !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--signal-deep); color: var(--white) !important; }
.menu-toggle {
  display: none;
  margin-left: auto;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--signal);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.button:hover {
  background: var(--signal-deep);
  color: var(--white);
  transform: translateY(-1px);
}
.button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}
.button.navy {
  background: var(--navy);
}
.button.navy:hover { background: var(--authority); color: var(--white); }
.button.ghost {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.button.ghost:hover {
  background: var(--navy);
  color: var(--white);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  color: #ffffff;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(26, 58, 107, 0.55), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(196, 30, 58, 0.22), transparent 50%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 45%, #152a4a 100%);
  overflow: hidden;
}
.hero :where(h1, h2, h3, p, span, a) { color: inherit; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3.5rem, 8vw, 6rem);
  max-width: 780px;
}
.hero-brand {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  color: #d4b896;
  letter-spacing: 0.01em;
  line-height: 1.05;
}
.hero h1 {
  color: #ffffff;
  margin-bottom: 1.25rem;
  max-width: 14ch;
}
.hero .lede {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.65;
  color: #e8eef7;
}
.hero .button {
  color: #ffffff;
}
.hero .button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.75);
  background: transparent;
}
.hero .button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-trust span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #d7e0ec;
}

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section.mist { background: var(--mist); }
.section.navy {
  background: var(--navy);
  color: #ffffff;
}
.section.navy h2,
.section.navy h3,
.section.navy p { color: #ffffff; }
.section.navy .election-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}
.section.navy .election-card h3 { color: #ffffff; }
.section.navy .election-card p { color: #d7e0ec; }
.section.navy .election-card:hover {
  border-color: #d4b896;
  background: rgba(255, 255, 255, 0.08);
}
.section-head {
  max-width: 720px;
  margin-bottom: 2.5rem;
}
.section-head p {
  margin: 0.75rem 0 0;
  font-size: 1.05rem;
  color: var(--slate);
}
.section.navy .section-head p { color: rgba(238, 242, 247, 0.75); }

.principle-grid,
.family-grid,
.card-grid,
.election-grid {
  display: grid;
  gap: 1.25rem;
}
.principle-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.family-grid { grid-template-columns: repeat(3, 1fr); }
.card-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.election-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.principle,
.family-link,
.info-block,
.election-card,
.research-card,
.issue-row {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.family-link:hover,
.election-card:hover,
.research-card:hover,
.issue-row:hover {
  border-color: var(--authority);
  box-shadow: 0 12px 32px rgba(10, 22, 40, 0.08);
  transform: translateY(-2px);
  color: inherit;
}
.principle .num,
.family-link .num {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.principle h3,
.family-link h3,
.election-card h3,
.research-card h3 { margin-bottom: 0.5rem; }
.principle p,
.family-link p,
.election-card p,
.research-card p,
.issue-row p {
  margin: 0;
  color: var(--slate);
  font-size: 0.98rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.panel {
  background: linear-gradient(160deg, var(--navy) 0%, var(--authority) 100%);
  color: var(--white);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius);
}
.panel h3 { color: var(--white); }
.panel p { color: rgba(238, 242, 247, 0.85); }
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat span {
  font-size: 0.82rem;
  color: rgba(238, 242, 247, 0.75);
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
table.compare th,
table.compare td {
  padding: 1rem 1.1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
table.compare th {
  background: var(--mist);
  color: var(--navy);
  font-weight: 700;
}
table.compare th:first-child,
table.compare td:first-child {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
table.compare tr:last-child td { border-bottom: 0; }
.usp-cell { background: rgba(26, 58, 107, 0.06); }

.page-hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 0 2.75rem;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(26, 58, 107, 0.16), transparent 55%),
    radial-gradient(ellipse 40% 60% at 0% 100%, rgba(196, 30, 58, 0.06), transparent 50%),
    linear-gradient(180deg, #f5f7fb 0%, var(--mist) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -4rem;
  top: -2rem;
  width: min(42vw, 380px);
  height: min(42vw, 380px);
  border: 1px solid rgba(26, 58, 107, 0.12);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero h1 { max-width: 16ch; position: relative; }
.page-hero .lede {
  max-width: 42rem;
  margin: 0;
  font-size: 1.1rem;
  color: var(--slate);
  position: relative;
}
.page-hero .eyebrow { position: relative; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.breadcrumbs a { color: var(--authority); text-decoration: none; font-weight: 600; }
.breadcrumbs span[aria-hidden="true"] { color: var(--line); }

.prose { max-width: 720px; }
.prose p { margin: 0 0 1.15rem; color: var(--slate); font-size: 1.05rem; }
.prose ul, .prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--slate);
}
.prose li { margin-bottom: 0.45rem; }
.prose strong { color: var(--ink); }

.callout {
  margin: 2rem 0;
  padding: 1.35rem 1.5rem;
  border-left: 4px solid var(--signal);
  background: var(--mist);
}
.callout p { margin: 0; color: var(--ink); font-weight: 500; }

.issue-list { display: grid; gap: 0.85rem; }
.issue-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}
.issue-row .meta {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--authority);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: rgba(26, 58, 107, 0.1);
  color: var(--authority);
  font-size: 0.78rem;
  font-weight: 700;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p {
  margin: 0.75rem 0 0;
  color: var(--slate);
}

.cta-band {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: linear-gradient(120deg, var(--navy-deep), var(--authority));
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p {
  max-width: 36rem;
  margin: 0.75rem auto 0;
  color: rgba(238, 242, 247, 0.8);
}
.cta-band .actions { justify-content: center; }

.site-footer {
  background: var(--navy-deep);
  color: rgba(238, 242, 247, 0.78);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.site-footer .brand { color: var(--white); margin-bottom: 0.85rem; }
.site-footer h2 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a {
  display: block;
  color: rgba(238, 242, 247, 0.78);
  text-decoration: none;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

.form-intro {
  max-width: 40rem;
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.finding-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
.finding-card {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.finding-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.45rem 0 0.65rem;
  color: var(--ink);
  letter-spacing: 0;
}
@media (min-width: 900px) {
  .finding-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.form-row {
  display: grid;
  gap: 0.85rem;
  max-width: 480px;
}
.form-row label { font-weight: 600; color: var(--navy); }
.form-row input,
.form-row select,
.form-row textarea {
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row .botcheck {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-note.is-success { color: var(--navy); }
.form-note.is-error { color: #8b1e1e; }
.form-row button:disabled { opacity: 0.65; cursor: wait; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.filter-bar button {
  min-height: 40px;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}
.filter-bar button[aria-pressed="true"],
.filter-bar button:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: 1.1rem 1.2rem;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.toc h2 {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.toc a {
  display: block;
  text-decoration: none;
  color: var(--slate);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.toc a:hover { color: var(--authority); }

.content-with-toc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 2.5rem;
  align-items: start;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-inner,
.page-hero .container {
  animation: rise 0.7s ease both;
}
@media (prefers-reduced-motion: reduce) {
  .hero-inner,
  .page-hero .container { animation: none; }
}

@media (max-width: 960px) {
  .family-grid { grid-template-columns: 1fr 1fr; }
  .split,
  .content-with-toc,
  .footer-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .stat-row { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.75rem 1rem 1.25rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(10, 22, 40, 0.08);
  }
  .nav.open { display: flex; }
  .nav a,
  .nav-cta {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0.35rem 0.25rem;
  }
  .nav-cta { justify-content: center; margin-top: 0.5rem; }
  .family-grid { grid-template-columns: 1fr; }
  .issue-row { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
}
