/*
Theme Name: WP Collections
Description: Reading-first theme for WP Collections.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: wpc
*/

/* ── Font ─────────────────────────────────────────── */
@font-face {
	font-family: "Inter";
	src: url("assets/fonts/inter-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ── Tokens ───────────────────────────────────────── */
:root {
	--accent: #1d4ed8;
	--accent-hover: #1e40af;
	--accent-soft: #eef2fc;
	--bg: #ffffff;
	--surface: #ffffff;
	--surface-2: #f5f5f4;
	--ink: #111111;
	--text: #1a1a1a;
	--text-2: #444444;
	--muted: #707070;
	--line: #e3e3e3;
	--rule: #111111;
	--band: #111111;
	--band-text: #ffffff;
	--font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--read: 700px;
	--wide: 1200px;
	--gutter: 24px;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--accent: #7ea2ff; --accent-hover: #a3bdff; --accent-soft: #161d2e;
		--bg: #111214; --surface: #111214; --surface-2: #1a1b1e;
		--ink: #f2f2f2; --text: #e6e6e6; --text-2: #bdbdbd; --muted: #8c8c8c; --line: #2a2b2e; --rule: #e6e6e6;
		--band: #1d1e21; --band-text: #f2f2f2;
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--accent: #7ea2ff; --accent-hover: #a3bdff; --accent-soft: #161d2e;
	--bg: #111214; --surface: #111214; --surface-2: #1a1b1e;
	--ink: #f2f2f2; --text: #e6e6e6; --text-2: #bdbdbd; --muted: #8c8c8c; --line: #2a2b2e; --rule: #e6e6e6;
	--band: #1d1e21; --band-text: #f2f2f2;
	color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	font-feature-settings: "cv11", "ss01";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100; padding: 8px 14px; background: var(--ink); color: var(--bg); }
.icon { width: 1.2em; height: 1.2em; flex: none; }
.wrap { width: 100%; max-width: calc(var(--wide) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 600px) { :root { --gutter: 16px; } }

/* Small capitals: kickers, labels, bylines, dates. */
.kicker, .eyebrow, .section-label, .meta, .byline-small, .footer-title, .rail-title, .tag, .nav-list a, .tagline, .page-count {
	text-transform: uppercase;
	letter-spacing: .08em;
}

/* ── Buttons, tags ────────────────────────────────── */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .7em 1.2em; border: 0; border-radius: 0;
	background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; line-height: 1.2; letter-spacing: .02em;
	cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--accent-hover); }
.btn-sm { padding: .55em 1em; font-size: 13px; }
.btn-block { width: 100%; }
.icon-btn {
	display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0;
	border: 0; border-radius: 0; background: transparent; color: var(--text); cursor: pointer;
}
.icon-btn:hover { color: var(--accent); }
.icon-btn.is-done { color: #15803d; }
.tag {
	display: inline-flex; align-items: center; gap: .5em; white-space: nowrap;
	padding: .5em .8em; font-size: 11px; font-weight: 700; line-height: 1.2;
	color: var(--text); border: 1px solid var(--line); background: var(--bg);
}
.tag:hover { border-color: var(--ink); }
.tag.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tag-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.kicker { display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent); }
.kicker:hover { color: var(--accent-hover); }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--accent); }
.meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.byline-small { font-size: 11px; font-weight: 700; color: var(--text); }
.byline-small .meta { font-size: 11px; }
.avatar {
	display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px;
	background: var(--ink); color: var(--bg); font-weight: 800; font-size: 13px; letter-spacing: .02em;
}

/* ── Reading progress ─────────────────────────────── */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

/* ── Masthead ─────────────────────────────────────── */
.masthead { background: var(--bg); }
.mast-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 18px; }
.mast-left { display: flex; align-items: center; gap: 2px; margin-left: -10px; }
.mast-right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.mast-brand { text-align: center; }
.logo { display: inline-block; font-weight: 800; font-size: 34px; letter-spacing: -.045em; line-height: 1; color: var(--ink); }
.tagline { margin-top: 8px; font-size: 10px; font-weight: 600; color: var(--muted); }
.mast-nav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nav-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 26px; list-style: none; }
.nav-list a { display: block; padding: 13px 0 12px; font-size: 12px; font-weight: 700; color: var(--text); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nav-list a:hover { color: var(--accent); }
.nav-list .current-menu-item a, .nav-list .current-category-ancestor a, .nav-list .current-post-ancestor a { border-bottom-color: var(--ink); }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
	:root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
.menu-btn { display: none; }
@media (max-width: 860px) {
	.mast-nav { display: none; }
	.menu-btn { display: inline-grid; }
	.mast-top { border-bottom: 1px solid var(--line); padding-top: 14px; padding-bottom: 12px; }
	.logo { font-size: 24px; }
	.tagline { display: none; }
}
@media (max-width: 420px) { .mast-right .btn { display: none; } }

/* ── Dialogs: search + drawer ─────────────────────── */
.sheet { border: 0; padding: 0; color: var(--text); background: var(--bg); border-radius: 0; }
.sheet::backdrop { background: rgba(0, 0, 0, .5); }
.search-sheet { width: min(720px, calc(100% - 32px)); margin: 10vh auto auto; border-top: 4px solid var(--rule); }
.search-big { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-big input { flex: 1; min-width: 0; padding: 14px 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 20px; color: var(--text); }
.search-big input::-webkit-search-cancel-button { display: none; }
.search-hints { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 16px 20px 20px; }
.search-hints > span { width: 100%; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.drawer { width: min(340px, 88vw); height: 100%; max-height: none; margin: 0 auto 0 0; padding: 18px 20px 28px; overflow-y: auto; border-right: 1px solid var(--line); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 4px solid var(--rule); }
.drawer-head .logo { font-size: 24px; }
.drawer-list { list-style: none; margin-bottom: 24px; }
.drawer-list a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.drawer-label { font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .08em; }
.drawer .tag-cloud { margin-bottom: 28px; }

/* ── Section heads ────────────────────────────────── */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 3px solid var(--rule); padding-top: 10px; margin-bottom: 20px; }
.section-label { font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.section-more { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.section-more:hover { color: var(--accent); }

/* ── Front page ───────────────────────────────────── */
.front { padding-top: 36px; padding-bottom: 64px; }
.front-top { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .front-top { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; } }
.lead-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); margin-bottom: 18px; border: 1px solid var(--line); }
.lead-media img { width: 100%; height: 100%; object-fit: cover; }
.lead-title { margin-top: 10px; font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.lead-title a:hover, .item-title a:hover, .card-title a:hover, .row-title a:hover, .pick-title:hover { color: var(--accent); }
.lead-dek { margin-top: 12px; font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 680px; }
.lead .byline-small { margin-top: 14px; }
.front-latest .item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.front-latest .item:first-of-type { padding-top: 2px; }
.item-title { margin: 6px 0 8px; font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; }
.front-section { margin-top: 56px; }
.cards { display: grid; gap: 32px 28px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (min-width: 1000px) { .front .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-title { margin: 6px 0 6px; font-size: 18px; font-weight: 750; letter-spacing: -.02em; line-height: 1.28; }
.card-dek { font-size: 14px; line-height: 1.5; color: var(--text-2); margin-bottom: 8px; }

/* Newsletter band */
.band { display: grid; gap: 20px 48px; grid-template-columns: minmax(0, 1fr); align-items: center; margin-top: 56px; padding: 32px; background: var(--band); color: var(--band-text); }
@media (min-width: 860px) { .band { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 40px 44px; } }
.band-title { color: var(--band-text); font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.band-text p { color: color-mix(in srgb, var(--band-text) 78%, transparent); font-size: 15px; line-height: 1.55; max-width: 460px; }
.band-note { margin-top: 10px; font-size: 12px; color: color-mix(in srgb, var(--band-text) 60%, transparent); }

/* ── Topic, search, 404 heads ─────────────────────── */
.page-head, .notfound { padding-top: 40px; padding-bottom: 20px; }
.page-title { margin-top: 8px; font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -.035em; }
.page-dek { max-width: 640px; margin-top: 12px; font-size: 18px; color: var(--text-2); }
.page-count { margin-top: 12px; font-size: 11px; font-weight: 700; color: var(--muted); }
.notfound { padding-bottom: 96px; }
.notfound .topics { margin-top: 28px; }
.search-inline { display: flex; align-items: center; gap: 10px; max-width: 520px; margin-top: 20px; padding: 0 14px; border: 1px solid var(--ink); background: var(--bg); color: var(--muted); }
.search-inline input { flex: 1; padding: 12px 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); }

/* Topic bar */
.topics ul { display: flex; gap: 6px; list-style: none; }
.topics-bar { margin-bottom: 4px; padding-bottom: 18px; border-bottom: 3px solid var(--rule); }
.topics-bar ul { overflow-x: auto; scrollbar-width: none; }
.topics-bar ul::-webkit-scrollbar { display: none; }
.notfound .topics ul, .empty .topics ul { flex-wrap: wrap; }

/* ── Archive layout: rows + rail ──────────────────── */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; padding-bottom: 80px; }
@media (min-width: 1024px) { .layout { grid-template-columns: minmax(0, 1fr) 300px; } }
.feed { min-width: 0; }
.row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line); }
.row-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.row-media img { width: 100%; height: 100%; object-fit: cover; }
.row-title { margin: 6px 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -.025em; line-height: 1.22; }
.row-dek { color: var(--text-2); font-size: 15px; line-height: 1.55; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) {
	.row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.row-title { font-size: 19px; }
}
.pagination { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 36px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.pagination .page-numbers:hover { border-color: var(--ink); }
.pagination .current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pagination .dots { border: 0; }
.empty { padding: 48px 0; }
.empty-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.empty .topics { margin-top: 20px; }

/* Rail */
.rail { display: none; }
@media (min-width: 1024px) {
	.rail { display: block; }
	.rail-inner { position: sticky; top: 24px; padding-top: 26px; }
}
.rail-block + .rail-block { margin-top: 36px; }
.rail-title { font-size: 13px; font-weight: 800; letter-spacing: .1em; border-top: 3px solid var(--rule); padding-top: 10px; margin-bottom: 14px; }
.picks { list-style: none; counter-reset: pick; }
.picks li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); counter-increment: pick; }
.picks li::before { content: counter(pick); position: absolute; left: 0; top: 10px; font-size: 22px; font-weight: 800; color: var(--accent); line-height: 1; }
.pick-title { display: block; margin-top: 4px; font-size: 15px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.news-card { padding: 18px; background: var(--band); color: var(--band-text); }
.news-card .rail-title { color: var(--band-text); border-top: 0; padding-top: 0; }
.news-card p { font-size: 14px; color: color-mix(in srgb, var(--band-text) 78%, transparent); margin-bottom: 14px; }
.rail-links ul { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin-top: 28px; }
.rail-links a { font-size: 12px; color: var(--muted); }
.rail-links a:hover { color: var(--text); }

/* ── Article ──────────────────────────────────────── */
.read { width: 100%; max-width: calc(var(--read) + var(--gutter) * 2); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.post-head { padding-top: 44px; }
.post-title { margin-top: 12px; font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -.038em; line-height: 1.08; }
.post-dek { margin-top: 16px; font-size: clamp(18px, 2.1vw, 21px); line-height: 1.5; color: var(--text-2); }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.byline-text { display: flex; flex-direction: column; gap: 3px; }
.byline-name { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.byline-name:hover { color: var(--accent); }
.actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding: 4px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.method-link { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.method-link .icon { color: #15803d; width: 1.2em; height: 1.2em; }
.method-link:hover { color: var(--text); }
.share { display: flex; gap: 0; }
.share .icon { width: 1.1em; height: 1.1em; }
.post-hero { max-width: 1040px; margin: 36px auto 0; padding: 0 var(--gutter); }
.post-hero img { width: 100%; border: 1px solid var(--line); }

/* Body grid: TOC rail on wide screens, a collapsible box above the text otherwise */
.post-grid { margin-top: 40px; }
.toc { max-width: calc(var(--read) + var(--gutter) * 2); margin: 0 auto 28px; padding: 0 var(--gutter); }
.toc-box { border-top: 3px solid var(--rule); border-bottom: 1px solid var(--line); }
.toc-box summary { display: flex; align-items: center; gap: 8px; padding: 12px 0; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; cursor: pointer; list-style: none; }
.toc-box summary .icon { display: none; }
.toc-box summary::-webkit-details-marker { display: none; }
.toc-box summary::after { content: "+"; margin-left: auto; font-size: 18px; font-weight: 500; }
.toc-box[open] summary::after { content: "−"; }
.toc ol { list-style: none; padding: 0 0 12px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 12px; padding: 7px 0; font-size: 14px; line-height: 1.4; color: var(--text-2); border-top: 1px solid var(--line); }
.toc li:first-child a { border-top: 0; }
.toc a::before { content: counter(toc, decimal-leading-zero); flex: none; font-size: 11px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.toc a:hover, .toc a.is-active { color: var(--accent); }
.toc a.is-active::before { color: var(--accent); }
@media (min-width: 1240px) {
	.post-grid { display: grid; grid-template-columns: 1fr minmax(0, var(--read)) 1fr; column-gap: 56px; max-width: var(--wide); margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }
	.post-grid > .content { grid-column: 2; padding: 0; max-width: none; }
	.toc { grid-column: 1; grid-row: 1; justify-self: end; width: 100%; max-width: 230px; margin: 0; padding: 0; }
	.toc-box { position: sticky; top: 24px; border-bottom: 0; }
	.toc-box summary { pointer-events: none; }
	.toc-box summary::after { display: none; }
	.toc a { font-size: 13px; }
}

/* Article text */
.content { font-size: 18px; line-height: 1.75; color: var(--text); }
@media (max-width: 600px) { .content { font-size: 17px; line-height: 1.7; } }
.content > * + * { margin-top: 1.3em; }
.content a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.content a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
.content h2 { margin-top: 2.2em; padding-top: .7em; border-top: 1px solid var(--line); font-size: 1.5em; font-weight: 800; letter-spacing: -.03em; line-height: 1.22; }
.content h3 { margin-top: 1.8em; font-size: 1.18em; font-weight: 750; letter-spacing: -.02em; line-height: 1.3; }
.content h2 + *, .content h3 + * { margin-top: .6em; }
.content strong { font-weight: 700; color: var(--ink); }
.content ul, .content ol { padding-left: 1.25em; }
.content li + li { margin-top: .45em; }
.content li::marker { color: var(--muted); }
.content blockquote { margin: 1.6em 0; padding: 0 0 0 1.1em; border-left: 3px solid var(--rule); font-size: 1.08em; color: var(--text-2); }
.content code { font-family: var(--mono); font-size: .85em; padding: .1em .35em; background: var(--surface-2); }
.content pre { padding: 18px 20px; background: #111; color: #eee; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.content pre code { padding: 0; background: none; color: inherit; }
.content hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }
.content figure { margin-left: 0; margin-right: 0; }
.content .wp-block-image img { border: 1px solid var(--line); }
.content figcaption, .content .wp-element-caption { margin-top: .6em; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: left; }

/* Tables: the ranking data. Scroll inside the box, never the page. */
.content .wp-block-table { overflow-x: auto; border-top: 3px solid var(--rule); border-bottom: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.content .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.content .wp-block-table thead { border-bottom: 1px solid var(--rule); }
.content .wp-block-table th { padding: 10px 12px 10px 0; text-align: left; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); white-space: nowrap; border: 0; }
.content .wp-block-table td { padding: 11px 12px 11px 0; border: 0; border-top: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.content .wp-block-table td:last-child { white-space: normal; min-width: 160px; }
.content .wp-block-table tbody tr:first-child td { border-top: 0; }
.content .wp-block-table.is-style-stripes tbody tr:nth-child(odd), .content .wp-block-table.is-style-stripes tbody tr:nth-child(even) { background: transparent; }
.content .wp-block-table tbody tr:hover { background: var(--surface-2); }
.content .wp-block-table td:first-child { font-weight: 700; }
.content .wp-block-table figcaption { padding: 10px 0; margin: 0; border-top: 1px solid var(--line); }
@media (min-width: 1240px) {
	.post-grid .content .wp-block-table { width: calc(100% + 200px); max-width: calc(100% + 200px); }
}

/* FAQ */
.content .wp-block-details { border-top: 1px solid var(--line); padding: 0; }
.content .wp-block-details:last-of-type { border-bottom: 1px solid var(--line); }
.content .wp-block-details + .wp-block-details { margin-top: 0; }
.content .wp-block-details summary { position: relative; padding: 16px 30px 16px 0; font-weight: 700; font-size: .95em; color: var(--ink); cursor: pointer; list-style: none; }
.content .wp-block-details summary::-webkit-details-marker { display: none; }
.content .wp-block-details summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--muted); }
.content .wp-block-details[open] summary::after { content: "−"; }
.content .wp-block-details > :not(summary) { margin: 0 0 18px; font-size: .95em; color: var(--text-2); }

/* The short answer box */
.content .callout, .content .verdict { padding: 16px 20px; background: var(--surface-2); border-left: 4px solid var(--accent); font-size: .95em; }
.content .verdict > * + * { margin-top: .6em; }

/* Article footer */
.post-foot { margin-top: 48px; padding-bottom: 64px; }
.post-foot > * + * { margin-top: 28px; }
.post-foot .band { margin-top: 36px; }
.post-foot-share { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.author-card { display: flex; gap: 16px; align-items: flex-start; padding-top: 20px; border-top: 3px solid var(--rule); }
.author-card .avatar { width: 52px; height: 52px; font-size: 16px; }
.author-name { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.author-card p:not(.author-name) { font-size: 15px; color: var(--text-2); margin-bottom: 6px; }
.author-card a { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }

/* Keep reading */
.more { padding: 8px 0 72px; }
.more .cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* Pages */
.page-article { padding-bottom: 80px; }
.page-article .content { margin-top: 28px; }

/* ── Newsletter form (plugin markup), square ──────── */
.owldraft-newsletter-row { background: var(--bg) !important; border: 1px solid var(--line) !important; border-radius: 0 !important; padding: 4px !important; }
.owldraft-newsletter-row:focus-within { border-color: var(--accent) !important; box-shadow: none !important; }
.owldraft-newsletter-row .owldraft-newsletter-input { color: var(--text) !important; }
.owldraft-newsletter-row .wp-element-button { border-radius: 0 !important; background: var(--accent) !important; color: #fff !important; font-weight: 700 !important; }
.band .owldraft-newsletter-row, .news-card .owldraft-newsletter-row { background: #fff !important; border-color: #fff !important; }
.band .owldraft-newsletter-row .owldraft-newsletter-input, .news-card .owldraft-newsletter-row .owldraft-newsletter-input { color: #111 !important; }

/* ── Account page (/account/): the plugin leaves its fields to the theme ── */
.owldraft-newsletter-account__names label { margin-bottom: 6px; font-size: 11px; font-weight: 700; line-height: 1.4; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.owldraft-newsletter-account > * + *, .owldraft-newsletter-profile > * + * { margin-top: .8em; }
.owldraft-newsletter-account .owldraft-newsletter-account__names { margin: 1.6em 0 1.4em; gap: 16px; }
.owldraft-newsletter-account__names p { margin: 0; }
.owldraft-newsletter-account .owldraft-newsletter-account__actions { margin-top: 1.4em; }
.owldraft-newsletter-account__names input {
	padding: 11px 12px; font: inherit; font-size: 16px; line-height: 1.4;
	color: var(--text); background: var(--bg); border: 1px solid color-mix(in srgb, var(--text) 22%, var(--bg)); border-radius: 0; box-shadow: none;
}
.owldraft-newsletter-account__names input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.owldraft-newsletter-account input[type="checkbox"] { accent-color: var(--accent); }
.owldraft-newsletter-account__actions .wp-element-button {
	padding: .85em 1.5em; border: 0; border-radius: 0; background: var(--accent); color: #fff;
	font-size: 14px; font-weight: 700; line-height: 1.2; letter-spacing: .02em; cursor: pointer;
}
.owldraft-newsletter-account__actions .wp-element-button:hover { background: var(--accent-hover); }
.owldraft-newsletter-account__actions .owldraft-newsletter-signout { font-size: 14px; font-weight: 700; }

/* ── Footer ───────────────────────────────────────── */
.site-footer { border-top: 4px solid var(--rule); padding-top: 44px; font-size: 14px; }
.footer-inner { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 320px 1fr; gap: 80px; } }
.footer-brand .logo { font-size: 26px; }
.footer-brand p { margin-top: 14px; color: var(--muted); max-width: 320px; line-height: 1.55; }
.footer-cols { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .footer-cols { grid-template-columns: 1fr 1fr 1.6fr; } }
.footer-news { grid-column: 1 / -1; }
@media (min-width: 700px) { .footer-news { grid-column: auto; } }
.footer-title { font-size: 11px; font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li + li { margin-top: 8px; }
.site-footer li a { color: var(--text-2); }
.site-footer li a:hover { color: var(--accent); }
.footer-news p { color: var(--muted); margin-bottom: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 18px; padding-bottom: 26px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.footer-bottom a:hover { color: var(--text); }
