:root {
  --red-700: #a71924;
  --red-600: #c92832;
  --red-100: #ffe8ea;
  --gold: #d7a545;
  --green: #167d55;
  --blue: #2563a7;
  --ink: #17212f;
  --muted: #667085;
  --line: #e6e9ef;
  --soft: #f5f7fb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(23, 33, 47, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--red-600) 0 50%, var(--white) 50% 100%);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(201, 40, 50, 0.22);
}

nav a {
  color: var(--muted);
  font-weight: 650;
}

nav a:hover {
  color: var(--red-700);
}

.section-pad {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.hero {
  min-height: 76vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.65fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
  background:
    linear-gradient(115deg, rgba(167, 25, 36, 0.1), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.report-year,
.section-heading p {
  margin: 0 0 10px;
  color: var(--red-700);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 30px;
  color: #3c4757;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: var(--red-700);
  box-shadow: 0 14px 30px rgba(167, 25, 36, 0.22);
}

.button.secondary {
  color: var(--red-700);
  background: var(--white);
  border: 1px solid #efc7ca;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.flag-strip {
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, var(--red-600) 0 50%, var(--white) 50% 100%);
  border-right: 1px solid var(--line);
}

.metric-label,
.card-label,
dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

#hero-balance {
  display: block;
  margin: 6px 0 28px;
  color: var(--green);
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1;
}

.hero-panel dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.hero-panel div:not(.flag-strip),
.hero-panel dl div {
  padding-left: 8px;
}

dt,
dd {
  margin: 0;
}

dd {
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.25;
}

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

.metric-card {
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(23, 33, 47, 0.06);
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.metric-card span:last-child {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  background: var(--soft);
}

.photo-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 15vw, 230px);
  gap: 14px;
}

.photo-tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(167, 25, 36, 0.1), rgba(215, 165, 69, 0.12)),
    #f1f4f8;
  box-shadow: 0 12px 30px rgba(23, 33, 47, 0.07);
}

.photo-tile.large {
  grid-column: span 2;
  grid-row: span 2;
}

.photo-tile.tall {
  grid-row: span 2;
}

.photo-tile.wide {
  grid-column: span 2;
}

.photo-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease, filter 240ms ease;
}

.photo-tile:hover img {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.02);
}

.photo-tile::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.16));
  pointer-events: none;
}

.photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a3340;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.narrative p,
.methodology p,
.source-box p {
  color: #3e4b5d;
  font-size: 17px;
}

.source-box {
  align-self: start;
  padding: 26px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
}

.mini-kpis {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.mini-kpis span {
  padding: 14px;
  border-radius: 8px;
  background: var(--soft);
}

.mini-kpis strong {
  color: var(--red-700);
  font-size: 28px;
}

.split-band {
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.chart-table-layout,
.budget-layout,
.method-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 24px;
  align-items: start;
}

.chart-table-layout.reverse {
  grid-template-columns: 1.05fr 0.95fr;
}

.chart-wrap,
.bar-chart,
.table-wrap {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(23, 33, 47, 0.05);
}

.chart-wrap {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.8) 100%);
  box-shadow: 
    0 2px 8px rgba(23, 33, 47, 0.08),
    0 8px 24px rgba(23, 33, 47, 0.12),
    0 16px 48px rgba(23, 33, 47, 0.08),
    inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.chart-wrap::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5) 0%, transparent 60%);
  pointer-events: none;
  animation: glossShine 3s ease-in-out infinite;
}

@keyframes glossShine {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

.chart-wrap canvas {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 8px rgba(23, 33, 47, 0.1));
}

.bar-chart {
  min-height: 420px;
}

canvas {
  width: 100% !important;
  min-height: 300px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-align: left;
  text-transform: uppercase;
}

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

td:nth-child(n + 2),
th:nth-child(n + 2) {
  text-align: right;
}

td:first-child,
th:first-child {
  text-align: left;
}

.insight {
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 4px solid var(--gold);
  color: #3e4b5d;
  font-size: 15px;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 8px;
  color: var(--ink);
  background: #eef3f8;
  font-weight: 800;
}

.status.over {
  color: var(--red-700);
  background: var(--red-100);
}

.status.save {
  color: var(--green);
  background: #e8f5ef;
}

.timeline-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.highlight {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.highlight span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.highlight strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 126px 1fr 140px;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.timeline-date {
  color: var(--red-700);
  font-weight: 850;
}

.timeline-title {
  font-weight: 800;
}

.timeline-meta {
  color: var(--muted);
  font-size: 13px;
}

.amount-in {
  color: var(--green);
  text-align: right;
  font-weight: 850;
}

.amount-out {
  color: var(--red-700);
  text-align: right;
  font-weight: 850;
}

.fallback-chart {
  display: grid;
  gap: 14px;
}

.fallback-chart div {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(90px, 1.8fr) auto;
  gap: 12px;
  align-items: center;
  color: #3e4b5d;
  font-size: 14px;
  font-weight: 750;
}

.fallback-chart i {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #FF5252, #FFD600);
}

.fallback-chart strong {
  font-size: 14px;
  text-align: right;
}

.accounting {
  background: #111827;
  color: var(--white);
}

.accounting .section-heading p,
.accounting h2 {
  color: var(--white);
}

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

.accounting .table-wrap {
  color: var(--ink);
}

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

.eval-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.eval-card h3 {
  color: var(--red-700);
}

.eval-card p {
  color: #3e4b5d;
  font-size: 14px;
}

.eval-card strong {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  text-transform: uppercase;
}

.methodology article {
  padding-right: 24px;
}

.methodology li {
  margin-bottom: 10px;
  color: #3e4b5d;
}

.source-table {
  overflow-x: auto;
}

.table-wrap,
.source-table {
  scrollbar-width: thin;
  scrollbar-color: #c8ced8 transparent;
}

.committee {
  background:
    linear-gradient(135deg, rgba(167, 25, 36, 0.08), transparent 34%),
    #ffffff;
}

.committee-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 24px;
  align-items: start;
}

.committee-intro {
  position: sticky;
  top: 96px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(23, 33, 47, 0.05);
}

.committee-intro p {
  color: #3e4b5d;
}

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

.committee-card {
  min-height: 126px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(23, 33, 47, 0.045);
}

.committee-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--red-700);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.committee-card strong {
  display: block;
  font-size: 17px;
  line-height: 1.4;
}

footer {
  display: grid;
  gap: 6px;
  padding: 34px clamp(20px, 5vw, 72px);
  color: #d9dee7;
  background: #111827;
  font-size: 14px;
}

footer strong {
  color: var(--white);
}

@media (max-width: 980px) {
  .hero,
  .two-col,
  .chart-table-layout,
  .chart-table-layout.reverse,
  .budget-layout,
  .method-layout,
  .committee-layout,
  .accounting-grid,
  .evaluation-grid {
    grid-template-columns: 1fr;
  }

  .committee-intro {
    position: static;
  }

  .metric-grid,
  .timeline-highlights,
  .committee-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    font-size: 13px;
  }

  .section-pad {
    padding: 48px 16px;
  }

  .hero {
    min-height: auto;
    gap: 28px;
    padding-top: 40px;
    padding-bottom: 56px;
  }

  h1 {
    max-width: 10.5ch;
    margin-bottom: 18px;
    font-size: clamp(34px, 9.4vw, 40px);
    line-height: 1.05;
  }

  .hero-lead {
    max-width: 31ch;
    margin-bottom: 24px;
    font-size: 17px;
    line-height: 1.5;
  }

  h2 {
    font-size: clamp(27px, 7.6vw, 34px);
    line-height: 1.12;
  }

  h3 {
    font-size: 18px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .button {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
  }

  .metric-grid,
  .timeline-highlights,
  .committee-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 10px;
  }

  .photo-tile.large,
  .photo-tile.wide {
    grid-column: span 2;
  }

  .photo-tile.large,
  .photo-tile.tall {
    grid-row: span 1;
  }

  .metric-card,
  .hero-panel,
  .chart-wrap,
  .bar-chart,
  .table-wrap,
  .eval-card,
  .committee-intro,
  .committee-card,
  .source-box {
    padding: 18px;
  }

  .hero-panel {
    width: 100%;
  }

  #hero-balance {
    font-size: clamp(34px, 10vw, 42px);
  }

  dd {
    font-size: 19px;
  }

  .metric-card {
    min-height: 128px;
  }

  .metric-card strong {
    font-size: clamp(26px, 8vw, 34px);
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .section-heading p {
    font-size: 12px;
  }

  .narrative p,
  .methodology p,
  .source-box p {
    font-size: 16px;
  }

  .chart-wrap,
  .bar-chart {
    min-height: 300px;
  }

  canvas {
    min-height: 260px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
  }

  .amount-in,
  .amount-out {
    text-align: left;
  }

  .table-wrap {
    overflow-x: auto;
  }

  table {
    min-width: 520px;
    font-size: 13px;
  }

  th,
  td {
    padding: 10px 8px;
  }

  .accounting .table-wrap table,
  .metric-grid + .table-wrap table {
    min-width: 460px;
  }

  .eval-card p,
  .committee-card strong {
    font-size: 14px;
  }

  .committee-card {
    min-height: auto;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 13px;
  }

  nav a {
    font-size: 12px;
  }

  .section-pad {
    padding-left: 14px;
    padding-right: 14px;
  }

  h1 {
    max-width: 9.8ch;
    font-size: clamp(32px, 9vw, 36px);
  }

  #hero-balance {
    font-size: 34px;
  }

  .hero-panel dl {
    gap: 10px;
  }

  .fallback-chart div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .fallback-chart strong {
    text-align: left;
  }
}
