:root {
    color-scheme: dark;
    --page: #101317;
    --panel: #191e25;
    --raised: #222831;
    --text: #f0ede7;
    --muted: #b8c0cb;
    --line: #414a56;
    --accent: #fa9a82;
    --wrap: 1220px;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--page); font: 16px/1.6 system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: #ffd1c3; }
button, input, select { font: inherit; }
button, summary, input[type="submit"] { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.18; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 4.2rem); letter-spacing: -.035em; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.45rem); letter-spacing: -.025em; }
.wrap { width: min(var(--wrap), calc(100% - 3rem)); margin-inline: auto; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 100; inset: 1rem auto auto 1rem; padding: .7rem 1rem; background: var(--page); }
.eyebrow, .desk-label, .footer-edition { color: var(--accent); font-size: .7rem; letter-spacing: .15em; font-weight: 750; }
.text-link { font-weight: 750; }

.mast { background: #12161b; border-top: 3px solid #be624e; }
.mast-inner { display: flex; min-height: 109px; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand img { flex: none; width: 3.5rem; height: 3.5rem; }
.brand-copy { display: grid; gap: .36rem; }
.brand-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 3.75vw, 3.2rem); line-height: .95; letter-spacing: -.055em; }
.brand-copy strong span { color: #dad6ce; font-weight: 400; }
.brand-copy small { color: var(--muted); font: .8rem/1.2 Georgia, serif; letter-spacing: .035em; }
.mast-actions { display: grid; gap: .25rem; justify-items: end; }
.mast-actions span { color: var(--muted); font-size: .65rem; letter-spacing: .14em; font-weight: 750; }
.mast-actions a { font-size: .85rem; }
.mast .navigation { border-block: 1px solid var(--line); }
.nav-inner { position: relative; display: flex; align-items: center; gap: 1rem; min-height: 3.2rem; }
.menu-links { flex: 1; min-width: 0; }
.nav-list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav-list > li > a, .nav-more summary { display: block; padding: .8rem clamp(.35rem, 1vw, .85rem); color: var(--text); font-size: .84rem; font-weight: 650; text-decoration: none; }
.nav-list > li > a:hover, .nav-more summary:hover { color: var(--accent); background: var(--raised); }
.nav-more details { position: relative; }
.nav-more summary { list-style: none; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-dropdown { position: absolute; z-index: 20; min-width: 13rem; padding: .45rem; background: var(--panel); border: 1px solid var(--line); }
.nav-dropdown a { display: block; padding: .38rem .55rem; font-size: .85rem; }
.nav-search { flex: 0 1 13rem; min-width: 0; }
.nav-search form { display: flex; gap: .35rem; align-items: center; }
.nav-search label { flex: 1; min-width: 0; }
.nav-search input[type="search"] { width: 100%; min-width: 0; }
input, select, button { color: var(--text); background: var(--raised); border: 1px solid var(--line); border-radius: .2rem; padding: .42rem .55rem; }
input::placeholder { color: var(--muted); opacity: 1; }
input[type="submit"], button[type="submit"] { color: #151515; background: var(--accent); border-color: var(--accent); font-weight: 700; }
.menu-toggle { display: none; }

.main { padding-block: 2rem 4rem; }
.front-page { padding-top: 1.45rem; }
.desk-label { display: flex; justify-content: space-between; gap: 1rem; padding: 0 0 .65rem; border-bottom: 1px solid var(--line); }
.desk-label span + span { color: var(--muted); text-align: right; }
.briefing-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.lead-story { min-width: 0; position: relative; background: var(--panel); }
.lead-photo { display: block; background: var(--panel); }
.lead-photo img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.lead-copy { padding: clamp(1.1rem, 3.3vw, 2.5rem); }
.lead-copy .eyebrow { margin-bottom: .75rem; }
.lead-copy h1 { font-size: clamp(1.9rem, 3.8vw, 3.75rem); margin-bottom: .85rem; }
.lead-copy h1 a { color: var(--text); text-decoration: none; }
.lead-copy h1 a:hover { text-decoration: underline; }
.lead-copy p:not(.eyebrow) { color: var(--muted); max-width: 58ch; }
.lead-empty { background: var(--panel); }
.dispatches { min-width: 0; border-left: 1px solid var(--line); padding: clamp(.9rem, 2.8vw, 2rem); }
.dispatch-heading { display: flex; gap: .6rem; justify-content: space-between; align-items: baseline; }
.dispatch-heading h2 { font-size: 1.6rem; margin: 0; }
.dispatch-heading > a { font-size: .8rem; }
.dispatches ol { list-style: none; margin: .9rem 0 0; padding: 0; }
.dispatches li { border-top: 1px solid var(--line); }
.dispatch { display: grid; grid-template-columns: minmax(0,1fr) 4.75rem; gap: .9rem; padding-block: .9rem; color: var(--text); text-decoration: none; }
.dispatch:hover h3 { text-decoration: underline; }
.dispatch time { color: var(--muted); font-size: .74rem; font-variant-numeric: tabular-nums; }
.dispatch h3 { font-size: .98rem; margin: .3rem 0 0; }
.dispatch img { width: 4.75rem; height: 3.65rem; object-fit: cover; }
.register-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 1.65rem; border: 1px solid var(--line); }
.register-strip a { display: grid; align-content: start; gap: .4rem; padding: 1rem; border-right: 1px solid var(--line); color: var(--text); text-decoration: none; }
.register-strip a:last-child { border-right: 0; }
.register-strip a:hover { background: var(--panel); }
.register-strip a > span:last-child { color: var(--muted); font-size: .8rem; }
.register-count { color: var(--accent); font: 1.8rem/1 Georgia, serif; font-variant-numeric: tabular-nums; }
.section { margin-top: 2.6rem; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); margin: 0 0 1.15rem; padding-bottom: .65rem; }
.section-title h1, .section-title h2 { margin: .3rem 0 0; }
.section-title > a { flex: none; font-size: .85rem; }
.section-intro, .archive-description, .data-warning { color: var(--muted); }
.topic-nav, .article-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
.topic-nav a, .article-tags a { padding: .25rem .55rem; border: 1px solid var(--line); color: var(--muted); font-size: .81rem; text-decoration: none; }
.topic-nav a:hover, .article-tags a:hover { color: var(--text); background: var(--raised); }
.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.story-card { background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.story-image { display: block; }
.story-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.story-body { padding: 1rem; }
.directory-card .story-body { display: flex; flex-direction: column; min-height: 100%; }
.directory-ident { display: flex; align-items: start; justify-content: space-between; gap: .75rem; min-height: 3.35rem; margin-bottom: .65rem; }
.directory-country { display: flex; align-items: center; gap: .55rem; min-width: 0; color: var(--muted); font-size: .8rem; line-height: 1.25; }
.directory-country img { flex: none; width: 2.5rem; height: 1.875rem; object-fit: cover; border: 1px solid var(--line); }
.directory-emblem { display: grid; place-items: center; flex: none; width: 3.25rem; height: 3.25rem; padding: .22rem; background: #e6e9ec; border: 1px solid var(--line); }
.directory-emblem img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.directory-type { align-self: start; max-width: 100%; margin-top: .5rem; padding: .15rem .42rem; border: 1px solid #8c7b69; color: #f0d6b9; font-size: .75rem; font-weight: 700; line-height: 1.3; }
.directory-card .story-body h3 { margin-top: .55rem; }
.directory-card .story-body small { margin-top: auto; padding-top: .45rem; }
.story-body h3 { font-size: 1.15rem; margin: .35rem 0 .6rem; }
.story-body h3 a { color: var(--text); text-decoration: none; }
.story-body h3 a:hover { text-decoration: underline; }
.story-body p { color: var(--muted); font-size: .88rem; margin: 0 0 .5rem; }
.story-body small { color: var(--muted); font-variant-numeric: tabular-nums; }
.report-note { display: grid; grid-template-columns: 1.2fr 1.25fr auto; gap: 1.2rem; padding: 1.25rem 0; border-block: 1px solid var(--line); }
.report-note h2, .report-note p { margin: 0; }
.report-note p { color: var(--muted); }

.article-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(13rem,19rem); gap: 1.65rem; padding-block: 2.5rem 4rem; }
.article, .page-content article, .dossier-page article { background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.article-heading, .article-content, .article > .source-box, .newsletter-inline, .article > .article-tags { padding-inline: clamp(1.2rem, 4vw, 3rem); }
.article-heading { padding-block: 1.7rem; }
.article-heading h1 { font-size: clamp(2rem, 4.5vw, 3.65rem); margin: .55rem 0 .9rem; }
.dek { color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.byline { color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums; }
.article-image { margin: 0; }
.article-image img { width: 100%; }
.article-image figcaption { padding: .8rem clamp(1rem, 3vw, 2rem); color: var(--muted); font-size: .85rem; border-bottom: 1px solid var(--line); }
.article-content { padding-block: 1.5rem; overflow-wrap: break-word; }
.article-content p, .article-content li { max-width: 72ch; }
.article-content h2, .source-box h2 { font-size: clamp(1.25rem, 2.1vw, 1.8rem); }
.article-content table { display: block; max-width: 100%; overflow-x: auto; }
.article-content th, .article-content td { padding: .3rem .6rem; border: 1px solid var(--line); }
.article-content blockquote { margin-inline: 0; border-left: 3px solid var(--accent); padding-left: 1.1rem; color: var(--muted); }
.source-box, .ad-slot, .widget, .newsletter-inline { background: var(--raised); padding: 1rem; margin: 1.2rem 0; }
.source-box > span, .source-box > a, .widget a { display: block; }
.source-box p:last-child, .source-box h2:last-child { margin-bottom: 0; }
.newsletter-inline { margin: 1.5rem clamp(1rem, 3vw, 2rem); }
.dossier-page { max-width: 920px; padding-block: 2.4rem 4rem; }
.dossier-page article { padding: clamp(1.1rem, 4vw, 2.7rem); }
.dossier-page h1 { font-size: clamp(1.85rem, 4.6vw, 3.55rem); margin: .55rem 0 .9rem; }
.dossier-page .article-content { padding-inline: 0; }
.fact-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.fact-grid > div { background: var(--raised); padding: .85rem; }
.fact-grid small { display: block; color: var(--muted); }
.data-warning { font-size: .9rem; margin-top: 1rem; }
.page-content { max-width: 920px; padding-block: 2.4rem 4rem; }
.page-content h1 { padding: 2rem clamp(1.2rem, 4vw, 3rem) 0; margin: 0; }
.mw-directory-filter { display: flex; align-items: end; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.35rem; }
.mw-directory-filter label { display: grid; gap: .3rem; color: var(--muted); }
.conflict-table { overflow: auto; border: 1px solid var(--line); }
.conflict-table table { width: 100%; min-width: 43rem; border-collapse: collapse; text-align: left; }
.conflict-table th, .conflict-table td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
.conflict-table thead { background: var(--raised); }
.conflict-table tbody tr:nth-child(2n) { background: var(--panel); }
.conflict-table td:nth-last-child(-n+2) { font-variant-numeric: tabular-nums; }
.mw-chart { padding: 1rem; margin: 1.3rem 0; background: var(--panel); }
.mw-chart-row { display: grid; grid-template-columns: minmax(5rem, 1fr) minmax(4rem, 4fr) auto; gap: .55rem; align-items: center; }
.mw-chart-track { background: var(--raised); height: .6rem; }
.mw-chart-track span { display: block; height: 100%; background: var(--accent); }

.navigation.pagination { margin-top: 1.75rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.7rem; min-height: 2.7rem; padding: .35rem .65rem; border: 1px solid #657181; color: var(--text); background: var(--panel); text-decoration: none; font-weight: 650; }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { color: #171313; background: var(--accent); border-color: var(--accent); }
.pagination .dots { background: transparent; }

.site-footer { padding: 2rem 0 1rem; background: #0e1115; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 1rem; }
.footer-grid p, .copyright { color: var(--muted); font-size: .85rem; }
.footer-grid h2 { font: 700 .9rem/1.3 system-ui,sans-serif; margin: 0 0 .4rem; }
.footer-grid a { display: block; width: fit-content; margin-bottom: .2rem; font-size: .85rem; }
.copyright { border-top: 1px solid var(--line); margin-top: 1.1rem; padding-top: .85rem; }

@media (max-width: 940px) {
    .menu-toggle { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .5rem; }
    .nav-inner { justify-content: space-between; }
    .menu-links { display: none; }
    .menu-links.open { display: block; position: absolute; top: 100%; left: 0; right: 0; z-index: 30; background: var(--panel); border: 1px solid var(--line); }
    .nav-list { display: block; }
    .nav-list > li > a, .nav-more summary { padding: .65rem .8rem; }
    .nav-dropdown { position: static; border: 0; padding-left: 1.1rem; }
    .article-layout { grid-template-columns: minmax(0,1fr); }
    .article-aside { display: none; }
}
@media (max-width: 730px) {
    .wrap { width: calc(100% - 1.75rem); }
    .mast-inner { min-height: 5.7rem; }
    .mast-actions { display: none; }
    .briefing-grid { grid-template-columns: minmax(0,1fr); }
    .dispatches { border-left: 0; border-top: 1px solid var(--line); }
    .register-strip, .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .register-strip a:nth-child(2) { border-right: 0; }
    .register-strip a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .report-note { grid-template-columns: minmax(0,1fr); }
    .section-title { flex-wrap: wrap; }
}
@media (max-width: 460px) {
    .brand img { width: 2.55rem; height: 2.55rem; }
    .nav-search { flex-basis: 11rem; }
    .card-grid, .fact-grid { grid-template-columns: minmax(0,1fr); }
    .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .footer-grid > div:first-child { grid-column: 1/-1; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; }
}
