:root {
  color-scheme: dark;
  font: 16px/1.55 Inter, "Segoe UI", system-ui, sans-serif;
  color: #edf5ff;
  background: #030611;
  --muted: #bfd0e9;
  --line: #395886a0;
  --card: linear-gradient(135deg, #132746f5, #0b1529f7);
  --link: #abd0ff;
  --accent: #a5cdff;
  --up: #91edb7;
  --down: #ffb1b7;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-margin-top: 78px; }
body { margin: 0; min-width: 0; isolation: isolate; }
body::before, #ambient-network { position: fixed; inset: 0; pointer-events: none; }
body::before {
  content: "";
  z-index: -2;
  background:
    radial-gradient(ellipse 64% 78% at 50% 48%, transparent 44%, #010208a8 100%),
    radial-gradient(ellipse 60% 60% at 50% 48%, #12254f 0%, #0b152f 33%, #050a19 64%, #02040c 100%);
}
#ambient-network { z-index: -1; width: 100%; height: 100%; opacity: .45; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { color: #fff; }
button, select { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.container { width: min(74rem, calc(100% - clamp(2rem, 8vw, 8rem))); margin-inline: auto; }
.skip-link { position: fixed; inset: .5rem auto auto .5rem; z-index: 4; padding: .5rem .75rem; background: var(--card); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-head { border-bottom: 1px solid #52729857; }
.masthead, .site-footer > .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.masthead { min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 680; text-decoration: none; color: inherit; }
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 5px 10px;
  border: 1px solid #577bb0a6;
  border-radius: 7px;
  background: #081529dc;
  color: #e7f0ff;
  font-size: .9rem;
  text-decoration: none;
}
.back-link:hover { border-color: #9ebdf5; }
.intro { display: flex; gap: 1rem 2rem; justify-content: space-between; align-items: end; flex-wrap: wrap; padding: clamp(2.25rem, 6vw, 5.5rem) 0 clamp(1.5rem, 4vw, 3rem); }
.country { margin: 0 0 .6rem; color: var(--accent); font-weight: 680; }
h1 { margin: 0; font-weight: 710; font-size: clamp(2.6rem, 7vw, 5.1rem); line-height: 1; letter-spacing: -.067em; text-wrap: balance; text-shadow: 0 3px 32px #6d98f94d; }
.deck { margin: 1rem 0 0; max-width: 41rem; color: var(--muted); font-size: clamp(1rem, 2vw, 1.16rem); }
.cutoff { margin: 0; padding: .55rem 0 .55rem .9rem; border-inline-start: 2px solid #83b8f2ba; color: var(--muted); font-size: .88rem; }
.cutoff time { display: block; font-weight: 650; color: #e5f3ff; }
.dashboard-nav { position: sticky; top: 0; z-index: 2; display: flex; overflow-x: auto; gap: .3rem; padding: .55rem 0; border-block: 1px solid var(--line); background: #0c192ef5; scrollbar-width: thin; }
.dashboard-nav a { min-height: 42px; display: inline-flex; align-items: center; flex-shrink: 0; padding: .3rem .8rem; font-size: .91rem; text-decoration: none; border-radius: .4rem; color: #d6e9fb; }
.dashboard-nav a:hover { background: #20335e; }
.key-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin-top: 1.2rem; }
.key-metric { display: grid; align-content: start; gap: .4rem; padding: 1rem; border: 1px solid var(--line); border-top-color: #83b8f2ba; border-radius: .7rem; background: var(--card); text-decoration: none; color: inherit; min-width: 0; }
.key-metric:hover { border-color: #83b8f2ba; background: #142c4ff5; }
.key-metric .metric-label { font-size: .91rem; }
.metric-value { display: block; margin: 0; color: #f7fbff; font-weight: 720; font-size: clamp(1.55rem, 3.1vw, 2.15rem); line-height: 1.12; letter-spacing: -.055em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-unit { font-size: .62em; letter-spacing: -.01em; }
.key-metric .metric-value { font-size: clamp(1.45rem, 4.5vw, 2.15rem); }
.metric-period, .indicator-note, .metric-note, .metric-source, .chart-context { color: var(--muted); font-size: .875rem; }
.indicator-note { margin: .85rem 0 0; }
.dashboard-section { padding: clamp(2.25rem, 6vw, 4rem) 0 .4rem; scroll-margin-top: 72px; }
.section-head { padding-bottom: 1rem; }
.section-head h2 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.7rem); letter-spacing: -.035em; line-height: 1.14; }
.section-head p { margin: .55rem 0 0; color: var(--muted); max-width: 57rem; }
.metric-grid, .guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: .8rem; }
.metric-card, .guide-card, .chart { padding: clamp(1rem, 2.6vw, 1.5rem); border: 1px solid var(--line); border-radius: .8rem; background: var(--card); scroll-margin-top: 76px; }
.metric-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.metric-card h3, .guide-card h3, .chart h3 { margin: 0 0 .6rem; color: #dbeeff; font-size: 1.07rem; line-height: 1.3; }
.metric-card .metric-value { margin-bottom: .35rem; }
.metric-period { margin: 0 0 .65rem; }
.changes { display: flex; flex-wrap: wrap; align-items: start; gap: .45rem; margin-bottom: .65rem; }
.change { display: inline-flex; align-items: flex-start; gap: .32rem; padding: .22rem .48rem; border-radius: .34rem; font-size: .83rem; background: #20334a; color: #d5e5f5; }
.change.up { background: #163b31; color: var(--up); }
.change.down { background: #462c3a; color: var(--down); }
.change-icon { font-weight: 750; }
.metric-note { margin: 0 0 .7rem; }
.metric-source { margin: auto 0 0; }
.chart { margin: 0 0 1rem; }
.chart-header { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: .75rem; }
.chart-filter { display: grid; gap: .35rem; font-size: .875rem; }
.chart-filter select { width: 100%; max-width: 100%; padding: .45rem .75rem; border-radius: .45rem; border: 1px solid #59799a; color: inherit; background: #182e45; }
.chart-context { margin: .35rem 0 .65rem; }
.chart canvas { display: block; width: 100%; height: clamp(220px, 30vw, 300px); }
.chart-table { margin-top: 1rem; color: var(--muted); }
.chart-table summary { cursor: pointer; color: var(--link); }
table { width: 100%; border-collapse: collapse; margin-top: .6rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: .35rem .5rem; }
td:last-child, thead th:last-child { text-align: end; }
.guide-card p, .guide-card li { color: var(--muted); margin: 0 0 .6rem; }
.guide-card ul { margin: 0; padding-inline-start: 1.35rem; }
.guide-card h3 { color: var(--accent); }
.guide-links { display: flex; flex-wrap: wrap; list-style: none; gap: .25rem .7rem; }
.guide-card .guide-links { margin-top: .8rem; padding: 0; font-size: .875rem; }
.site-footer { margin-top: 3.5rem; padding: 1.2rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.site-footer p { margin: 0; }
@media (max-width: 780px) { .key-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) {
  .container { width: calc(100% - 1.5rem); }
  .key-metric { padding: .7rem; }
  .key-metric .metric-label { font-size: .84rem; }
  .dashboard-nav a { padding-inline: .6rem; }
  .chart-filter { width: 100%; }
  .metric-grid { grid-template-columns: 1fr; }
}
