:root {
  --ink: #111827;
  --muted: #526070;
  --paper: #fffaf3;
  --panel: #ffffff;
  --line: #d9e1ea;
  --blue: #07376f;
  --blue-soft: #eaf3ff;
  --orange: #f36c05;
  --orange-soft: #fff0e4;
  --green: #087f5b;
  --red: #b42318;
  --shadow: 0 18px 50px rgba(31, 41, 55, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(7, 55, 111, 0.1), transparent 28rem),
    linear-gradient(180deg, #fffdf8 0%, var(--paper) 100%);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: var(--blue);
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24rem;
  gap: 2rem;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 2rem;
  min-height: 24rem;
}

.hero > *,
.summary-card,
.issue-card,
.source-card {
  min-width: 0;
}

.hero-copy h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 45rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--orange);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-note {
  border: 2px solid var(--blue);
  border-radius: 8px;
  background: var(--panel);
  padding: 1rem;
  box-shadow: var(--shadow);
  max-width: 100%;
  overflow-wrap: break-word;
}

.hero-note strong,
.hero-note span {
  display: block;
}

.hero-note span {
  margin-top: 0.35rem;
  color: var(--muted);
}

.quick-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  background: rgba(255, 250, 243, 0.94);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 1rem;
  backdrop-filter: blur(12px);
}

.quick-nav a,
.filter {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  text-decoration: none;
  padding: 0.48rem 0.85rem;
  font-size: 0.9rem;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem;
}

.summary-grid,
.issue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.summary-card,
.issue-card,
.source-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.07);
}

.summary-card span,
.tag {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-card strong {
  display: block;
  color: var(--blue);
  font-size: 2rem;
  line-height: 1.1;
  margin: 0.35rem 0;
}

.summary-card p,
.issue-card p,
.source-card p {
  color: var(--muted);
  margin: 0;
}

.section {
  margin-top: 2.25rem;
}

.section-head {
  max-width: 55rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  letter-spacing: 0;
}

.section-head p:last-child {
  color: var(--muted);
}

.comparison-stack {
  display: grid;
  gap: 1rem;
}

.rate-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 0.8rem;
  border-radius: 14px;
  padding: 0.55rem;
  color: #fff;
}

.rate-panel.blue {
  background: var(--blue);
}

.rate-panel.orange {
  background: var(--orange);
}

.rate-title {
  text-align: center;
  font-size: 1.55rem;
  line-height: 1.15;
  margin: 0.25rem 0 0.5rem;
  text-transform: uppercase;
}

.table-wrap,
.rate-table-wrap,
.analysis-box {
  overflow-x: auto;
  background: var(--panel);
  border-radius: 8px;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 44rem;
}

th {
  background: var(--blue);
  color: #fff;
  text-align: left;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.72rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

td {
  color: #1f2937;
}

.rate-panel.orange th {
  background: var(--orange);
}

.analysis-box {
  color: var(--ink);
  padding: 1rem;
}

.party-mark {
  display: inline-grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 0.7rem;
}

.blue .party-mark {
  color: var(--blue);
}

.orange .party-mark {
  color: var(--orange);
}

.analysis-box h3,
.issue-card h3,
.source-card h3 {
  margin: 0 0 0.5rem;
  color: var(--blue);
}

.analysis-box p {
  margin: 0.25rem 0 0;
}

.verified {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
  font-weight: 700;
}

.check {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
}

.orange .check {
  background: var(--orange);
}

.check::before {
  content: "✓";
  color: #fff;
}

.controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.filter {
  cursor: pointer;
  font-weight: 800;
}

.filter.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.issue-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.issue-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.issue-card .status {
  width: fit-content;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 800;
}

.status.confirmed {
  background: #e7f6ef;
  color: var(--green);
}

.status.allegation {
  background: #fff4d6;
  color: #8a5a00;
}

.status.criticism {
  background: #ffe7e3;
  color: var(--red);
}

.sources-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.source-card a {
  display: inline-block;
  margin-top: 0.55rem;
}

footer {
  max-width: 1180px;
  margin: 2rem auto 0;
  padding: 1.5rem 1.25rem 2.5rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .hero,
  .rate-panel {
    grid-template-columns: 1fr;
  }

  .summary-grid,
  .issue-grid,
  .sources-list {
    grid-template-columns: 1fr 1fr;
  }

  .rate-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-top: 2.5rem;
    min-height: auto;
    width: 100vw;
    max-width: 100vw;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    overflow: hidden;
  }

  .hero-copy,
  .hero-copy p,
  .hero-note {
    width: calc(100vw - 2.5rem);
    max-width: calc(100vw - 2.5rem);
  }

  .summary-grid,
  .issue-grid,
  .sources-list {
    grid-template-columns: 1fr;
  }

  main {
    padding: 0.85rem;
  }

  .quick-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .hero-note,
  .summary-card,
  .issue-card,
  .source-card {
    width: 100%;
  }
}
