/* ─────────────────────────────────────────────────────────────
   GTD Desco — the newsroom, and the article page.

   WHAT WAS WRONG

   The news page's LAYOUT was the taxonomy. Three WordPress
   categories called `featured-left-col`, `featured-centre-col`
   and `featured-right-col` each got their own WP_Query, and each
   one filled a column. A post placed in a slot left the `News`
   category, and the main list only queried `News` — so five of
   the ten published posts were live on the site and appeared
   nowhere in the run.

   Every card was a background-image div with the headline
   printed ON the photograph under a gradient scrim, at whatever
   contrast that image happened to give, with no date, no topic
   and no indication of length. A 204-word notice and a
   3,053-word field piece looked identical.

   The article page was twenty-two lines: a title and the body,
   at whatever measure the container gave it. Nothing else.

   WHAT THIS DOES

   The topic rail is the page's spine — a real filter, with live
   counts, that a reader operates. The articles are a dated
   typographic run: the headline is a headline, on the page's own
   ground, and the photograph is a photograph, uncropped and
   undimmed beside it.

   The article gets a measure, a rail that stays with you, and
   somewhere to go at the end.

   THE MOMENT

   Filtering re-deals the run. Entries leave, the remainder
   closes up and each surviving row arrives from its own side, so
   a filter reads as the page rearranging itself rather than as
   rows blinking out.
   ───────────────────────────────────────────────────────────── */

.gtd-news,
.gtd-article,
.gtd-more {
	--n-red:    var(--gtd-red, #c60000);
	--n-onDark: #ff5b4a;
	--n-ink:    #141313;
	--n-quiet:  #5c6666;
	--n-line:   rgba(16, 29, 29, .14);
	--n-ease:   cubic-bezier(.16, 1, .3, 1);
	--n-edge:   max(1.25rem, calc((100vw - 1520px) / 2 + 12px));
}

/* ═════════════════════════════════════════════════════════════
   THE MASTHEAD
   ═════════════════════════════════════════════════════════════ */

.gtd-news__masthead {
	display: grid;
	grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
	gap: clamp(2rem, 5vw, 5.5rem);
	align-items: start;
	padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 4vw, 3.25rem);
}

.gtd-news__mastheadRule,
.gtd-news__rule,
.gtd-article__rule,
.gtd-more__rule {
	display: block;
	width: clamp(2.5rem, 6vw, 4.5rem);
	height: 3px;
	background: var(--n-red);
	transform-origin: left;
}

.gtd-news__mastheadRule { margin-bottom: clamp(1rem, 2vw, 1.6rem); }

.gtd-news__masthead h1 {
	margin: 0;
	/* !important answers css/type.css's `h1 { … !important }`. */
	font-size: clamp(3rem, 1.4rem + 5.4vw, 8rem) !important;
	font-weight: 900;
	line-height: .86;
	letter-spacing: -.045em;
	text-transform: uppercase;
	color: var(--gtd-ink, #101d1d) !important;
}

.gtd-news__lede {
	margin: 0;
	font-size: clamp(1.05rem, .97rem + .4vw, 1.35rem) !important;
	line-height: 1.6;
	max-width: 62ch;
	color: var(--n-quiet) !important;
	padding-top: .4rem;
}

/* ═════════════════════════════════════════════════════════════
   THE RAIL
   The spine. A full-bleed ink band so the filter reads as part
   of the page's structure rather than as a widget dropped on it.
   ═════════════════════════════════════════════════════════════ */

.gtd-news__rail {
	position: relative;
	width: 100vw;
	margin-left: 50%;
	transform: translateX(-50%);
	background: var(--n-ink);
	/*
	 * Edged top and bottom, the way the downloads band and the equipment band
	 * are edged. A single top stripe reads as an accent tab; two read as the
	 * band's own edges, which is what this is.
	 */
	box-shadow:
		inset 0  4px 0 0 var(--n-red),
		inset 0 -4px 0 0 var(--n-red);
	padding-block: clamp(1.25rem, 2.2vw, 1.75rem);
}

.gtd-news__railInner {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2.5vw, 2rem);
	flex-wrap: wrap;
}

.gtd-news__railLabel {
	flex: none;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .5);
}

.gtd-news__chips {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gtd-news__chip {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	padding: .62rem 1rem;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, .22);
	color: #fff !important;
	font-size: .8rem !important;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1;
	cursor: pointer;
	transition:
		background-color .28s var(--n-ease),
		border-color .28s var(--n-ease),
		color .28s var(--n-ease);
}

.gtd-news__chip:hover,
.gtd-news__chip:focus-visible {
	background: rgba(255, 255, 255, .1);
	border-color: rgba(255, 255, 255, .5);
	color: #fff !important;
}

.gtd-news__chip.is-on {
	background: var(--n-red);
	border-color: var(--n-red);
	color: #fff !important;
}

.gtd-news__chipCount {
	font-size: .68em;
	font-weight: 700;
	color: rgba(255, 255, 255, .6);
}

.gtd-news__chip.is-on .gtd-news__chipCount { color: rgba(255, 255, 255, .85); }

.gtd-news__chip:focus-visible {
	outline: 3px solid var(--n-onDark);
	outline-offset: 3px;
}

/* ═════════════════════════════════════════════════════════════
   THE ENTRY
   Type beside the picture, never on it.
   ═════════════════════════════════════════════════════════════ */

.gtd-news__entry {
	display: grid;
	gap: clamp(1.25rem, 3vw, 3rem);
	align-items: center;
}

.gtd-news__figure {
	position: relative;
	overflow: hidden;
	background: #e9ebeb;
	aspect-ratio: 3 / 2;
}

.gtd-news__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform .7s var(--n-ease);
}

.gtd-news__entry:hover .gtd-news__img { transform: scale(1.035); }

.gtd-news__blank {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: clamp(1.4rem, 1rem + 1.4vw, 2.4rem);
	font-weight: 900;
	letter-spacing: -.03em;
	color: rgba(16, 29, 29, .18);
}

.gtd-news__panel { min-width: 0; }

.gtd-news__rule { margin-bottom: clamp(.9rem, 1.8vw, 1.35rem); }

.gtd-news__title {
	margin: 0 0 .7rem;
	/* !important answers css/type.css's `h2 { … !important }`. */
	font-size: clamp(1.5rem, 1rem + 1.5vw, 3.1rem) !important;
	font-weight: 900;
	line-height: .96;
	letter-spacing: -.03em;
	text-transform: uppercase;
	color: var(--gtd-ink, #101d1d) !important;
	text-wrap: balance;
	overflow-wrap: break-word;
}

/*
 * The headline's text lives INSIDE this anchor, and css/type.css sets
 * `p, a, li { font-size: var(--t-body) !important }`. With !important on both
 * sides the bare `a` wins over the heading that wraps it, and the headline
 * silently renders at body size — the same trap the downloads page hit.
 */
.gtd-news__title .gtd-news__link {
	font: inherit !important;
	letter-spacing: inherit;
	color: inherit;
	text-decoration: none;
	background-image: linear-gradient(var(--n-red), var(--n-red));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 3px;
	transition: background-size .45s var(--n-ease);
}

.gtd-news__entry:hover .gtd-news__link,
.gtd-news__link:focus-visible { background-size: 100% 3px; }

/* The whole entry is the target. */
.gtd-news__link::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.gtd-news__entry { position: relative; }

.gtd-news__link:focus-visible::before {
	outline: 3px solid var(--n-red);
	outline-offset: 6px;
}

.gtd-news__standfirst {
	margin: 0 0 1rem;
	font-size: clamp(.95rem, .9rem + .25vw, 1.12rem) !important;
	line-height: 1.6;
	max-width: 64ch;
	color: var(--n-quiet) !important;
}

.gtd-news__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .45rem;
	margin: 0;
	font-size: .74rem !important;
	font-weight: 700;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--n-quiet) !important;
}

.gtd-news__topic { color: var(--n-red) !important; }
.gtd-news__dot   { opacity: .45; }

/* ── the lead ─────────────────────────────────────────────────
   Full bleed, photograph off the right page edge, panel in the
   container — the site's own structural device, spent on the
   newest thing published.
   ───────────────────────────────────────────────────────────── */

.gtd-news__leadWrap {
	width: 100vw;
	margin-left: 50%;
	transform: translateX(-50%);
	padding-block: clamp(3rem, 6vw, 5.5rem);
}

.gtd-news__entry--lead {
	grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
	gap: clamp(1.75rem, 4.5vw, 4.5rem);
	padding-left: var(--n-edge);
}

.gtd-news__entry--lead .gtd-news__panel { order: -1; }
.gtd-news__entry--lead .gtd-news__figure { aspect-ratio: 16 / 10; }

.gtd-news__entry--lead .gtd-news__title {
	font-size: clamp(2.1rem, 1.2rem + 2.9vw, 4.5rem) !important;
	line-height: .92;
	letter-spacing: -.04em;
}

.gtd-news__entry--lead .gtd-news__standfirst {
	font-size: clamp(1.05rem, .97rem + .4vw, 1.3rem) !important;
	max-width: 48ch;
}

/* ── the run ─────────────────────────────────────────────────── */

.gtd-news__run {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gtd-news__runItem {
	list-style: none;
	padding-block: clamp(2rem, 4vw, 3.25rem);
	border-top: 1px solid var(--n-line);
}

.gtd-news__entry--run {
	grid-template-columns: minmax(0, 34fr) minmax(0, 66fr);
}

.gtd-news__empty {
	list-style: none;
	padding-block: clamp(3rem, 7vw, 6rem);
	border-top: 1px solid var(--n-line);
	text-align: left;
}

.gtd-news__emptyText {
	margin: 0 0 1.5rem;
	font-size: clamp(1.15rem, 1rem + .6vw, 1.6rem) !important;
	font-weight: 700;
	color: var(--gtd-ink, #101d1d) !important;
}

.gtd-news__emptyText span { text-transform: lowercase; }

/* ── pagination ──────────────────────────────────────────────── */

.gtd-news__pager {
	display: flex;
	gap: .5rem;
	flex-wrap: wrap;
	padding-block: clamp(2.5rem, 5vw, 4rem);
}

.gtd-news__pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 3rem;
	padding: .75rem 1rem;
	border: 1px solid var(--n-line);
	color: var(--gtd-ink, #101d1d) !important;
	font-size: .8rem !important;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1;
	transition: background-color .25s var(--n-ease), color .25s var(--n-ease), border-color .25s var(--n-ease);
}

.gtd-news__pager .page-numbers:hover,
.gtd-news__pager .page-numbers:focus-visible {
	background: var(--gtd-ink, #101d1d);
	border-color: var(--gtd-ink, #101d1d);
	color: #fff !important;
}

.gtd-news__pager .page-numbers.current {
	background: var(--n-red);
	border-color: var(--n-red);
	color: #fff !important;
}

.gtd-news__none { padding-block: clamp(4rem, 9vw, 8rem); }

/* ═════════════════════════════════════════════════════════════
   THE ARTICLE
   ═════════════════════════════════════════════════════════════ */

.gtd-article { position: relative; }

/* How far in you are, as the site's own rule. No JavaScript, no listener. */
.gtd-article__progress {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 60;
	display: block;
	height: 4px;
	width: 100%;
	background: var(--n-red);
	transform: scaleX(0);
	transform-origin: left;
	pointer-events: none;
}

@supports (animation-timeline: scroll()) {
	@media (prefers-reduced-motion: no-preference) {
		@keyframes gtdArtProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
		.gtd-article__progress {
			animation: gtdArtProgress linear both;
			animation-timeline: scroll(root block);
		}
	}
}

.gtd-article__head {
	padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 4vw, 3rem);
	max-width: min(100%, 1520px);
}

.gtd-article__rule { margin-bottom: clamp(1.1rem, 2.2vw, 1.75rem); }

.gtd-article__title {
	margin: 0 0 clamp(1.2rem, 2.4vw, 1.9rem);
	/* !important answers css/type.css's `h1 { … !important }`. */
	font-size: clamp(2.2rem, 1.15rem + 3.4vw, 5.25rem) !important;
	font-weight: 900;
	line-height: .9;
	letter-spacing: -.04em;
	text-transform: uppercase;
	color: var(--gtd-ink, #101d1d) !important;
	max-width: 20ch;
	text-wrap: balance;
	overflow-wrap: break-word;
}

.gtd-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	margin: 0;
	font-size: .78rem !important;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--n-quiet) !important;
}

.gtd-article__topic { color: var(--n-red) !important; font-size: inherit !important; text-decoration: none; }
.gtd-article__topic:hover, .gtd-article__topic:focus-visible { text-decoration: underline; text-underline-offset: .3em; }
.gtd-article__dot { opacity: .45; }

/* ── the photograph ───────────────────────────────────────────
   Full bleed, uncropped, undimmed. It is not a background for
   the headline; the headline has already been read.
   ───────────────────────────────────────────────────────────── */

.gtd-article__hero {
	width: 100vw;
	margin: 0 0 clamp(2.5rem, 5vw, 4.5rem);
	margin-left: 50%;
	transform: translateX(-50%);
	background: #e9ebeb;
}

.gtd-article__heroImg {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	max-height: 78vh;
	object-fit: cover;
}

.gtd-article__heroCap {
	display: block;
	padding-top: .85rem;
	font-size: .82rem !important;
	line-height: 1.5;
	color: var(--n-quiet) !important;
}

/* ── the reading column ───────────────────────────────────────
   A measure, and a rail that stays with you. Left-anchored like
   everything else on this site rather than centred in the page.
   ───────────────────────────────────────────────────────────── */

.gtd-article__reading {
	display: grid;
	grid-template-columns: minmax(0, 13rem) minmax(0, 68ch) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
	/*
	 * Without this the third column is 520px of nothing above 2000px. It is
	 * there so pictures can break the measure, not so the page can be wide.
	 */
	max-width: 74rem;
	padding-bottom: clamp(3rem, 6vw, 5rem);
}

.gtd-article__rail {
	position: sticky;
	top: clamp(8rem, 14vh, 11rem);
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.gtd-article__railLabel,
.gtd-article__shareLabel {
	margin: 0 0 .85rem;
	font-size: .7rem !important;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--n-quiet) !important;
}

.gtd-article__share {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gtd-article__shareLink {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	width: 100%;
	padding: .7rem .9rem;
	background: transparent;
	border: 1px solid var(--n-line);
	color: var(--gtd-ink, #101d1d) !important;
	font-family: inherit;
	font-size: .74rem !important;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
	text-align: left;
	text-decoration: none;
	line-height: 1;
	cursor: pointer;
	transition: background-color .25s var(--n-ease), color .25s var(--n-ease), border-color .25s var(--n-ease);
}

.gtd-article__shareLink:hover,
.gtd-article__shareLink:focus-visible {
	background: var(--n-red);
	border-color: var(--n-red);
	color: #fff !important;
}

.gtd-article__copy.is-done {
	background: var(--gtd-ink, #101d1d);
	border-color: var(--gtd-ink, #101d1d);
	color: #fff !important;
}

/* ── the body ─────────────────────────────────────────────────
   The long piece on this site is 3,053 words with no subheadings
   at all — the author's only structural signal is a horizontal
   rule, so that is the thing to set properly.
   ───────────────────────────────────────────────────────────── */

.gtd-article__body { min-width: 0; }

.gtd-article__body > p,
.gtd-article__body > div > p {
	margin: 0 0 1.45em;
	font-size: clamp(1.05rem, .98rem + .34vw, 1.28rem) !important;
	line-height: 1.72;
	color: #23302f !important;
}

/* The opening paragraph carries the reader in. */
.gtd-article__body > p:first-of-type,
.gtd-article__body > div:first-child > p:first-child {
	font-size: clamp(1.2rem, 1.05rem + .6vw, 1.6rem) !important;
	line-height: 1.5;
	color: var(--gtd-ink, #101d1d) !important;
}

.gtd-article__body :is(h2, h3, h4) {
	margin: clamp(2.5rem, 5vw, 4rem) 0 clamp(.9rem, 1.8vw, 1.3rem);
	font-weight: 900;
	line-height: 1.02;
	letter-spacing: -.03em;
	text-transform: uppercase;
	color: var(--gtd-ink, #101d1d) !important;
}

.gtd-article__body h2 {
	font-size: clamp(1.4rem, 1.12rem + .9vw, 2.1rem) !important;
	/* The author's own section breaks, promoted from bold paragraphs. */
	padding-top: clamp(.9rem, 1.8vw, 1.4rem);
	border-top: 3px solid var(--n-red);
	max-width: 24ch;
}
.gtd-article__body h3 { font-size: clamp(1.2rem, 1.02rem + .6vw, 1.65rem) !important; }
.gtd-article__body h4 { font-size: clamp(1.05rem, .98rem + .3vw, 1.25rem) !important; }

.gtd-article__body strong { font-weight: 700; color: var(--gtd-ink, #101d1d); }

.gtd-article__body a:not(.gtd-article__shareLink) {
	color: var(--gtd-ink, #101d1d) !important;
	font-size: inherit !important;
	text-decoration: underline;
	text-decoration-color: var(--n-red);
	text-decoration-thickness: 2px;
	text-underline-offset: .22em;
}

.gtd-article__body a:not(.gtd-article__shareLink):hover { color: var(--n-red) !important; }

.gtd-article__body :is(ul, ol) {
	margin: 0 0 1.45em 1.25em;
	padding: 0;
}

.gtd-article__body li {
	margin-bottom: .5em;
	font-size: clamp(1.05rem, .98rem + .34vw, 1.28rem) !important;
	line-height: 1.65;
	color: #23302f !important;
}

.gtd-article__body li::marker { color: var(--n-red); }

/* The author's own section break, set as one. */
.gtd-article__body hr {
	width: clamp(2.5rem, 6vw, 4.5rem);
	height: 3px;
	margin: clamp(2.75rem, 5.5vw, 4.5rem) 0;
	border: 0;
	background: var(--n-red);
}

.gtd-article__body blockquote {
	margin: clamp(2.5rem, 5vw, 4rem) 0;
	padding: 0;
	border: 0;
}

.gtd-article__body blockquote p {
	font-size: clamp(1.35rem, 1.1rem + 1vw, 2.1rem) !important;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.02em;
	color: var(--gtd-ink, #101d1d) !important;
}

.gtd-article__body blockquote::before {
	content: "";
	display: block;
	width: clamp(2.5rem, 6vw, 4.5rem);
	height: 3px;
	margin-bottom: clamp(1rem, 2vw, 1.5rem);
	background: var(--n-red);
}

/* Pictures inside the body break the measure — they are evidence, not decoration. */
.gtd-article__body :is(img, figure) {
	display: block;
	max-width: none;
	width: min(100%, 68ch);
	height: auto;
	margin: clamp(2.25rem, 4.5vw, 3.5rem) 0;
}

@media (min-width: 1200px) {
	.gtd-article__body :is(img, figure.wp-caption, figure.wp-block-image) {
		width: calc(100% + clamp(3rem, 10vw, 14rem));
	}
}

.gtd-article__body figcaption {
	margin-top: .7rem;
	font-size: .82rem !important;
	line-height: 1.5;
	color: var(--n-quiet) !important;
}

.gtd-article__foot {
	padding-bottom: clamp(3rem, 6vw, 5rem);
}

.gtd-article__footRule {
	display: block;
	width: 100%;
	height: 1px;
	margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--n-line);
}

/* ═════════════════════════════════════════════════════════════
   KEEP READING
   ═════════════════════════════════════════════════════════════ */

.gtd-more {
	background: #f2f4f4;
	padding-block: clamp(3.5rem, 7vw, 6rem);
	width: 100vw;
	margin-left: 50%;
	transform: translateX(-50%);
}

.gtd-more__head {
	display: flex;
	align-items: baseline;
	gap: clamp(1rem, 2vw, 1.75rem);
	margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.gtd-more__rule { align-self: center; }

.gtd-more__title {
	margin: 0;
	font-size: clamp(1.35rem, 1.05rem + .95vw, 2.1rem) !important;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -.03em;
	text-transform: uppercase;
	color: var(--gtd-ink, #101d1d) !important;
}

.gtd-more__all {
	margin-left: auto;
	font-size: .76rem !important;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--n-red) !important;
	text-decoration: none;
}

.gtd-more__all:hover, .gtd-more__all:focus-visible { text-decoration: underline; text-underline-offset: .35em; }

.gtd-more__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 2.75rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.gtd-more__item { list-style: none; }

/* Stacked here, not a row: the column is too narrow for type beside a picture. */
.gtd-more__grid .gtd-news__entry--run {
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1rem, 2vw, 1.4rem);
	align-items: start;
}

.gtd-more__grid .gtd-news__title {
	font-size: clamp(1.15rem, 1rem + .55vw, 1.55rem) !important;
}

.gtd-more__grid .gtd-news__standfirst { display: none; }

/* ═════════════════════════════════════════════════════════════
   THE MOMENT
   Filtering re-deals the run: rows leave, the remainder closes
   up, and each survivor arrives from its own side. A filter is
   the page rearranging itself, not rows blinking out.
   ═════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: no-preference) {
	@keyframes gtdNewsDeal {
		from { opacity: 0; transform: translate3d(-1.5rem, 12px, 0); }
		to   { opacity: 1; transform: none; }
	}

	.gtd-news__runItem.is-dealt,
	.gtd-news__leadWrap.is-dealt {
		animation: gtdNewsDeal .55s var(--n-ease) backwards;
		animation-delay: calc(var(--n-d, 0) * 55ms);
	}
}

.gtd-news__runItem[hidden],
.gtd-news__leadWrap[hidden],
.gtd-news__empty[hidden] { display: none !important; }

/* Entrances on the run as it is scrolled to. */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		@keyframes gtdNewsRise {
			from { opacity: 0; transform: translate3d(0, 30px, 0); }
			to   { opacity: 1; transform: none; }
		}
		.gtd-news__runItem,
		.gtd-more__item {
			animation: gtdNewsRise linear both;
			animation-timeline: view();
			animation-range: entry 12% cover 10%;
		}
		.gtd-more__item:nth-child(2) { animation-range: entry 16% cover 14%; }
		.gtd-more__item:nth-child(3) { animation-range: entry 20% cover 18%; }

		/* A filtered row is placed by the script, so it must not also be
		   driven by the scroll timeline — the two would fight. */
		.gtd-news__run.is-filtered .gtd-news__runItem { animation-timeline: auto; }
	}
}

@media (prefers-reduced-motion: reduce) {
	.gtd-news__img,
	.gtd-news__link,
	.gtd-news__chip,
	.gtd-article__shareLink { transition: none !important; }
	.gtd-article__progress { animation: none !important; transform: scaleX(0); }
}

/* ═════════════════════════════════════════════════════════════
   SMALLER SCREENS
   ═════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
	.gtd-article__reading {
		grid-template-columns: minmax(0, 68ch);
	}
	/* The rail stops being a rail and becomes a row under the piece. */
	.gtd-article__rail {
		position: static;
		order: 2;
		width: 100%;
	}
	.gtd-article__share {
		flex-direction: row;
		flex-wrap: wrap;
	}
	.gtd-article__shareLink { width: auto; }
	.gtd-article__body { order: 1; }
}

@media (max-width: 1000px) {
	.gtd-news__masthead { grid-template-columns: minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
	.gtd-news__lede { padding-top: 0; }
	.gtd-more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gtd-more__grid .gtd-more__item:nth-child(3) { display: none; }
}

@media (max-width: 900px) {
	/* Stacked, the bleed has nowhere to go. */
	.gtd-news__entry--lead {
		grid-template-columns: minmax(0, 1fr);
		padding-left: var(--n-edge);
		padding-right: var(--n-edge);
	}
	.gtd-news__entry--lead .gtd-news__panel { order: 0; }
	.gtd-news__entry--lead .gtd-news__figure { order: -1; aspect-ratio: 3 / 2; }
	.gtd-news__entry--run { grid-template-columns: minmax(0, 1fr); }
	.gtd-news__entry--run .gtd-news__figure { aspect-ratio: 16 / 9; }
	.gtd-article__title { max-width: 100%; }
	.gtd-article__heroImg { max-height: 56vh; }
}

@media (max-width: 620px) {
	.gtd-news__railInner { gap: .75rem; }
	.gtd-news__railLabel { width: 100%; }
	.gtd-more__grid { grid-template-columns: minmax(0, 1fr); }
	.gtd-more__grid .gtd-more__item:nth-child(3) { display: block; }
}
