:root {
  color-scheme: light;
  font: 100%/1.6 system-ui, sans-serif;
  color: #162d45;
  background: #f2f6fb;
  --blue: #143c62;
  --link: #145184;
  --border: #cddbe8;
  --muted: #49637c;
}
* { box-sizing: border-box; }
body { margin: 0; }
.shell { width: min(72rem, 100% - 2rem); margin-inline: auto; }
.top { background: #112f4e; color: white; }
.top .shell { display: flex; gap: 1.25rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: .8rem; }
.top a { color: white; }
.brand { font-size: 1.15rem; font-weight: 780; text-decoration: none; }
main { padding-block: 1.65rem 3rem; }
h1, h2, h3 { line-height: 1.17; }
h1 { margin: .5rem 0 .8rem; font-size: clamp(2rem, 7vw, 3.5rem); letter-spacing: -.035em; }
h2 { margin: 0 0 .7rem; font-size: clamp(1.3rem, 4vw, 1.75rem); }
a { color: var(--link); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid #995206; outline-offset: 3px; }
.intro, .hero p { max-width: 66ch; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
  gap: clamp(1rem, 3vw, 2.2rem);
  align-items: center;
  background: #e4eef9;
  border: 1px solid #c7daee;
  border-radius: .9rem;
  padding: clamp(1rem, 3vw, 2rem);
}
.hero p { margin: .55rem 0; }
.hero figure { margin: 0; }
.hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: .6rem;
  background: #cedbea;
}
figcaption, .note { color: var(--muted); font-size: .9rem; }
.crumbs { font-size: .91rem; margin-block: 0 .8rem; }
.flag { display: inline-block; width: 2.15rem; height: 1.55rem; object-fit: contain; object-position: left; vertical-align: middle; }
.hero .flag { width: 3.5rem; height: 2.65rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); gap: .7rem; margin: 1rem 0; }
.stats > div, .card, .box { background: #fff; border: 1px solid var(--border); border-radius: .7rem; }
.stats > div { padding: .7rem .85rem; }
dt { font-weight: 640; }
dd { margin: .2rem 0 0; font-size: 1.3rem; font-weight: 760; font-variant-numeric: tabular-nums; }
.box { margin-top: 1rem; padding: clamp(.8rem, 2.3vw, 1.5rem); }
.box p { max-width: 73ch; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }
.countries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: .6rem;
  padding: 0;
  list-style-type: none;
}
.card a { display: grid; grid-template-columns: 2.2rem 1fr; gap: .2rem .65rem; align-items: center; height: 100%; padding: .75rem; text-decoration: none; }
.card a:hover strong { text-decoration: underline; }
.card .flag { grid-row: span 2; }
.card small { color: var(--muted); }
.timeline { margin: .9rem 0; }
.bars { 
  display: grid;
  grid-template-columns: repeat(37, minmax(0, 1fr));
  align-items: end;
  gap: 2px;
  height: clamp(7rem, 28vw, 13.5rem);
  border-bottom: 1px solid #93adc5;
  background: repeating-linear-gradient(to top, #fff 0%, #fff calc(25% - 1px), #dce6f0 calc(25% - 1px), #dce6f0 25%);
}
.bar { display: block; height: max(2px, var(--value)); background: #28669c; border-radius: 2px 2px 0 0; }
.bar.gdd { background: #597889; }
.bar.projection { background: repeating-linear-gradient(-45deg, #6e5a36 0 2px, #f7dfa8 2px 5px); }
.chart-years, .chart-key { color: var(--muted); font-size: .82rem; }
.chart-years { position: relative; height: 1.45rem; }
.chart-years span { position: absolute; left: var(--position); transform: translateX(-50%); }
.chart-years span:first-child { transform: none; }
.chart-years span:last-child { transform: translateX(-100%); }
.chart-key { display: flex; gap: .6rem; flex-wrap: wrap; margin: .45rem 0; }
.chart-key span::before { content: "■"; color: #28669c; padding-right: .35rem; }
.chart-key .historical::before { color: #597889; }
.chart-key .projection::before { color: #80652b; }
summary { cursor: pointer; font-weight: 700; width: fit-content; }
table { width: 100%; margin-top: .6rem; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
caption { text-align: left; color: var(--muted); }
th, td { padding: .4rem .5rem; border-bottom: 1px solid var(--border); }
thead th { background: #e4eef9; }
tr:nth-child(even) { background: #f5f8fc; }
footer { padding-block: 1rem; border-top: 1px solid var(--border); color: var(--muted); }
@media (max-width: 42rem) { .hero { grid-template-columns: 1fr; } }
