/*
 * Long reads («Истории», /istorii/): the article, its blocks, cards and the front page band.
 * Loaded only where long reads are shown (functions.php). Blocks are plain HTML with lr-* classes;
 * how to write each one — ~/longreads/README.md.
 */

:root {
	--lr-col: 680px;    /* reading column */
	--lr-wide: 960px;   /* wide photos, maps, numbers */
	--lr-hero-ink: #f1f3f1;
	--lr-hero-muted: #a3aaa6;
	--lr-hero-accent: #45bf7e;
	--map-land: #efebe3;
	--map-land-2: #e3ddd0;
	--map-water: #bcd5e0;
	--map-line: #b9b2a3;
	--map-building: #dfd8ca;
	--map-park: #d6e4c8;
	--map-road: #ffffff;
	--map-road-case: #d1c9b8;
	--map-rail: #8c877d;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--map-land: #1e2321;
		--map-land-2: #262c29;
		--map-water: #1b2f38;
		--map-line: #46504b;
		--map-building: #2c332f;
		--map-park: #1f2c23;
		--map-road: #3b4440;
		--map-road-case: #141917;
		--map-rail: #6d7671;
	}
}
:root[data-theme="dark"] {
	--map-land: #1e2321;
	--map-land-2: #262c29;
	--map-water: #1b2f38;
	--map-line: #46504b;
	--map-building: #2c332f;
	--map-park: #1f2c23;
	--map-road: #3b4440;
	--map-road-case: #141917;
	--map-rail: #6d7671;
}

/* ---------- Opening: dark band, serif headline, cover photo ---------- */
.lr-hero { background: var(--band); color: var(--lr-hero-ink); padding: 64px 48px 0; }
.lr-hero-text { max-width: 860px; margin: 0 auto; padding-bottom: 44px; }
.lr-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; color: var(--green); }
.lr-kicker > * + *::before { content: "·"; margin: 0 9px; color: var(--muted); }
.lr-kicker a:hover { color: var(--ink); }
.lr-hero .lr-kicker { color: var(--lr-hero-accent); }
.lr-hero .lr-kicker a:hover { color: #fff; }
.lr-hero .lr-kicker > * + * { color: var(--lr-hero-ink); }
.lr-hero h1 { margin: 18px 0 0; font-family: var(--serif); font-size: 58px; line-height: 1.06; font-weight: 650; letter-spacing: -.025em; text-wrap: balance; }
.lr-dek { margin: 22px 0 0; font-size: 21px; line-height: 1.5; color: #cdd2cf; max-width: 46em; }
.lr-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 26px; font-size: 14px; color: var(--lr-hero-muted); }
.lr-cover { margin: 0 -48px; }
.lr-cover img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.lr-cover figcaption { padding: 10px 48px 14px; font-size: 13px; line-height: 1.45; color: var(--lr-hero-muted); }
.lr-cover figcaption a { text-decoration: underline; text-underline-offset: 2px; }
.lr-hero:not(:has(.lr-cover)) { padding-bottom: 8px; }

/* ---------- Page and reading column ---------- */
.lr-page { background: var(--paper); padding: 56px 24px 48px; }
.lr-body { font-family: var(--serif); font-size: 20px; line-height: 1.7; color: var(--ink); counter-reset: lr-ch; }
.lr-body > *, .lr-foot { max-width: var(--lr-col); margin-left: auto; margin-right: auto; }
.lr-body > * { margin-top: 0; margin-bottom: 1.15em; }
.lr-body > .is-wide { max-width: var(--lr-wide); }
.lr-body > .is-full { max-width: none; margin-left: -24px; margin-right: -24px; }
.lr-body a { color: var(--green-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lr-body strong { font-weight: 700; }
.lr-body ul, .lr-body ol { padding-left: 1.2em; }
.lr-body li { margin-bottom: .35em; }

/* Drop cap on the first paragraph */
.lr-body > p:first-of-type::first-letter { float: left; margin: .1em .12em 0 0; font-size: 4.3em; line-height: .78; font-weight: 700; color: var(--green); }

/* Chapters: numbered, with a rule above */
.lr-body > h2 { counter-increment: lr-ch; margin-top: 2.3em; margin-bottom: .65em; padding-top: 16px; border-top: 3px solid var(--rule); font-family: var(--sans); font-size: 32px; line-height: 1.15; font-weight: 850; letter-spacing: -.025em; text-wrap: balance; scroll-margin-top: 72px; }
.lr-body > h2::before { content: counter(lr-ch, decimal-leading-zero); display: block; margin-bottom: 10px; font-size: 14px; font-weight: 800; letter-spacing: .1em; color: var(--green); }
.lr-body h3 { margin-top: 1.8em; margin-bottom: .45em; font-family: var(--sans); font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -.015em; }

/* End mark: the green dot after the last paragraph, as in news */
.lr-body > p:last-child::after { content: "\2060"; padding-left: .8em; background: radial-gradient(circle .3em at calc(100% - .3em) 55%, var(--green) calc(100% - .6px), transparent) no-repeat; }

/* ---------- Blocks ---------- */
.lr-label { margin: 0 0 10px; font-family: var(--sans); font-size: 12.5px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }

/* «Коротко»: the gist in a few points, usually right after the first paragraphs */
.lr-brief { padding: 22px 26px 18px; background: var(--bg); font-family: var(--sans); font-size: 16.5px; line-height: 1.55; }
.lr-brief ul { list-style: none; margin: 0; padding: 0; }
.lr-brief li { position: relative; margin: 0 0 9px; padding-left: 20px; }
.lr-brief li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* Note / background box («Справка») */
.lr-note { padding: 2px 0 2px 22px; border-left: 4px solid var(--green); font-family: var(--sans); font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.lr-note > :last-child { margin-bottom: 0; }
.lr-note p { margin: 0 0 .7em; }

/* Quote with its speaker: large upright serif between two rules, the opening guillemet hangs in the margin.
   Write the words without «»: they are added here. */
.lr-quote { position: relative; margin-top: 2em; margin-bottom: 2em; padding: 30px 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lr-quote::before { content: ""; position: absolute; top: -2px; left: 0; width: 64px; height: 3px; background: var(--green); }
.lr-quote blockquote { margin: 0; }
.lr-quote blockquote p { margin: 0 0 .5em; font-family: var(--serif); font-size: 30px; line-height: 1.32; font-weight: 500; letter-spacing: -.012em; text-wrap: pretty; }
.lr-quote blockquote p:first-child { text-indent: -.48em; }
.lr-quote blockquote p:first-child::before { content: "«"; color: var(--green); }
.lr-quote blockquote p:last-child { margin-bottom: 0; }
.lr-quote blockquote p:last-child::after { content: "»"; color: var(--green); }
.lr-quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-family: var(--sans); font-size: 14.5px; line-height: 1.4; color: var(--muted); }
.lr-quote figcaption::before { content: ""; flex: none; width: 24px; height: 2px; background: var(--green); }
.lr-quote figcaption img { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.lr-quote figcaption strong { display: block; color: var(--ink); font-size: 15.5px; font-weight: 750; }
.lr-quote.is-wide blockquote p { font-size: 38px; line-height: 1.25; }

/* Big numbers: one, or a row of two to four */
.lr-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 32px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 1.6em; margin-bottom: 1.6em; }
.lr-num { margin: 0; }
.lr-body > .lr-num { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lr-num b { display: block; font-family: var(--sans); font-size: 58px; line-height: 1; font-weight: 900; letter-spacing: -.035em; color: var(--green); font-variant-numeric: tabular-nums; }
.lr-num b small { font-size: .45em; letter-spacing: -.01em; font-weight: 800; }
.lr-num figcaption { margin-top: 10px; font-family: var(--sans); font-size: 15px; line-height: 1.45; color: var(--ink-2); }

/* Timeline: dates down a line */
.lr-timeline { list-style: none; padding: 0 !important; font-family: var(--sans); font-size: 16.5px; line-height: 1.55; }
.lr-timeline li { position: relative; margin: 0; padding: 0 0 20px 30px; border-left: 2px solid var(--line); }
.lr-timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.lr-timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--green); }
.lr-timeline li.is-key::before { background: var(--green); }
.lr-when { display: block; margin-bottom: 2px; font-size: 13.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--green); }

/* Who is who: people and organisations of the story */
.lr-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; font-family: var(--sans); }
.lr-person { padding: 18px 20px; background: var(--bg); }
.lr-person img { float: right; width: 64px; height: 64px; margin: 0 0 8px 12px; border-radius: 50%; object-fit: cover; }
.lr-person h3 { margin: 0 !important; font-size: 18px !important; }
.lr-role { margin: 2px 0 8px; font-size: 13.5px; color: var(--muted); }
.lr-person p:not(.lr-role) { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* Photos: in the column, wide (.is-wide) or edge to edge (.is-full); galleries of two or three */
.lr-photo { margin-top: 1.8em; margin-bottom: 1.8em; }
.lr-photo img { width: 100%; }
.lr-photo figcaption, .lr-gallery figcaption, .lr-map figcaption, .lr-chart figcaption { margin-top: 8px; font-family: var(--sans); font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.lr-body > .is-full figcaption { padding: 0 24px; }
.lr-credit { color: var(--muted); }
.lr-credit a, .lr-photo figcaption a, .lr-gallery figcaption a, .lr-map figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lr-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; margin-top: 1.8em; margin-bottom: 1.8em; }
.lr-gallery figure { margin: 0; }
.lr-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lr-gallery > figcaption { grid-column: 1 / -1; margin-top: 0; }

/* Maps and charts: inline SVG on a quiet background; colours follow the theme.
   Draw them 640 units wide: the default text sizes below then read as ~21 px in the column and ~12 px on a phone. */
.lr-map, .lr-chart { margin-top: 1.8em; margin-bottom: 1.8em; }
.lr-map svg, .lr-chart svg { display: block; width: 100%; height: auto; background: var(--bg); font-family: var(--sans); }
.lr-map .land { fill: var(--map-land); stroke: var(--map-line); stroke-width: 1; }
.lr-map .land-2 { fill: var(--map-land-2); stroke: var(--map-line); stroke-width: 1; }
.lr-map .water { fill: var(--map-water); stroke: none; }
.lr-map .river { fill: none; stroke: var(--map-water); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.lr-map .border { fill: none; stroke: var(--map-line); stroke-width: 2; stroke-dasharray: 6 4; }
.lr-map .route { fill: none; stroke: var(--green); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.lr-map .route-red { fill: none; stroke: var(--red); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.lr-map .area { fill: var(--green); fill-opacity: .18; stroke: var(--green); stroke-width: 1.5; }
.lr-map .dot { fill: var(--green); stroke: var(--paper); stroke-width: 3; }
.lr-map .dot-red { fill: var(--red); stroke: var(--paper); stroke-width: 3; }
.lr-map .dot-ink { fill: var(--ink); stroke: var(--paper); stroke-width: 3; }
.lr-map text, .lr-chart text { fill: var(--ink); font-size: 22px; font-weight: 600; paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round; }
.lr-map text.muted, .lr-chart text.muted { fill: var(--muted); font-weight: 500; font-size: 19px; }
.lr-map text.big { font-size: 27px; font-weight: 800; }
.lr-map text.water-label { fill: var(--muted); font-style: italic; font-weight: 500; font-size: 20px; stroke: none; }
/* Maps drawn from OpenStreetMap by ~/longreads/tools/map.php */
.lr-map .park path { fill: var(--map-park); }
.lr-map .building path { fill: var(--map-building); }
.lr-map g.river path { fill: none; stroke: var(--map-water); stroke-linecap: round; stroke-linejoin: round; }
.lr-map .road-case, .lr-map .road { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lr-map .road-case { stroke: var(--map-road-case); }
.lr-map .road-case .major { stroke-width: 9; }
.lr-map .road-case .minor { stroke-width: 5; }
.lr-map .road { stroke: var(--map-road); }
.lr-map .road .major { stroke-width: 7; }
.lr-map .road .minor { stroke-width: 3.2; }
.lr-map .rail path { fill: none; stroke: var(--map-rail); stroke-width: 2.4; }
.lr-map g.area { fill: var(--green); fill-opacity: .7; stroke: var(--green); stroke-width: 1.5; }
.lr-map g.route path { stroke-width: 6; }
.lr-map .axis { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-dasharray: 8 6; }
.lr-map .runway path { fill: none; stroke: var(--ink); stroke-linecap: butt; }
.lr-map .scale path { fill: none; stroke: var(--ink); stroke-width: 2; }
.lr-map text.attr { fill: var(--muted); font-size: 13px; font-weight: 500; }
.lr-chart .bar { fill: var(--green); }
.lr-chart .bar-muted { fill: var(--line); }
.lr-chart .bar-red { fill: var(--red); }
.lr-chart .axis { stroke: var(--line); stroke-width: 1; }

/* Bars without SVG: rows with a value as a CSS variable, style="--v:73%" */
.lr-bars { font-family: var(--sans); font-size: 15px; }
.lr-bars .lr-label { margin-bottom: 14px; }
.lr-bar { display: grid; grid-template-columns: minmax(90px, 30%) 1fr; align-items: center; gap: 4px 14px; margin-bottom: 10px; }
.lr-bar > span { font-weight: 600; line-height: 1.3; }
.lr-bar > b { position: relative; display: block; width: var(--v); min-width: max-content; padding: 4px 8px; background: var(--green); color: #fff; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.lr-bar.is-muted > b { background: var(--muted); }
.lr-bar.is-red > b { background: var(--btn-red); }
.lr-bars > p:last-child { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }

/* Tables */
.lr-body table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; line-height: 1.4; }
.lr-body th { text-align: left; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--rule); padding: 8px 10px 8px 0; }
.lr-body td { border-bottom: 1px solid var(--line); padding: 10px 10px 10px 0; vertical-align: top; }
.lr-body td.num, .lr-body th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Scene break: three green dots */
.lr-break { height: 8px; width: 56px; margin: 2.4em auto !important; border: 0; background: radial-gradient(circle 4px at 4px 4px, var(--green) 95%, transparent 100%) 0 0 / 24px 8px repeat-x; }

/* ---------- Under the text ---------- */
.lr-foot { margin-top: 48px; padding-top: 14px; border-top: 3px solid var(--rule); }
.lr-sources h2 { margin: 0 0 8px; font-size: 12.5px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.lr-sources ol { margin: 0; padding-left: 1.6em; font-size: 14px; line-height: 1.5; color: var(--muted); }
.lr-sources li { margin-bottom: 4px; padding-left: 2px; }
.lr-sources a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; word-break: break-word; }
.lr-sources a:hover { color: var(--green-dark); text-decoration-color: currentColor; }
.lr-sources + .ai-note { margin-top: -10px; }

/* ---------- Cards: lists, the front page band, «Ещё истории» ---------- */
.lr-card { display: flex; flex-direction: column; gap: 12px; }
.lr-card .thumb { aspect-ratio: 16 / 9; }
.lr-card-body { display: flex; flex-direction: column; gap: 10px; }
.lr-card .headline { margin: 0; font-family: var(--serif); font-size: 23px; line-height: 1.2; font-weight: 650; letter-spacing: -.015em; text-wrap: balance; }
.lr-card p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.lr-card-meta { font-size: 13px; color: var(--muted); }
.lr-card.is-lead { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 0; align-items: stretch; background: var(--band); color: var(--lr-hero-ink); margin-bottom: 40px; }
.lr-card.is-lead .lr-card-img { display: block; min-width: 0; }
.lr-card.is-lead .thumb { width: 100%; height: 100%; min-height: 320px; aspect-ratio: auto; } /* fills the row: a 16:9 box at full height would grow wider than its column */
.lr-card.is-lead .lr-card-body { justify-content: center; gap: 14px; padding: 32px; }
.lr-card.is-lead .headline { font-size: 34px; line-height: 1.12; }
.lr-card.is-lead p { color: #cdd2cf; font-size: 16.5px; }
.lr-card.is-lead .lr-kicker { color: var(--lr-hero-accent); }
.lr-card.is-lead .lr-kicker > * + * { color: var(--lr-hero-ink); }
.lr-card.is-lead .lr-card-meta { color: var(--lr-hero-muted); }
.lr-card.is-lead .headline a:hover { color: var(--lr-hero-accent); }
.lr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.lr-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.lr-more .lr-card .headline { font-size: 19px; }
.lr-more .lr-card p { display: none; }
/* One other story so far: photo and text side by side across the column, not a lone narrow card. */
.lr-more > .lr-card:only-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.lr-more > .lr-card:only-child p { display: block; }

/* /istorii/ heading */
.lr-archive-head { background: var(--band); color: var(--lr-hero-ink); padding: 40px 32px 36px; margin-bottom: 32px; }
.lr-archive-head .crumbs { font-size: 13px; color: var(--lr-hero-muted); margin-bottom: 10px; }
.lr-archive-head .crumbs a:hover { color: #fff; }
.lr-archive-head h1 { margin: 0; font-family: var(--serif); font-size: 56px; line-height: 1; font-weight: 650; letter-spacing: -.025em; }
.lr-archive-head p { margin: 14px 0 0; max-width: 40em; font-size: 17px; line-height: 1.5; color: #cdd2cf; }

/* Front page band: the newest story wide, two more beside it */
.lr-band { margin-top: 48px; padding: 24px 28px 30px; background: var(--band); color: var(--lr-hero-ink); }
.lr-band .section-title { border-top-color: var(--lr-hero-accent); }
.lr-band .section-title h2 { font-family: var(--serif); font-weight: 650; font-size: 26px; letter-spacing: -.01em; }
.lr-band .section-title a.more { color: var(--lr-hero-accent); }
.lr-band .section-title a.more:hover { color: #fff; }
.lr-band-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; }
.lr-band-grid > :only-child { grid-column: 1 / -1; }
.lr-band-grid > :only-child .lr-card { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; align-items: center; } /* one story: photo and text side by side */
.lr-band-side { display: grid; gap: 24px; align-content: start; }
.lr-band .lr-card p { color: #cdd2cf; }
.lr-band .lr-kicker { color: var(--lr-hero-accent); }
.lr-band .lr-kicker > * + * { color: var(--lr-hero-ink); }
.lr-band .lr-card-meta { color: var(--lr-hero-muted); }
.lr-band .headline a:hover { color: var(--lr-hero-accent); }
.lr-band .lr-band-main .headline { font-size: 32px; line-height: 1.12; }
.lr-band .lr-band-side .headline { font-size: 19px; }
.lr-band .lr-band-side p { display: none; }
.lr-band-grid.is-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } /* two stories: half and half */
.lr-band .is-pair .headline { font-size: 25px; line-height: 1.15; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1080px) {
	.lr-hero h1 { font-size: 48px; }
}
@media (max-width: 860px) {
	.lr-hero { padding: 40px 24px 0; }
	.lr-cover { margin: 0 -24px; }
	.lr-cover figcaption { padding: 10px 24px 14px; }
	.lr-card.is-lead { grid-template-columns: 1fr; }
	.lr-card.is-lead .thumb { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
	.lr-card.is-lead .lr-card-body { padding: 20px; }
	.lr-card.is-lead .headline { font-size: 27px; }
	.lr-grid, .lr-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lr-more > .lr-card:only-child { grid-template-columns: 1fr; }
	.lr-band-grid { grid-template-columns: 1fr; }
	.lr-band-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lr-band-grid > :only-child .lr-card { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 600px) {
	.lr-hero { margin: 0 calc(-1 * var(--gutter)); padding: 28px 16px 0; }
	.lr-hero-text { padding-bottom: 28px; }
	.lr-hero h1 { font-size: 33px; line-height: 1.1; }
	.lr-dek { font-size: 17.5px; }
	.lr-meta { font-size: 13px; margin-top: 18px; }
	.lr-cover { margin: 0 -16px; }
	.lr-cover img { aspect-ratio: 3 / 2; }
	.lr-cover figcaption { padding: 8px 16px 12px; }
	.lr-page { margin: 0 calc(-1 * var(--gutter)); padding: 32px 16px 36px; }
	.lr-body { font-size: 18px; line-height: 1.65; }
	.lr-body > .is-full { margin-left: -16px; margin-right: -16px; }
	.lr-body > .is-full figcaption { padding: 0 16px; }
	.lr-body > h2 { font-size: 25px; }
	.lr-body h3 { font-size: 19.5px; }
	.lr-quote { padding: 24px 0 20px; }
	.lr-quote blockquote p, .lr-quote.is-wide blockquote p { font-size: 23px; line-height: 1.35; }
	.lr-quote blockquote p:first-child { text-indent: 0; }
	.lr-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
	.lr-num b { font-size: clamp(28px, 9.5vw, 40px); } /* "131 000" fits half of a 320 px screen */
	.lr-brief { padding: 18px 18px 12px; font-size: 16px; }
	.lr-people { grid-template-columns: 1fr; }
	.lr-gallery { grid-template-columns: 1fr; }
	.lr-bar { grid-template-columns: 1fr; }
	.lr-grid, .lr-more, .lr-band-side { grid-template-columns: 1fr; gap: 28px; }
	.lr-archive-head { margin: 0 calc(-1 * var(--gutter)) 24px; padding: 28px 16px; }
	.lr-archive-head h1 { font-size: 40px; }
	.lr-card.is-lead { margin: 0 calc(-1 * var(--gutter)) 28px; }
	.lr-band { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 20px 16px 24px; }
	.lr-band .lr-band-main .headline { font-size: 25px; }
	.lr-band-grid.is-pair { grid-template-columns: 1fr; gap: 28px; }
	.lr-band .is-pair .headline { font-size: 23px; }
}

/* ---------- Print: black on white, no band ---------- */
@media print {
	:root, :root[data-theme], :root:not([data-theme="light"]) {
		--map-land: #efebe3;
		--map-land-2: #e3ddd0;
		--map-water: #bcd5e0;
		--map-line: #b9b2a3;
		--map-building: #dfd8ca;
		--map-park: #d6e4c8;
		--map-road: #ffffff;
		--map-road-case: #d1c9b8;
		--map-rail: #8c877d;
	}
	.lr-hero, .lr-archive-head, .lr-page { background: none; color: #000; padding: 0; margin: 0; }
	.lr-hero h1 { font-size: 24pt; }
	.lr-dek { color: #1a1a1a; font-size: 13pt; }
	.lr-meta, .lr-cover figcaption { color: #444; }
	.lr-kicker, .lr-hero .lr-kicker { color: var(--green); }
	.lr-hero .lr-kicker > * + *, .lr-kicker > * + * { color: #000; }
	.lr-cover figcaption { padding: 6pt 0 0; font-size: 8.5pt; }
	.lr-cover figcaption a, .lr-body figcaption a { color: inherit; text-decoration: none; }
	.lr-hero-text { max-width: none; padding-bottom: 0; }
	.lr-cover { margin: 12pt 0 0; }
	.lr-cover img { max-height: 95mm; }
	.lr-more, .stay, .send-links { display: none !important; }
	.lr-body { font-size: 11.5pt; line-height: 1.55; }
	.lr-body > * { max-width: none; }
	.lr-body > h2 { font-size: 15pt; border-top-width: 1.5pt; }
	.lr-quote blockquote p { font-size: 16pt; line-height: 1.3; }
	.lr-num b { font-size: 26pt; }
	.lr-brief, .lr-person { background: none; border: 1pt solid #bbb; }
	.lr-body figure, .lr-brief, .lr-note, .lr-nums, .lr-timeline li { break-inside: avoid; }
	.lr-foot { max-width: none; }
	.lr-body > .is-full { margin-left: 0; margin-right: 0; }
	.lr-body > .is-full figcaption { padding: 0; }
	.lr-quote blockquote p:first-child { text-indent: 0; }
	.lr-timeline { padding-left: 8px !important; }
	/* Bars, dots and rules are backgrounds, which browsers drop when printing: keep these few. */
	.lr-bar > b, .lr-timeline li::before, .lr-break, .lr-quote::before, .lr-quote figcaption::before, .lr-brief li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.lr-sources a { color: #000; text-decoration: none; }
	.lr-sources ol { padding-left: 2.2em; } /* room for two-digit numbers at the paper's edge */
	.lr-sources a::after { content: "\A" attr(href); white-space: pre-wrap; word-break: break-all; color: #444; font-size: 8.5pt; }
}

/* ---------- Where it is: a line with Google Maps links under a heading ---------- */
.lr-body > .lr-place { margin-top: -.55em; font-family: var(--sans); font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.lr-body > .lr-place::before { content: ""; display: inline-block; width: .8em; height: 1em; margin-right: .4em; vertical-align: -.12em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath d='M6 0a6 6 0 0 0-6 6c0 4.5 6 10 6 10s6-5.5 6-10a6 6 0 0 0-6-6zm0 8.4A2.4 2.4 0 1 1 6 3.6a2.4 2.4 0 0 1 0 4.8z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath d='M6 0a6 6 0 0 0-6 6c0 4.5 6 10 6 10s6-5.5 6-10a6 6 0 0 0-6-6zm0 8.4A2.4 2.4 0 1 1 6 3.6a2.4 2.4 0 0 1 0 4.8z'/%3E%3C/svg%3E") center / contain no-repeat; }
.lr-body > .lr-place a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.lr-body > .lr-place a:hover { color: var(--ink); }

/* ---------- Photos open full size on click (script in functions.php) ---------- */
.lr-zoom { cursor: zoom-in; }
.lr-zoom:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.lr-lb { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 16px 20px; background: rgba(6, 8, 7, .95); }
.lr-lb[hidden] { display: none; }
.lr-lb img { display: block; max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); object-fit: contain; }
.lr-lb p { max-width: 860px; margin: 12px 0 0; font-family: var(--sans); font-size: 13.5px; line-height: 1.45; color: #c9cfcb; text-align: center; }
.lr-lb p a { color: inherit; text-decoration: underline; }
.lr-lb button { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font: 400 28px/1 var(--sans); cursor: pointer; }
.lr-lb button:hover { background: rgba(255, 255, 255, .26); }
.lr-lb-close { top: 10px; right: 10px; }
.lr-lb-prev, .lr-lb-next { top: 50%; margin-top: -22px; }
.lr-lb-prev { left: 10px; }
.lr-lb-next { right: 10px; }
html.lr-lb-open { overflow: hidden; }

/* ---------- Story theme «xmas» (meta.json "theme": "xmas"): night-pine opening with a garland (falling snow was tried
   and dropped on 23.11: it flickered and made the headline hard to read),
   red and gold accents in the text. Decoration only: reading column and photos stay as in every story. ---------- */
.lr.is-theme-xmas { --xm-red: #b8222b; --xm-gold: #f0c35a; --xm-gold-ink: #a8700a; --xm-pine: #0d281d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lr.is-theme-xmas { --xm-red: #ff6a6f; --xm-gold-ink: #f0c35a; } }
:root[data-theme="dark"] .lr.is-theme-xmas { --xm-red: #ff6a6f; --xm-gold-ink: #f0c35a; }
.is-theme-xmas .lr-hero { position: relative; overflow: hidden; padding-top: 78px; background: radial-gradient(120% 90% at 50% 0%, #1c4a35 0%, var(--xm-pine) 55%, #06140e 100%); --lr-hero-accent: var(--xm-gold); }
.is-theme-xmas .lr-hero::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 30px; z-index: 2; pointer-events: none;
	background:
		radial-gradient(circle 5px at 12px 17px, #ff5d5d 96%, transparent) 0 0 / 96px 30px repeat-x,
		radial-gradient(circle 5px at 36px 21px, #ffd166 96%, transparent) 0 0 / 96px 30px repeat-x,
		radial-gradient(circle 5px at 60px 17px, #74e3a6 96%, transparent) 0 0 / 96px 30px repeat-x,
		radial-gradient(circle 5px at 84px 21px, #86cbff 96%, transparent) 0 0 / 96px 30px repeat-x,
		radial-gradient(60px 14px at 48px -2px, transparent 92%, rgba(255, 255, 255, .28) 94%, transparent 98%) 0 0 / 48px 30px repeat-x;
	filter: drop-shadow(0 0 5px rgba(255, 214, 140, .75)); animation: xm-twinkle 2.8s ease-in-out infinite alternate; }
.is-theme-xmas .lr-hero-text, .is-theme-xmas .lr-cover { position: relative; z-index: 1; }
.is-theme-xmas .lr-hero h1 { text-shadow: 0 2px 22px rgba(0, 0, 0, .35); }
@keyframes xm-twinkle { from { opacity: .8; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .is-theme-xmas .lr-hero::before { animation: none; } }
.is-theme-xmas .lr-body > p:first-of-type::first-letter { color: var(--xm-red); }
.is-theme-xmas .lr-body > h2 { border-top: 0; padding-top: 22px; background: repeating-linear-gradient(-45deg, var(--xm-red) 0 9px, transparent 9px 18px) top left / 100% 5px no-repeat; }
.is-theme-xmas .lr-body > h2::before { content: "\2726\00a0" counter(lr-ch, decimal-leading-zero); color: var(--xm-red); }
.is-theme-xmas .lr-label { color: var(--xm-red); }
.is-theme-xmas .lr-brief { border-top: 4px solid var(--xm-red); }
.is-theme-xmas .lr-brief li::before { content: "\2736"; top: .05em; width: auto; height: auto; border-radius: 0; background: none; font-size: 13px; color: var(--xm-gold-ink); }
.is-theme-xmas .lr-note { border-left-color: var(--xm-red); }
.is-theme-xmas .lr-body > p:last-child::after { background-image: radial-gradient(circle .3em at calc(100% - .3em) 55%, var(--xm-red) calc(100% - .6px), transparent); }
.is-theme-xmas .lr-body > h3 { color: var(--ink); }

@media print {
	.lr-lb, .lr-body > .lr-place::before { display: none; }
	.lr-body > .lr-place { font-size: 9pt; }
	.is-theme-xmas .lr-hero { background: none; padding-top: 0; }
	.is-theme-xmas .lr-hero::before { display: none; }
	.is-theme-xmas .lr-hero h1 { text-shadow: none; }
	.is-theme-xmas .lr-body > h2 { background: none; border-top: 1.5pt solid #000; padding-top: 10pt; }
	.is-theme-xmas .lr-hero .lr-kicker { color: var(--xm-red); }
}
/* A place name in a table that links to the map: pin before the name */
.lr-body .lr-maplink::before { content: ""; display: inline-block; width: .7em; height: .9em; margin-right: .35em; vertical-align: -.08em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath d='M6 0a6 6 0 0 0-6 6c0 4.5 6 10 6 10s6-5.5 6-10a6 6 0 0 0-6-6zm0 8.4A2.4 2.4 0 1 1 6 3.6a2.4 2.4 0 0 1 0 4.8z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath d='M6 0a6 6 0 0 0-6 6c0 4.5 6 10 6 10s6-5.5 6-10a6 6 0 0 0-6-6zm0 8.4A2.4 2.4 0 1 1 6 3.6a2.4 2.4 0 0 1 0 4.8z'/%3E%3C/svg%3E") center / contain no-repeat; }
@media print { .lr-body .lr-maplink::before { display: none; } .lr-body .lr-maplink { color: inherit; text-decoration: none; } }
/* Narrow phones: a three-column table must fit 320 px — long words («Weihnachtszauber») may break, text a size smaller. */
@media (max-width: 420px) {
	.lr-body table { font-size: 13.5px; }
	.lr-body td, .lr-body th { padding-right: 6px; overflow-wrap: anywhere; hyphens: auto; }
}
