/*
Theme Name: Siatkarski Puls
Theme URI: https://siatkarskipuls.pl/
Description: Motyw potomny GeneratePress dla serwisu Siatkarski Puls. System «Antenka»: indygo, koral, paski anteny siatkarskiej.
Author: Siatkarski Puls
Template: generatepress
Version: 1.0.0
Requires PHP: 8.0
Text Domain: sgp
License: GPL-2.0-or-later
*/

/* ---------- Fonts ---------- */
@font-face { font-family: "SGP Lexend"; src: url("fonts/lexend-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "SGP Lexend"; src: url("fonts/lexend-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "SGP Lexend"; src: url("fonts/lexend-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "SGP Source Sans 3"; src: url("fonts/sourcesans3-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "SGP Source Sans 3"; src: url("fonts/sourcesans3-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "SGP Source Sans 3"; src: url("fonts/sourcesans3-italic-400.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
	--sgp-bg: #F4F6FB;
	--sgp-indigo: #2B2F8F;
	--sgp-indigo-deep: #1F2272;
	--sgp-coral: #FF6F59;
	--sgp-surface: #DADDF0;
	--sgp-text: #1A1C3A;
	--sgp-muted: #4E5275;
	--sgp-line: #C9CDE6;
	--sgp-paper: #FFFFFF;
	--sgp-link: #2B2F8F;
	--sgp-ant-2: #2B2F8F;
	--sgp-rule: #2B2F8F;
	--sgp-on-indigo: #FFFFFF;
	--sgp-on-indigo-muted: #C8CBEC;
	--sgp-head: "SGP Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--sgp-body: "SGP Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--sgp-wrap: 1240px;
	--sgp-gut: 16px;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root {
		--sgp-bg: #12132B;
		--sgp-indigo: #1B1D5E;
		--sgp-indigo-deep: #15174B;
		--sgp-surface: #1E2046;
		--sgp-text: #E9EAF6;
		--sgp-muted: #B4B7D8;
		--sgp-line: #34376B;
		--sgp-paper: #1E2046;
		--sgp-link: #C3C6FF;
		--sgp-ant-2: #E9EAF6;
		--sgp-rule: #5A5FC0;
		color-scheme: dark;
	}
}
@media (min-width: 700px) { :root { --sgp-gut: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
	margin: 0;
	background: var(--sgp-bg);
	color: var(--sgp-text);
	font-family: var(--sgp-body);
	font-size: 17px;
	line-height: 1.5;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sgp-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--sgp-coral); }
:focus-visible { outline: 3px solid var(--sgp-coral); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--sgp-head); font-weight: 700; line-height: 1.15; margin: 0; color: var(--sgp-text); letter-spacing: -0.01em; }
p { margin: 0; }
button, input { font: inherit; }
.sgp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sgp-skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--sgp-coral); color: #1A1C3A; padding: 10px 14px; font-family: var(--sgp-head); font-weight: 600; }
.sgp-skip:focus { top: 8px; }
.sgp-wrap { width: 100%; max-width: var(--sgp-wrap); margin-inline: auto; padding-inline: var(--sgp-gut); }
.sgp-main { display: block; min-height: 60vh; padding-bottom: 40px; }

/* ---------- Antenna ---------- */
.sgp-antenna {
	display: inline-block;
	flex: none;
	width: 6px;
	height: 30px;
	background: repeating-linear-gradient(180deg, var(--sgp-coral) 0 5px, var(--sgp-ant-2) 5px 10px);
}
.sgp-antenna--header {
	display: block;
	width: 100%;
	height: 6px;
	background: repeating-linear-gradient(90deg, var(--sgp-coral) 0 30px, #FFFFFF 30px 60px);
	border-bottom: 2px solid var(--sgp-indigo);
}
.sgp-antenna--footer {
	display: block;
	width: 100%;
	height: 6px;
	background: repeating-linear-gradient(90deg, var(--sgp-coral) 0 30px, #FFFFFF 30px 60px);
}
.sgp-antenna--vertical { width: 8px; height: auto; align-self: stretch; min-height: 64px; background: repeating-linear-gradient(180deg, var(--sgp-coral) 0 12px, var(--sgp-ant-2) 12px 24px); }

/* ---------- Header ---------- */
.sgp-header { background: var(--sgp-indigo); color: var(--sgp-on-indigo); }
.sgp-header-in {
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-areas: "logo . badge" "nav nav nav";
	align-items: center;
	column-gap: 16px;
}
.sgp-logo { grid-area: logo; display: block; padding: 12px 0 10px; }
.sgp-logo-img { width: auto; height: 44px; margin-left: -9px; }
.sgp-badge {
	grid-area: badge;
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--sgp-coral); color: #1A1C3A;
	font-family: var(--sgp-head); font-weight: 600; font-size: 14px; line-height: 1;
	font-variant-numeric: tabular-nums;
	padding: 9px 12px; border-radius: 2px; text-decoration: none; white-space: nowrap;
}
.sgp-badge:hover { background: #FF8573; color: #1A1C3A; }
.sgp-badge-dot { width: 7px; height: 7px; background: #1A1C3A; border-radius: 50%; }
.sgp-nav { grid-area: nav; border-top: 1px solid rgba(255,255,255,.16); margin-inline: calc(var(--sgp-gut) * -1); padding-inline: var(--sgp-gut); overflow-x: auto; scrollbar-width: none; }
.sgp-nav::-webkit-scrollbar { display: none; }
.sgp-header .sgp-menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.sgp-header .sgp-menu a {
	display: block; padding: 12px 10px 11px; color: var(--sgp-on-indigo); text-decoration: none;
	font-family: var(--sgp-head); font-weight: 600; font-size: 15px;
	border-bottom: 3px solid transparent;
}
.sgp-header .sgp-menu li:first-child a { padding-left: 0; }
.sgp-header .sgp-menu a:hover { border-bottom-color: rgba(255,255,255,.5); }
.sgp-header .sgp-menu .current-menu-item a, .sgp-header .sgp-menu .current-menu-parent a, .sgp-header .sgp-menu .current-post-ancestor a, .sgp-header .sgp-menu a[aria-current] { border-bottom-color: var(--sgp-coral); }
@media (max-width: 699px) {
	.sgp-logo-img { height: 36px; margin-left: -7px; }
	.sgp-badge { font-size: 13px; padding: 8px 9px; }
	.sgp-header .sgp-menu a { font-size: 14px; padding: 11px 8px 10px; }
}

/* ---------- Shared bits ---------- */
.sgp-sec-title {
	display: flex; align-items: center; gap: 12px;
	font-size: 22px; margin: 0 0 16px;
}
.sgp-sec-title .sgp-antenna { height: 24px; }
.sgp-kicker {
	display: inline-flex; align-items: center; gap: 7px;
	font-family: var(--sgp-head); font-weight: 600; font-size: 13px; letter-spacing: .01em;
	color: var(--sgp-link); text-decoration: none; margin-bottom: 6px;
}
.sgp-kicker::before { content: ""; width: 8px; height: 8px; background: var(--sgp-coral); }
.sgp-kicker:hover { text-decoration: underline; }
.sgp-kicker--lg { font-size: 15px; margin-bottom: 12px; }
.sgp-pillar-tag {
	display: inline-block; background: var(--sgp-coral); color: #1A1C3A;
	font-family: var(--sgp-head); font-weight: 600; font-size: 12px; padding: 3px 7px; margin-bottom: 8px;
}
.sgp-btn {
	display: inline-block; background: var(--sgp-coral); color: #1A1C3A; text-decoration: none;
	font-family: var(--sgp-head); font-weight: 600; font-size: 16px; padding: 12px 18px; border-radius: 2px;
}
.sgp-btn:hover { background: #FF8573; color: #1A1C3A; }
.sgp-img { width: 100%; height: 100%; object-fit: cover; }
.sgp-noimg { display: block; width: 100%; height: 100%; background: var(--sgp-surface) repeating-linear-gradient(180deg, transparent 0 0); position: relative; }
.sgp-noimg::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: repeating-linear-gradient(180deg, var(--sgp-coral) 0 10px, var(--sgp-ant-2) 10px 20px); }
time { font-variant-numeric: tabular-nums; }
.sgp-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 12px 0 0; padding: 0; }
.sgp-tags li, .sgp-tags a { font-family: var(--sgp-head); font-size: 13px; font-weight: 400; }
.sgp-tags li { border: 1px solid var(--sgp-line); padding: 4px 9px; color: var(--sgp-text); }
.sgp-tags--post li { padding: 0; }
.sgp-tags--post a { display: block; padding: 4px 9px; text-decoration: none; }
.sgp-more { margin-top: 14px; font-family: var(--sgp-head); font-weight: 600; font-size: 15px; }
.sgp-empty { padding: 24px 0; color: var(--sgp-muted); }
.sgp-empty .sgp-menu { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sgp-empty .sgp-menu a, .sgp-404 .sgp-menu a { font-family: var(--sgp-head); font-weight: 600; }

/* Crumbs */
.sgp-crumbs { font-size: 14px; color: var(--sgp-muted); padding: 18px 0 0; }
.sgp-crumbs a { color: var(--sgp-muted); }

/* ---------- Ads ---------- */
.sgp-ad {
	position: relative; width: 100%; margin: 32px 0;
	border-top: 1px solid var(--sgp-line); border-bottom: 1px solid var(--sgp-line);
	contain: layout size; overflow: hidden;
}
.sgp-ad-label { position: absolute; top: 6px; left: 0; font-family: var(--sgp-head); font-size: 11px; color: var(--sgp-muted); }
.sgp-ad--leader { height: 280px; }
.sgp-ad--rect, .sgp-ad--inline { height: 280px; }
.sgp-ad--sky { height: 600px; margin-top: 0; }
@media (min-width: 900px) { .sgp-ad--leader { height: 250px; } }

/* ---------- Story items ---------- */
.sgp-lead-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sgp-surface); }
.sgp-lead-body { padding-top: 16px; }
.sgp-lead-title { font-size: clamp(25px, 2.6vw, 36px); line-height: 1.12; }
.sgp-lead-title a, .sgp-row-title a { color: var(--sgp-text); text-decoration: none; }
.sgp-lead-title a:hover, .sgp-row-title a:hover { text-decoration: underline; text-decoration-color: var(--sgp-coral); text-decoration-thickness: 2px; }
.sgp-dek { margin-top: 10px; font-size: 18px; color: var(--sgp-muted); max-width: 62ch; }
.sgp-byline { margin-top: 12px; font-family: var(--sgp-head); font-size: 13px; color: var(--sgp-muted); }
.sgp-row { padding: 14px 0; border-top: 1px solid var(--sgp-line); }
.sgp-row.has-thumb { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: start; }
.sgp-row-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sgp-surface); }
.sgp-row-title { font-size: 18px; font-weight: 600; line-height: 1.25; }
.sgp-row-dek { margin-top: 6px; color: var(--sgp-muted); font-size: 16px; }
.sgp-row-date { margin-top: 6px; font-family: var(--sgp-head); font-size: 12px; color: var(--sgp-muted); }
@media (min-width: 700px) { .sgp-row.has-thumb { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; } }

/* ---------- Home ---------- */
.sgp-dateline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 22px 0 14px; border-bottom: 1px solid var(--sgp-line); }
.sgp-home-h1 { font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; color: var(--sgp-text); }
.sgp-dateline-date { font-family: var(--sgp-head); font-size: 14px; color: var(--sgp-muted); }
.sgp-home-ms { margin: 24px 0 40px; }

/* MŚ fallback hero */
.sgp-ms {
	display: grid; grid-template-columns: 1fr; background: var(--sgp-indigo); color: var(--sgp-on-indigo);
	position: relative; padding: 24px 20px 26px 34px;
}
.sgp-ms::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: repeating-linear-gradient(180deg, var(--sgp-coral) 0 18px, #FFFFFF 18px 36px); }
.sgp-ms-count { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sgp-ms-num { font-family: var(--sgp-head); font-weight: 700; font-size: clamp(72px, 12vw, 150px); line-height: .9; color: var(--sgp-coral); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.sgp-ms-unit { font-family: var(--sgp-head); font-size: 17px; color: var(--sgp-on-indigo-muted); }
.sgp-ms-title { color: #FFFFFF; font-size: clamp(24px, 3vw, 36px); margin-top: 18px; }
.sgp-ms-dates { font-family: var(--sgp-head); font-weight: 600; font-size: 18px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.sgp-ms-text { color: var(--sgp-on-indigo-muted); margin: 10px 0 20px; max-width: 52ch; }
@media (min-width: 900px) {
	.sgp-ms { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; padding: 40px 48px 40px 64px; }
	.sgp-ms::before { width: 14px; }
	.sgp-ms-count { flex-direction: column; gap: 10px; }
	.sgp-ms-title { margin-top: 0; }
}

/* Latest */
.sgp-latest { margin-bottom: 8px; }
.sgp-latest-grid { display: grid; grid-template-columns: 1fr; gap: 0 40px; }
.sgp-latest-grid .sgp-lead { padding-bottom: 20px; }
.sgp-latest-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
.sgp-latest-list .sgp-row-title { font-size: 17px; }
@media (min-width: 900px) {
	.sgp-latest-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
	.sgp-latest-grid .sgp-lead { grid-row: span 2; border-top: 3px solid var(--sgp-rule); padding-top: 16px; }
	.sgp-latest-rail .sgp-row:first-child { border-top: 3px solid var(--sgp-rule); }
	.sgp-latest-rail .sgp-row.has-thumb { grid-template-columns: minmax(0, 1fr) 168px; }
	.sgp-latest-rail .sgp-row-media { order: 2; }
	.sgp-latest-rail .sgp-row-title { font-size: 20px; }
	.sgp-latest-list { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--sgp-line); margin-top: 8px; }
	.sgp-latest-list li { padding: 0 20px; border-left: 1px solid var(--sgp-line); }
	.sgp-latest-list li:first-child { padding-left: 0; border-left: 0; }
	.sgp-latest-list .sgp-row { border-top: 0; }
}

/* Sections */
.sgp-sections { display: grid; grid-template-columns: 1fr; gap: 36px 48px; margin-top: 8px; }
.sgp-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 3px solid var(--sgp-rule); padding: 12px 0 4px; }
.sgp-section-name { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.sgp-section-name::before { content: ""; width: 6px; height: 22px; background: repeating-linear-gradient(180deg, var(--sgp-coral) 0 4.4px, var(--sgp-ant-2) 4.4px 8.8px); }
.sgp-section-name a { color: var(--sgp-text); text-decoration: none; }
.sgp-section-name a:hover { text-decoration: underline; text-decoration-color: var(--sgp-coral); }
.sgp-section-count { font-family: var(--sgp-head); font-size: 13px; color: var(--sgp-muted); font-variant-numeric: tabular-nums; }
.sgp-section-body .sgp-row:first-child { border-top: 0; }
.sgp-sections-ad .sgp-ad { margin: 0; }
@media (min-width: 900px) {
	.sgp-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sgp-sections-ad { grid-column: 1 / -1; }
}

/* Tools fallback */
.sgp-home-tools { margin-top: 48px; }
.sgp-toolsfb ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 3px solid var(--sgp-rule); }
.sgp-toolsfb a { display: block; padding: 16px 0; border-bottom: 1px solid var(--sgp-line); text-decoration: none; color: var(--sgp-text); }
.sgp-toolsfb strong { display: block; font-family: var(--sgp-head); font-weight: 600; font-size: 18px; color: var(--sgp-link); }
.sgp-toolsfb span { color: var(--sgp-muted); font-size: 16px; }
@media (min-width: 900px) {
	.sgp-toolsfb ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.sgp-toolsfb li { border-left: 1px solid var(--sgp-line); }
	.sgp-toolsfb li:first-child { border-left: 0; }
	.sgp-toolsfb a { padding: 16px 20px; border-bottom: 0; }
	.sgp-toolsfb li:first-child a { padding-left: 0; }
}

/* ---------- Single ---------- */
.sgp-article-head { padding-bottom: 24px; }
.sgp-article-head .sgp-crumbs { margin-bottom: 22px; }
.sgp-title { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; max-width: 24ch; letter-spacing: -0.02em; }
.sgp-standfirst { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; color: var(--sgp-muted); margin-top: 16px; max-width: 62ch; }
.sgp-meta { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--sgp-line); }
.sgp-meta-av img { width: 44px; height: 44px; }
.sgp-meta-txt { display: flex; flex-direction: column; gap: 2px; font-family: var(--sgp-head); font-size: 14px; }
.sgp-meta-author { font-weight: 600; color: var(--sgp-text); text-decoration: none; }
.sgp-meta-author:hover { text-decoration: underline; }
.sgp-meta-dates { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--sgp-muted); font-size: 13px; }
.sgp-meta-upd { color: var(--sgp-text); }
.sgp-meta-upd::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--sgp-coral); margin-right: 6px; vertical-align: 1px; }
.sgp-cover { margin: 0 auto 8px; }
.sgp-cover-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--sgp-surface); }
.sgp-cover figcaption { font-size: 14px; color: var(--sgp-muted); padding-top: 8px; }
@media (max-width: 699px) { .sgp-cover { padding-inline: 0; } .sgp-cover figcaption { padding-inline: var(--sgp-gut); } }

.sgp-article-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 48px; padding-top: 24px; }
.sgp-article-main { min-width: 0; max-width: 720px; }
.sgp-article-side { display: none; }
.sgp-toc { margin-bottom: 24px; border-top: 3px solid var(--sgp-rule); border-bottom: 1px solid var(--sgp-line); }
.sgp-toc summary { font-family: var(--sgp-head); font-weight: 700; font-size: 16px; padding: 12px 0; cursor: pointer; }
.sgp-toc ol { margin: 0; padding: 0 0 14px; list-style: none; counter-reset: sgptoc; }
.sgp-toc li { counter-increment: sgptoc; display: grid; grid-template-columns: 28px 1fr; padding: 5px 0; font-size: 16px; line-height: 1.35; }
.sgp-toc li::before { content: counter(sgptoc); font-family: var(--sgp-head); font-weight: 600; font-size: 13px; color: var(--sgp-muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.sgp-toc a { color: var(--sgp-text); text-decoration: none; }
.sgp-toc a:hover { color: var(--sgp-link); text-decoration: underline; }
@media (min-width: 1100px) {
	.sgp-article-head, .sgp-cover { padding-left: calc(var(--sgp-gut) + 0px); }
	.sgp-article-grid { grid-template-columns: 220px minmax(0, 720px) minmax(0, 1fr); }
	.sgp-toc { grid-column: 1; grid-row: 1; align-self: start; position: sticky; top: 16px; margin: 0; }
	.sgp-toc details > summary { pointer-events: none; list-style: none; }
	.sgp-toc details > summary::-webkit-details-marker { display: none; }
	.sgp-toc li { font-size: 15px; }
	.sgp-article-main { grid-column: 2; grid-row: 1; }
	.sgp-article-side { display: block; grid-column: 3; grid-row: 1; }
	.sgp-article-side .sgp-ad { position: sticky; top: 16px; max-width: 300px; margin-left: auto; }
	.sgp-article-head { padding-left: calc(var(--sgp-gut) + 268px); }
}

/* Prose */
.sgp-prose { font-size: 19px; line-height: 1.6; }
.sgp-prose > * + * { margin-top: 1.05em; }
.sgp-prose p, .sgp-prose li { hyphens: manual; }
.sgp-prose h2 { font-size: clamp(25px, 2.4vw, 30px); margin-top: 1.9em; scroll-margin-top: 16px; }
.sgp-prose h3 { font-size: 21px; font-weight: 600; margin-top: 1.5em; }
.sgp-prose h2 + *, .sgp-prose h3 + * { margin-top: .55em; }
.sgp-prose a { color: var(--sgp-link); text-decoration-color: var(--sgp-coral); text-decoration-thickness: 2px; }
.sgp-prose a:hover { text-decoration-color: currentColor; }
.sgp-prose strong { font-weight: 600; }
.sgp-prose ul, .sgp-prose ol { padding-left: 1.3em; }
.sgp-prose li + li { margin-top: .35em; }
.sgp-prose ul li::marker { color: var(--sgp-coral); }
.sgp-prose ol li::marker { font-family: var(--sgp-head); font-weight: 600; color: var(--sgp-muted); }
.sgp-prose img { height: auto; }
.sgp-prose .sgp-pending { color: inherit; text-decoration: none; }

.sgp-prose .sgp-tldr {
	position: relative; background: var(--sgp-surface); padding: 18px 20px 18px 30px; margin-top: 0;
}
.sgp-prose .sgp-tldr::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: repeating-linear-gradient(180deg, var(--sgp-coral) 0 10px, var(--sgp-ant-2) 10px 20px); }
.sgp-tldr .sgp-tldr-h { font-family: var(--sgp-head); font-weight: 700; font-size: 16px; margin: 0 0 8px; }
.sgp-tldr ul { margin: 0; padding-left: 1.1em; font-size: 18px; line-height: 1.5; }
.sgp-prose .sgp-updated { font-family: var(--sgp-head); font-size: 14px; color: var(--sgp-muted); margin-top: 14px; }

.sgp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 3px solid var(--sgp-rule); }
.sgp-prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.4; font-variant-numeric: tabular-nums; min-width: 480px; }
.sgp-prose th { font-family: var(--sgp-head); font-weight: 600; font-size: 14px; text-align: left; padding: 10px 12px; background: var(--sgp-surface); border-bottom: 1px solid var(--sgp-line); vertical-align: bottom; }
.sgp-prose td { padding: 10px 12px; border-bottom: 1px solid var(--sgp-line); vertical-align: top; }
.sgp-prose tbody tr:hover td { background: color-mix(in srgb, var(--sgp-surface) 40%, transparent); }
.sgp-prose td:first-child, .sgp-prose th:first-child { padding-left: 0; }
.sgp-prose th:first-child { padding-left: 12px; }
.sgp-prose td:first-child { padding-left: 12px; font-weight: 600; }
.sgp-prose figure.wp-block-table { margin-inline: 0; }

.sgp-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--sgp-coral); }
.sgp-prose blockquote p { font-family: var(--sgp-head); font-weight: 400; font-size: 22px; line-height: 1.4; }
.sgp-prose blockquote cite { display: block; margin-top: 10px; font-style: normal; font-size: 15px; color: var(--sgp-muted); font-family: var(--sgp-body); }
.sgp-prose blockquote cite::before { content: "— "; }

.sgp-prose figure { margin: 1.8em 0; }
.sgp-prose figure img { width: 100%; border: 1px solid var(--sgp-line); }
.sgp-prose figcaption { font-size: 15px; line-height: 1.4; color: var(--sgp-muted); margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--sgp-line); }

.sgp-prose h2.sgp-faq-h { padding-top: 18px; border-top: 3px solid var(--sgp-rule); }
.sgp-prose h2.sgp-faq-h ~ h3 { font-size: 19px; margin-top: 1.2em; padding-top: 14px; border-top: 1px solid var(--sgp-line); }
.sgp-prose h2.sgp-faq-h ~ h3 + p { margin-top: .4em; }
.sgp-prose h2.sgp-sources-h { font-size: 18px; margin-top: 2em; padding-top: 14px; border-top: 1px solid var(--sgp-line); }
.sgp-prose h2.sgp-sources-h + ul { list-style: none; padding: 0; font-size: 15px; line-height: 1.45; }
.sgp-prose h2.sgp-sources-h + ul li { padding-left: 16px; position: relative; overflow-wrap: anywhere; }
.sgp-prose h2.sgp-sources-h + ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; background: var(--sgp-muted); }
.sgp-prose h2.sgp-sources-h + ul a { text-decoration-thickness: 1px; }

/* Author box + cluster */
.sgp-authorbox { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; margin-top: 40px; padding: 20px 0; border-top: 3px solid var(--sgp-rule); border-bottom: 1px solid var(--sgp-line); }
.sgp-authorbox-av img { width: 72px; height: 72px; }
.sgp-authorbox-name { font-family: var(--sgp-head); font-weight: 700; font-size: 19px; }
.sgp-authorbox-name a { color: var(--sgp-text); text-decoration: none; }
.sgp-authorbox-pos { color: var(--sgp-muted); font-size: 16px; }
.sgp-authorbox-more { margin-top: 12px; font-family: var(--sgp-head); font-size: 14px; font-weight: 600; }
@media (min-width: 700px) { .sgp-authorbox { grid-template-columns: 96px minmax(0, 1fr); gap: 20px; } .sgp-authorbox-av img { width: 96px; height: 96px; } }

.sgp-cluster { margin-top: 48px; padding-top: 8px; }
.sgp-cluster-list { display: grid; grid-template-columns: 1fr; gap: 0 32px; border-top: 3px solid var(--sgp-rule); }
.sgp-cluster .sgp-row.is-pillar .sgp-row-title { font-size: 22px; font-weight: 700; }
@media (min-width: 900px) {
	.sgp-cluster-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sgp-cluster .sgp-row.is-pillar { grid-column: 1 / -1; border-top: 0; padding: 18px 0; }
	.sgp-cluster .sgp-row.is-pillar + .sgp-row, .sgp-cluster .sgp-row.is-pillar ~ .sgp-row { border-top: 1px solid var(--sgp-line); }
}

/* ---------- Archives ---------- */
.sgp-archive { padding-bottom: 24px; }
.sgp-archive-head { display: flex; gap: 20px; padding: 28px 0 28px; border-bottom: 1px solid var(--sgp-line); margin-bottom: 28px; }
.sgp-archive-title { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -0.02em; line-height: 1.05; }
.sgp-archive-desc { margin-top: 14px; max-width: 68ch; color: var(--sgp-muted); font-size: 18px; line-height: 1.55; }
.sgp-archive-desc p + p { margin-top: .8em; }
.sgp-pinned { margin-bottom: 32px; }
.sgp-pinned-label { font-family: var(--sgp-head); font-weight: 600; font-size: 14px; color: var(--sgp-muted); margin-bottom: 10px; }
.sgp-pinned .sgp-lead { border-top: 3px solid var(--sgp-rule); padding-top: 18px; }
@media (min-width: 900px) {
	.sgp-pinned .sgp-lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: start; }
	.sgp-pinned .sgp-lead-body { padding-top: 0; }
}
.sgp-archive-list { max-width: 920px; }
.sgp-archive-list .sgp-row-title { font-size: 21px; }
.sgp-archive-list .sgp-ad { margin: 8px 0; }
.sgp-pagination { margin: 32px 0; font-family: var(--sgp-head); }
.sgp-pagination ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.sgp-pagination a, .sgp-pagination span { display: inline-block; min-width: 40px; padding: 8px 12px; border: 1px solid var(--sgp-line); text-align: center; text-decoration: none; font-variant-numeric: tabular-nums; }
.sgp-pagination .current { background: var(--sgp-indigo); color: #FFFFFF; border-color: var(--sgp-indigo); }
.sgp-found { font-family: var(--sgp-head); font-size: 14px; color: var(--sgp-muted); margin-bottom: 8px; }

/* Author profile */
.sgp-profile { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 28px 0 32px; border-bottom: 1px solid var(--sgp-line); margin-bottom: 32px; }
.sgp-profile-av img { width: 140px; height: 140px; border: 1px solid var(--sgp-line); }
.sgp-profile-pos { font-family: var(--sgp-head); font-size: 18px; color: var(--sgp-muted); margin-top: 8px; }
.sgp-profile-facts { display: flex; flex-wrap: wrap; margin: 20px 0 4px; border-top: 3px solid var(--sgp-rule); }
.sgp-profile-facts div { padding: 10px 24px 6px 0; margin-right: 24px; border-right: 1px solid var(--sgp-line); }
.sgp-profile-facts div:last-child { border-right: 0; }
.sgp-profile-facts dt { font-size: 14px; color: var(--sgp-muted); }
.sgp-profile-facts dd { margin: 2px 0 0; font-family: var(--sgp-head); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.sgp-profile-bio { margin-top: 18px; max-width: 70ch; font-size: 18px; line-height: 1.6; }
.sgp-profile-bio p + p { margin-top: .8em; }
.sgp-profile-src { margin-top: 18px; max-width: 70ch; padding: 14px 18px; background: var(--sgp-surface); border-left: 4px solid var(--sgp-coral); }
.sgp-profile-src-h { font-family: var(--sgp-head); font-weight: 700; font-size: 15px; margin-bottom: 4px; }
@media (min-width: 900px) {
	.sgp-profile { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
	.sgp-profile-av img { width: 200px; height: 200px; }
}

/* Search form */
.sgp-search { display: flex; gap: 0; margin-top: 18px; max-width: 560px; }
.sgp-search input { flex: 1; min-width: 0; padding: 12px 14px; border: 2px solid var(--sgp-indigo); border-right: 0; background: var(--sgp-paper); color: var(--sgp-text); border-radius: 0; font-size: 17px; }
.sgp-search button { background: var(--sgp-indigo); color: #FFFFFF; border: 2px solid var(--sgp-indigo); padding: 0 18px; font-family: var(--sgp-head); font-weight: 600; cursor: pointer; border-radius: 0; }
.sgp-search button:hover { background: var(--sgp-coral); border-color: var(--sgp-coral); color: #1A1C3A; }
@media (prefers-color-scheme: dark) { .sgp-search input { border-color: var(--sgp-line); } .sgp-search button { background: var(--sgp-coral); border-color: var(--sgp-coral); color: #1A1C3A; } }

/* 404 */
.sgp-404 { padding-top: 36px; padding-bottom: 24px; }
.sgp-404-score { display: flex; align-items: baseline; font-family: var(--sgp-head); font-weight: 700; font-size: clamp(96px, 18vw, 200px); line-height: .9; color: var(--sgp-indigo); font-variant-numeric: tabular-nums; letter-spacing: -0.04em; margin-bottom: 18px; }
.sgp-404-sep { color: var(--sgp-coral); margin: 0 .04em; }
@media (prefers-color-scheme: dark) { .sgp-404-score { color: var(--sgp-text); } }
.sgp-404-lead { margin-top: 12px; font-size: 19px; color: var(--sgp-muted); max-width: 60ch; }
.sgp-404-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
.sgp-404 .sgp-menu { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--sgp-rule); }
.sgp-404 .sgp-menu li { border-bottom: 1px solid var(--sgp-line); }
.sgp-404 .sgp-menu a { display: block; padding: 10px 0; text-decoration: none; }
@media (min-width: 900px) { .sgp-404-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; } }

/* Page */
.sgp-page-body .sgp-prose { max-width: 720px; }

/* ---------- Footer ---------- */
.sgp-footer { background: var(--sgp-indigo-deep); color: var(--sgp-on-indigo-muted); margin-top: 40px; }
.sgp-footer a { color: #FFFFFF; text-decoration: none; }
.sgp-footer a:hover { text-decoration: underline; text-decoration-color: var(--sgp-coral); }
.sgp-footer-in { display: grid; grid-template-columns: 1fr; gap: 28px; padding-top: 36px; padding-bottom: 28px; }
.sgp-footer-logo img { width: 180px; height: auto; margin-left: -10px; }
.sgp-footer-tag { margin-top: 12px; font-size: 17px; }
.sgp-footer-mail { margin-top: 8px; font-family: var(--sgp-head); font-size: 14px; }
.sgp-footer-h { font-family: var(--sgp-head); font-weight: 700; font-size: 15px; color: #FFFFFF; padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.18); }
.sgp-footer-menu { list-style: none; margin: 0; padding: 0; font-size: 16px; }
.sgp-footer-menu li { padding: 4px 0; }
.sgp-footer-legal { padding-top: 16px; padding-bottom: 96px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; }
@media (min-width: 700px) { .sgp-footer-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .sgp-footer-in { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; } .sgp-footer-legal { padding-bottom: 28px; } }

/* ---------- Mobile bottom bar ---------- */
.sgp-bottombar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
	background: var(--sgp-indigo); border-top: 1px solid rgba(255,255,255,.2);
	padding-bottom: env(safe-area-inset-bottom, 0);
}
.sgp-bottombar ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.sgp-bottombar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; color: #FFFFFF; text-decoration: none; font-family: var(--sgp-head); font-size: 11px; font-weight: 600; border-top: 3px solid transparent; }
.sgp-bottombar svg { width: 22px; height: 22px; fill: currentColor; }
.sgp-bottombar a[aria-current="page"] { color: var(--sgp-coral); border-top-color: var(--sgp-coral); }
@media (min-width: 1000px) { .sgp-bottombar { display: none; } .sgp-main { padding-bottom: 24px; } }

/* ---------- Plugin blocks spacing ---------- */
.sgp-home-ms > *:not(.sgp-ms) { margin: 0; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .sgp-header, .sgp-footer, .sgp-bottombar, .sgp-ad, .sgp-toc, .sgp-article-side { display: none !important; } }
