/* Feature pages, version 2 (the feature builder).
 *
 * One 12-column grid, one gutter (--tf-g) for every gap. Four templates share
 * the same scenes; each sets a ground (white, paper or ink) and arranges the
 * cover and the chapter opener its own way; The Stage puts its photographs
 * on ink bands across a white page. Rows of photos share one height
 * because their widths follow their own proportions (flex weights), so no
 * script lays anything out. No shadows. Circles straddle the seam between a
 * photo and its card, as they straddle the fold in print.
 *
 * Widths are container-relative (.tf-body is the container), so the sidebar
 * never changes what a breakpoint means. */

.tf {
	--tf-g: 24px;
	--tf-v: 64px;
	--tf-ink: #16181d;
	--tf-coal: #1e2127;
	--tf-coal2: #262a32;
	--tf-ldark: #32363e;
	--tf-steel: #8a919c;
	--tf-sdark: rgb(var(--tx-sdark));
	--tf-paper: rgb(var(--sf-page));
	--tf-accent: var(--accent, #f49731);
	--tf-deep: var(--accent-deep, #c76902);
	--tf-bg: rgb(var(--sf-panel));
	--tf-fg: rgb(var(--tx-ink));
	--tf-muted: var(--tf-sdark);
	--tf-card: var(--tf-paper);
	--tf-band: rgb(var(--sf-band));
	--tf-rule: rgb(var(--ln-ink) / .28);
	--tf-line2: rgb(var(--tx-ink));
	--tf-scrim: rgba(22, 24, 29, .82);
	position: relative;
	background: var(--tf-bg);
	color: var(--tf-fg);
	font-family: Barlow, sans-serif;
	-webkit-font-smoothing: antialiased;
}
.tf--paper { --tf-bg: var(--tf-paper); --tf-card: rgb(var(--sf-panel)); }
.tf--ink { --tf-bg: var(--tf-ink); --tf-fg: #fff; --tf-muted: #c6cad1; --tf-card: var(--tf-coal); --tf-band: var(--tf-coal); --tf-rule: rgba(255, 255, 255, .3); }
.tf a { color: inherit; }
.tf img { display: block; }
.tf .tf-body { container-type: inline-size; container-name: tf; }
.tf-body > * + * { margin-top: var(--tf-v); }
/* A wide photo section reads as part of the story around it: one gutter above and below it, as between photos in a
   chapter, not the full gap between sections (Andy, Bugpot OLYKZZ). A space set on the section itself still wins. */
.tf .tf-body > * + .tf-pano, .tf .tf-body > .tf-pano + * { margin-top: var(--tf-g); }
/* The same for a section ending in its row of photos under the copy when the next section carries straight on with
   copy (no heading, no lead photo): the story continues one gutter below the row, as above it (Andy, Bugpot TUL7H9). */
.tf .tf-body > .tf-ch:has(> .tf-ch__body > .tf-under:last-child, > .tf-under:last-child) + .tf-ch--intro { margin-top: var(--tf-g); }
/* A frame, row or section left holding only parts hidden on this screen (feature.js marks it); kept, faded, while editing. */
body:not(.tqb-on) .tf .tf-gone { display: none !important; }
/* A row of two or three pictures, left out on a phone (feature.js), faded while editing so it can still be clicked. */
body.tqb-on .tf .tf-phone-off { opacity: .35; }
.tf-crumb { padding-top: 28px; }
.tf--ink .crumb, .tf--ink .crumb a { color: var(--tf-muted); }
.tf-crumb + .tf-body { margin-top: 28px; }
@container tf (max-width: 640px) { .tf { --tf-v: 44px; } }

/* ---- Type --------------------------------------------------------------- */
.tf-h { font-family: Rajdhani, sans-serif; font-weight: 700; text-transform: uppercase; line-height: .92; letter-spacing: -.005em; margin: 0; overflow-wrap: anywhere; }
.tf-h__l { display: block; }
/* A sentence the printed column wrapped flows on, each line keeping its tone (ALLMI, 23 Oct 2026). */
.tf-h--flow .tf-h__l { display: inline; }
.tf-h__l--2 { color: transparent; -webkit-text-stroke: 1.5px var(--tf-line2); paint-order: stroke fill; }
.tf--ink .tf-h__l--2 { color: var(--tf-accent); -webkit-text-stroke: 0; }
.tf-h--title { font-size: clamp(2.5rem, 8.2cqw, 5.6rem); }
.tf-h--chapter { font-size: clamp(1.85rem, 4.4cqw, 3.1rem); }
.tf-x { font-family: Rajdhani, sans-serif; font-weight: 700; text-transform: uppercase; font-size: 1.36rem; line-height: 1; margin: 1.5em 0 .5em; break-inside: avoid; page-break-inside: avoid; }
.tf-x span { display: inline; }
.tf-p { font-size: 1.02rem; line-height: var(--tf-lh, 1.62); margin: 0 0 1em; orphans: 2; widows: 2; }
.tf-stand { font-family: Lora, serif; font-size: clamp(1.08rem, 2.05cqw, 1.34rem); line-height: 1.5; margin: 18px 0 0; max-width: 64ch; color: var(--tf-fg); }
.tf-stand--caps { text-transform: uppercase; font-family: Rajdhani, sans-serif; font-weight: 600; font-size: clamp(1rem, 1.7cqw, 1.18rem); line-height: 1.4; letter-spacing: .02em; }
/* The names in amber and capitals, as the magazine prints them. */
.tf-credits { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .92rem; text-transform: uppercase; color: var(--tf-accent); }
.tf-credit__k { font-family: Rajdhani, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; color: var(--tf-fg); margin-right: 4px; }
.tf-folio { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; font-family: Rajdhani, sans-serif; font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tf-muted); }
.tf-folio__s { width: 14px; height: 2px; background: var(--tf-accent); }
.tf-folio__spread { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--tf-fg); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--tf-accent); }
.tf-folio__spread:hover { color: var(--tf-deep); }
.tf--ink .tf-folio__spread:hover { color: var(--tf-accent); }
.tf-cap { font-size: .82rem; line-height: 1.4; color: var(--tf-muted); margin: 8px 0 0; }

/* ---- Copy ---------------------------------------------------------------- */
.tf-copy { max-width: 100%; }
.tf-copy--2 { columns: 2; column-gap: var(--tf-g); column-rule: 1px dotted var(--tf-rule); column-fill: balance; }
.tf-copy--2 > :first-child { margin-top: 0; }
/* The drop capital, switched on for this feature alone ("Feature settings" in Tell the AI). Off is the default (Andy's request). */
.tf--dropcap .tf-copy--intro > .tf-p:first-child::first-letter { font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 4.1em; line-height: .78; float: left; padding: .06em .08em 0 0; }
.tf-ch__open + .tf-copy, .tf-ch__bleed + .tf-copy, .tf-ch__head + .tf-copy, .tf-ch__mosaic + .tf-copy, .tf-qcard--band + .tf-copy { margin-top: 40px; }
.tf-copy + .tf-under, .tf-under + .tf-insets { margin-top: 40px; }
.tf-bq { margin: 1.4em 0; padding: 0 0 0 var(--tf-g); border-left: 3px solid var(--tf-accent); break-inside: avoid; }
.tf-bq p { font-family: Lora, serif; font-style: italic; font-size: 1.16rem; line-height: var(--tf-lh, 1.45); margin: 0; }
.tf-bq cite { display: block; margin-top: 8px; font-family: Rajdhani, sans-serif; font-weight: 700; font-style: normal; text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; color: var(--tf-muted); }
@container tf (max-width: 640px) { .tf-copy--2 { columns: 1; } }

/* ---- Pictures ------------------------------------------------------------ */
.tf-ph { margin: 0; position: relative; min-width: 0; }
.tf-ph img { width: 100%; height: auto; }
.tf-ph[data-tf-open] img { cursor: zoom-in; }
.tf-art { position: absolute; z-index: 2; height: auto; pointer-events: none; }
.tf-row { display: flex; gap: var(--tf-g); align-items: stretch; }
.tf-row + .tf-row { margin-top: var(--tf-g); }
.tf-row__ph { min-width: 0; position: relative; overflow: hidden; }
.tf-row__ph .tf-ph, .tf-row__ph img { width: 100%; height: 100%; }
.tf-row__ph img { object-fit: cover; }
.tf-row__ph .tf-cap { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 28px 14px 10px; color: #fff; font-size: .78rem; background: linear-gradient(0deg, rgba(22, 24, 29, .78), rgba(22, 24, 29, 0)); pointer-events: none; }
.tf-row__card { flex: 0 0 calc((100% - 11 * var(--tf-g)) / 12 * 4 + 3 * var(--tf-g)); contain: size; overflow: hidden; }
.tf-row--wide-card .tf-row__card { flex-basis: calc((100% - 11 * var(--tf-g)) / 12 * 6 + 5 * var(--tf-g)); }
.tf-row--card-only .tf-row__card { flex: 1 1 auto; contain: none; }
/* A row of two or three pictures stays side by side on a phone, as on larger screens (feature.js marks it
   tf-row--pair); rows of four or more are left out on a phone instead (Andy, Bugpot FQZLJ4 1 Nov, GQ1Q9M 5 Nov 2026). */
@container tf (max-width: 640px) {
	.tf-row:not(.tf-row--pair) { flex-direction: column; }
	.tf-row:not(.tf-row--pair) > .tf-row__ph { flex: none !important; }
	.tf-row__card { flex-basis: auto; contain: none; }
	.tf-row:not(.tf-row--pair) > .tf-row__ph .tf-cap { position: static; padding: 8px 0 0; color: var(--tf-muted); background: none; }
	/* Photos stacked beside the copy follow the single photos in a row: whole, caption underneath, rather than the caption
	   over the photo, where a long one covered it and was cut off (Andy, Bugpot MEXFIK, 17 Nov 2026). */
	.tf-ch--beside .tf-ch__stackph { aspect-ratio: auto !important; flex: none !important; overflow: visible; }
	.tf-ch--beside .tf-ch__stackph :is(.tf-ph, img) { height: auto; }
	.tf-ch--beside .tf-ch__stackph .tf-cap { position: static; padding: 8px 0 0; color: var(--tf-muted); background: none; }
	.tf-row:not(.tf-row--pair) > .tf-row__ph :is(.tf-ph, img) { height: auto; }
	.tf-row:not(.tf-row--pair) > .tf-row__ph { aspect-ratio: auto !important; }
	.tf-row--pair > .tf-row__ph .tf-cap { padding: 20px 8px 6px; font-size: .7rem; }
	/* A saved template's place badges on a gallery (Capture of the Quarter: "3rd place David Halliday") are sized
	   for a computer screen; on the smaller photos of a row kept side by side here they shrink with the photo
	   instead of covering it (feature.js marks them) (Andy, Bugpot KOS6WL, 17 Nov 2026). Beats the template's own rule (:not(#tf-none)). */
	.tf .tf-row--pair > .tf-row__ph > .tf-ph:not(#tf-none) > .tf-cap.tf-cap--badge,
	.tf .tf-row--pair > .tf-row__ph > .tf-ph.tf-badged:not(#tf-none)::before { top: 5px; left: 5px; max-width: calc(100% - 10px); padding: 3px 6px 4px; border-top-width: 2px; font-size: .62rem; line-height: 1.1; letter-spacing: .02em; }
	.tf .tf-row--pair > .tf-row__ph > .tf-ph:not(#tf-none) > .tf-cap.tf-cap--badge::before { margin-bottom: 1px; font-size: .5rem; letter-spacing: .12em; }
}

/* The same badges on a row whose photos are under 240px wide above phone width (a row of four on a tablet), a step
   smaller so they stay inside the photo; feature.js marks the row (Andy, Bugpot KOS6WL, 18 Nov 2026). */
.tf .tf-row--small > .tf-row__ph > .tf-ph:not(#tf-none) > .tf-cap.tf-cap--badge,
.tf .tf-row--small > .tf-row__ph > .tf-ph.tf-badged:not(#tf-none)::before { top: 8px; left: 8px; max-width: calc(100% - 16px); padding: 4px 8px 5px; border-top-width: 2px; font-size: .72rem; line-height: 1.15; letter-spacing: .02em; }
.tf .tf-row--small > .tf-row__ph > .tf-ph:not(#tf-none) > .tf-cap.tf-cap--badge::before { margin-bottom: 1px; font-size: .56rem; letter-spacing: .12em; }

/* Round insets: the same white keyline they have in print. */
.tf-inset { border-radius: 50%; overflow: hidden; aspect-ratio: 1; flex: none; outline: 4px solid var(--tf-bg); outline-offset: -1px; background: var(--tf-card); }
.tf-inset img { width: 100%; height: 100%; object-fit: cover; }
/* Never stretched by their row, so the height always follows the width: Safari kept a stretched height when the page
   widened (the menu hidden) and drew the circles as ovals. */
.tf-insets { display: flex; gap: var(--tf-g); align-items: flex-start; }
/* A row or cluster laid over a photo spans it from gutter to gutter, so the editor's Line up (Start, Centre, End, Spread out)
   has room to act. Left alone it starts on the side it always sat on. The strip itself lets clicks through to the photo;
   the circles take them back. (A row only as wide as its circles has no room: a saved line-up moved nothing, Bugpot E261JE.) */
.tf-insets--row, .tf-insets--edge { position: absolute; left: var(--tf-g); right: var(--tf-g); z-index: 3; pointer-events: none; }
.tf-insets--row { bottom: 0; transform: translateY(50%); justify-content: flex-start; }
.tf-insets--row .tf-inset { width: clamp(72px, 11cqw, 128px); pointer-events: auto; }
.tf-cover--left .tf-insets--row { justify-content: flex-end; }
.tf-insets--loose { position: static; transform: none; justify-content: center; pointer-events: auto; }
.tf-insets--loose .tf-inset { width: clamp(96px, 16cqw, 180px); }
/* Edge insets sit inside the frame, on the photo, since the frame clips its overflow. */
.tf-insets--edge { bottom: var(--tf-g); justify-content: flex-end; }
.tf-insets--edge .tf-inset { width: clamp(64px, 9.5cqw, 116px); pointer-events: auto; }
.tf-insets--seam { grid-row: 1; z-index: 3; flex-direction: column; justify-content: center; align-items: center; pointer-events: none; min-height: 0; contain: size; container-type: size; justify-self: stretch; align-self: stretch; }
.tf-insets--seam { --tf-n: 3; }
/* As big as the seam is wide or as a share of its height allows, whichever is smaller, so two insets stay round rather than stretching tall (Explore Transport, 29 Oct 2026). */
.tf-insets--seam .tf-inset { height: auto; width: min(100cqw, calc((100cqh - (var(--tf-n) - 1) * var(--tf-g)) / var(--tf-n))); max-width: none; pointer-events: auto; }

/* ---- Cover --------------------------------------------------------------- */
.tf-cover__whole { position: relative; }
.tf-cover__hero img { width: 100%; height: auto; }
.tf-cover__title { padding-top: 34px; }
.tf-cover__whole + .tf-cover__title { padding-top: calc(5.5cqw + 34px); }
.tf-cover--showcase .tf-cover__title { padding-top: 0; }
.tf-cover__pair { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--tf-g); align-items: stretch; margin-top: 40px; position: relative; }
.tf-cover__heroframe { grid-column: 1 / 10; grid-row: 1; min-width: 0; justify-self: stretch; align-self: stretch; overflow: hidden; }
.tf-cover__heroframe .tf-ph, .tf-cover__heroframe img { height: 100%; width: 100%; object-fit: cover; }
.tf-cover__card { grid-column: 10 / 13; grid-row: 1; background: var(--tf-card); padding: var(--tf-g); padding-left: calc(var(--tf-g) * 2.5); display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; min-width: 0; }
.tf-cover__card .tf-credits { flex-direction: column; gap: 10px; margin: 0; }
.tf-cover__card .tf-folio { margin: 0; }
.tf-cover__pair .tf-insets--seam { grid-column: 9 / 11; }
/* Seam insets can reach a whole column into the card, so its words start clear of them. */
@container tf (min-width: 761px) {
	.tf-cover__pair:has(.tf-insets--seam) .tf-cover__card { padding-left: max(calc(var(--tf-g) * 2.5), calc((100cqw - 11 * var(--tf-g)) / 12 + var(--tf-g) * .75)); }
}
.tf-cover__bleed { position: relative; height: clamp(440px, 82vh, 860px); overflow: hidden; background: var(--tf-coal); }
.tf-cover__bleed > .tf-ph { position: absolute; left: 0; right: 0; top: -10%; height: 120%; margin: 0; }
.tf-cover__bleed > .tf-ph img { width: 100%; height: 100%; object-fit: cover; }
.tf-cover__over { position: absolute; left: 0; right: 0; bottom: 0; padding: 120px var(--tf-g) calc(var(--tf-g) + 3cqw); background: linear-gradient(0deg, var(--tf-scrim) 0%, rgba(22, 24, 29, .55) 55%, rgba(22, 24, 29, 0) 100%); color: #fff; }
.tf-cover__over .tf-folio { color: rgba(255, 255, 255, .8); }
.tf-cover__over .tf-stand { max-width: 58ch; }
.tf-cover__over .tf-h--title { font-size: clamp(2.4rem, 7.4cqw, 5.2rem); max-width: 70%; }
.tf-cover--cinematic + .tf-ch { margin-top: calc(var(--tf-v) + 2cqw); }
@container tf (max-width: 760px) {
	.tf-cover__pair { grid-template-columns: 1fr; row-gap: 12px; }
	.tf-cover__heroframe, .tf-cover__card, .tf-cover__pair .tf-insets--seam { grid-column: 1; }
	.tf-cover__heroframe { grid-row: 1; }
	.tf-cover__pair .tf-insets--seam { grid-row: 2; height: 0; flex-direction: row; overflow: visible; contain: none; container-type: normal; }
	.tf-cover__pair .tf-insets--seam .tf-inset { height: auto; width: min(clamp(72px, 22cqw, 120px), calc((100cqw - 2 * var(--tf-g) - (var(--tf-n) - 1) * var(--tf-g)) / var(--tf-n))); flex: none; }
	.tf-cover__card { grid-row: 3; padding-top: calc(11cqw + var(--tf-g)); padding-left: var(--tf-g); }
	.tf-cover__bleed { height: clamp(420px, 70vh, 640px); }
	.tf-cover__over { padding-top: 80px; }
}

/* ---- Chapter opener ------------------------------------------------------ */
.tf-ch__open { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--tf-g); align-items: stretch; position: relative; }
.tf-ch__leadframe { grid-row: 1; min-width: 0; overflow: hidden; position: relative; justify-self: stretch; align-self: stretch; }
.tf-ch__leadframe .tf-ph, .tf-ch__leadframe img { width: 100%; height: 100%; }
.tf-ch__leadframe img { object-fit: cover; }
.tf-ch__card { grid-row: 1; background: var(--tf-card); padding: var(--tf-g); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-width: 0; }
.tf-ch__card .tf-h { margin-top: auto; }
.tf-ch__cap { margin: 0; font-size: .86rem; line-height: 1.45; color: var(--tf-muted); }
.tf-ch--left .tf-ch__leadframe { grid-column: 1 / 8; }
.tf-ch--left .tf-ch__card { grid-column: 8 / 13; padding-left: calc(var(--tf-g) * 3); }
.tf-ch--left .tf-ch__open .tf-insets--seam { grid-column: 7 / 9; }
.tf-ch--right .tf-ch__leadframe { grid-column: 6 / 13; }
.tf-ch--right .tf-ch__card { grid-column: 1 / 6; padding-right: calc(var(--tf-g) * 3); }
.tf-ch--right .tf-ch__open .tf-insets--seam { grid-column: 5 / 7; }
.tf-ch__open:not(:has(.tf-ch__leadframe)) .tf-ch__card { grid-column: 1 / 13; }
/* Seam insets grow with a tall opening photo until they reach a whole column into the card, so its words start clear
   of them, as on the opening (a chapter given a taller photo had its heading under the third circle, Bugpot HMB7FQ). */
@container tf (min-width: 761px) {
	.tf-ch--left .tf-ch__open:has(.tf-insets--seam) .tf-ch__card { padding-left: max(calc(var(--tf-g) * 3), calc((100cqw - 11 * var(--tf-g)) / 12 + var(--tf-g))); }
	.tf-ch--right .tf-ch__open:has(.tf-insets--seam) .tf-ch__card { padding-right: max(calc(var(--tf-g) * 3), calc((100cqw - 11 * var(--tf-g)) / 12 + var(--tf-g))); }
}
.tf-ch__open:not(:has(.tf-ch__leadframe)) .tf-insets--loose { grid-column: 1 / 13; grid-row: 2; }
/* One reveal per chapter: the lead wipes in from its outer edge, once. */
.tf-ch__leadframe[data-tf-reveal="left"] .tf-ph { clip-path: inset(0 100% 0 0); }
.tf-ch__leadframe[data-tf-reveal="right"] .tf-ph { clip-path: inset(0 0 0 100%); }
.tf-ch__leadframe[data-tf-reveal] .tf-ph { transition: clip-path 1.1s cubic-bezier(.22, 1, .36, 1); }
.tf-ch__leadframe.on .tf-ph { clip-path: inset(0); }
@container tf (max-width: 760px) {
	.tf-ch__open { grid-template-columns: 1fr; row-gap: 12px; }
	.tf-ch--left .tf-ch__leadframe, .tf-ch--right .tf-ch__leadframe, .tf-ch--left .tf-ch__card, .tf-ch--right .tf-ch__card { grid-column: 1; }
	.tf-ch__leadframe { grid-row: 1; }
	.tf-ch--left .tf-ch__open .tf-insets--seam, .tf-ch--right .tf-ch__open .tf-insets--seam { grid-column: 1; grid-row: 2; height: 0; flex-direction: row; overflow: visible; contain: none; container-type: normal; }
	.tf-ch--left .tf-ch__open .tf-insets--seam .tf-inset, .tf-ch--right .tf-ch__open .tf-insets--seam .tf-inset { height: auto; width: min(clamp(72px, 22cqw, 120px), calc((100cqw - 2 * var(--tf-g) - (var(--tf-n) - 1) * var(--tf-g)) / var(--tf-n))); flex: none; }
	.tf-ch__card { grid-row: 3; padding-top: calc(11cqw + var(--tf-g)); padding-left: var(--tf-g); padding-right: var(--tf-g); }
	.tf-ch__card .tf-h { margin-top: 0; }
}

/* ---- Chapter arranged beside: the opener as printed, then the copy in one column and the photos down the other side ----
 * Set per chapter (arrangement "beside"). The opener (lead photo, round insets,
 * and the card with the page tag, heading and printed-page link) keeps its
 * printed form on its own row, so arranging what is under it never changes it
 * (Andy, Bugpot 9 and 10 Oct 2026). Under it the copy sits on seven columns and
 * the photos on five, a dotted rule in the gutter between them like the rule
 * between the print's columns; the photos stick while the copy scrolls past.
 * The chapter's side says which side the photos are on. Narrow, the pieces
 * fall into one column in the print's order: the opener, the copy, the photos. */
.tf-ch__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--tf-g); align-items: stretch; }
.tf-ch__open + .tf-ch__body, .tf-ch__head + .tf-ch__body, .tf-ch__mosaic + .tf-ch__body, .tf-stage + .tf-ch__body { margin-top: 40px; }
.tf-ch__bleed + .tf-ch__body { margin-top: calc(40px + 2cqw); }
/* Cinematic: the opener photo's caption in a line under it, the full width of the photo (Andy, Bugpot MEXFIK, 17 and 18 Nov 2026). */
.tf-ch__cap--bleed { max-width: none; margin: 12px 0 0; }
.tf-ch__cap--bleed + .tf-ch__body, .tf-ch__cap--bleed + .tf-copy { margin-top: calc(28px + 2cqw); }
.tf-ch--beside .tf-ch__text, .tf-ch--beside .tf-ch__side { grid-row: 1; min-width: 0; }
.tf-ch--beside .tf-ch__side { position: relative; }
.tf-ch--beside.tf-ch--right .tf-ch__text { grid-column: 1 / 8; }
.tf-ch--beside.tf-ch--right .tf-ch__side { grid-column: 8 / 13; }
.tf-ch--beside.tf-ch--left .tf-ch__text { grid-column: 6 / 13; }
.tf-ch--beside.tf-ch--left .tf-ch__side { grid-column: 1 / 6; }
/* Every "beside" photo was a placeholder a reader cannot see, and there is no quote to carry: no
   side column prints, so the copy takes the full width instead of leaving its column blank. */
.tf-ch--beside.tf-ch--noside .tf-ch__text { grid-column: 1 / -1; }
/* ...and the copy in it runs that full width too, not the beside column's measure with the rest left empty
   (Andy, Bugpot 7SXKVD: Patrick Versteeg's column, all words and no photos). */
.tf-ch--beside.tf-ch--noside .tf-copy--1 { max-width: none; }
.tf-ch--beside .tf-ch__side::before { content: ""; position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dotted var(--tf-rule); }
.tf-ch--beside.tf-ch--right .tf-ch__side::before { left: calc(var(--tf-g) / -2); }
.tf-ch--beside.tf-ch--left .tf-ch__side::before { right: calc(var(--tf-g) / -2); }
.tf-ch--beside .tf-ch__title, .tf-ch--intro > .tf-ch__title { margin: 0 0 28px; }
.tf-ch--beside .tf-ch__title .tf-folio { margin-bottom: 14px; }
.tf-ch--beside .tf-copy--1 { max-width: 42rem; }
.tf-ch--beside .tf-copy--1 > :first-child { margin-top: 0; }
.tf-ch--beside .tf-copy--1 > :last-child { margin-bottom: 0; }
.tf-ch--beside .tf-ch__stick { position: sticky; top: calc(58px + var(--tf-g)); display: flex; flex-direction: column; gap: var(--tf-g); }
.tf-ch--beside .tf-ch__more { display: flex; flex-direction: column; gap: var(--tf-g); min-width: 0; }
.tf-ch--beside .tf-ch__stackph, .tf-ch--beside .tf-ch__sidegrid .tf-row__ph { aspect-ratio: var(--tf-ar, auto); }
.tf-ch--beside .tf-under { grid-column: 1 / -1; grid-row: 2; }
.tf-ch__body > .tf-insets--loose { grid-column: 1 / -1; }
@container tf (max-width: 760px) {
	.tf-ch__body { grid-template-columns: 1fr; }
	.tf-ch--beside .tf-ch__side, .tf-ch--beside .tf-ch__stick { display: contents; }
	.tf-ch--beside .tf-ch__side::before { display: none; }
	.tf-ch--beside.tf-ch--left .tf-ch__text, .tf-ch--beside.tf-ch--right .tf-ch__text { grid-column: 1; grid-row: auto; order: 1; }
	.tf-ch--beside .tf-ch__sidegrid { order: 2; }
	.tf-ch--beside .tf-ch__more { order: 3; }
	.tf-ch--beside .tf-under { grid-column: 1; grid-row: auto; order: 4; }
	.tf-ch__body > .tf-insets--loose { grid-column: 1; order: 5; }
	.tf-ch--beside .tf-copy--1 { max-width: none; }
}

/* Cinematic chapters: the lead full width with the heading over it. */
.tf-ch__bleed { position: relative; height: clamp(380px, 66vh, 720px); overflow: hidden; background: var(--tf-coal); }
.tf-ch__bleed > .tf-ph { position: absolute; left: 0; right: 0; top: -10%; height: 120%; margin: 0; }
.tf-ch__bleed > .tf-ph img { width: 100%; height: 100%; object-fit: cover; }
.tf-ch__over { position: absolute; left: 0; right: 0; bottom: 0; padding: 100px var(--tf-g) var(--tf-g); background: linear-gradient(0deg, var(--tf-scrim) 0%, rgba(22, 24, 29, .5) 60%, rgba(22, 24, 29, 0) 100%); color: #fff; }
.tf-ch__over .tf-folio { color: rgba(255, 255, 255, .8); }
.tf-ch__over .tf-h { max-width: 62%; }
/* On a phone the heading over a photo takes the full width, so a long word is never split with a letter left on a line
   of its own; on phones and tablets the lines of every feature heading are balanced so no word sits alone on the last
   line (Andy, MAN, 2 Nov 2026). */
@container tf (max-width: 760px) { .tf-ch__over .tf-h, .tf-cover__over .tf-h--title { max-width: none; } }
@media (max-width: 1024px) { .tf-h, .tf-h__l { text-wrap: balance; } }
.tf-ch__bleed + .tf-copy { margin-top: calc(40px + 2cqw); }
/* Cinematic on a phone: the round photos move to the top of the lead and the words keep the bottom, so they never
   sit over the folio, heading or credits; the lead grows when the words need more room (Andy, Ovenden, 30 Oct 2026). */
@container tf (max-width: 760px) {
	.tf-cover__bleed:has(> .tf-insets--edge), .tf-ch__bleed:has(> .tf-insets--edge) { display: flex; flex-direction: column; justify-content: flex-end; height: auto; }
	.tf-cover__bleed:has(> .tf-insets--edge) { min-height: clamp(420px, 70vh, 640px); }
	.tf-ch__bleed:has(> .tf-insets--edge) { min-height: clamp(380px, 66vh, 720px); }
	.tf-cover__bleed > .tf-insets--edge, .tf-ch__bleed > .tf-insets--edge { top: var(--tf-g); bottom: auto; }
	.tf-cover__bleed:has(> .tf-insets--edge) > .tf-cover__over, .tf-ch__bleed:has(> .tf-insets--edge) > .tf-ch__over { position: relative; padding-top: max(80px, calc(var(--tf-g) * 2 + clamp(64px, 9.5cqw, 116px))); }
}

/* Showcase chapters: heading, the insets, then the mosaic. */
.tf-ch__head, .tf-gal__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--tf-g); }
.tf-ch__headtext, .tf-gal__headtext { min-width: 0; }
/* Beside the heading they take the room that is left (up to 60%), so Line up has somewhere to move them; by default they stay at the right. */
.tf-ch__headinsets, .tf-gal__insets { position: static; transform: none; flex: 1 0 auto; flex-wrap: wrap; justify-content: flex-end; max-width: 60%; pointer-events: auto; }
.tf-ch__headinsets .tf-inset, .tf-gal__insets .tf-inset { width: clamp(56px, 9cqw, 112px); }
/* A loose row sits in the flow and never grows past its column, however many circles it carries. */
.tf-insets--loose .tf-inset { max-width: calc((100% - (var(--tf-n, 3) - 1) * var(--tf-g)) / var(--tf-n, 3)); }
.tf-ch__head + .tf-ch__mosaic, .tf-gal__head + .tf-mosaic { margin-top: 28px; }
.tf-ch__mosaic + .tf-qcard--band { margin-top: var(--tf-g); }
@container tf (max-width: 640px) {
	.tf-ch__head, .tf-gal__head { flex-direction: column; align-items: flex-start; }
	.tf-ch__headinsets, .tf-gal__insets { flex: none; width: 100%; max-width: none; justify-content: flex-start; }
}

/* ---- The Stage ------------------------------------------------------------
   White ground; every photograph stands on an ink stage the full width of
   the page. The copy runs in one serif column with a margin beside it that
   carries the crossheads, the pull quote and the captions. */
.tf--stage { overflow-x: clip; }
.tf-stage { position: relative; z-index: 0; padding: 40px 0 0; color: #fff; --tf-fg: #fff; --tf-muted: #c6cad1; --tf-card: transparent; }
.tf-stage::before { content: ""; position: absolute; top: 0; bottom: 0; left: -50vw; right: -50vw; background: var(--tf-ink); z-index: -1; }
.tf-stage .tf-h__l--2 { color: var(--tf-accent); -webkit-text-stroke: 0; }
.tf-stage .tf-folio { color: var(--tf-muted); }
.tf-stage--cover .tf-folio { margin-bottom: 18px; }
.tf-h--stage { font-size: clamp(2.2rem, min(10cqw, calc(197cqw / var(--tf-fit, 24))), 7rem); line-height: .9; margin: 0 0 32px; }
.tf-stage__hero { position: relative; overflow: hidden; background: var(--tf-coal); }
.tf-stage__hero > .tf-ph { position: absolute; left: 0; right: 0; top: -6.5%; height: 113%; margin: 0; }
.tf-stage__hero > .tf-ph img { width: 100%; height: 100%; object-fit: cover; }
.tf-stage__hero .tf-cap { display: none; }
.tf-cover__after { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--tf-g); margin-top: -96px; position: relative; z-index: 1; }
.tf-cover__straddle { grid-column: 1 / 8; background: var(--tf-paper); padding: 30px calc(var(--tf-g) * 1.5) 28px; min-width: 0; }
.tf-cover__straddle .tf-stand { margin-top: 0; font-size: clamp(1.1rem, 2.1cqw, 1.4rem); }
.tf-cover__straddle .tf-credits { margin-top: 16px; }
.tf-cover__straddle .tf-cap { margin-top: 14px; }
.tf-stage--chapter { padding: 44px 0; }
.tf-stage--chapter .tf-ch__open { align-items: stretch; }
.tf-ch--left .tf-stage .tf-ch__leadframe { grid-column: 1 / 9; }
.tf-ch--left .tf-stage .tf-ch__card { grid-column: 9 / 13; padding-left: calc(var(--tf-g) * 2.5); }
.tf-ch--left .tf-stage .tf-insets--seam { grid-column: 8 / 10; }
.tf-ch--right .tf-stage .tf-ch__leadframe { grid-column: 5 / 13; }
.tf-ch--right .tf-stage .tf-ch__card { grid-column: 1 / 5; padding-right: calc(var(--tf-g) * 2.5); }
.tf-ch--right .tf-stage .tf-insets--seam { grid-column: 4 / 6; }
@container tf (min-width: 761px) {
	.tf-ch--left .tf-stage .tf-ch__open:has(.tf-insets--seam) .tf-ch__card { padding-left: max(calc(var(--tf-g) * 2.5), calc((100cqw - 11 * var(--tf-g)) / 12 + var(--tf-g) * .75)); }
	.tf-ch--right .tf-stage .tf-ch__open:has(.tf-insets--seam) .tf-ch__card { padding-right: max(calc(var(--tf-g) * 2.5), calc((100cqw - 11 * var(--tf-g)) / 12 + var(--tf-g) * .75)); }
}
.tf-stage .tf-ch__card--stage { background: none; padding-top: 0; padding-bottom: 0; justify-content: center; gap: 14px; }
.tf-stage .tf-ch__card--stage .tf-h { margin-top: 0; }
.tf-stage .tf-ch__card--stage .tf-folio { margin-bottom: 4px; }
.tf-stage .tf-ch__card--stage .tf-h--chapter { font-size: clamp(2rem, 4.6cqw, 3.8rem); }
.tf-stage .tf-ch__cap { color: var(--tf-muted); }
.tf-stage .tf-ch__leadframe > .tf-ph { height: 113%; top: -6.5%; position: absolute; left: 0; right: 0; }
.tf-stage + .tf-hang { margin-top: 40px; }
.tf-hang__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--tf-g); align-items: start; }
.tf-hang__m { grid-column: 1 / 5; min-width: 0; }
.tf-hang__c { grid-column: 5 / 13; min-width: 0; max-width: 66ch; }
.tf-hang__c .tf-p { font-family: Lora, serif; font-size: 1.14rem; line-height: var(--tf-lh, 1.72); margin: 0 0 1.1em; }
/* The Stage's copy keeps its own type when a chapter runs in one column beside its photos (Andy, 29 Oct 2026). */
.tf-ch--stage.tf-ch--beside .tf-ch__text .tf-p { font-family: Lora, serif; font-size: 1.14rem; line-height: var(--tf-lh, 1.72); }
.tf-hang__c .tf-bq { margin: .2em 0 1.4em; }
.tf--dropcap .tf-hang--intro .tf-hang__row:first-child .tf-p::first-letter { font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 4.6em; line-height: .78; float: left; padding: .05em .1em 0 0; }
.tf-hang__m .tf-x { margin: .32em 0 1em; font-size: 1.24rem; line-height: 1.05; }
.tf-hang__m .tf-h--hang { font-size: clamp(1.7rem, 3.2cqw, 2.5rem); margin: 0 0 .5em; }
.tf-hang__m .tf-qcard--margin { background: none; padding: 0; margin: .15em 0 1.4em; }
.tf-hang__m .tf-qcard--margin .tf-q::before { font-size: 3.4rem; margin-bottom: 10px; }
.tf-hang__m .tf-qcard--margin .tf-q p { font-size: clamp(1.04rem, 1.55cqw, 1.28rem); }
.tf-hang__row--ph { margin: 10px 0 var(--tf-g); }
.tf-hang__row--ph .tf-hang__c { max-width: none; }
.tf-hang__row--ph .tf-folio { margin-bottom: 8px; }
.tf-hang__cap { margin: 0; font-size: .86rem; line-height: 1.45; color: var(--tf-muted); }
.tf-hang__cap + .tf-hang__cap { margin-top: 8px; }
.tf--stage .tf-facts { position: relative; z-index: 0; padding: 44px 0; color: #fff; }
.tf--stage .tf-facts::before { content: ""; position: absolute; top: 0; bottom: 0; left: -50vw; right: -50vw; background: var(--tf-ink); z-index: -1; }
.tf--stage .tf-fact { background: none; padding: 0; }
.tf--stage .tf-fact__v { font-size: clamp(2.8rem, 7cqw, 5.4rem); color: var(--tf-accent); }
.tf--stage .tf-fact__l { color: #c6cad1; font-size: 1rem; }
@container tf (max-width: 760px) {
	.tf-ch--left .tf-stage .tf-ch__leadframe, .tf-ch--right .tf-stage .tf-ch__leadframe, .tf-ch--left .tf-stage .tf-ch__card, .tf-ch--right .tf-stage .tf-ch__card { grid-column: 1; }
	.tf-ch--left .tf-stage .tf-insets--seam, .tf-ch--right .tf-stage .tf-insets--seam { grid-column: 1; }
	.tf-stage .tf-ch__card--stage { padding-left: 0; padding-right: 0; padding-top: calc(11cqw + var(--tf-g)); }
	.tf-stage .tf-ch__open:not(:has(.tf-insets--seam)) .tf-ch__card--stage { padding-top: 8px; }
	.tf-cover__after { margin-top: -40px; }
	.tf-cover__straddle { grid-column: 1 / 12; padding: 22px var(--tf-g) 20px; }
	.tf-hang__row { display: flex; flex-direction: column; }
	.tf-hang__m:empty { display: none; }
	.tf-hang__c { max-width: none; }
	.tf-hang__m .tf-x { margin: 0 0 .5em; }
	.tf-hang__row--ph .tf-hang__m { order: 2; margin-top: 10px; }
}

/* ---- Companion cards ----------------------------------------------------- */
.tf-qcard { background: var(--tf-card); padding: var(--tf-g); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.tf-q { margin: 0; }
.tf-q::before { content: "\201C"; display: block; font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 4.2rem; line-height: .55; color: var(--tf-accent); margin-bottom: 14px; }
.tf-q p { font-family: Lora, serif; font-style: italic; font-size: clamp(1.02rem, 1.85cqw, 1.42rem); line-height: 1.38; margin: 0; }
.tf-q cite { display: block; margin-top: 12px; font-family: Rajdhani, sans-serif; font-weight: 700; font-style: normal; text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; color: var(--tf-muted); }
.tf-qcard--band { padding: clamp(28px, 4cqw, 52px) var(--tf-g); }
.tf-qcard--band .tf-q { max-width: 44ch; margin: 0 auto; text-align: center; }
.tf-qcard--band .tf-q p { font-size: clamp(1.25rem, 2.6cqw, 1.9rem); }
.tf-qcard--band .tf-q::before { margin: 0 auto 14px; text-align: center; }
.tf-pcard { background: var(--tf-card); padding: var(--tf-g); display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-width: 0; }
.tf-pcard .tf-folio { margin: 0; }
.tf-pcard__cap { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--tf-muted); }

/* ---- Mosaic -------------------------------------------------------------- */
.tf-mosaic__row + .tf-mosaic__row { margin-top: var(--tf-g); }
.tf-gal .tf-mosaic + .tf-copy { margin-top: 40px; }
/* A gallery on a feature whose chapters have their copy beside the photos: its words in the chapters' one column. */
.tf-gal--beside .tf-copy--1 { max-width: 42rem; }
.tf-gal--beside .tf-copy--1 > :first-child { margin-top: 0; }
@container tf (max-width: 760px) { .tf-gal--beside .tf-copy--1 { max-width: none; } }

/* ---- Panorama ------------------------------------------------------------ */
/* The frame is the whole photo less 6% top and bottom, which is the parallax travel: nothing is lost at the sides. */
.tf-pano__frame { position: relative; aspect-ratio: calc(var(--tf-pano-r, 2.8) * 1.12); min-height: 240px; max-height: 720px; overflow: hidden; background: var(--tf-coal); }
.tf-pano__frame .tf-ph { position: absolute; left: 0; right: 0; top: -6%; height: 112%; margin: 0; }
.tf-pano__frame img.tf-img { width: 100%; height: 100%; object-fit: cover; }
.tf-pano__frame .tf-art { max-width: 640px; }
.tf-pano__quote { position: absolute; left: var(--tf-g); bottom: var(--tf-g); max-width: min(46ch, 60%); }
.tf-pano { position: relative; }
.tf-pano__quote .tf-qcard { background: var(--tf-scrim); color: #fff; }
.tf-pano__quote .tf-q cite { color: rgba(255, 255, 255, .75); }
.tf-pano__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px var(--tf-g); margin-top: 12px; }
.tf-pano__foot .tf-folio { margin: 0; }
.tf-pano__cap { margin: 0; font-size: .86rem; color: var(--tf-muted); }
.tf-pano__artstrip { display: none; background: var(--tf-ink); padding: 14px var(--tf-g); margin-top: 12px; }
.tf-pano__artstrip img { width: 100%; height: auto; }
@container tf (max-width: 760px) {
	.tf-pano__frame { aspect-ratio: auto; height: clamp(220px, 46vh, 420px); }
	.tf-pano__frame .tf-art { display: none; }
	.tf-pano--art .tf-pano__artstrip { display: block; }
	.tf-pano__quote { position: static; max-width: none; margin-top: 12px; }
	.tf-pano__quote .tf-qcard { background: var(--tf-card); color: var(--tf-fg); }
}
/* On a phone a full-width parallax band shows as on larger screens (Andy, Bugpot GQ1Q9M, 5 Nov 2026, putting back
   what FQZLJ4 left out on 1 Nov). A pull quote carried on a band still shows as a quote card on its own there.
   Same phone width as the picture rows in feature.js. */
@media (max-width: 760px) {
	body:not(.tqb-on) .tf-pano:has(.tf-pano__quote) :is(.tf-pano__frame, .tf-pano__artstrip, .tf-pano__foot) { display: none; }
	body:not(.tqb-on) .tf-pano__quote { position: static; max-width: none; margin-top: 0; }
}

/* ---- Facts --------------------------------------------------------------- */
.tf-facts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--tf-g); }
.tf-fact { background: var(--tf-card); padding: var(--tf-g); min-width: 0; }
.tf-fact__v { display: block; overflow-wrap: break-word; font-family: Rajdhani, sans-serif; font-weight: 700; font-size: clamp(2.2rem, 5cqw, 3.6rem); line-height: .95; letter-spacing: -.01em; }
.tf-fact__l { display: block; margin-top: 8px; font-size: .92rem; line-height: 1.4; color: var(--tf-muted); }
@container tf (max-width: 640px) { .tf-facts { grid-auto-flow: row; } }

/* ---- Buy and adverts ----------------------------------------------------- */
.tf-buy--inline { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--tf-g); align-items: center; background: var(--tf-ink); color: #fff; padding: var(--tf-g); }
.tf--ink .tf-buy--inline { background: var(--tf-coal); }
.tf-buy__cover { width: clamp(72px, 9cqw, 104px); flex: none; }
.tf-buy__cover img { width: 100%; height: auto; }
.tf-buy__k { margin: 0; font-family: Rajdhani, sans-serif; font-weight: 600; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--tf-accent); }
.tf-buy__t { margin: 4px 0 0; font-family: Rajdhani, sans-serif; font-weight: 700; font-size: clamp(1.3rem, 2.4cqw, 1.8rem); line-height: 1; text-transform: uppercase; }
.tf-buy__p { margin: 8px 0 0; font-size: .95rem; line-height: 1.45; color: #c6cad1; max-width: 52ch; }
.tf-buy__act { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.tf-buy__sub { font-size: .9rem; color: #c6cad1; text-decoration: underline; text-underline-offset: 3px; }
.tf-buy--sub { grid-template-columns: minmax(0, 1fr) auto; }
.tf-buy--full .i43-buy { margin: 0; }
.tf-ad { background: var(--tf-band); padding: var(--tf-g); display: flex; justify-content: center; }
.tf-ad .ad-unit { margin: 0 auto; width: 100%; max-width: 100%; }
@container tf (max-width: 640px) {
	.tf-buy--inline { grid-template-columns: 1fr; }
	.tf-buy__cover { width: 96px; }
}

/* ---- Product rail: the issue, a subscription, related back issues or bundles ------------- */
.tf-shelf { margin-top: var(--tf-v); }
.tf-shelf__h { font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 1.6rem; text-transform: uppercase; line-height: 1; margin: 0 0 20px; }
.tf-shelf__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--tf-g); }
.tf-shelf__card { display: flex; flex-direction: column; min-width: 0; background: var(--tf-card); }
.tf-shelf__cover { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--tf-band); }
.tf-shelf__cover img { width: 100%; height: 100%; object-fit: cover; }
.tf-shelf__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tf-shelf__t { font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 1.05rem; line-height: 1.15; text-decoration: none; }
.tf-shelf__p { margin: 0; font-size: .92rem; color: var(--tf-muted); }
.tf-shelf__p .woocommerce-Price-amount { color: var(--tf-fg); font-weight: 600; }
.tf-shelf__buy { margin-top: auto; align-self: flex-start; }
.tf-shelf--reads .tf-shelf__cover { aspect-ratio: 16 / 10; }
.tf-shelf__cover--logo { display: flex; align-items: center; justify-content: center; }
.tf-shelf__cover--logo img { width: 50%; height: auto; object-fit: contain; }
@container tf (max-width: 640px) { .tf-shelf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* ---- Locked (paywall): inc/paywall.php, template-parts/feature/locked.php --------------- */
.tf-locked { margin-top: var(--tf-v); }
.tf-locked__in { background: var(--tf-card); border: 1px solid var(--tf-rule); border-top: 3px solid var(--tf-accent); border-radius: 6px; padding: calc(var(--tf-v) * 0.55) var(--tf-g); text-align: center; max-width: 640px; margin: 0 auto; }
.tf-locked__kicker { display: block; font-family: Rajdhani, sans-serif; font-weight: 600; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--tf-deep); }
.tf-locked__h { font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 1.7rem; text-transform: uppercase; line-height: 1.1; margin: 10px 0 0; }
.tf-locked__p { font-size: .95rem; line-height: 1.5; color: var(--tf-muted); max-width: 46ch; margin: 12px auto 0; }
.tf-locked__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
/* The locked panel's secondary-button contrast fix (btn--ghost-light on a light ground) lives in
   custom.css, not here: feature.css is only enqueued for a built (v2) feature
   (inc/feature-render.php's wp_enqueue_scripts hook, torque_feature_v2() must return a doc), so a
   migrated feature showing this same panel never loads this file at all. */
@container tf (max-width: 640px) {
	.tf-locked__in { padding: var(--tf-v) var(--tf-g); }
	.tf-locked__actions { flex-direction: column; }
	.tf-locked__actions .btn { width: 100%; white-space: normal; flex-wrap: wrap; row-gap: 4px; line-height: 1.25; text-align: center; }
	.tf-locked__actions > form { width: 100%; }
}

/* ---- More in this issue ------------------------------------------------- */
.tf-more { margin-top: var(--tf-v); padding: var(--tf-v) 0; border-top: 1px solid var(--tf-rule); }
.tf-more__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--tf-g); margin-bottom: 28px; }
.tf-more__title { font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 1.6rem; text-transform: uppercase; line-height: 1; margin: 0; }
.tf-more__all { font-family: Rajdhani, sans-serif; font-weight: 600; font-size: .84rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--tf-accent); }
.tf-more__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tf-g); }
.tf-more__card { display: block; text-decoration: none; min-width: 0; }
.tf-more__ph { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tf-card); }
.tf-more__ph img { width: 100%; height: 100%; object-fit: cover; }
.tf-more__k { display: block; margin-top: 10px; font-family: Rajdhani, sans-serif; font-weight: 600; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--tf-deep); }
.tf--ink .tf-more__k { color: var(--tf-accent); }
.tf-more__t { display: block; margin-top: 4px; font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 1.12rem; line-height: 1.1; }
@container tf (max-width: 640px) { .tf-more__grid { grid-template-columns: 1fr; } }

/* ---- Progress, rail, lightbox, locked ----------------------------------- */
.tf-progress { position: sticky; top: 0; z-index: 60; height: 3px; background: transparent; pointer-events: none; }
.tf-progress__bar { display: block; height: 100%; width: var(--tf-p, 0%); background: var(--tf-accent); transition: width .12s linear; }
.tf-rail { display: none; position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 45; flex-direction: column; gap: 12px; }
.tf-rail__i { position: relative; display: block; padding: 2px; text-decoration: none; color: var(--tf-fg); }
.tf-rail__dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--tf-steel); flex: none; transition: transform .2s, background .2s; }
.tf-rail__i.is-on .tf-rail__dot { background: var(--tf-accent); transform: scale(1.5); }
.tf-rail__l { position: absolute; right: calc(100% + 8px); top: 50%; transform: translate(6px, -50%); font-family: Rajdhani, sans-serif; font-weight: 600; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; opacity: 0; transition: opacity .2s, transform .2s; white-space: nowrap; background: var(--tf-bg); padding: 2px 6px; pointer-events: none; }
.tf-rail:hover .tf-rail__l, .tf-rail__i:focus-visible .tf-rail__l { opacity: 1; transform: translate(0, -50%); }
@media (min-width: 1360px) { .tf-rail { display: flex; } }

/* ---- Distraction-free (the Quiet toggle in the edit bar) --------------------------------- */
/* Hides the site's own chrome above the feature: the mobile bar, the sidebar nav, the trending
   ticker, the utility row, the magazine mega menu, and this page's own breadcrumb. The chapter
   rail and the footer are left showing. Each hidden element carries this class itself, wherever
   it sits in the markup, so this one rule is the only thing that needs to know about all of them.
   The sidebar's own collapse arrow goes with it, rather than floating over empty space; --sb-w is
   the sidebar's own width variable (custom.css), set to 0 here so .main-col's margin closes the
   gap too, independently of the sidebar's own remembered collapsed state (sb-collapsed), which
   this never reads or sets, so leaving quiet mode always puts the sidebar back exactly as the
   editor had it. */
html.tqb-quiet { --sb-w: 0px; margin-top: 0 !important; } /* and no room left for WordPress's own toolbar */
/* Nothing but the feature and the tools to edit it: the site's own chrome (tqb-quiet-hide, the footer
   included), WordPress's toolbar, the chat button and the Bugpot feedback button all go. */
html.tqb-quiet .tqb-quiet-hide, html.tqb-quiet .sb-toggle, html.tqb-quiet #wpadminbar, html.tqb-quiet #tqc-chat-root, html.tqb-quiet #bugpot-host { display: none !important; }

.tf-lb { position: fixed; inset: 0; z-index: 100; background: rgba(22, 24, 29, .96); display: flex; align-items: center; justify-content: center; padding: 56px; }
.tf-lb[hidden] { display: none; }
.tf-lb__fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tf-lb__img { max-width: min(92vw, 1600px); max-height: 82vh; width: auto; height: auto; }
.tf-lb__cap { color: #c6cad1; font-size: .9rem; text-align: center; max-width: 70ch; }
.tf-lb__x, .tf-lb__nav { position: absolute; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; padding: 12px; }
.tf-lb__x { top: 12px; right: 16px; }
.tf-lb__nav { top: 50%; transform: translateY(-50%); font-size: 3rem; }
.tf-lb__nav--prev { left: 8px; }
.tf-lb__nav--next { right: 8px; }
.tf-lb__x:focus-visible, .tf-lb__nav:focus-visible, .tf-rail__i:focus-visible, .tf-folio__spread:focus-visible { outline: 2px solid var(--tf-accent); outline-offset: 2px; }
.tf-locked { text-align: center; padding: var(--tf-v) var(--tf-g); background: var(--tf-card); }
.tf-locked__t { font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 1.6rem; text-transform: uppercase; margin: 0 0 16px; }
@media (max-width: 640px) { .tf-lb { padding: 48px 8px; } }

/* ---- Motion -------------------------------------------------------------- */
[data-tf-parallax] .tf-ph.is-live { will-change: transform; }
/* What an editor set a photo, or a part holding photos, to do (feature.js adds data-tf-hover and data-tf-scroll from the
   document's anims). Hover is on each photo inside its own frame: the photo grows while its clip shrinks by as much, so
   it never spills over a caption. Drift moves each photo inside its frame as the page scrolls (feature.js, .tf-drift). */
[data-tf-hover] img.tf-img { clip-path: inset(0); transition: transform .9s cubic-bezier(.2, .7, .2, 1), clip-path .9s cubic-bezier(.2, .7, .2, 1), filter .5s ease; }
:is([data-tf-hover="zoom"] .tf-ph, .tf-ph[data-tf-hover="zoom"]):hover img.tf-img:not(.tf-drift) { transform: scale(1.06); clip-path: inset(2.83%); }
:is([data-tf-hover="brighten"] .tf-ph, .tf-ph[data-tf-hover="brighten"]):hover img.tf-img { filter: brightness(1.1) saturate(1.08); }
/* Colour in (Andy, 20 Oct 2026): each photo stays black and white until the mouse is over it, or it has the keyboard's focus. */
:is([data-tf-hover="colour"] .tf-ph, .tf-ph[data-tf-hover="colour"]) img.tf-img { filter: grayscale(1); }
:is([data-tf-hover="colour"] .tf-ph, .tf-ph[data-tf-hover="colour"]):is(:hover, :focus-within) img.tf-img { filter: none; }
img.tf-img.tf-drift { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
	[data-tf-hover] img.tf-img { transition: filter .5s ease; }
	:is([data-tf-hover="zoom"] .tf-ph, .tf-ph[data-tf-hover="zoom"]):hover img.tf-img:not(.tf-drift) { transform: none; clip-path: inset(0); }
	.tf-cover__bleed > .tf-ph, .tf-ch__bleed > .tf-ph, .tf-pano__frame > .tf-ph, .tf-stage__hero > .tf-ph, .tf-stage .tf-ch__leadframe > .tf-ph { top: 0; height: 100%; transform: none !important; }
	.tf-ch__leadframe[data-tf-reveal] .tf-ph { clip-path: none; transition: none; }
	.tf-progress__bar { transition: none; }
}

/* Rows of photos beside the copy (1,3,1): a small mosaic down the side. */
.tf-ch--beside .tf-ch__sidegrid { min-width: 0; }
.tf-ch--beside .tf-ch__sidegrid .tf-row + .tf-row { margin-top: calc(var(--tf-g) / 2); }
/* Was a half gutter: align.js (and the "no gaps, perfect alignment, one gutter
   value everywhere" rule it checks for) only tolerates that between rows
   stacked top to bottom (the margin above), never between two pieces side by
   side in the same row - this is the latter, so it keeps the full gutter. */
.tf-ch--beside .tf-ch__sidegrid .tf-row { gap: var(--tf-g); }
/* Beside the copy the photos fill exactly its height: the column takes its height from the text alone, and the
   grid and the stack share it in proportion to their natural heights (--tf-wt, from the template), each photo
   cropped to its share. The crop tool's "as on the page" frame follows whatever shape that gives. Where the layout
   stacks (narrow containers) the photos keep their own shapes instead. */
@container tf (min-width: 761px) {
	.tf-ch--beside.tf-ch--fit .tf-ch__stick { position: absolute; inset: 0; }
	.tf-ch--beside.tf-ch--fit .tf-ch__sidegrid, .tf-ch--beside.tf-ch--fit .tf-ch__more { flex: var(--tf-wt, 1) 1 0%; min-height: 0; display: flex; flex-direction: column; }
	.tf-ch--beside.tf-ch--fit .tf-ch__more:not(:has(.tf-row__ph)) { flex: 0 0 auto; }
	.tf-ch--beside.tf-ch--fit .tf-ch__sidegrid .tf-mosaic { flex: 1 1 0%; min-height: 0; display: flex; flex-direction: column; gap: calc(var(--tf-g) / 2); }
	.tf-ch--beside.tf-ch--fit .tf-ch__sidegrid .tf-row { flex: var(--tf-wt, 1) 1 0%; min-height: 0; }
	.tf-ch--beside.tf-ch--fit .tf-ch__sidegrid .tf-row + .tf-row { margin-top: 0; }
	.tf-ch--beside.tf-ch--fit .tf-ch__sidegrid .tf-row__ph, .tf-ch--beside.tf-ch--fit .tf-ch__stackph { aspect-ratio: auto; }
	.tf-ch--beside.tf-ch--fit .tf-ch__stackph { flex: var(--tf-wt, 1) 1 0%; min-height: 0; }
	.tf-ch--beside.tf-ch--fit .tf-ch__more .tf-qcard { flex: 0 0 auto; }
}

/* Animations an editor sets on a part (the document's anims, applied by feature.js, which adds data-tf-anim):
   the part waits in its starting state until it scrolls into view, then plays once and settles into its own
   look. Nothing here applies without the script, and nothing moves for a reader who asks for less motion. */
@media (prefers-reduced-motion: no-preference) {
	[data-tf-anim]:not([data-tf-anim="none"]):not([data-tf-anim="words"]):not([data-tf-anim="wipe"]):not([data-tf-anim="iris"]):not([data-tf-anim="grayscale"]):not(.tf-anim-in) { opacity: 0; }
	/* Black and white to colour (Dom, 19 Oct 2026): the part is there from the start, in black and white, and its colour
	   comes in slowly as it scrolls into view. */
	[data-tf-anim="grayscale"]:not(.tf-anim-in) { filter: grayscale(1); }
	[data-tf-anim="wipe"]:not(.tf-anim-in) { clip-path: inset(0 100% 0 0); }
	[data-tf-anim="iris"]:not(.tf-anim-in) { clip-path: circle(0% at 50% 50%); }
	[data-tf-anim].tf-anim-in, [data-tf-anim="words"].tf-anim-in .tf-w { animation-duration: var(--tf-anim-dur, .8s); animation-delay: var(--tf-anim-delay, 0s); animation-timing-function: cubic-bezier(.2, .7, .2, 1); animation-fill-mode: backwards; }
	[data-tf-anim="fade"].tf-anim-in { animation-name: tf-a-fade; }
	[data-tf-anim="rise"].tf-anim-in { animation-name: tf-a-rise; }
	[data-tf-anim="drop"].tf-anim-in { animation-name: tf-a-drop; }
	[data-tf-anim="slide-left"].tf-anim-in { animation-name: tf-a-slide-left; }
	[data-tf-anim="slide-right"].tf-anim-in { animation-name: tf-a-slide-right; }
	[data-tf-anim="zoom"].tf-anim-in { animation-name: tf-a-zoom; }
	[data-tf-anim="settle"].tf-anim-in { animation-name: tf-a-settle; }
	[data-tf-anim="blur"].tf-anim-in { animation-name: tf-a-blur; }
	[data-tf-anim="grayscale"].tf-anim-in { animation-name: tf-a-grayscale; animation-duration: calc(var(--tf-anim-dur, .8s) * 2); animation-timing-function: ease-out; }
	[data-tf-anim="wipe"].tf-anim-in { animation-name: tf-a-wipe; }
	[data-tf-anim="iris"].tf-anim-in { animation-name: tf-a-iris; }
	[data-tf-anim="flip"].tf-anim-in { animation-name: tf-a-flip; transform-origin: 50% 0; }
	[data-tf-anim="words"] .tf-w { display: inline-block; }
	[data-tf-anim="words"]:not(.tf-anim-in) .tf-w { opacity: 0; }
	[data-tf-anim="words"].tf-anim-in .tf-w { animation-name: tf-a-rise; animation-delay: calc(var(--tf-anim-delay, 0s) + var(--i, 0) * 45ms); }
}
@keyframes tf-a-fade { from { opacity: 0; } }
@keyframes tf-a-rise { from { opacity: 0; transform: translateY(44px); } }
@keyframes tf-a-drop { from { opacity: 0; transform: translateY(-44px); } }
@keyframes tf-a-slide-left { from { opacity: 0; transform: translateX(-90px); } }
@keyframes tf-a-slide-right { from { opacity: 0; transform: translateX(90px); } }
@keyframes tf-a-zoom { from { opacity: 0; transform: scale(.82); } }
@keyframes tf-a-settle { from { opacity: 0; transform: scale(1.14); } }
@keyframes tf-a-blur { from { opacity: 0; filter: blur(16px); } }
@keyframes tf-a-grayscale { from { filter: grayscale(1); } to { filter: grayscale(0); } }
@keyframes tf-a-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes tf-a-iris { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(75% at 50% 50%); } }
@keyframes tf-a-flip { from { opacity: 0; transform: perspective(900px) rotateX(-75deg); } }

/* A photo place in the copy, among the paragraphs (Ops photo_in_copy; Andy, by Dom, 19 Oct 2026): the column's
   width, its own shape, a little air above and below, never split across two columns. */
.tf-pimg { margin: 1.25em 0; break-inside: avoid; }
.tf-pimg .tf-ph { margin: 0; }
.tf-pimg .tf-img { display: block; width: 100%; height: auto; }

/* ---- Stories, click to open (a section design) ----
 * The copy as a list of stories, like the FAQ page: each story's headline and
 * opening paragraph, a rule between stories, and a chevron that opens the
 * rest. No photos. One column at a reading width, centred in the section. */
.tf-stories { max-width: 920px; margin: 0 auto; border-top: 2px solid var(--tf-fg); }
.tf-story { border-bottom: 1px solid var(--tf-rule); }
details.tf-story > .tf-story__sum { cursor: pointer; }
.tf-story__sum::-webkit-details-marker { display: none; }
.tf-story__sum { display: block; padding: 26px 0; list-style: none; }
.tf-story__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 1.02rem; letter-spacing: .05em; text-transform: uppercase; color: var(--tf-deep); }
.tf-story__more svg { width: 22px; height: 22px; fill: currentColor; transition: transform .2s; }
.tf-story__more-close { display: none; }
details.tf-story[open] .tf-story__more-open { display: none; }
details.tf-story[open] .tf-story__more-close { display: inline; }
details.tf-story[open] .tf-story__more svg { transform: rotate(180deg); }
details.tf-story > .tf-story__sum:hover .tf-story__more { text-decoration: underline; text-underline-offset: 3px; }
.tf-story__rest { padding: 0 0 14px; }
.tf-story__h { margin: 0 0 .5em; font-size: clamp(1.3rem, 2.4cqw, 1.7rem); line-height: 1.02; transition: color .15s; }
.tf-story__lede { margin: 0; }
.tf-story__lede + .tf-story__lede { margin-top: .6em; }
details.tf-story > .tf-story__sum:hover .tf-story__h { color: var(--tf-deep); }
.tf-story__sum:focus-visible { outline: 2px solid var(--tf-accent); outline-offset: 4px; }
.tf-story__rest > .tf-x:first-child { margin-top: 0; }
@container tf (max-width: 560px) {
	.tf-story__sum { padding: 20px 0; }
}

/* ---- Photo carousel (a section design) ----
 * A chapter's photos beside its copy as one carousel: one photo at a time, shown whole on a soft backing,
 * arrows and a counter along the bottom. Beside the copy it fills the copy's height (tf-ch--fit); where the
 * layout stacks it takes --tf-car-ar, the middle of the photos' own shapes. It never moves by itself. */
.tf-ch__car { min-width: 0; }
.tf-car { position: relative; width: 100%; aspect-ratio: var(--tf-car-ar, 1.5); overflow: hidden; background: color-mix(in srgb, var(--tf-fg) 8%, transparent); }
.tf-car:focus-visible { outline: 2px solid var(--tf-accent); outline-offset: 3px; }
.tf-car__stage { position: absolute; inset: 0; }
.tf-car__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s, visibility 0s .45s; }
.tf-car__slide.is-on { opacity: 1; visibility: visible; transition: opacity .45s; }
/* A softened copy of the photo fills what it leaves bare, so a landscape photo in a tall frame sits on its own colours. */
.tf-car__slide::before { content: ""; position: absolute; inset: 0; background: var(--tf-car-bg) center / cover; transform: scale(1.2); filter: blur(22px) brightness(.85); }
.tf-car__slide .tf-ph { position: relative; margin: 0; width: 100%; height: 100%; }
.tf-car__slide .tf-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tf-car__slide .tf-cap { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 2.4em 14px 52px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); pointer-events: none; }
.tf-car__bar { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 4px; padding: 3px; background: rgba(0, 0, 0, .62); color: #fff; border-radius: 999px; }
.tf-car__btn { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.tf-car__btn svg { width: 22px; height: 22px; fill: currentColor; }
.tf-car__btn--prev svg { transform: scaleX(-1); }
.tf-car__btn:hover { background: rgba(255, 255, 255, .22); }
.tf-car__btn:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.tf-car__n { min-width: 3.6em; text-align: center; font: 600 .8rem/1 var(--tf-ui, inherit); letter-spacing: .02em; }
@media (prefers-reduced-motion: reduce) { .tf-car__slide, .tf-car__slide.is-on { transition: none; } }
@container tf (min-width: 761px) {
	.tf-ch--beside.tf-ch--fit .tf-ch__car { flex: 1 1 0%; min-height: 0; display: flex; flex-direction: column; }
	.tf-ch--beside.tf-ch--fit .tf-ch__car .tf-car { flex: 1 1 0%; min-height: 0; aspect-ratio: auto; }
}
@container tf (max-width: 760px) {
	.tf-ch--beside .tf-ch__car { order: 2; }
}

/* ---- Long copy: the copy across the page in one column, the photos in rows under it, all one chapter ---- */
.tf-ch--long .tf-ch__title { margin: 0 0 28px; }
.tf-ch--long .tf-ch__title .tf-folio { margin-bottom: 14px; }
.tf-ch--long .tf-copy--1 { max-width: none; }
.tf-ch--long .tf-copy--1 > :first-child { margin-top: 0; }
.tf-ch--long .tf-copy--1 > :last-child { margin-bottom: 0; }
.tf-ch__longrows { margin-top: var(--tf-g, 24px); }
/* An upright photo across the whole page would run far past the screen: it stops at about the screen's height and crops to its focus point. A landscape photo is never cropped by this. */
@media (min-width: 1100px) { .tf-ch__longrows .tf-row__ph { max-height: max(90vh, 850px); } }
.tf-ch__longrows + .tf-insets, .tfi-long-rows + .tf-insets { margin-top: var(--tf-g, 24px); }
