:root {
  --navy: #102a4d;
  --navy-deep: #071b31;
  --blue: #00539b;
  --blue-dark: #003b70;
  --blue-soft: #e7f1f8;
  --red: #c8102e;
  --red-soft: #f9e9ec;
  --white: #ffffff;
  --gray-50: #f7f8fa;
  --gray-100: #f0f1f2;
  --gray-300: #c9d4dd;
  --gray-600: #536b7d;
  --shadow: 0 18px 50px rgb(16 42 77 / 0.12);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--navy);
  background: var(--white);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

a { color: inherit; }

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  border-radius: 4px;
}

.skip-link:focus { transform: none; }

.city-bar {
  color: var(--white);
  background: var(--navy-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.city-bar-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--gray-300);
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.wordmark {
  display: grid;
  text-decoration: none;
  line-height: 1;
}

.wordmark-kicker,
.eyebrow,
.panel-label,
.format {
  color: var(--blue-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.wordmark-title {
  margin-top: 6px;
  font-size: 1.35rem;
  font-weight: 850;
}

.wordmark-title strong { color: var(--red); }

nav { display: flex; gap: 26px; }

nav a,
.site-footer a {
  font-weight: 750;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: transparent;
}

nav a:hover,
nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible { text-decoration-color: var(--red); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 88px;
  background:
    radial-gradient(circle at 91% 11%, rgb(200 16 46 / 0.1), transparent 27%),
    radial-gradient(circle at 4% 92%, rgb(0 83 155 / 0.09), transparent 30%),
    var(--gray-50);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: linear-gradient(var(--blue) 0 78%, var(--red) 78% 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  align-items: center;
  gap: 72px;
}

.eyebrow,
.panel-label,
.format { margin: 0; }

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h1 span { color: var(--red); }

.lede {
  max-width: 680px;
  margin-bottom: 30px;
  color: #294b67;
  font-size: 1.25rem;
  line-height: 1.55;
}

.hero-actions,
.source-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 2px solid var(--blue);
  border-radius: 4px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgb(0 83 155 / 0.2);
}

.button.primary { color: var(--white); background: var(--blue); }
.button.secondary { color: var(--blue-dark); background: var(--white); }

.neutrality-note {
  margin: 18px 0 0;
  color: var(--gray-600);
  font-size: 0.92rem;
  font-style: italic;
}

.screen-guidance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  color: var(--blue-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

.screen-guidance::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.screen-guidance + .neutrality-note { margin-top: 8px; }

.quick-read {
  padding: 30px;
  border: 1px solid var(--gray-300);
  border-top: 7px solid var(--blue);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.quick-row {
  display: grid;
  grid-template-columns: 74px 80px 1fr;
  align-items: center;
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--gray-300);
}

.quick-row strong {
  color: var(--blue-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  line-height: 0.8;
}

.quick-row p { display: grid; gap: 3px; margin: 0; }
.quick-row b { font-size: 1.05rem; text-transform: uppercase; }
.quick-row span { color: var(--gray-600); font-size: 0.88rem; }

.issue-tag {
  color: var(--navy) !important;
  font-size: 0.72rem !important;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.seat-key {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding-top: 20px;
  font-size: 0.82rem;
  font-weight: 750;
}

.seat-key span { display: flex; align-items: center; gap: 7px; }

.seat-key i {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1.5px solid currentColor;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 900;
}

.seat-key .district { color: var(--blue-dark); border-radius: 7px 7px 2px 2px; }
.seat-key .citywide { color: var(--red); background: var(--red-soft); border-radius: 50%; }

.guide-section,
.text-summary-section,
.downloads-section,
.sources-section { padding: 92px 0; }

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

.section-heading.compact { margin-bottom: 30px; }

h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.section-heading > p {
  max-width: 430px;
  margin-bottom: 3px;
  color: var(--gray-600);
  font-size: 1rem;
}

.guide-preview {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--gray-300);
  border-radius: 14px;
  background: var(--gray-100);
  box-shadow: var(--shadow);
}

.guide-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: var(--white);
}

.guide-preview > a {
  display: block;
  border-radius: 6px;
  outline-offset: 5px;
}

.guide-preview figcaption {
  padding: 18px 6px 1px;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.text-summary-section {
  color: var(--white);
  background: var(--navy-deep);
}

.text-summary-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 64px;
  align-items: start;
}

.text-summary-intro .eyebrow { color: #9bc7e7; }
.text-summary-intro h2 { color: var(--white); }
.text-summary-intro > p:last-child { margin: 22px 0 0; color: #d8e8f3; font-size: 1.05rem; }

.outcome-table-wrap { min-width: 0; }
.outcome-table { width: 100%; border-collapse: collapse; }
.outcome-table th,
.outcome-table td { padding: 14px 16px; text-align: left; vertical-align: top; }
.outcome-table th {
  color: #b9d5e9;
  border-bottom: 1px solid rgb(185 213 233 / 0.45);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.outcome-table th:first-child,
.outcome-table th:nth-child(2),
.outcome-table td:first-child,
.outcome-table td:nth-child(2) { width: 84px; text-align: center; font-weight: 900; }
.outcome-table td { border-bottom: 1px solid rgb(185 213 233 / 0.22); color: #eaf2f8; }
.outcome-table td:first-child,
.outcome-table td:nth-child(2) { color: var(--white); }
.outcome-table b { color: var(--white); }
.summary-note { margin: 18px 16px 0; color: #b9d5e9; font-size: 0.92rem; }
.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;
}

.downloads-section { background: var(--blue-soft); }

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

.download-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--gray-300);
  border-top: 6px solid var(--blue);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 10px 30px rgb(16 42 77 / 0.08);
}

.download-card.is-recommended {
  border-color: var(--blue);
  box-shadow: 0 16px 38px rgb(0 83 155 / 0.16);
}

.recommendation {
  min-height: 24px;
  margin: -30px -30px 22px;
  padding: 7px 12px 6px;
  color: var(--white);
  background: var(--blue-dark);
  border-radius: 8px 8px 0 0;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.recommendation[aria-hidden="true"] {
  visibility: hidden;
}

.download-card h3 {
  margin: 12px 0 12px;
  font-size: 1.55rem;
  line-height: 1.1;
}

.download-card > p:not(.format) { color: var(--gray-600); }

dl {
  display: grid;
  gap: 12px;
  margin: auto 0 24px;
  padding: 20px 0 0;
}

dl div { border-top: 1px solid var(--gray-300); padding-top: 10px; }
dt { color: var(--gray-600); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
dd { margin: 3px 0 0; font-weight: 750; }

.download-card .button { width: 100%; }

.sources-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 72px;
  align-items: center;
}

.sources-grid > div > p:not(.eyebrow) {
  max-width: 650px;
  margin: 24px 0 28px;
  color: var(--gray-600);
  font-size: 1.08rem;
}

.text-link {
  color: var(--blue-dark);
  font-weight: 850;
  text-underline-offset: 5px;
}

.source-list {
  padding: 28px 30px;
  border-left: 6px solid var(--red);
  background: var(--red-soft);
}

.source-list ul {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding-left: 20px;
}

.source-list a { font-weight: 750; text-underline-offset: 4px; }

.site-footer {
  color: var(--white);
  background: var(--navy-deep);
}

.footer-inner {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p { margin: 0; color: #c7d5e0; }
.footer-inner .footer-title { margin-bottom: 5px; color: var(--white); font-weight: 850; }

@media (max-width: 900px) {
  .hero-grid,
  .sources-grid,
  .text-summary-grid { grid-template-columns: 1fr; gap: 48px; }
  .download-grid { grid-template-columns: 1fr; }
  .download-card { min-height: 0; }
  .download-card dl { margin-top: 24px; }
  .section-heading { align-items: start; flex-direction: column; gap: 16px; }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .city-bar-inner { min-height: 40px; align-items: start; flex-direction: column; justify-content: center; gap: 0; }
  .site-header { position: static; }
  .header-inner { min-height: 78px; }
  nav { display: none; }
  .hero { padding: 58px 0 64px; }
  .hero-grid { gap: 36px; }
  h1 { font-size: clamp(2.7rem, 13vw, 4.5rem); }
  .lede { font-size: 1.08rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .quick-read { padding: 22px; }
  .quick-row { grid-template-columns: 62px 62px 1fr; gap: 10px; }
  .quick-row strong { font-size: 3.25rem; }
  .quick-row b { font-size: 0.9rem; }
  .guide-section,
  .text-summary-section,
  .downloads-section,
  .sources-section { padding: 66px 0; }
  .guide-preview { padding: 10px; }
  .guide-preview figcaption { padding: 14px 4px 4px; }
  .text-summary-grid { gap: 34px; }
  .outcome-table th,
  .outcome-table td { padding: 12px 8px; }
  .outcome-table th:first-child,
  .outcome-table th:nth-child(2),
  .outcome-table td:first-child,
  .outcome-table td:nth-child(2) { width: 54px; }
  .summary-note { margin-inline: 8px; }
  .source-actions { align-items: stretch; flex-direction: column; }
  .source-list { padding: 24px 22px; }
  .footer-inner { padding: 34px 0; align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

/* Sources page */
.facts-main {
  width: min(900px, calc(100% - 40px));
  margin-inline: auto;
  padding: 72px 0 88px;
}

.facts-intro {
  padding-bottom: 36px;
  border-bottom: 4px solid var(--blue);
}

.facts-intro h1 {
  max-width: none;
  margin: 10px 0 18px;
  font-size: clamp(2.7rem, 7vw, 4.8rem);
}

.facts-intro > p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--gray-600);
  font-size: 1.08rem;
}

.fact-section {
  padding: 42px 0;
  border-bottom: 1px solid var(--gray-300);
}

.fact-section h2 {
  margin: 0 0 24px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.fact-section h3 {
  margin: 7px 0 8px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.fact-section > p {
  max-width: 780px;
  color: #294b67;
}

.fact-section a {
  color: var(--blue-dark);
  font-weight: 800;
  text-underline-offset: 4px;
}

.document-list,
.facts-grid {
  display: grid;
  gap: 18px;
}

.document-list article,
.facts-grid article {
  padding: 24px;
  border: 1px solid var(--gray-300);
  border-left: 5px solid var(--blue);
  background: var(--white);
}

.document-list article > p:not(.document-type) {
  margin-bottom: 12px;
  color: var(--gray-600);
}

.document-type {
  margin: 0;
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

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

.fact-section ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 21px;
}

.qualifications {
  margin-top: 12px;
  padding: 34px;
  border: 1px solid #e5a9b4;
  border-left: 5px solid var(--red);
  background: var(--red-soft);
}

.qualifications h2 { margin-bottom: 18px; }

.facts-return { padding-top: 40px; }

@media (max-width: 680px) {
  .facts-main { width: min(100% - 28px, 900px); padding: 50px 0 64px; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact-section { padding: 34px 0; }
  .document-list article,
  .facts-grid article { padding: 20px; }
  .qualifications { padding: 24px 20px; }
}
