:root {
  color-scheme: dark;
  --bg: #06111f;
  --paper: #0d1b2f;
  --paper-raised: #11243d;
  --text: #edf6ff;
  --muted: #9eb1c7;
  --line: #2d4765;
  --soft-line: rgba(154, 184, 215, 0.18);
  --red: #ff6b7a;
  --red-soft: rgba(255, 107, 122, 0.13);
  --green: #57d79a;
  --green-soft: rgba(87, 215, 154, 0.13);
  --orange: #f5b65b;
  --blue: #77c8ff;
  --blue-soft: rgba(119, 200, 255, 0.14);
  --cyan: #91e6ff;
  --gray-soft: rgba(148, 163, 184, 0.14);
  --radius: 14px;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #071426 0%, var(--bg) 38%, #050b14 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 18, 32, 0.9);
  border-bottom: 1px solid var(--soft-line);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 18px 10px;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(145, 230, 255, 0.45);
  border-radius: 12px;
  background: linear-gradient(135deg, #1c78ff 0%, #68d9ff 100%);
  color: #03101d;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(28, 120, 255, 0.26);
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 4vw, 2.1rem);
  line-height: 0.95;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  border: 1px solid var(--soft-line);
  background: transparent;
}

.site-nav a {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 10px 14px;
  border-right: 1px solid var(--soft-line);
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.site-nav a:last-child {
  border-right: 0;
}

.site-nav a:hover,
.site-nav a.active {
  background: #f4f8ff;
  color: #06111f;
}

.topic-strip {
  display: flex;
  gap: 0;
  overflow-x: auto;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px 10px;
}

.topic-strip span {
  white-space: nowrap;
  border-right: 1px solid var(--soft-line);
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.topic-strip span:first-child {
  padding-left: 0;
  color: var(--cyan);
}

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

.score-ticker {
  display: block;
  align-items: center;
  margin: -6px 0 14px;
  border-bottom: 1px solid var(--soft-line);
  background: transparent;
  overflow: hidden;
}

.ticker-window {
  overflow: hidden;
  min-width: 0;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 10px;
  padding: 9px 0 10px;
  animation: ticker-slide 52s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  padding: 0 16px 0 0;
  border-right: 1px solid var(--soft-line);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.ticker-item strong {
  overflow: hidden;
  max-width: 270px;
  text-overflow: ellipsis;
}

.ticker-item span:last-child {
  overflow: hidden;
  max-width: 190px;
  color: var(--muted);
  font-size: 0.9rem;
  text-overflow: ellipsis;
}

.ticker-points {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ticker-item.direction-positive .ticker-points {
  color: var(--green);
}

.ticker-item.direction-negative .ticker-points {
  color: var(--red);
}

@keyframes ticker-slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.hero,
.detail-hero {
  display: grid;
  gap: 18px;
  margin: 0 0 24px;
}

.hero {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: stretch;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--soft-line);
}

.eyebrow,
.category,
.label,
.section-kicker {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 9vw, 6.6rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin: 4px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1;
}

h3 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.12;
}

.lead {
  max-width: 710px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.3vw, 1.35rem);
  line-height: 1.42;
}

.hero-side {
  display: grid;
  gap: 14px;
}

.government-counter,
.score-snapshot {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
  padding: 16px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(17, 36, 61, 0.96), rgba(10, 25, 43, 0.96));
  box-shadow: var(--shadow);
}

.government-counter span,
.score-snapshot > span {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.government-counter strong,
.score-snapshot strong {
  display: block;
  margin: 10px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 0.92;
}

.government-counter p,
.score-snapshot p {
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.42;
}

.snapshot-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 10px;
}

.snapshot-scores div {
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.snapshot-scores small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.snapshot-scores b {
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  line-height: 1;
}

.government-counter a,
.promise-link,
.source-button,
.back-link,
.role-row a {
  color: var(--cyan);
  font-weight: 900;
  text-decoration: none;
}

.section {
  margin-top: 28px;
}

.section-head {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--soft-line);
}

.section-head h2,
.section-head p {
  grid-column: 2;
}

.section-head .section-kicker {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding-top: 7px;
}

.section-head p,
.muted {
  color: var(--muted);
  line-height: 1.5;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.promise-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 16px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 36, 61, 0.98), rgba(11, 27, 47, 0.98));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.promise-card:hover {
  border-color: rgba(145, 230, 255, 0.52);
  background: linear-gradient(180deg, rgba(20, 45, 76, 0.98), rgba(12, 31, 54, 0.98));
  transform: translateY(-2px);
}

.promise-card:first-child {
  grid-column: span 2;
  min-height: 300px;
}

.promise-card:first-child h3 {
  font-size: clamp(1.8rem, 4vw, 3.1rem);
}

.promise-card p,
.article-item p,
.link-item p,
.minister-head p,
.role-row p,
.missing-data {
  color: var(--muted);
  line-height: 1.46;
}

.card-top,
.article-meta,
.score-row,
.minister-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.card-top {
  justify-content: space-between;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-fulfilled,
.direction-positive {
  color: var(--green);
  background: var(--green-soft);
}

.status-broken,
.direction-negative {
  color: var(--red);
  background: var(--red-soft);
}

.status-in_progress {
  color: var(--orange);
  background: #fff0d8;
}

.status-unclear,
.status-pending,
.direction-neutral,
.direction-unclear {
  color: var(--muted);
  background: var(--gray-soft);
}

.progress-shell {
  position: relative;
  overflow: hidden;
  height: 8px;
  margin: auto 0 12px;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.progress-line {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: var(--blue);
}

.progress-line.positive {
  background: var(--green);
}

.progress-line.negative {
  background: var(--red);
}

.score {
  display: inline-flex;
  align-items: center;
  min-width: 42px;
  border-top: 2px solid currentColor;
  padding-top: 5px;
  font-weight: 900;
}

.score-row-simple {
  gap: 14px;
  margin-top: auto;
}

.positive {
  color: var(--green);
}

.negative {
  color: var(--red);
}

.article-list,
.timeline,
.two-cols,
.minister-list {
  display: grid;
  gap: 12px;
  border-top: 0;
}

.article-item,
.link-item,
.minister-card {
  display: block;
  padding: 16px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: rgba(13, 27, 47, 0.78);
}

.article-item h3,
.link-item h3 {
  max-width: 880px;
  margin-bottom: 8px;
}

.article-item h3 a,
.link-item h3 a {
  text-decoration: none;
}

.article-item h3 a:hover,
.link-item h3 a:hover {
  color: var(--cyan);
}

.article-meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.source-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px solid rgba(145, 230, 255, 0.45);
  border-radius: 999px;
  background: var(--blue-soft);
}

.back-link {
  width: fit-content;
}

.detail-card,
.empty-state {
  padding: 18px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 36, 61, 0.98), rgba(11, 27, 47, 0.98));
  box-shadow: var(--shadow);
}

.detail-card h1 {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 0.92;
}

.about-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.about-card {
  padding: 18px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: rgba(13, 27, 47, 0.82);
}

.about-card-large {
  grid-column: 1 / -1;
}

.about-card h2 {
  margin-bottom: 12px;
}

.about-card p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.62;
}

.about-card p:last-child {
  margin-bottom: 0;
}

blockquote {
  margin: 16px 0;
  padding: 12px 14px;
  border-left: 5px solid var(--cyan);
  border-radius: 10px;
  background: var(--gray-soft);
  line-height: 1.5;
}

.score-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 20px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: rgba(13, 27, 47, 0.8);
  overflow: hidden;
}

.score-panel div {
  padding: 14px;
  border-right: 1px solid var(--soft-line);
}

.score-panel div:last-child {
  border-right: 0;
}

.score-panel strong {
  display: block;
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.fulfilled-summary strong {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

.fulfilled-grid .promise-card:first-child {
  grid-column: span 1;
  min-height: 250px;
}

.fulfilled-card {
  border-color: rgba(87, 215, 154, 0.28);
}

.reasoning {
  color: var(--text);
}

.link-item.direction-positive {
  border-left: 5px solid var(--green);
  padding-left: 12px;
}

.link-item.direction-negative {
  border-left: 5px solid var(--red);
  padding-left: 12px;
}

.link-item.direction-neutral,
.link-item.direction-unclear {
  border-left: 5px solid var(--soft-line);
  padding-left: 12px;
}

.minister-card {
  background: rgba(13, 27, 47, 0.82);
}

.minister-head {
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.minister-head h3 {
  margin-bottom: 4px;
  font-size: 1.55rem;
}

.minister-facts {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0;
  margin: 0 0 14px;
  border: 1px solid var(--soft-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.minister-facts div {
  padding: 12px;
  border-right: 1px solid var(--soft-line);
}

.minister-facts div:last-child {
  border-right: 0;
}

.minister-facts dt {
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.minister-facts dd {
  margin: 6px 0 0;
  line-height: 1.5;
}

.minister-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 12px;
  background: rgba(119, 200, 255, 0.065);
  overflow: hidden;
}

.minister-breakdown section {
  padding: 12px;
  border-right: 1px solid var(--soft-line);
}

.minister-breakdown section:last-child {
  border-right: 0;
}

.minister-breakdown h4 {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.role-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.role-list li {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.role-list strong,
.role-list span,
.role-list small {
  overflow-wrap: anywhere;
}

.role-list span {
  line-height: 1.42;
}

.role-list small {
  color: var(--muted);
  font-weight: 800;
}

.role-list a {
  width: fit-content;
  color: var(--cyan);
  font-weight: 900;
  text-decoration: none;
}

.missing-data {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.role-timeline {
  display: grid;
  border-top: 1px solid var(--soft-line);
}

.role-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--soft-line);
}

.role-row small {
  color: var(--muted);
  font-weight: 800;
}

.role-type {
  width: fit-content;
  border-left: 5px solid var(--soft-line);
  padding-left: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.role-party .role-type {
  border-left-color: var(--blue);
}

.role-government .role-type {
  border-left-color: var(--green);
}

.role-public .role-type {
  border-left-color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--soft-line);
  color: var(--muted);
  padding: 22px 18px 34px;
  background: rgba(8, 18, 32, 0.9);
}

.site-footer p {
  max-width: 1180px;
  margin: 0 auto;
  line-height: 1.5;
}

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

  .government-counter,
  .score-snapshot {
    width: 100%;
    min-height: 0;
  }

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

  .promise-card:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .header-inner {
    align-items: stretch;
    flex-direction: column;
    padding: 10px 14px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .site-nav {
    width: 100%;
    gap: 0;
    padding: 0;
  }

  .site-nav a {
    flex: 1 1 0;
    min-width: 0;
    min-height: 34px;
    padding: 8px 5px;
    font-size: 0.72rem;
    line-height: 1;
    text-align: center;
  }

  .topic-strip {
    padding: 0 14px 9px;
  }

  main {
    padding: 14px;
  }

  .score-ticker {
    margin-top: -2px;
  }

  .ticker-track {
    animation-duration: 44s;
  }

  .ticker-item {
    max-width: 82vw;
  }

  .ticker-item strong {
    max-width: 42vw;
  }

  .ticker-item span:last-child {
    max-width: 28vw;
  }

  .section-head {
    display: block;
  }

  .promise-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .promise-card:first-child {
    grid-column: span 1;
  }

  .score-panel,
  .minister-facts,
  .minister-breakdown,
  .about-page {
    grid-template-columns: 1fr;
  }

  .about-card-large {
    grid-column: auto;
  }

  .score-panel div,
  .minister-facts div,
  .minister-breakdown section {
    border-right: 0;
    border-bottom: 1px solid var(--soft-line);
  }

  .score-panel div:last-child,
  .minister-facts div:last-child,
  .minister-breakdown section:last-child {
    border-bottom: 0;
  }

  .role-row {
    grid-template-columns: 1fr;
  }

  .detail-card,
  .empty-state {
    padding: 14px;
  }
}
