/* Esportowy Radar — «Drabinka». Light editorial, bracket motif. */

/* ---------------------------------------------------------------- fonts */
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrumentsans-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrumentsans-italic-400.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrumentsans-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrumentsans-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

/* --------------------------------------------------------------- tokens */
:root {
	--esr-bg: #EFEDE8;
	--esr-surface: #FFFFFF;
	--esr-ink: #121212;
	--esr-accent: #FF5F1F;
	--esr-accent-ink: #C23E08;     /* accent for small text on light (AA) */
	--esr-on-accent: #FFFFFF;
	--esr-muted: #6A665F;
	--esr-muted-2: #7A766F;
	--esr-line: #D9D5CC;
	--esr-line-2: #BFBAB0;
	--esr-ad: #E6E3DC;
	--esr-font: "Instrument Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--esr-display: "Unbounded", "Instrument Sans", "Segoe UI", Arial, sans-serif;
	--esr-wrap: 1240px;
	--esr-col: 700px;
	--esr-gut: 16px;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root {
		--esr-bg: #141414;
		--esr-surface: #1D1C1A;
		--esr-ink: #EFEDE8;
		--esr-accent: #FF6F33;
		--esr-accent-ink: #FF8A57;
		--esr-on-accent: #141414;
		--esr-muted: #A39E95;
		--esr-muted-2: #A39E95;
		--esr-line: #34322E;
		--esr-line-2: #4A4742;
		--esr-ad: #1A1918;
		color-scheme: dark;
	}
}

/* ----------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
	margin: 0;
	background: var(--esr-bg);
	color: var(--esr-ink);
	font-family: var(--esr-font);
	font-size: 17px;
	line-height: 1.55;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--esr-accent-ink); }
:focus-visible { outline: 2px solid var(--esr-accent); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; color: var(--esr-ink); }
h1, h2 { font-family: var(--esr-display); font-weight: 600; letter-spacing: -0.01em; }
h3, h4 { font-family: var(--esr-font); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input { font: inherit; color: inherit; }
time, .esr-t-num, table { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.esr-t-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.esr-t-skip { position: absolute; left: 8px; top: -60px; background: var(--esr-ink); color: var(--esr-bg); padding: 8px 14px; z-index: 50; }
.esr-t-skip:focus { top: 8px; color: var(--esr-bg); }
.esr-t-wrap { width: 100%; max-width: var(--esr-wrap); margin: 0 auto; padding: 0 var(--esr-gut); }
@media (min-width: 700px) { :root { --esr-gut: 28px; } }
.esr-t-main { display: block; min-height: 50vh; padding-bottom: 56px; }
.esr-t-muted { color: var(--esr-muted); font-size: 15px; }
.esr-t-empty { color: var(--esr-muted); padding: 20px 0; }

/* Seed square */
.esr-t-seed {
	display: inline-flex; align-items: center; justify-content: center;
	flex: 0 0 auto; min-width: 26px; height: 26px; padding: 0 4px;
	border: 1px solid var(--esr-line-2); background: var(--esr-surface);
	font: 700 12px/1 var(--esr-font); font-variant-numeric: tabular-nums; color: var(--esr-muted);
}
.esr-t-seed.is-hot, .is-path > .esr-t-seed, .is-current > .esr-t-seed { background: var(--esr-accent); border-color: var(--esr-accent); color: var(--esr-on-accent); }

/* Buttons, labels, tags */
.esr-t-btn {
	display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px;
	background: var(--esr-ink); color: var(--esr-bg); text-decoration: none; font-weight: 600; font-size: 16px;
	border-radius: 999px;
}
.esr-t-btn:hover { background: var(--esr-accent); color: var(--esr-on-accent); }
.esr-t-label { display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--esr-muted); text-decoration: none; letter-spacing: .01em; }
.esr-t-label:hover { color: var(--esr-accent-ink); text-decoration: underline; }
.esr-t-tags, .esr-t-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 12px 0 0; }
.esr-t-tags li, .esr-t-chips li { font-size: 14px; }
.esr-t-tags li, .esr-t-tags a, .esr-t-chips a { display: inline-block; padding: 4px 12px; border: 1px solid var(--esr-line-2); border-radius: 999px; text-decoration: none; }
.esr-t-tags li:has(a) { padding: 0; border: 0; }
.esr-t-chips a { padding: 8px 16px; font-weight: 600; background: var(--esr-surface); }
.esr-t-chips a:hover, .esr-t-tags a:hover { border-color: var(--esr-accent); color: inherit; }

/* ------------------------------------------------------------- header */
.esr-t-header { background: var(--esr-surface); border-bottom: 1px solid var(--esr-line); }
.esr-t-header-top { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.esr-t-logo { margin: 0; flex: 0 1 auto; min-width: 0; line-height: 0; }
.esr-t-logo a { display: inline-block; color: var(--esr-ink); padding: 6px 0; }
.esr-t-logo-svg { width: 260px; height: auto; display: block; }
.esr-t-games { display: flex; gap: 6px; list-style: none; margin-left: auto; }
.esr-t-game {
	display: inline-flex; align-items: center; justify-content: center; min-height: 32px; min-width: 48px; padding: 0 10px;
	border: 1.5px solid var(--esr-ink); font: 700 13px/1 var(--esr-font); letter-spacing: .04em; text-decoration: none;
}
.esr-t-game:hover, .esr-t-game[aria-current] { background: var(--esr-ink); color: var(--esr-surface); }
.esr-t-menu-btn {
	display: none; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; margin-left: 8px;
	background: transparent; border: 1px solid var(--esr-line-2); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 15px;
}
.esr-t-nav { border-top: 1px solid var(--esr-line); }
.esr-t-nav-in { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.esr-t-menu { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; flex: 1 1 auto; min-width: 0; }
.esr-t-menu a {
	display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
	border: 1px solid var(--esr-line); background: var(--esr-bg); text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap;
}
.esr-t-menu a:hover { border-color: var(--esr-ink); color: var(--esr-ink); }
.esr-t-menu .current-menu-item > a, .esr-t-menu .current-menu-parent > a, .esr-t-menu .current-post-ancestor > a, .esr-t-menu a[aria-current] { background: var(--esr-ink); border-color: var(--esr-ink); color: var(--esr-surface); }
.esr-t-nav-search { display: none; }
.esr-t-top-search { flex: 0 1 300px; margin-left: auto; }
.esr-t-top-search + .esr-t-games { margin-left: 8px; }

/* Search form */
.esr-t-search { display: flex; border: 1px solid var(--esr-line-2); border-radius: 999px; background: var(--esr-surface); overflow: hidden; }
.esr-t-search input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; padding: 7px 14px; font-size: 15px; outline-offset: -2px; }
.esr-t-search button { border: 0; background: var(--esr-ink); color: var(--esr-surface); padding: 0 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
.esr-t-search button:hover { background: var(--esr-accent); color: var(--esr-on-accent); }
.esr-t-search.is-big { max-width: 620px; margin: 20px 0 12px; }
.esr-t-search.is-big input { padding: 12px 18px; font-size: 18px; }
.esr-t-search.is-big button { padding: 0 22px; font-size: 16px; }

@media (max-width: 1100px) {
	.esr-t-top-search { flex-basis: 220px; }
}
@media (max-width: 900px) {
	.esr-t-header-top { min-height: 60px; gap: 10px; }
	.esr-t-logo-svg { width: 200px; }
	.esr-t-menu-btn { display: inline-flex; }
	.esr-t-top-search { display: none; }
	.esr-t-top-search + .esr-t-games { margin-left: auto; }
	.esr-t-nav { display: none; }
	.esr-t-nav.is-open { display: block; }
	.esr-t-nav-in { flex-direction: column; align-items: stretch; padding-top: 14px; padding-bottom: 16px; }
	.esr-t-nav-search { display: block; flex: 0 0 auto; }
	.esr-t-menu a { min-height: 44px; }
}
@media (max-width: 480px) {
	.esr-t-games { display: none; }
	.esr-t-menu-btn { margin-left: auto; }
	.esr-t-logo-svg { width: 196px; }
}

/* ------------------------------------------- bracket divider (section heads) */
.esr-t-join { display: flex; align-items: center; gap: 0; margin: 0 0 18px; min-width: 0; }
.esr-t-join-lines { flex: 0 0 40px; width: 40px; height: 36px; fill: none; stroke: var(--esr-ink); stroke-width: 2; }
.esr-t-join-h { flex: 0 1 auto; min-width: 0; margin: 0 14px 0 10px; font-family: var(--esr-display); font-weight: 600; font-size: 21px; line-height: 1.2; }
.esr-t-join-rule { flex: 1 1 24px; height: 2px; background: var(--esr-ink); min-width: 24px; }
.esr-t-join-more { flex: 0 0 auto; margin-left: 14px; font-size: 14.5px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--esr-accent); text-underline-offset: 4px; text-decoration-thickness: 2px; }
@media (max-width: 600px) {
	.esr-t-join-h { font-size: 18px; }
	.esr-t-join-lines { flex-basis: 28px; width: 28px; height: 30px; }
}

.esr-t-sec { margin-top: 48px; }

/* ---------------------------------------------------------------- home */
.esr-t-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; padding-top: 44px; align-items: start; }
.esr-t-nowrap { white-space: nowrap; }
.esr-t-hero-h { font-family: var(--esr-display); font-weight: 700; font-size: clamp(34px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 22px; }
.esr-t-hero-intro { font-size: 19px; line-height: 1.55; color: var(--esr-muted); max-width: 34em; }
.esr-t-today { background: var(--esr-surface); border: 1px solid var(--esr-line); padding: 20px 22px; min-height: 160px; }
.esr-t-today-empty p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
	.esr-t-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; }
}

/* Bracket (fallback; plugin renders its own) */
.esr-t-bracket-scroll { overflow-x: auto; background: var(--esr-surface); border: 1px solid var(--esr-line); -webkit-overflow-scrolling: touch; }
.esr-t-bracket { position: relative; min-width: 720px; height: 470px; margin: 0 24px; }
.esr-t-br-lines { position: absolute; left: 0; top: 50px; width: 100%; height: 400px; fill: none; stroke: var(--esr-line-2); stroke-width: 2; overflow: visible; }
.esr-t-br-lines path { vector-effect: non-scaling-stroke; }
.esr-t-br-lines .is-path { stroke: var(--esr-accent); stroke-width: 3; }
.esr-t-br-stage { position: absolute; top: 16px; left: calc(var(--c) * 35%); margin: 0; font-size: 14px; font-weight: 600; color: var(--esr-muted); }
.esr-t-br-match {
	position: absolute; left: calc(var(--c) * 35%); width: 30%;
	top: calc(50px + var(--y) * 1px - 39px);
	border: 1px solid var(--esr-line-2); background: var(--esr-surface);
}
.esr-t-br-match.is-path { border-color: var(--esr-ink); }
.esr-t-br-match.is-final { border-width: 2px; }
.esr-t-br-slot { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px 0 6px; font-size: 14.5px; white-space: nowrap; overflow: hidden; }
.esr-t-br-slot + .esr-t-br-slot { border-top: 1px solid var(--esr-line); }
.esr-t-br-slot.is-path { font-weight: 700; box-shadow: inset 3px 0 0 var(--esr-accent); }
.esr-t-br-name { overflow: hidden; text-overflow: ellipsis; }
.esr-t-br-venue { position: absolute; left: 70%; top: calc(50px + 200px + 52px); margin: 0; font-size: 14px; color: var(--esr-muted); }
.esr-t-bracket-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 18px 0 0; }

/* Lists of posts */
.esr-t-list { list-style: none; border-top: 2px solid var(--esr-ink); }
.esr-t-list:empty { display: none; }
.esr-t-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--esr-line); align-items: start; }
.esr-t-row-date { display: flex; flex-direction: column; line-height: 1.15; padding-top: 2px; }
.esr-t-row-d { font-weight: 700; font-size: 19px; }
.esr-t-row-y { font-size: 13px; color: var(--esr-muted); }
.esr-t-row-title { font-size: 20px; line-height: 1.3; font-weight: 600; margin: 4px 0 6px; }
.esr-t-row-title a { text-decoration: none; }
.esr-t-row-title a:hover { text-decoration: underline; text-decoration-color: var(--esr-accent); text-decoration-thickness: 2px; text-underline-offset: 4px; color: inherit; }
.esr-t-row-ex { margin: 0 0 6px; color: var(--esr-muted); font-size: 16px; line-height: 1.5; }
.esr-t-row-by { margin: 0; font-size: 14px; color: var(--esr-muted); }
.esr-t-row-by a { text-decoration: none; }
.esr-t-row-img { display: block; width: 200px; }
.esr-t-row-img img { width: 200px; height: 113px; object-fit: cover; border: 1px solid var(--esr-line); }
@media (max-width: 700px) {
	.esr-t-row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; }
	.esr-t-row-d { font-size: 16px; }
	.esr-t-row-title { font-size: 17.5px; }
	.esr-t-row-img, .esr-t-row-img img { width: 88px; }
	.esr-t-row-img img { height: 50px; }
	.esr-t-row-ex { display: none; }
}

.esr-t-home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
@media (max-width: 1000px) { .esr-t-home-cols { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* Section guides: seeds on a vertical bracket line */
.esr-t-pillar-list { list-style: none; position: relative; }
.esr-t-pillar-list::before { content: ""; position: absolute; left: 12.5px; top: 14px; bottom: 30px; width: 1px; background: var(--esr-line-2); }
.esr-t-pillar-item { position: relative; display: flex; gap: 14px; padding: 0 0 18px; }
.esr-t-pillar-item > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 2px; }
.esr-t-pillar-t { font-weight: 600; font-size: 16.5px; line-height: 1.35; text-decoration: none; }
.esr-t-pillar-t:hover { text-decoration: underline; text-decoration-color: var(--esr-accent); color: inherit; }

/* Tools teaser */
.esr-t-tools { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--esr-ink); }
.esr-t-tool a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 22px 22px 0; text-decoration: none; }
.esr-t-tool + .esr-t-tool a { padding-left: 22px; border-left: 1px solid var(--esr-line); }
.esr-t-tool-n { font-weight: 700; font-size: 18px; line-height: 1.3; }
.esr-t-tool-d { color: var(--esr-muted); font-size: 15.5px; }
.esr-t-tool a:hover .esr-t-tool-n { text-decoration: underline; text-decoration-color: var(--esr-accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 800px) {
	.esr-t-tools { grid-template-columns: minmax(0, 1fr); }
	.esr-t-tool a, .esr-t-tool + .esr-t-tool a { padding: 16px 0; border-left: 0; }
	.esr-t-tool + .esr-t-tool { border-top: 1px solid var(--esr-line); }
}

/* Ad slots — fixed height, CLS-safe */
.esr-t-ad { position: relative; min-height: 280px; margin: 40px auto; background: var(--esr-ad); border: 1px dashed var(--esr-line-2); }
.esr-t-ad::before { content: "Reklama"; position: absolute; top: 6px; left: 10px; font-size: 11.5px; color: var(--esr-muted); }
.esr-t-ad--home-1 { min-height: 250px; }
@media (min-width: 900px) { .esr-t-ad--home-1 { min-height: 120px; } }
.esr-t-content .esr-t-ad { margin: 36px 0; }

/* ----------------------------------------------------------- breadcrumbs */
.esr-t-crumbs { padding: 18px 0 0; font-size: 14px; color: var(--esr-muted); }
.esr-t-crumbs a { color: var(--esr-muted); text-decoration: none; }
.esr-t-crumbs a:hover { color: var(--esr-ink); text-decoration: underline; }
.esr-t-crumbs .breadcrumb_last { color: var(--esr-ink); }
.esr-t-sep { margin: 0 4px; color: var(--esr-line-2); }

/* -------------------------------------------------------------- article */
.esr-t-art-head { padding-top: 26px; }
.esr-t-art-headin, .esr-t-art-col, .esr-t-cover > * { max-width: var(--esr-col); }
.esr-t-label--big { font-size: 15px; color: var(--esr-ink); padding: 3px 12px; border: 1.5px solid var(--esr-ink); border-radius: 999px; margin-bottom: 18px; }
.esr-t-art-h { font-family: var(--esr-display); font-weight: 600; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.16; letter-spacing: -0.02em; margin: 0 0 18px; }
.esr-t-art-dek { font-size: 20px; line-height: 1.5; color: var(--esr-muted); margin: 0 0 22px; }
.esr-t-art-meta { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--esr-line); border-bottom: 1px solid var(--esr-line); }
.esr-t-art-av img { width: 48px; height: 48px; border: 1px solid var(--esr-line-2); }
.esr-t-art-by { margin: 0; font-weight: 700; font-size: 16px; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.esr-t-art-by a { text-decoration: none; }
.esr-t-art-pos { font-weight: 400; color: var(--esr-muted); font-size: 14.5px; }
.esr-t-art-dates { margin: 2px 0 0; font-size: 14.5px; color: var(--esr-muted); display: flex; flex-wrap: wrap; gap: 0 18px; }
.esr-t-cover { margin: 28px auto 0; }
.esr-t-cover img { width: 100%; border: 1px solid var(--esr-line); }
.esr-t-cover figcaption { font-size: 14px; color: var(--esr-muted); margin-top: 8px; }
.esr-t-art-grid { display: grid; grid-template-columns: minmax(0, var(--esr-col)); justify-content: start; gap: 0 56px; margin-top: 32px; }

@media (min-width: 1100px) {
	.esr-t-art-grid.has-toc { grid-template-columns: 250px minmax(0, var(--esr-col)); }
	.esr-t-article:has(.has-toc) .esr-t-art-headin,
	.esr-t-article:has(.has-toc) .esr-t-cover > * { margin-left: calc(250px + 56px); }
	.esr-t-toc { position: sticky; top: 20px; align-self: start; max-height: calc(100vh - 40px); overflow: auto; }
}

/* TOC */
.esr-t-toc { margin-bottom: 28px; }
.esr-t-toc-d { border-top: 2px solid var(--esr-ink); }
.esr-t-toc-d summary { cursor: pointer; padding: 12px 0; font-weight: 700; font-size: 16px; list-style: none; }
.esr-t-toc-d summary::-webkit-details-marker { display: none; }
.esr-t-toc-d summary::after { content: "+"; float: right; font-weight: 400; color: var(--esr-muted); }
.esr-t-toc-d[open] summary::after { content: "–"; }
.esr-t-toc-list { list-style: none; position: relative; }
.esr-t-toc-list li a { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 14.5px; line-height: 1.35; text-decoration: none; color: var(--esr-muted); }
.esr-t-toc-list .esr-t-seed { min-width: 22px; height: 22px; font-size: 11px; }
.esr-t-toc-list li a:hover { color: var(--esr-ink); }
.esr-t-toc-list li a:hover .esr-t-seed { border-color: var(--esr-accent); color: var(--esr-accent-ink); }

/* Content typography */
.esr-t-content { font-size: 18.5px; line-height: 1.6; }
.esr-t-content > * { margin-top: 0; }
.esr-t-content p { margin: 0 0 1.05em; }
.esr-t-content a { text-decoration: underline; text-decoration-color: var(--esr-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.esr-t-content a:hover { color: var(--esr-accent-ink); }
.esr-t-content h2 { font-size: 25px; line-height: 1.25; margin: 2em 0 .7em; padding-top: 16px; position: relative; scroll-margin-top: 20px; }
.esr-t-content h2::before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 3px; background: var(--esr-ink); }
.esr-t-content h3 { font-size: 21px; line-height: 1.3; margin: 1.6em 0 .5em; }
.esr-t-content h4 { font-size: 18.5px; margin: 1.4em 0 .4em; }
.esr-t-content ul, .esr-t-content ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.esr-t-content li { margin: 0 0 .35em; }
.esr-t-content ul > li::marker { color: var(--esr-accent); }
.esr-t-content strong { font-weight: 700; }
.esr-t-content hr { border: 0; border-top: 1px solid var(--esr-line); margin: 2em 0; }
.esr-t-content img { max-width: 100%; height: auto; }

/* TL;DR — bracket corner box */
.esr-tldr { position: relative; background: var(--esr-surface); border: 1px solid var(--esr-line); border-left: 3px solid var(--esr-ink); padding: 18px 22px 8px; margin: 0 0 18px; font-size: 17.5px; }
.esr-tldr-h, .esr-t-content .esr-tldr-h { font-weight: 700; font-size: 16px; margin: 0 0 8px; }
.esr-tldr ul { padding-left: 1.1em; margin: 0 0 10px; }
.esr-updated, .esr-t-content .esr-updated { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--esr-muted); font-variant-numeric: tabular-nums; margin: 0 0 1.6em; }
.esr-updated::before { content: ""; width: 8px; height: 8px; background: var(--esr-accent); }

/* Map scores — boxed tabular cells */
.esr-maps, .esr-t-maps, .esr-t-content .esr-maps { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 1.4em; border: 1px solid var(--esr-line-2); background: var(--esr-surface); width: fit-content; max-width: 100%; font-variant-numeric: tabular-nums; font-size: 16px; }
.esr-t-map { display: flex; flex-direction: column; padding: 8px 16px; min-width: 96px; }
.esr-t-map + .esr-t-map { border-left: 1px solid var(--esr-line); }
.esr-t-map-n { font-size: 13.5px; color: var(--esr-muted); }
.esr-t-map-s { font-weight: 700; font-size: 20px; line-height: 1.2; }

/* Pending internal link */
.esr-pending { text-decoration: underline dotted var(--esr-line-2); text-underline-offset: 3px; }

/* Figures */
.esr-t-content figure { margin: 2em 0; }
.esr-t-content figure img { width: 100%; border: 1px solid var(--esr-line); background: var(--esr-surface); }
.esr-t-content figcaption, .wp-element-caption { font-size: 14.5px; line-height: 1.45; color: var(--esr-muted); margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--esr-line-2); }

/* Tables */
.esr-t-tablewrap { overflow-x: auto; margin: 0 0 1.6em; border-top: 2px solid var(--esr-ink); -webkit-overflow-scrolling: touch; }
.esr-t-content table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.4; font-variant-numeric: tabular-nums; background: var(--esr-surface); }
.esr-t-content th { text-align: left; font-weight: 700; font-size: 14.5px; padding: 10px 12px; border-bottom: 1px solid var(--esr-ink); vertical-align: bottom; }
.esr-t-content td { padding: 10px 12px; border-bottom: 1px solid var(--esr-line); vertical-align: top; }
.esr-t-content tbody tr:last-child td { border-bottom: 0; }
.esr-t-content figure.wp-block-table { margin: 0; }

/* Blockquote */
.esr-t-content blockquote { margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--esr-accent); }
.esr-t-content blockquote p { font-size: 21px; line-height: 1.45; font-style: italic; margin: 0 0 .5em; }
.esr-t-content blockquote cite { display: block; font-style: normal; font-size: 14.5px; color: var(--esr-muted); }
.esr-t-content blockquote cite::before { content: "— "; }

/* FAQ + sources */
.esr-t-content .esr-t-faq-h ~ h3 { font-size: 19px; padding-top: 16px; margin-top: 18px; border-top: 1px solid var(--esr-line); }
.esr-t-content .esr-t-faq-h + h3 { border-top: 0; padding-top: 0; }
.esr-t-content .esr-t-sources { list-style: none; padding: 0; font-size: 15px; line-height: 1.45; }
.esr-t-content .esr-t-sources li { position: relative; padding-left: 18px; margin-bottom: 8px; }
.esr-t-content .esr-t-sources li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border: 1px solid var(--esr-muted); }
.esr-t-content .esr-t-sources a { text-decoration-thickness: 1px; word-break: break-word; }

/* Tags under article */
.esr-t-art-tags { margin: 28px 0 0; }

/* Author box */
.esr-t-authorbox { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 22px; padding: 22px 0; margin-top: 36px; border-top: 2px solid var(--esr-ink); border-bottom: 1px solid var(--esr-line); }
.esr-t-authorbox-av img { width: 112px; height: 112px; border: 1px solid var(--esr-line-2); }
.esr-t-authorbox-name { font-weight: 700; font-size: 19px; margin: 0; }
.esr-t-authorbox-name a { text-decoration: none; }
.esr-t-authorbox-pos { color: var(--esr-muted); margin: 0; font-size: 15.5px; }
.esr-t-authorbox .esr-t-tags { margin: 10px 0; }
.esr-t-authorbox-bio { font-size: 16px; margin: 8px 0; }
.esr-t-authorbox-more { margin: 0; font-weight: 600; font-size: 15.5px; }
.esr-t-authorbox-more a { text-decoration-color: var(--esr-accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 560px) {
	.esr-t-authorbox { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
	.esr-t-authorbox-av img { width: 72px; height: 72px; }
}

/* Series — bracket path, current on orange */
.esr-t-art-after { margin-top: 48px; }
.esr-t-series { max-width: 960px; }
.esr-t-series-list { list-style: none; position: relative; }
.esr-t-series-list::before { content: ""; position: absolute; left: 12.5px; top: 18px; bottom: 18px; width: 1px; background: var(--esr-line-2); }
.esr-t-series-item { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 8px 0; }
.esr-t-series-t { display: flex; flex-direction: column; font-weight: 600; font-size: 17px; line-height: 1.35; text-decoration: none; padding-top: 2px; }
a.esr-t-series-t:hover { text-decoration: underline; text-decoration-color: var(--esr-accent); color: inherit; }
.esr-t-series-note { font-weight: 400; font-size: 13.5px; color: var(--esr-muted); }
.esr-t-series-item.is-current .esr-t-series-t { color: var(--esr-ink); }
.esr-t-series-item.is-current .esr-t-series-note { color: var(--esr-accent-ink); }
.esr-t-series-item.is-current::before { content: ""; position: absolute; left: 12px; top: -12px; height: 22px; width: 2px; background: var(--esr-accent); }

/* -------------------------------------------------------------- archives */
.esr-t-arch-head { padding: 30px 0 4px; max-width: 820px; }
.esr-t-arch-h { font-family: var(--esr-display); font-weight: 700; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 16px; }
.esr-t-arch-desc { font-size: 18px; line-height: 1.6; color: var(--esr-ink); }
.esr-t-arch-desc p:last-child { margin-bottom: 0; }

.esr-t-pinned { margin-top: 32px; }
.esr-t-pinned-k { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; margin: 0 0 12px; }
.esr-t-pinned-card { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); background: var(--esr-surface); border: 1px solid var(--esr-line); border-left: 3px solid var(--esr-accent); text-decoration: none; }
.esr-t-pinned-card:hover { color: inherit; border-color: var(--esr-ink); border-left-color: var(--esr-accent); }
.esr-t-pinned-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.esr-t-pinned-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 28px; }
.esr-t-pinned-t { font-weight: 700; font-size: 24px; line-height: 1.25; }
.esr-t-pinned-ex { color: var(--esr-muted); font-size: 16.5px; }
.esr-t-pinned-by { font-size: 14px; color: var(--esr-muted); margin-top: auto; }
.esr-t-pinned-card:not(:has(.esr-t-pinned-img)) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 860px) {
	.esr-t-pinned-card { grid-template-columns: minmax(0, 1fr); }
	.esr-t-pinned-body { padding: 18px; }
	.esr-t-pinned-t { font-size: 20px; }
}

/* Author profile */
.esr-t-profile { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; padding: 32px 0 8px; max-width: 1000px; }
.esr-t-profile-av img { width: 200px; height: 200px; border: 1px solid var(--esr-line); }
.esr-t-profile .esr-t-arch-h { margin-bottom: 6px; }
.esr-t-profile-pos { font-size: 19px; color: var(--esr-muted); margin: 0 0 18px; }
.esr-t-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 16px; border-top: 1px solid var(--esr-line); border-bottom: 1px solid var(--esr-line); }
.esr-t-facts > div { padding: 10px 22px 10px 0; margin-right: 22px; }
.esr-t-facts > div + div { padding-left: 22px; border-left: 1px solid var(--esr-line); }
.esr-t-facts dt { font-size: 13.5px; color: var(--esr-muted); }
.esr-t-facts dd { margin: 0; font-weight: 700; font-size: 17px; }
.esr-t-profile-bio { font-size: 18px; line-height: 1.6; margin-top: 20px; max-width: var(--esr-col); }
.esr-t-profile-src { margin-top: 8px; padding: 16px 20px; background: var(--esr-surface); border-left: 3px solid var(--esr-ink); max-width: var(--esr-col); }
.esr-t-profile-src-h { font-weight: 700; margin: 0 0 4px; }
.esr-t-profile-src p:last-child { margin: 0; }
@media (max-width: 700px) {
	.esr-t-profile { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.esr-t-profile-av img { width: 120px; height: 120px; }
	.esr-t-facts > div { padding: 8px 14px 8px 0; margin-right: 14px; }
	.esr-t-facts > div + div { padding-left: 14px; }
}

/* Pages */
.esr-t-page-col { max-width: var(--esr-col); }
.esr-t-page.is-wide .esr-t-page-col { max-width: none; }
.esr-t-page-head { padding: 30px 0 8px; }
.esr-t-page-upd { margin-top: 40px; font-size: 14.5px; color: var(--esr-muted); }

/* 404 */
.esr-t-404 { padding: 40px 0 20px; max-width: 760px; }
.esr-t-404-art { width: 240px; height: auto; margin-bottom: 20px; fill: none; stroke-width: 3; }
.esr-t-404-art .l { stroke: var(--esr-line-2); }
.esr-t-404-art .o { stroke: var(--esr-accent); }
.esr-t-404-art .x { stroke: var(--esr-ink); }
.esr-t-404-art .s { fill: var(--esr-surface); stroke: var(--esr-line-2); stroke-width: 2; }
.esr-t-404-t { font-size: 18.5px; line-height: 1.6; }

/* Pagination */
.esr-t-pager { margin-top: 28px; }
.esr-t-pager ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.esr-t-pager a, .esr-t-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--esr-line-2); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.esr-t-pager .current { background: var(--esr-ink); color: var(--esr-surface); border-color: var(--esr-ink); }

/* ---------------------------------------------------------------- footer */
.esr-t-footer { margin-top: 40px; padding: 8px 0 32px; border-top: 1px solid var(--esr-line); background: var(--esr-surface); }
.esr-t-foot-lines { display: block; width: 100%; height: 40px; fill: none; stroke: var(--esr-line-2); stroke-width: 2; margin: 18px 0 20px; }
.esr-t-foot-lines path { vector-effect: non-scaling-stroke; }
.esr-t-foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.esr-t-foot-logo { display: inline-block; color: var(--esr-ink); }
.esr-t-foot-logo .esr-t-logo-svg { width: 220px; }
.esr-t-foot-tag { font-weight: 600; margin: 10px 0 8px; }
.esr-t-foot-note { color: var(--esr-muted); font-size: 15px; max-width: 34em; }
.esr-t-footmenu { list-style: none; columns: 2; column-gap: 32px; }
.esr-t-footmenu li { break-inside: avoid; margin: 0 0 10px; }
.esr-t-footmenu a { text-decoration: none; font-size: 15.5px; }
.esr-t-footmenu a:hover { text-decoration: underline; text-decoration-color: var(--esr-accent); }
.esr-t-foot-copy { margin: 24px 0 0; font-size: 14px; color: var(--esr-muted); }
@media (max-width: 760px) { .esr-t-foot-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* --------------------------------------------- mobile bottom bar */
.esr-t-bar { display: none; }
@media (max-width: 900px) {
	body.esr-t { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
	.esr-t-bar {
		display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
		background: var(--esr-surface); border-top: 1px solid var(--esr-line);
		padding-bottom: env(safe-area-inset-bottom, 0px);
	}
	.esr-t-bar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 62px; text-decoration: none; font-size: 12px; font-weight: 600; color: var(--esr-muted); }
	.esr-t-bar a[aria-current] { color: var(--esr-ink); }
	.esr-t-bar a[aria-current]::before { content: ""; position: absolute; top: -1px; left: 22%; right: 22%; height: 3px; background: var(--esr-accent); }
	.esr-t-bar .esr-t-ico { width: 22px; height: 22px; }
}

/* WordPress core bits */
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media print {
	.esr-t-header, .esr-t-footer, .esr-t-bar, .esr-t-ad, .esr-t-toc { display: none !important; }
	body { background: #fff; color: #000; }
}
