/* Stryv4/~ Related Posts 1.4.1 · the section's style sheet · (AI;Wrote), 12 November 2026.
 *
 * Built from the Related Posts lab v0.5 (Ben's three passes, 5 November 2026, all decided) and 1.3.1's finishing
 * touches, because 1.3.1's own style sheet is in none of the Exchange's folders (PRV-RLP-R01): the lab's CSS is where
 * the section's look was decided, written there against Core's places. Everything is drawn from Core's places with
 * Slate fallbacks inside the section for when Core is off (W14); no colour code of the plugin's own is written here
 * but those fallbacks, Slate's, and white for words on the accent by day (the theme's B3, as Core has no place for it
 * yet). Loaded only where a section shows (1.0.0 loaded on every page). Nothing loads from another server. */

/* ===================================================================== */
/* ===== 4.0  RELATED POSTS: THE SECTION                           ===== */
/* ===================================================================== */

/* CodeNumber 4.1 — What the plugin would carry, written against Core's places, with Slate fallbacks (Core's contract:
 * "Write your fallbacks in Slate"). Private copies (--rlp-…) are read everywhere below, so one line here decides a
 * colour for the whole section. */
.stryv-related, .stryv-related-seen {
	--rlpf-bg: #e9eff7; --rlpf-card: #eff4fa; --rlpf-well: #e1e8f2; --rlpf-sh-d: #c3cfe0; --rlpf-sh-l: #ffffff;
	--rlpf-ink: #0e1a2e; --rlpf-ink-2: #42557a; --rlpf-ink-3: #8194b3; --rlpf-line: #d6dfeb;
	--rlpf-a1: #a8b6c8; --rlpf-a2: #5a6b80; --rlpf-word: #58697e; --rlpf-towards: #0e1a2e;
	--rlp-bg: var(--bg, var(--rlpf-bg));
	--rlp-card: var(--card, var(--rlpf-card));
	--rlp-well: var(--well, var(--rlpf-well));
	--rlp-sh-d: var(--sh-d, var(--rlpf-sh-d));
	--rlp-sh-l: var(--sh-l, var(--rlpf-sh-l));
	--rlp-ink: var(--ink, var(--rlpf-ink));
	--rlp-ink-2: var(--ink-2, var(--rlpf-ink-2));
	--rlp-line: var(--line, var(--rlpf-line));
	--rlp-a1: var(--a1, var(--rlpf-a1));
	--rlp-a2: var(--a2, var(--rlpf-a2));
	--rlp-word: var(--accent-word, var(--rlpf-word));
	--rlp-word-2: var(--accent-word-2, color-mix(in oklab, var(--rlp-word) 62%, var(--rlpf-towards)));
	--rlp-focus: var(--focus, var(--rlp-a2));
	--rlp-on-accent: var(--on-accent, #0d1420);
	--rlp-on-word: #ffffff;
	--rlp-lift: 14%;
	--rlp-fill-1: color-mix(in srgb, var(--rlp-a1), #ffffff var(--rlp-lift));
	--rlp-fill-2: color-mix(in srgb, var(--rlp-a2), #ffffff var(--rlp-lift));
	--rlp-glow: var(--rlp-word-2);
	--rlp-move: translateY(-2px);
	--rlp-ez: var(--ez, cubic-bezier(.16, 1, .3, 1));
	--rlp-ui: var(--ui, 420ms);
	--rlp-raise: 9px 9px 20px var(--rlp-sh-d), -9px -9px 20px var(--rlp-sh-l);
}
.stryv-related {
	margin-block: 0;
	box-sizing: border-box;
	container: rlp / inline-size;
	display: flex;
	flex-direction: column;
	gap: 20px;
	color: var(--rlp-ink);
	font: inherit;
}
/* By night the glow takes the accent word's light stop, and words on an accent fill take the ground's colour (the
 * theme's B3: "white words by day and var(--bg) by night"). */
[data-theme="dark"] .stryv-related, [data-theme="dark"] .stryv-related-seen { --rlp-glow: var(--rlp-word); --rlp-on-word: var(--rlp-bg); }
/* Without Core there is no day or night on the page, so the device decides: in the plugin under
 * :root:not([data-s4c]), in this lab under "Preview: Core missing". */

/* Without Core the section paints its own ground under S1 too, so its words never land on a page that doesn't follow
 * the device (lab v0.2, from the plugin's proof). Here the stage does follow it, so the ground isn't seen. */
:root:not([data-s4c]) .stryv-related[data-surface="page"] { background: var(--rlp-bg); }
@media (prefers-color-scheme: dark) {
	:root:not([data-s4c]) .stryv-related, :root:not([data-s4c]) .stryv-related-seen {
		--rlpf-bg: #222730; --rlpf-card: #2a2f39; --rlpf-well: #1f232b; --rlpf-sh-d: #181b21; --rlpf-sh-l: #343b47;
		--rlpf-ink: #eff3f9; --rlpf-ink-2: #a7b3c3; --rlpf-ink-3: #74808f; --rlpf-line: #353c47;
		--rlpf-word: #a8b6c8; --rlpf-towards: #ffffff;
		--rlp-on-word: var(--rlp-bg);
	}
}

/* CodeNumber 4.1a — The glow (V3) is the homepage carousel's N3: the accent word, deepened by day and its light stop
 * by night, and black and white on Slate. Your words, 1 November 2026: "the black and white is the default stryv4
 * (it is). but if they apply an accent, then the pictures glow that colour." */
:root[data-accent="slate"] .stryv-related, :root[data-accent="slate"] .stryv-related-seen, :root:not([data-s4c]) .stryv-related, :root:not([data-s4c]) .stryv-related-seen { --rlp-glow: var(--rlp-ink); }

/* CodeNumber 4.1b — The tile behind a post without a picture (X1) is 1.1.0's: each accent lifted towards white just
 * enough for the dark letter to read on its deeper end (settled 6 September 2026, as 1.1.0's style sheet records). */
[data-accent] .stryv-related { --rlp-lift: 0%; }
[data-accent="signal"] .stryv-related { --rlp-lift: 7%; }
[data-accent="castle"] .stryv-related { --rlp-lift: 6%; }
[data-accent="violet"] .stryv-related { --rlp-lift: 23%; }
:root[data-accent="slate"] .stryv-related, :root:not([data-s4c]) .stryv-related { --rlp-lift: 14%; }
.stryv-related *, .stryv-related *::before, .stryv-related *::after { box-sizing: border-box; }

/* CodeNumber 4.2 — The three backgrounds (S). S1 sits straight on the page; S2 and S3 are a 24 px panel, raised or
 * sunk (Stryv4UI §3.1: panel 13 / 28, inset 6 / 12), with 30 px inside. */
.stryv-related[data-surface="raised"] {
	padding: 30px;
	border-radius: 24px;
	background: var(--rlp-card);
	box-shadow: 13px 13px 28px var(--rlp-sh-d), -13px -13px 28px var(--rlp-sh-l);
}
.stryv-related[data-surface="tray"] {
	padding: 30px;
	border-radius: 24px;
	background: var(--rlp-well);
	box-shadow: inset 6px 6px 12px var(--rlp-sh-d), inset -6px -6px 12px var(--rlp-sh-l);
}

/* CodeNumber 4.3 — The heading (H) and its words (R). */
.stryv-related__head { display: flex; flex-direction: column; gap: 8px; }
.stryv-related__headrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.stryv-related__heading {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--rlp-ink);
}
.stryv-related__mark { flex: none; width: 30px; height: 8px; border-radius: 999px; background: linear-gradient(135deg, var(--rlp-a1), var(--rlp-a2)); }
.stryv-related[data-heading="word"] .stryv-related__head,
.stryv-related[data-heading="line"] .stryv-related__head { align-items: center; text-align: center; }
.stryv-related[data-heading="word"] .stryv-related__heading-text {
	background: linear-gradient(90deg, var(--rlp-word), var(--rlp-word-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}
.stryv-related[data-heading="line"] .stryv-related__heading { flex-direction: column; gap: 8px; }
.stryv-related[data-heading="line"] .stryv-related__heading::after {
	content: "";
	width: 44px;
	height: 3px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--rlp-a1), var(--rlp-a2));
}
.stryv-related[data-heading="caps"] .stryv-related__heading { font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; }
.stryv-related__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* CodeNumber 4.4 — The linked-by line (G): this article's tags that found these posts. */
.stryv-related__linked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; color: var(--rlp-ink-2); }
.stryv-related[data-heading="word"] .stryv-related__linked,
.stryv-related[data-heading="line"] .stryv-related__linked { justify-content: center; }


















































/* ===================================================================== */
/* ===== 5.0  RELATED POSTS: THE CARDS                             ===== */
/* ===================================================================== */

/* CodeNumber 5.1 — The grid (L1). One column by default; the counts for a medium and a wide section come in as
 * --rlp-m and --rlp-l, chosen so the usual counts fill whole rows (as 1.1.0). */
.stryv-related__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.stryv-related__item { display: flex; min-width: 0; margin: 0; padding: 0; }
@container rlp (min-width: 440px) {
	.stryv-related[data-layout="cards"] .stryv-related__grid { grid-template-columns: repeat(var(--rlp-m, 2), minmax(0, 1fr)); }
}
@container rlp (min-width: 760px) {
	.stryv-related[data-layout="cards"] .stryv-related__grid { grid-template-columns: repeat(var(--rlp-l, 4), minmax(0, 1fr)); }
	.stryv-related[data-layout="list"] .stryv-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* CodeNumber 5.2 — A card: raised on the ground (Stryv4UI §3.1, a card is 18 px with a 9 / 20 pair). The picture sits
 * 8 px inside it, at 12 px. The title is the one link; its ::after covers the card, so the whole card opens the
 * article while a screen reader hears only the title. */
.stryv-related__card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 8px;
	border-radius: 18px;
	background: var(--rlp-card);
	box-shadow: var(--rlp-raise);
	transition: transform var(--rlp-ui) var(--rlp-ez), box-shadow var(--rlp-ui) var(--rlp-ez);
}
.stryv-related__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: var(--rlp-ratio, 16 / 10);
	border-radius: 12px;
	background: var(--rlp-well);
}
.stryv-related__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--rlp-ui) var(--rlp-ez); }

/* CodeNumber 5.2a — How a picture fills its window (Y; your note of 5 November 2026: "some pictures may be portrait and
 * some may be landscape so will vary. Maybe I can choose how it's displayed ... through keeping the ratio or maybe add
 * scaling options"). Cropped from the middle (Y1) or the top (Y2); whole, on the well (Y3) or on a soft blur of itself
 * (Y4); Y5 picks for each picture by its shape. The blur is the same picture, so it is loaded once. */
.stryv-related__media { isolation: isolate; }
.stryv-related__media[data-fit="top"] .stryv-related__img { object-position: 50% 0; }
.stryv-related__media[data-fit="whole"] .stryv-related__img { object-fit: contain; }
.stryv-related__media[data-fit="blur"]::before {
	content: "";
	position: absolute;
	inset: -16px;
	background: var(--rlp-pic) center / cover no-repeat;
	filter: blur(14px) saturate(1.1);
	transform: scale(1.05);
}
.stryv-related__media[data-fit="blur"] .stryv-related__img { position: relative; object-fit: contain; }
.stryv-related__blank { display: grid; place-items: center; width: 100%; height: 100%; }
.stryv-related__initial { font-size: clamp(28px, 12cqi, 52px); font-weight: 800; line-height: 1; }
.stryv-related[data-noimg="tile"] .stryv-related__blank { background: linear-gradient(135deg, var(--rlp-fill-1), var(--rlp-fill-2)); }
.stryv-related[data-noimg="tile"] .stryv-related__initial { color: var(--rlp-on-accent); }
.stryv-related[data-noimg="well"] .stryv-related__blank { background: var(--rlp-well); box-shadow: inset 6px 6px 12px var(--rlp-sh-d), inset -6px -6px 12px var(--rlp-sh-l); }
.stryv-related[data-noimg="well"] .stryv-related__initial { color: var(--rlp-word); }
.stryv-related__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 14px; min-width: 0; }
.stryv-related__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rlp-ink-2); }
.stryv-related__title { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; color: var(--rlp-ink); }
.stryv-related__link, .stryv-related__link:visited { color: inherit; text-decoration: none; }
.stryv-related__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 18px; }
.stryv-related__date { font-size: 13px; color: var(--rlp-ink-2); }
.stryv-related__excerpt { margin: 0; font-size: 14px; line-height: 1.5; color: var(--rlp-ink-2); }

/* CodeNumber 5.3 — Tags on a card (T), and how they look (K). Your site review (E13): tags "more vibrant, tied to the
 * colour chart; centre-aligned house style". Pills are small raised pills (Stryv4UI §3.4: 4 / 9), so they keep 14 px
 * apart: the overlap rule (§3.3) needs 9 for that shadow, rounded up to the scale. Bare words keep §3.3's 8 px for
 * "tag chips inside one group". Words in the accent take the accent word (§2.5); a filled pill takes the theme's
 * Deep button (B3), the accent word deepening with white words by day and the ground's colour by night. */
.stryv-related__tags { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; list-style: none; }
.stryv-related[data-taglook="word"] .stryv-related__tags { gap: 8px; }
.stryv-related__tag { max-width: 100%; margin: 0; padding: 0; font-size: 12px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; color: var(--rlp-ink-2); }
.stryv-related[data-taglook="pill"] .stryv-related__tag,
.stryv-related[data-taglook="pillword"] .stryv-related__tag,
.stryv-related[data-taglook="filled"] .stryv-related__tag {
	padding: 4px 14px;
	border-radius: 999px;
	background: var(--rlp-card);
	box-shadow: 4px 4px 9px var(--rlp-sh-d), -4px -4px 9px var(--rlp-sh-l);
}
.stryv-related[data-taglook="pillword"] .stryv-related__tag { font-weight: 700; color: var(--rlp-word); }
.stryv-related[data-taglook="filled"] .stryv-related__tag { font-weight: 700; color: var(--rlp-on-word); background: linear-gradient(90deg, var(--rlp-word), var(--rlp-word-2)); }
.stryv-related[data-taglook="word"] .stryv-related__tag { font-size: 13px; font-weight: 650; color: var(--rlp-word); }
.stryv-related[data-taglook="word"] .stryv-related__tag::before { content: "#"; }
.stryv-related .stryv-related__card .stryv-related__tags { margin-top: auto; }
.stryv-related:not([data-taglook="word"]) .stryv-related__card .stryv-related__tags { padding: 4px 0 8px; }

/* CodeNumber 5.4 — Centred card text (A2). */
.stryv-related[data-align="centre"] .stryv-related__card .stryv-related__body { align-items: center; text-align: center; }
.stryv-related[data-align="centre"] .stryv-related__card .stryv-related__tags { justify-content: center; }

/* CodeNumber 5.4a — Titles in the accent word deepening (U2), as the homepage carousel's titles (your U3 there). The
 * title's box is only as wide as its longest line, so the gradient runs across the words, not the card. */
.stryv-related[data-title="accent"] .stryv-related__title {
	width: fit-content;
	max-width: 100%;
	background: linear-gradient(90deg, var(--rlp-word), var(--rlp-word-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}
/* U3: the accent word all the way, no deepening; U4: ink, with a short bar in the accent itself under it */
.stryv-related[data-title="word"] .stryv-related__title { color: var(--rlp-word); }
.stryv-related[data-title="bar"] .stryv-related__title::after {
	content: "";
	display: block;
	width: 30px;
	height: 3px;
	margin-top: 8px;
	margin-inline: var(--rlp-bar-m, 0);
	border-radius: 999px;
	background: linear-gradient(90deg, var(--rlp-a1), var(--rlp-a2));
}
.stryv-related[data-align="centre"] .stryv-related__card .stryv-related__body { --rlp-bar-m: auto; }

/* CodeNumber 5.4b — Accent on each card (W, any of; your note of 5 November 2026: "lets see more accents in the posts
 * ... Let's get more influence from the accents"). Words take the accent word, measured in all 18 colour pairs; the
 * bar, the frame, the wash and the glow take the accent itself, and are decoration. W5's tint is 8%: at 10% the accent
 * word on Slate's card falls to 4.45:1, under W11's 4.5. */
.stryv-related__edge {
	position: absolute;
	top: 0;
	right: 22px;
	left: 22px;
	z-index: 2;
	height: 4px;
	border-radius: 0 0 999px 999px;
	background: linear-gradient(90deg, var(--rlp-a1), var(--rlp-a2));
	pointer-events: none;
}
.stryv-related__rim {
	position: absolute;
	inset: 0;
	z-index: 1;
	padding: 3px;
	border-radius: inherit;
	background: linear-gradient(135deg, var(--rlp-a1), var(--rlp-a2));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}
.stryv-related[data-accents~="w3"] .stryv-related__eyebrow { color: var(--rlp-word); }
.stryv-related[data-accents~="w4"] .stryv-related__date { color: var(--rlp-word); }
.stryv-related[data-accents~="w5"] .stryv-related__card { background: color-mix(in oklab, var(--rlp-card) 92%, var(--rlp-a2)); }
.stryv-related[data-accents~="w6"] .stryv-related__card { box-shadow: var(--rlp-raise), 0 0 18px color-mix(in srgb, var(--rlp-glow) 30%, transparent); }
.stryv-related[data-accents~="w7"] .stryv-related__heading { color: var(--rlp-word); }
.stryv-related[data-accents~="w8"] .stryv-related__media[data-fit]::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(135deg, var(--rlp-a1), var(--rlp-a2));
	mix-blend-mode: color;
	opacity: .6;
	transition: opacity var(--rlp-ui) var(--rlp-ez);
	pointer-events: none;
}
.stryv-related[data-accents~="w8"] .stryv-related__card:hover .stryv-related__media::after,
.stryv-related[data-accents~="w8"] .stryv-related__card:focus-within .stryv-related__media::after { opacity: 0; }

/* CodeNumber 5.4c — [Visited] (I): a pill on the card of an article the reader has already opened (your words, 5
 * November 2026: "What about mark instead of repeats. make it [Visited]", for "Articles already read", and "Have the
 * visited part in a similar pill and show options for what it would look like"). I1, I2, I3 and I5 sit on the
 * picture's top left: the plugin's small script marks the card from a short list of the articles this reader has
 * opened, kept in the reader's own browser and never sent to the site. I4 keeps nothing: it lives inside the title's
 * link, where the browser's own history can show it (a link's :visited), and that only lets it change colours, so it
 * is a flat pill on the card's plain part, there all along in the card's own colour. Words on every pill are
 * measured in all 18 pairs; the pills' own edges and shadows are decoration. */
.stryv-related__seen {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	display: none;
	align-items: center;
	gap: 4px;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: .02em;
	white-space: nowrap;
	-webkit-text-fill-color: currentColor;
	pointer-events: none;
}
.stryv-related__card.is-read .stryv-related__seen { display: inline-flex; }
/* with no pictures (P0), a pill meant for the picture sits at the head of the card's words instead */
.stryv-related__seen--flow { position: static; align-self: center; }
.stryv-related[data-seen="quiet"] .stryv-related__seen { background: var(--rlp-card); color: var(--rlp-ink-2); box-shadow: 0 4px 12px var(--rlp-sh-d); }
.stryv-related[data-seen="filled"] .stryv-related__seen,
.stryv-related[data-seen="dim"] .stryv-related__seen {
	background: linear-gradient(var(--rlp-turn), var(--rlp-word), var(--rlp-meet), var(--rlp-word-2));
	color: var(--rlp-on-word);
	/* 1.3.1, his words of 5 November 2026: "add a slight animation to it, so it kind of looks a tiny bit revolving and
	 * fluctuating, just a touch", then "I think x4 should be the norm for that visited pill." (so 3 s and 1.25 s) and
	 * "make it a small glow and make it all around evenly" (7 px, no offset, in the accent's glow colour at 60%) */
	box-shadow: 0 0 7px color-mix(in srgb, var(--rlp-glow) 60%, transparent);
	animation: rlp-turn 3s linear infinite, rlp-meet 1.25s ease-in-out infinite alternate;
}
.stryv-related[data-seen="ink"] .stryv-related__seen { background: var(--rlp-ink); color: var(--rlp-card); box-shadow: 0 4px 12px var(--rlp-sh-d); }
/* I5: a read card's title steps back to ink 2, so the unread ones stand out in the accent */
.stryv-related[data-seen="dim"] .stryv-related__card.is-read .stryv-related__title { background: none; color: var(--rlp-ink-2); -webkit-text-fill-color: currentColor; }
/* I4: in the card's own colour until read (in the lab, is-read stands in for the browser's :visited), so nothing
 * moves; read, it fills in the accent word. The card keeps a little room under its words for it. */
.stryv-related[data-seen="corner"] .stryv-related__seen { top: auto; right: 14px; bottom: 7px; left: auto; display: inline-flex; padding: 1px 9px; font-size: 11px; background: var(--rlp-card); color: var(--rlp-card); }
.stryv-related[data-seen="corner"] .stryv-related__card .stryv-related__body { padding-bottom: 24px; }
.stryv-related[data-seen="corner"] .stryv-related__card.is-read .stryv-related__seen { background: var(--rlp-word); color: var(--rlp-on-word); }
.stryv-related[data-seen="corner"][data-accents~="w5"] .stryv-related__seen { background: color-mix(in oklab, var(--rlp-card) 92%, var(--rlp-a2)); color: color-mix(in oklab, var(--rlp-card) 92%, var(--rlp-a2)); }

/* CodeNumber 5.5 — Compact rows: the list (L2), the list beside a lead card (L4), and any card in a section between
 * 240 and 440 px wide (a phone). The picture is 112 px wide, 14 px from its words, and 88 px under 300 px. Under
 * 240 px (a small phone, with the section on a panel) a picture and its words don't both fit side by side, so every
 * card stands with its picture on top: found by the lab's own 320 px check, where the words had 58 px. */
.stryv-related { --rlp-thumb: 112px; }
@container rlp (max-width: 299.98px) {
	.stryv-related__card { --rlp-thumb: 88px; }
}
@container rlp (min-width: 240px) {
	.stryv-related[data-layout="list"] .stryv-related__card,
	.stryv-related .stryv-related__rows .stryv-related__card { flex-direction: row; align-items: center; gap: 14px; }
	.stryv-related[data-layout="list"] .stryv-related__media,
	.stryv-related .stryv-related__rows .stryv-related__media { flex: 0 0 var(--rlp-thumb); aspect-ratio: 4 / 3; }
	.stryv-related[data-layout="list"] .stryv-related__card .stryv-related__body,
	.stryv-related .stryv-related__rows .stryv-related__card .stryv-related__body { padding: 8px 14px 8px 0; align-items: flex-start; text-align: left; --rlp-bar-m: 0; }
	.stryv-related[data-layout="list"] .stryv-related__initial,
	.stryv-related .stryv-related__rows .stryv-related__initial { font-size: 28px; }
	.stryv-related[data-layout="list"] .stryv-related__card .stryv-related__tags,
	.stryv-related .stryv-related__rows .stryv-related__card .stryv-related__tags { justify-content: flex-start; }
}
@container rlp (min-width: 240px) and (max-width: 439.98px) {
	.stryv-related[data-layout="cards"] .stryv-related__card { flex-direction: row; align-items: center; gap: 14px; }
	.stryv-related[data-layout="cards"] .stryv-related__media { flex: 0 0 var(--rlp-thumb); aspect-ratio: 4 / 3; }
	.stryv-related[data-layout="cards"] .stryv-related__card .stryv-related__body { padding: 8px 14px 8px 0; align-items: flex-start; text-align: left; --rlp-bar-m: 0; }
	.stryv-related[data-layout="cards"] .stryv-related__initial { font-size: 28px; }
	.stryv-related[data-layout="cards"] .stryv-related__excerpt { display: none; }
	.stryv-related[data-layout="cards"] .stryv-related__card .stryv-related__tags { justify-content: flex-start; }
}
/* CodeNumber 5.5a — [Visited] in a row (v0.4): a smaller pill on the small picture, and I4's room under the words kept
 * in rows too. */
@container rlp (min-width: 240px) {
	.stryv-related[data-layout="list"] .stryv-related__media .stryv-related__seen,
	.stryv-related .stryv-related__rows .stryv-related__media .stryv-related__seen { top: 5px; left: 5px; padding: 0 7px; font-size: 10.5px; }
	.stryv-related[data-seen="corner"][data-layout="list"] .stryv-related__card .stryv-related__body,
	.stryv-related[data-seen="corner"] .stryv-related__rows .stryv-related__card .stryv-related__body { padding-bottom: 26px; }
}
@container rlp (min-width: 240px) and (max-width: 439.98px) {
	.stryv-related[data-layout="cards"] .stryv-related__media .stryv-related__seen { top: 5px; left: 5px; padding: 0 7px; font-size: 10.5px; }
	.stryv-related[data-seen="corner"][data-layout="cards"] .stryv-related__card .stryv-related__body { padding-bottom: 26px; }
}

/* CodeNumber 5.6 — Lead and list (L4): the closest match large, the rest as rows beside it, or under it in a narrow
 * section. Beside the list, the lead card is as tall as the list, its picture taking the extra height (never less
 * than its own shape), so the two columns end together. */
.stryv-related__leadwrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@container rlp (min-width: 760px) {
	.stryv-related__leadwrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: stretch; }
	.stryv-related__lead { display: flex; }
	.stryv-related__lead .stryv-related__media { flex: 1 0 auto; }
	.stryv-related__lead .stryv-related__body { flex: 0 0 auto; }
	/* with no pictures (P0) nothing takes that extra height, so the lead's words sit in the middle of its card, not at
	 * the top of an empty one (lab v0.2: found by the plugin's proof, 5 November 2026) */
	.stryv-related--no-image .stryv-related__lead .stryv-related__body { flex: 1 1 auto; justify-content: center; }
	.stryv-related--no-image .stryv-related__lead .stryv-related__tags { margin-top: 0; }
}
.stryv-related__lead .stryv-related__title { font-size: 22px; line-height: 1.3; }
.stryv-related__rows { align-content: start; }

/* CodeNumber 5.7 — Hover (V). The plain lift is Stryv4UI's rule for a card that isn't a coloured control (§2.3: a
 * hover lift on a neutral control changes no colour). Rows (L2, and the list beside L4's lead) slide 6 px to the
 * right instead, Stryv4UI §6's row recipe. V3 lends the homepage carousel's glow; V4 is 1.1.0's, kept to compare.
 * A hover changes transform or shadow only, never size, so nothing re-wraps or moves a neighbour (W08). */
.stryv-related__card:hover,
.stryv-related__card:focus-within { transform: var(--rlp-move); }
.stryv-related[data-layout="list"], .stryv-related .stryv-related__rows { --rlp-move: translateX(6px); }
.stryv-related[data-hover="zoom"] .stryv-related__card:hover .stryv-related__img,
.stryv-related[data-hover="zoom"] .stryv-related__card:focus-within .stryv-related__img,
.stryv-related[data-hover="old"] .stryv-related__card:hover .stryv-related__img{ transform: scale(1.04); }
.stryv-related[data-hover="glow"] .stryv-related__card:hover,
.stryv-related[data-hover="glow"] .stryv-related__card:focus-within {
	box-shadow: var(--rlp-raise), 0 0 20px color-mix(in srgb, var(--rlp-glow) 45%, transparent), 0 0 44px color-mix(in srgb, var(--rlp-glow) 25%, transparent);
}
.stryv-related[data-hover="old"] .stryv-related__card:hover{ box-shadow: 10px 10px 24px var(--rlp-sh-d), -10px -10px 24px var(--rlp-sh-l); }
.stryv-related[data-hover="old"] .stryv-related__card::before {
	content: "";
	position: absolute;
	right: 22px;
	bottom: 0;
	left: 22px;
	height: 3px;
	border-radius: 999px 999px 0 0;
	background: linear-gradient(90deg, var(--rlp-a1), var(--rlp-a2));
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform var(--rlp-ui) var(--rlp-ez);
}
.stryv-related[data-hover="old"] .stryv-related__card:hover::before{ transform: scaleX(1); }

/* CodeNumber 5.8 — The keyboard outline, round the whole card, in Core's focus place (Core's contract: "Use --focus
 * for rings, not --a2"). */
.stryv-related__link:focus-visible { outline: none; }
.stryv-related__card:has(.stryv-related__link:focus-visible){ outline: 2px solid var(--rlp-focus); outline-offset: 2px; }

/* CodeNumber 5.9 — Slow motion for the finishing touches (v0.5): a gradient's angle and the point where its two
 * colours meet, typed with @property so they can turn and drift. Only those two move: the colours are the two already
 * measured, so every word on them still passes. Less motion (the device's setting) stills them. */
@property --rlp-turn { syntax: "<angle>"; inherits: false; initial-value: 90deg; }
@property --rlp-meet { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@keyframes rlp-turn { from { --rlp-turn: 90deg; } to { --rlp-turn: 450deg; } }
@keyframes rlp-turn-arrow { from { --rlp-turn: 145deg; } to { --rlp-turn: 505deg; } }
@keyframes rlp-meet { from { --rlp-meet: 35%; } to { --rlp-meet: 65%; } }
@media (prefers-reduced-motion: reduce) {
	.stryv-related .stryv-related__seen, .stryv-related .stryv-related__arrow::before { animation: none; }
}


















































/* ===================================================================== */
/* ===== 6.0  RELATED POSTS: THE MINI CAROUSEL                     ===== */
/* ===================================================================== */

/* CodeNumber 6.1 — L3: one row that slides sideways. How many whole cards show comes from the section's own width;
 * E2 lets the next card peek in by 30% of a card. The row keeps room above and below for the cards' shadows, since
 * a row that scrolls clips whatever spills out of it: 44 px, the reach of V3's glow, which 30 px cut into a band
 * when every card was pointed at once (v0.3). Its 20 px at either side fade out, so a shadow or glow reaching the
 * row's end, or a card slid half out, softens away instead of stopping at a straight edge (v0.3). It never moves by
 * itself. */
.stryv-related__carousel { position: relative; --rlp-vis: 1; --rlp-peek: 0; --rlp-peek-gap: 0; }
@container rlp (min-width: 520px) { .stryv-related__carousel { --rlp-vis: 2; } }
@container rlp (min-width: 760px) { .stryv-related__carousel { --rlp-vis: 3; } }
@container rlp (min-width: 1000px) { .stryv-related__carousel { --rlp-vis: 4; } }
.stryv-related[data-edge="peek"] .stryv-related__carousel { --rlp-peek: .3; --rlp-peek-gap: 1; }
.stryv-related__track {
	display: flex;
	gap: 20px;
	margin: -44px -20px;
	padding: 44px 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 20px;
	scrollbar-width: none;
	list-style: none;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 20px, #000 calc(100% - 20px), transparent);
	mask-image: linear-gradient(to right, transparent, #000 20px, #000 calc(100% - 20px), transparent);
}
.stryv-related__track::-webkit-scrollbar { display: none; }
.stryv-related__track > .stryv-related__item {
	/* the row's own width is the section's (its 20 px sides are padding), so whole cards end exactly at the section's
	 * edge; with E2, one more gap and 30% of a card fit in the same width */
	flex: 0 0 calc((100% - (var(--rlp-vis) - 1 + var(--rlp-peek-gap)) * 20px) / (var(--rlp-vis) + var(--rlp-peek)));
	scroll-snap-align: start;
}
/* Fewer cards than fill the row sit in its middle (your words, 5 November 2026: "If there is no other related posts,
 * then we can just have the cards centred in the carousel."). Auto margins centre them only while they fit, so a
 * full row still starts at its first card and scrolls as before. */
.stryv-related__track > .stryv-related__item:first-child { margin-inline-start: auto; }
.stryv-related__track > .stryv-related__item:last-child { margin-inline-end: auto; }

/* CodeNumber 6.2 — The arrows (M): 40 px round buttons on the card's colour, raised (Stryv4UI §3.4: a button's
 * 6 / 14), lifting 2 px on hover. At either end the arrow takes Stryv4UI's single off-state (§6.1). */
.stryv-related__arrow {
	position: relative;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--rlp-card);
	color: var(--rlp-ink-2);
	box-shadow: 6px 6px 14px var(--rlp-sh-d), -6px -6px 14px var(--rlp-sh-l);
	cursor: pointer;
	transition: transform var(--rlp-ui) var(--rlp-ez), box-shadow var(--rlp-ui) var(--rlp-ez), color var(--rlp-ui) var(--rlp-ez), filter var(--rlp-ui) var(--rlp-ez);
}
.stryv-related__arrow svg { width: 18px; height: 18px; }
.stryv-related__arrow:not([aria-disabled="true"]):hover { transform: translateY(-2px); color: var(--rlp-ink); }
.stryv-related__arrow:focus-visible { outline: 2px solid var(--rlp-focus); outline-offset: 2px; }
.stryv-related__arrow[aria-disabled="true"] { filter: grayscale(.82) opacity(.46); cursor: default; }

/* CodeNumber 6.2a — J2, the homepage carousel's arrows (your L2, and their hover, there): the accent gradient with a
 * dark arrow, in "on accent", which Core doesn't have yet, so its fallback. Pointed at, they turn inside out, grow
 * 15% and glow in the accent, never lifting; pressed, they squash to 1.1 (Stryv4UI v1.15's proposal 2).
 * v0.5, your words of 5 November 2026: "They instantly change colour. Are we able to make that hover over, transition
 * smooth in some way, and have them also slightly revolving and resolving in their gradient. Just a subtle touch."
 * The gradient sits on a layer of its own, turning once every 16 seconds; pointed at, it fades away over the house's
 * 420 ms while the arrow's colour follows, so the inside-out comes on smoothly. The arrow's centre always sits on the
 * gradient's middle, so what lies under it is what was measured. */
.stryv-related[data-arrowlook="filled"] .stryv-related__arrow {
	background: var(--rlp-on-accent);
	color: var(--rlp-on-accent);
}
.stryv-related[data-arrowlook="filled"] .stryv-related__arrow::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: linear-gradient(var(--rlp-turn), var(--rlp-a1), var(--rlp-a2));
	animation: rlp-turn-arrow 16s linear infinite;
	transition: opacity var(--rlp-ui) var(--rlp-ez);
}
.stryv-related[data-arrowlook="filled"] .stryv-related__arrow:not([aria-disabled="true"]):hover {
	transform: scale(1.15);
	color: var(--rlp-a1);
	box-shadow: 0 0 14px color-mix(in srgb, var(--rlp-a1) 70%, transparent), 0 0 30px color-mix(in srgb, var(--rlp-a2) 50%, transparent);
}
.stryv-related[data-arrowlook="filled"] .stryv-related__arrow:not([aria-disabled="true"]):hover::before { opacity: 0; }
.stryv-related[data-arrowlook="filled"] .stryv-related__arrow:not([aria-disabled="true"]):active { transform: scale(1.1); }
.stryv-related__nav { display: flex; gap: 14px; }
.stryv-related[data-arrows="sides"] .stryv-related__nav { position: absolute; inset: 0 -20px; pointer-events: none; justify-content: space-between; align-items: center; }
.stryv-related[data-arrows="sides"] .stryv-related__nav .stryv-related__arrow { pointer-events: auto; top: var(--rlp-arrow-y, 0px); }
.stryv-related[data-arrows="below"] .stryv-related__nav { justify-content: center; margin-top: 20px; }
/* M3 keeps its arrows on the right of the heading row, even with no heading on screen (H0) (lab v0.2). */
.stryv-related[data-arrows="head"] .stryv-related__nav { margin-inline-start: auto; }
/* With every card in view there is nothing to move, so the arrows and rings step aside, keeping their room (v0.3). */
.stryv-related[data-fits] .stryv-related__nav, .stryv-related[data-fits] .stryv-related__dots { visibility: hidden; }

/* CodeNumber 6.3 — The marker (D1): one ring per card, the one at the left edge filled in the accent word. Rings,
 * because the filled dots Core's contract first suggested measured under 3:1 in the carousel's lab.
 * v0.5, your words of 5 November 2026: "the user can click on the dots under and go to that card." Each ring is a
 * 24 px button (WCAG 2.5.8's least target), its 12 px ring drawn in the middle, so a finger finds it; pressed, the row
 * goes to that card and that ring fills, even where the card can't reach the left edge (the last three of eight).
 * Pointed at, a ring takes the accent word; the keyboard's outline is Core's. */
.stryv-related__dots { display: flex; justify-content: center; gap: 0; margin: 14px 0 0; padding: 0; list-style: none; }
.stryv-related__dot { position: relative; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 999px; background: transparent; cursor: pointer; }
.stryv-related__dot::before {
	content: "";
	position: absolute;
	inset: 6px;
	border-radius: 999px;
	box-shadow: inset 0 0 0 2px var(--rlp-ink-2);
	transition: background-color var(--rlp-ui) var(--rlp-ez), box-shadow var(--rlp-ui) var(--rlp-ez);
}
.stryv-related__dot:hover::before { box-shadow: inset 0 0 0 2px var(--rlp-word); }
.stryv-related__dot[aria-current="true"]::before { background-color: var(--rlp-word); box-shadow: inset 0 0 0 2px var(--rlp-word); }
.stryv-related__dot:focus-visible { outline: 2px solid var(--rlp-focus); outline-offset: 0; }


















































/* ===================================================================== */
/* ===== 7.0  THE SIDE COLUMN (W35)                                ===== */
/* ===================================================================== */


















































/* ===================================================================== */
/* ===== 7.0  WHERE THE PLUGIN DIFFERS FROM THE LAB                ===== */
/* ===================================================================== */

/* CodeNumber 7.1 — In a theme's place the section has no outer margins: it fills its place, and the theme's foot spaces
 * its parts (contract_S4T.md 2.3). Added automatically after an article's text, it keeps the foot's 44 px above. */
.stryv-related--auto { margin-block-start: 44px; }

/* CodeNumber 7.2 — With no pictures (P0), a card's pill sits at the head of its words, and keeps its room from the
 * start, hidden until the card is marked read, so marking moves nothing (W07; found by 1.3.0's proof). */
.stryv-related__seen--flow { display: inline-flex; visibility: hidden; }
.stryv-related__card.is-read .stryv-related__seen--flow { visibility: visible; }

/* CodeNumber 7.3 — I4 reads the browser's own history, not a list: the pill is in the card's own colour until the
 * link has been opened, then fills in the accent word. A visited link may only change its colours, so this is all it
 * does. */
.stryv-related[data-seen="corner"] .stryv-related__link:visited .stryv-related__seen { background-color: var(--rlp-word); color: var(--rlp-on-word); }
.stryv-related[data-seen="corner"][data-accents~="w5"] .stryv-related__link:visited .stryv-related__seen { background-color: var(--rlp-word); color: var(--rlp-on-word); }

/* CodeNumber 7.4 — [Visited] on the theme's More posts rows (contract 2, request RLP-R01): the page script adds the pill
 * to a read row, and these rows are the theme's, so the pill carries the places itself (the rule that gives the section
 * its places names it too). Same colours, same turn (3 s, the colours meeting over 1.25 s), same 7 px glow. */
.stryv-related-seen {
	display: inline-flex;
	margin-inline-start: 10px;
	padding: 1px 9px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.5;
	vertical-align: 3px;
	white-space: nowrap;
	-webkit-text-fill-color: currentColor;
}
.stryv-related-seen[data-seen="quiet"] { background: var(--rlp-card); color: var(--rlp-ink-2); box-shadow: 3px 3px 7px var(--rlp-sh-d), -3px -3px 7px var(--rlp-sh-l); }
.stryv-related-seen[data-seen="filled"], .stryv-related-seen[data-seen="dim"] {
	background: linear-gradient(var(--rlp-turn), var(--rlp-word), var(--rlp-meet), var(--rlp-word-2));
	color: var(--rlp-on-word);
	box-shadow: 0 0 7px color-mix(in srgb, var(--rlp-glow) 60%, transparent);
	animation: rlp-turn 3s linear infinite, rlp-meet 1.25s ease-in-out infinite alternate;
}
.stryv-related-seen[data-seen="ink"] { background: var(--rlp-ink); color: var(--rlp-card); }
.stryv-related-seen[data-seen="corner"] { background-color: var(--rlp-card); color: var(--rlp-card); }
a:visited .stryv-related-seen[data-seen="corner"] { background-color: var(--rlp-word); color: var(--rlp-on-word); }
/* I5: a read row's title steps back to ink 2, so the unread ones stand out */
[data-stryv-rlp-seen="dim"] [data-stryv-rlp-title], [data-stryv-rlp-seen="dim"] [data-stryv-rlp-title] a { color: var(--ink-2, #42557a); }

/* CodeNumber 7.5 — The Pause (Core's contract 4: "Follow the Pause: the Visited pill, the ticker and every loop over five
 * seconds"; Ben's open question of 5 November, job 7, is answered by the site's one Pause). The pill's turn and the
 * drift of its colours, and the carousel arrows' slow turn, hold where they are while <html> has data-motion="paused",
 * and carry on from there when played (W44): paused, not restarted. After the rules that set them, and !important,
 * because an animation shorthand sets the play state back to running. */
:root[data-motion="paused"] .stryv-related__seen,
:root[data-motion="paused"] .stryv-related-seen,
:root[data-motion="paused"] .stryv-related__arrow::before { animation-play-state: paused !important; }

/* CodeNumber 7.6 — Less motion (the device's setting): nothing glides, lifts or turns; the slow gradients hold still
 * (first colour on the left, the second on the right, meeting halfway); the carousel jumps straight to the next card
 * (the script reads the same setting). Hover keeps changing shadows and colours, which don't move. */
@media (prefers-reduced-motion: reduce) {
	.stryv-related *, .stryv-related *::before, .stryv-related *::after, .stryv-related-seen { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.stryv-related__card:hover, .stryv-related__card:focus-within, .stryv-related__arrow:hover, .stryv-related__arrow:active { transform: none !important; }
	.stryv-related__card:hover .stryv-related__img { transform: none !important; }
}

/* CodeNumber 7.7 — The editor's preview of one card (the article's own picture fill), and the block's preview: the
 * same section, in the editor's own page, where Core's places aren't, so it draws in Slate. */
.stryv-related--preview { max-width: 280px; }
