/*
Theme Name: Candy Shorts AI
Theme URI: https://candy-shorts-ai.com/
Description: Independent knowledge hub about Candy AI and the Candy Shorts series. Dark editorial UI with a pink-to-coral accent, self-hosted variable fonts, typed page data, first-party affiliate links, JSON-LD graph, disk cache. No build step, no jQuery.
Author: Candy Shorts AI Editorial Team
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: csa
*/

@layer reset, tokens, base, layout, components, utilities;

/* ============================== tokens ============================== */
@layer tokens {
	:root {
		color-scheme: dark;
		--page: #101014;
		--panel: #17171d;
		--raised: #1e1e25;
		--hairline: rgba(255, 255, 255, .07);
		--hairline-2: rgba(255, 255, 255, .13);
		--text: #f4f4f7;
		--text-2: #b4b4bf;
		--hint: #8d8d99;
		--control: #74747f;
		--accent: #ff4f8b;
		--accent-soft: #ff8fb5;
		--accent-2: #9b8cff;
		--coral: #ff7a59;
		--on-accent: #15121a;
		--tint: rgba(255, 79, 139, .09);
		--tint-2: rgba(155, 140, 255, .10);
		--spicy: #ffa726;
		--ok: #4ade80;
		--warn: #ff8a8a;
		--warn-bg: rgba(255, 90, 90, .09);
		--ok-bg: rgba(74, 222, 128, .08);
		--cta: linear-gradient(100deg, var(--accent) 0%, var(--coral) 100%);
		--cta-glow: 0 10px 30px -10px rgba(255, 79, 139, .6);
		--shadow-float: 0 24px 48px -12px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .06);
		--shadow-card: 0 16px 32px -14px rgba(0, 0, 0, .75);
		--r-1: 8px;
		--r-2: 12px;
		--r-3: 16px;
		--r-4: 22px;
		--gutter: 16px;
		--head-h: 60px;
		--sidebar-w: 252px;
		--measure: 72ch;
		--font: "DM Sans", "DM Sans Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
		--font-display: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", "DM Sans", ui-sans-serif, system-ui, sans-serif;
		--t-12: .75rem;
		--t-13: .8125rem;
		--t-14: .875rem;
		--t-15: .9375rem;
		--t-16: 1rem;
		--t-18: 1.125rem;
		--t-h3: clamp(1.1rem, 1rem + .5vw, 1.25rem);
		--t-h2: clamp(1.375rem, 1.15rem + 1vw, 1.75rem);
		--t-h1: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem);
		--t-hero: clamp(2.4rem, 1.6rem + 3.6vw, 4.2rem);
		--ease-out: cubic-bezier(.2, .7, .2, 1);
		--ease-in-out: cubic-bezier(.65, 0, .35, 1);
		--dur-1: 120ms;
		--dur-2: 200ms;
		--dur-3: 320ms;
		--s-2: 8px;
		--s-3: 12px;
		--s-4: 16px;
		--s-5: 24px;
		--s-6: 32px;
		--s-7: 48px;
		--s-8: 64px;
	}
	@media (min-width: 768px) { :root { --gutter: 28px; } }
	@media (min-width: 1024px) { :root { --head-h: 68px; } }
	@media (prefers-reduced-motion: reduce) { :root { --dur-1: 0ms; --dur-2: 0ms; --dur-3: 0ms; } }
}

/* ============================== reset ============================== */
@layer reset {
	*, *::before, *::after { box-sizing: border-box; }
	html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 1rem); }
	body { margin: 0; min-height: 100svh; }
	img, svg, video { max-width: 100%; height: auto; display: block; }
	[hidden] { display: none !important; }
	button, input, select, textarea { font: inherit; color: inherit; }
	button { background: none; border: 0; padding: 0; cursor: pointer; }
	h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
	ul, ol { padding: 0; }
	a { color: inherit; }
	summary { list-style: none; }
	summary::-webkit-details-marker { display: none; }
	:focus { outline: none; }
	:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
}

/* ============================== base ============================== */
@layer base {
	body {
		background: var(--page);
		color: var(--text);
		font: 400 15px/1.6 var(--font);
		font-optical-sizing: auto;
		overflow-wrap: break-word;
		-webkit-font-smoothing: antialiased;
	}
	@media (min-width: 768px) { body { font-size: 16px; } }
	body::before {
		content: "";
		position: fixed;
		inset: 0;
		z-index: -1;
		pointer-events: none;
		background:
			radial-gradient(60% 40% at 55% -10%, rgba(255, 79, 139, .13), transparent 70%),
			radial-gradient(40% 30% at 0% 20%, rgba(155, 140, 255, .08), transparent 70%);
	}
	h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); text-wrap: balance; letter-spacing: -.02em; }
	h1 { font-size: var(--t-h1); line-height: 1.06; font-weight: 800; letter-spacing: -.03em; }
	h2 { font-size: var(--t-h2); line-height: 1.18; font-weight: 700; }
	h3 { font-size: var(--t-h3); line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
	p { text-wrap: pretty; }
	a { color: var(--accent-soft); text-decoration: none; text-underline-offset: .18em; }
	a:hover { text-decoration: underline; }
	strong, b { color: var(--text); font-weight: 700; }
	small { font-size: var(--t-13); }
	::selection { background: rgba(255, 79, 139, .35); color: #fff; }
	main { container-type: inline-size; container-name: content; }
}

/* ============================== layout ============================== */
@layer layout {
	.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
	.layout { display: block; padding-bottom: var(--s-8); }
	.main { min-width: 0; }
	.section { padding-block: clamp(1.75rem, 3.5vw, 3rem); }
	.section--rail { padding-top: 0; }
	.article__body > * + *, .article__cols > * + * { margin-top: var(--s-5); }
	.article__cols > .prose { margin-top: var(--s-6); }
	.prose, .lede, .answer, .faq, .meta, .toc__inline, .crumbs, .page-head, .cta-box, .pager { max-width: var(--measure); }
	.article--home .prose { max-width: var(--measure); }

	@media (min-width: 1024px) {
		.layout {
			display: grid;
			grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
			column-gap: clamp(1.75rem, 3vw, 3.25rem);
			align-items: start;
		}
		.main { padding-left: clamp(1.75rem, 3vw, 3.25rem); border-left: 1px solid var(--hairline); min-height: calc(100vh - var(--head-h)); }
	}
	@media (min-width: 1280px) {
		.article__body { max-width: calc(var(--measure) + 240px + clamp(2rem, 4vw, 3.5rem)); }
		.article--home .article__body, .article--index .article__body { max-width: none; }
		.article__cols {
			display: grid;
			grid-template-columns: minmax(0, var(--measure)) minmax(200px, 240px);
			column-gap: clamp(2rem, 4vw, 3.5rem);
			align-items: start;
		}
		.article__cols > * { grid-column: 1; margin-top: var(--s-5); }
		.article__cols > :first-child { margin-top: 0; }
		.article__cols > .toc { grid-column: 2; grid-row: 1 / span 60; position: sticky; top: calc(var(--head-h) + 1.5rem); margin-top: 0; align-self: start; max-height: calc(100vh - var(--head-h) - 3rem); overflow: auto; scrollbar-width: thin; }
		.article--index .article__cols { grid-template-columns: minmax(0, 1fr); }
		.article--index .article__cols > .toc { position: static; grid-column: 1; grid-row: auto; margin-top: var(--s-5); }
	}
}

/* ============================== components ============================== */
@layer components {

	/* ---- header ---- */
	.site-head { position: sticky; top: 0; z-index: 40; background: transparent; border-bottom: 1px solid transparent; transition: background var(--dur-2), border-color var(--dur-2); }
	.site-head.is-scrolled { background: rgba(16, 16, 20, .86); border-bottom-color: var(--hairline); }
	@media (min-width: 1024px) { .site-head.is-scrolled { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); } }
	@media (prefers-reduced-transparency: reduce) { .site-head.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--page); } }
	@media screen and (min-width: 783px) { body.admin-bar .site-head { top: 32px; } }
	@media screen and (max-width: 782px) { body.admin-bar .site-head { top: 46px; } }
	.site-head__inner { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: .75rem; min-height: var(--head-h); }
	.nav-toggle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--hairline); color: var(--text); }
	@media (min-width: 1024px) { .site-head__inner { grid-template-columns: auto 1fr auto; } .site-head .nav-toggle { display: none; } }
	.nav-toggle__icon { width: 20px; height: 20px; }
	.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; }
	.brand:hover { text-decoration: none; }
	.brand__mark svg { width: 34px; height: 34px; }
	.brand__text { display: flex; flex-direction: column; line-height: 1; }
	.brand__name { font: 800 var(--t-18)/1 var(--font-display); letter-spacing: -.03em; white-space: nowrap; }
	.brand__name em { font-style: normal; background: var(--cta); -webkit-background-clip: text; background-clip: text; color: transparent; }
	.brand__tag { margin-top: .3rem; font: 600 var(--t-12)/1 var(--font); letter-spacing: .04em; color: var(--hint); }
	@media (max-width: 639px) { .brand__tag { display: none; } .brand__name { font-size: var(--t-16); } }
	.topnav { display: none; }
	@media (min-width: 1024px) {
		.topnav { display: flex; gap: .25rem; justify-content: center; }
		.topnav a { padding: .45rem .8rem; border-radius: 999px; font: 500 var(--t-14)/1 var(--font); color: var(--text-2); }
		.topnav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); text-decoration: none; }
		.topnav a[aria-current="page"] { color: var(--text); background: var(--tint); }
	}
	.site-head__cta { justify-self: end; }
	@media (max-width: 479px) { .site-head__cta .site-head__cta-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .site-head__cta { width: 40px; height: 40px; padding: 0; min-height: 40px; border-radius: 10px; } .site-head__cta .btn__icon { margin: 0; } }
	.head-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }
	.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 41; pointer-events: none; }
	body.admin-bar .progress { top: 32px; }
	.progress__bar { display: block; height: 100%; width: 100%; background: var(--cta); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 80ms linear; }
	body:not(.kind-guide):not(.kind-series):not(.kind-creator) .progress { display: none; }

	/* ---- buttons ---- */
	.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .75rem 1.35rem; border-radius: 12px; font: 700 var(--t-14)/1.1 var(--font); letter-spacing: -.005em; border: 0; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background var(--dur-1), color var(--dur-1), translate var(--dur-2) var(--ease-out), scale 60ms; }
	.btn:hover { text-decoration: none; }
	.btn:active { scale: .98; transition-duration: 60ms; }
	.btn__icon { width: 16px; height: 16px; flex: none; }
	.btn__icon--end { order: 2; }
	.btn--primary { background: var(--cta); color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
	.btn--primary::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--cta-glow); opacity: 0; transition: opacity var(--dur-2); pointer-events: none; }
	.btn--primary:hover { color: var(--on-accent); translate: 0 -1px; }
	.btn--primary:hover::after { opacity: 1; }
	.btn--primary:focus-visible { outline-color: #fff; }
	.btn--ghost { background: rgba(255, 255, 255, .06); border: 1px solid var(--hairline-2); color: var(--text); }
	.btn--ghost:hover { background: rgba(255, 255, 255, .1); color: var(--text); }
	.btn--sm { min-height: 36px; padding: .5rem 1rem; font-size: var(--t-13); border-radius: 10px; }
	.btn--lg { min-height: 50px; padding: .9rem 1.6rem; font-size: var(--t-15); }
	.btn--block { width: 100%; }
	.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: var(--s-5); }
	.cta-box .btn, .series-head__cta .btn, .hero__cta .btn, .age-gate__actions .btn { white-space: normal; max-width: 100%; text-align: center; }
	.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font: 600 var(--t-14)/1.2 var(--font); color: var(--text-2); text-decoration: none; }
	.link-arrow:hover { color: var(--text); text-decoration: none; }
	.link-arrow__icon { width: 16px; height: 16px; transition: translate var(--dur-2) var(--ease-out); }
	.link-arrow:hover .link-arrow__icon { translate: 3px 0; }
	.linklike { color: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
	.cta-note { display: block; margin-top: .5rem; font: 500 var(--t-12)/1.3 var(--font); color: var(--hint); }

	/* ---- chips / pills / tags ---- */
	.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--s-4); }
	.chip { display: inline-flex; align-items: center; gap: .35rem; min-height: 32px; padding: .35rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--hairline-2); color: var(--text-2); font: 600 var(--t-13)/1 var(--font); white-space: nowrap; transition: background var(--dur-1), color var(--dur-1), border-color var(--dur-1); }
	button.chip:hover { color: var(--text); background: rgba(255, 255, 255, .09); }
	.chip.is-active, .chip[aria-pressed="true"] { background: var(--tint); border-color: rgba(255, 79, 139, .45); color: var(--text); font-weight: 700; }
	button.chip[aria-pressed="true"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
	.chip__n { color: var(--hint); font-weight: 500; }
	.chip--static { min-height: 28px; padding: .25rem .65rem; font-size: var(--t-12); }
	.chip--spicy { color: var(--spicy); border-color: rgba(255, 167, 38, .45); }
	.pill { display: inline-flex; align-items: center; padding: .2rem .5rem; border-radius: 6px; background: var(--cta); color: var(--on-accent); font: 800 var(--t-12)/1 var(--font); letter-spacing: .02em; }
	.pill--muted { background: rgba(255, 255, 255, .1); color: var(--text-2); }
	.tag, .kicker { display: inline-block; font: 600 var(--t-12)/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--hint); }
	.kicker { margin-bottom: .7rem; }

	/* ---- hero ---- */
	.hero { position: relative; display: grid; gap: var(--s-6); align-items: center; padding: clamp(1.25rem, 4cqw, 3rem) 0 clamp(1rem, 3cqw, 2rem); isolation: isolate; overflow: clip; }
	@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
	.hero__glow { position: absolute; inset: -10% -20% auto; height: 70%; z-index: -1; pointer-events: none; background: radial-gradient(50% 60% at 30% 40%, rgba(255, 79, 139, .18), transparent 70%), radial-gradient(40% 50% at 80% 30%, rgba(155, 140, 255, .16), transparent 70%); filter: blur(10px); }
	.hero__eyebrow { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1rem; font: 600 var(--t-13)/1 var(--font); color: var(--accent-soft); }
	.hero__eyebrow-icon { width: 16px; height: 16px; }
	.hero__title { font-size: var(--t-hero); line-height: 1.02; }
	.hero__brand { display: block; background: linear-gradient(100deg, #fff 30%, var(--accent-soft) 70%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .1em; }
	.hero__tag { display: block; margin-top: .55rem; font: 700 clamp(1.1rem, 1rem + .8vw, 1.5rem)/1.25 var(--font); letter-spacing: -.015em; color: var(--text); max-width: 28ch; }
	.hero__lede { margin-top: 1.1rem; max-width: 52ch; font-size: var(--t-16); line-height: 1.65; color: var(--text-2); }
	.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 1.5rem; }
	.hero__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; list-style: none; }
	.hero__collage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 300px; padding-block: 1rem; perspective: 900px; }
	.hero__poster { position: absolute; width: clamp(120px, 34%, 170px); aspect-ratio: 2 / 3; border-radius: 14px; overflow: clip; box-shadow: 0 28px 50px -18px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(255, 255, 255, .1); transform: translateX(calc((var(--i) - 2) * 32%)) rotate(calc((var(--i) - 2) * 6deg)) translateY(calc((var(--i) - 2) * (var(--i) - 2) * 6px)); transition: transform var(--dur-3) var(--ease-out); z-index: calc(3 - (var(--i) - 2) * (var(--i) - 2)); }
	.hero__poster:nth-child(3) { z-index: 5; }
	.hero__poster img { width: 100%; height: 100%; object-fit: cover; }
	.hero__collage:hover .hero__poster { transform: translateX(calc((var(--i) - 2) * 38%)) rotate(calc((var(--i) - 2) * 7deg)) translateY(calc((var(--i) - 2) * (var(--i) - 2) * 4px)); }
	@media (max-width: 899px) {
		.hero__collage { min-height: 250px; order: -1; }
		.hero__poster { width: 30%; transform: translateX(calc((var(--i) - 2) * 26%)) rotate(calc((var(--i) - 2) * 5deg)) translateY(calc((var(--i) - 2) * (var(--i) - 2) * 5px)); }
		.hero__collage:hover .hero__poster { transform: translateX(calc((var(--i) - 2) * 28%)) rotate(calc((var(--i) - 2) * 6deg)) translateY(calc((var(--i) - 2) * (var(--i) - 2) * 4px)); }
	}

	/* ---- section heads ---- */
	.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: var(--s-4); }
	.sec-head h2 { font-weight: 800; }
	.sec-head__sub { flex: 0 0 100%; width: 100%; max-width: 62ch; color: var(--text-2); font-size: var(--t-15); margin-top: -.25rem; margin-bottom: var(--s-4); }
	.section > .sec-head__sub { margin-top: -.75rem; }

	/* ---- link cards ---- */
	.cards { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; }
	.cards--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
	.card { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.15rem 1.25rem 1.2rem; border-radius: var(--r-3); background: var(--panel); border: 1px solid var(--hairline); transition: border-color var(--dur-2), background var(--dur-2), translate var(--dur-2) var(--ease-out); }
	.card:hover, .card:focus-within { border-color: var(--hairline-2); background: var(--raised); translate: 0 -2px; }
	.card__title { font: 700 var(--t-16)/1.3 var(--font-display); letter-spacing: -.01em; color: var(--text); padding-right: 1.5rem; }
	.card__link { color: inherit; text-decoration: none; }
	.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
	.card__link:focus-visible { outline: none; }
	.card:has(.card__link:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
	.card__link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
	.card__desc { font-size: var(--t-14); line-height: 1.5; color: var(--text-2); }
	.card__arrow { position: absolute; top: 1.15rem; right: 1.1rem; width: 18px; height: 18px; color: var(--hint); transition: translate var(--dur-2) var(--ease-out), color var(--dur-2); }
	.card:hover .card__arrow { translate: 3px 0; color: var(--accent-soft); }

	/* ---- poster cards ---- */
	.card-grid { display: grid; gap: 1rem .9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); position: relative; }
	@container content (min-width: 520px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
	@container content (min-width: 760px) { .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem 1.1rem; } }
	@container content (min-width: 1000px) { .card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
	@container content (min-width: 1240px) { .card-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
	@supports not (container-type: inline-size) {
		@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
		@media (min-width: 1200px) { .card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
	}
	@media (max-width: 639px) {
		.card-grid--rail { display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: .25rem var(--gutter) 1rem; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
		.card-grid--rail::-webkit-scrollbar { display: none; }
		.card-grid--rail .card-grid__item { flex: 0 0 42%; scroll-snap-align: start; }
	}
	.card-grid__item[hidden] { display: none !important; }
	.card-grid__empty { grid-column: 1 / -1; color: var(--hint); font-size: var(--t-14); padding: 1rem 0; }
	.pcard { position: relative; display: grid; gap: .55rem; }
	.pcard__thumb { position: relative; aspect-ratio: 2 / 3; border-radius: 14px; overflow: clip; background: var(--raised); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); transition: translate var(--dur-2) var(--ease-out); }
	.pcard__thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--shadow-card); opacity: 0; transition: opacity var(--dur-2); pointer-events: none; }
	.pcard__thumb img { width: 100%; height: 100%; object-fit: cover; transition: scale var(--dur-3) var(--ease-out); }
	.pcard:hover .pcard__thumb, .pcard:focus-within .pcard__thumb { translate: 0 -4px; }
	.pcard:hover .pcard__thumb::after { opacity: 1; }
	.pcard:hover .pcard__thumb img { scale: 1.035; }
	.pcard__badge { position: absolute; top: .6rem; left: .6rem; z-index: 2; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .55rem; border-radius: 7px; font: 700 var(--t-12)/1 var(--font); background: rgba(10, 10, 14, .62); color: #fff; border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(4px); }
	.pcard__badge.is-new::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
	.pcard__badge.is-flagship { background: var(--cta); color: var(--on-accent); border-color: transparent; }
	.pcard__spicy { position: absolute; top: .6rem; right: .6rem; z-index: 2; padding: .28rem .5rem; border-radius: 7px; font: 700 var(--t-12)/1 var(--font); color: var(--spicy); background: rgba(10, 10, 14, .78); border: 1px solid rgba(255, 167, 38, .5); }
	.pcard__caption { padding-inline: .15rem; }
	.pcard__title { font: 600 var(--t-14)/1.3 var(--font-display); letter-spacing: -.01em; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.pcard__link { color: inherit; text-decoration: none; }
	.pcard__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
	.pcard__link:focus-visible { outline: none; }
	.pcard:has(.pcard__link:focus-visible) .pcard__thumb { outline: 3px solid var(--accent); outline-offset: 3px; }
	.pcard__link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
	.pcard__meta { margin-top: .2rem; font: 500 var(--t-12)/1.3 var(--font); color: var(--hint); font-variant-numeric: tabular-nums; }
	.img-fallback { display: block; width: 100%; height: 100%; background: linear-gradient(160deg, var(--raised), var(--panel)); }

	/* ---- page head / meta / crumbs ---- */
	.crumbs { font: 500 var(--t-13)/1.3 var(--font); color: var(--hint); }
	.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; }
	.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--control); }
	.crumbs a { display: inline-block; padding: .3rem 0; color: var(--hint); }
	.crumbs a:hover { color: var(--text); }
	.crumbs [aria-current] { color: var(--text-2); }
	.page-head__title { margin-bottom: .6rem; }
	.lede { font-size: var(--t-18); line-height: 1.55; color: var(--text-2); font-weight: 400; margin-top: .9rem; }
	.meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.1rem; font: 500 var(--t-13)/1.3 var(--font); color: var(--hint); }
	.meta > span { display: inline-flex; align-items: center; gap: .4rem; }
	.meta__icon { width: 15px; height: 15px; }
	.meta time { color: var(--text-2); }

	/* ---- answer ---- */
	.answer { position: relative; padding: 1.2rem 1.4rem 1.3rem; border-radius: var(--r-3); background: linear-gradient(135deg, rgba(255, 79, 139, .16), rgba(155, 140, 255, .07) 55%, transparent); border: 1px solid rgba(255, 79, 139, .3); scroll-margin-top: calc(var(--head-h) + 1rem); }
	.answer__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 1rem; margin-bottom: .6rem; }
	.answer__label { display: inline-flex; align-items: center; gap: .4rem; font: 700 var(--t-12)/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-soft); }
	.answer__icon { width: 16px; height: 16px; }
	.answer__date { font: 500 var(--t-12)/1 var(--font); color: var(--hint); }
	.answer__text { font: 500 var(--t-18)/1.55 var(--font); color: var(--text); }
	.answer__text a { color: var(--accent-soft); text-decoration: underline; }

	/* ---- toc ---- */
	.toc__label { display: flex; align-items: center; gap: .5rem; font: 700 var(--t-12)/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--hint); }
	.toc__icon, .toc__chev { width: 16px; height: 16px; }
	.toc__chev { margin-left: auto; rotate: 90deg; transition: rotate var(--dur-2) var(--ease-out); }
	.toc__inline[open] .toc__chev { rotate: -90deg; }
	.toc__inline { border: 1px solid var(--hairline); border-radius: var(--r-2); background: var(--panel); }
	.toc__inline summary { padding: .85rem 1rem; cursor: pointer; }
	.toc__inline .toc__list { padding: 0 1rem 1rem; }
	.toc__sticky { display: none; }
	.toc__list { list-style: none; counter-reset: toc; margin-top: .4rem; }
	.toc__list li { counter-increment: toc; }
	.toc__list a { display: block; padding: .35rem 0 .35rem .85rem; border-left: 2px solid var(--hairline); font: 500 var(--t-13)/1.4 var(--font); color: var(--hint); text-decoration: none; transition: color var(--dur-1), border-color var(--dur-1); }
	.toc__list a:hover { color: var(--text); }
	.toc__list a[aria-current="location"] { color: var(--text); border-left-color: var(--accent); }
	@media (min-width: 1280px) {
		.article--guide .toc__inline, .article--series .toc__inline, .article--creator .toc__inline { display: none; }
		.article--guide .toc__sticky, .article--series .toc__sticky, .article--creator .toc__sticky { display: block; }
	}

	/* ---- prose ---- */
	.prose { font-size: var(--t-16); }
	.prose > * + * { margin-top: 1.1em; }
	.prose p, .prose li { color: var(--text-2); font-size: 1.0625rem; line-height: 1.72; }
	.prose h2 { margin-top: 2.4em; scroll-margin-top: calc(var(--head-h) + 1.25rem); }
	.prose h3 { margin-top: 1.8em; scroll-margin-top: calc(var(--head-h) + 1.25rem); }
	.prose h2 + *, .prose h3 + * { margin-top: .75em; }
	.prose ul, .prose ol { padding-left: 1.25em; }
	.prose li + li { margin-top: .45em; }
	.prose li::marker { color: var(--accent-soft); }
	.prose a { color: var(--accent-soft); text-decoration: underline; text-decoration-color: rgba(255, 143, 181, .35); }
	.prose a:hover { text-decoration-color: currentColor; }
	.prose figure img { border-radius: var(--r-3); }
	.prose figcaption { margin-top: .5rem; font-size: var(--t-13); color: var(--hint); }
	.prose .aside { position: relative; margin-block: 1.6em; padding: 1rem 1.15rem 1rem 3.1rem; border-radius: var(--r-2); background: var(--tint-2); border: 1px solid rgba(155, 140, 255, .22); color: var(--text); font-size: 1.0625rem; line-height: 1.6; font-style: italic; }
	.prose .aside::before { content: ""; position: absolute; left: 1rem; top: 1.05rem; width: 20px; height: 20px; background: currentColor; color: var(--accent-2); mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M7 7h5v6H8a3 3 0 0 0-3 3v1H3v-4a6 6 0 0 1 4-6z'/><path d='M17 7h4v6h-3a3 3 0 0 0-3 3v1h-2v-4a6 6 0 0 1 4-6z'/></svg>") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M7 7h5v6H8a3 3 0 0 0-3 3v1H3v-4a6 6 0 0 1 4-6z'/><path d='M17 7h4v6h-3a3 3 0 0 0-3 3v1h-2v-4a6 6 0 0 1 4-6z'/></svg>") center / contain no-repeat; }
	.prose .aside::after { content: "Editor's note"; position: absolute; top: -.6rem; left: 2.9rem; padding: .1rem .5rem; border-radius: 5px; background: var(--page); color: var(--accent-2); font: 700 var(--t-12)/1.3 var(--font); font-style: normal; letter-spacing: .06em; text-transform: uppercase; }
	.note { padding: 1rem 1.2rem; border-radius: var(--r-2); background: var(--panel); border: 1px solid var(--hairline); }
	.note p { color: var(--text-2); }
	.note p + p { margin-top: .6em; }
	.note-warn { background: var(--warn-bg); border-color: rgba(255, 138, 138, .3); }
	.note-warn p { color: #ffd0d0; }
	.note-ok { background: var(--ok-bg); border-color: rgba(74, 222, 128, .3); }
	.note-ok p { color: #c8f5d6; }
	.note-info { background: var(--tint-2); border-color: rgba(155, 140, 255, .28); }
	.note-info p { color: #e6e1ff; }
	.stats { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-block: 1.4em; }
	.stat { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.05rem; border-radius: var(--r-2); background: var(--panel); border: 1px solid var(--hairline); }
	.stat b { font: 800 clamp(1.4rem, 1.2rem + 1vw, 1.8rem)/1.05 var(--font-display); letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
	.stat span { font-size: var(--t-13); color: var(--hint); }
	.article__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-3); box-shadow: var(--shadow-card); }
	.article__figure figcaption { margin-top: .5rem; font-size: var(--t-13); color: var(--hint); }

	/* ---- tables ---- */
	.tbl-wrap { border-radius: var(--r-2); background: var(--panel); border: 1px solid var(--hairline); overflow: hidden; }
	.tbl-wrap:not(.tbl-wrap--kv) { overflow-x: auto; background: linear-gradient(90deg, var(--panel) 30%, transparent) left, linear-gradient(270deg, var(--panel) 30%, transparent) right, linear-gradient(90deg, rgba(0, 0, 0, .5), transparent) left, linear-gradient(270deg, rgba(0, 0, 0, .5), transparent) right, var(--panel); background-repeat: no-repeat; background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%, auto; background-attachment: local, local, scroll, scroll, scroll; }
	.tbl-wrap:focus-visible { outline-offset: 2px; }
	.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--t-15); }
	.tbl thead th { position: sticky; top: 0; text-align: left; padding: .75rem 1rem; font: 700 var(--t-12)/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--hint); background: var(--raised); border-bottom: 1px solid var(--hairline); }
	.tbl tbody td, .tbl tbody th { padding: .85rem 1rem; border-bottom: 1px solid var(--hairline); color: var(--text-2); vertical-align: top; text-align: left; line-height: 1.5; }
	.tbl tbody tr:last-child td, .tbl tbody tr:last-child th { border-bottom: 0; }
	.tbl tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .015); }
	.tbl tbody td:first-child, .tbl tbody th { color: var(--text); font-weight: 600; }
	.tbl td a, .tbl th a { color: var(--accent-soft); }
	.tbl--kv { display: grid; grid-template-columns: minmax(100px, max-content) 1fr; }
	.tbl--kv tbody, .tbl--kv tr { display: contents; }
	.tbl--kv th, .tbl--kv td { display: block; }
	.tbl--kv th { font: 600 var(--t-13)/1.5 var(--font); color: var(--hint); }
	.tbl--kv caption { display: none; }
	@media (max-width: 639px) {
		.tbl:not(.tbl--kv) thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
		.tbl:not(.tbl--kv) tbody tr { display: grid; gap: .35rem; padding: .9rem 1rem; border-bottom: 1px solid var(--hairline); }
		.tbl:not(.tbl--kv) tbody tr:last-child { border-bottom: 0; }
		.tbl:not(.tbl--kv) tbody td { padding: 0; border: 0; background: none !important; }
		.tbl:not(.tbl--kv) tbody td[data-label]::before { content: attr(data-label); display: block; font: 700 var(--t-12)/1.2 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--hint); margin-bottom: .15rem; }
	}

	/* ---- series head ---- */
	.series-head { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 1rem 1.1rem; align-items: start; }
	.series-head__poster { position: relative; aspect-ratio: 2 / 3; border-radius: 14px; overflow: clip; background: var(--raised); box-shadow: 0 24px 48px -18px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .08); }
	.series-head__poster img { width: 100%; height: 100%; object-fit: cover; }
	.series-head__title { font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.4rem); }
	.series-head__lede { font-size: var(--t-16); margin-top: .7rem; }
	.series-head__facts { grid-column: 1 / -1; display: grid; gap: var(--s-4); }
	.series-head__cta { display: flex; flex-direction: column; align-items: flex-start; }
	.series-head__facts .meta { margin-top: 0; }
	@container content (min-width: 720px) {
		.series-head { grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: 1.25rem 2rem; }
		.series-head__poster { grid-row: 1 / span 2; }
		.series-head__facts { grid-column: 2; }
	}
	.specs { display: grid; gap: .55rem; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); grid-auto-flow: dense; list-style: none; }
	@media (max-width: 399px) { .series-head { grid-template-columns: 96px minmax(0, 1fr); } }
	.spec { display: flex; flex-direction: column; gap: .3rem; padding: .75rem .85rem; border-radius: 10px; background: var(--panel); border: 1px solid var(--hairline); min-width: 0; }
	.spec--tags, .spec--free, .spec--creator { grid-column: span 2; }
	.spec__label { font: 700 var(--t-12)/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--hint); }
	.spec__value { font: 700 var(--t-16)/1.25 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
	.spec__chips { display: flex; flex-wrap: wrap; gap: .35rem; }
	.spec__status { display: inline-flex; align-items: center; gap: .45rem; }
	.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
	.dot--muted { background: var(--control); box-shadow: none; }
	.spec__value--free { font-size: var(--t-14); }
	.ep-strip { display: flex; flex-wrap: wrap; gap: 3px; list-style: none; margin-top: .1rem; }
	.ep-strip li { width: 12px; height: 16px; border-radius: 3px; border: 1px solid var(--hairline-2); }
	.ep-strip li.is-free { background: var(--cta); border-color: transparent; }
	.spec__hint { font: 500 var(--t-12)/1.2 var(--font); color: var(--hint); }
	.spec__creator { display: inline-flex; align-items: center; gap: .5rem; color: var(--accent-soft); text-decoration: none; }
	.spec__creator:hover { text-decoration: underline; }
	.avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; }

	/* ---- cta box ---- */
	.cta-box { display: grid; gap: 1rem; padding: 1.4rem 1.5rem; border-radius: var(--r-3); background: linear-gradient(135deg, rgba(255, 79, 139, .12), rgba(155, 140, 255, .08)); border: 1px solid rgba(255, 79, 139, .25); }
	@container content (min-width: 640px) { .cta-box { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
	.cta-box__title { font: 800 var(--t-h3)/1.25 var(--font-display); letter-spacing: -.015em; }
	.cta-box__text { margin-top: .35rem; color: var(--text-2); font-size: var(--t-15); }
	.cta-box__action { display: flex; flex-direction: column; align-items: flex-start; }
	@container content (min-width: 640px) { .cta-box__action { align-items: flex-end; text-align: right; } }

	/* ---- faq ---- */
	.faq h2 { margin-bottom: 1rem; }
	.faq__list { border: 1px solid var(--hairline); border-radius: var(--r-3); background: var(--panel); overflow: clip; }
	.faq__item + .faq__item { border-top: 1px solid var(--hairline); }
	.faq__item summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; cursor: pointer; font: 600 var(--t-16)/1.4 var(--font); color: var(--text); transition: background var(--dur-1); }
	.faq__item summary:hover { background: rgba(255, 255, 255, .03); }
	.faq__item summary:focus-visible { outline-offset: -3px; }
	.faq__chev { flex: none; width: 18px; height: 18px; margin-top: .15rem; color: var(--text-2); rotate: 90deg; transition: rotate var(--dur-2) var(--ease-out); }
	.faq__item[open] .faq__chev { rotate: -90deg; }
	.faq__body { padding: 0 1.2rem 1.15rem; }
	.faq__body p { font-size: var(--t-16); line-height: 1.65; color: var(--text-2); }
	.faq__body a, .note a, .sec-head__sub a, .lede a { text-decoration: underline; text-decoration-color: rgba(255, 143, 181, .45); }
	.faq__item { scroll-margin-top: calc(var(--head-h) + 1rem); }
	@supports (interpolate-size: allow-keywords) {
		:root { interpolate-size: allow-keywords; }
		.faq__item::details-content { block-size: 0; overflow: clip; transition: block-size var(--dur-3) var(--ease-out), content-visibility var(--dur-3) allow-discrete; }
		.faq__item[open]::details-content { block-size: auto; }
	}

	/* ---- related / pager ---- */
	.related h2 { margin-bottom: 1rem; }
	.pager { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
	.pager__link { display: flex; align-items: center; gap: .6rem; padding: .9rem 1rem; border-radius: var(--r-2); border: 1px solid var(--hairline); background: var(--panel); color: var(--text); font: 600 var(--t-14)/1.3 var(--font-display); text-decoration: none; transition: border-color var(--dur-2), background var(--dur-2); }
	.pager__link:hover { border-color: var(--hairline-2); background: var(--raised); text-decoration: none; }
	.pager__link small { display: block; font: 500 var(--t-12)/1 var(--font); color: var(--hint); margin-bottom: .25rem; }
	.pager__link--next { justify-content: flex-end; text-align: right; }
	.pager__icon { width: 18px; height: 18px; flex: none; color: var(--hint); }

	/* ---- sidebar ---- */
	.sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 60; width: min(320px, 88vw); padding: .75rem 1rem 1.5rem; background: var(--panel); border-right: 1px solid var(--hairline); border-radius: 0 var(--r-4) var(--r-4) 0; box-shadow: var(--shadow-float); overflow-y: auto; overscroll-behavior: contain; translate: -100% 0; visibility: hidden; transition: translate var(--dur-3) var(--ease-out), visibility 0s linear var(--dur-3); }
	html.drawer-open .sidebar { translate: 0 0; visibility: visible; transition: translate var(--dur-3) var(--ease-out), visibility 0s; }
	html.drawer-open { overflow: hidden; scrollbar-gutter: stable; }
	.sidebar-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(6, 6, 9, .65); opacity: 0; transition: opacity var(--dur-3); }
	html.drawer-open .sidebar-scrim { opacity: 1; }
	.sidebar__top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: .75rem; }
	.brand--sb .brand__name { font-size: var(--t-16); }
	.sidebar__close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--hairline); color: var(--text); }
	.sidebar__close svg { width: 18px; height: 18px; }
	.sb-group + .sb-group { margin-top: .9rem; }
	.sb-group--minor { padding-top: .9rem; border-top: 1px solid var(--hairline); }
	.sb-label { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 0 .35rem .35rem .6rem; font: 700 var(--t-12)/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--hint); }
	summary.sb-label { cursor: pointer; padding: .35rem 0; margin-bottom: .1rem; border-radius: 6px; }
	summary.sb-label:hover { color: var(--text-2); }
	.sb-chev { width: 14px; height: 14px; rotate: 90deg; transition: rotate var(--dur-2) var(--ease-out); }
	.sb-group--fold[open] .sb-chev { rotate: -90deg; }
	.sb-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
	.sb-item { position: relative; display: flex; align-items: center; gap: .65rem; min-height: 40px; padding: .45rem .6rem; border-radius: 9px; color: var(--text-2); font: 500 var(--t-14)/1.25 var(--font); text-decoration: none; transition: background var(--dur-1), color var(--dur-1); }
	.sb-item:hover { background: rgba(255, 255, 255, .045); color: var(--text); text-decoration: none; }
	.sb-item:focus-visible { outline-offset: -3px; }
	.sb-item[aria-current="page"] { background: var(--tint); color: var(--text); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
	.sb-item.is-parent { color: var(--text); }
	.sb-icon { width: 18px; height: 18px; flex: none; color: var(--hint); }
	.sb-item:hover .sb-icon, .sb-item[aria-current="page"] .sb-icon { color: var(--accent-soft); }
	.sb-thumb { width: 24px; height: 36px; border-radius: 4px; object-fit: cover; flex: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
	.sb-thumb--round { width: 26px; height: 26px; border-radius: 50%; }
	.sb-item__label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.sb-count { flex: none; font: 500 var(--t-12)/1 var(--font); color: var(--hint); font-variant-numeric: tabular-nums; }
	.sb-cta { margin-top: 1.25rem; padding: 1rem; border-radius: var(--r-2); background: linear-gradient(135deg, rgba(255, 79, 139, .12), rgba(155, 140, 255, .08)); border: 1px solid rgba(255, 79, 139, .22); }
	.sb-cta__text { margin-bottom: .7rem; font: 500 var(--t-13)/1.45 var(--font); color: var(--text-2); }
	@media (min-width: 1024px) {
		.sidebar { position: sticky; inset: auto; top: calc(var(--head-h) + 1rem); width: auto; max-width: none; padding: .5rem 0 1rem; background: transparent; border: 0; border-radius: 0; box-shadow: none; translate: 0 0; visibility: visible; transition: none; z-index: 1; max-height: calc(100vh - var(--head-h) - 2rem); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--hairline-2) transparent; }
		body.admin-bar .sidebar { top: calc(32px + var(--head-h) + 1rem); max-height: calc(100vh - 32px - var(--head-h) - 2rem); }
		.sidebar__top, .sidebar-scrim { display: none !important; }
		html.drawer-open { overflow: visible; }
	}

	/* ---- footer ---- */
	.site-foot { margin-top: var(--s-6); padding-block: var(--s-7) var(--s-6); border-top: 1px solid var(--hairline); background: linear-gradient(180deg, var(--panel), var(--page)); font-size: var(--t-14); color: var(--hint); }
	.site-foot__grid { display: grid; gap: var(--s-6); }
	@media (min-width: 640px) { .site-foot__grid { grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-7); } .site-foot__brand { grid-column: 1 / -1; } }
	@media (min-width: 1024px) { .site-foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .site-foot__brand { grid-column: auto; } }
	.brand--foot .brand__name { font-size: var(--t-18); }
	.disclosure { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: var(--r-2); background: rgba(255, 255, 255, .03); border: 1px solid var(--hairline); color: var(--text-2); font-size: var(--t-13); line-height: 1.55; }
	.disclosure strong { color: var(--text); }
	.site-foot__h { font: 700 var(--t-12)/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--hint); margin-bottom: .8rem; }
	.site-foot__col ul { list-style: none; display: flex; flex-direction: column; gap: .1rem; }
	.site-foot__col a { display: inline-block; padding: .35rem 0; color: var(--text-2); text-decoration: none; }
	.site-foot__col a:hover { color: var(--text); text-decoration: underline; }
	.site-foot__more { color: var(--accent-soft) !important; }
	.site-foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--hairline); }
	.site-foot__legal { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
	.site-foot__legal a, .site-foot__legal button { padding: .35rem 0; color: var(--text-2); font: 500 var(--t-13)/1.3 var(--font); text-decoration: none; }
	.site-foot__legal a:hover, .site-foot__legal button:hover { color: var(--text); text-decoration: underline; }
	.site-foot__copy { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: var(--t-13); color: var(--hint); max-width: 60ch; }

	/* ---- floating layers ---- */
	.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom)); background: rgba(16, 16, 20, .92); border-top: 1px solid var(--hairline); translate: 0 110%; transition: translate var(--dur-3) var(--ease-out); }
	.mobile-cta.is-visible { translate: 0 0; }
	@media (min-width: 640px) { .mobile-cta { display: none; } }
	@media (max-width: 639px) { html:not(.age-ok) body.has-age-notice .mobile-cta { translate: 0 110%; } }
	html.js body.kind-guide, html.js body.kind-series, html.js body.kind-creator { --mobile-cta-pad: 72px; }
	@media (max-width: 639px) { .site-foot { padding-bottom: calc(var(--s-6) + var(--mobile-cta-pad, 0px)); } }
	.age-notice { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; max-width: 620px; margin-inline: auto; padding: .9rem 1rem; border-radius: var(--r-3); background: var(--raised); border: 1px solid var(--hairline-2); box-shadow: var(--shadow-float); font-size: var(--t-14); color: var(--text-2); }
	.age-notice p { flex: 1 1 260px; }
	@media (min-width: 1024px) { .age-notice { left: auto; right: 24px; bottom: 24px; } }
	html.age-ok .age-notice, html:not(.js) .age-notice { display: none; }
	html:not(.age-ok) body.has-age-notice { padding-bottom: 120px; }
	html.drawer-open .age-notice, html.drawer-open .cookie { visibility: hidden; }
	.age-gate { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(10, 10, 14, .9); backdrop-filter: blur(10px); }
	html.age-ok .age-gate { display: none !important; }
	html.js:not(.age-ok) body.age-gate-open { overflow: hidden; }
	.age-gate__box { max-width: 460px; text-align: center; padding: 2rem 1.5rem; border-radius: var(--r-3); background: var(--panel); border: 1px solid var(--hairline-2); box-shadow: var(--shadow-float); }
	.age-gate__title { font: 800 var(--t-h3)/1.2 var(--font-display); margin-bottom: .6rem; }
	.age-gate__box p { color: var(--text-2); font-size: var(--t-15); }
	.age-gate__box small { display: block; margin-top: 1rem; color: var(--hint); }
	.age-gate__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.25rem; }
	.cookie { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 52; max-width: 520px; padding: 1rem 1.1rem; border-radius: var(--r-3); background: var(--raised); border: 1px solid var(--hairline-2); box-shadow: var(--shadow-float); font-size: var(--t-14); color: var(--text-2); }
	.cookie p { margin-bottom: .7rem; }
	.cookie .btn-row { margin: 0; }
	@media (min-width: 1024px) { .cookie { left: auto; right: 24px; bottom: 24px; } }
	html.consent-set .cookie, html:not(.age-ok) .cookie:not(.cookie--force) { display: none; }
	body.has-age-notice .cookie { bottom: 110px; }
}

/* ============================== utilities ============================== */
@layer utilities {
	.visually-hidden { 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; top: .75rem; left: .75rem; z-index: 1000; padding: .6rem 1rem; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 700; clip-path: inset(50%); }
	.skip-link:focus { clip-path: none; }
	.icon { width: 1em; height: 1em; }
	@media (prefers-reduced-motion: reduce) {
		*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
		.pcard:hover .pcard__thumb img { scale: 1; }
	}
	@media (forced-colors: active) {
		.btn, .sb-item, .card, .pcard__thumb, .chip { outline: 1px solid; }
		.btn--primary { forced-color-adjust: none; }
	}
	@media print {
		.site-head, .sidebar, .sidebar-scrim, .cookie, .age-gate, .age-notice, .mobile-cta, .progress, .cta-box, .sb-cta, .site-foot__legal, .toc { display: none !important; }
		body { background: #fff; color: #000; }
		.layout { display: block; }
		.main { border: 0; padding: 0; }
		a { color: #000; text-decoration: underline; }
	}
}
