/* ART child theme: article layouts (Feature, Conversation, Report) and author pages.
 *
 * Fonts and colours follow the theme: nothing here sets a font or a fixed colour unless
 * it comes from Abir Pothi → Design (the --ap-* variables). Greys are mixed from the
 * theme's own text colour, so they work on light and dark backgrounds alike.
 * The one exception is text laid over photos, which is always white for contrast.
 *
 * Breakpoints: phones < 700px, tablets 700–1179px, desktops 1180px+.
 */

.arv {
	--arv-col: 720px;
	--arv-text-size: 19px;
	--arv-hero-h: 78vh;
	--arv-pad: clamp(18px, 4vw, 64px);
	--arv-wide: 1312px;
	--arv-break: calc(var(--arv-col) + 128px);
	--arv-side: 260px;
	--arv-gap: 56px;
	--arv-muted: color-mix(in srgb, currentColor var(--ap-muted-mix, 62%), transparent);
	--arv-faint: color-mix(in srgb, currentColor 38%, transparent);
	--arv-line: color-mix(in srgb, currentColor 14%, transparent);
	--arv-tint: color-mix(in srgb, currentColor 4%, transparent);
	--arv-accent: var(--ap-accent, currentColor);
	--arv-radius: var(--ap-radius, 999px);
	--arv-ease: cubic-bezier(.16, 1, .3, 1);

	display: block;
	width: 100%;
	color: var(--ap-text, inherit);
	background: var(--ap-bg, transparent);
	font-family: var(--ap-font-body, inherit);
	box-sizing: border-box;
	overflow-x: clip;
}
.arv *, .arv *::before, .arv *::after { box-sizing: border-box; }
.arv a { color: inherit; }
.arv a:focus-visible, .arv button:focus-visible { outline: 2px solid var(--arv-accent); outline-offset: 3px; }

/* ── Reading progress ───────────────────────────────────── */
.arv-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 9999; pointer-events: none; color: var(--ap-text, inherit); }
.arv-progress span { display: block; height: 100%; width: 100%; background: var(--ap-accent, currentColor); transform-origin: 0 50%; transform: scaleX(0); }
body.admin-bar .arv-progress { top: 32px; }

/* ── Shared pieces ──────────────────────────────────────── */
.arv .arv-kicker {
	display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
	text-decoration: none; color: inherit;
}
.arv .arv-kicker:hover { text-decoration: underline; text-underline-offset: 4px; }
.arv .arv-title { margin: 0; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; color: inherit; text-transform: none; }
.arv .arv-dek { margin: 0; line-height: 1.5; color: var(--arv-muted); text-wrap: pretty; }
.arv-dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .7; vertical-align: middle; }

.arv-byline { display: flex; align-items: center; gap: 12px; min-width: 0; }
.arv .arv-avatar { display: block; border-radius: 50%; object-fit: cover; margin: 0 !important; max-width: none !important; }
.arv .arv-byline .arv-avatar { width: 44px !important; height: 44px !important; }
.arv-byline-text { display: grid; gap: 2px; min-width: 0; }
.arv .arv-byline-name { font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; }
.arv .arv-byline-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.arv-byline-meta { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--arv-muted); }

/* Share buttons (reset the theme's link/button styles) */
.arv-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.arv .arv-sbtn {
	all: unset; box-sizing: border-box; display: inline-flex !important; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: var(--arv-radius); border: 1px solid var(--arv-line);
	color: inherit; cursor: pointer; line-height: 0; transition: background-color .2s ease, border-color .2s ease;
}
.arv .arv-sbtn:hover { background: var(--arv-tint); border-color: var(--arv-faint); }
.arv .arv-sbtn:focus-visible { outline: 2px solid var(--arv-accent); outline-offset: 2px; }
.arv .arv-sbtn .arv-ico { width: 18px; height: 18px; display: block; }
.arv .arv-sbtn.is-copied { border-color: var(--arv-accent); color: var(--arv-accent); }
.arv-share-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--arv-muted); margin-right: 6px; }
.arv-share-inline .arv-share-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Article text (all layouts) ─────────────────────────── */
.arv-body { font-size: var(--arv-text-size); line-height: 1.72; overflow-wrap: break-word; min-width: 0; }
.arv .arv-body p, .arv .arv-body li, .arv .arv-body p span { font-size: inherit !important; line-height: inherit !important; font-family: inherit; letter-spacing: normal; }
.arv-body > * { margin-top: 0; margin-bottom: 1.25em; }
.arv-body p { text-wrap: pretty; }
.arv .arv-body a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--arv-accent); }
.arv .arv-body a:hover { text-decoration-thickness: 2px; }

/* Old posts sometimes open with a heading used as an intro: show it as a standfirst */
.arv .arv-body > h1:first-child, .arv .arv-body > h2:first-child, .arv .arv-body > h3:first-child {
	font-weight: 400 !important; font-style: normal; font-size: 1.18em !important; line-height: 1.5 !important;
	letter-spacing: 0; color: var(--arv-muted); border: 0 !important; padding: 0 !important; margin-top: 0 !important;
}
.arv .arv-body h2, .arv .arv-body h3, .arv .arv-body h4 {
	font-weight: 600; font-style: normal; line-height: 1.18; letter-spacing: -0.01em; color: inherit;
	text-wrap: balance; text-transform: none; margin-top: 1.9em; margin-bottom: .55em;
}
.arv .arv-body h2 { font-size: clamp(25px, 2.2vw, 31px) !important; }
.arv .arv-body h3 { font-size: clamp(21px, 1.8vw, 25px) !important; }
.arv .arv-body h4 { font-size: 20px !important; }
.arv .arv-body h2 em, .arv .arv-body h3 em { font-style: normal; }

/* Pictures */
.arv-body img { max-width: 100%; height: auto; }
.arv .arv-body > figure:not(.wp-block-gallery):not(.wp-block-table):not(.wp-block-pullquote):not(.alignleft):not(.alignright),
.arv .arv-body > .wp-block-image:not(.alignleft):not(.alignright):not(:has(> .alignleft, > .alignright)),
.arv .arv-body > p:has(> img:only-child) {
	display: flex; flex-direction: column; align-items: center; margin-top: 2.2em; margin-bottom: 2.2em; clear: both;
}
.arv .arv-body > .wp-block-image:not(.alignleft):not(.alignright) > figure:not(.alignleft):not(.alignright) {
	display: flex; flex-direction: column; align-items: center; margin: 0; width: 100%; float: none;
}
.arv .arv-body > figure:not(.wp-block-gallery):not(.wp-block-table):not(.alignleft):not(.alignright) > img,
.arv .arv-body > figure:not(.wp-block-gallery):not(.wp-block-table):not(.alignleft):not(.alignright) > a > img,
.arv .arv-body > .wp-block-image:not(.alignleft):not(.alignright) img,
.arv .arv-body > p:has(> img:only-child) img {
	display: block; width: auto !important; max-width: 100% !important; height: auto !important; margin: 0 auto !important;
}
/* Galleries and image columns keep WordPress's side-by-side layout */
.arv .arv-body > .wp-block-gallery, .arv .arv-body > .wp-block-columns:has(img),
.arv .arv-body > .wp-block-embed, .arv .arv-body > .wp-block-video { margin-top: 2.2em; margin-bottom: 2.2em; clear: both; }
.arv .arv-body > .wp-block-gallery.has-nested-images {
	display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; align-items: normal;
	gap: var(--wp--style--unstable-gallery-gap, 12px);
}
.arv .arv-body > .wp-block-gallery:not(.has-nested-images) { display: block; }
.arv .arv-body > .wp-block-gallery .wp-block-image { margin: 0; transform: none; }
.arv .arv-body > .wp-block-gallery img { max-width: 100% !important; margin: 0 !important; }
.arv .arv-body > .wp-block-embed, .arv .arv-body > .wp-block-video { display: block; }
/* Captions */
.arv .arv-body > figure > figcaption, .arv .arv-body > .wp-block-image figcaption,
.arv .arv-body > .wp-block-gallery > figcaption, .arv .arv-body > .wp-block-gallery > .blocks-gallery-caption {
	margin-top: 10px; font-family: inherit !important; font-style: normal !important; font-weight: 400 !important;
	font-size: 13px !important; line-height: 1.45; color: var(--arv-muted); text-align: center;
	max-width: var(--arv-col); margin-left: auto; margin-right: auto; display: block; flex-basis: 100%;
}
.arv .arv-body .wp-block-gallery .wp-block-image figcaption { font-size: 12px !important; line-height: 1.35; }
.arv-body .alignleft { float: left; margin: .3em 1.6em 1em 0; max-width: 48%; }
.arv-body .alignright { float: right; margin: .3em 0 1em 1.6em; max-width: 48%; }
.arv-body .wp-block-embed__wrapper iframe, .arv-body iframe { width: 100%; max-width: 100%; }
.arv-body .wp-block-embed.is-type-video .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.arv-body .wp-block-embed.is-type-video iframe { position: absolute; inset: 0; height: 100%; }

/* Quotes */
.arv .arv-body blockquote, .arv .arv-body .wp-block-quote, .arv .arv-body .wp-block-pullquote {
	margin: 2.2em 0; padding: 1em 0; border: 0; border-top: 2px solid var(--arv-accent); border-bottom: 1px solid var(--arv-line);
	text-align: left; background: none; clear: both;
}
.arv .arv-body blockquote p, .arv .arv-body .wp-block-quote p, .arv .arv-body .wp-block-pullquote p {
	font-weight: 500; font-style: italic; font-size: 1.32em !important; line-height: 1.3 !important; margin: 0;
}
.arv .arv-body blockquote cite { display: block; margin-top: 12px; font-size: 13px; font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--arv-muted); }

.arv-body ul, .arv-body ol { padding-left: 1.3em; }
.arv-body li { margin-bottom: .45em; }
.arv-body hr { border: 0; text-align: center; margin: 2.6em auto; height: auto; background: none; }
.arv-body hr::before { content: "* * *"; letter-spacing: .6em; color: var(--arv-muted); }
.arv-body table { width: 100%; border-collapse: collapse; font-size: .9em; }
.arv-body th, .arv-body td { padding: 9px 10px; border-bottom: 1px solid var(--arv-line); text-align: left; }
.arv-body .wp-block-table { overflow-x: auto; }
.arv .arv-body > p:last-of-type::after { content: ""; display: inline-block; width: .5em; height: .5em; margin-left: .4em; background: var(--arv-accent); vertical-align: baseline; }
.arv .saboxplugin-wrap { display: none !important; }

/* ── After the article ──────────────────────────────────── */
.arv-foot { max-width: calc(var(--arv-col) + 2 * var(--arv-pad)); margin: 56px auto 0; padding: 0 var(--arv-pad); display: grid; gap: 28px; }
.arv-foot.arv-foot-col { max-width: var(--arv-col); margin-left: 0; padding: 0; }
.arv-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.arv-tags li { margin: 0; padding: 0; }
.arv-tags li::before { content: none; }
.arv .arv-tags a {
	display: inline-flex; align-items: center; min-height: 34px; padding: 4px 14px; border: 1px solid var(--arv-line);
	border-radius: var(--arv-radius); font-size: 13px; text-decoration: none;
}
.arv .arv-tags a:hover { background: var(--arv-tint); }
.arv-share-row { padding: 16px 0; border-top: 1px solid var(--arv-line); border-bottom: 1px solid var(--arv-line); }
.arv-share-row .arv-share-label { font-size: 12px; margin-right: 10px; }
.arv-author-card { display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: start; }
.arv .arv-author-card .arv-avatar { width: 88px !important; height: 88px !important; }
.arv-author-eyebrow { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--arv-muted); }
.arv .arv-author-name { display: inline-block; margin: 4px 0 6px; font-weight: 600; font-size: 24px; line-height: 1.1; text-decoration: none; }
.arv .arv-author-bio { margin: 0 0 10px; font-size: 15px; line-height: 1.6; color: var(--arv-muted); }
.arv .arv-author-more { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--arv-accent); }

/* ── Read next band ─────────────────────────────────────── */
.arv-related { margin-top: 88px; padding: 64px var(--arv-pad) 80px; background: var(--arv-tint); border-top: 1px solid var(--arv-line); }
.arv-related-inner { max-width: var(--arv-wide); margin: 0 auto; }
.arv-related-top { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 28px; }
.arv .arv-related-h { margin: 0; font-weight: 600; font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.01em; text-transform: none; }
.arv .arv-related-more { font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.arv-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 36px 28px; }
.arv-card { display: grid; gap: 8px; align-content: start; }
.arv .arv-card-img { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 8px; background: var(--arv-line); }
.arv .arv-card-img img {
	position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important;
	object-fit: cover; margin: 0 !important; transition: transform .7s var(--arv-ease);
}
.arv-card:hover .arv-card-img img { transform: scale(1.04); }
.arv-card-kicker { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--arv-muted); }
.arv .arv-card-title { margin: 0; font-weight: 600; font-size: clamp(20px, 1.6vw, 23px); line-height: 1.18; text-transform: none; }
.arv .arv-card-title a { text-decoration: none; }
.arv .arv-card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.arv-card-date { font-size: 13px; color: var(--arv-muted); }

/* ══ A · FEATURE ════════════════════════════════════════════ */
.arv-l-feature .arv-fhead { position: relative; }
.arv-l-feature .arv-fhead.has-img { height: var(--arv-hero-h); min-height: 440px; max-height: 920px; overflow: hidden; background: var(--arv-line); }
.arv-l-feature .arv-fhead-media { position: absolute; inset: 0; }
.arv .arv-fhead-img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; margin: 0 !important; }
.arv-l-feature .arv-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.34) 46%, rgba(0,0,0,0) 74%); }
.arv-l-feature .arv-fhead-text { position: relative; display: grid; gap: 16px; max-width: 1100px; padding: clamp(48px, 7vw, 96px) var(--arv-pad) 0; margin: 0 auto; text-align: center; justify-items: center; }
.arv-l-feature .has-img .arv-fhead-text { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; max-width: 1180px; padding: 0 var(--arv-pad) clamp(28px, 5vw, 56px); text-align: left; justify-items: start; color: #ffffff; }
.arv-l-feature .has-img .arv-dek { color: rgba(255,255,255,.9); }
.arv-l-feature .arv-title { font-size: clamp(36px, 5.6vw, 80px); line-height: 1.02; max-width: 20ch; }
.arv-l-feature .arv-dek { font-size: clamp(18px, 1.7vw, 22px); max-width: 46ch; }
.arv-fhead-cap { max-width: 1312px; margin: 10px auto 0; padding: 0 var(--arv-pad); font-size: 13px; color: var(--arv-muted); text-align: right; }
.arv-fbyline {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
	max-width: calc(var(--arv-col) + 2 * var(--arv-pad)); margin: 32px auto 0; padding: 0 var(--arv-pad) 20px;
	border-bottom: 1px solid var(--arv-line);
}
.arv-l-feature .arv-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--arv-col)) minmax(0, 1fr); margin-top: 40px; padding: 0 var(--arv-pad); }
.arv-l-feature .arv-rail { grid-column: 1; justify-self: end; margin-right: 96px; position: relative; z-index: 2; }
.arv-l-feature .arv-body { grid-column: 2; }
.arv-share-rail { position: sticky; top: 110px; flex-direction: column; flex-wrap: nowrap; gap: 6px; }
.arv-share-rail .arv-share-label { writing-mode: vertical-rl; transform: rotate(180deg); margin: 0 0 8px; }
/* Drop cap */
.arv-l-feature .arv-body > p:first-of-type::first-letter { float: left; font-weight: 600; font-size: 4.4em; line-height: .8; margin: .06em .1em 0 -.02em; color: var(--arv-accent); }
body.ap-no-dropcap .arv-l-feature .arv-body > p:first-of-type::first-letter { float: none; font: inherit; margin: 0; color: inherit; }
/* Pictures break out a little wider than the text, clear of the share rail */
.arv-l-feature .arv-body > figure:not(.wp-block-gallery):not(.wp-block-table):not(.wp-block-pullquote):not(.alignleft):not(.alignright),
.arv-l-feature .arv-body > .wp-block-image:not(.alignleft):not(.alignright):not(:has(> .alignleft, > .alignright)),
.arv-l-feature .arv-body > p:has(> img:only-child),
.arv-l-feature .arv-body > .wp-block-gallery, .arv-l-feature .arv-body > .wp-block-columns:has(img),
.arv-l-feature .arv-body > .wp-block-embed, .arv-l-feature .arv-body > .wp-block-video {
	width: min(var(--arv-break), 100vw - 2 * var(--arv-pad)); max-width: none; margin-left: 50%; transform: translateX(-50%);
}
/* Pull quotes set in the right margin on wide screens */
@media (min-width: 1440px) {
	body:not(.ap-no-pullquote-margin) .arv-l-feature .arv-body > blockquote,
	body:not(.ap-no-pullquote-margin) .arv-l-feature .arv-body > .wp-block-quote,
	body:not(.ap-no-pullquote-margin) .arv-l-feature .arv-body > .wp-block-pullquote {
		float: right; clear: right; width: 240px; margin: .3em -296px 1em 0; padding: 14px 0 0; border-bottom: 0;
	}
	body:not(.ap-no-pullquote-margin) .arv-l-feature .arv-body > blockquote p,
	body:not(.ap-no-pullquote-margin) .arv-l-feature .arv-body > .wp-block-quote p,
	body:not(.ap-no-pullquote-margin) .arv-l-feature .arv-body > .wp-block-pullquote p { font-size: 1.12em !important; }
}

/* ══ B · CONVERSATION ═══════════════════════════════════════ */
.arv-l-conversation .arv-chead {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center;
	max-width: 1440px; margin: 0 auto; padding: clamp(36px, 5vw, 64px) var(--arv-pad) 0;
}
.arv-l-conversation .arv-chead:not(.has-img) { grid-template-columns: minmax(0, 1fr); max-width: 1000px; }
.arv-chead-text { display: grid; gap: 16px; align-content: end; padding-bottom: 6px; }
.arv-kicker-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.arv-kicker-no { display: inline-flex; align-items: center; padding: 3px 10px; border: 1px solid var(--arv-line); border-radius: var(--arv-radius); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.arv-l-conversation .arv-title { font-size: clamp(32px, 3.8vw, 56px); line-height: 1.05; }
.arv-l-conversation .arv-dek { font-size: clamp(17px, 1.4vw, 20px); }
.arv-chead-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--arv-line); font-size: 14px; color: var(--arv-muted); }
.arv-chead-media { margin: 0; }
.arv .arv-chead-img { display: block !important; width: 100% !important; height: auto !important; aspect-ratio: 3 / 2; max-height: min(56vh, 560px); object-fit: cover; margin: 0 !important; max-width: none !important; }
.arv-chead-media figcaption { margin-top: 10px; font-size: 13px; color: var(--arv-muted); }
.arv-l-conversation .arv-layout {
	display: grid; grid-template-columns: var(--arv-side) minmax(0, var(--arv-col)) minmax(0, 1fr); column-gap: 64px;
	max-width: 1440px; margin: clamp(40px, 5vw, 64px) auto 0; padding: 0 var(--arv-pad);
}
.arv-side { grid-column: 1; }
.arv-side-inner { position: sticky; top: 110px; display: grid; gap: 22px; }
.arv-side-block { display: grid; gap: 10px; }
.arv-side-block + .arv-side-block { padding-top: 20px; border-top: 1px solid var(--arv-line); }
.arv-side-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--arv-muted); }
.arv .arv-side-person { display: flex; align-items: center; gap: 12px; font-weight: 600; text-decoration: none; }
.arv .arv-side-person .arv-avatar { width: 48px !important; height: 48px !important; }
.arv-qindex ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: q; max-height: 46vh; overflow: auto; }
.arv-qindex li { margin: 0; counter-increment: q; }
.arv .arv-qindex a { display: grid; grid-template-columns: 26px 1fr; gap: 4px; padding: 6px 0; font-size: 14px; line-height: 1.35; text-decoration: none; color: var(--arv-muted); }
.arv .arv-qindex a::before { content: counter(q, decimal-leading-zero); font-size: 12px; color: var(--arv-faint); padding-top: 1px; }
.arv .arv-qindex a:hover, .arv .arv-qindex a.is-current { color: inherit; }
.arv .arv-qindex a.is-current::before { color: var(--arv-accent); }
.arv-l-conversation .arv-body { grid-column: 2; }
/* Questions (marked by the script) */
.arv .arv-body .arv-q {
	position: relative; padding-left: 2.1em !important; margin-top: 2em; margin-bottom: .6em;
	font-weight: 600 !important; font-size: 1.14em !important; line-height: 1.35 !important; letter-spacing: -0.005em;
	border: 0 !important; scroll-margin-top: 120px;
}
.arv .arv-body .arv-q::before { content: "Q"; position: absolute; left: 0; top: 0; color: var(--arv-accent); font-weight: 600; }
/* Answer written in the same paragraph after a line break (e.g. “Nitya Patel: …”) reads as normal text */
.arv .arv-body .arv-q .arv-a { display: block; margin-top: .55em; font-weight: 400 !important; font-size: 0.877em !important; line-height: 1.72 !important; }
.arv .arv-body .arv-q strong, .arv .arv-body .arv-q b { font-weight: inherit; }
.arv-l-conversation .arv-body > p:first-of-type::first-letter { all: unset; }
/* Pictures may extend into the right-hand space on wide screens */
@media (min-width: 1440px) {
	.arv-l-conversation .arv-body > figure:not(.wp-block-gallery):not(.wp-block-table):not(.wp-block-pullquote):not(.alignleft):not(.alignright),
	.arv-l-conversation .arv-body > .wp-block-image:not(.alignleft):not(.alignright):not(:has(> .alignleft, > .alignright)),
	.arv-l-conversation .arv-body > p:has(> img:only-child),
	.arv-l-conversation .arv-body > .wp-block-gallery, .arv-l-conversation .arv-body > .wp-block-columns:has(img) {
		width: calc(100% + 160px); max-width: none;
	}
}

/* ══ C · REPORT ═════════════════════════════════════════════ */
.arv-l-report .arv-rhead { max-width: var(--arv-wide); margin: 0 auto; padding: clamp(36px, 5vw, 64px) var(--arv-pad) 0; display: grid; gap: 16px; }
.arv-l-report .arv-title { font-size: clamp(32px, 4.2vw, 58px); line-height: 1.05; max-width: 24ch; }
.arv-l-report .arv-dek { font-size: clamp(17px, 1.5vw, 21px); max-width: 60ch; }
.arv-rbyline {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
	margin-top: 8px; padding: 14px 0; border-top: 1px solid var(--arv-line); border-bottom: 1px solid var(--arv-line);
}
.arv-rgrid { max-width: var(--arv-wide); margin: 0 auto; padding: 32px var(--arv-pad) 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 64px; }
.arv-rgrid.has-rail { grid-template-columns: minmax(0, 1fr) 320px; }
.arv-rmain { min-width: 0; }
.arv-rfig { margin: 0 0 36px; }
.arv-rfig img { display: block !important; width: 100% !important; height: auto !important; max-height: 72vh; object-fit: cover; margin: 0 !important; max-width: none !important; }
.arv-rfig figcaption { margin-top: 10px; font-size: 13px; color: var(--arv-muted); }
.arv-l-report .arv-body > * { max-width: var(--arv-col); }
.arv-l-report .arv-body > figure, .arv-l-report .arv-body > .wp-block-image, .arv-l-report .arv-body > p:has(> img:only-child),
.arv-l-report .arv-body > .wp-block-gallery, .arv-l-report .arv-body > .wp-block-columns, .arv-l-report .arv-body > .wp-block-embed,
.arv-l-report .arv-body > .wp-block-video, .arv-l-report .arv-body > .wp-block-table { max-width: 100%; }
.arv-l-report .arv-body > p:first-of-type::first-letter { all: unset; }
.arv-rrail { min-width: 0; }
.arv-rrail-inner { position: sticky; top: 110px; display: grid; }
.arv .arv-rrail-h { margin: 0 0 6px; font-size: 19px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.arv .arv-rrail-item { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--arv-line); text-decoration: none; }
.arv .arv-rrail-item img { width: 88px !important; height: 66px !important; object-fit: cover; display: block; margin: 0 !important; max-width: none !important; }
.arv .arv-rrail-item:not(:has(img)) { grid-template-columns: 1fr; }
.arv-rrail-text { display: grid; gap: 4px; }
.arv-rrail-title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.arv .arv-rrail-item:hover .arv-rrail-title { text-decoration: underline; text-underline-offset: 3px; }
.arv .arv-rrail-all { padding-top: 14px; border-top: 1px solid var(--arv-line); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* ── Tablets (700–1179px) ───────────────────────────────── */
@media (max-width: 1179px) {
	.arv-l-feature .arv-layout,
	.arv-l-conversation .arv-layout { grid-template-columns: minmax(0, 1fr); max-width: calc(var(--arv-col) + 2 * var(--arv-pad)); margin-left: auto; margin-right: auto; }
	.arv-l-feature .arv-rail { display: none; }
	.arv-l-feature .arv-body, .arv-l-conversation .arv-body { grid-column: 1; }
	.arv-l-feature .arv-body > figure:not(.wp-block-gallery):not(.wp-block-table):not(.wp-block-pullquote):not(.alignleft):not(.alignright),
	.arv-l-feature .arv-body > .wp-block-image:not(.alignleft):not(.alignright):not(:has(> .alignleft, > .alignright)),
	.arv-l-feature .arv-body > p:has(> img:only-child),
	.arv-l-feature .arv-body > .wp-block-gallery, .arv-l-feature .arv-body > .wp-block-columns:has(img),
	.arv-l-feature .arv-body > .wp-block-embed, .arv-l-feature .arv-body > .wp-block-video { width: 100%; margin-left: 0; transform: none; }
	/* Conversation: the side column becomes a compact box above the text */
	.arv-side { grid-column: 1; margin-bottom: 32px; }
	.arv-side-inner { position: static; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 28px; padding: 18px 20px; border: 1px solid var(--arv-line); background: var(--arv-tint); }
	.arv-side-block + .arv-side-block { padding-top: 0; border-top: 0; }
	.arv-qindex { grid-column: 1 / -1; }
	.arv-qindex ol { max-height: none; }
	/* Report: the rail moves below the article */
	.arv-rgrid.has-rail { grid-template-columns: minmax(0, 1fr); }
	.arv-rrail { margin-top: 56px; }
	.arv-rrail-inner { position: static; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); column-gap: 28px; }
	.arv .arv-rrail-h, .arv .arv-rrail-all { grid-column: 1 / -1; }
}
@media (max-width: 1179px) and (min-width: 700px) {
	.arv-l-conversation .arv-chead { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ── Phones (< 700px) ───────────────────────────────────── */
@media (max-width: 699px) {
	.arv-l-feature .arv-fhead.has-img { height: 72vh; min-height: 380px; }
	.arv-fhead-cap { text-align: left; }
	.arv-fbyline { margin-top: 20px; }
	.arv-fbyline .arv-share { width: 100%; }
	.arv-l-conversation .arv-chead { grid-template-columns: minmax(0, 1fr); }
	.arv-l-conversation .arv-chead .arv-chead-media { order: -1; margin: 0 calc(-1 * var(--arv-pad)); }
	.arv-l-conversation .arv-chead-media figcaption { padding: 0 var(--arv-pad); }
	.arv-side-inner { grid-template-columns: minmax(0, 1fr); padding: 16px; }
	.arv-rbyline .arv-share { width: 100%; }
	.arv-rfig { margin-left: calc(-1 * var(--arv-pad)); margin-right: calc(-1 * var(--arv-pad)); }
	.arv-rfig figcaption { padding: 0 var(--arv-pad); }
	.arv-rrail-inner { grid-template-columns: minmax(0, 1fr); }
	/* Single pictures run edge to edge */
	.arv .arv-body > figure:not(.alignleft):not(.alignright):not(.wp-block-table):not(.wp-block-pullquote),
	.arv .arv-body > .wp-block-image:not(.alignleft):not(.alignright),
	.arv .arv-body > p:has(> img:only-child), .arv .arv-body > .wp-block-gallery {
		width: 100vw !important; max-width: none !important; margin-left: calc(50% - 50vw) !important; transform: none !important;
	}
	.arv .arv-body > figure > figcaption, .arv .arv-body > .wp-block-image figcaption, .arv .arv-body > .wp-block-gallery > figcaption { padding: 0 var(--arv-pad); }
	.arv .arv-body > .alignleft, .arv .arv-body > .alignright, .arv .arv-body > .wp-block-image > .alignleft, .arv .arv-body > .wp-block-image > .alignright { float: none; max-width: 100%; margin: 1.6em 0; }
	.arv-author-card { grid-template-columns: 64px 1fr; gap: 16px; }
	.arv .arv-author-card .arv-avatar { width: 64px !important; height: 64px !important; }
	.arv-related { padding-top: 48px; padding-bottom: 56px; margin-top: 64px; }
	body.admin-bar .arv-progress { top: 46px; }
}
@media (prefers-reduced-motion: reduce) {
	.arv .arv-card-img img { transition: none; }
}

/* ═══ Author pages ═══════════════════════════════════════════ */
.arv-archive { padding: clamp(40px, 6vw, 72px) 0 96px; }
.arv-ahead {
	max-width: 1100px; margin: 0 auto; padding: 0 var(--arv-pad) clamp(40px, 6vw, 72px);
	display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center;
	border-bottom: 1px solid var(--arv-line);
}
.arv .arv-ahead .arv-avatar { width: 200px !important; height: 200px !important; }
.arv .arv-kicker-left { margin-bottom: 10px; }
.arv .arv-ahead-name { margin: 0; font-weight: 600; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -0.02em; text-transform: none; }
.arv .arv-ahead-bio { margin: 16px 0 0; max-width: 58ch; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--arv-muted); }
.arv .arv-ahead-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 18px 0 0; font-size: 14px; color: var(--arv-muted); }
.arv .arv-ahead-meta a { text-decoration: underline; text-underline-offset: 3px; }
.arv-stories { max-width: var(--arv-wide); margin: clamp(40px, 6vw, 64px) auto 0; padding: 0 var(--arv-pad); }
.arv-stories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 44px 28px; }
.arv-card-lead { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); align-items: center; margin-bottom: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--arv-line); }
.arv-card-lead .arv-card-img { margin: 0; }
.arv-card-lead .arv-card-text { display: grid; gap: 10px; }
.arv .arv-card-lead .arv-card-title { font-size: clamp(28px, 3vw, 44px); line-height: 1.06; }
.arv .arv-card-excerpt { margin: 0; font-size: 17px; line-height: 1.6; color: var(--arv-muted); }
.arv-card-text { display: grid; gap: 8px; }
.arv-card-noimg .arv-card-text { padding: 22px; border: 1px solid var(--arv-line); background: var(--arv-tint); min-height: 100%; align-content: start; }
.arv-card-lead.arv-card-noimg { grid-template-columns: minmax(0, 1fr); }
.arv-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 64px; }
.arv .arv-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--arv-line); border-radius: var(--arv-radius); text-decoration: none; font-size: 15px; }
.arv .arv-pager a.page-numbers:hover { background: var(--arv-tint); }
.arv .arv-pager span.page-numbers.current { border-color: currentColor; font-weight: 700; }
.arv .arv-pager .dots { border: 0; }
.arv-empty { text-align: center; color: var(--arv-muted); }
@media (max-width: 760px) {
	.arv-ahead { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.arv .arv-ahead .arv-avatar { width: 112px !important; height: 112px !important; }
	.arv-card-lead { grid-template-columns: minmax(0, 1fr); }
}

/* Conversation: compact share buttons in the side column; end-of-article block lines up with the text */
.arv-side .arv-sbtn { width: 36px; height: 36px; }
.arv-side .arv-sbtn .arv-ico { width: 16px; height: 16px; }
@media (min-width: 1180px) {
	.arv-l-conversation .arv-foot {
		max-width: 1440px; display: grid; grid-template-columns: var(--arv-side) minmax(0, var(--arv-col)) minmax(0, 1fr);
		column-gap: 64px; row-gap: 28px;
	}
	.arv-l-conversation .arv-foot > * { grid-column: 2; }
}
@media (max-width: 699px) {
	.arv-l-conversation .arv-chead.has-img { padding-top: 0; }
	.arv .arv-body .arv-q { padding-left: 1.6em !important; }
}
.arv .arv-body .arv-q .arv-a strong, .arv .arv-body .arv-q .arv-a b { font-weight: 600 !important; }
.arv .arv-body > .arv-q:last-of-type::after { content: none; }

/* Extras after the article (videos, shop) sit in the text column */
.arv-after { max-width: calc(var(--arv-col) + 2 * var(--arv-pad)); margin: 24px auto 0; padding: 0 var(--arv-pad); }
.arv-l-report .arv-after { max-width: none; padding: 0; margin-left: 0; }
@media (min-width: 1180px) {
	.arv-l-conversation .arv-after { max-width: 1440px; display: grid; grid-template-columns: var(--arv-side) minmax(0, var(--arv-col)) minmax(0, 1fr); column-gap: 64px; }
	.arv-l-conversation .arv-after > * { grid-column: 2; }
}
