@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Spectral:wght@500;600;700&display=swap');

:root {
  --bg: #F5F6F2; --text: #1B2A30; --muted: #55656B; --deep: #103B3A; --soft: #1a5c58;
  --card: #ffffff; --line: #e2e5e1; --tint: #eef3f1; --amber: #c8902b;
  --bar: #1a5c58; --bar-muted: #b9c7c3; --bar-range: #8fb3ac;
  --serif: "Spectral", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1a1d; --text: #e3ece8; --muted: #9fb2ad; --deep: #cfe3dd; --soft: #8fd0c2;
    --card: #152427; --line: #24373a; --tint: #1a2d30; --amber: #e3a73a;
    --bar: #6fbfae; --bar-muted: #3d5559; --bar-range: #3f7d72; color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: "Instrument Sans", system-ui, -apple-system, sans-serif; color: var(--text); background: var(--bg); line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--soft); }
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { flex-shrink: 0; }
.brand img { height: 36px; width: auto; }
.brand .logo-d { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .logo-l { display: none; } :root:not([data-theme="light"]) .brand .logo-d { display: block; } }
nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
nav a:hover { color: var(--deep); }

/* Hero */
.hero { padding: 40px 0 24px; text-align: center; }
.hero img { width: 100%; max-height: 340px; object-fit: cover; border-radius: 16px; margin-bottom: 28px; }
.eyebrow { color: var(--soft); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 8px; }
.hero h1 { font-family: var(--serif); font-weight: 600; color: var(--deep); font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.2; margin-bottom: 14px; }
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }

/* Sections and cards */
.section { padding: 44px 0; }
.section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-family: var(--serif); font-weight: 600; color: var(--deep); font-size: 1.8rem; margin-bottom: 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.section.alt .card { background: var(--bg); }
a.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(16, 59, 58, .08); }
a.card:focus-visible { outline: 3px solid var(--soft); outline-offset: 2px; }
.card img { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.kicker { font-size: .78rem; color: var(--soft); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.card h3 { font-family: var(--serif); font-weight: 600; color: var(--deep); font-size: 1.25rem; line-height: 1.3; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.btn { margin-top: auto; align-self: flex-start; color: var(--deep); font-weight: 600; font-size: .9rem; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; text-decoration: none; }
.btn.solid { display: inline-block; margin-top: 8px; background: var(--deep); color: var(--bg); border: 0; border-radius: 10px; padding: 12px 20px; }
.cta { text-align: center; max-width: 680px; }
.cta p { color: var(--muted); margin-bottom: 12px; }

/* Article */
.article { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 40px 42px; margin: 28px auto 48px; max-width: 820px; }
.back { display: inline-block; font-size: .9rem; text-decoration: none; margin-bottom: 18px; }
.article h1 { font-family: var(--serif); font-weight: 600; color: var(--deep); font-size: clamp(1.7rem, 4vw, 2.15rem); line-height: 1.25; margin-bottom: 10px; }
.article .meta { color: var(--muted); font-size: .9rem; padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.article img.featured { width: 100%; border-radius: 12px; margin: 4px 0 26px; aspect-ratio: 800 / 537; object-fit: cover; }
.article h2 { font-family: var(--serif); font-weight: 600; color: var(--deep); font-size: 1.45rem; margin: 30px 0 12px; }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 10px 0 20px 22px; }
.article li { margin-bottom: 8px; }
.highlight-box { background: var(--tint); border-left: 4px solid var(--soft); border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 22px 0; }
.note { font-size: .85rem; color: var(--muted); }

/* Chart and table */
.chart { margin: 26px 0; }
.chart figcaption { font-weight: 600; margin-bottom: 10px; }
.hbars { display: grid; gap: 12px; }
.hbars .row { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 12px; }
.hbars .lbl { font-size: .9rem; text-align: right; }
.hbars .track { display: flex; align-items: center; gap: 0; }
.hbars .b { height: 24px; background: var(--bar); flex-shrink: 0; }
.hbars .b:only-of-type { border-radius: 3px; }
.chart .note { margin-top: 10px; }
.hbars .b:first-child { border-radius: 3px 0 0 3px; }
.hbars .b.range { background: var(--bar-range); border-radius: 0 3px 3px 0; }
.hbars .row.muted .b { background: var(--bar-muted); }
.hbars .val { margin-left: 8px; font-weight: 600; font-size: .9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .hbars .row { grid-template-columns: 1fr; gap: 4px; } .hbars .lbl { text-align: left; } }
table.data { width: 100%; border-collapse: collapse; margin: 8px 0 10px; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
table.data th { font-size: .85rem; color: var(--muted); }
table.data .num { text-align: right; }

.sources { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.sources ol { margin: 8px 0 0 20px; }
.sources li { margin-bottom: 6px; overflow-wrap: anywhere; }

footer { background: #103B3A; color: #e9f0ed; text-align: center; padding: 32px 0; font-size: .9rem; }
footer a { color: #f0c46a; }
footer .fine { margin-top: 8px; opacity: .8; font-size: .82rem; max-width: 720px; margin-left: auto; margin-right: auto; }

@media (max-width: 680px) {
  .bar { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 16px; }
  nav { gap: 14px; justify-content: flex-start; }
  .article { padding: 24px 18px; margin: 16px 0 32px; border-radius: 12px; }
  .hero { padding-top: 24px; }
  .hero img { max-height: 200px; }
}
