/*
 * components.css — Squad Website Theme shared UI primitives.
 *
 * Two naming conventions, by emit-source:
 *   • Chrome primitives the theme's own templates/helpers output keep the
 *     `squad-` prefix: .squad-btn (+ variants), .squad-d5-chip.
 *   • Content components rendered by the CPT shortcodes / Divi layouts use the
 *     prototype's unprefixed names (.feature, .module-card, .price-card, .faq,
 *     .quote, .tag, .eyebrow, …) so that markup resolves unchanged.
 *
 * Consumes the --squad-* tokens; no brand hex lives here. Loaded after header
 * and footer in the enqueue chain, so it is the canonical home for .squad-btn
 * and .squad-d5-chip (previously provisional in header.css).
 *
 * @author Al Amin Ahamed
 * @since  4.0.0
 */

/* ===================================================================
   SMOOTH SCROLL — in-page anchor navigation (docs TOC, FAQ jumps)
   =================================================================== */
html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* ===================================================================
   ACCESSIBILITY — visible keyboard focus
   Scoped to the child (body.squad-v4) so wp-admin and the Builder UI keep
   their own focus styling. :focus-visible shows the ring for keyboard users
   without flashing it on mouse clicks.
   =================================================================== */
body.squad-v4 a:focus-visible,
body.squad-v4 button:focus-visible,
body.squad-v4 summary:focus-visible,
body.squad-v4 input:focus-visible,
body.squad-v4 textarea:focus-visible,
body.squad-v4 select:focus-visible,
body.squad-v4 [tabindex="0"]:focus-visible {
	outline: 3px solid var(--squad-violet);
	outline-offset: 2px;
	border-radius: 6px;
}

/* On dark surfaces the violet ring lacks contrast — use a light ring. */
body.squad-v4 .squad-footer a:focus-visible,
body.squad-v4 .price-card.featured a:focus-visible,
body.squad-v4 .page-head a:focus-visible {
	outline-color: var(--squad-white);
}

/* ===================================================================
   BUTTONS — .squad-btn + variants
   =================================================================== */
.squad-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-weight: var(--squad-fw-bold);
	font-size: 0.95rem;
	letter-spacing: -0.01em;
	padding: 13px 24px;
	border-radius: var(--squad-radius-pill);
	border: 1px solid transparent;
	white-space: nowrap;
	cursor: pointer;
	transition: transform 0.25s var(--squad-ease), box-shadow 0.25s var(--squad-ease),
		background 0.25s var(--squad-ease);
}

.squad-btn:active {
	transform: translateY(1px);
}

.squad-btn--primary {
	background: var(--squad-grad-stem);
	color: var(--squad-white);
	box-shadow: var(--squad-shadow-violet);
}

.squad-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: var(--squad-shadow-violet-hover);
}

.squad-btn--ghost {
	background: rgba(94, 46, 255, 0.07);
	color: var(--squad-violet);
	border-color: rgba(94, 46, 255, 0.18);
}

.squad-btn--ghost:hover {
	background: rgba(94, 46, 255, 0.12);
	transform: translateY(-2px);
}

.squad-btn--on-dark {
	background: var(--squad-white);
	color: var(--squad-ink);
}

.squad-btn--on-dark:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.squad-btn--lg {
	padding: 16px 30px;
	font-size: 1rem;
}

/* ===================================================================
   DIVI 5 STATUS CHIP — .squad-d5-chip
   =================================================================== */
.squad-d5-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 0.74rem;
	font-weight: var(--squad-fw-bold);
	letter-spacing: 0.03em;
	padding: 5px 11px 5px 7px;
	border-radius: var(--squad-radius-pill);
	background: rgba(25, 210, 124, 0.12);
	color: var(--squad-green-ink);
	border: 1px solid rgba(25, 210, 124, 0.28);
}

.squad-d5-chip .dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--squad-green);
	color: var(--squad-white);
	display: grid;
	place-items: center;
}

.squad-d5-chip .dot svg {
	width: 9px;
	height: 9px;
}

.squad-d5-chip.is-dark {
	background: rgba(25, 210, 124, 0.1);
	color: var(--squad-green-soft);
	border-color: rgba(25, 210, 124, 0.22);
}

/* ===================================================================
   LAYOUT HELPERS — used by CPT archives/shortcodes and Divi layouts
   =================================================================== */
.wrap {
	width: 100%;
	max-width: var(--squad-maxw);
	margin-inline: auto;
	padding-inline: var(--squad-gutter);
}

.section {
	padding-block: clamp(60px, 8vw, 100px);
}

/* A section directly under a .page-head shouldn't re-apply a full top pad —
   the header already provides separation (its own padding + border). Removes
   the doubled header→content gap site-wide. */
.page-head + .section,
.page-head + section.section {
	padding-top: clamp(36px, 4.5vw, 60px);
}

/* No-results search page holds only the form + message in its single .section —
   drop the tall section padding so they sit close under the header, not marooned
   in whitespace. (WordPress adds `search-no-results` to <body>.) */
body.search-no-results .section {
	padding-block: clamp(36px, 5vw, 64px);
}

/* Section surface + spacing modifiers — replace repeated inline styles
   (background tint, flush/tight top padding) across the section partials. */
.section--tint { background: var(--squad-bg-tint); }
.section--flush-top { padding-top: 0; }
.section--tight-top { padding-top: clamp(32px, 5vw, 40px); }

/* Left-aligned button row: the neutral, non-hero equivalent of .hero-actions
   (which is now centred and hero-scoped). Used by demo-split and any section
   that lays out buttons under left-aligned copy. */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

.head-block {
	max-width: 640px;
}

/* A second head-block stacked below earlier content in the same section. */
.head-block--stacked { margin-top: clamp(48px, 7vw, 72px); }

.head-block.center {
	margin-inline: auto;
}

.head-block h2 {
	font-size: clamp(1.9rem, 3.6vw, 2.7rem);
	margin: 14px 0 16px;
}

/* Filter chips (module/category archives). */
.chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 30px;
	justify-content: center;
}

/* Blog index filter chips read left-aligned under the page head. */
.chip-row--start { justify-content: flex-start; }

.chip {
	font-size: 0.82rem;
	font-weight: var(--squad-fw-semibold);
	padding: 8px 16px;
	border-radius: var(--squad-radius-pill);
	border: 1px solid var(--squad-line-strong);
	color: var(--squad-ink-soft);
	background: var(--squad-white);
	transition: color 0.2s var(--squad-ease), background 0.2s var(--squad-ease),
		border-color 0.2s var(--squad-ease);
}

.chip:hover,
.chip.active {
	background: var(--squad-violet);
	color: var(--squad-white);
	border-color: var(--squad-violet);
}

/* ===================================================================
   EYEBROW / LEAD / PILLS / TAGS
   =================================================================== */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.72rem;
	font-weight: var(--squad-fw-bold);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--squad-violet);
}

.eyebrow::before {
	content: "";
	width: 22px;
	height: 2px;
	background: var(--squad-violet);
	border-radius: 2px;
}

.center .eyebrow {
	justify-content: center;
}

.lead {
	font-size: clamp(1.02rem, 1.4vw, 1.18rem);
	color: var(--squad-ink-soft);
	font-weight: var(--squad-fw-medium);
	max-width: 60ch;
}

.center {
	text-align: center;
}

/* Centred blocks (e.g. pagination) that need separation from the list above. */
.center--spaced { margin-top: clamp(32px, 4vw, 40px); }

.center .lead {
	margin-inline: auto;
}

.grad-text {
	background: var(--squad-grad-text);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Stat pills (dark-surface hero). */
.stat-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 26px;
}
.stat-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.78rem;
	font-weight: var(--squad-fw-extrabold);
	letter-spacing: 0.06em;
	padding: 9px 15px;
	border-radius: var(--squad-radius-pill);
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	color: var(--squad-white);
	backdrop-filter: blur(6px);
}

.stat-pill.accent {
	background: rgba(25, 210, 124, 0.16);
	border-color: rgba(25, 210, 124, 0.4);
	color: var(--squad-green-pale);
}

/* The #ck check glyph inherits currentColor; keep it the solid brand green
   even though the pill's text is the lighter green-pale. */
.stat-pill.accent svg {
	width: 13px;
	height: 13px;
	color: var(--squad-green);
}

.stat-pill b {
	color: var(--squad-lavender);
}

/* Tier tags (free / pro) on cards. */
.tag {
	font-size: 0.72rem;
	font-weight: var(--squad-fw-extrabold);
	letter-spacing: 0.08em;
	padding: 3px 7px;
	border-radius: 6px;
}

.tag-pro {
	background: var(--squad-ink);
	color: var(--squad-white);
}

.tag-free {
	background: rgba(25, 210, 124, 0.14);
	color: var(--squad-green-ink);
}

/* ===================================================================
   FEATURE CARDS
   =================================================================== */
.feature-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 48px;
}

.feature {
	position: relative;
	overflow: hidden;
	background: var(--squad-white);
	border: 1px solid var(--squad-line);
	border-radius: var(--squad-radius-lg);
	padding: 28px;
	transition: transform 0.3s var(--squad-ease), box-shadow 0.3s var(--squad-ease),
		border-color 0.3s var(--squad-ease);
}

.feature:hover {
	transform: translateY(-4px);
	box-shadow: var(--squad-shadow-md);
	border-color: var(--squad-line-strong);
}

.feature .ic {
	width: 48px;
	height: 48px;
	border-radius: 13px;
	background: var(--squad-bg-tint);
	display: grid;
	place-items: center;
	margin-bottom: 18px;
	color: var(--squad-violet);
}

.feature h3 {
	font-size: 1.12rem;
	margin-bottom: 8px;
}

.feature p {
	color: var(--squad-ink-soft);
	font-size: 0.94rem;
}

@media (max-width: 880px) {
	.feature-grid {
		grid-template-columns: 1fr;
	}
}

/* ===================================================================
   MODULE CARDS
   =================================================================== */
.module-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-top: 44px;
}

.module-card {
	position: relative;
	background: var(--squad-white);
	border: 1px solid var(--squad-line);
	border-radius: var(--squad-radius);
	padding: 22px 20px;
	transition: transform 0.3s var(--squad-ease), box-shadow 0.3s var(--squad-ease),
		border-color 0.3s var(--squad-ease);
}

.module-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--squad-shadow-md);
	border-color: rgba(94, 46, 255, 0.3);
}

.module-card .mc-ic {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: linear-gradient(160deg, var(--squad-bg-tint), var(--squad-lilac));
	display: grid;
	place-items: center;
	color: var(--squad-violet);
	margin-bottom: 14px;
}

.module-card h3 {
	font-size: 0.98rem;
	font-weight: var(--squad-fw-bold);
	letter-spacing: -0.01em;
	padding-right: 52px; /* clear the absolutely-positioned tier tag */
}

.module-card p {
	font-size: 0.82rem;
	color: var(--squad-ink-soft);
	margin-top: 5px;
}

.module-card .tag {
	position: absolute;
	top: 16px;
	right: 16px;
}

@media (max-width: 980px) {
	.module-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 520px) {
	.module-grid {
		grid-template-columns: 1fr;
	}
}

/* ===================================================================
   PRICE CARDS
   =================================================================== */
.price-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 50px;
	align-items: stretch;
}

.price-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--squad-white);
	border: 1px solid var(--squad-line);
	border-radius: var(--squad-radius-lg);
	padding: 32px 28px;
	transition: transform 0.3s var(--squad-ease), box-shadow 0.3s var(--squad-ease);
}

.price-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--squad-shadow-md);
}

.price-card.featured {
	border: none;
	background: var(--squad-grad-featured);
	color: var(--squad-white);
	box-shadow: var(--squad-shadow-lg);
	transform: scale(1.03);
}

.price-card.featured:hover {
	transform: scale(1.03) translateY(-5px);
}

.price-badge {
	position: absolute;
	top: -13px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--squad-green);
	color: var(--squad-green-deep);
	font-size: 0.72rem;
	font-weight: var(--squad-fw-extrabold);
	letter-spacing: 0.08em;
	padding: 6px 14px;
	border-radius: var(--squad-radius-pill);
}

.price-card .plan {
	font-size: 0.8rem;
	font-weight: var(--squad-fw-extrabold);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--squad-violet);
}

.price-card.featured .plan {
	color: var(--squad-lavender);
}

.price-card .amount {
	font-size: 2.8rem;
	font-weight: var(--squad-fw-extrabold);
	letter-spacing: -0.03em;
	margin-top: 10px;
}

.price-card .amount span {
	font-size: 0.95rem;
	font-weight: var(--squad-fw-semibold);
	color: var(--squad-ink-soft);
}

.price-card.featured .amount span {
	color: rgba(255, 255, 255, 0.7);
}

.price-card .was {
	font-size: 0.9rem;
	color: var(--squad-ink-soft);
	text-decoration: line-through;
	margin-top: 2px;
}

.price-card.featured .was {
	color: rgba(255, 255, 255, 0.6);
}

.price-card .plan-sites {
	display: block;
	margin-top: 4px;
	font-size: 0.8rem;
	font-weight: var(--squad-fw-semibold);
	color: var(--squad-ink-soft);
}

.price-card.featured .plan-sites {
	color: rgba(255, 255, 255, 0.7);
}

.price-card .lifetime {
	font-size: 0.82rem;
	font-weight: var(--squad-fw-semibold);
	color: var(--squad-violet);
	margin-top: 4px;
}

.price-card.featured .lifetime {
	color: var(--squad-lavender);
}

.price-list {
	list-style: none;
	padding: 0;
	margin: 22px 0;
	display: grid;
	gap: 12px;
	flex: 1;
}

.price-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.92rem;
	font-weight: var(--squad-fw-medium);
}

.price-list .ck {
	width: 20px;
	height: 20px;
	flex: none;
	border-radius: 50%;
	background: rgba(25, 210, 124, 0.16);
	color: var(--squad-green);
	display: grid;
	place-items: center;
	margin-top: 1px;
}

.price-card.featured .price-list .ck {
	background: rgba(25, 210, 124, 0.25);
}

.price-list .ck svg {
	width: 11px;
	height: 11px;
}

@media (max-width: 880px) {
	.price-grid {
		grid-template-columns: 1fr;
	}

	.price-card.featured {
		transform: none;
	}

	.price-card.featured:hover {
		transform: translateY(-5px);
	}
}

/* ===================================================================
   QUOTE / REVIEW CARDS
   =================================================================== */
.quote-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-top: 44px;
}

.quote {
	background: var(--squad-white);
	border: 1px solid var(--squad-line);
	border-radius: var(--squad-radius-lg);
	padding: 28px;
}

.quote .stars {
	color: var(--squad-star);
	letter-spacing: 2px;
	font-size: 0.95rem;
}

.quote p {
	margin: 14px 0 18px;
	font-size: 0.96rem;
	color: var(--squad-ink);
	line-height: 1.65;
}

.quote .who {
	display: flex;
	align-items: center;
	gap: 11px;
}

.quote .av {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--squad-grad-stem);
	color: var(--squad-white);
	display: grid;
	place-items: center;
	font-weight: var(--squad-fw-extrabold);
	font-size: 0.9rem;
}

/* Deterministic per-reviewer variants so same-initial avatars stay distinguishable. */
.quote .av.av-b { background: var(--squad-grad-brand); }
.quote .av.av-c { background: var(--squad-grad-dark); }

.quote .who b {
	font-size: 0.88rem;
}

.quote .who small {
	display: block;
	color: var(--squad-ink-soft);
	font-size: 0.78rem;
}

@media (max-width: 720px) {
	.quote-grid {
		grid-template-columns: 1fr;
	}
}

/* ===================================================================
   FAQ ACCORDION — <details>
   =================================================================== */
.faq {
	max-width: 800px;
	margin-inline: auto;
	margin-top: 44px;
	display: grid;
	gap: 12px;
}

.faq details {
	background: var(--squad-white);
	border: 1px solid var(--squad-line);
	border-radius: var(--squad-radius);
	padding: 4px 22px;
	transition: border-color 0.25s var(--squad-ease), box-shadow 0.25s var(--squad-ease);
}

.faq details[open] {
	border-color: var(--squad-line-strong);
	box-shadow: var(--squad-shadow-sm);
}

.faq summary {
	list-style: none;
	cursor: pointer;
	padding: 18px 0;
	font-weight: var(--squad-fw-bold);
	font-size: 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary .pm {
	position: relative;
	width: 24px;
	height: 24px;
	flex: none;
	border-radius: 50%;
	background: var(--squad-bg-tint);
	transition: transform 0.25s var(--squad-ease), background 0.25s var(--squad-ease);
}

/* Plus/× glyph drawn from two bars instead of a text character — a "+"
   character's ink isn't optically centered in its own em-box (font metrics
   vary), which left it visibly off-center inside the circle. Bars centered
   via top/left/transform are pixel-exact regardless of font. */
.faq summary .pm::before,
.faq summary .pm::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: var(--squad-violet);
	transform: translate(-50%, -50%);
	transition: background 0.25s var(--squad-ease);
}

.faq summary .pm::before {
	width: 10px;
	height: 2px;
}

.faq summary .pm::after {
	width: 2px;
	height: 10px;
}

.faq details[open] summary .pm {
	background: var(--squad-violet);
	transform: rotate(45deg);
}

.faq details[open] summary .pm::before,
.faq details[open] summary .pm::after {
	background: var(--squad-white);
}

.faq p {
	color: var(--squad-ink-soft);
	font-size: 0.94rem;
	padding-bottom: 20px !important;
}

/* ===================================================================
   Generic form + support channels — ported from prototype squad.css
   (.form-card/.field/.channel-grid), tokenized.
   =================================================================== */
.form-card { background: var(--squad-white); border: 1px solid var(--squad-line); border-radius: var(--squad-radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--squad-shadow-sm); margin-top: 36px; }
.support-contact { background: var(--squad-bg-tint); padding-top: clamp(40px, 6vw, 72px); }
.support-contact .wrap { max-width: 760px; }
.form-status { text-align: center; margin-top: 20px; }
.form-status.is-success { color: var(--squad-green); }
.form-status.is-error { color: var(--squad-red); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 7px; color: var(--squad-ink); }
.field input, .field textarea, .field select {
	width: 100%; font-family: var(--squad-font); font-size: .95rem; font-weight: 500; color: var(--squad-ink);
	border: 1px solid var(--squad-line-strong); border-radius: 12px; padding: 12px 14px; background: var(--squad-white); outline: 0; transition: .2s var(--squad-ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--squad-violet); box-shadow: 0 0 0 4px rgba(94, 46, 255, .12); }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.channel { background: var(--squad-white); border: 1px solid var(--squad-line); border-radius: var(--squad-radius-lg); padding: 26px; transition: .3s var(--squad-ease); }
.channel:hover { transform: translateY(-4px); box-shadow: var(--squad-shadow-md); }
.channel .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--squad-grad-stem); color: var(--squad-white); display: grid; place-items: center; margin-bottom: 16px; }
.channel h3 { font-size: 1.04rem; margin-bottom: 6px; }
.channel p { font-size: .9rem; color: var(--squad-ink-soft); margin-bottom: 14px; }
.channel a { font-weight: 700; font-size: .9rem; color: var(--squad-violet); }
@media (max-width: 820px) { .channel-grid { grid-template-columns: 1fr; } }

/* ===================================================================
   REVEAL ON SCROLL — toggled by theme.js (.in)
   =================================================================== */
.reveal {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.7s var(--squad-ease), transform 0.7s var(--squad-ease);
}

.reveal.in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ===================================================================
   PAGE SECTIONS — ported from /_reference (Phase: native templates)
   Carried-over prototype classes; tokens remapped to --squad-*.
   =================================================================== */

/* Button base + variants (prototype `.btn` family, used by the section
   partials; distinct from the chrome `.squad-btn` BEM family). Tokenized. */
.btn {
	display: inline-flex; align-items: center; gap: 9px;
	font-weight: 700; font-size: .95rem; letter-spacing: -.01em;
	padding: 13px 24px; border-radius: var(--squad-radius-pill);
	border: 1px solid transparent;
	transition: transform .25s var(--squad-ease), box-shadow .25s var(--squad-ease), background .25s var(--squad-ease);
	white-space: nowrap; text-decoration: none; cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--squad-grad-stem); color: var(--squad-white); box-shadow: var(--squad-shadow-violet); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--squad-shadow-violet-hover); }
.btn-ghost { background: rgba(94, 46, 255, 0.07); color: var(--squad-violet); border-color: rgba(94, 46, 255, 0.18); }
.btn-ghost:hover { background: rgba(94, 46, 255, 0.12); transform: translateY(-2px); }

/* Button variants for dark surfaces + large size */
.btn-on-dark { background: var(--squad-white); color: var(--squad-ink); }
.btn-on-dark:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25); }
.btn-line-on-dark { background: rgba(255, 255, 255, 0.08); color: var(--squad-white); border-color: rgba(255, 255, 255, 0.25); }
.btn-line-on-dark:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 1rem; }

/* Divi 5 status chip */
.d5-chip {
	display: inline-flex; align-items: center; gap: 7px;
	font-size: .74rem; font-weight: 700; letter-spacing: .03em;
	padding: 5px 11px 5px 7px; border-radius: var(--squad-radius-pill);
	background: rgba(25, 210, 124, 0.12); color: var(--squad-green-ink); border: 1px solid rgba(25, 210, 124, 0.28);
}
.d5-chip .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--squad-green); color: var(--squad-white); display: grid; place-items: center; }
.d5-chip .dot svg { width: 9px; height: 9px; }

/* HERO */
.hero {
	position: relative; overflow: hidden; color: var(--squad-white);
	background: var(--squad-grad-hero);
	padding-block: clamp(60px, 8.5vw, 104px) 0;
}
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: 0;
	background-image: var(--squad-grid-tex);
	background-size: 52px 52px;
	mask-image: radial-gradient(115% 90% at 50% 0%, #000 30%, transparent 76%);
	-webkit-mask-image: radial-gradient(115% 90% at 50% 0%, #000 30%, transparent 76%);
}
.hero::after {
	content: ""; position: absolute; z-index: 0; left: 50%; top: -8%; transform: translateX(-50%);
	width: min(72vw, 680px); aspect-ratio: 1;
	background: url(../img/mark-white.svg) center / contain no-repeat;
	opacity: 0.04; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-inner { max-width: 780px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(2.35rem, 4.8vw, 3.55rem); line-height: 1.06; margin: 22px 0 0; max-width: 16ch; }
/* Hero accent is flat lavender (design refinement) — no longer a gradient
   clip-text wash; keeps the emphasis quiet and on-brand. */
.hero h1 em { font-style: normal; white-space: nowrap; color: var(--squad-lavender); }
.hero .lead { color: rgba(255, 255, 255, 0.78); margin-top: 18px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; justify-content: center; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; margin-top: 26px; color: rgba(255, 255, 255, 0.7); font-size: .85rem; font-weight: 600; justify-content: center; }
.hero-meta b { color: var(--squad-white); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: rgba(201, 184, 255, 0.5); margin-inline: 16px; }

/* HERO module-catalog marquee. Each chip owns its trailing gap via
   margin-right (not flex gap) so the two-copy track is perfectly periodic
   and translateX(-50%) loops seamlessly. */
.hero-strip {
	position: relative; margin-top: clamp(46px, 6vw, 78px);
	padding-block: 4px clamp(52px, 8vw, 92px); overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	        mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.hero-strip__track { display: flex; width: max-content; animation: hero-marquee 52s linear infinite; }
.hero-strip:hover .hero-strip__track,
.hero-strip:focus-within .hero-strip__track { animation-play-state: paused; }
.hero-chip {
	display: inline-flex; align-items: center; gap: 9px; flex: none; margin-right: 12px;
	padding: 10px 18px; border-radius: 999px; white-space: nowrap;
	background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.82); font-size: .86rem; font-weight: 600;
}
.hero-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--squad-lavender); flex: none; }
.hero-chip--more {
	gap: 7px; color: var(--squad-white); text-decoration: none;
	background: rgba(94, 46, 255, 0.24); border-color: rgba(201, 184, 255, 0.38);
	transition: background .25s var(--squad-ease), transform .25s var(--squad-ease);
}
.hero-chip--more::before { display: none; }
.hero-chip--more:hover { background: rgba(94, 46, 255, 0.36); transform: translateY(-1px); }
@keyframes hero-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.hero-strip { overflow-x: auto; }
	.hero-strip__track { animation: none; }
}

/* DEMO SPLIT */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.flip .split-media { order: 2; }
.split-media {
	border-radius: var(--squad-radius-lg); background: var(--squad-grad-brand); aspect-ratio: 4 / 3;
	position: relative; overflow: hidden; box-shadow: var(--squad-shadow-lg);
	display: grid; place-items: center;
}
.split-media::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px); background-size: 22px 22px; }
.split-media__divider { position: relative; width: 58%; display: flex; align-items: center; gap: 14px; }
.split-media__line { flex: 1; height: 3px; border-radius: 2px; background: var(--squad-white); opacity: .9; }
.split-slider .ss-mark { fill: var(--squad-white); }
.split-slider .ss-check { stroke: var(--squad-violet); }
.split-media__logo { flex: none; width: 64px; height: 64px; }
.split h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; }

/* CTA BAND */
.cta-band {
	position: relative; overflow: hidden; text-align: center; color: var(--squad-white);
	background: var(--squad-royal);
	border-radius: var(--squad-radius-lg); padding: clamp(48px, 8vw, 88px) var(--squad-gutter);
}
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: var(--squad-grid-tex); background-size: 52px 52px; mask-image: radial-gradient(120% 120% at 50% 0%, #000 40%, transparent 82%); -webkit-mask-image: radial-gradient(120% 120% at 50% 0%, #000 40%, transparent 82%); }
.cta-band > * { position: relative; }
.cta-band__logo { display: block; margin: 0 auto 18px; }
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.cta-band p { color: rgba(255, 255, 255, 0.78); margin: 16px auto 30px; max-width: 56ch; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 820px) {
	.split { grid-template-columns: 1fr; }
	.split.flip .split-media { order: 0; }
}

/* ===================================================================
   PAGE-HEAD + catalog categories + extensions + guarantee
   (Modules / Pricing) — ported from the prototype's per-page inline
   <style> blocks; tokenized to --squad-*. Carried-over prototype classes.
   =================================================================== */

/* ===================================================================
   PAGE-HEAD — the one light, content-first secondary-page header.
   Used by every public page except the dark bookends (home hero, CTA,
   footer). Carried-over prototype classes tokenized to --squad-*.
   =================================================================== */
.page-head {
	position: relative;
	background: var(--squad-bg-tint);
	border-bottom: 1px solid var(--squad-line);
	padding-block: clamp(44px, 8vw, 72px);
	text-align: center;
}
.page-head .wrap { position: relative; }
.page-head h1 {
	font-size: clamp(2rem, 5vw, 3.2rem);
	margin: 12px auto 14px;
	max-width: 22ch;
}
.page-head .eyebrow { justify-content: center; }
.page-head .lead {
	color: var(--squad-ink-soft);
	margin-inline: auto;
	max-width: 62ch;
}
.page-head .stat-row { justify-content: center; }
.page-head .crumbs { justify-content: center; margin-bottom: 12px; }

/* Article variant — single doc / single post: breadcrumb + meta pills.
   The .doc-meta container flex is re-homed here from the docs single's
   former header-scoped rule (the .doc-meta__item pill styles stay in
   docs.css, which both article views load). */
.page-head--article .doc-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
}

/* Search pill — shared component (docs hub header, search page, anywhere a
   branded search form is rendered via searchform.php). Global so it is not
   stranded in the docs-only stylesheet. Scoped to `form.search` because
   WordPress adds a bare `search` class to <body> on search-result pages —
   an unscoped `.search` would style the whole page body. */
form.search {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 540px;
	margin: 28px auto 0;
	background: var(--squad-white);
	border: 1px solid var(--squad-line);
	border-radius: var(--squad-radius-pill);
	padding: 6px 6px 6px 20px;
	box-shadow: var(--squad-shadow-md);
}
form.search svg { width: 20px; height: 20px; color: var(--squad-ink-soft); flex: none; }
form.search input {
	flex: 1;
	border: 0;
	outline: 0;
	font-family: var(--squad-font);
	font-size: 1rem;
	font-weight: 500;
	color: var(--squad-ink);
	background: transparent;
}
form.search input::placeholder { color: var(--squad-ink-faint); }
/* The submit button reuses .btn.btn-primary (as the docs hub form does). */

/* Stat-row pills (module archive) on the light header. The neutral override
   excludes .accent so the green "compatible" pill keeps its accent on light. */
.page-head .stat-pill:not(.accent) {
	background: var(--squad-white);
	border-color: var(--squad-line);
	color: var(--squad-ink);
	backdrop-filter: none;
}
.page-head .stat-pill.accent {
	background: rgba(25, 210, 124, 0.12);
	border-color: rgba(25, 210, 124, 0.4);
	color: var(--squad-green-ink);
	backdrop-filter: none;
}
.page-head .stat-pill b { color: var(--squad-violet); }

/* Catalog category groups (Modules) */
.cat-title { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.cat-title h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cat-title .n { font-size: .74rem; font-weight: 800; letter-spacing: .06em; color: var(--squad-violet); background: rgba(94, 46, 255, 0.1); padding: 4px 10px; border-radius: var(--squad-radius-pill); }
.cat + .cat { margin-top: 56px; }

/* Extensions grid (Modules) */
.ext-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 40px; }
.ext { background: var(--squad-white); border: 1px solid var(--squad-line); border-radius: var(--squad-radius); padding: 22px; text-align: center; transition: .3s var(--squad-ease); }
.ext:hover { transform: translateY(-4px); box-shadow: var(--squad-shadow-md); border-color: rgba(94, 46, 255, 0.3); }
.ext .ei { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 13px; background: linear-gradient(160deg, var(--squad-bg-tint), var(--squad-lilac)); display: grid; place-items: center; color: var(--squad-violet); }
.ext h3 { font-size: .92rem; }
.ext p { font-size: .78rem; color: var(--squad-ink-soft); margin-top: 5px; }

/* Pricing guarantee line */
.guarantee { display: inline-flex; align-items: center; gap: 9px; margin-top: 42px; font-size: .9rem; font-weight: 600; color: var(--squad-ink-soft); }
.guarantee .g { width: 22px; height: 22px; border-radius: 50%; background: rgba(25, 210, 124, 0.16); color: var(--squad-green); display: grid; place-items: center; }
.guarantee .g svg { width: 12px; height: 12px; }

@media (max-width: 980px) { .ext-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ext-grid { grid-template-columns: 1fr; } }

/* Pricing promo banner — ported from prototype squad.css; tokenized. */
.promo {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px;
	background: var(--squad-grad-promo); color: var(--squad-white);
	border-radius: var(--squad-radius-lg); padding: 22px 28px; text-align: center;
}
.promo .code { font-weight: 800; letter-spacing: .05em; background: rgba(255, 255, 255, 0.12); border: 1px dashed rgba(255, 255, 255, 0.35); padding: 6px 14px; border-radius: 10px; }

/* ===================================================================
   404 — ported from prototype squad.css (.nf), tokenized.
   =================================================================== */
.nf { text-align: center; padding-block: clamp(70px, 12vw, 140px); }
.nf .code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.nf h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 8px 0 14px; }
.nf p { color: var(--squad-ink-soft); max-width: 46ch; margin: 0 auto 28px; }
.nf .search { margin: 34px auto 0; }
/* Action row reuses .cta-actions (defined above) — same reference class. */

/* ===================================================================
   Legal (Privacy) — ported from prototype's scoped <style> in privacy.html.
   =================================================================== */
.legal { max-width: var(--squad-readw); margin-inline: auto; }
.legal h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--squad-ink-soft); font-size: .96rem; line-height: 1.7; }
.legal a { color: var(--squad-violet); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal ul { list-style: disc; padding-left: 20px; margin: 8px 0; }
.legal li { list-style: disc; margin-bottom: 4px; }
.legal .updated { font-size: .84rem; color: var(--squad-ink-soft); margin-top: 10px; }

/* ===================================================================
   Changelog — tabbed Lite/Pro release list.
   =================================================================== */
.cl-tablist { display: inline-flex; gap: 4px; padding: 5px; border-radius: var(--squad-radius-pill); background: var(--squad-bg-tint); border: 1px solid var(--squad-line); margin-bottom: 34px; }
.cl-tab { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: .92rem; color: var(--squad-ink-soft); padding: 8px 22px; border-radius: var(--squad-radius-pill); cursor: pointer; transition: color .2s var(--squad-ease), background .2s var(--squad-ease); }
.cl-tab:hover { color: var(--squad-violet); }
.cl-tab[aria-selected="true"] { background: var(--squad-white); color: var(--squad-violet); box-shadow: var(--squad-shadow-sm); }
.cl-panel { max-width: var(--squad-readw); }
.cl-release { padding: 26px 0; border-top: 1px solid var(--squad-line); }
.cl-release:first-child { border-top: 0; padding-top: 0; }
.cl-release__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.cl-release__ver { font-size: 1.35rem; letter-spacing: -.01em; }
.cl-release__date { font-size: .82rem; color: var(--squad-ink-soft); font-weight: 600; }
/* Release body — rendered from Markdown (Parsedown → wp_kses_post). */
.cl-body { color: var(--squad-ink-soft); line-height: 1.65; font-size: .96rem; }
.cl-body > * + * { margin-top: 14px; }
.cl-body p { margin: 0; }
.cl-body strong { color: var(--squad-ink); font-weight: 700; }
.cl-body h3, .cl-body h4, .cl-body h5 { color: var(--squad-ink); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: var(--squad-ls-wide); margin: 22px 0 2px; }
.cl-body > h3:first-child, .cl-body > h4:first-child, .cl-body > h5:first-child { margin-top: 0; }
.cl-body ul, .cl-body ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.cl-body li { line-height: 1.6; }
.cl-body li > ul, .cl-body li > ol { margin-top: 9px; padding-left: 18px; }
.cl-body li > ul > li { position: relative; padding-left: 16px; }
.cl-body li > ul > li::before { content: ""; position: absolute; left: 3px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--squad-lavender); }
.cl-body a { color: var(--squad-violet); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cl-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; background: var(--squad-bg-tint); padding: 2px 6px; border-radius: var(--squad-radius-sm); color: var(--squad-royal); }
.cl-body pre { background: var(--squad-ink); color: var(--squad-code-text); border-radius: var(--squad-radius); padding: 16px 18px; overflow: auto; font-size: .86rem; line-height: 1.6; }
.cl-body pre code { background: none; color: inherit; padding: 0; }
.cl-body blockquote { border-left: 3px solid var(--squad-violet); background: var(--squad-bg-tint); padding: 10px 16px; border-radius: 0 12px 12px 0; margin: 0; color: var(--squad-ink); }
.cl-tag { display: inline-block; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 6px; margin-right: 7px; vertical-align: 1px; }
.cl-tag--feature, .cl-tag--new { background: rgba(94, 46, 255, 0.12); color: var(--squad-violet); }
.cl-tag--fix { background: rgba(25, 210, 124, 0.16); color: var(--squad-green-ink); }
.cl-tag--enhancement, .cl-tag--improvement, .cl-tag--tweak, .cl-tag--update, .cl-tag--change { background: var(--squad-canvas); color: var(--squad-royal); }
.cl-tag--security { background: rgba(229, 72, 77, 0.12); color: var(--squad-red); }
.changelog-empty { color: var(--squad-ink-soft); }

/* ===================================================================
   Blog — ported from prototype squad.css (.blog-grid/.post-card), tokenized.
   =================================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.post-card { display: flex; flex-direction: column; background: var(--squad-white); border: 1px solid var(--squad-line); border-radius: var(--squad-radius-lg); overflow: hidden; transition: .3s var(--squad-ease); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--squad-shadow-md); border-color: var(--squad-line-strong); }
.post-thumb { aspect-ratio: 16 / 9; background: var(--squad-grad-brand); position: relative; display: grid; place-items: center; }
.post-thumb::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px); background-size: 20px 20px; }
.post-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-thumb .post-thumb__mark { position: relative; inset: auto; width: 88px; height: 88px; object-fit: contain; }
.post-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-cat { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--squad-violet); }
.post-card h3 { font-size: 1.12rem; margin: 10px 0 10px; line-height: 1.25; }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { color: var(--squad-violet); }
.post-card p { font-size: .9rem; color: var(--squad-ink-soft); flex: 1; }
.post-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-size: .82rem; color: var(--squad-ink-soft); font-weight: 600; }
.post-meta a, .post-meta__read { color: var(--squad-violet); font-weight: 700; }
@media (max-width: 880px) { .blog-grid { grid-template-columns: 1fr; } }

/* ===================================================================
   Pagination — for the_posts_pagination() on blog/search.
   =================================================================== */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--squad-radius-pill); border: 1px solid var(--squad-line-strong); color: var(--squad-ink-soft); font-weight: 600; background: var(--squad-white); transition: .2s var(--squad-ease); }
.pagination .page-numbers:hover, .pagination .page-numbers.current { background: var(--squad-violet); color: var(--squad-white); border-color: var(--squad-violet); }

/* ===================================================================
   Entry prose — single post / page body (the_content()).
   =================================================================== */
.entry { max-width: var(--squad-readw); margin-inline: auto; }
.entry > * + * { margin-top: 1.1em; }
.entry h2 { font-size: 1.5rem; margin-top: 1.6em; }
.entry h3 { font-size: 1.2rem; margin-top: 1.4em; }
.entry p, .entry li { color: var(--squad-ink-soft); line-height: 1.75; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry li + li { margin-top: .4em; }
.entry a { color: var(--squad-violet); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.entry img { max-width: 100%; height: auto; border-radius: var(--squad-radius); }
.entry blockquote { border-left: 3px solid var(--squad-violet); background: var(--squad-bg-tint); padding: 14px 18px; border-radius: 0 12px 12px 0; color: var(--squad-ink); }
.entry pre { background: var(--squad-ink); color: var(--squad-white); padding: 16px 18px; border-radius: var(--squad-radius); overflow: auto; font-size: .9rem; }
.entry code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--squad-bg-tint); padding: 2px 6px; border-radius: 6px; color: var(--squad-royal); }
.entry pre code { background: none; color: inherit; padding: 0; }
.entry-pages { margin-top: 24px; }
.entry-back { margin-top: 40px; }

/* Single-post framed figure + article footer + author card. */
.entry-figure { max-width: var(--squad-readw); margin: 0 auto 32px; }
.post-footer { max-width: var(--squad-readw); margin: 40px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 22px; border-top: 1px solid var(--squad-line); }
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.post-tags__label, .post-share__label { font-size: .8rem; font-weight: 700; color: var(--squad-ink-soft); }
.post-tags__tag { font-size: .78rem; font-weight: 600; color: var(--squad-violet); background: var(--squad-bg-tint); border: 1px solid var(--squad-line); border-radius: var(--squad-radius-pill); padding: 5px 12px; transition: .2s var(--squad-ease); }
.post-tags__tag:hover { background: var(--squad-white); border-color: rgba(94, 46, 255, .35); }
.post-share { display: flex; align-items: center; gap: 10px; }
.post-share__btn { display: inline-flex; align-items: center; gap: 8px; color: var(--squad-ink-soft); border: 1px solid var(--squad-line); border-radius: var(--squad-radius-pill); padding: 8px 12px; background: var(--squad-white); cursor: pointer; font: inherit; transition: .2s var(--squad-ease); }
.post-share__btn:hover { color: var(--squad-violet); border-color: rgba(94, 46, 255, .35); transform: translateY(-1px); }
.post-share__copy .post-share__label { font-weight: 600; }
.author-card { max-width: var(--squad-readw); margin: 28px auto 0; display: flex; gap: 16px; align-items: center; background: var(--squad-bg-tint); border: 1px solid var(--squad-line); border-radius: var(--squad-radius); padding: 20px 22px; }
.author-card__avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.author-card__name { display: block; color: var(--squad-ink); font-size: 1rem; }
.author-card__bio { color: var(--squad-ink-soft); font-size: .9rem; line-height: 1.6; margin-top: 4px; }
@media (max-width: 640px) { .post-footer { flex-direction: column; align-items: flex-start; } }

/* Prev/next post navigation — shared by blog single (.entry) and doc single (.doc-body). */
.doc-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.doc-nav a { color: var(--squad-ink-soft); border: 1px solid var(--squad-line); border-radius: var(--squad-radius); padding: 16px 20px; transition: .25s var(--squad-ease); }
.doc-nav a:hover { color: var(--squad-violet); border-color: rgba(94, 46, 255, .35); transform: translateY(-2px); box-shadow: var(--squad-shadow-sm); }
.doc-nav small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--squad-ink-soft); }
.doc-nav b { font-size: .98rem; color: var(--squad-ink); }
.doc-nav .next { text-align: right; }
@media (max-width: 760px) { .doc-nav { grid-template-columns: 1fr; } }

/* ===================================================================
   Dark-band headings — inherit the light container colour.

   The hero / cta-band sections set `color: var(--squad-white)` on their
   container, but Divi's global `h1..h6 { color:#333 }` sets heading colour
   directly and so blocks that inheritance (the hero title was rendering
   near-invisible). Re-inheriting here restores white headings. Loaded after
   tokens.css, so it overrides the brand-ink baseline for these dark contexts.
   `.hero h1 em` is flat lavender (set above), unaffected by this group.
   =================================================================== */
.hero h1,
.cta-band h2,
.cta-band h3 {
	color: inherit;
}

/* The logo lockups are anchors; stop Divi's default link blue bleeding in
   (the marks are SVG, but keep the anchor colour brand-neutral). */
.squad-logo {
	color: inherit;
}
