/* headline.nz — single stylesheet, copied to /assets/site.css by build.py. Light theme. */
@font-face {
  font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/assets/fonts/newsreader-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face { /* macrons: Māori, Whangārei, Kāpiti */
  font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/assets/fonts/newsreader-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face { /* wordmark only */
  font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/assets/fonts/playfairdisplay-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face { /* macrons: Māori, Whangārei, Kāpiti */
  font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/assets/fonts/playfairdisplay-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --bg: #ffffff;
  --text: #16181d;
  --body: #3b4250;
  --muted: #667085;
  --rule: #eaecf0;
  --soft: #f4f5f7;
  --accent: #16181d;
  --accent-hover: #000;
  --live: #dc2626;
  --focus: #1f5fbf;
  --serif: 'Newsreader', Charter, 'Iowan Old Style', Georgia, serif;
  --brand: 'Playfair Display', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --measure: 44rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.55 var(--sans); overflow-wrap: break-word; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
img { max-width: 100%; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--bg); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* Header: masthead. Date + menu in a slim bar, centred wordmark, double rule. ".nz" sits in a black tab. */
.site-header { border-bottom: 0; }
.masthead-top { border-bottom: 0; }
.masthead-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .45rem; padding-bottom: .45rem; }
.today { font: 600 .72rem/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.today .short { display: none; }
.masthead { text-align: center; padding-top: 1.3rem; padding-bottom: 1.1rem; border-bottom: 3px double var(--text); }
.brand { text-decoration: none; }
.wordmark { font: 700 1.5rem/1 var(--brand); letter-spacing: -.02em; color: var(--text); white-space: nowrap; }
.brand-h1 { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
.masthead .wordmark { font-size: 2.9rem; letter-spacing: -.035em; }
.today .brand-local { margin-left: .6rem; padding-left: .6rem; border-left: 1px solid var(--rule); color: var(--text); letter-spacing: .12em; }
.wordmark .tld { display: inline-block; margin-left: .08em; padding: .08em .22em .12em; border-radius: .22em; background: var(--accent); color: #fff; font-size: .78em; letter-spacing: 0; vertical-align: .06em; }
.wordmark.small { font-size: 1rem; }
@media (max-width: 40rem) { .masthead .wordmark { font-size: 2.2rem; } .today .long { display: none; } .today .short { display: inline; } }
/* Section bar under the wordmark, between two black rules (the only lines in the header) */
.masthead:has(+ .sections) { border-bottom: 0; padding-top: .9rem; padding-bottom: 1.1rem; }
.sections { border-top: 1px solid var(--text); border-bottom: 1px solid var(--text); }
.sections ul { list-style: none; margin: 0; padding: .6rem 0; display: flex; justify-content: center; gap: 1.9rem; font: 500 .92rem/1.4 var(--sans); }
.sections a { color: var(--text); text-decoration: none; white-space: nowrap; }
.sections a:hover { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .45em; text-decoration-thickness: 2px; }
.sections a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-offset: .45em; text-decoration-thickness: 2px; text-decoration-color: var(--text); }
@media (max-width: 40rem) {
  .sections .wrap { padding: 0; }
  .sections ul { justify-content: flex-start; gap: 1.35rem; overflow-x: auto; scrollbar-width: none; padding: .6rem 1rem;
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
  .sections ul::-webkit-scrollbar { display: none; }
  .sections li { flex: none; }
  .sections li:last-child { padding-right: 2rem; }
}
/* story page: section, then the date after a hairline */
.dateline .kicker { color: var(--text); padding-right: .6rem; border-right: 1px solid var(--rule); line-height: 1; }
@media (max-width: 40rem) { .dateline .kicker { flex-basis: 100%; padding-right: 0; border-right: 0; line-height: inherit; } }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; font-size: .85rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* Page heading */
main.wrap { padding-top: 1.5rem; padding-bottom: 3rem; }
.page-head { margin-bottom: .4rem; }
.page-head h1 { font: 650 1.9rem/1.15 var(--serif); margin: .1rem 0 .3rem; letter-spacing: -.01em; }
.dateline { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 .2rem; font: 600 .78rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.dateline a { color: inherit; text-decoration: none; }
.dateline a:hover { color: var(--accent); }
.sub { margin: 0; font-size: .85rem; color: var(--muted); }

/* Story list */
.list { list-style: none; margin: 0; padding: 0; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.item .txt { min-width: 0; }
.item h2 { font: 650 1.2rem/1.28 var(--serif); margin: 0 0 .3rem; letter-spacing: -.005em; }
.item h2 a { color: var(--text); text-decoration: none; }
.item h2 a:hover { color: var(--accent); }
.item .summary { margin: 0 0 .5rem; color: var(--body); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item.top { display: block; padding-top: .6rem; }
.item.top h2 { font-size: 1.65rem; line-height: 1.16; }
.item.top .summary { -webkit-line-clamp: 3; font-size: 1rem; }
.thumb { margin: .2rem 0 0; width: 9rem; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--soft); }
.hero { margin: 0 0 .8rem; aspect-ratio: 16 / 9; max-height: 22rem; width: 100%; border-radius: 8px; overflow: hidden; background: var(--soft); }
.thumb img, .hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb > a, .hero > a { display: block; height: 100%; }
.item:has(figure a:hover) h2 a { color: var(--accent); }
@media (max-width: 39.99rem) {
  .item:not(.top) .summary { display: none; }
  .item:not(.top) h2 { font-size: 1.08rem; }
  .thumb { width: 5.5rem; }
  .item.top h2 { font-size: 1.4rem; }
}
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; font-size: .8rem; color: var(--muted); }

/* Outlet icons */
.icons { display: inline-flex; align-items: center; gap: .25rem; }
.icon { width: 1rem; height: 1rem; border-radius: 3px; object-fit: cover; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.1); flex: none; }
.icon.lg { width: 1.25rem; height: 1.25rem; }
.icon.mono, .icon.more { display: inline-grid; place-items: center; font: 600 .6rem/1 var(--sans); color: #fff; background: #667085; box-shadow: none; }
.icon.more { width: auto; min-width: 1rem; padding: 0 .25rem; background: #e7e5e0; color: #444; }

/* New / "N new reports" flags */
.flag { display: inline-flex; align-items: center; gap: .3rem; font: 700 .68rem/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; }
.flag.new { color: var(--accent); }
.flag.live { color: var(--live); }
.flag.live::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--live); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .flag.live::before { animation: none; } }

/* Story page */
.story-page h1 { font: 650 2rem/1.15 var(--serif); margin: .2rem 0 .7rem; letter-spacing: -.015em; }
@media (min-width: 40rem) { .story-page h1 { font-size: 2.4rem; } }
.s-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; margin: 0 0 1.2rem; font-size: .85rem; color: var(--muted); }
.cover { margin: 0 0 1.2rem; }
.cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--soft); }
.cover figcaption { font-size: .75rem; color: var(--muted); margin-top: .35rem; text-align: right; }
.cover figcaption a { color: var(--muted); }
.lede { font: 400 1.22rem/1.6 var(--serif); margin: 0 0 2rem; }
.story-page h2 { font: 700 .78rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 2rem 0 .8rem; }

/* Full story compiled from the reports: key facts box, paragraphs ending in source icons */
/* Folded by default (<details>): a labelled bar with a hint and a chevron; the text stays in the page */
.fold { margin: 0 0 1rem; border: 1px solid var(--rule); border-radius: 8px; }
.fold > summary { display: flex; align-items: baseline; gap: .6rem; padding: .8rem 1rem; cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary h2 { margin: 0; font: 600 .78rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--text); }
.fold-hint { font-size: .8rem; color: var(--muted); }
.fold > summary::after { content: ""; margin-left: auto; align-self: center; width: .5rem; height: .5rem; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.fold[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.fold > summary:hover h2 { text-decoration: underline; text-underline-offset: .2em; }
.fold[open] > summary { border-bottom: 1px solid var(--rule); }
.fold-body { padding: 1rem 1.1rem 1.1rem; }
.fold-body > :first-child { margin-top: 0; }
.fold-body > :last-child { margin-bottom: 0; }
.facts { background: var(--soft); border-color: var(--soft); }
.facts[open] > summary { border-bottom-color: #e4e6ea; }
.facts ul { margin: 0; padding-left: 1.1rem; }
.facts li { margin: .25rem 0; font-size: .95rem; }
.full-story { margin-bottom: 2.5rem; }
@media (prefers-reduced-motion: reduce) { .fold > summary::after { transition: none; } }
.full-story p { font: 1.06rem/1.7 var(--serif); margin: 0 0 1rem; }
.full-story h3 { margin: 1.6rem 0 .5rem; font: 650 1.1rem/1.3 var(--serif); }
.devs, .diffs { margin: 0; padding-left: 1.1rem; }
/* "Where reports differ": folded inside the full story */
.subfold { margin: 1.6rem 0 0; }
.subfold > summary { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; list-style: none; }
.subfold > summary::-webkit-details-marker { display: none; }
.subfold > summary h3 { margin: 0; }
.subfold > summary::after { content: ""; width: .45rem; height: .45rem; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.subfold[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.subfold > summary:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.subfold .diffs { margin-top: .5rem; }
@media (prefers-reduced-motion: reduce) { .subfold > summary::after { transition: none; } }
.devs li, .diffs li { margin: .35rem 0; font-size: .95rem; }
.devs .when { display: block; font-size: .75rem; color: var(--muted); }
.cite { display: inline-flex; gap: .2rem; margin-left: .35rem; vertical-align: -.12em; }
.cite a { line-height: 0; border-radius: 3px; }
.cite .icon { width: .9rem; height: .9rem; opacity: .85; }
.cite a:hover .icon { opacity: 1; box-shadow: 0 0 0 2px var(--text); }
.full-story .compiled-from { font: .8rem/1.5 var(--sans); color: var(--muted); margin: 1.4rem 0 0; }

/* Coverage timeline: a sequence, not a ruler. Each icon gets a step (1.5rem, squeezed to fit the column), quiet
   stretches a short gap with a break mark; icons that would still touch stack upwards. */
.timeline { margin: .2rem 0 1.2rem; --lanes: var(--lanes-d); }
.tl-mark { --lane: var(--ld); }
@media (max-width: 40rem) { .timeline { --lanes: var(--lanes-m); } .tl-mark { --lane: var(--lm); } }
.tl-track, .tl-axis { position: relative; margin: 0 .5rem; width: min(100% - 1rem, var(--w)); }
.tl-track { isolation: isolate; height: calc(var(--lanes, 1) * 1.25rem + .35rem); border-bottom: 1px solid var(--text); }
.tl-mark { position: absolute; width: 1rem; height: 1rem; left: calc(var(--x) / var(--total) * 100%); bottom: calc(.3rem + var(--lane) * 1.25rem); transform: translateX(-50%); line-height: 0; display: block; border-radius: 4px; }
.tl-mark::after { content: ""; position: absolute; left: 50%; bottom: calc(-.3rem - var(--lane) * 1.25rem); height: calc(.3rem + var(--lane) * 1.25rem); border-left: 1px solid var(--rule); z-index: -1; }
.tl-mark:hover .icon, .tl-mark:focus-visible .icon { box-shadow: 0 0 0 2px var(--text); }
.tl-break { position: absolute; left: calc(var(--x) / var(--total) * 100%); bottom: 0; transform: translate(-50%, 50%); padding: 0 .3rem; background: var(--bg); font: 600 .62rem/1 var(--sans); color: var(--muted); letter-spacing: .02em; }
.tl-break::before, .tl-break::after { content: "/"; font-weight: 400; color: var(--text); }
.tl-break::before { margin-right: .2rem; } .tl-break::after { margin-left: .2rem; }
.tl-axis { height: 1.3rem; }
.tl-label { position: absolute; left: calc(var(--x) / var(--total) * 100%); top: 0; transform: translateX(-50%); padding-top: .3rem; font-size: .7rem; color: var(--muted); white-space: nowrap; }
.tl-label.start { transform: translateX(-.5rem); }
.tl-label.end { transform: translateX(calc(-100% + .5rem)); }
.timeline figcaption { margin-top: .35rem; font-size: .8rem; color: var(--muted); }
.timeline figcaption strong { color: var(--text); font-weight: 600; }
.headlines > li { scroll-margin-top: 1rem; }
.headlines > li:target { animation: hl-flash 1.6s ease-out; }
@keyframes hl-flash { from { background-color: var(--soft); } to { background-color: transparent; } }
.headlines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.headlines > li { padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.hl-outlet { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .82rem; color: var(--muted); margin-bottom: .25rem; }
.hl-outlet strong { color: var(--text); }
.hl-outlet .when { margin-left: auto; }
.hl { margin: 0; font: 600 1.15rem/1.35 var(--serif); }
.hl a, .updates a { color: var(--text); text-decoration: none; }
.hl a:hover, .updates a:hover { color: var(--accent); text-decoration: underline; }
.via { color: var(--muted); }
.also { margin: .25rem 0 0; font-size: .78rem; color: var(--muted); }
.also a { color: var(--muted); }
.updates { list-style: none; margin: .4rem 0 0; padding: 0 0 0 .8rem; border-left: 2px solid var(--rule); font: .95rem/1.4 var(--serif); }
.updates li { margin: .25rem 0; }
.updates .when { font: .75rem var(--sans); color: var(--muted); white-space: nowrap; }
.tag { display: inline-block; font: 600 .66rem/1.5 var(--sans); text-transform: uppercase; letter-spacing: .05em; background: #fff4dc; color: #8a5a00; padding: 0 .35rem; border-radius: 3px; margin-left: .4rem; vertical-align: .15em; }

/* Related stories */
.related ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.related li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.related a { font: 600 1.02rem/1.35 var(--serif); color: var(--text); text-decoration: none; }
.related a:hover { color: var(--accent); }
.rel-meta { display: flex; align-items: center; gap: .5rem; font-size: .75rem; color: var(--muted); white-space: nowrap; }

/* Day nav, archive */
.pager { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; margin: 2rem 0 0; }
.pager a { text-decoration: none; font-weight: 600; }
.pager .next { margin-left: auto; }
.archive h2 { font: 650 1.3rem/1.3 var(--serif); margin: 1.75rem 0 .4rem; }
.days { list-style: none; margin: 0; padding: 0; }
.days li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--rule); }
.days a { color: var(--text); text-decoration: none; }
.days a:hover { color: var(--accent); }
.days .count { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }

/* Prose (about, 404, moved) */
.prose { font: 1.06rem/1.65 var(--serif); }
.prose h1 { font: 650 1.9rem/1.2 var(--serif); }
.prose h2 { font: 650 1.3rem/1.3 var(--serif); margin: 2rem 0 .5rem; }
.prose ul { padding-left: 1.25rem; }
.prose code { font-size: .85em; background: var(--soft); padding: .05em .3em; border-radius: 3px; overflow-wrap: anywhere; }
.empty { color: var(--muted); }
.foot-link { font-size: .95rem; margin-top: 2rem; }
.foot-link a { text-decoration: none; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); font-size: .82rem; color: var(--muted); padding: 1.5rem 0 2.5rem; }
.site-footer p { margin: 0 0 .5rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.small-print { font-size: .85rem; color: var(--muted); }

/* Languages: switcher under the wordmark; translated headline under each outlet's original */
.langs ul { list-style: none; margin: .55rem 0 0; padding: 0; display: flex; justify-content: center; gap: .9rem; font-size: .8rem; }
.langs a { color: var(--muted); text-decoration: none; }
.langs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: .2em; }
.langs [aria-current] { color: var(--text); font-weight: 600; }
.gloss { margin: .2rem 0 0; font-size: .92rem; line-height: 1.5; color: var(--body); }
.updates .gloss { font-size: .85rem; }

/* Chinese and Korean: the site's fonts have no CJK glyphs, so use each system's own (sans reads best on screen) */
:root:lang(zh) { --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif; }
:root:lang(ko) { --cjk: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", "Noto Sans KR", "Source Han Sans K", sans-serif; }
:root:lang(zh), :root:lang(ko) { --serif: system-ui, var(--cjk); --sans: system-ui, var(--cjk); }
:lang(zh) .item h2, :lang(ko) .item h2, :lang(zh) .story-page h1, :lang(ko) .story-page h1,
:lang(zh) .page-head h1, :lang(ko) .page-head h1, :lang(zh) .prose h2, :lang(ko) .prose h2 { letter-spacing: 0; font-weight: 700; }
:lang(zh) .lede, :lang(ko) .lede, :lang(zh) .full-story p, :lang(ko) .full-story p, :lang(zh) .prose, :lang(ko) .prose { line-height: 1.85; }
:lang(zh) .lede, :lang(ko) .lede { font-size: 1.12rem; }
:lang(zh) .dateline, :lang(ko) .dateline, :lang(zh) .fold > summary h2, :lang(ko) .fold > summary h2 { letter-spacing: .02em; }
.hl:lang(en), .updates li:lang(en) { font-family: 'Newsreader', Charter, Georgia, serif; }
.updates li:lang(en) .when { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
.tl-break { white-space: nowrap; }
:root:lang(ja) { --cjk: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans CJK JP", "Noto Sans JP", sans-serif; --serif: system-ui, var(--cjk); --sans: system-ui, var(--cjk); }
:lang(ja) .item h2, :lang(ja) .story-page h1, :lang(ja) .page-head h1, :lang(ja) .prose h2 { letter-spacing: 0; font-weight: 700; }
:lang(ja) .lede, :lang(ja) .full-story p, :lang(ja) .prose { line-height: 1.85; }
:lang(ja) .lede { font-size: 1.12rem; }
.langs ul { flex-wrap: wrap; row-gap: .3rem; }

/* Topics: storylines, umbrella topics, people and organisations */
.part-of, .people-line { margin: .1rem 0 .35rem; font-size: .85rem; color: var(--muted); }
.part-of span:first-child, .people-line span:first-child { font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; margin-right: .35rem; }
.part-of a, .people-line a { color: var(--text); }
.people-line { margin: .5rem 0 1rem; }
.ongoing { margin: 0 0 1.4rem; padding: .2rem 0 1rem; border-bottom: 1px solid var(--rule); }
.ongoing-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .55rem; }
.ongoing-head span, .people-news .ongoing-head span { font: 600 .72rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ongoing .more, .people-news .more { color: var(--muted); text-decoration: none; font-size: .8rem; }
.ongoing .more:hover { color: var(--text); }
.ongoing ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; max-height: 4.6rem; overflow: hidden; }
.ongoing li a { display: block; padding: .3rem .75rem; border: 1px solid var(--rule); border-radius: 999px; font-size: .86rem;
  font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap; background: var(--bg); }
.ongoing li a:hover { border-color: var(--text); }
@media (max-width: 40rem) {
  /* one row that scrolls sideways */
  .ongoing ul { flex-wrap: nowrap; max-height: none; overflow-x: auto; scrollbar-width: none; margin: 0 -1rem; padding: 0 1rem .1rem;
    scroll-snap-type: x proximity; scroll-padding-inline: 1rem; -webkit-overflow-scrolling: touch; }
  .ongoing ul::-webkit-scrollbar { display: none; }
  .ongoing li { scroll-snap-align: start; flex: none; }
}
.topic-page h2 { margin: 2rem 0 .7rem; font: 600 .78rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.topic-page h1 { font: 650 2rem/1.15 var(--serif); margin: .2rem 0 .4rem; letter-spacing: -.015em; }
.topic-page .role { margin: 0 0 .3rem; font: 1.05rem/1.4 var(--serif); color: var(--body); }
.topic-page .s-meta { display: flex; flex-wrap: wrap; gap: .3rem .7rem; align-items: center; font-size: .85rem; color: var(--muted); margin: 0 0 1rem; }
.quiet { font-size: .78rem; color: var(--muted); }
.so-far { margin: 1rem 0 0; padding: 1.1rem 1.2rem; background: var(--soft); border-radius: 8px; }
.so-far h2 { margin-top: 0; }
.so-far p { font: 1.04rem/1.7 var(--serif); margin: 0 0 .8rem; }
.so-far h3 { margin: 1.1rem 0 .3rem; font: 650 1rem/1.3 var(--serif); }
.srcs { font: 500 .66rem/1 var(--sans); color: var(--muted); margin-left: .15em; white-space: nowrap; vertical-align: super; }
.srcs a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .15em; }
.srcs a:hover { color: var(--text); text-decoration-color: var(--text); }
.so-far-note { font: .78rem/1.5 var(--sans) !important; color: var(--muted); margin: .8rem 0 0 !important; }
/* Key moments: a timeline down the left, each moment with its story's photo */
.moments { list-style: none; margin: .3rem 0 0; padding: 0 0 0 .9rem; border-left: 2px solid var(--rule); }
.moments li { margin: .45rem 0; font-size: .95rem; }
.moments time { display: block; font-size: .72rem; color: var(--muted); }
.moments a { color: var(--text); text-decoration: none; }
.moments a:hover { text-decoration: underline; }
.moments.v2 { margin: .5rem 0 0; padding: 0 0 0 1rem; }
.moments.v2 li { position: relative; margin: 0 0 .8rem; font-size: inherit; }
.moments.v2 li::before { content: ""; position: absolute; left: calc(-1rem - 5px); top: .35rem; width: 8px; height: 8px; border-radius: 50%; background: var(--text); }
.moments.v2 a { display: flex; align-items: flex-start; gap: .8rem; color: var(--text); text-decoration: none; font-size: .95rem; line-height: 1.45; }
.moments.v2 a:hover { text-decoration: none; }
.moments.v2 a:hover .km-txt { text-decoration: underline; text-underline-offset: .15em; }
.km-txt { flex: 1; }
.moments.v2 img { flex: none; width: 5.5rem; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; background: var(--rule); }
@media (max-width: 40rem) { .moments.v2 img { width: 4.2rem; } }
/* Topic cover: the photo of the topic's most-covered recent story */
.topic-cover { margin: 0 0 1.2rem; }
.topic-cover img { max-height: 24rem; }
.topic-cover figcaption a { color: inherit; }
/* Topic cards (topics index): photo, name, coverage */
.tcards { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1rem; }
.tcards.small { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem .8rem; }
.tcard a { display: block; color: var(--text); text-decoration: none; }
.tc-img { margin: 0 0 .45rem; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--soft); }
.tc-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tc-name { display: block; font: 650 1.1rem/1.3 var(--serif); }
.tcard.small .tc-name { font-size: .98rem; }
.tcard a:hover .tc-name { text-decoration: underline; text-underline-offset: .15em; }
.tc-meta { display: block; margin-top: .15rem; font-size: .78rem; color: var(--muted); }
@media (max-width: 40rem) {
  .tcards { gap: 1rem .75rem; }
  .tcards.small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-name { font-size: .98rem; }
}
.more-topics { margin-top: .4rem; }
/* Earlier storylines of a big topic, folded */
.earlier { margin-top: .6rem; }
.earlier > summary { cursor: pointer; padding: .5rem 0; font: 600 .85rem/1.4 var(--sans); color: var(--muted); }
.earlier > summary:hover { color: var(--text); }
.topic-list { list-style: none; margin: 0; padding: 0; }
.topic-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.topic-list li > a { font: 600 1.05rem/1.35 var(--serif); color: var(--text); text-decoration: none; }
.topic-list li > a:hover { text-decoration: underline; }
.topic-meta { font-size: .78rem; color: var(--muted); }
.month { margin: 1.2rem 0 .3rem; font: 600 .8rem/1.4 var(--sans); color: var(--text); }
.story-rows { list-style: none; margin: 0; padding: 0; }
.story-rows li { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.story-rows time { flex: none; width: 5.2rem; font-size: .75rem; color: var(--muted); }
.story-rows a { flex: 1; color: var(--text); text-decoration: none; font-family: var(--serif); }
.story-rows a:hover { text-decoration: underline; }
.story-rows .icons { flex: none; }
.key-people ul, .ent-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .5rem; }
.key-people li, .ent-list li { padding: .25rem .6rem; border: 1px solid var(--rule); border-radius: 999px; font-size: .88rem; }
.key-people li a, .ent-list li a { color: var(--text); text-decoration: none; font-weight: 600; }
.key-people li span, .ent-list li span { color: var(--muted); font-size: .78rem; margin-left: .2rem; }
.ent-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.coverage-by ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .85rem; }
.coverage-by li { display: inline-flex; align-items: center; gap: .3rem; }
.coverage-by b { font-weight: 600; color: var(--muted); }
@media (max-width: 40rem) { .ent-cols { grid-template-columns: 1fr; } .story-rows time { width: 4.2rem; } .story-rows .icons { display: none; } }
.topics-index h2, .topics-index .ent-cols h2 { margin: 2rem 0 .6rem; font: 600 .78rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.en-tag { display: inline-block; margin-left: .35em; padding: 0 .3em; border-radius: 3px; font: 600 .6rem/1.5 var(--sans); color: var(--muted); box-shadow: 0 0 0 1px var(--rule); vertical-align: .15em; letter-spacing: .04em; }

/* People's photos and organisations' logos (Wikimedia Commons) */
.ent-head { display: flex; align-items: center; gap: 1.1rem; margin-top: .2rem; }
.ent-head .s-meta { margin-bottom: 0 !important; }
.ent-photo { flex: none; margin: 0; width: 6.5rem; height: 6.5rem; overflow: hidden; background: var(--soft); }
.ent-photo.person { border-radius: 50%; }
.ent-photo.org { border-radius: 10px; background: #fff; border: 1px solid var(--rule); padding: .55rem; }
.ent-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.ent-photo.org img { object-fit: contain; object-position: center; }
.ent-txt { min-width: 0; }
.ent-credit { margin: 1.5rem 0 0; font-size: .7rem; }
.ent-head + .threads, .ent-head + .all-stories { margin-top: 1.2rem; }
.ent-credit a { color: var(--muted); text-decoration: none; }
.ent-credit a:hover { text-decoration: underline; }
@media (max-width: 40rem) { .ent-photo { width: 4.8rem; height: 4.8rem; } .ent-head { gap: .85rem; } }
.av { width: 1.35rem; height: 1.35rem; margin: -.2rem .4rem -.2rem -.3rem; vertical-align: middle; object-fit: cover; object-position: 50% 20%; background: var(--soft); }
.av.person { border-radius: 50%; }
.av.org { border-radius: 4px; object-fit: contain; background: #fff; }
.key-people li.has-av, .ent-list li.has-av { padding-left: .5rem; }
/* People on the topics index: cards with photo, name and role */
.pcards { list-style: none; margin: 0 0 .9rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem 1rem; }
.pcard a { display: flex; align-items: center; gap: .65rem; padding: .35rem 0; color: var(--text); text-decoration: none; }
.pc-ph { position: relative; flex: none; width: 2.9rem; height: 2.9rem; border-radius: 50%; overflow: hidden; background: var(--soft); }
.pc-ph::before { content: attr(data-i); position: absolute; inset: 0; display: grid; place-items: center; font: 600 .85rem/1 var(--sans); color: var(--muted); }
.pc-ph img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.pc-txt { min-width: 0; }
.pc-name { display: block; font: 600 .95rem/1.25 var(--serif); }
.pcard a:hover .pc-name { text-decoration: underline; text-underline-offset: .15em; }
.pc-role { display: block; font-size: .75rem; line-height: 1.3; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 40rem) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem .75rem; } .pc-ph { width: 2.5rem; height: 2.5rem; } }
/* Breadcrumb line above page titles */
.crumbs { gap: .15rem .4rem; }
.crumbs a { color: var(--muted); }
.crumbs a:last-child { color: var(--text); }
.s-meta .day-link { color: inherit; text-decoration: none; }
.s-meta .day-link:hover { text-decoration: underline; }
.s-meta .flag { margin-left: .5rem; }
/* More from a story's storyline; people in the news on the homepage */
.thread-more .foot-link { margin: .6rem 0 0; }
.people-news { margin: 2rem 0 1rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.people-news .ongoing-head { margin-bottom: .6rem; }
