/*
Theme Name: Sarmguide
Theme URI: https://sarmguide.com/
Author: Sarmguide Editorial Team
Description: Sarmguide 2.0. An evidence-first reference theme: crisp type, generous white space, data boxes, one stylesheet, one tiny script, one self-hosted variable font (Manrope, SIL OFL 1.1), no external requests. Renders the sarmguide-core plugin's compound data, product boxes, charts and tools, and degrades gracefully without it.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: sarmguide
*/

/* =================================================================================================
   Fonts: Manrope variable (200–800), latin + latin-ext, and a metric-matched fallback so the swap
   does not shift the layout.
   ================================================================================================= */
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fonts/manrope-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fonts/manrope-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Manrope Fallback";
	src: local("Arial"), local("Helvetica Neue"), local("Helvetica"), local("Liberation Sans");
	size-adjust: 105.2%;
	ascent-override: 101.3%;
	descent-override: 28.5%;
	line-gap-override: 0%;
}

/* =================================================================================================
   Design tokens. The plugin can use the --sg-* aliases so its boxes match the theme (and dark mode).
   ================================================================================================= */
:root {
	--bg: #ffffff;
	--paper: #f8f7f2;
	--paper-2: #f0eee6;
	--surface: #ffffff;
	--ink: #0d2430;
	--text: #26363e;
	--muted: #56666d;
	--line: #e3e6e3;
	--line-strong: #cbd3d1;
	--line-input: #85918f;
	--teal: #00505a;
	--teal-hover: #003a42;
	--teal-soft: #e7f1f1;
	--on-teal: #ffffff;
	--accent: #fce058;
	--accent-strong: #f5c400;
	--accent-soft: #fff7d6;
	--dark: #0c2b33;
	--dark-2: #0f3640;
	--on-dark: #eef5f5;
	--on-dark-muted: #a9c1c4;
	--risk: #b46100;
	--danger: #b42318;
	--ok: #18794e;
	--logo-ring: #00505a;
	--logo-g: #f5c400;
	--radius: 14px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(13, 36, 48, .05), 0 6px 20px rgba(13, 36, 48, .07);
	--font: "Manrope", "Manrope Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	--wrap: 1200px;
	--measure: 760px;
	--gutter: 20px;
	--header-h: 64px;
	--admin-bar: 0px;

	--sg-bg: var(--bg);
	--sg-paper: var(--paper);
	--sg-surface: var(--surface);
	--sg-ink: var(--ink);
	--sg-text: var(--text);
	--sg-muted: var(--muted);
	--sg-line: var(--line);
	--sg-line-input: var(--line-input);
	--sg-teal: var(--teal);
	--sg-teal-soft: var(--teal-soft);
	--sg-on-teal: var(--on-teal);
	--sg-accent: var(--accent);
	--sg-accent-soft: var(--accent-soft);
	--sg-risk: var(--risk);
	--sg-danger: var(--danger);
	--sg-ok: var(--ok);
	--sg-radius: var(--radius);
	--sg-font: var(--font);
	--sg-mono: var(--mono);
}
@media (min-width: 720px) {
	:root { --gutter: 32px; --header-h: 70px; }
}
@media (prefers-color-scheme: dark) {
	:root.sg-dark {
		color-scheme: dark;
		--bg: #0b1a20;
		--paper: #0f2228;
		--paper-2: #142a31;
		--surface: #10242b;
		--ink: #eef4f4;
		--text: #cddadc;
		--muted: #97abaf;
		--line: #1f363e;
		--line-strong: #2d4952;
		--line-input: #5d7881;
		--teal: #62c9d0;
		--teal-hover: #93dee3;
		--teal-soft: #11343b;
		--on-teal: #062228;
		--accent-soft: #2b2813;
		--dark: #08161b;
		--dark-2: #0c1f25;
		--risk: #f0a54a;
		--danger: #f97066;
		--ok: #4cc38a;
		--logo-ring: #fce058;
		--logo-g: #fce058;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
	}
}

/* =================================================================================================
   Base
   ================================================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 1rem;
	font-weight: 450;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-feature-settings: "kern", "liga";
}
@media (min-width: 720px) { body { font-size: 1.0625rem; } }
img, svg, video, canvas, iframe { max-width: 100%; }
img, video { height: auto; }
img { border-style: none; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 750; line-height: 1.22; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--teal-hover); }
strong, b { font-weight: 750; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #0d2430; }
:focus { outline: none; }
:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.sr-only, .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 12px; top: -100px; z-index: 1000;
	background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--bg); }
.admin-bar { --admin-bar: 32px; }
@media (max-width: 782px) { .admin-bar { --admin-bar: 46px; } }
@media (max-width: 600px) { .admin-bar { --admin-bar: 0px; } }

/* =================================================================================================
   Layout + shared pieces
   ================================================================================================= */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2 * var(--gutter), var(--measure)); }
.section { padding: 48px 0; }
@media (min-width: 720px) { .section { padding: 72px 0; } }
.section.section-follow { padding-top: 0; }
/* 80px between the end of the content and the footer on every page (Sarah's review, item 6). A last band
   with its own background (related guides) keeps the space inside its background instead. */
#main { padding-bottom: 80px; }
#main > section:last-child, #main > .section:last-child { padding-bottom: 0; }
.page-main > article > .wrap > :last-child { margin-bottom: 0; }
.page-main > article > .wrap > div > :last-child { margin-bottom: 0; }
/* Info and policy pages: the 1200 px site container, running text at a readable measure, left-aligned with the
   header and hero (batch 4 item 1). */
.page-col { max-width: var(--measure); }
#main:has(> article:last-child > .related:last-child) { padding-bottom: 0; }
#main .related:last-child { padding-bottom: 80px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2, .section-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; letter-spacing: -.02em; }
.section-title { margin-bottom: 22px; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	margin: 0 0 10px; color: var(--teal); font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--accent-strong); }
.eyebrow-on-dark { color: var(--accent); }
.eyebrow-on-dark::before { background: var(--accent); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .95rem; text-decoration: none; }
.more .icon { width: 18px; height: 18px; transition: transform .15s; }
.more:hover .icon { transform: translateX(3px); }
.icon { width: 20px; height: 20px; flex: none; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 11px 20px; border: 0; border-radius: var(--radius-sm);
	font-weight: 750; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, transform .15s;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--teal); color: var(--on-teal); }
.btn-primary:hover { background: var(--teal-hover); color: var(--on-teal); }
.btn-accent { background: var(--accent); color: #0d2430; }
.btn-accent:hover { background: var(--accent-strong); color: #0d2430; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--teal); color: var(--teal); }

.chip {
	display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 5px 13px;
	border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
	color: var(--ink); font-size: .875rem; font-weight: 650; text-decoration: none; transition: border-color .15s, color .15s;
}
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip-n { color: var(--muted); font-weight: 600; font-size: .8rem; font-variant-numeric: tabular-nums; }
.tag {
	display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px;
	background: var(--teal-soft); color: var(--teal); font-size: .75rem; font-weight: 750; letter-spacing: .02em; white-space: nowrap; max-width: 100%;
}

/* =================================================================================================
   Top bar (disclosure) + header + navigation
   ================================================================================================= */
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.topbar-inner { padding: 7px 0; text-align: center; }
.topbar-text, .topbar-text p, .topbar-text .sg-disclosure { margin: 0; display: inline; }
.topbar-text a { margin-left: 6px; font-weight: 700; white-space: nowrap; }
@media (max-width: 559.98px) {
	.topbar { font-size: .75rem; }
	.topbar-inner { padding: 6px 0; }
}

.site-header { position: sticky; top: var(--admin-bar); z-index: 50; border-bottom: 1px solid var(--line); }
/* The frosted background sits on a pseudo-element: a backdrop-filter on the header itself would
   trap the fixed-position phone menu inside the header box. */
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: color-mix(in srgb, var(--bg) 94%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; flex: none; border-radius: 6px; }
.brand:hover { color: var(--ink); }
.sg-logo { display: block; height: 32px; width: auto; overflow: visible; }
@media (min-width: 720px) { .sg-logo { height: 38px; } }
.sg-logo-text { font-weight: 800; font-size: 1.4rem; letter-spacing: .04em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px;
	background: transparent; color: var(--ink); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--paper); color: var(--teal); }
.icon-btn .icon { width: 22px; height: 22px; }
.menu-toggle .when-open { display: none; }
.menu-toggle[aria-expanded="true"] .when-open { display: block; }
.menu-toggle[aria-expanded="true"] .when-closed { display: none; }

.primary-nav .menu, .primary-nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.primary-nav a { text-decoration: none; }
.sub-toggle {
	display: inline-grid; place-items: center; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: 8px;
}
.sub-toggle .icon { width: 18px; height: 18px; transition: transform .15s; }
.is-open > .sub-toggle .icon { transform: rotate(180deg); }
.nav-search { display: none; }
/* A parent item with no page of its own: the label is the dropdown button. */
.primary-nav .sub-toggle-label { gap: 2px; font: inherit; color: var(--ink); text-align: left; }

/* Phone + tablet: the menu is a full-height panel under the header. */
@media (max-width: 1099.98px) {
	.primary-nav {
		position: fixed; top: var(--nav-top, calc(var(--header-h) + var(--admin-bar))); right: 0; bottom: 0; left: 0; z-index: 49;
		display: none; overflow-y: auto; overscroll-behavior: contain;
		background: var(--bg); padding: 16px var(--gutter) 40px; border-top: 1px solid var(--line);
	}
	.nav-open .primary-nav { display: flex; flex-direction: column; }
	.nav-open { overflow: hidden; }
	.nav-search { display: block; order: -1; margin-bottom: 12px; }
	.primary-nav .menu > li { position: relative; display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
	.primary-nav .menu > li > a { flex: 1; padding: 15px 4px; color: var(--ink); font-weight: 750; font-size: 1.0625rem; }
	.primary-nav .sub-toggle { width: 44px; height: 44px; }
	.primary-nav .sub-toggle-label { flex: 1; display: flex; justify-content: space-between; width: auto; height: auto; padding: 15px 4px; font-weight: 750; font-size: 1.0625rem; }
	.primary-nav .sub-toggle-label .icon { width: 22px; height: 22px; margin-right: 11px; }
	.primary-nav .sub-menu { display: none; width: 100%; padding: 0 0 10px 12px; }
	.primary-nav .is-open > .sub-menu { display: block; }
	.primary-nav .sub-menu a { display: block; padding: 10px 4px; color: var(--text); font-weight: 600; }
	.primary-nav .current-menu-item > a, .primary-nav a[aria-current] { color: var(--teal); }
}
/* Desktop: inline menu with dropdowns (hover, focus or the toggle button). */
@media (min-width: 1100px) {
	.menu-toggle { display: none; }
	.primary-nav { margin-left: 24px; }
	.primary-nav .menu { display: flex; align-items: center; gap: 2px; }
	.primary-nav .menu > li { position: relative; display: flex; align-items: center; }
	.primary-nav .menu > li > a {
		display: block; padding: 8px 11px; border-radius: 8px; color: var(--ink); font-weight: 650; font-size: .9375rem; white-space: nowrap;
	}
	.primary-nav .menu > li.menu-item-has-children > a { padding-right: 2px; }
	.primary-nav .menu > li > a:hover, .primary-nav .menu > li:hover > a { color: var(--teal); }
	.primary-nav .menu > .current-menu-item > a, .primary-nav .menu > .current-menu-ancestor > a, .primary-nav .menu > li > a[aria-current] {
		color: var(--teal); box-shadow: inset 0 -2px 0 var(--accent-strong); border-radius: 0;
	}
	.primary-nav .sub-toggle { width: 26px; height: 32px; color: var(--muted); }
	.primary-nav .sub-toggle-label { display: inline-flex; width: auto; height: auto; padding: 8px 6px 8px 11px; color: var(--ink); font-weight: 650; font-size: .9375rem; white-space: nowrap; }
	.primary-nav .sub-toggle-label .icon { color: var(--muted); }
	.primary-nav .sub-toggle-label:hover, .primary-nav li:hover > .sub-toggle-label { color: var(--teal); }
	.primary-nav .sub-menu {
		position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; padding: 8px;
		background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
		opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
	}
	.primary-nav .sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto 0; height: 10px; }
	.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu, .primary-nav li.is-open > .sub-menu {
		opacity: 1; visibility: visible; transform: none;
	}
	.primary-nav .sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .9375rem; }
	.primary-nav .sub-menu a:hover, .primary-nav .sub-menu .current-menu-item > a { background: var(--paper); color: var(--teal); }
}
.header-search { border-top: 1px solid var(--line); background: var(--paper); padding: 14px 0; }
.header-search .search-form { max-width: 760px; margin-inline: auto; }

/* =================================================================================================
   Search form
   ================================================================================================= */
.search-form { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; }
.search-form .search-icon { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-form input[type="search"] {
	flex: 1; min-width: 0; height: 48px; padding: 0 14px 0 44px;
	border: 1.5px solid var(--line-input); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
	font-size: 1rem; font-weight: 550; -webkit-appearance: none; appearance: none;
}
.search-form input[type="search"]::placeholder { color: var(--muted); opacity: 1; font-weight: 450; }
.search-form input[type="search"]:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 16%, transparent); }
.search-form .btn { height: 48px; }
.search-hero input[type="search"], .search-hero .btn { height: 56px; }
.search-hero input[type="search"] { font-size: 1.0625rem; border-radius: 12px; box-shadow: var(--shadow); }
.search-hero .btn { border-radius: 12px; padding-inline: 24px; }
.search-form .btn-icon { display: none; }
@media (max-width: 479.98px) {
	.search-form .search-icon { display: none; }
	.search-form input[type="search"] { padding-left: 14px; }
	.search-form .btn { width: 48px; padding: 0; flex: none; }
	.search-hero .btn { width: 56px; }
	.search-form .btn-icon { display: block; width: 22px; height: 22px; }
	.search-form .btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}

/* =================================================================================================
   Front page
   ================================================================================================= */
.hero {
	position: relative; overflow: hidden; padding: 36px 0 40px;
	background:
		radial-gradient(640px 320px at 92% -10%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 70%),
		radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--teal) 12%, transparent) 1px, transparent 1.5px) 0 0 / 22px 22px,
		var(--paper);
	border-bottom: 1px solid var(--line);
}
@media (min-width: 960px) { .hero { padding: 72px 0 72px; } }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 64px; } }
.hero-title { font-size: clamp(2.05rem, 1.35rem + 3.1vw, 3.55rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin-bottom: 18px; }
.hl { background: linear-gradient(transparent 64%, var(--accent) 64%, var(--accent) 90%, transparent 90%); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (prefers-color-scheme: dark) {
	.sg-dark .hl { background: none; color: var(--accent); }
	.sg-dark .compare-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362c9d0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); }
}
.hero-lede { font-size: clamp(1.03rem, .95rem + .4vw, 1.2rem); color: var(--text); max-width: 34em; margin-bottom: 24px; line-height: 1.55; }
.hero-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.chips-label { color: var(--muted); font-size: .875rem; font-weight: 650; margin-right: 2px; }

.start-here { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 20px 10px; box-shadow: var(--shadow); }
.start-title { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 800; margin-bottom: 8px; }
.start-title .icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--accent); color: #0d2430; }
.start-list { list-style: none; margin: 0; padding: 0; counter-reset: start; }
.start-list li { counter-increment: start; border-top: 1px solid var(--line); }
.start-list li:first-child { border-top: 0; }
.start-list a { position: relative; display: grid; gap: 2px; padding: 13px 8px 13px 46px; margin: 0 -8px; border-radius: 10px; text-decoration: none; }
.start-list a::before {
	content: counter(start); position: absolute; left: 8px; top: 13px; width: 26px; height: 26px; display: grid; place-items: center;
	border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: .8125rem; font-weight: 800; font-variant-numeric: tabular-nums;
}
.start-list a:hover { background: var(--paper); }
.start-name { color: var(--ink); font-weight: 750; font-size: 1rem; }
.start-list a:hover .start-name { color: var(--teal); }
.start-desc { color: var(--muted); font-size: .875rem; line-height: 1.45; }

.trust { border-bottom: 1px solid var(--line); background: var(--bg); }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding: 18px 0; }
.trust-head { display: flex; flex-direction: column; gap: 2px; }
.trust-lead { color: var(--ink); font-weight: 800; font-size: 1rem; }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; margin: 0; padding: 0; color: var(--text); font-size: .875rem; font-weight: 600; }
.trust-list li { display: inline-flex; align-items: center; gap: 8px; }
.trust-list .icon { width: 19px; height: 19px; color: var(--teal); }
.trust-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .875rem; text-decoration: none; width: fit-content; }
.trust-link .icon { width: 16px; height: 16px; }
@media (max-width: 719.98px) {
	.trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
}

/* MK-677 centre */
.feature { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); padding: 52px 0; isolation: isolate; }
@media (min-width: 960px) { .feature { padding: 84px 0; } }
.feature::before {
	content: ""; position: absolute; z-index: -1; right: -140px; top: -160px; width: 520px; height: 520px; border-radius: 50%;
	border: 46px solid rgba(252, 224, 88, .07);
}
.feature::after {
	content: ""; position: absolute; z-index: -1; inset: 0;
	background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .06) 1px, transparent 1.5px) 0 0 / 24px 24px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.feature-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .feature-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 72px; align-items: start; } }
.feature-title { color: #fff; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 14px; }
.feature-lede { color: var(--on-dark-muted); font-size: 1.0625rem; max-width: 36em; margin-bottom: 26px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0 0 28px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; overflow: hidden; }
@media (min-width: 600px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 14px 16px; background: var(--dark); }
.stat dt { color: var(--on-dark-muted); font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.stat dd { margin: 0; color: #fff; font-size: 1.0625rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.3; }
.feature-list { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 22px 22px 10px; }
.feature-list-title { color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 6px; }
.feature-list ul { list-style: none; margin: 0; padding: 0; }
.feature-list li { border-top: 1px solid rgba(255, 255, 255, .1); }
.feature-list li:first-child { border-top: 0; }
.feature-list a {
	display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; color: var(--on-dark); font-weight: 600; font-size: .96875rem; line-height: 1.4; text-decoration: none;
}
.feature-list a::after { content: "→"; color: var(--accent); transition: transform .15s; }
.feature-list a:hover { color: #fff; }
.feature-list a:hover::after { transform: translateX(3px); }
.feature .btn-accent:focus-visible, .feature a:focus-visible { outline-color: var(--accent); }

/* SARMs Database grid */
.db-grid { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 560px) { .db-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 860px) { .db-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .db-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.db-grid > li { display: flex; }
.db-card {
	display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 16px 18px 16px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.db-card:hover { border-color: color-mix(in srgb, var(--teal) 55%, var(--line)); box-shadow: var(--shadow); transform: translateY(-1px); color: var(--text); }
.db-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.db-name { color: var(--ink); font-size: 1.1875rem; font-weight: 800; letter-spacing: -.01em; }
.db-card:hover .db-name { color: var(--teal); }
.db-aka { color: var(--muted); font-size: .875rem; font-weight: 600; }
.db-class { font-size: .8125rem; color: var(--text); line-height: 1.4; }
.db-facts { display: grid; gap: 0; margin-top: auto; border-top: 1px solid var(--line); }
.db-class { margin-bottom: 10px; }
.db-fact { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .8125rem; }
.db-k { color: var(--muted); font-weight: 600; }
.db-v { color: var(--ink); font-weight: 750; text-align: right; font-variant-numeric: tabular-nums; }
.db-scores { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 12px; }
.db-class + .db-scores, .db-aka + .db-scores, .db-top + .db-scores { margin-top: auto; }
.score { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--muted); font-weight: 650; }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.score-evidence .pips i.on { background: var(--teal); }
.score-suppression .pips i.on, .score-liver .pips i.on { background: var(--risk); }
.db-grid-one { grid-template-columns: 1fr !important; }
.db-summary { margin: 0 0 12px; color: var(--text); font-size: .875rem; line-height: 1.5; }
.db-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--teal); font-weight: 750; font-size: .875rem; }
.db-cta .icon { width: 16px; height: 16px; transition: transform .15s; }
.db-card:hover .db-cta .icon { transform: translateX(3px); }
@media (max-width: 559.98px) {
	.db .db-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.db .db-card, .search-compounds .db-card { padding: 13px 14px; }
	.db .db-name, .search-compounds .db-name { font-size: 1.0625rem; }
	.db .db-top .tag, .db .db-facts, .db .db-scores, .search-compounds .db-facts, .search-compounds .db-scores { display: none; }
	.db .db-class, .search-compounds .db-class { margin: 2px 0 0; font-size: .75rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Tools */
.tools { background: var(--paper); border-block: 1px solid var(--line); }
.tool-grid { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tool-grid > li { display: flex; }
.tool {
	display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto 1fr; column-gap: 14px; row-gap: 2px; width: 100%;
	padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
	transition: border-color .15s, box-shadow .15s;
}
.tool:hover { border-color: color-mix(in srgb, var(--teal) 55%, var(--line)); box-shadow: var(--shadow); }
.tool-icon { grid-row: 1 / 3; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); }
.tool-icon .icon { width: 24px; height: 24px; }
.tool-name { color: var(--ink); font-weight: 750; font-size: 1.03rem; align-self: end; }
.tool:hover .tool-name { color: var(--teal); }
.tool-desc { color: var(--muted); font-size: .875rem; line-height: 1.45; }
.tool-grid-compact .tool { padding: 14px 16px; }

/* Compare call-to-action */
.compare-cta { padding: 48px 0; }
@media (min-width: 720px) { .compare-cta { padding: 72px 0 24px; } }
.compare-inner {
	display: grid; gap: 22px; align-items: center; padding: 26px 22px; border-radius: 22px;
	background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--teal-soft) 70%, var(--bg)));
	border: 1px solid var(--line);
}
@media (min-width: 960px) { .compare-inner { grid-template-columns: minmax(0, 1fr) auto; padding: 40px 44px; gap: 18px 48px; } }
.compare-copy h2 { font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.compare-copy p:last-child { color: var(--text); }
.compare-form { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
@media (min-width: 560px) { .compare-form { grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr) auto; } }
.compare-form select {
	width: 100%; min-width: 0; height: 48px; padding: 0 40px 0 14px; border: 1.5px solid var(--line-input); border-radius: var(--radius-sm);
	background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300505a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
	color: var(--ink); font-weight: 700; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.compare-form select:focus { border-color: var(--teal); outline: none; }
.compare-form .vs { color: var(--muted); font-weight: 800; font-size: .875rem; text-transform: uppercase; }
.compare-form .btn { grid-column: 1 / -1; }
@media (min-width: 560px) { .compare-form .btn { grid-column: auto; } }
.pairs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .875rem; }
.pairs span { color: var(--muted); font-weight: 650; }
.pairs a { font-weight: 650; }

/* Newsletter */
.signup-band { padding: 48px 0 64px; }
.signup-inner {
	display: grid; gap: 22px; align-items: center; padding: 28px 22px; border-radius: 22px;
	background: var(--dark); color: var(--on-dark);
}
@media (min-width: 900px) { .signup-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 40px 44px; gap: 48px; } }
.signup-copy h2 { color: #fff; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); font-weight: 800; margin: 10px 0 6px; }
.signup-copy p { color: var(--on-dark-muted); }
.signup-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #0d2430; }
.signup-form { color: var(--on-dark); }
.signup-form a { color: var(--accent); }

/* =================================================================================================
   Cards + typographic covers
   ================================================================================================= */
.card-grid { display: grid; gap: 22px; }
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; } }
.card {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: color-mix(in srgb, var(--teal) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { aspect-ratio: 2 / 1; background: var(--paper-2); overflow: hidden; container-type: inline-size; }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 18px 18px; }
.card-kicker { color: var(--teal); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.card-title { font-size: 1.125rem; font-weight: 750; line-height: 1.32; letter-spacing: -.01em; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card:hover .card-title a { color: var(--teal); }
.card-title a:focus-visible { outline: none; }
.card:has(.card-title a:focus-visible) { outline: 2.5px solid var(--teal); outline-offset: 2px; }
.card-excerpt { color: var(--muted); font-size: .9375rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 599.98px) { .card-excerpt { display: none; } }
.card-meta { margin-top: auto; padding-top: 6px; color: var(--muted); font-size: .8125rem; font-weight: 550; }

.cover {
	position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; gap: 4px;
	width: 100%; height: 100%; padding: 6% 7%; overflow: hidden; color: #fff;
	background: linear-gradient(135deg, #0c2b33 0%, #00505a 100%);
}
.cover.tone-1 { background: linear-gradient(135deg, #0d2430 0%, #164652 100%); }
.cover.tone-2 { background: linear-gradient(140deg, #073940 0%, #0a6670 100%); }
.cover::before {
	content: ""; position: absolute; z-index: -1; inset: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='97' viewBox='0 0 84 97'%3E%3Cpath d='M42 1 83 24.5v48L42 96 1 72.5v-48z' fill='none' stroke='%23fff' stroke-opacity='.07' stroke-width='1.5'/%3E%3Ccircle cx='42' cy='1' r='3' fill='%23fff' fill-opacity='.1'/%3E%3Ccircle cx='83' cy='72.5' r='3' fill='%23fff' fill-opacity='.1'/%3E%3C/svg%3E") right -20px center / 84px 97px repeat-y;
	-webkit-mask-image: linear-gradient(90deg, transparent 35%, #000); mask-image: linear-gradient(90deg, transparent 35%, #000);
}
.cover::after {
	content: ""; position: absolute; z-index: -1; right: -12%; bottom: -38%; width: 58%; aspect-ratio: 1; border-radius: 50%;
	border: 12px solid rgba(252, 224, 88, .16);
}
.cover-kicker { color: rgba(255, 255, 255, .72); font-size: .7rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.cover-word { color: #fce058; font-size: 2.6rem; font-size: 12.5cqi; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.cover.is-long .cover-word { font-size: 2rem; font-size: 9cqi; }
.cover-brand { position: absolute; left: 7%; bottom: 7%; color: rgba(255, 255, 255, .55); font-size: .625rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

/* Compact link rows */
.rows { list-style: none; margin: 0; padding: 0; display: grid; column-gap: 32px; }
@media (min-width: 720px) { .rows-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.row { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.row-title { font-size: 1rem; font-weight: 650; line-height: 1.4; letter-spacing: 0; text-wrap: pretty; }
.row-title a { color: var(--ink); text-decoration: none; }
.row-title a:hover { color: var(--teal); text-decoration: underline; }
.row-meta { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* =================================================================================================
   Breadcrumbs (own trail, plugin, Rank Math)
   ================================================================================================= */
.crumbs { color: var(--muted); font-size: .8125rem; font-weight: 550; margin-bottom: 14px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 0; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin: 0 7px; color: var(--muted); font-size: 1.15em; line-height: 1; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal); text-decoration: underline; }
.crumbs [aria-current], .crumbs .last { color: var(--text); }
.crumbs p { margin: 0; }
.crumbs .separator { margin: 0 4px; color: var(--muted); }
.crumbs li:last-child, .crumbs .last { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* =================================================================================================
   Article
   ================================================================================================= */
.article-grid {
	display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "lead" "toc" "body";
	width: min(100% - 2 * var(--gutter), var(--measure)); margin-inline: auto;
}
.article-head { grid-area: head; padding: 22px 0 6px; }
.article-rail { grid-area: toc; }
.article-lead { grid-area: lead; }
.article-body { grid-area: body; min-width: 0; }
/* Desktop (batch 4 item 2): the article uses the site's 1200 px container like every other template. The hero
   (crumbs, title, byline, disclosure, featured image) spans the full container, title block and image side by
   side; below it the outline rail on the left and the reading column (readable measure) next to it. */
@media (min-width: 1100px) {
	.article-grid {
		width: min(100% - 2 * var(--gutter), var(--wrap));
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "head" "lead" "body";
	}
	.article-grid.has-toc {
		grid-template-columns: 240px minmax(0, 1fr);
		grid-template-areas: "head head" "toc lead" "toc body";
		column-gap: 64px;
	}
	.article-grid > .article-body { max-width: 800px; }
	.article-grid > .article-lead { max-width: 1000px; }
	.article-head { padding: 36px 0 10px; }
	.article-head.has-image {
		display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); column-gap: 48px; align-items: center;
		padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px;
	}
	.article-head.has-image .article-image { margin: 0; align-self: center; box-shadow: var(--shadow); }
	.article-head.has-image .article-image img { max-height: 460px; }
	/* No featured image: title, byline and disclosure line span the whole hero (batch 5 item 3). */
	.article-head:not(.has-image):not(.has-stats) .article-head-text { max-width: none; }
	.article-head:not(.has-image):not(.has-stats) .article-title { text-wrap: pretty; }
	.article-head:not(.has-image) { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
	.article-head.has-stats { display: grid; grid-template-columns: minmax(0, 1fr) 400px; column-gap: 48px; align-items: center; }
	.hero-stats { display: grid !important; }
}
/* Fact-sheet key numbers beside the title (desktop only: phones get the same numbers in the at-a-glance box). */
.hero-stats { display: none; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 12px; background: var(--paper); }
.hero-stat__k { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-stat__v { color: var(--ink); font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hero-stats__more { grid-column: 1 / -1; justify-self: end; font-size: .8125rem; font-weight: 700; color: var(--teal); }
.article-title { font-size: clamp(1.85rem, 1.35rem + 2.1vw, 2.75rem); font-weight: 800; letter-spacing: -.028em; line-height: 1.12; margin-bottom: 14px; }
.hub-ids { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -4px 0 14px; color: var(--muted); font-size: .9375rem; }
.hub-ids strong { color: var(--text); font-weight: 650; }
/* The class tag can be long ("Selective androgen receptor modulator (SARM), nonsteroidal (…)"): it wraps inside the column. */
.hub-ids .tag { max-width: 100%; padding: 4px 12px; border-radius: 14px; white-space: normal; line-height: 1.45; overflow-wrap: anywhere; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--muted); font-size: .875rem; font-weight: 550; }
.byline-team { display: inline-flex; align-items: center; gap: 6px; }
.byline-team .icon { width: 18px; height: 18px; color: var(--teal); }
.byline a { color: var(--ink); font-weight: 700; text-decoration: none; }
.byline a:hover { color: var(--teal); text-decoration: underline; }
.byline .sep { color: var(--line-strong); }
.disclosure-line {
	display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 10px 14px;
	background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--accent-strong); border-radius: 10px;
	color: var(--muted); font-size: .8125rem; line-height: 1.5;
}
.disclosure-line .icon { width: 18px; height: 18px; color: var(--teal); margin-top: 1px; }
.disclosure-line p { display: inline; margin: 0; }
.disclosure-line a { font-weight: 700; white-space: nowrap; }

/* Featured image shown in full (batch 5 item 2): many have the title baked in, so the box takes the image's own
   aspect ratio (no crop); very tall or odd-sized old images are capped and letterboxed (object-fit: contain). */
.article-image { margin: 22px 0 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.article-image img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; }

.box-title { display: flex; align-items: center; gap: 8px; font-size: .8125rem !important; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ink); margin: 0 0 10px !important; }
.box-title .icon { width: 18px; height: 18px; color: var(--teal); }
.takeaways {
	margin: 24px 0 0; padding: 18px 20px 14px; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 12px; background: var(--paper);
}
.takeaways ul, .takeaways ol, .prose .takeaways ul, .prose .takeaways ol { list-style: none; margin: 0; padding: 0; }
.takeaways li, .prose .takeaways li { position: relative; margin: 0; padding: 0 0 8px 28px; color: var(--text); font-size: .96875rem; line-height: 1.55; }
/* Neutral dots (not check marks): takeaways list risks as well as findings. */
.takeaways li::before {
	content: ""; position: absolute; left: 6px; top: calc(.775em - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
}

/* Table of contents */
.toc { margin: 24px 0 0; }
.toc-details { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.toc-details summary {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; cursor: pointer; list-style: none;
}
.toc-details summary::-webkit-details-marker { display: none; }
.toc-title { color: var(--ink); font-size: .8125rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.toc-chevron { width: 18px; height: 18px; color: var(--muted); transition: transform .15s; }
.toc-details[open] .toc-chevron { transform: rotate(180deg); }
.toc-list { list-style: none; margin: 0; padding: 0 16px 14px; counter-reset: toc; }
.toc-list ol { list-style: none; margin: 0 0 4px; padding: 0 0 0 12px; }
.toc-list a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--line); color: var(--muted); font-size: .875rem; font-weight: 600; line-height: 1.4; text-decoration: none; }
.toc-list ol a { font-size: .8125rem; font-weight: 550; padding-block: 4px; }
.toc-list a:hover { color: var(--teal); border-left-color: var(--line-strong); }
.toc-list a[aria-current] { color: var(--teal); border-left-color: var(--teal); font-weight: 750; }
@media (min-width: 1100px) {
	.has-toc .toc { position: sticky; top: calc(var(--header-h) + var(--admin-bar) + 24px); margin-top: 22px; max-height: calc(100vh - var(--header-h) - var(--admin-bar) - 48px); overflow-y: auto; scrollbar-width: thin; }
	.has-toc .toc-details { border: 0; background: transparent; }
	.has-toc .toc-details summary { padding: 0 0 10px; cursor: default; pointer-events: none; }
	.has-toc .toc-chevron { display: none; }
	.has-toc .toc-list { padding: 0; }
}

.prose .takeaways { margin: 0 0 1.6em; }
.prose .takeaways + * { margin-top: 0; }
.prose .cta-link a {
	display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 11px 20px; border-radius: var(--radius-sm);
	background: var(--accent); color: #0d2430; font-weight: 750; font-size: 1rem; text-decoration: none;
}
.prose .cta-link a:hover { background: var(--accent-strong); color: #0d2430; }
.prose .cta-link a strong { color: inherit; }
.box-slot { margin: 2rem 0; }
.box-slot:empty { display: none; }
.article-lead > .box-facts { margin: 24px 0 0; }
.article-body > .box-end { margin-top: 2.4rem; }

/* =================================================================================================
   Prose: article bodies (including plain HTML imported from the old site)
   ================================================================================================= */
.prose { margin-top: 28px; font-size: 1.0625rem; line-height: 1.72; color: var(--text); overflow-wrap: break-word; }
@media (min-width: 720px) { .prose { font-size: 1.09375rem; } }
:where(.prose) > :first-child { margin-top: 0; }
:where(.prose) p, :where(.prose) ul, :where(.prose) ol, :where(.prose) dl, :where(.prose) blockquote, :where(.prose) figure, .prose .table-wrap, :where(.prose) pre, :where(.prose) details, .prose .wp-caption { margin: 0 0 1.15em; }
:where(.prose) h2, :where(.prose) h3, :where(.prose) h4, :where(.prose) h5, :where(.prose) h6 { scroll-margin-top: calc(var(--header-h) + var(--admin-bar) + 20px); }
:where(.prose) h2 { font-size: clamp(1.45rem, 1.25rem + .8vw, 1.85rem); font-weight: 800; letter-spacing: -.022em; margin: 2.1em 0 .6em; padding-top: .2em; }
:where(.prose) h3 { font-size: clamp(1.17rem, 1.1rem + .3vw, 1.3rem); font-weight: 750; margin: 1.7em 0 .5em; }
:where(.prose) h4 { font-size: 1.0625rem; font-weight: 750; margin: 1.5em 0 .4em; }
:where(.prose) h5, :where(.prose) h6 { font-size: 1rem; font-weight: 750; margin: 1.4em 0 .4em; color: var(--text); }
:where(.prose) h2 + h3, :where(.prose) h3 + h4 { margin-top: .8em; }
:where(.prose) a { color: var(--teal); text-decoration-color: color-mix(in srgb, var(--teal) 45%, transparent); }
:where(.prose) a:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
:where(.prose) strong, :where(.prose) b { color: var(--ink); }
:where(.prose) ul, :where(.prose) ol { padding-left: 1.35em; }
:where(.prose) li { margin: .3em 0; padding-left: .15em; }
:where(.prose) li > ul, :where(.prose) li > ol { margin: .3em 0 .4em; }
:where(.prose) ul > li::marker { color: var(--teal); }
:where(.prose) ol > li::marker { color: var(--teal); font-weight: 750; font-variant-numeric: tabular-nums; }
:where(.prose) li[style] { font-weight: inherit !important; }
:where(.prose) blockquote {
	position: relative; padding: 16px 20px 16px 22px; border-left: 4px solid var(--teal); border-radius: 0 12px 12px 0;
	background: var(--paper); color: var(--ink); font-size: 1.02em;
}
:where(.prose) blockquote > :last-child { margin-bottom: 0; }
:where(.prose) blockquote cite, :where(.prose) blockquote footer { display: block; margin-top: 8px; color: var(--muted); font-size: .875rem; font-style: normal; font-weight: 650; }
:where(.prose) img { border-radius: 12px; }
:where(.prose) figure, .prose .wp-caption { max-width: 100%; }
:where(.prose) figure img, .prose .wp-caption img { display: block; margin-inline: auto; }
:where(.prose) figcaption, .prose .wp-caption-text, .prose .wp-element-caption { margin-top: 8px; color: var(--muted); font-size: .84375rem; line-height: 1.45; text-align: center; }
.prose .aligncenter, :where(.prose) img.aligncenter { display: block; margin-inline: auto; }
:where(.prose) > img, :where(.prose) p > img:only-child { display: block; margin: 1.6em auto; }
@media (min-width: 720px) {
	.prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 45%; }
	.prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 45%; }
}
:where(.prose) hr { height: 1px; margin: 2.4em 0; border: 0; background: var(--line); }
:where(.prose) code, :where(.prose) kbd { font-family: var(--mono); font-size: .88em; background: var(--paper-2); padding: .12em .38em; border-radius: 5px; }
:where(.prose) pre { overflow-x: auto; padding: 16px; border-radius: 12px; background: var(--paper-2); font-size: .875rem; }
:where(.prose) pre code { background: none; padding: 0; }
:where(.prose) sup { line-height: 0; }
:where(.prose) iframe, :where(.prose) video, :where(.prose) embed, :where(.prose) object { display: block; max-width: 100%; margin: 1.6em auto; border: 0; border-radius: 12px; }
:where(.prose) iframe[src*="youtube"], :where(.prose) iframe[src*="youtu.be"], :where(.prose) iframe[src*="vimeo"], .prose .wp-embed-aspect-16-9 iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.prose .wp-block-embed__wrapper { position: relative; }
:where(.prose) dl dt { font-weight: 750; color: var(--ink); }
:where(.prose) dl dd { margin: 0 0 .7em; }
:where(.prose) details { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: var(--surface); }
:where(.prose) details > summary { cursor: pointer; font-weight: 750; color: var(--ink); }
:where(.prose) details[open] > summary { margin-bottom: 8px; }
.prose .wp-block-button__link, .prose .button { display: inline-flex; align-items: center; min-height: 46px; padding: 11px 20px; border-radius: var(--radius-sm); background: var(--teal); color: var(--on-teal); font-weight: 750; text-decoration: none; }
.prose .wp-block-button__link:hover, .prose .button:hover { background: var(--teal-hover); color: var(--on-teal); }
.prose::after { content: ""; display: table; clear: both; }

/* =================================================================================================
   Article blocks (batch 4 item 3): class-based markup the content uses to turn existing text into graphics.
   Markup (all plain HTML, no shortcodes; every block works without the theme as normal text):
     Key numbers  <div class="sg-stats"><div class="sg-stat"><p class="sg-stat__num">1.3 kg</p><p class="sg-stat__label">…</p></div>…</div>
     Callout      <div class="sg-callout sg-callout--note|--warning|--evidence"><p class="sg-callout__title">Note</p><p>…</p></div>
     Study card   <div class="sg-study"><p class="sg-study__title">What the study found: …</p>
                    <dl class="sg-study__facts"><div><dt>Population</dt><dd>…</dd></div>…</dl></div>
     Two columns  <div class="sg-split"><div class="sg-split__col sg-split__col--plus|--minus"><p class="sg-split__title">Known</p><ul>…</ul></div>…</div>
     Steps        <ol class="sg-steps"><li><p class="sg-steps__when">Weeks 1–2</p><p>…</p></li>…</ol>
   Auto-styled (inc/content.php): paragraphs that start "Note:"/"Disclaimer:" (note), "Warning:"/"Caution:"/
   "Important:" (warning), "Evidence level" (evidence) become callouts; "Short answer:"/"In short:"/"Bottom
   line:" paragraphs become the answer box.
   ================================================================================================= */
.prose .sg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 1.6em 0; }
.prose .sg-stat { padding: 16px 16px 14px; border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 12px; background: var(--paper); }
.prose .sg-stat > p { margin: 0; }
.prose .sg-stat__num { color: var(--ink); font-size: clamp(1.45rem, 1.2rem + .8vw, 1.8rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.prose .sg-stat__label { margin-top: 6px !important; color: var(--text); font-size: .875rem; line-height: 1.45; }
.prose .sg-stat--risk { border-top-color: var(--risk); }

.prose .sg-callout, .prose p.sg-callout {
	margin: 1.5em 0; padding: 14px 18px 14px 18px; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 0 12px 12px 0;
	background: var(--paper); font-size: .97em; line-height: 1.62;
}
.prose .sg-callout > :last-child { margin-bottom: 0; }
.prose .sg-callout > p { margin: 0 0 .7em; }
.prose .sg-callout__title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px !important; color: var(--ink); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.prose .sg-callout__title::before { content: "i"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--teal); color: var(--on-teal); font-size: .72rem; font-weight: 800; letter-spacing: 0; text-transform: none; }
.prose .sg-callout--warning { border-left-color: var(--risk); background: color-mix(in srgb, var(--risk) 7%, var(--paper)); }
.prose .sg-callout--warning .sg-callout__title::before { content: "!"; background: var(--risk); color: #fff; }
.prose .sg-callout--evidence { border-left-color: var(--accent-strong); background: color-mix(in srgb, var(--accent) 12%, var(--paper)); }
.prose .sg-callout--evidence .sg-callout__title::before { content: "≈"; background: var(--accent-strong); color: #0d2430; }
.prose p.sg-answer {
	margin: 0 0 1.4em; padding: 16px 20px; border-radius: 12px; background: var(--teal-soft); color: var(--ink);
	border: 1px solid color-mix(in srgb, var(--teal) 22%, transparent);
}

.prose .sg-study { margin: 1.6em 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.prose .sg-study__title { margin: 0 !important; padding: 12px 18px; background: var(--paper-2); color: var(--ink); font-size: .9375rem; font-weight: 750; line-height: 1.4; }
.prose .sg-study__title a { font-weight: 750; }
.prose .sg-study__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 0 !important; }
.prose .sg-study__facts > div { padding: 12px 18px; border-top: 1px solid var(--line); }
@media (min-width: 560px) { .prose .sg-study__facts > div + div { border-left: 1px solid var(--line); } }
.prose .sg-study__facts dt { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.prose .sg-study__facts dd { margin: 4px 0 0; color: var(--ink); font-size: .9375rem; line-height: 1.45; }
.prose .sg-study__facts > .sg-study__result { grid-column: 1 / -1; border-left: 0 !important; background: color-mix(in srgb, var(--teal-soft) 55%, transparent); }
.prose .sg-study > p:not(.sg-study__title) { margin: 0; padding: 10px 18px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }

.prose .sg-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 1.6em 0; }
.prose .sg-split__col { padding: 16px 18px 6px; border: 1px solid var(--line); border-top: 3px solid var(--line-strong); border-radius: 12px; background: var(--paper); }
.prose .sg-split__col--plus { border-top-color: var(--ok); }
.prose .sg-split__col--minus { border-top-color: var(--risk); }
.prose .sg-split__title, .prose .sg-split__col > h3, .prose .sg-split__col > h4 { margin: 0 0 8px !important; padding: 0; color: var(--ink); font-size: 1.02rem; font-weight: 800; }
.prose .sg-split__col ul { margin: 0 0 10px; padding-left: 1.15em; }
.prose .sg-split__col li { font-size: .96875rem; line-height: 1.5; }
.prose .sg-split__col--plus ul > li::marker { color: var(--ok); }
.prose .sg-split__col--minus ul > li::marker { color: var(--risk); }
.prose .sg-split__col > p { font-size: .96875rem; margin: 0 0 10px; }

.prose ol.sg-steps { list-style: none; margin: 1.6em 0; padding: 0; counter-reset: sgstep; }
.prose ol.sg-steps > li { position: relative; margin: 0; padding: 0 0 18px 44px; counter-increment: sgstep; }
.prose ol.sg-steps > li::before {
	content: counter(sgstep); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
	background: var(--teal); color: var(--on-teal); font-size: .875rem; font-weight: 800;
}
.prose ol.sg-steps > li::after { content: ""; position: absolute; left: 14px; top: 34px; bottom: 4px; width: 2px; background: var(--line); }
.prose ol.sg-steps > li:last-child { padding-bottom: 0; }
.prose ol.sg-steps > li:last-child::after { display: none; }
.prose ol.sg-steps > li > p { margin: 0 0 .4em; }
.prose ol.sg-steps > li > :last-child { margin-bottom: 0; }
.prose .sg-steps__when { padding-top: 3px; color: var(--ink); font-weight: 800; }

/* Tables (element rules are wrapped in :where() so plugin components inside an article keep their own styles) */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
	background-image: linear-gradient(to right, var(--surface) 30%, transparent), linear-gradient(to left, var(--surface) 30%, transparent),
		radial-gradient(farthest-side at 0 50%, rgba(13, 36, 48, .14), transparent), radial-gradient(farthest-side at 100% 50%, rgba(13, 36, 48, .14), transparent);
	background-position: left center, right center, left center, right center; background-repeat: no-repeat;
	background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%; background-attachment: local, local, scroll, scroll; }
.table-wrap:focus-visible { outline-offset: 2px; }
/* Scroll boxes are the containing block of what they hold: an absolutely positioned screen-reader label inside a
   table cell otherwise escapes the box and widens the page on phones. */
.table-wrap, .sg-table-wrap, .sg-chart__plot { position: relative; }
:where(.prose) table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.table-wide table { min-width: 640px; }
:where(.prose) th, :where(.prose) td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
:where(.prose) thead th, :where(.prose) table:not(:has(thead)) tr:first-child th { background: var(--paper-2); color: var(--ink); font-weight: 750; font-size: .875rem; }
:where(.prose) tbody tr:last-child td, :where(.prose) tbody tr:last-child th { border-bottom: 0; }
:where(.prose) tbody tr:hover td { background: color-mix(in srgb, var(--teal-soft) 45%, transparent); }
:where(.prose) td:first-child { color: var(--ink); font-weight: 650; }
/* Old tables often have no <th>: their first row is the header row. */
:where(.prose) table:not(:has(th)) > tbody:first-child > tr:first-child > td { background: var(--paper-2); color: var(--ink); font-weight: 750; font-size: .875rem; }
:where(.prose) table p { margin: 0; }
.table-dl td:first-child, .table-dl th:first-child { white-space: nowrap; width: 1%; padding-right: 24px; font-weight: 750; }
.table-dl tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--paper) 70%, transparent); }

/* Tables in wide (tool/database) pages: same look as article tables, full content width like everything else on
   the page (batch 5 item 4), so both edges line up with the paragraphs around them. */
.tool-content > .table-wrap { margin: 0 0 1.75em; }
.tool-content > .table-wrap table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.tool-content > .table-wrap th, .tool-content > .table-wrap td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
/* Column headings read as labels (small caps-style, like the plugin's tables), not as body text. */
.tool-content > .table-wrap thead th { background: var(--paper-2); color: var(--muted); font-weight: 750; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.tool-content > .table-wrap tbody tr:last-child td { border-bottom: 0; }
.tool-content > .table-wrap td:first-child { color: var(--ink); font-weight: 650; }
/* Tool pages on phones: a table with a header row becomes one card per row (first cell = card heading,
   then "column: value" lines), so nothing scrolls sideways. Desktop keeps the table. */
@media (max-width: 640px) {
	.tool-content > .table-wrap.table-stack { overflow: visible; border: 0; border-radius: 0; background: none; }
	.tool-content > .table-stack table, .tool-content > .table-stack tbody, .tool-content > .table-stack tr { display: block; min-width: 0; }
	.tool-content > .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.tool-content > .table-stack tr { margin: 0 0 10px; padding: 12px 16px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
	.tool-content > .table-stack tr:last-child { margin-bottom: 0; }
	.tool-content > .table-stack.table-wrap td, .tool-content > .table-stack.table-wrap th { display: flow-root;
		padding: 8px 0 8px 9.25rem; border: 0; border-top: 1px solid var(--line); background: none; font-weight: 400; color: var(--text); }
	.tool-content > .table-stack td[data-label]::before, .tool-content > .table-stack th[data-label]::before { content: attr(data-label); float: left; width: 8.5rem; margin-left: -9.25rem; padding-top: .1em;
		color: var(--muted); font-size: .8125rem; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
	.tool-content > .table-stack.table-wrap tr > :first-child { display: block; padding: 0 0 8px; border-top: 0; color: var(--ink); font-size: 1.0625rem; font-weight: 750; }
	.tool-content > .table-stack tr > :first-child::before { content: none; }
	.tool-content > .table-stack.table-wrap tr > :empty { display: none; }
	.tool-content > .table-stack tbody tr:hover td { background: none; }
}
.prose .wp-block-table { margin: 0 0 1.15em; }
.prose .wp-block-table figcaption { text-align: left; }

/* =================================================================================================
   Article: closing sections
   ================================================================================================= */
.article-body .section-title { scroll-margin-top: calc(var(--header-h) + var(--admin-bar) + 20px); }
.hub-charts, .hub-spokes, .faq, .sources { margin-top: 3rem; }
.hub-charts figure { margin: 0 0 2rem; }
.faq-list { border-bottom: 1px solid var(--line); }
/* FAQ accordion: all questions collapsed; "+" / "−" marker; open item = chips, short answer, section link. */
.faq-item { border-top: 1px solid var(--line); }
.faq-sum { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 2px; cursor: pointer; list-style: none; border-radius: 6px; }
.faq-sum::-webkit-details-marker { display: none; }
.faq-sum:hover .faq-q { color: var(--teal); }
.faq-q { margin: 0; font-size: 1.0625rem; font-weight: 750; line-height: 1.38; }
.faq-mark { flex: none; position: relative; width: 16px; height: 16px; color: var(--teal); }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .15s; }
.faq-mark::after { transform: rotate(90deg); }
.faq-item[open] .faq-mark::after { transform: rotate(0deg); }
.faq-a { padding: 0 2px 18px; color: var(--text); font-size: 1rem; line-height: 1.6; }
.faq-a p { margin: 0 0 .6em; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a .faq-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.faq-verdict { padding: 3px 11px; border-radius: 99px; background: var(--accent); color: #0d2430; font-size: .8125rem; font-weight: 750; line-height: 1.4; }
.faq-evidence { padding: 2px 9px; border: 1px solid var(--line-strong); border-radius: 99px; color: var(--teal); font-size: .75rem; font-weight: 700; line-height: 1.4; }
.faq-more a { font-size: .9375rem; font-weight: 750; text-decoration: none; }
.faq-more a:hover { text-decoration: underline; }
.source-list { margin: 0; padding-left: 1.6em; font-size: .9375rem; line-height: 1.55; }
.source-list li { margin: 0 0 10px; padding-left: 4px; }
.source-list li::marker { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.source-list a { overflow-wrap: anywhere; }
.src-meta { color: var(--muted); font-family: var(--mono); font-size: .8125rem; white-space: nowrap; }
.src-meta a { color: var(--muted); }
.team-box {
	display: flex; gap: 16px; align-items: flex-start; margin: 3rem 0 0; padding: 20px 22px;
	border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.team-mark { flex: none; }
.team-mark svg { display: block; width: 46px; height: 46px; border-radius: 12px; }
.team-title { font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.team-copy p { font-size: .9375rem; line-height: 1.6; margin: 0 0 6px; }
.team-copy .team-small { color: var(--muted); font-size: .84375rem; margin: 0; }
.related { margin-top: 56px; background: var(--paper); border-top: 1px solid var(--line); }

/* =================================================================================================
   Pages, archives, search, 404
   ================================================================================================= */
.page-head, .archive-head {
	padding: 28px 0 26px; border-bottom: 1px solid var(--line);
	background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--teal) 10%, transparent) 1px, transparent 1.5px) 0 0 / 22px 22px, var(--paper);
}
@media (min-width: 720px) { .page-head, .archive-head { padding: 40px 0 36px; } }
.page-title, .archive-title { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); font-weight: 800; letter-spacing: -.028em; line-height: 1.12; }
.page-lede { margin-top: 12px; font-size: 1.125rem; color: var(--text); max-width: 40em; }
.page-meta { margin-top: 12px; color: var(--muted); font-size: .875rem; font-weight: 550; }
.page-main .prose { margin: 32px 0 64px; }
.page-wide .tool-content { margin: 32px 0 72px; }
.tool-content > :first-child { margin-top: 0; }
/* Tool pages: every section (intro, notes, tables, charts, cards, FAQ, sources) uses the full 1200 px content width
   (batch 5 item 4, Arghya). */
:where(.tool-content) > p, :where(.tool-content) > ul, :where(.tool-content) > ol { margin: 0 0 1.1em; }
.page-wide .page-lede { max-width: none; }
.tool-content .sg-chart, .page-full .sg-chart { max-width: none; }
/* The chart drawing keeps its own size (text would grow 1.5x if scaled to 1200 px): centred in the full-width box. */
.page-full .sg-chart__svg { margin-inline: auto; }
:where(.tool-content) > ul, :where(.tool-content) > ol { padding-left: 1.25em; }
:where(.tool-content) > ul > li + li, :where(.tool-content) > ol > li + li { margin-top: .4em; }
:where(.tool-content) > h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; margin: 2.2em 0 .7em; }
:where(.tool-content) > h3 { font-size: 1.2rem; font-weight: 750; line-height: 1.3; margin: 1.8em 0 .55em; }
.tool-content > p + .table-wrap, .tool-content > ul + .table-wrap { margin-top: 1.4em; }
.archive-intro { margin-top: 12px; max-width: 46em; color: var(--text); font-size: 1.0625rem; line-height: 1.6; }
.archive-intro p { margin: 0 0 .6em; }
.archive-intro p:last-child { margin: 0; }
.archive-count { margin-top: 12px; color: var(--muted); font-size: .875rem; font-weight: 650; }
.subtopics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip.is-active .chip-n { color: inherit; opacity: .75; }
.archive-head-grid { display: grid; gap: 24px; }
.archive-head-main { min-width: 0; }
.topic-db {
	padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
	display: flex; flex-direction: column; gap: 4px;
}
.topic-db p { margin: 0; }
.topic-db-title { font-size: .9375rem; font-weight: 750; color: var(--ink); }
.topic-db-text { font-size: .875rem; line-height: 1.45; color: var(--muted); }
.topic-db-link { margin-top: 6px; font-size: .875rem; font-weight: 750; color: var(--teal); text-decoration: none; }
.topic-db-link:hover { text-decoration: underline; }
@media (min-width: 960px) {
	.archive-head-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: end; }
}
.featured { padding-bottom: 0; }
.featured-grid { display: grid; gap: 22px; }
@media (min-width: 600px) { .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; } }
.featured-grid .db-grid { height: 100%; }
.featured-grid .db-card { border-top: 4px solid var(--accent); }
.listing .card-grid + .pager, .listing .results + .pager { margin-top: 40px; }
.search-page-form { margin-top: 18px; max-width: 760px; }
.search-layout { display: grid; gap: 32px; }
.search-results { min-width: 0; }
.aside-title { font-size: .8125rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
@media (min-width: 1000px) {
	.search-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
	.search-layout .search-compounds { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + var(--admin-bar) + 24px); }
	.search-layout .search-results { grid-column: 1; grid-row: 1; }
}
.results { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.result { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 600px) { .result { grid-template-columns: 140px minmax(0, 1fr); gap: 18px; } }
.result-thumb { display: block; aspect-ratio: 7 / 4; border-radius: 8px; overflow: hidden; background: var(--paper-2); container-type: inline-size; }
.result-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.result-thumb .cover { padding: 8%; }
.result-thumb .cover-kicker, .result-thumb .cover-brand { display: none; }
.result-thumb .cover-word { font-size: 1.1rem; font-size: 15cqi; }
.result-thumb .cover.is-long .cover-word { font-size: .9rem; font-size: 11cqi; }
.result:first-child { padding-top: 0; }
.result-kicker { color: var(--teal); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.result-title { font-size: 1.25rem; font-weight: 750; line-height: 1.3; margin-bottom: 6px; }
.result-title a { color: var(--ink); text-decoration: none; }
.result-title a:hover { color: var(--teal); text-decoration: underline; }
.result-excerpt { color: var(--text); font-size: .96875rem; line-height: 1.55; }
.result-meta { margin-top: 6px; color: var(--muted); font-size: .8125rem; }
.empty { max-width: 820px; }
.empty > p { margin-bottom: 24px; color: var(--text); }

.pager .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pager .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 14px;
	border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-weight: 700; font-size: .9375rem; text-decoration: none;
}
.pager a.page-numbers:hover { border-color: var(--teal); color: var(--teal); }
.pager .page-numbers.current { background: var(--teal); border-color: var(--teal); color: var(--on-teal); }
.pager .page-numbers.dots { border: 0; background: none; min-width: 24px; padding: 0; }

/* =================================================================================================
   Footer
   ================================================================================================= */
.site-footer { margin-top: 0; background: var(--dark); color: var(--on-dark-muted); padding: 52px 0 28px; font-size: .9375rem; --logo-ring: #fce058; --logo-g: #fce058; }
.site-footer .brand { color: #fff; }
.site-footer .sg-logo { height: 32px; }
.footer-grid { display: grid; gap: 32px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 960px) {
	.footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 48px; }
	.footer-brand { grid-column: auto; }
}
.footer-brand p { margin: 16px 0 0; max-width: 30em; line-height: 1.6; }
.footer-disclosure { margin-top: 14px; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; font-size: .8125rem; line-height: 1.5; color: var(--on-dark); }
.footer-disclosure p { display: inline; margin: 0; }
.footer-disclosure a { margin-left: 4px; }
.footer-disclosure a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); white-space: nowrap; }
.footer-h { color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 8px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--accent); }
.footer-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8125rem; line-height: 1.6; }
.footer-legal p { margin: 0 0 8px; }
.footer-medical strong { color: var(--on-dark); }
.footer-legal a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); }
.footer-copy { color: rgba(255, 255, 255, .5); }

/* =================================================================================================
   Plugin output inside the theme: neutral spacing only (the plugin styles its own components).
   ================================================================================================= */
.prose figure.sg-chart, .hub-charts figure { max-width: 100%; }
.prose figure svg, .hub-charts figure svg { display: block; width: 100%; height: auto; }
.tool-content { min-width: 0; }

/* =================================================================================================
   Motion, print
   ================================================================================================= */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
	.topbar, .site-header, .site-footer, .article-rail, .related, .box-slot, .skip-link, .disclosure-line .icon { display: none !important; }
	body { font-size: 11pt; color: #000; background: #fff; }
	.article-grid { width: 100%; display: block; }
	.prose a::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; overflow-wrap: anywhere; }
}

/* Article archive (/articles/, home.php): topic and type navigation */
.articles-nav { margin-top: 18px; }
.articles-nav .subtopics { margin-top: 8px; }
.articles-nav-label { margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
