:root {
  --ink: #20364d;
  --ink-2: #40556a;
  --muted: #708090;
  --paper: #f5f3ed;
  --card: #ffffff;
  --line: #e3e4df;
  --teal: #2d8c87;
  --teal-dark: #226b68;
  --teal-soft: #e5f5f2;
  --violet-soft: #eeebf8;
  --shadow: 0 20px 60px rgba(32,54,77,.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(45,140,135,.09), transparent 32rem),
    radial-gradient(circle at 95% 15%, rgba(111,99,168,.08), transparent 30rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.7;
}
a { color: var(--teal-dark); }
.shell { width: min(1040px, calc(100% - 36px)); margin: 0 auto; }
.topbar { border-bottom: 1px solid rgba(32,54,77,.08); background: rgba(245,243,237,.9); }
.topbar-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 850; letter-spacing: -.03em; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; color: white; background: linear-gradient(145deg, var(--teal), var(--ink)); box-shadow: 0 8px 22px rgba(45,140,135,.28); font-size: 1.25rem; }
.brand-logo { display: block; object-fit: cover; }
.top-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }
.top-nav a { color: var(--ink-2); font-size: .86rem; font-weight: 760; text-decoration: none; }
.top-nav a:hover { color: var(--teal-dark); text-decoration: underline; }
main { padding: 56px 0 76px; }
.article { padding: clamp(28px, 6vw, 64px); border: 1px solid rgba(32,54,77,.08); border-radius: 30px; background: var(--card); box-shadow: var(--shadow); }
.breadcrumbs { margin: 0 0 24px; font-size: .82rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { color: var(--muted); }
.breadcrumbs li + li::before { margin-right: 10px; color: #a3adb6; content: "›"; }
.breadcrumbs a { font-weight: 700; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.eyebrow { display: inline-flex; padding: 7px 12px; border-radius: 999px; color: var(--teal-dark); background: var(--teal-soft); font-size: .78rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
h1 { max-width: 850px; margin: 18px 0 22px; font-size: clamp(2.5rem, 7vw, 4.7rem); line-height: 1.02; letter-spacing: -.055em; }
h2 { margin: 46px 0 12px; font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.18; letter-spacing: -.03em; }
h3 { margin: 26px 0 8px; font-size: 1.15rem; }
p, li { color: var(--ink-2); }
.lead { max-width: 800px; font-size: 1.18rem; }
.cta { display: inline-flex; margin: 16px 0 8px; padding: 13px 20px; border-radius: 999px; color: white; background: var(--teal); box-shadow: 0 10px 26px rgba(45,140,135,.22); font-weight: 800; text-decoration: none; }
.cta:hover { background: var(--teal-dark); }
.note { margin: 24px 0; padding: 18px 20px; border: 1px solid rgba(45,140,135,.2); border-radius: 16px; background: var(--teal-soft); }
.note p { margin: 0; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin: 20px 0; }
.card { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fbfbf8; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.axis-list, .party-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; padding: 0; list-style: none; }
.axis-list li, .party-list li { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fbfbf8; }
.axis-list strong, .party-list strong { display: block; color: var(--ink); }
.party-profile-link { display: inline-block; margin-top: 2px; font-weight: 700; }
.profile-picker { display: flex; align-items: center; gap: 12px; margin: 28px 0 18px; }
.profile-picker label { color: var(--ink); font-weight: 800; }
.profile-picker select { min-width: min(100%, 340px); padding: 11px 38px 11px 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--card); font: inherit; font-weight: 700; }
.profile-summary { margin: 0 0 20px; color: var(--ink-2); }
.profile-article { width: min(1320px, calc(100% - 36px)); }
.profile-links { gap: 8px 14px; }
.profile-editorial { margin: 32px 0 26px; padding: clamp(22px, 4vw, 34px); border: 1px solid rgba(45,140,135,.2); border-radius: 22px; background: linear-gradient(145deg, var(--teal-soft), #fbfbf8 72%); }
.profile-editorial-kicker { color: var(--teal-dark); font-size: .76rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.profile-editorial h2 { margin: 7px 0 18px; }
.profile-editorial-body { max-width: 980px; }
.profile-editorial-body p { margin: 0 0 16px; }
.profile-editorial-body p:last-child { margin-bottom: 0; }
.profile-editorial-note { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid rgba(45,140,135,.2); color: var(--muted); font-size: .86rem; }
.profile-status { margin: 22px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fbfbf8; }
.evidence-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.evidence-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .93rem; line-height: 1.55; }
.evidence-table caption { padding: 16px 18px; color: var(--ink-2); font-weight: 700; text-align: left; }
.evidence-table th { padding: 13px 16px; color: var(--ink); background: var(--teal-soft); text-align: left; vertical-align: top; }
.evidence-table th:nth-child(1) { width: 31%; }
.evidence-table th:nth-child(2) { width: 51%; }
.evidence-table th:nth-child(3) { width: 18%; }
.evidence-table td { padding: 17px 16px; border-top: 1px solid var(--line); color: var(--ink-2); vertical-align: top; overflow-wrap: anywhere; }
.evidence-table tbody tr:nth-child(even) { background: #fbfbf8; }
.evidence-question-meta { display: block; margin-bottom: 5px; color: var(--teal-dark); font-size: .76rem; font-weight: 850; letter-spacing: .025em; text-transform: uppercase; }
.evidence-question { display: block; color: var(--ink); line-height: 1.45; }
.evidence-source { display: inline-flex; flex-direction: column; gap: 3px; font-weight: 760; }
.evidence-source small { color: var(--muted); font-size: .72rem; font-weight: 600; overflow-wrap: anywhere; }
.evidence-unavailable { color: var(--muted); font-style: italic; }
.related { margin-top: 50px; padding-top: 28px; border-top: 1px solid var(--line); }
.related h2 { margin-top: 0; }
.related-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.related-links a { font-weight: 760; }
footer { padding: 0 0 46px; color: var(--muted); text-align: center; font-size: .85rem; }

@media (max-width: 760px) {
  .topbar-inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .top-nav { justify-content: flex-start; }
  main { padding-top: 26px; }
  .card-grid, .axis-list, .party-list { grid-template-columns: 1fr; }
  .profile-picker { align-items: stretch; flex-direction: column; }
  .profile-picker select { width: 100%; }
  .evidence-table-wrap { overflow: visible; border: 0; border-radius: 0; background: transparent; }
  .evidence-table, .evidence-table tbody, .evidence-table tr, .evidence-table td { display: block; width: 100%; }
  .evidence-table { font-size: .91rem; }
  .evidence-table caption { padding: 0 0 14px; }
  .evidence-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .evidence-table tr { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
  .evidence-table tbody tr:nth-child(even) { background: var(--card); }
  .evidence-table td { padding: 14px 15px; border-top: 1px solid var(--line); }
  .evidence-table td:first-child { border-top: 0; background: #fbfbf8; }
  .evidence-table td::before { display: block; margin-bottom: 5px; color: var(--muted); font-size: .7rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; content: attr(data-label); }
  .evidence-table td:first-child::before { content: none; }
}
