/* The Issue: a feature dressed as its magazine's issue page.
 *
 * The look is the issue page's own (custom.css i43-*, area-issue.css i5-* and
 * ic-*), so the two stay one design. This sheet adds only what a whole
 * feature needs that an issue page does not have: the content wrapper, the
 * copy beside the photos and its run beneath, crossheads and pull quotes,
 * strips of any shape, the band's quote, key figures and the opening copy.
 * One gutter (--g, 24px) for every gap. No shadows. */

.tf--issue { background: transparent; }
/* A feature first made by the old builder still loads its sheet (torque-ai assets/features/front.css),
   which puts a measure on .tql-feature; this frame runs the full width, like the issue page's. */
.tql-feature.tf--issue { max-width: none; margin: 0; padding: 0; }
.tf--issue .tf-body > * { margin-top: 64px; }
.tf--issue .tf-body > .tfi-hero { margin-top: 0; }
.tf--issue .tf-body > .tfi-chips { margin-top: 24px; }
.tf--issue .tf-body > :last-child { margin-bottom: 64px; }

/* The issue page's content measure, for everything but the hero and the bands. */
.tfi-wrap { max-width: 1344px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
@media (min-width: 640px) { .tfi-wrap { padding-left: 36px; padding-right: 36px; } }

/* feature.css lets links inherit their colour; the issue page's links keep their own. */
.tf--issue a.btn { color: var(--accent-contrast); }
.tf--issue a.btn--ghost-light { color: #fff; }
.tf--issue a.btn--ghost-light:hover { color: #16181d; }
/* The paywall panel sits on the light card, so its outline links take the card's ink like its buy forms. */
.tf--issue .tf-locked__actions a.btn--ghost-light { color: var(--tf-fg, inherit); }
.tf--issue .tf-locked__actions a.btn--ghost-light:hover { color: #16181d; }
.tf--issue .badge-head__all { color: var(--accent); }
.tf--issue .badge-head__all:hover { color: #fff; }
.tfi-hero a.tfi-issue { color: #c6cad1; }
.tfi-hero a.tfi-issue:hover { color: #fff; }
.tfi-chips a.tfi-chip { color: rgb(var(--tx-ink)); }
.tfi-chips a.tfi-chip.is-on { color: var(--accent-contrast); }
.tfi-chips a.tfi-chips__all { color: var(--accent-deep); }

/* ---- Hero ---------------------------------------------------------------- */
/* Feature headlines run longer than "Features in this issue": long ones step down a size. */
.tfi-hero .tfi-title--long { font-size: clamp(2.6rem, 6vw, 4.8rem); max-width: 16ch; }
.tfi-hero .tfi-title--xlong { font-size: clamp(2.1rem, 4.2vw, 3.5rem); max-width: 24ch; line-height: .95; }
/* On phones and tablets the headline and chapter headings balance their lines, so no word sits alone on the last line (Andy, MAN, 2 Nov 2026). */
@media (max-width: 1024px) { .tf--issue h1.hr-a, .tf--issue .i43-title { text-wrap: balance; } }
.tfi-nobr { white-space: nowrap; }
.tfi-stand { margin: 40px 0 0; max-width: 62ch; font-size: 1.18rem; line-height: 1.55; color: #d5d8dd; }
.tfi-stand--caps { text-transform: uppercase; font-size: 1rem; letter-spacing: .04em; }
.tfi-inside { margin: 48px 0 0; font-family: Rajdhani, sans-serif; font-weight: 600; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.tfi-list { margin-top: 20px; }
.tfi-list__n { flex: none; width: 2.4em; font-family: Rajdhani, sans-serif; font-weight: 700; font-size: .95rem; letter-spacing: .08em; color: var(--accent); }
.tfi-credits { display: flex; flex-wrap: wrap; gap: 4px 18px; font-family: Rajdhani, sans-serif; font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #8a919c; }
.tfi-credits b { font-weight: 700; letter-spacing: .08em; color: var(--accent, #f49731); }

/* ---- Sections ------------------------------------------------------------ */
/* area-issue.css sizes the collage against its grid as a direct child of .i5-sec; here the grid sits in the measure. */
.tfi-sec .tfi-grid { gap: var(--g); }
@media (min-width: 1100px) { .tfi-sec .tfi-grid { container-type: inline-size; } }

/* The line over a heading, as the issue page's "Feature · From Issue 43". */
/* Each piece starts with its dot in a fixed space; the line is pulled left by that space and the strip is clipped,
   so the dot of a piece that wraps to the start of a line is hidden and every line starts level. */
.tfi-kick { --tfi-s: 2.2em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 0; margin: 0 0 0 calc(-1 * var(--tfi-s)); clip-path: inset(-.6em -1em -.6em calc(var(--tfi-s) - 3px)); font-family: Rajdhani, sans-serif; font-weight: 600; font-size: .72rem; line-height: 1.4; letter-spacing: .22em; text-transform: uppercase; color: #8a919c; }
.tfi-kick__i { white-space: nowrap; }
.tfi-kick__i:first-child { padding-left: var(--tfi-s); }
.tfi-kick__s { display: inline-block; width: var(--tfi-s); text-align: center; letter-spacing: 0; color: #c6cad1; }
.tfi-kick .tf-folio__spread { color: var(--accent-deep); text-underline-offset: 3px; }
.tfi-kick .tf-folio__spread:hover { color: rgb(var(--tx-ink)); }

/* Copy: whole paragraphs (with their crossheads) are the units the balancer moves. */
.tf--issue .tfi-u > p,
.tf--issue .tfi-u > blockquote { margin-top: 0; margin-bottom: 0; }
.tf--issue .tfi-u + .tfi-u { margin-top: 1.1em; }
.tf--issue .tfi-u + .tfi-u:has(> .tf-x) { margin-top: 1.9em; }
.tf--issue .tf-x { display: inline-block; margin: 0 0 12px; padding-top: 12px; border-top: 3px solid var(--accent); font-size: 1.15rem; letter-spacing: .08em; line-height: 1.1; color: rgb(var(--tx-ink)); }
.tf--issue .tfi-run { margin-top: var(--g); }
.tfi-run[hidden] { display: none; }
@media (min-width: 1100px) {
	.tfi-run { columns: 2; column-gap: var(--g); }
	.tfi-run .tf-x { break-after: avoid; }
}

/* Arranged beside (the one-column setting): every word of a chapter in the one column, its photos down the
   other side filling exactly the copy's height as on the other designs, the strip's rows joining them while
   there is copy beside them (feature-issue.js, which measures the photos at their own shapes with is-measure)
   and the rest underneath. Copy with no photos beside it (Words only, or a section whose photos are gone) runs
   the full width of the page, as it does on the other designs, not a narrow column with the rest left empty
   (Andy, Bugpot WOS6A4; 7SXKVD for the other designs). */
@media (min-width: 1100px) {
	.tfi-sec--one .tfi-run,
	.ic-page .i5-sec.tfi-sec--one .i43-copy.is-wide .i43-text { columns: auto; max-width: 48rem; }
	.tfi-sec--one .tfi-run--intro,
	.ic-page .i5-sec.tfi-sec--one .i43-copy.is-wide .i43-text { max-width: none; }
	.ic-page .i5-sec.tfi-sec--one .i43-copy > :last-child { margin-top: 0; }
	.ic-page .i5-sec.tfi-sec--one .i43-collage:has(> .tfi-strip__row) .i43-main { flex-grow: 2; }
	.tfi-sec--one .i43-collage > .tfi-strip__row { margin: 0; }
	.tfi-sec--one .i43-collage:not(.is-measure) > .tfi-strip__row { flex: 1 1 0; min-height: 0; }
	.tfi-sec--one .i43-collage:not(.is-measure) > .tfi-strip__row .tf-row__ph { aspect-ratio: auto !important; min-height: 0; }
	.tfi-sec--one .i43-collage:not(.is-measure) > .tfi-strip__row :is(figure, picture) { height: 100%; }
	.tfi-sec--one .i43-collage:not(.is-measure) > .tfi-strip__row img { width: 100%; height: 100%; object-fit: cover; }
	.ic-page .i5-sec.tfi-sec--one .i43-collage.is-measure { contain: none; min-height: 0; align-self: start; }
	.ic-page .i5-sec.tfi-sec--one .i43-collage.is-measure .i43-main { flex: none; }
	.ic-page .i5-sec.tfi-sec--one .i43-collage.is-measure .i43-main img { height: auto; aspect-ratio: var(--tfi-ar, 3 / 2); }
	.tfi-sec--one .i43-collage.is-measure > .tfi-strip__row { flex: none; }
}

/* Rows the editor set (1,3,1) beside one-column copy (Andy, Bugpot LLWQ21): one gutter between photos each way.
   On desktop they fill exactly the copy's height as on the other designs, each row sharing it in proportion to its
   natural height, except the first, which never grows past its own shape so the main photo stays as it was taken.
   No row grows past the point where its photos would turn taller than 5:4 (--tf-cap), so a row of three never shows
   portrait; copy longer than that carries on beneath in the same single column (feature-issue.js; Andy, Bugpot
   JLUNBG, 31 Oct 2026). Where the columns stack the photos keep their own shapes. */
.tfi-rows .tfi-rows__mosaic { display: flex; flex-direction: column; gap: var(--g, 24px); }
.tfi-rows .tf-row { gap: var(--g, 24px); }
.tfi-rows .tf-row + .tf-row { margin-top: 0; }
.tfi-rows .tf-row__ph { aspect-ratio: var(--tf-ar, auto); min-width: 0; }
@media (min-width: 1100px) {
	.ic-page .i5-sec .tfi-rows .tfi-rows__mosaic { flex: 1 1 0%; min-height: 0; }
	.tfi-rows .tf-mosaic__row { flex: var(--tf-wt, 1) 1 0%; min-height: 0; max-height: calc((var(--cw) - var(--tf-gaps, 0) * var(--g, 24px)) * var(--tf-cap, 1000) / 100); }
	.tfi-rows .tf-mosaic__row:first-child:not(:only-child) { max-height: calc(var(--cw) * var(--tf-wt, 66) / 100); }
	.tfi-rows .tf-row__ph { aspect-ratio: auto; min-height: 0; }
	.tfi-rows .tf-row__ph :is(figure, picture) { height: 100%; margin: 0; }
	.tfi-rows .tf-row__ph img { width: 100%; height: 100%; object-fit: cover; }
}

/* The opening copy: two columns, with a drop capital when this feature has it switched on ("Feature settings" in Tell the AI; off is the default). */
.tf--issue .tfi-intro .tfi-run { margin-top: 0; }
.tf--dropcap .tfi-run--intro > .tfi-u:first-child > .tf-p::first-letter { float: left; font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 4.1em; line-height: .78; padding: .06em .1em 0 0; color: var(--accent-deep); }

/* Photos beside the copy and in the strips: captions live in the lightbox, as the issue page shows none. */
/* Captions sit across the foot of each photo, so the photos keep their exact height beside the copy; the band's shows
   in its caption bar instead (Andy, Bugpot 8APVSC, 4 Nov 2026). Were hidden, leaving them to the full-size view only. */
.tf--issue .i43-collage .tf-ph,
.tf--issue .tfi-strip .tf-ph { position: relative; }
.tf--issue .i43-collage .tf-cap,
.tf--issue .tfi-strip .tf-cap { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 28px 14px 10px; color: #fff; font-size: .78rem; line-height: 1.35; background: linear-gradient(0deg, rgba(22, 24, 29, .78), rgba(22, 24, 29, 0)); pointer-events: none; }
.tf--issue .i43-smalls .tf-cap { padding: 22px 10px 8px; font-size: .72rem; }
.tf--issue .tfi-band .tf-ph .tf-cap { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tfi-band .ic-band__cap:has(.tfi-band__pcap) { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.tfi-band .ic-band__cap .tfi-band__pcap { display: block; margin: 0 0 0 auto; padding: 0; border: 0; max-width: 48ch; font-family: inherit; font-weight: 400; font-size: .82rem; letter-spacing: 0; text-transform: none; line-height: 1.35; color: #fff; text-align: right; }
.tf--issue .i43-smalls .tf-ph { margin: 0; min-width: 0; }

/* Strips: rows that keep each photo's proportions, grey until hovered like the issue page's strip. */
.tf--issue .tfi-strip { margin-top: var(--g); }
.tf--issue .tfi-intro .tfi-run + .tfi-strip,
.tf--issue .tfi-gal .i43-copy + .tfi-strip { margin-top: 40px; }
.tf--issue .tfi-strip img { border-radius: 3px; transition: filter .35s ease; }
.tf--issue .tfi-strip__row:has(> :nth-child(3)) img { filter: grayscale(.7); }
.tf--issue .tfi-strip__row:has(> :nth-child(3)) img:hover { filter: none; }
/* Rows the editor set (1,3,2) keep the same grey-until-hovered look on their rows of three (Andy, Bugpot S9NZQ6, 6 Nov 2026).
   A photo given its own hover look keeps that instead. */
.tf--issue .tf-mosaic__row img:not([data-tf-hover] img) { transition: filter .35s ease; }
.tf--issue .tf-mosaic__row:has(> :nth-child(3)) img:not([data-tf-hover] img) { filter: grayscale(.7); }
.tf--issue .tf-mosaic__row:has(> :nth-child(3)) img:not([data-tf-hover] img):hover { filter: none; }

/* Pull quotes: display capitals on an accent rule. */
.tf--issue .tfi-pull { background: none; padding: 0; margin-top: 40px; }
.tf--issue .tfi-pull .tf-q { max-width: 920px; border-left: 4px solid var(--accent); padding: 4px 0 4px 24px; }
.tf--issue .tfi-pull .tf-q::before { content: none; }
.tf--issue .tfi-pull .tf-q p { font-family: Rajdhani, sans-serif; font-style: normal; font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.08; text-transform: uppercase; color: rgb(var(--tx-ink)); }
.tf--issue .tfi-pull .tf-q cite { margin-top: 10px; color: var(--accent-deep); letter-spacing: .2em; }
.tf--issue .tfi-quote .tfi-pull { margin-top: 0; }
.tf--issue .tfi-pull + .tfi-strip { margin-top: 40px; }

/* The band: the issue page's parallax photo, with a pull quote in its caption bar. */
.tfi-band .tf-ph { height: 100%; margin: 0; }
/* A wide photo section's space above lives on the section, not on the photo inside it. On the photo it collapsed with the section's own margin, so the Look panel's "Space above" could never go under 64px (Andy, Bugpot E8LML6 and KG4R71, 9 Nov 2026). */
.tfi-pano { margin-top: 64px; }
.tfi-pano > .tfi-band { margin-top: 0; }
.tfi-band .ic-band__layer img { height: 100%; }
.tfi-band .ic-band__cap { pointer-events: none; }
.tfi-band .ic-band__cap:has(.tfi-band__q) { padding-top: 140px; background: linear-gradient(0deg, rgba(22, 24, 29, .85), rgba(22, 24, 29, 0)); }
.tfi-band__q { margin: 0; max-width: 44ch; padding-left: 16px; border-left: 3px solid var(--accent); }
.tfi-band__q p { margin: 0; font-family: Rajdhani, sans-serif; font-weight: 700; font-size: clamp(1.35rem, 2.3vw, 2.1rem); line-height: 1.08; text-transform: uppercase; color: #fff; }
.tfi-band__q cite { display: block; margin-top: 10px; font-family: Rajdhani, sans-serif; font-weight: 600; font-style: normal; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }

/* Key figures on the buy band's dark panel. */
.tfi-facts { background: #16181d; border-radius: 6px; padding: 40px 36px; color: #fff; }
.tfi-facts .tf-facts { gap: var(--g); }
.tfi-facts .tf-fact { display: flex; flex-direction: column; background: none; padding: 0 0 0 16px; border-left: 3px solid var(--accent); }
.tfi-facts .tf-fact__v { color: #fff; font-size: clamp(2.4rem, 4vw, 3.6rem); }
.tfi-facts .tf-fact__l { margin-top: auto; padding-top: 8px; color: #c6cad1; }

/* "You might be interested": as many columns as there are cards, so a short row leaves no hole. */
@media (min-width: 640px) { .tfi-more__grid { grid-template-columns: repeat(var(--nt), minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tfi-more__grid { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); } }

/* Buy and advert bands: the scene carries the spacing. */
.tf--issue .tfi-buy .i43-buy { margin: 0; }
.tf--issue .tfi-ad .i5-adband { margin-top: 0; }

/* The large outlined chapter number sits top right of the copy; the chapter line and heading keep clear of it, so a
   wide two-digit number never runs over "See the printed page" (widest, "88", is 130px at 7.5rem). The opening copy
   and a chapter with no heading carry their number too, as every chapter is numbered (Andy, Bugpot 0V653G). */
@media (min-width: 640px) {
	.ic-page.tf--issue .i5-sec .i43-copy > :first-child { padding-right: 9.25rem; }
	/* with no heading under the line, the copy starts below the number rather than running under it */
	.ic-page.tf--issue .i5-sec .i43-copy > :first-child:not(.i43-text):not(:has(h2, h3)):has(+ .i43-text) { min-height: 3.75rem; }
	.ic-page.tf--issue .i5-sec .i43-copy > .i43-text:first-child { margin-top: 5.25rem; }
	/* the second part of a split chapter has no number: its copy starts level with its photos, full measure (Bugpot OJ0TFU) */
	.ic-page.tf--issue .i5-sec.tfi-sec--cont .i43-copy > :first-child { padding-right: 0; }
	.ic-page.tf--issue .i5-sec.tfi-sec--cont .i43-copy > .i43-text:first-child { margin-top: 0; }
}

@media (max-width: 639px) {
	/* the kicker wraps on a phone and would run under the outlined chapter number */
	.ic-page.tf--issue .i43-copy::before { content: none; }
	.tfi-stand { margin-top: 32px; font-size: 1.05rem; }
	.tfi-inside { margin-top: 36px; }
	.tfi-facts { padding: 28px 20px; }
	.tfi-band .ic-band__cap:has(.tfi-band__q) { padding: 100px 20px 22px; }
}

/* On a phone the parallax bands show as on larger screens (Andy, Bugpot GQ1Q9M, 5 Nov 2026, putting back what
   FQZLJ4 left out). A pull quote carried on a band shows as plain text instead, styled as the pull quote beside
   the copy. Same phone width as the picture rows in feature.js. */
@media (max-width: 760px) {
	body:not(.tqb-on) .tfi-band:has(.tfi-band__q) { height: auto; min-height: 0; margin-top: 40px; overflow: visible; contain: none; background: none; }
	body:not(.tqb-on) .tfi-pano:has(> .tfi-band .tfi-band__q) { margin-top: 40px; }
	body:not(.tqb-on) .tfi-pano > .tfi-band:has(.tfi-band__q) { margin-top: 0; }
	body:not(.tqb-on) .tfi-band:has(.tfi-band__q) .ic-band__layer { display: none; }
	body:not(.tqb-on) .tfi-band .ic-band__cap:has(.tfi-band__q) { position: static; padding: 0 20px; background: none; }
	body:not(.tqb-on) .tfi-band .tfi-band__q { border-left-width: 4px; padding: 4px 0 4px 20px; }
	body:not(.tqb-on) .tfi-band .tfi-band__q p { font-size: 1.5rem; color: rgb(var(--tx-ink)); }
	body:not(.tqb-on) .tfi-band .tfi-band__q cite { color: var(--accent-deep); letter-spacing: .2em; }
}

/* Long copy: one column across the page, the photos in rows under it inside the same chapter. */
.ic-page .i5-sec.tfi-sec--long .i43-copy.is-wide .i43-text { columns: auto; max-width: none; }
.tfi-long-rows { margin-top: var(--g, 24px); }
