:root {
  color-scheme: light;
  --paper: #f7f9f7;
  --surface: #ffffff;
  --soft: #edf2ee;
  --line: #d2ddd5;
  --ink: #14211b;
  --muted: #4e6158;
  --night: #101714;
  --night-panel: #192620;
  --night-line: #394b42;
  --on-dark: #f4f8f5;
  --on-dark-muted: #bdcdc4;
  --green: #146247;
  --green-dark: #104934;
  --accent: #bbeb78;
  --blue: #4e779c;
  --amber: #d6a650;
  --sans: Inter, "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
img { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: .23em; }
button, select { font: inherit; }
a, button, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
:target { scroll-margin-top: 1.5rem; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--sans); font-weight: 680; line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { max-width: 82rem; width: calc(100% - 8rem); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: fixed; z-index: 5; top: .7rem; left: .7rem; padding: .65rem 1rem; background: var(--surface); }

.site-header { background: var(--night); color: var(--on-dark); border-bottom: 1px solid var(--night-line); }
.header-inner { min-height: 4.45rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .72rem; color: inherit; font-size: 1rem; font-weight: 730; line-height: 1.12; letter-spacing: -.025em; text-decoration: none; width: fit-content; }
.brand img { flex: 0 0 auto; }
.brand-line { display: block; color: var(--on-dark-muted); font-size: .9em; font-weight: 580; margin-top: .12rem; }
.site-header nav { display: flex; align-items: stretch; gap: clamp(1rem, 3vw, 2.5rem); align-self: stretch; }
.site-header nav a { position: relative; display: flex; align-items: center; color: var(--on-dark-muted); font-weight: 620; font-size: .95rem; text-decoration: none; }
.site-header nav a:is(:hover, [aria-current]) { color: var(--on-dark); }
.site-header nav a[aria-current]::after { content: ""; position: absolute; inset: auto 0 -1px; height: 3px; background: var(--accent); }
.header-ar { justify-self: end; color: var(--on-dark-muted); font-size: .95rem; }

.hero-band { background: var(--night); color: var(--on-dark); border-bottom: 1px solid var(--night-line); }
.hero-band .kicker { color: var(--accent); }
.hero-band :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }
.hero { padding-block: clamp(2.6rem, 5.6vw, 5.25rem); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 4.7vw, 4.75rem); }
.hero-copy { padding-block: .35rem; }
.kicker { font-size: .83rem; line-height: 1.4; color: var(--green); font-weight: 750; letter-spacing: .095em; text-transform: uppercase; display: flex; align-items: center; gap: .55rem; }
.kicker span { width: 1.45rem; height: 1px; background: currentColor; flex: none; }
.hero h1 { font-size: clamp(3rem, 5.05vw, 5.55rem); font-weight: 690; line-height: 1.02; letter-spacing: -.061em; margin-block: .95rem 1.2rem; text-wrap: initial; }
.hero h1 span { display: block; color: var(--accent); }
.intro { font-size: clamp(1.04rem, 1.4vw, 1.17rem); line-height: 1.65; color: var(--on-dark-muted); max-width: 32rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1rem; border: 1px solid var(--green); border-radius: .2rem; font-weight: 700; font-size: .94rem; text-decoration: none; }
.button.primary { background: var(--green); color: var(--surface); }
.button.secondary:hover { background: var(--soft); }
.button.primary:hover { background: var(--green-dark); }
.hero-band .button.primary { background: var(--accent); border-color: var(--accent); color: var(--night); }
.hero-band .button.primary:hover { background: #d4f5a6; border-color: #d4f5a6; }
.hero-band .button.secondary { background: transparent; border-color: #81968b; color: var(--on-dark); }
.hero-band .button.secondary:hover { background: var(--night-panel); }
.hero-art { display: flex; flex-direction: column; align-self: center; min-width: 0; overflow: hidden; background: var(--night-panel); border: 1px solid var(--night-line); border-radius: .3rem; }
.hero-art img { width: 100%; aspect-ratio: 1.6; height: auto; object-fit: cover; object-position: 38% center; }
.hero-art figcaption { padding: .78rem 1rem; border-top: 1px solid var(--night-line); color: var(--on-dark-muted); font-size: .86rem; font-weight: 540; }
.hero-art figcaption strong { display: block; color: var(--on-dark); font-size: .92rem; font-weight: 690; }
.hero-art figcaption span { display: block; }
.hero-art figcaption a { color: inherit; }
.hero-art figcaption a:focus-visible { outline-color: var(--accent); }

.snapshot { padding-block: clamp(2.35rem, 4vw, 3.5rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: .6rem 2rem; margin-bottom: 1.3rem; }
.section-heading h2 { font-size: clamp(1.95rem, 3vw, 3.05rem); letter-spacing: -.049em; text-wrap: initial; }
.section-heading p { color: var(--muted); font-size: .96rem; margin-top: .44rem; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: .2rem; background: var(--surface); }
.stat { min-width: 0; padding: 1.35rem clamp(.9rem, 1.85vw, 1.65rem); display: flex; flex-direction: column; align-items: start; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-number { font: 650 clamp(2.65rem, 3.85vw, 4.15rem)/1 var(--sans); color: var(--ink); letter-spacing: -.07em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-number em { color: var(--green); font-size: .34em; font-style: normal; font-weight: 650; letter-spacing: -.015em; margin-left: .34em; }
.stat-label { margin-top: .6rem; margin-bottom: .75rem; color: var(--ink); font-size: .94rem; font-weight: 650; line-height: 1.42; }
.stat-source { font-size: .83rem; color: var(--muted); margin-top: auto; }
.stat-source a { color: var(--green); }

.explorer { padding-block: clamp(2.7rem, 5vw, 4.7rem); border-block: 1px solid var(--line); background: var(--soft); }
.text-link { font-size: .91rem; font-weight: 700; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }
.chart-grid { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); align-items: start; gap: 1.05rem; }
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: .3rem; min-width: 0; }
.chart-head { padding: 1.28rem 1.25rem .83rem; }
.chart-head h3 { font-size: clamp(1.38rem, 2.15vw, 1.95rem); letter-spacing: -.041em; text-wrap: initial; }
.chart-head p { color: var(--muted); font-size: .9rem; margin-top: .32rem; }
.chart-body { padding: 0 1.25rem .85rem; }
.segmented { display: inline-flex; gap: .13rem; align-items: center; padding: .2rem; background: var(--paper); border: 1px solid var(--line); border-radius: .33rem; }
.segmented button { color: var(--muted); border: 0; background: transparent; cursor: pointer; padding: .43rem .62rem; border-radius: .2rem; font-weight: 670; font-size: .87rem; }
.segmented button:hover { color: var(--green); }
.segmented button[aria-pressed="true"] { background: var(--green); color: var(--surface); }
.legend { display: flex; flex-wrap: wrap; gap: .18rem .84rem; min-height: 1rem; margin-block: .85rem .9rem; color: var(--muted); font-size: .81rem; }
.legend span { display: inline-flex; align-items: center; gap: .32rem; }
.swatch { width: .56rem; height: .56rem; border-radius: .07rem; background: var(--series-color); }
.inside { --series-color: var(--green); }
.refugee { --series-color: var(--blue); }
.asylum { --series-color: var(--amber); }
.trend { display: grid; grid-template-columns: 2.1rem minmax(0, 1fr); grid-template-rows: 12.15rem 1.6rem; }
.trend-axis { grid-area: 1 / 1; position: relative; color: var(--muted); font-size: .77rem; }
.trend-axis span { position: absolute; left: 0; transform: translateY(50%); bottom: var(--tick); }
.trend-grid { grid-area: 1 / 2; position: relative; pointer-events: none; }
.trend-grid span { position: absolute; inset: auto 0 var(--tick); border-top: 1px solid var(--line); }
.trend-bars { grid-area: 1 / 2 / 3; display: grid; grid-template-columns: repeat(var(--years), minmax(0, 1fr)); gap: clamp(.12rem, .5vw, .52rem); padding-inline: .15rem; }
.trend-bar { border: 0; background: transparent; padding: 0; color: var(--muted); min-width: 0; display: grid; grid-template-rows: minmax(0, 1fr) 1.6rem; align-items: end; justify-items: stretch; cursor: pointer; position: relative; }
.bar-stack { display: flex; flex-direction: column-reverse; height: var(--height); width: 75%; min-width: 0; justify-self: center; overflow: hidden; border-radius: .15rem .15rem 0 0; }
.bar-stack span { background: var(--series-color); }
.bar-stack span + span { box-shadow: inset 0 -1px rgba(255, 255, 255, .75); }
.bar-year { font-size: .77rem; font-variant-numeric: tabular-nums; padding-bottom: .08em; }
.trend-bar:hover, .trend-bar[aria-pressed="true"] { color: var(--green); }
.trend-bar[aria-pressed="true"] .bar-stack, .trend-bar:hover .bar-stack { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--green); }
.trend-bar[aria-pressed="true"] .bar-year { font-weight: 800; }
.trend-value { min-height: 2.7em; margin-top: .4rem; color: var(--muted); font-size: .85rem; }
.trend-value strong { color: var(--green); font-variant-numeric: tabular-nums; }
.host-body select { appearance: none; width: 100%; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%23146247' stroke-width='1.6'/%3E%3C/svg%3E") right .72rem center / .7rem no-repeat; color: var(--ink); border: 1px solid var(--line); border-radius: .28rem; padding: .53rem 1.85rem .53rem .66rem; font-size: .88rem; font-weight: 640; cursor: pointer; }
.host-chart { display: grid; gap: .85rem; list-style: none; padding: 0; margin: 1rem 0 .65rem; }
.host-label { display: flex; justify-content: space-between; gap: .5rem; color: var(--ink); font-size: .9rem; font-weight: 630; }
.host-label strong { color: var(--green); font: 700 .89rem/1.55 var(--sans); font-variant-numeric: tabular-nums; }
.host-track { height: .57rem; margin-top: .26rem; background: var(--soft); border-radius: .12rem; }
.host-track span { display: block; height: 100%; width: var(--width); min-width: 1px; border-radius: inherit; background: var(--green); }
.chart-tools { border-top: 1px solid var(--line); padding: .75rem 1.25rem; position: relative; }
.chart-tools summary { cursor: pointer; color: var(--green); font-weight: 700; font-size: .88rem; width: fit-content; }
.chart-tools .download { position: absolute; right: 1.25rem; top: .75rem; font-size: .88rem; }
.table-scroll { overflow: auto; margin: .8rem 0 .35rem; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: .43rem .53rem; border-bottom: 1px solid var(--line); }
tr > :first-child { text-align: left; }
thead { background: var(--soft); }
.explore-source { color: var(--muted); font-size: .89rem; line-height: 1.5; margin-top: 1.05rem; max-width: 61rem; }

.briefs-section { padding-block: clamp(2.85rem, 5.5vw, 5rem); }
.featured { display: grid; grid-template-columns: 1.55fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: .3rem; background: var(--surface); }
.featured-copy, .featured-stat { padding: clamp(1.4rem, 4vw, 3.3rem); }
.featured-copy :is(h2, h3) { font-size: clamp(1.8rem, 3.1vw, 3rem); letter-spacing: -.044em; margin-top: .6rem; text-wrap: initial; }
.featured-copy p:not(.kicker) { margin: .6rem 0 1rem; max-width: 38rem; color: var(--muted); }
.featured-stat { background: var(--night-panel); color: var(--on-dark); display: flex; flex-direction: column; align-items: start; justify-content: center; }
.featured-stat > span { font: 670 clamp(3rem, 5vw, 5.15rem)/1 var(--sans); letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.featured-stat em { font-size: .47em; font-style: normal; letter-spacing: -.025em; color: var(--accent); }
.featured-stat p { margin: .55rem 0 .7rem; max-width: 32ch; }
.featured-stat a { color: var(--accent); }
.featured-stat a:focus-visible { outline-color: var(--accent); }

.site-footer { background: var(--night); color: var(--on-dark); border-top: 1px solid var(--night-line); }
.footer-inner { min-height: 9rem; display: flex; justify-content: space-between; align-items: center; gap: 1.2rem 2rem; padding-block: 1.5rem; }
.footer-inner p { font-size: .88rem; color: var(--on-dark-muted); margin-top: .59rem; }
.footer-inner nav { display: flex; gap: .75rem 1.35rem; flex-wrap: wrap; }
.footer-inner nav a { font-size: .9rem; font-weight: 650; color: var(--on-dark); }
.footer-date time { display: block; color: var(--on-dark); font-weight: 680; }

.article, .listing { width: min(calc(100% - 3rem), 48rem); margin: 0 auto; padding-block: clamp(2.65rem, 6.3vw, 5.55rem); }
.listing { width: min(calc(100% - 3rem), 66rem); }
.article h1, .listing h1 { font-size: clamp(2.6rem, 5.25vw, 4.65rem); letter-spacing: -.057em; margin-block: .75rem 1rem; text-wrap: initial; }
.article h2 { font-size: clamp(1.7rem, 3.25vw, 2.65rem); letter-spacing: -.045em; margin-block: 2.45rem .8rem; }
.article p, .article li { font-size: 1.04rem; }
.article p + p { margin-top: .85rem; }
.article li + li { margin-top: .45rem; }
.article ul { padding-left: 1.25rem; }
.lede { color: var(--muted); font-size: clamp(1.04rem, 2vw, 1.2rem); margin-bottom: 1.5rem; }
.article .meta, .article .note { font-size: .91rem; color: var(--muted); }
.back { display: inline-block; margin-bottom: 1.45rem; }
.callout { margin-top: 1.6rem; background: var(--soft); border-left: 3px solid var(--green); border-radius: 0 .25rem .25rem 0; padding: 1rem 1.25rem; }
.callout ul { margin: .5rem 0 0; }
.listing .featured { margin-top: 1.8rem; }
.dataset-links { display: grid; gap: .4rem; margin-bottom: 0; }
.article code { font-size: .9em; }

@media (max-width: 69rem) {
  .wrap { width: calc(100% - 4.5rem); }
}
@media (max-width: 53rem) {
  .wrap { width: calc(100% - 3rem); }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-ar { display: none; }
  .hero { gap: 1.45rem; }
  .chart-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 46rem) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 38rem; }
}
@media (max-width: 42rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { display: block; padding-top: .8rem; }
  .brand img { width: 2.35rem; height: 2.35rem; }
  .site-header nav { margin-top: .4rem; gap: .45rem 1.35rem; flex-wrap: wrap; min-height: 2.6rem; }
  .site-header nav a { padding-block: .46rem; }
  .hero { display: block; padding-block: 2rem 1.9rem; }
  .hero h1 { font-size: clamp(2.55rem, 8.7vw, 4rem); margin-block: .73rem .95rem; }
  .actions { margin-top: 1.05rem; }
  .hero-art { margin-top: 1.35rem; }
  .snapshot { padding-bottom: 2.5rem; }
  .section-heading { flex-wrap: wrap; }
  .section-heading p { font-size: .9rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 1.08rem .83rem; }
  .stat-number { font-size: clamp(1.9rem, 6.6vw, 3rem); }
  .stat + .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat-label { font-size: .88rem; }
  .chart-head { padding-inline: .8rem; }
  .chart-body, .chart-tools { padding-inline: .8rem; }
  .chart-tools .download { right: .8rem; }
  .trend { grid-template-columns: 1.75rem minmax(0, 1fr); grid-template-rows: 10.75rem 1.6rem; }
  .bar-year { font-size: .71rem; }
  .legend { gap: .2rem .48rem; }
  .featured { grid-template-columns: 1fr; }
  .footer-inner { display: grid; }
}
@media (max-width: 32rem) {
  .bar-year { visibility: hidden; }
  .trend-bar:nth-child(odd) .bar-year, .trend-bar:last-child .bar-year, .trend-bar:focus-visible .bar-year { visibility: visible; }
  .article, .listing { width: calc(100% - 2rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.stat-number .stat-prefix { margin-left: 0; margin-right: .35em; font-size: .25em; }
@media (max-width: 23rem) {
  .site-header nav { justify-content: space-between; column-gap: .4rem; }
  .site-header nav a { font-size: .88rem; }
  .hero h1 { font-size: 2.45rem; }
  .actions { gap: .4rem; }
  .actions .button { font-size: .85rem; padding-inline: .65rem; }
  .stat-number { font-size: 1.9rem; }
}