/* ==========================================================================
   BuyCloudAccs — "Signal Deck"
   Bone canvas, pine structure, vermilion signal, notched geometry.
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */

:root {
	--bone: #f5f2ec;
	--bone-2: #efeae1;
	--paper: #fff;
	--ink: #101418;
	--ink-2: #3d444e;
	--ink-3: #6e7480;
	--line: #e2ddd3;
	--line-2: #cec7b8;
	--pine: #0e5c46;
	--pine-d: #0a4636;
	--pine-l: #e7f0ec;
	--verm: #c8452a;
	--slate: #171d26;
	--slate-2: #232b36;
	--slate-3: #323c4a;
	--slate-ink: #c3c9d3;

	--accent: var(--pine);

	--ff-display: "Fraunces", "Iowan Old Style", Georgia, serif;
	--ff-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--ff-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.83rem);
	--step-0: clamp(0.94rem, 0.9rem + 0.18vw, 1.02rem);
	--step-1: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
	--step-2: clamp(1.3rem, 1.15rem + 0.7vw, 1.65rem);
	--step-3: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
	--step-4: clamp(2rem, 1.5rem + 2.4vw, 3.4rem);
	--step-5: clamp(2.4rem, 1.6rem + 3.6vw, 4.4rem);

	--wrap: 1240px;
	--gut: clamp(1.1rem, 0.6rem + 2.2vw, 2.5rem);
	--rail: 128px;
	--sec-y: clamp(3.5rem, 2rem + 6vw, 7rem);

	/* Height of the one bar that stays pinned; anchors and sticky rails offset by it. */
	--sticky-h: 68px;

	--r: 3px;
	--notch: 18px;
	--notch-lg: 30px;

	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--dur: 0.55s;

	--shadow-1: 0 1px 2px rgb(16 20 24 / 5%);
	--shadow-2: 0 12px 32px -18px rgb(16 20 24 / 30%);
	--shadow-3: 0 30px 70px -40px rgb(16 20 24 / 45%);

	--notch-tr: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
	--notch-tr-lg: polygon(0 0, calc(100% - var(--notch-lg)) 0, 100% var(--notch-lg), 100% 100%, 0 100%);
}

/* --- 2. Base ------------------------------------------------------------ */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--sticky-h) + 20px); }

body {
	margin: 0;
	background: var(--bone);
	color: var(--ink);
	font-family: var(--ff-ui);
	font-size: var(--step-0);
	line-height: 1.62;
	font-synthesis-weight: none;
	-webkit-font-smoothing: antialiased;
	/*
	 * `clip` rather than `hidden`: `overflow-x: hidden` turns the body into a
	 * scroll container, which silently stops `position: sticky` working for
	 * everything inside it — including the header.
	 */
	overflow-x: clip;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
	font-family: var(--ff-display);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.014em;
	margin: 0;
	text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--pine); color: #fff; }

:focus-visible {
	outline: 2px solid var(--pine);
	outline-offset: 3px;
	border-radius: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip-path: inset(50%);
	white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute;
	left: 1rem; top: -100px;
	z-index: 200;
	background: var(--ink); color: #fff;
	padding: 0.7rem 1.1rem;
	font-size: var(--step--1); font-weight: 600;
	text-decoration: none;
	transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.wrap {
	width: min(100% - (var(--gut) * 2), var(--wrap));
	margin-inline: auto;
}

.ico { width: 1.15em; height: 1.15em; flex: none; }

/* --- 3. Type utilities -------------------------------------------------- */

.eyebrow {
	display: flex; align-items: baseline; gap: 0.65rem;
	font-family: var(--ff-mono);
	font-size: var(--step--1);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-3);
	margin: 0 0 1.1rem;
}
.eyebrow__num { color: var(--verm); font-weight: 500; }
.eyebrow__label { position: relative; }
.eyebrow__label::before {
	content: ""; position: absolute; left: -0.35rem; top: 50%;
	width: 0; border-top: 1px solid var(--line-2);
}

/* --- 4. Buttons --------------------------------------------------------- */

.btn {
	display: inline-flex; align-items: center; gap: 0.55rem;
	padding: 0.72rem 1.15rem;
	font-family: var(--ff-ui);
	font-size: var(--step--1);
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: var(--r);
	cursor: pointer;
	transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
		border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.btn--lg { padding: 0.95rem 1.5rem; font-size: var(--step-0); }

.btn--solid { background: var(--pine); color: #fff; }
.btn--solid:hover { background: var(--pine-d); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--pine); color: var(--pine); background: var(--pine-l); }

.btn--light { background: #fff; color: var(--slate); }
.btn--light:hover { background: var(--bone); transform: translateY(-1px); }

.btn .ico { transition: transform 0.25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--ghost:hover .ico,
.btn--solid:hover .ico { transform: translateX(3px); }

/* --- 5. Emblem + wordmark ----------------------------------------------- */

.emblem {
	position: relative;
	display: grid; place-items: center;
	flex: none;
	background: color-mix(in srgb, var(--emblem-accent, var(--pine)) 10%, var(--paper));
	border: 1px solid color-mix(in srgb, var(--emblem-accent, var(--pine)) 32%, transparent);
	color: color-mix(in srgb, var(--emblem-accent, var(--pine)) 72%, var(--ink));
	clip-path: var(--notch-tr);
	overflow: hidden;
	font-family: var(--ff-mono);
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1;
}
.emblem__grid {
	position: absolute; inset: 0;
	background-image:
		linear-gradient(color-mix(in srgb, var(--emblem-accent, var(--pine)) 18%, transparent) 1px, transparent 1px),
		linear-gradient(90deg, color-mix(in srgb, var(--emblem-accent, var(--pine)) 18%, transparent) 1px, transparent 1px);
	background-size: 7px 7px;
	opacity: 0.5;
}
.emblem__code { position: relative; }
.emblem--sm { width: 38px; height: 38px; font-size: 0.62rem; --notch: 9px; }
.emblem--md { width: 54px; height: 54px; font-size: 0.8rem; --notch: 12px; }
.emblem--xl { width: 96px; height: 96px; font-size: 1.4rem; --notch: 20px; }

.wordmark { display: inline-flex; align-items: center; gap: 0.55rem; }
.wordmark__mark {
	width: 26px; height: 26px;
	background: var(--pine);
	clip-path: polygon(0 0, 68% 0, 100% 32%, 100% 100%, 0 100%);
	display: grid; place-items: center;
}
.wordmark__mark span {
	width: 9px; height: 9px;
	background: var(--bone);
	clip-path: polygon(0 0, 100% 0, 100% 100%, 32% 100%, 0 68%);
}
.wordmark__text {
	font-family: var(--ff-display);
	font-size: 1.22rem;
	font-weight: 400;
	letter-spacing: -0.015em;
	color: var(--ink);
	white-space: nowrap;
}
.wordmark__text b { font-weight: 600; }
.wordmark--img img { max-height: 40px; width: auto; }

/* --- 6. Header: step 1, the utility bar --------------------------------- */

/*
 * The utility bar scrolls away with the page and only the main nav pins. Doing it
 * in CSS rather than by animating a margin keeps the header from nudging the
 * document on every change of scroll direction.
 */
/*
 * The whole header sticks, pulled up by the height of the utility strip, so
 * that strip scrolls away and the navigation row alone pins to the top. `.nav`
 * cannot do this by itself: a sticky element is confined to its parent's box,
 * so inside `.site-head` it would travel only as far as the strip is tall.
 */
.site-head {
	position: sticky;
	top: calc(var(--admin-h, 0px) - var(--util-h, 38px));
	z-index: 100;
}
body.admin-bar { --admin-h: 32px; }
/* Below 782px WordPress stops fixing the admin bar, so there is nothing to clear. */
@media screen and (max-width: 782px) {
	body.admin-bar { --admin-h: 0px; }
}

.util {
	background: var(--slate);
	color: var(--slate-ink);
	font-size: var(--step--1);
}
.util__in {
	width: min(100% - (var(--gut) * 2), var(--wrap));
	margin-inline: auto;
	display: flex; align-items: center; justify-content: space-between;
	gap: 1.5rem;
	min-height: 38px;
}
.util__msg { margin: 0; display: flex; align-items: center; gap: 0.55rem; }
.util__dot {
	width: 6px; height: 6px; border-radius: 50%;
	background: #4ade80;
	box-shadow: 0 0 0 3px rgb(74 222 128 / 18%);
}
.util__list { display: flex; align-items: center; gap: 1.35rem; margin: 0; padding: 0; list-style: none; }
.util__item { display: flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.util__item a { display: flex; align-items: center; gap: 0.4rem; text-decoration: none; transition: color 0.2s var(--ease); }
.util__item a:hover { color: #fff; }
.util__item .ico { width: 1em; height: 1em; opacity: 0.75; }
.util__item--tg a:hover { color: #7cc4ff; }

/* Step 2 — main navigation */

.nav {
	position: relative;
	z-index: 1;
	background: color-mix(in srgb, var(--bone) 92%, transparent);
	backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.is-pinned {
	border-bottom-color: var(--line-2);
	box-shadow: 0 10px 30px -24px rgb(16 20 24 / 45%);
}
.nav__in {
	width: min(100% - (var(--gut) * 2), var(--wrap));
	margin-inline: auto;
	display: flex; align-items: center; gap: 1.5rem;
	min-height: var(--sticky-h);
}
.nav__brand { text-decoration: none; margin-right: auto; }

.nav__list { display: flex; align-items: center; gap: 0.1rem; margin: 0; padding: 0; list-style: none; }
.nav__li { position: relative; }
.nav__li--has-panel { display: flex; align-items: center; }
.nav__link {
	position: relative;
	display: block;
	padding: 0.6rem 0.85rem;
	font-size: var(--step--1);
	font-weight: 500;
	letter-spacing: 0.005em;
	text-decoration: none;
	color: var(--ink-2);
	border-radius: var(--r);
	transition: color 0.2s var(--ease);
}
/* A hairline that draws in from the left, rather than a filled pill. */
.nav__link::after {
	content: "";
	position: absolute;
	left: 0.85rem; right: 0.85rem; bottom: 0.3rem;
	height: 1px;
	background: var(--pine);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.28s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__li--has-panel:hover .nav__link::after { transform: scaleX(1); }
.nav__link.is-current { color: var(--pine); }
.nav__link.is-current::after { transform: scaleX(1); }
.nav__toggle {
	display: grid; place-items: center;
	width: 22px; height: 22px;
	margin-left: -0.55rem;
	background: none; border: 0; cursor: pointer;
	color: var(--ink-3);
	border-radius: var(--r);
}
.nav__toggle svg { width: 17px; height: 17px; transition: transform 0.28s var(--ease); }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__li--has-panel:hover .nav__toggle { color: var(--pine); }

.nav__actions { display: flex; align-items: center; gap: 0.5rem; }

/* Telegram sits in the header as a bordered action, not a loud filled button,
   so Add to Cart stays the strongest call on product pages. */
.nav__tg {
	padding: 0.58rem 0.9rem;
	background: var(--paper);
	color: var(--ink);
	border-color: var(--line-2);
}
.nav__tg .ico { color: #2c9fdb; }
.nav__tg:hover { background: var(--slate); color: #fff; border-color: var(--slate); transform: none; }
.nav__tg:hover .ico { color: #7cc4ff; transform: none; }

.nav__cart {
	position: relative;
	display: grid; place-items: center;
	width: 42px; height: 42px;
	background: var(--paper);
	border: 1px solid var(--line-2);
	border-radius: var(--r);
	text-decoration: none;
	color: var(--ink);
	transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav__cart:hover { border-color: var(--pine); background: var(--pine); color: #fff; }
.cart-badge {
	position: absolute; top: -7px; right: -7px;
	min-width: 19px; height: 19px; padding: 0 4px;
	display: grid; place-items: center;
	background: var(--verm); color: #fff;
	font-family: var(--ff-mono); font-size: 0.66rem; line-height: 1;
	border-radius: 10px;
	opacity: 0; transform: scale(0.6);
	transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.cart-badge.is-filled { opacity: 1; transform: scale(1); }

.nav__burger {
	display: none;
	width: 42px; height: 42px;
	background: none;
	border: 1px solid var(--line-2);
	border-radius: var(--r);
	cursor: pointer;
	place-items: center;
}
.nav__burger .ico--close { display: none; }
.nav__burger[aria-expanded="true"] .ico--menu { display: none; }
.nav__burger[aria-expanded="true"] .ico--close { display: block; }

/* Provider mega panel */

.mega {
	position: absolute;
	top: calc(100% + 14px); left: 50%;
	transform: translateX(-50%) translateY(-6px);
	width: min(92vw, 940px);
	background: var(--paper);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-3);
	clip-path: var(--notch-tr-lg);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
	z-index: 60;
}
.mega[hidden] { display: block; }
.mega.is-open { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
/* An invisible bridge across the 14px gap, so the pointer never leaves the menu
   item on its way into the panel — the usual cause of flickering dropdowns. */
.mega::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: -18px;
	height: 18px;
}
.mega__inner { display: grid; grid-template-columns: 240px 1fr; gap: 0; }
.mega__lead {
	padding: 1.6rem;
	background: var(--bone-2);
	border-right: 1px solid var(--line);
}
.mega__kicker {
	font-family: var(--ff-mono); font-size: var(--step--1);
	text-transform: uppercase; letter-spacing: 0.1em;
	color: var(--verm); margin-bottom: 0.6rem;
}
.mega__note { font-size: var(--step--1); color: var(--ink-2); line-height: 1.55; }
.mega__all {
	display: inline-flex; align-items: center; gap: 0.4rem;
	font-size: var(--step--1); font-weight: 600;
	color: var(--pine); text-decoration: none;
}
.mega__all:hover { text-decoration: underline; }
.mega__grid {
	margin: 0; padding: 0.7rem;
	list-style: none;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
}
.mega__grid a {
	position: relative;
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	align-items: center;
	gap: 0.7rem;
	padding: 0.6rem;
	text-decoration: none;
	border-radius: var(--r);
	transition: background-color 0.18s var(--ease);
}
.mega__grid a::after {
	content: "";
	position: absolute; left: 0; top: 0; bottom: 0;
	width: 2px;
	background: var(--emblem-accent, var(--pine));
	opacity: 0;
	transition: opacity 0.18s var(--ease);
}
.mega__grid a:hover { background: var(--bone); }
.mega__grid a:hover::after,
.mega__grid a:focus-visible::after { opacity: 1; }
.mega__name { font-size: var(--step--1); font-weight: 600; line-height: 1.25; }
.mega__meta {
	display: block;
	margin-top: 0.12rem;
	font-family: var(--ff-mono);
	font-size: 0.68rem;
	color: var(--ink-3);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mega__meta b { color: var(--verm); font-weight: 500; }

/* Mobile drawer */

.drawer {
	position: fixed;
	inset: var(--sticky-h) 0 0;
	background: var(--bone);
	overflow-y: auto;
	z-index: 90;
	opacity: 0;
	transform: translateY(-10px);
	transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.drawer[hidden] { display: none; }
.drawer.is-open { opacity: 1; transform: none; }
.drawer__in { width: min(100% - (var(--gut) * 2), var(--wrap)); margin-inline: auto; padding: 1.5rem 0 3rem; }
.drawer__list { list-style: none; margin: 0 0 2rem; padding: 0; border-top: 1px solid var(--line); }
.drawer__list a {
	display: flex; align-items: center; justify-content: space-between;
	padding: 1rem 0.2rem;
	font-family: var(--ff-display); font-size: var(--step-2);
	text-decoration: none;
	border-bottom: 1px solid var(--line);
}
.drawer__kicker {
	font-family: var(--ff-mono); font-size: var(--step--1);
	text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3);
	margin-bottom: 0.75rem;
}
.drawer__providers { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 2px; }
.drawer__providers a {
	display: flex; align-items: center; gap: 0.8rem;
	padding: 0.55rem; text-decoration: none;
	font-size: var(--step--1); font-weight: 600;
	background: var(--paper); border: 1px solid var(--line);
}
.drawer__actions { display: grid; gap: 0.6rem; }
.drawer__actions .btn { justify-content: center; }

body.is-locked { overflow: hidden; }

/* --- 7. Hero ------------------------------------------------------------ */

.hero {
	position: relative;
	padding: clamp(2.5rem, 1rem + 6vw, 5.5rem) 0 clamp(3rem, 1rem + 6vw, 6rem);
	background:
		radial-gradient(120% 90% at 82% 8%, #fff 0%, transparent 55%),
		linear-gradient(180deg, var(--bone) 0%, var(--bone-2) 100%);
	border-bottom: 1px solid var(--line);
	overflow: hidden;
}
.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
	gap: clamp(2rem, 1rem + 4vw, 4.5rem);
	align-items: center;
}
.hero__eyebrow {
	display: inline-flex; align-items: center; gap: 0.55rem;
	font-family: var(--ff-mono); font-size: var(--step--1);
	letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--pine);
	background: var(--pine-l);
	border: 1px solid color-mix(in srgb, var(--pine) 18%, transparent);
	padding: 0.35rem 0.7rem;
	margin: 0 0 1.4rem;
}
.hero__eyebrow span {
	width: 6px; height: 6px; border-radius: 50%; background: var(--pine);
}
.hero__h1 {
	font-size: var(--step-5);
	letter-spacing: -0.025em;
	margin-bottom: 1.3rem;
	max-width: 16ch;
}
.hero__lead {
	font-size: var(--step-1);
	color: var(--ink-2);
	max-width: 54ch;
	line-height: 1.6;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 2rem 0 2.2rem; }
.hero__facts {
	list-style: none; margin: 0; padding: 1.4rem 0 0;
	border-top: 1px solid var(--line-2);
	display: grid; gap: 0.65rem;
}
.hero__facts li { display: flex; align-items: center; gap: 0.6rem; font-size: var(--step--1); color: var(--ink-2); }
.hero__facts .ico { color: var(--pine); }

.hero__stage { position: relative; }

/* Hero routing map */

.map { position: relative; }
.map__svg { width: 100%; height: auto; overflow: visible; }

.map__orbit {
	fill: none;
	stroke: var(--line-2);
	stroke-width: 1;
	stroke-dasharray: 2 7;
	opacity: 0.8;
	transform-origin: 306px 264px;
}
.map__orbit--2 { opacity: 0.45; }

.map__path {
	fill: none;
	stroke: var(--pine);
	stroke-width: 1.1;
	opacity: 0.26;
	stroke-dasharray: 380;
	stroke-dashoffset: 380;
	animation: map-draw 1.5s var(--ease) forwards, map-flow 11s linear infinite 1.6s;
	animation-delay: calc(var(--i) * 90ms), calc(1.6s + var(--i) * 90ms);
}

.map__node {
	opacity: 0;
	animation: map-node 0.7s var(--ease) forwards;
	animation-delay: calc(500ms + var(--i) * 90ms);
}
.map__tile {
	fill: var(--paper);
	stroke: color-mix(in srgb, var(--node) 38%, var(--line-2));
	stroke-width: 1.1;
	filter: drop-shadow(0 2px 6px rgb(16 20 24 / 7%));
}
/* The provider's own hue reads as a consistent edge marker on every tile
   rather than a differently placed dot, so the twelve nodes stay a set. */
.map__bar { fill: var(--node); }
.map__code {
	fill: var(--ink);
	font-family: var(--ff-mono);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.04em;
}
.map__node:hover .map__tile { fill: color-mix(in srgb, var(--node) 7%, var(--paper)); }

.map__hub { opacity: 0; animation: map-node 0.8s var(--ease) 0.35s forwards; }
.map__hub-shadow { fill: color-mix(in srgb, var(--pine) 55%, transparent); }
.map__hub-tile { fill: var(--slate); }
.map__hub-rule { stroke: rgb(255 255 255 / 16%); stroke-width: 1; }
.map__hub-a,
.map__hub-b {
	font-family: var(--ff-mono);
	text-anchor: middle;
	paint-order: stroke;
}
.map__hub-a {
	fill: #8fd6bd;
	font-size: 15px;
	letter-spacing: 0.28em;
}
.map__hub-b {
	fill: #fff;
	/* 12 monospace characters have to fit a 200-unit tile, so 23px, not 30px. */
	font-size: 23px;
	font-weight: 500;
	letter-spacing: 0.04em;
}
.map__pulse {
	fill: none;
	stroke: var(--pine);
	stroke-width: 1;
	opacity: 0;
	animation: map-pulse 5.5s var(--ease) infinite 1.8s;
}

@keyframes map-draw { to { stroke-dashoffset: 0; } }
@keyframes map-flow {
	from { stroke-dasharray: 5 10; stroke-dashoffset: 0; }
	to { stroke-dasharray: 5 10; stroke-dashoffset: -150; }
}
@keyframes map-node { to { opacity: 1; } }
@keyframes map-pulse {
	0% { opacity: 0.5; transform: scale(0.85); }
	70% { opacity: 0; transform: scale(1.5); }
	100% { opacity: 0; transform: scale(1.5); }
}

/* --- 8. Section scaffolding --------------------------------------------- */

.sec { padding: var(--sec-y) 0; }
.sec--catalogue { background: var(--bone-2); border-block: 1px solid var(--line); }
.sec--stories { background: var(--bone-2); border-block: 1px solid var(--line); }

.sec__grid {
	display: grid;
	grid-template-columns: var(--rail) minmax(0, 1fr);
	gap: clamp(1.5rem, 1rem + 2vw, 3rem);
	align-items: start;
}
.sec__rail { position: sticky; top: calc(var(--sticky-h) + 24px); }
.sec__rail .eyebrow { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
.sec__h2 { font-size: var(--step-4); max-width: 20ch; margin-bottom: 1.2rem; }
.sec__h3 { font-size: var(--step-2); margin: 2.6rem 0 1.2rem; }
.sec__lead { font-size: var(--step-1); color: var(--ink-2); max-width: 62ch; }
.sec__after { margin-top: 2.5rem; color: var(--ink-2); max-width: 62ch; }
.sec__after a { color: var(--pine); text-underline-offset: 3px; }

.sec--catalogue > .wrap + .wrap,
.sec--advantage > .wrap + .wrap,
.sec--audience > .wrap + .wrap,
.sec--stories > .wrap + .wrap { margin-top: clamp(2rem, 1rem + 3vw, 3.5rem); }

/* Ledger list */

.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.ledger__row {
	display: grid;
	grid-template-columns: 3rem 15rem minmax(0, 1fr);
	gap: 1.2rem;
	padding: 1.15rem 0;
	border-bottom: 1px solid var(--line);
	align-items: baseline;
}
.ledger__n { font-family: var(--ff-mono); font-size: var(--step--1); color: var(--verm); }
.ledger__label { font-weight: 600; }
.ledger__text { color: var(--ink-2); }

/* --- 9. Catalogue cards ------------------------------------------------- */

.pcard {
	position: relative;
	background: var(--paper);
	border: 1px solid var(--line);
	clip-path: var(--notch-tr-lg);
	transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.pcard::after {
	content: ""; position: absolute; left: 0; top: 0;
	width: 0; height: 3px; background: var(--accent);
	transition: width 0.4s var(--ease);
}
.pcard:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.pcard:hover::after { width: 100%; }

.pcard--feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.pcard--feature .pcard__art { background: var(--bone-2); overflow: hidden; }
.pcard--feature .pcard__art img { width: 100%; height: 100%; object-fit: cover; }
.pcard--feature .pcard__body { padding: clamp(1.6rem, 1rem + 2vw, 2.8rem); align-content: center; }
.pcard--feature .pcard__title { font-size: var(--step-3); }
.pcard--feature .pcard__desc { font-size: var(--step-1); }

.pcard__body { display: grid; gap: 1rem; padding: 1.5rem; align-content: start; }
.pcard__head { display: flex; align-items: center; gap: 0.85rem; }
.pcard__title { font-size: var(--step-2); }
.pcard__title a { text-decoration: none; }
.pcard__title a::after { content: ""; position: absolute; inset: 0; }
.pcard__provider {
	margin: 0.2rem 0 0;
	font-family: var(--ff-mono); font-size: var(--step--1);
	color: var(--ink-3); letter-spacing: 0.02em;
}
.pcard__desc { color: var(--ink-2); margin: 0; }
.pcard__meta {
	display: flex; align-items: baseline; gap: 1rem;
	padding-top: 0.9rem; border-top: 1px solid var(--line);
}
.pcard__price { margin: 0; font-family: var(--ff-mono); font-size: var(--step-1); color: var(--verm); font-weight: 500; }
.pcard__from, .pcard__vars, .plist__from, .gcard__vars {
	font-family: var(--ff-ui); font-size: var(--step--1);
	color: var(--ink-3); font-weight: 400; margin-right: 0.35rem;
}
.pcard__vars { margin: 0 0 0 auto; }
.pcard__cta {
	display: inline-flex; align-items: center; gap: 0.45rem;
	font-size: var(--step--1); font-weight: 600; color: var(--pine);
	text-decoration: none;
}
.pcard__cta .ico { transition: transform 0.25s var(--ease); }
.pcard:hover .pcard__cta .ico { transform: translateX(4px); }

.rail {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.2rem;
	margin-top: 1.2rem;
}

/* Provider ledger rows */

.plist { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.plist__row { border-bottom: 1px solid var(--line); }
.plist__link {
	display: grid;
	grid-template-columns: 38px 13rem minmax(0, 1fr) 8rem 1.4rem;
	align-items: center;
	gap: 1.2rem;
	padding: 1.05rem 0.6rem;
	text-decoration: none;
	transition: background-color 0.2s var(--ease), padding-left 0.25s var(--ease);
}
.plist__link:hover { background: var(--paper); padding-left: 1.1rem; }
.plist__name { display: grid; }
.plist__name strong { font-weight: 600; }
.plist__name em { font-style: normal; font-family: var(--ff-mono); font-size: var(--step--1); color: var(--ink-3); }
.plist__desc { color: var(--ink-2); font-size: var(--step--1); }
.plist__price { font-family: var(--ff-mono); color: var(--verm); text-align: right; }
.plist__go { color: var(--pine); transition: transform 0.25s var(--ease); }
.plist__link:hover .plist__go { transform: translateX(4px); }

/* --- 10. Advantage, audience, band, stories ----------------------------- */

.adv {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}
.adv__item { background: var(--bone); padding: clamp(1.4rem, 1rem + 1.4vw, 2.1rem); display: grid; gap: 0.7rem; align-content: start; }
.adv__n { font-family: var(--ff-mono); font-size: var(--step--1); color: var(--verm); }
.adv__ico { color: var(--pine); }
.adv__ico .ico { width: 1.6rem; height: 1.6rem; }
.adv__h { font-size: var(--step-1); }
.adv__p { color: var(--ink-2); font-size: var(--step--1); margin: 0; line-height: 1.65; }

.aud { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }
.aud__item {
	background: var(--paper);
	border: 1px solid var(--line);
	border-top: 3px solid var(--pine);
	padding: 1.4rem;
	display: grid; gap: 0.6rem; align-content: start;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.aud__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.aud__h { font-size: var(--step-1); }
.aud__p { color: var(--ink-2); font-size: var(--step--1); margin: 0; line-height: 1.65; }

.band {
	background: var(--slate);
	color: var(--slate-ink);
	padding: var(--sec-y) 0;
}
.band .eyebrow { color: #7b8593; }
.band .eyebrow__num { color: #e08a6f; }
.band__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(2rem, 1rem + 4vw, 4rem);
	align-items: start;
}
.band__h2 { color: #fff; font-size: var(--step-3); margin-bottom: 1rem; }
.band__lead { color: var(--slate-ink); max-width: 46ch; margin-bottom: 1.8rem; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps__item {
	display: grid;
	grid-template-columns: 3.2rem minmax(0, 1fr);
	gap: 1.2rem;
	padding: 1.35rem 0;
	border-top: 1px solid var(--slate-3);
	align-items: start;
}
.steps__item:last-child { border-bottom: 1px solid var(--slate-3); }
.steps__n {
	font-family: var(--ff-mono); font-size: var(--step-1);
	color: #7b8593;
	grid-row: span 2;
}
.steps__h { color: #fff; font-size: var(--step-1); margin-bottom: 0.35rem; }
.steps__p { color: var(--slate-ink); margin: 0; font-size: var(--step--1); line-height: 1.7; }

.stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; }
.story { background: var(--paper); border: 1px solid var(--line); padding: 1.5rem; display: grid; gap: 0.7rem; align-content: start; }
.story__rule { width: 34px; height: 2px; background: var(--verm); }
.story__h { font-size: var(--step-1); }
.story__p { color: var(--ink-2); font-size: var(--step--1); margin: 0; line-height: 1.7; }

/* --- 11. FAQ accordion --------------------------------------------------- */

.faq { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
	display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
	padding: 1.1rem 0.2rem;
	cursor: pointer;
	list-style: none;
	font-family: var(--ff-display);
	font-size: var(--step-1);
	line-height: 1.35;
	transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: "";
	flex: none;
	width: 18px; height: 18px;
	margin-top: 0.3rem;
	background:
		linear-gradient(var(--ink) 0 0) center / 100% 1.5px no-repeat,
		linear-gradient(var(--ink) 0 0) center / 1.5px 100% no-repeat;
	transition: transform 0.28s var(--ease);
}
.faq-item[open] summary { color: var(--pine); }
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item summary:hover { color: var(--pine); }
.faq-item__a { padding: 0 2.5rem 1.4rem 0.2rem; color: var(--ink-2); max-width: 72ch; }
.faq-item__a p:last-child { margin-bottom: 0; }

/* --- 12. Closer --------------------------------------------------------- */

.closer {
	padding: var(--sec-y) 0;
	background: linear-gradient(180deg, var(--bone) 0%, var(--pine-l) 100%);
	border-top: 1px solid var(--line);
}
.closer__in { display: grid; place-items: center; text-align: center; }
.closer__copy { max-width: 62ch; }
.closer__h2 { font-size: var(--step-4); margin-bottom: 1.2rem; }
.closer__p { color: var(--ink-2); font-size: var(--step-1); }
.closer__cta { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin-top: 2rem; }

/* --- 13. Breadcrumbs ----------------------------------------------------- */

.crumbs { padding: 1.1rem 0 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 0; padding: 0; font-size: var(--step--1); color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 0.45rem; color: var(--line-2); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--pine); text-decoration: underline; }

/* --- 14. Product page ---------------------------------------------------- */

.prod__hero { padding: clamp(1.5rem, 0.5rem + 3vw, 3rem) 0 clamp(2.5rem, 1rem + 4vw, 4.5rem); }
.prod__hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
	gap: clamp(2rem, 1rem + 4vw, 4rem);
	align-items: start;
}

.stage { position: relative; padding: clamp(1rem, 0.5rem + 2vw, 2.4rem); }

/*
 * Nothing on the product visual moves on its own. Idle motion on a large image
 * reads as instability, so depth is expressed only in response to the pointer:
 * the frame lifts, a light sweep crosses it once, the rings and marks ease
 * outward, and everything settles the moment the pointer leaves.
 */
.stage__ring {
	position: absolute; inset: 8% 6%;
	border: 1px dashed var(--line-2);
	border-radius: 50%;
	opacity: 0.55;
	transition: opacity 0.55s var(--ease), scale 0.9s var(--ease);
}
.stage__ring--2 { inset: -4% -2%; opacity: 0.3; }
.stage:hover .stage__ring { opacity: 0.85; scale: 1.015; }
.stage:hover .stage__ring--2 { opacity: 0.5; scale: 1.022; }

.stage__spark {
	position: absolute;
	width: 7px; height: 7px;
	background: var(--accent);
	border-radius: 50%;
	opacity: 0.65;
	transition: opacity 0.55s var(--ease), translate 0.8s var(--ease);
}
.stage__spark--a { top: 6%; left: 12%; }
.stage__spark--b { bottom: 14%; right: 8%; }
.stage__spark--c { top: 46%; right: 2%; width: 5px; height: 5px; }
.stage:hover .stage__spark { opacity: 1; }
.stage:hover .stage__spark--a { translate: -5px -4px; }
.stage:hover .stage__spark--b { translate: 5px 4px; }
.stage:hover .stage__spark--c { translate: 4px -3px; }

/*
 * `translate` carries the pointer parallax and `transform` the hover lift, so
 * the two compose rather than overwriting each other frame by frame.
 */
.stage__frame {
	position: relative;
	margin: 0;
	background: var(--paper);
	border: 1px solid var(--line);
	clip-path: var(--notch-tr-lg);
	box-shadow: var(--shadow-3);
	overflow: hidden;
	will-change: transform, translate;
	transition: translate 0.25s var(--ease), transform 0.5s var(--ease),
		box-shadow 0.5s var(--ease);
}
.stage__frame img { width: 100%; display: block; }

/* A single light sweep, driven by hover rather than by a loop. */
.stage__frame::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(105deg, transparent 40%, rgb(255 255 255 / 38%) 50%, transparent 60%);
	transform: translateX(-130%);
	transition: transform 1.1s var(--ease);
}
.stage:hover .stage__frame {
	transform: scale(1.012);
	box-shadow: 0 44px 96px -46px rgb(16 20 24 / 55%);
}
.stage:hover .stage__frame::after { transform: translateX(130%); }
.stage__fallback { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--bone-2); }
.stage__cap {
	display: flex; align-items: center; gap: 0.7rem;
	padding: 0.85rem 1.1rem;
	border-top: 1px solid var(--line);
	font-family: var(--ff-mono);
	font-size: var(--step--1);
	color: var(--ink-2);
	background: var(--paper);
}

.prod__eyebrow {
	font-family: var(--ff-mono); font-size: var(--step--1);
	letter-spacing: 0.1em; text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 0.7rem;
}
.prod__h1 { font-size: var(--step-4); margin-bottom: 1rem; }
.prod__lead { color: var(--ink-2); font-size: var(--step-1); max-width: 52ch; }

.prod__pricebar {
	display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
	margin: 1.5rem 0 1.2rem;
	padding: 1rem 0;
	border-block: 1px solid var(--line);
}
.prod__price { margin: 0; font-family: var(--ff-mono); font-size: var(--step-2); color: var(--verm); }
.prod__price .price-to { color: var(--ink-3); margin: 0 0.3rem; }
.prod__varcount { margin: 0 0 0 auto; font-size: var(--step--1); color: var(--ink-3); }

.prod__assure { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.prod__assure li { display: flex; gap: 0.65rem; font-size: var(--step--1); color: var(--ink-2); }
.prod__assure .ico { color: var(--pine); margin-top: 0.2em; }

/* The support route sits beside the purchase, clearly secondary to Add to Cart. */
.prod__ask {
	margin-top: 1.6rem;
	padding: 1.15rem 1.25rem;
	background: var(--paper);
	border: 1px solid var(--line-2);
	border-left: 3px solid #2c9fdb;
	clip-path: var(--notch-tr);
	display: grid; gap: 0.85rem; justify-items: start;
}
.prod__ask p { margin: 0; font-size: var(--step--1); color: var(--ink-2); }
.prod__ask .btn {
	background: var(--slate);
	color: #fff;
	border-color: var(--slate);
	padding: 0.72rem 1.15rem;
}
.prod__ask .btn .ico { color: #7cc4ff; }
.prod__ask .btn:hover { background: #2c9fdb; border-color: #2c9fdb; transform: translateY(-1px); }
.prod__ask .btn:hover .ico { color: #fff; transform: none; }

/* Variation form — WooCommerce markup, themed */

.prod__form { margin-top: 0.5rem; }
.variations { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.variations th,
.variations td { display: block; text-align: left; padding: 0; }
.variations .label label {
	display: block;
	font-family: var(--ff-mono); font-size: var(--step--1);
	text-transform: uppercase; letter-spacing: 0.08em;
	color: var(--ink-3);
	margin-bottom: 0.45rem;
}
.variations select,
.bca select {
	width: 100%;
	padding: 0.8rem 2.4rem 0.8rem 0.9rem;
	font-family: var(--ff-ui); font-size: var(--step-0);
	color: var(--ink);
	background-color: var(--paper);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23101418' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 18px;
	border: 1px solid var(--line-2);
	border-radius: var(--r);
	appearance: none;
	cursor: pointer;
}
.variations select:focus-visible { border-color: var(--pine); }
.reset_variations {
	display: inline-block;
	margin-top: 0.5rem;
	font-size: var(--step--1);
	color: var(--ink-3);
}
.woocommerce-variation-price { margin-bottom: 0.9rem; }
.woocommerce-variation-price .price { font-family: var(--ff-mono); font-size: var(--step-2); color: var(--verm); }
.woocommerce-variation-description { font-size: var(--step--1); color: var(--ink-3); margin-bottom: 0.8rem; }
.woocommerce-variation-availability { font-size: var(--step--1); }

.woocommerce-variation-add-to-cart,
form.cart:not(.variations_form) {
	display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.6rem;
}
.quantity { display: flex; align-items: center; }
.quantity .qty {
	width: 84px;
	min-height: 52px;
	padding: 0.6rem;
	text-align: center;
	font-family: var(--ff-mono);
	font-size: var(--step-0);
	/* A defined edge: the old hairline washed out against the paper buy box. */
	border: 1.5px solid var(--ink-3);
	border-radius: var(--r);
	background: var(--paper);
	color: var(--ink);
	transition: border-color 0.2s var(--ease);
}
.quantity .qty:hover { border-color: var(--pine); }
.quantity .qty:focus-visible { border-color: var(--pine); outline-offset: 2px; }

.single_add_to_cart_button,
.bca .button:not(.btn) {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	min-height: 52px;
	padding: 0.85rem 1.9rem;
	background: var(--pine); color: #fff;
	font-family: var(--ff-ui); font-size: var(--step-0); font-weight: 600;
	letter-spacing: 0.01em;
	border: 1.5px solid var(--pine);
	border-radius: var(--r);
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 10px 22px -14px rgb(14 92 70 / 85%);
	transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
		box-shadow 0.25s var(--ease), transform 0.2s var(--ease);
}
.single_add_to_cart_button:hover,
.bca .button:not(.btn):hover {
	background: var(--pine-d); border-color: var(--pine-d);
	box-shadow: 0 16px 28px -14px rgb(14 92 70 / 90%);
	transform: translateY(-1px);
}
.single_add_to_cart_button:focus-visible,
.bca .button:not(.btn):focus-visible {
	outline: 2px solid var(--pine);
	outline-offset: 3px;
}
/*
 * Disabled is drawn, not faded. WooCommerce drops the whole button to 50%
 * opacity, which left white-on-green text unreadable against the paper buy
 * box, so the state gets its own fill, border and ink. The selectors carry
 * enough weight to beat `.woocommerce-js button.button.alt.disabled`.
 */
.single_add_to_cart_button.disabled,
.single_add_to_cart_button.disabled:hover,
.single_add_to_cart_button:disabled,
.single_add_to_cart_button[disabled] {
	/*
	 * `!important` is deliberate. Astra's WooCommerce stylesheet paints this
	 * button from its own palette variable and fades it to 50%, and it ships
	 * outside this theme, so readability of the state cannot depend on winning
	 * a specificity race against a file we do not control.
	 */
	background: var(--bone-2) !important;
	background-color: var(--bone-2) !important;
	color: var(--ink-2) !important;
	border-color: var(--line-2) !important;
	opacity: 1 !important;
	box-shadow: none !important;
	transform: none !important;
	cursor: not-allowed;
}

/* Keep the live button on the brand green whatever WooCommerce ships. */
.woocommerce-js .single_add_to_cart_button.button,
.woocommerce-js .single_add_to_cart_button.button.alt {
	background: var(--pine);
	color: #fff;
	border-color: var(--pine);
}
.woocommerce-js .single_add_to_cart_button.button:hover,
.woocommerce-js .single_add_to_cart_button.button.alt:hover {
	background: var(--pine-d);
	color: #fff;
	border-color: var(--pine-d);
}
/* Astra fades any `.disabled` button to 50%; the state above draws itself. */
.woocommerce-js .single_add_to_cart_button.button.disabled { opacity: 1; }

/* The quantity field and the button read as one control pair. */
.quantity .qty { flex: 0 0 auto; }
.woocommerce-variation-add-to-cart .single_add_to_cart_button,
form.cart:not(.variations_form) .single_add_to_cart_button { flex: 1 1 auto; }
.woocommerce-variation-add-to-cart-disabled .single_add_to_cart_button { pointer-events: none; }

/* Product guide: contents rail + long-form document */

.prod__doc { padding: clamp(2rem, 1rem + 3vw, 3.5rem) 0; background: var(--bone-2); border-block: 1px solid var(--line); }
.prod__doc-grid {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
	align-items: start;
}
.toc { position: sticky; top: calc(var(--sticky-h) + 24px); max-height: calc(100vh - var(--sticky-h) - 56px); overflow-y: auto; background: var(--bone); z-index: 1; }
.toc__h {
	font-family: var(--ff-mono); font-size: var(--step--1);
	text-transform: uppercase; letter-spacing: 0.1em;
	color: var(--ink-3);
	margin-bottom: 0.8rem;
}
.toc__nav ol { list-style: none; margin: 0; padding: 0; counter-reset: t; border-left: 1px solid var(--line-2); }
.toc__nav li { counter-increment: t; }
.toc__nav a {
	display: block;
	padding: 0.4rem 0 0.4rem 0.9rem;
	margin-left: -1px;
	border-left: 1px solid transparent;
	font-size: var(--step--1);
	line-height: 1.4;
	color: var(--ink-3);
	text-decoration: none;
	transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.toc__nav a:hover,
.toc__nav a.is-active { color: var(--pine); border-left-color: var(--pine); }

.doc { max-width: 74ch; }
.doc-block { padding-bottom: 0.5rem; scroll-margin-top: calc(var(--sticky-h) + 24px); }
.doc h2 { font-size: var(--step-3); margin: 2.6rem 0 1rem; }
.doc h3 { font-size: var(--step-2); margin: 2.4rem 0 0.9rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.doc-block:first-child > h2 { margin-top: 0; }
.doc-block > h3:first-child { border-top: 0; padding-top: 0; }
.doc h4 { font-size: var(--step-1); margin: 1.8rem 0 0.6rem; }
.doc p { color: var(--ink-2); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--pine); }

.doc-list, .doc-steps { color: var(--ink-2); padding-left: 0; margin: 0 0 1.3rem; }
.doc-list { list-style: none; }
.doc-list li { position: relative; padding-left: 1.4rem; margin-bottom: 0.5rem; }
.doc-list li::before {
	content: ""; position: absolute; left: 0; top: 0.62em;
	width: 6px; height: 6px; background: var(--accent);
	clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 100%, 0 100%);
}
.doc-steps { list-style: none; counter-reset: d; }
.doc-steps li { position: relative; padding-left: 2.3rem; margin-bottom: 0.7rem; counter-increment: d; }
.doc-steps li::before {
	content: counter(d, decimal-leading-zero);
	position: absolute; left: 0; top: 0.05em;
	font-family: var(--ff-mono); font-size: var(--step--1);
	color: var(--verm);
}
.doc-label { margin: 1.4rem 0 0.5rem; color: var(--ink); }

.doc-table { overflow-x: auto; margin: 0 0 1.6rem; border: 1px solid var(--line); background: var(--paper); }
.doc-table table { width: 100%; border-collapse: collapse; font-size: var(--step--1); min-width: 560px; }
.doc-table th, .doc-table td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table thead th { background: var(--bone-2); font-family: var(--ff-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 500; }
.doc-table tbody th { font-weight: 600; color: var(--ink); }
.doc-table tbody td { color: var(--ink-2); }
.doc-table tr:last-child th, .doc-table tr:last-child td { border-bottom: 0; }

.doc .faq-item { background: var(--paper); border: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 2px; }
.doc .faq-item summary { padding: 0.95rem 1.1rem; font-size: var(--step-0); }
.doc .faq-item__a { padding: 0 3rem 1.1rem 1.1rem; }

/* Related */

.prod__related { padding: var(--sec-y) 0; }
.rel__h { font-size: var(--step-3); margin-bottom: 0.6rem; }
.rel__lead { color: var(--ink-2); margin-bottom: 2rem; }
.rel__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.rel__card {
	position: relative;
	background: var(--paper);
	border: 1px solid var(--line);
	border-left: 3px solid var(--accent);
	padding: 1.3rem;
	display: grid; gap: 0.7rem; align-content: start;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.rel__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.rel__card h3 { font-size: var(--step-1); }
.rel__card h3 a { text-decoration: none; }
.rel__card h3 a::after { content: ""; position: absolute; inset: 0; }
.rel__desc { color: var(--ink-2); font-size: var(--step--1); margin: 0; }
.rel__price { margin: 0; font-family: var(--ff-mono); color: var(--verm); }
.rel__price span { font-family: var(--ff-ui); font-size: var(--step--1); color: var(--ink-3); margin-right: 0.3rem; }
.rel__all { margin-top: 1.6rem; }
.rel__all a { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--pine); font-weight: 600; text-decoration: none; font-size: var(--step--1); }
.rel__all a:hover { text-decoration: underline; }

/* --- 15. Archive --------------------------------------------------------- */

.arch__head { padding: 1.5rem 0 clamp(1.5rem, 1rem + 2vw, 2.5rem); border-bottom: 1px solid var(--line); }
.arch__head-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.arch__h1 { font-size: var(--step-4); margin-bottom: 0.9rem; }
.arch__lead { color: var(--ink-2); max-width: 58ch; font-size: var(--step-1); }
.arch__aside { display: grid; gap: 0.7rem; justify-items: start; }
.arch__count { margin: 0; font-family: var(--ff-mono); font-size: var(--step--1); color: var(--ink-3); }
.arch__body { padding: clamp(2rem, 1rem + 3vw, 3.5rem) 0; }
.arch__empty { color: var(--ink-2); }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.gcard {
	position: relative;
	height: 100%;
	background: var(--paper);
	border: 1px solid var(--line);
	clip-path: var(--notch-tr);
	display: grid; grid-template-rows: auto 1fr;
	transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.gcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.gcard__art { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bone-2); }
.gcard__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gcard:hover .gcard__art img { transform: scale(1.04); }
.gcard__noart { display: block; height: 100%; background: linear-gradient(135deg, var(--bone-2), var(--paper)); }
.gcard__body { padding: 1.3rem; display: grid; gap: 0.75rem; align-content: start; }
.gcard__head { display: flex; align-items: center; gap: 0.7rem; }
.gcard__prov { font-family: var(--ff-mono); font-size: var(--step--1); color: var(--ink-3); }
.gcard__h { font-size: var(--step-2); }
.gcard__h a { text-decoration: none; }
.gcard__h a::after { content: ""; position: absolute; inset: 0; }
.gcard__desc { color: var(--ink-2); font-size: var(--step--1); margin: 0; }
.gcard__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.gcard__price { margin: 0; font-family: var(--ff-mono); color: var(--verm); font-size: var(--step-1); }
.gcard__go { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--step--1); font-weight: 600; color: var(--pine); }
.gcard:hover .gcard__go .ico { transform: translateX(4px); }
.gcard__go .ico { transition: transform 0.25s var(--ease); }

.arch__closer { background: var(--bone-2); border-top: 1px solid var(--line); padding: var(--sec-y) 0; }
.arch__closer-in { max-width: 62ch; }
.arch__closer-in h2 { font-size: var(--step-3); margin-bottom: 0.8rem; }
.arch__closer-in p { color: var(--ink-2); }
.arch__closer-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }

.woocommerce-pagination ul { display: flex; gap: 0.35rem; list-style: none; margin: 2.5rem 0 0; padding: 0; }
.woocommerce-pagination a, .woocommerce-pagination span {
	display: grid; place-items: center; min-width: 40px; height: 40px;
	border: 1px solid var(--line-2); border-radius: var(--r);
	text-decoration: none; font-family: var(--ff-mono); font-size: var(--step--1);
}
.woocommerce-pagination .current { background: var(--pine); color: #fff; border-color: var(--pine); }

/* --- 16. Pages, cart, checkout, account ---------------------------------- */

.page__head { padding: 1.5rem 0 clamp(1.5rem, 1rem + 2vw, 2.5rem); border-bottom: 1px solid var(--line); }
.page__h1 { font-size: var(--step-4); }
.page__lead { color: var(--ink-2); font-size: var(--step-1); max-width: 60ch; margin-top: 0.9rem; }
.page__body { padding: clamp(2rem, 1rem + 3vw, 3.5rem) 0; }
.doc--page { max-width: 74ch; }
.page--shopflow .doc--page { max-width: none; }
.page__closer { background: var(--bone-2); border-top: 1px solid var(--line); padding: var(--sec-y) 0; }
.page__closer-in { max-width: 60ch; }
.page__closer-in h2 { font-size: var(--step-3); margin-bottom: 0.7rem; }
.page__closer-in p { color: var(--ink-2); }
.page__closer-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }

.postlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.postlist h2 { font-size: var(--step-2); }
.postlist a { text-decoration: none; }

/* WooCommerce notices */

.woocommerce-message, .woocommerce-info, .woocommerce-error {
	background: var(--paper);
	border: 1px solid var(--line-2);
	border-left: 3px solid var(--pine);
	padding: 1rem 1.2rem;
	margin: 0 0 1.5rem;
	list-style: none;
	font-size: var(--step--1);
}
.woocommerce-error { border-left-color: var(--verm); }
.woocommerce-message .button, .woocommerce-info .button { margin-left: 0.8rem; }

/* Cart & checkout blocks inherit the type scale and accent colour */

.wc-block-components-button:not(.is-link),
.wp-block-woocommerce-cart .wc-block-cart__submit-button {
	background: var(--pine) !important;
	border-radius: var(--r) !important;
	font-family: var(--ff-ui) !important;
	font-weight: 600 !important;
}
.wc-block-components-button:not(.is-link):hover { background: var(--pine-d) !important; }
.wc-block-components-product-name { font-family: var(--ff-display); }
.wc-block-components-totals-item__value,
.wc-block-formatted-money-amount { font-family: var(--ff-mono); }
.wc-block-components-sidebar-layout .wc-block-components-sidebar { --wp--preset--color--background: var(--paper); }

/* --- 17. Footer ---------------------------------------------------------- */

.site-foot { background: var(--slate); color: var(--slate-ink); }
.foot__top { padding: clamp(3rem, 2rem + 4vw, 5rem) 0 clamp(2rem, 1rem + 3vw, 3.5rem); }
.foot__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.25fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 0.7fr);
	gap: clamp(1.6rem, 1rem + 2.5vw, 3rem);
}
.foot__brand .wordmark__text { color: #fff; }
.foot__brand .wordmark__mark { background: #fff; }
.foot__brand .wordmark__mark span { background: var(--slate); }
.foot__stmt { margin: 1.2rem 0 1.4rem; font-size: var(--step--1); line-height: 1.7; max-width: 38ch; }
.foot__facts { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 0.55rem; }
.foot__facts li { display: flex; align-items: center; gap: 0.55rem; font-size: var(--step--1); }
.foot__facts .ico { color: #6fbf9f; }

.foot__h {
	display: flex; align-items: baseline; gap: 0.6rem;
	font-family: var(--ff-mono); font-size: var(--step--1);
	text-transform: uppercase; letter-spacing: 0.1em;
	color: #fff; font-weight: 500;
	margin: 0 0 1.1rem;
	padding-bottom: 0.7rem;
	border-bottom: 1px solid var(--slate-3);
}
.foot__h span { color: #e08a6f; }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.foot__col a { font-size: var(--step--1); text-decoration: none; color: var(--slate-ink); transition: color 0.2s var(--ease); }
.foot__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot__two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.5rem; }

.foot__base { border-top: 1px solid var(--slate-3); padding: 1.4rem 0 2rem; }
.foot__base-in { display: grid; gap: 0.8rem; }
.foot__copy { margin: 0; font-size: var(--step--1); }
.foot__legal-list { display: flex; flex-wrap: wrap; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.foot__legal-list a { font-size: var(--step--1); color: var(--slate-ink); text-decoration: none; }
.foot__legal-list a:hover { color: #fff; }
.foot__disclaimer { margin: 0; font-size: 0.76rem; line-height: 1.6; color: #7b8593; max-width: 92ch; }

/* --- 18. Floating Telegram ----------------------------------------------- */

.float-tg {
	position: fixed;
	right: clamp(0.9rem, 2vw, 1.6rem);
	bottom: clamp(0.9rem, 2vw, 1.6rem);
	z-index: 80;
	display: inline-flex; align-items: center; gap: 0.5rem;
	padding: 0.7rem 0.95rem;
	background: var(--slate); color: #fff;
	border-radius: 999px;
	box-shadow: var(--shadow-3);
	text-decoration: none;
	font-size: var(--step--1); font-weight: 600;
	opacity: 0; transform: translateY(14px);
	pointer-events: none;
	transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background-color 0.2s var(--ease);
}
.float-tg.is-on { opacity: 1; transform: none; pointer-events: auto; }
.float-tg:hover { background: var(--pine); }
.float-tg .ico { width: 1.25em; height: 1.25em; }

/* --- 19. Reveal ---------------------------------------------------------- */

[data-reveal] {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
	transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* --- 20. Responsive ------------------------------------------------------ */

@media (max-width: 1080px) {
	.sec__grid { grid-template-columns: 1fr; }
	.sec__rail { position: static; }
	.sec__rail .eyebrow { flex-direction: row; align-items: baseline; }
	.prod__doc-grid { grid-template-columns: 1fr; }
	.toc { position: static; max-height: none; border: 1px solid var(--line); background: var(--paper); padding: 1.1rem 1.2rem; }
	.toc__nav ol { columns: 2; column-gap: 1.6rem; }
	.mega { width: min(94vw, 760px); }
	.mega__inner { grid-template-columns: 1fr; }
	.mega__lead { border-right: 0; border-bottom: 1px solid var(--line); }
	.foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.nav__main, .nav__tg { display: none; }
	.nav__burger { display: grid; }
	.hero__grid { grid-template-columns: 1fr; }
	.hero__h1 { max-width: 20ch; }
	.hero__stage { max-width: 560px; }
	.prod__hero-grid { grid-template-columns: 1fr; }
	.pcard--feature { grid-template-columns: 1fr; }
	.band__grid { grid-template-columns: 1fr; }
	.rail, .grid, .rel__grid, .adv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ledger__row { grid-template-columns: 2.4rem 1fr; }
	.ledger__text { grid-column: 2; }
	.plist__link { grid-template-columns: 38px 1fr auto; row-gap: 0.35rem; }
	.plist__desc { grid-column: 2 / -1; }
	.plist__price { grid-column: 2; text-align: left; }
	.plist__go { display: none; }
	.util__item:not(.util__item--keep) { display: none; }
	.util__msg { display: none; }
	.util__in { justify-content: center; gap: 1.2rem; }
	.drawer { inset: var(--sticky-h) 0 0; }
}

@media (max-width: 620px) {
	.rail, .grid, .rel__grid, .adv, .aud, .stories, .foot__grid { grid-template-columns: 1fr; }
	.foot__two { grid-template-columns: 1fr 1fr; }
	.toc__nav ol { columns: 1; }
	.arch__head-in { flex-direction: column; align-items: flex-start; }
	.hero__cta .btn, .closer__cta .btn { flex: 1 1 auto; justify-content: center; }
	.float-tg .float-tg__label { display: none; }
	.float-tg { padding: 0.85rem; }
	.doc-table table { min-width: 460px; }
}

/* --- 21. Reduced motion --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
	[data-reveal] { opacity: 1 !important; transform: none !important; }
	.map__path { stroke-dashoffset: 0 !important; animation: none !important; }
	.map__node, .map__hub { opacity: 1 !important; animation: none !important; }
	.map__pulse { animation: none !important; }
	.stage__frame::after { display: none; }
	.stage__frame, .stage__spark { translate: none !important; }
	.stage__frame, .stage__ring { transform: none !important; scale: none !important; }
	.map__pulse { opacity: 0 !important; }
	.float-tg { opacity: 1; transform: none; pointer-events: auto; }
}

/* --- 22. Print ------------------------------------------------------------ */

@media print {
	.site-head, .site-foot, .float-tg, .toc, .prod__stage { display: none; }
	body { background: #fff; }
}

/* --- 23. Guide: mega panel, landing, articles, archives, search ----------- */

.mega--guide { width: min(94vw, 1000px); }
.mega--guide .mega__inner { grid-template-columns: 230px minmax(0, 1fr) 240px; }
.mega__topics { margin: 0; padding: 0.7rem; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; align-content: start; }
.mega__topics a {
	display: block; padding: 0.55rem 0.6rem;
	text-decoration: none; border-radius: var(--r);
	transition: background-color 0.18s var(--ease);
}
.mega__topics a:hover { background: var(--bone); }
.mega__latest { padding: 1.6rem 1.4rem; border-left: 1px solid var(--line); background: var(--bone-2); }
.mega__latest ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.7rem; }
.mega__latest a {
	display: block; font-size: var(--step--1); line-height: 1.4;
	text-decoration: none; color: var(--ink-2);
	border-left: 2px solid var(--line-2); padding-left: 0.65rem;
	transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.mega__latest a:hover { color: var(--pine); border-left-color: var(--pine); }

.guide__head { padding: 1.5rem 0 clamp(1.5rem, 1rem + 2vw, 2.5rem); border-bottom: 1px solid var(--line); }
.guide__head-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.guide__h1 { font-size: var(--step-4); margin-bottom: 0.9rem; }
.guide__lead { color: var(--ink-2); font-size: var(--step-1); max-width: 60ch; }

.guide__search { display: flex; align-items: stretch; min-width: min(100%, 320px); }
.guide__search input {
	flex: 1;
	min-height: 48px;
	padding: 0.7rem 0.95rem;
	font: inherit; font-size: var(--step--1);
	color: var(--ink);
	background: var(--paper);
	border: 1.5px solid var(--line-2);
	border-right: 0;
	border-radius: var(--r) 0 0 var(--r);
}
.guide__search input:focus-visible { border-color: var(--pine); outline-offset: 2px; }
.guide__search button {
	display: grid; place-items: center;
	width: 52px;
	background: var(--pine); color: #fff;
	border: 1.5px solid var(--pine);
	border-radius: 0 var(--r) var(--r) 0;
	cursor: pointer;
	transition: background-color 0.2s var(--ease);
}
.guide__search button:hover { background: var(--pine-d); }

.guide__feature, .guide__topics, .guide__providers, .guide__latest { padding: clamp(2rem, 1rem + 3vw, 3.2rem) 0 0; }
.guide__latest { padding-bottom: clamp(2rem, 1rem + 3vw, 3.2rem); }
.guide__h2 { font-size: var(--step-2); margin-bottom: 1.4rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); }

.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.topics a {
	display: grid; gap: 0.35rem; align-content: start;
	height: 100%;
	padding: 1.2rem;
	background: var(--bone);
	text-decoration: none;
	transition: background-color 0.22s var(--ease);
}
.topics a:hover { background: var(--paper); }
.topics__n { font-family: var(--ff-mono); font-size: var(--step--1); color: var(--verm); }
.topics__name { font-family: var(--ff-display); font-size: var(--step-1); line-height: 1.2; }
.topics__desc { font-size: var(--step--1); color: var(--ink-2); line-height: 1.55; }
.topics__count { font-family: var(--ff-mono); font-size: 0.7rem; color: var(--ink-3); margin-top: 0.2rem; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips a {
	display: inline-flex; align-items: center; gap: 0.55rem;
	padding: 0.4rem 0.75rem 0.4rem 0.4rem;
	background: var(--paper);
	border: 1px solid var(--line-2);
	border-radius: 999px;
	text-decoration: none;
	font-size: var(--step--1); font-weight: 500;
	transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.chips a:hover { border-color: var(--emblem-accent, var(--pine)); transform: translateY(-1px); }
.chips a em { font-style: normal; font-family: var(--ff-mono); font-size: 0.7rem; color: var(--ink-3); }
.chips--plain a { padding: 0.45rem 0.9rem; }

.agrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }

.acard { position: relative; display: grid; grid-template-rows: auto 1fr; height: 100%; background: var(--paper); border: 1px solid var(--line); clip-path: var(--notch-tr); transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.acard:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.acard__art { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bone-2); }
.acard__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.acard:hover .acard__art img { transform: scale(1.04); }
.acard__noart { display: block; height: 100%; background: linear-gradient(135deg, var(--bone-2), var(--paper)); }
.acard__body { padding: 1.2rem; display: grid; gap: 0.6rem; align-content: start; }
.acard__cat { margin: 0; font-family: var(--ff-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; }
.acard__cat a { color: var(--verm); text-decoration: none; position: relative; z-index: 2; }
.acard__cat a:hover { text-decoration: underline; }
.acard__h { font-size: var(--step-1); line-height: 1.25; }
.acard__h a { text-decoration: none; }
.acard__h a::after { content: ""; position: absolute; inset: 0; }
.acard__desc { margin: 0; font-size: var(--step--1); color: var(--ink-2); }
.acard__meta { margin: 0; font-family: var(--ff-mono); font-size: 0.7rem; color: var(--ink-3); display: flex; gap: 0.4rem; }

.acard--feature { grid-template-rows: none; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); clip-path: var(--notch-tr-lg); }
.acard--feature .acard__art { aspect-ratio: auto; }
.acard--feature .acard__body { padding: clamp(1.5rem, 1rem + 2vw, 2.6rem); align-content: center; gap: 0.8rem; }
.acard--feature .acard__h { font-size: var(--step-3); }
.acard--feature .acard__desc { font-size: var(--step-0); }

/* Article */

.post__head { padding: 1.5rem 0 0; }
.post__head-in { max-width: 74ch; }
.post__cat { margin: 0 0 0.7rem; font-family: var(--ff-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.1em; }
.post__cat a { color: var(--verm); text-decoration: none; }
.post__cat a:hover { text-decoration: underline; }
.post__h1 { font-size: var(--step-4); }
.post__lead { margin-top: 1rem; font-size: var(--step-1); color: var(--ink-2); }
.post__meta { margin-top: 1rem; font-family: var(--ff-mono); font-size: var(--step--1); color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 0.45rem; }
.post__art { margin-top: clamp(1.5rem, 1rem + 2vw, 2.4rem); }
.post__art figure { margin: 0; border: 1px solid var(--line); clip-path: var(--notch-tr-lg); background: var(--bone-2); }
.post__art img { width: 100%; display: block; }

.post__grid {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
	align-items: start;
	padding: clamp(2rem, 1rem + 3vw, 3.2rem) 0;
}
.post__body { max-width: 74ch; }

/*
 * Grid children default to `min-width: auto`, so a wide table inside the
 * document floors the whole column at the table's own width and the page
 * scrolls sideways on a phone. Letting the column shrink hands the scrolling
 * back to `.doc-table`, where it belongs.
 */
.post__grid > *,
.prod__doc-grid > * { min-width: 0; }

.post__accounts {
	margin-top: 2.5rem;
	background: var(--paper);
	border: 1px solid var(--line-2);
	clip-path: var(--notch-tr);
	padding: 1.3rem 1.4rem;
}
.post__accounts h2 { font-size: var(--step-1); margin-bottom: 0.9rem; }
.post__accounts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.post__accounts a {
	display: grid; grid-template-columns: 38px minmax(0, 1fr) auto;
	align-items: center; gap: 0.8rem;
	padding: 0.6rem;
	text-decoration: none;
	border-radius: var(--r);
	transition: background-color 0.2s var(--ease);
}
.post__accounts a:hover { background: var(--bone); }
.post__accounts-name { display: grid; }
.post__accounts-name strong { font-weight: 600; }
.post__accounts-name em { font-style: normal; font-family: var(--ff-mono); font-size: 0.7rem; color: var(--ink-3); }
.post__accounts .ico { color: var(--pine); }

.post__tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.post__tags a {
	font-family: var(--ff-mono); font-size: 0.72rem;
	padding: 0.3rem 0.65rem;
	border: 1px solid var(--line-2); border-radius: 999px;
	color: var(--ink-3); text-decoration: none;
}
.post__tags a:hover { border-color: var(--pine); color: var(--pine); }

.post__related { background: var(--bone-2); border-top: 1px solid var(--line); padding: var(--sec-y) 0; }

/* Search results */

.sres + .sres { margin-top: clamp(2rem, 1rem + 3vw, 3rem); }
.sres__h {
	display: flex; align-items: baseline; gap: 0.6rem;
	font-size: var(--step-2);
	margin-bottom: 1.2rem; padding-bottom: 0.7rem;
	border-bottom: 1px solid var(--line);
}
.sres__h em { font-style: normal; font-family: var(--ff-mono); font-size: var(--step--1); color: var(--ink-3); }
.sres__pages { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sres__pages a { display: grid; gap: 0.25rem; padding: 0.9rem; background: var(--paper); border: 1px solid var(--line); text-decoration: none; }
.sres__pages a:hover { border-color: var(--pine); }
.sres__pages span { font-size: var(--step--1); color: var(--ink-2); }

.drawer__topics { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 2px; }
.drawer__topics a {
	display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
	padding: 0.6rem 0.75rem;
	background: var(--paper); border: 1px solid var(--line);
	font-size: var(--step--1); font-weight: 500;
	text-decoration: none;
}
.drawer__topics em { font-style: normal; font-family: var(--ff-mono); font-size: 0.7rem; color: var(--ink-3); }

.pagination .nav-links,
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 2.5rem; }
.pagination .page-numbers {
	display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 0.6rem;
	border: 1px solid var(--line-2); border-radius: var(--r);
	font-family: var(--ff-mono); font-size: var(--step--1);
	text-decoration: none;
}
.pagination .page-numbers.current { background: var(--pine); color: #fff; border-color: var(--pine); }
.pagination .page-numbers:hover { border-color: var(--pine); }

@media (max-width: 1080px) {
	.mega--guide { width: min(94vw, 760px); }
	.mega--guide .mega__inner { grid-template-columns: 1fr; }
	.mega__latest { border-left: 0; border-top: 1px solid var(--line); }
	.post__grid { grid-template-columns: 1fr; }
	.topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.agrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.acard--feature { grid-template-columns: 1fr; }
	.guide__head-in { flex-direction: column; align-items: flex-start; }
	.guide__search { width: 100%; }
}

@media (max-width: 620px) {
	.agrid { grid-template-columns: 1fr; }
	.topics { grid-template-columns: 1fr; }
	.mega__topics { grid-template-columns: 1fr; }
}
