/*
Theme Name: Прогнозите 1X2
Theme URI: https://prognozite1x2.com/
Author: Прогнозите 1X2
Author URI: https://prognozite1x2.com/
Description: Бърза WordPress тема за анализ на футболни залози, изцяло на български. Списък със статии във вид на фиш, тъмна тема, индикатор за прочетено, FAQ акордеони и вградени структурирани данни Schema.org. Без jQuery, без framework, без build стъпка.
Version: 2.1.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prognozite1x2
Tags: blog, one-column, custom-menu, dark-mode, editor-style, translation-ready, accessibility-ready
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	--pitch: #0B7A4B;
	--pitch-deep: #065335;
	--gold: #B8860B;

	--paper: #EFF3EE;
	--card: #FFFFFF;
	--ink: #101815;
	--ink-soft: #4A5A52;
	--line: #D8E2DA;
	--chip: #E7EFE8;
	--btn-ink: #FFFFFF;

	--shadow: 0 1px 2px rgba(16, 24, 21, .05), 0 8px 24px -12px rgba(16, 24, 21, .18);
	--shadow-lift: 0 2px 4px rgba(16, 24, 21, .06), 0 18px 40px -18px rgba(16, 24, 21, .28);

	--radius: 14px;
	--maxw: 74rem;
	--measure: 38rem;

	--display: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--body: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mono: 'Fira Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

html[data-theme="dark"] {
	--pitch: #3ACB80;
	--pitch-deep: #2AA866;
	--gold: #E0B24A;

	--paper: #0A1310;
	--card: #111C17;
	--ink: #E3EDE7;
	--ink-soft: #96A9A0;
	--line: #22332B;
	--chip: #18261F;
	--btn-ink: #08130E;

	--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .7);
	--shadow-lift: 0 2px 6px rgba(0, 0, 0, .45), 0 22px 46px -20px rgba(0, 0, 0, .85);
}

@media (prefers-color-scheme: dark) {
	html[data-theme="auto"] {
		--pitch: #3ACB80;
		--pitch-deep: #2AA866;
		--gold: #E0B24A;

		--paper: #0A1310;
		--card: #111C17;
		--ink: #E3EDE7;
		--ink-soft: #96A9A0;
		--line: #22332B;
		--chip: #18261F;
		--btn-ink: #08130E;

		--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .7);
		--shadow-lift: 0 2px 6px rgba(0, 0, 0, .45), 0 22px 46px -20px rgba(0, 0, 0, .85);
	}
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	overflow-x: hidden;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.7;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; }

:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 3px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
	word-wrap: normal;
}

.skip-link:focus {
	position: fixed;
	inset: 0.75rem auto auto 0.75rem;
	z-index: 100;
	width: auto; height: auto;
	clip: auto; clip-path: none;
	background: var(--card);
	color: var(--ink);
	padding: 0.7rem 1.1rem;
	border-radius: 8px;
	box-shadow: var(--shadow-lift);
}

.wrap {
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* ==========================================================================
   3. Reading progress
   ========================================================================== */

#pb-progress {
	position: fixed;
	inset: 0 auto auto 0;
	height: 3px;
	width: 0;
	background: var(--pitch);
	z-index: 60;
	transition: width .1s linear;
	will-change: width;
}

body.admin-bar #pb-progress { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar #pb-progress { top: 46px; } }

/* ==========================================================================
   4. Header
   ========================================================================== */

.topbar {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(10px)) {
	.topbar {
		background: color-mix(in srgb, var(--paper) 82%, transparent);
		backdrop-filter: saturate(150%) blur(10px);
	}
}

body.admin-bar .topbar { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .topbar { top: 46px; } }

.topbar__in {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: 60px;
	min-width: 0;
}

.brand {
	font-family: var(--display);
	font-weight: 800;
	letter-spacing: -.02em;
	font-size: 1.0625rem;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: .55rem;

	/* Must be able to shrink: a long site name would otherwise push the
	   burger off-screen, because flex items do not shrink below content
	   width unless min-width is explicitly zeroed. */
	flex: 0 1 auto;
	min-width: 0;
}

.brand__label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* With the nav on its own row there is room for the full name. */
@media (min-width: 861px) {
	.brand { flex: 0 0 auto; }
	.brand__label { max-width: 46ch; }
}

.brand__mark {
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: radial-gradient(circle at 32% 28%, var(--pitch) 0 42%, var(--pitch-deep) 43% 100%);
	box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--card) 70%, transparent);
	flex: 0 0 auto;
}

.brand img { max-height: 2rem; width: auto; }

.topbar__spacer { flex: 1; }

/* nav: its own row under the brand, desktop only */
.navbar { display: none; }

@media (min-width: 861px) {
	.navbar {
		display: block;
		border-top: 1px solid var(--line);
		padding-block: .25rem .35rem;
	}
}

.nav ul {
	list-style: none;
	display: flex;

	/* Every menu item must be visible. With a dozen categories that means
	   wrapping onto a second row rather than scrolling items out of sight. */
	flex-wrap: wrap;
	column-gap: 1.25rem;
	row-gap: 0;

	margin: 0;
	padding: 0;
	font-size: .9375rem;
}

.nav li { flex: 0 0 auto; }

.nav a {
	display: block;
	padding: .55rem 0;
	white-space: nowrap;
	text-decoration: none;
	color: var(--ink-soft);
	position: relative;
	transition: color .18s ease;
}

.nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--pitch);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .22s ease;
}

.nav a:hover,
.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav .current-menu-parent > a {
	color: var(--pitch);
}

.nav a:hover::after,
.nav .current-menu-item > a::after,
.nav .current_page_item > a::after,
.nav .current-menu-parent > a::after {
	transform: scaleX(1);
}

/* theme toggle */
.toggle {
	font-family: var(--mono);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	background: var(--chip);
	color: var(--ink);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: .42rem .85rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	flex: 0 0 auto;
	transition: border-color .18s ease, transform .18s ease;
}

.toggle:hover { border-color: var(--pitch); transform: translateY(-1px); }
.toggle svg { width: .95rem; height: .95rem; fill: currentColor; }

html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="auto"] .icon-sun { display: none; }

@media (prefers-color-scheme: dark) {
	html[data-theme="auto"] .icon-moon { display: none; }
	html[data-theme="auto"] .icon-sun { display: inline; }
}

/* ==========================================================================
   4b. Hamburger button
   ========================================================================== */

.burger {
	display: none;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	padding: 0;
	margin-right: -8px;
	background: none;
	border: 0;
	border-radius: 10px;
	color: var(--ink);
	cursor: pointer;
	place-items: center;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	transition: background .18s ease;
}

.burger:hover { background: var(--chip); }

.burger__box {
	display: block;
	position: relative;
	width: 20px;
	height: 14px;
}

.burger__bar {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .28s cubic-bezier(.4, .01, .2, 1), opacity .18s ease, top .28s ease;
}

.burger__bar:nth-child(1) { top: 0; }
.burger__bar:nth-child(2) { top: 6px; }
.burger__bar:nth-child(3) { top: 12px; }

.burger[aria-expanded="true"] .burger__bar:nth-child(1) { top: 6px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { opacity: 0; transform: scaleX(.4); }
.burger[aria-expanded="true"] .burger__bar:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 860px) {
	.burger { display: grid; }

	/* Reclaim width for the site name: icon-only toggle, no flexible spacer. */
	.topbar .toggle { padding: .42rem .6rem; }
	.topbar #pb-theme-label { display: none; }
	.topbar__spacer { display: none; }

	.topbar__in {
		gap: .6rem;
		padding-block: .5rem;
		align-items: center;
	}

	/* A long, keyword-rich site name cannot fit one line on a phone, so it
	   wraps rather than being cut off with an ellipsis. */
	.brand {
		flex: 1 1 auto;
		min-width: 0;
		max-width: none;
		font-size: clamp(.75rem, 3.1vw, .9375rem);
		letter-spacing: -.01em;
	}

	.brand__label {
		white-space: normal;
		overflow: visible;
		text-overflow: clip;
		line-height: 1.2;
	}

	.brand__mark { width: 1.25rem; height: 1.25rem; }
}

/* ==========================================================================
   4c. Off-canvas mobile menu
   ========================================================================== */

.mnav[hidden] { display: none; }

.mnav {
	position: fixed;
	inset: 0;
	z-index: 70;
}

.mnav__scrim {
	position: absolute;
	inset: 0;
	background: rgba(6, 20, 14, .5);
	opacity: 0;
	transition: opacity .3s ease;
	-webkit-tap-highlight-color: transparent;
}

@supports (backdrop-filter: blur(2px)) {
	.mnav__scrim { backdrop-filter: blur(2px); }
}

.mnav.is-open .mnav__scrim { opacity: 1; }

.mnav__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(21rem, 86vw);
	display: flex;
	flex-direction: column;

	/* dvh keeps the panel correct while the iOS Safari toolbars collapse. */
	height: 100vh;
	height: 100dvh;

	background: var(--card);
	border-left: 1px solid var(--line);
	box-shadow: var(--shadow-lift);

	/* Notch, Dynamic Island and the home indicator. */
	padding-top: env(safe-area-inset-top);
	padding-right: env(safe-area-inset-right);
	padding-bottom: env(safe-area-inset-bottom);

	transform: translate3d(100%, 0, 0);
	transition: transform .32s cubic-bezier(.32, .72, 0, 1);
	will-change: transform;
	overscroll-behavior: contain;
}

.mnav.is-open .mnav__panel { transform: translate3d(0, 0, 0); }

body.admin-bar .mnav__panel { top: 32px; height: calc(100dvh - 32px); }
@media screen and (max-width: 782px) {
	body.admin-bar .mnav__panel { top: 46px; height: calc(100dvh - 46px); }
}

/* head */

.mnav__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--line);
	flex: 0 0 auto;
}

.mnav__title {
	font-family: var(--mono);
	font-size: .72rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.mnav__close {
	width: 40px;
	height: 40px;
	margin-right: -8px;
	padding: 0;
	display: grid;
	place-items: center;
	background: none;
	border: 0;
	border-radius: 10px;
	color: var(--ink);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	transition: background .18s ease;
}

.mnav__close:hover { background: var(--chip); }
.mnav__close svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; }

/* body */

.mnav__body {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: .5rem 1.25rem 1.5rem;
}

.mnav__list,
.mnav__list ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mnav__list li { border-bottom: 1px solid var(--line); }
.mnav__list ul li:last-child { border-bottom: 0; }

.mnav__list a {
	display: block;
	padding: .9rem .25rem;
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.0625rem;
	letter-spacing: -.015em;
	text-decoration: none;
	color: var(--ink);
	-webkit-tap-highlight-color: transparent;
	transition: color .18s ease, padding-left .18s ease;
}

.mnav__list a:hover,
.mnav__list a:active { color: var(--pitch); padding-left: .5rem; }

.mnav__list .current-menu-item > a,
.mnav__list .current_page_item > a { color: var(--pitch); }

/* second level */
.mnav__list .sub-menu { padding: 0 0 .5rem .9rem; border-left: 2px solid var(--line); margin-bottom: .5rem; }
.mnav__list .sub-menu li { border-bottom: 0; }

.mnav__list .sub-menu a {
	font-family: var(--body);
	font-weight: 400;
	font-size: .9375rem;
	color: var(--ink-soft);
	padding: .55rem .25rem;
}

.mnav__body .searchform { margin-top: 1.5rem; max-width: none; }

/* foot */

.mnav__foot {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	border-top: 1px solid var(--line);
	background: var(--chip);
}

.mnav__foot-label {
	font-family: var(--mono);
	font-size: .72rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.mnav__foot .toggle { background: var(--card); }

/* Scroll lock applied to <body> while the panel is open. */
body.pb-locked {
	position: fixed;
	inset-inline: 0;
	width: 100%;
	overflow: hidden;
}

@media (min-width: 861px) {
	.mnav { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	.mnav__panel, .mnav__scrim, .burger__bar { transition: none !important; }
}

/* ==========================================================================
   5. Hero
   ========================================================================== */

.hero { padding: clamp(3rem, 9vw, 6rem) 0 clamp(2rem, 5vw, 3rem); }

.hero__eyebrow {
	font-family: var(--mono);
	font-size: .75rem;
	letter-spacing: .11em;
	text-transform: uppercase;
	color: var(--pitch);
	margin: 0 0 1rem;
}

.hero h1 {
	font-family: var(--display);
	font-weight: 800;
	letter-spacing: -.024em;
	font-size: clamp(1.9rem, 8vw, 4.5rem);
	line-height: .98;
	margin: 0 0 1.25rem;
	max-width: 18ch;
	text-wrap: balance;
	overflow-wrap: break-word;
}

.hero h1 em { font-style: normal; color: var(--pitch); }

.hero__sub {
	max-width: var(--measure);
	overflow-wrap: break-word;
	color: var(--ink-soft);
	font-size: clamp(1rem, 2.4vw, 1.1875rem);
	margin: 0;
}

.stats {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: 2rem;
	font-family: var(--mono);
	font-size: .75rem;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.stats span {
	background: var(--chip);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: .4rem .8rem;
	color: var(--ink-soft);
}

/* ==========================================================================
   6. The slip (article index)
   ========================================================================== */

.slip {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	margin-bottom: clamp(3rem, 8vw, 5rem);
}

.slip__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem clamp(1rem, 3vw, 1.6rem);
	border-bottom: 1px solid var(--line);
	background: linear-gradient(180deg, color-mix(in srgb, var(--pitch) 8%, var(--card)), var(--card));
}

.slip__head h2 {
	font-family: var(--display);
	font-weight: 700;
	letter-spacing: -.02em;
	font-size: 1.0625rem;
	margin: 0;
}

.slip__head span {
	font-family: var(--mono);
	font-size: .72rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.leg {
	display: flex;
	align-items: center;
	gap: clamp(.75rem, 2.5vw, 1.25rem);
	padding: .95rem clamp(1rem, 3vw, 1.6rem);
	text-decoration: none;
	border-bottom: 1px dashed var(--line);
	position: relative;
	transition: background .18s ease, padding-left .18s ease;
}

.leg:last-child { border-bottom: 0; }

.leg::before {
	content: "";
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 3px;
	background: var(--pitch);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform .22s ease;
}

.leg:hover { background: var(--chip); padding-left: calc(clamp(1rem, 3vw, 1.6rem) + .35rem); }
.leg:hover::before { transform: scaleY(1); }

.leg__no {
	font-family: var(--mono);
	font-size: .8125rem;
	font-weight: 600;
	color: var(--pitch);
	flex: 0 0 auto;
	width: 1.7rem;
}

.leg__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.leg__title { font-weight: 500; line-height: 1.35; overflow-wrap: break-word; }

.leg__meta {
	font-family: var(--mono);
	font-size: .7rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink-soft);
	margin-top: .15rem;
}

.leg__chip {
	font-family: var(--mono);
	font-size: .72rem;
	color: var(--ink-soft);
	background: var(--chip);
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: .2rem .5rem;
	flex: 0 0 auto;
}

@media (max-width: 520px) { .leg__chip { display: none; } }

/* ==========================================================================
   7. Post card / article
   ========================================================================== */

.post {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: clamp(1.5rem, 5vw, 3.25rem);
	margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
	scroll-margin-top: 5rem;
	transition: box-shadow .3s ease, border-color .3s ease;
}

.post:hover {
	box-shadow: var(--shadow-lift);
	border-color: color-mix(in srgb, var(--pitch) 35%, var(--line));
}

@media (min-width: 861px) {
	.post { scroll-margin-top: 8rem; }
}

.eyebrow {
	font-family: var(--mono);
	font-size: .72rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ink-soft);
	margin: 0 0 .9rem;
	display: flex;
	align-items: center;
	gap: .6rem;
	flex-wrap: wrap;
}

.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { color: var(--pitch); }
.eyebrow__no { color: var(--pitch); font-weight: 600; }

.dot {
	width: 3px; height: 3px;
	border-radius: 50%;
	background: var(--ink-soft);
	display: inline-block;
	flex: 0 0 auto;
}

.post__title {
	font-family: var(--display);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.08;
	font-size: clamp(1.6rem, 4.2vw, 2.6rem);
	margin: 0 0 .85rem;
	max-width: 22ch;
	text-wrap: balance;
	overflow-wrap: break-word;
}

.post__title a { text-decoration: none; transition: color .2s ease; }
.post__title a:hover { color: var(--pitch); }

.post__desc {
	color: var(--ink-soft);
	margin: 0;
	max-width: var(--measure);
	font-size: .9375rem;
	padding-left: .9rem;
	border-left: 2px solid var(--pitch);
	overflow-wrap: break-word;
}

/* ==========================================================================
   8. Entry content (block editor output)
   ========================================================================== */

.entry-content {
	margin-top: 2rem;
	max-width: var(--measure);
}

.entry-content > * { margin-block: 0 1.15rem; }

.entry-content .has-lede,
.entry-content > p:first-child {
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--ink);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--display);
	letter-spacing: -.02em;
	line-height: 1.15;
	color: var(--ink);
}

.entry-content h2 { font-weight: 800; font-size: clamp(1.4rem, 3.5vw, 1.75rem); margin: 2.6rem 0 .9rem; }
.entry-content h3 { font-weight: 700; font-size: 1.1875rem; margin: 2.1rem 0 .7rem; }
.entry-content h4 { font-weight: 700; font-size: 1.0625rem; margin: 1.8rem 0 .6rem; }

.entry-content h3::before {
	content: "";
	display: block;
	width: 1.75rem;
	height: 2px;
	background: var(--gold);
	margin-bottom: .7rem;
}

.entry-content a {
	color: var(--pitch);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	overflow-wrap: break-word;
	transition: color .18s ease;
}

.entry-content a:hover { color: var(--ink); }

.entry-content ul, .entry-content ol { padding-left: 1.25rem; }
.entry-content li { margin-bottom: .45rem; }

.entry-content strong { color: var(--ink); font-weight: 600; }

.entry-content blockquote {
	margin: 2rem 0;
	padding: .25rem 0 .25rem 1.15rem;
	border-left: 3px solid var(--gold);
	color: var(--ink-soft);
	font-style: normal;
}

.entry-content code,
.entry-content kbd {
	font-family: var(--mono);
	font-size: .875em;
	background: var(--chip);
	border: 1px solid var(--line);
	border-radius: 5px;
	padding: .1em .35em;
}

.entry-content pre {
	font-family: var(--mono);
	font-size: .8125rem;
	background: var(--chip);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 1rem 1.15rem;
	overflow-x: auto;
}

.entry-content pre code { background: none; border: 0; padding: 0; }

.entry-content .wp-block-separator {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 2.5rem 0;
	max-width: none;
}

.entry-content figure { margin-inline: 0; }
.entry-content figcaption {
	font-family: var(--mono);
	font-size: .72rem;
	letter-spacing: .04em;
	color: var(--ink-soft);
	margin-top: .55rem;
}

.entry-content img,
.entry-content .wp-block-image img { border-radius: 10px; }

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: .9375rem;
}

.entry-content th, .entry-content td {
	border-bottom: 1px solid var(--line);
	padding: .65rem .5rem;
	text-align: left;
}

.entry-content th {
	font-family: var(--mono);
	font-size: .72rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ink-soft);
	font-weight: 600;
}

/* wide / full alignment inside the measure column */
.entry-content .alignwide {
	width: min(56rem, 92vw);
	max-width: none;
	margin-inline: calc(50% - min(28rem, 46vw));
}

.entry-content .alignfull {
	width: auto;
	max-width: none;
	margin-inline: calc(-1 * clamp(1.5rem, 5vw, 3.25rem));
}

.entry-content .alignleft { float: left; margin: .35rem 1.5rem 1rem 0; max-width: 45%; }
.entry-content .alignright { float: right; margin: .35rem 0 1rem 1.5rem; max-width: 45%; }
.entry-content .aligncenter { margin-inline: auto; }

/* details / FAQ accordion */
.entry-content .wp-block-details {
	border-bottom: 1px solid var(--line);
	margin-bottom: 0;
	padding: 0;
}

.entry-content .wp-block-details summary {
	cursor: pointer;
	list-style: none;
	font-weight: 500;
	padding: .85rem 2rem .85rem 0;
	position: relative;
	transition: color .18s ease;
}

.entry-content .wp-block-details summary::-webkit-details-marker { display: none; }

.entry-content .wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: .35rem;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--mono);
	color: var(--pitch);
	font-size: 1.15rem;
	line-height: 1;
	transition: transform .22s ease;
}

.entry-content .wp-block-details[open] summary::after { content: "\2212"; }
.entry-content .wp-block-details summary:hover { color: var(--pitch); }

.entry-content .wp-block-details p {
	color: var(--ink-soft);
	font-size: .9375rem;
	margin: 0 0 1rem;
}

/* --- Content that brings its own background colour ---------------------
   Older posts set a background colour on a heading or paragraph without
   setting a text colour. That background does not follow the dark theme, so
   the text must not either: light ink on a light bar is unreadable. The
   colour is therefore pinned to the light-theme ink regardless of mode.

   Anything that declares its own colour still wins: inline `color:` beats a
   stylesheet rule, and WordPress adds `has-text-color` when the editor sets
   one, which the :not() excludes. */

.entry-content :is(h1, h2, h3, h4, h5, h6, p, li).has-background:not(.has-text-color),
.entry-content :is(h1, h2, h3, h4, h5, h6, p, li)[style*="background"]:not(.has-text-color) {
	color: #101815;
	padding: .3em .55em;
	border-radius: 6px;
}

.entry-content .has-background:not(.has-text-color) :is(strong, em, b, i, span, code, mark),
.entry-content [style*="background"]:not(.has-text-color) :is(strong, em, b, i, span, code, mark) {
	color: inherit;
	background: none;
}

.entry-content .has-background:not(.has-text-color) a,
.entry-content [style*="background"]:not(.has-text-color) a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* A heading with a background does not need the small gold rule as well. */
.entry-content h3.has-background::before,
.entry-content h3[style*="background"]::before {
	display: none;
}

/* Cover blocks manage their own contrast. */
.entry-content .wp-block-cover,
.entry-content .wp-block-cover-image {
	color: inherit;
	padding: revert;
	border-radius: revert;
}

/* responsible gambling notice */
.entry-content .responsible-gambling,
.responsible {
	background: var(--chip);
	border: 1px solid var(--line);
	border-left: 3px solid var(--gold);
	border-radius: 8px;
	padding: 1rem 1.15rem;
	font-size: .875rem;
	color: var(--ink-soft);
	max-width: 60ch;
}

.entry-content .responsible-gambling { margin-top: 2.5rem; }
.entry-content .responsible-gambling p { margin: 0; }

/* ==========================================================================
   9. Post footer
   ========================================================================== */

.post__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: 2.25rem;
	padding-top: 1.4rem;
	border-top: 1px solid var(--line);
}

.kws { display: flex; flex-wrap: wrap; gap: .4rem; }

.kw {
	font-family: var(--mono);
	font-size: .7rem;
	letter-spacing: .03em;
	color: var(--ink-soft);
	background: var(--chip);
	border: 1px solid var(--line);
	border-radius: 5px;
	padding: .24rem .55rem;
	text-decoration: none;
	transition: border-color .18s ease, color .18s ease;
}

a.kw:hover { border-color: var(--pitch); color: var(--pitch); }

.btn {
	font-family: var(--mono);
	font-size: .75rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--btn-ink);
	background: var(--pitch);
	border: 0;
	border-radius: 8px;
	padding: .6rem 1.05rem;
	white-space: nowrap;
	cursor: pointer;
	display: inline-block;
	transition: background .18s ease, transform .18s ease;
}

.btn:hover { background: var(--pitch-deep); transform: translateY(-1px); color: var(--btn-ink); }

/* ==========================================================================
   10. Post navigation & pagination
   ========================================================================== */

.postnav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(.75rem, 2vw, 1.25rem);
	margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

@media (max-width: 640px) { .postnav { grid-template-columns: 1fr; } }

.postnav a {
	display: block;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.15rem 1.35rem;
	text-decoration: none;
	box-shadow: var(--shadow);
	transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}

.postnav a:hover {
	box-shadow: var(--shadow-lift);
	border-color: color-mix(in srgb, var(--pitch) 35%, var(--line));
	transform: translateY(-2px);
}

.postnav span {
	display: block;
	font-family: var(--mono);
	font-size: .7rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--pitch);
	margin-bottom: .35rem;
}

.postnav strong {
	font-family: var(--display);
	font-weight: 700;
	letter-spacing: -.015em;
	font-size: 1rem;
	line-height: 1.3;
}

.postnav .is-next { text-align: right; }

.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	justify-content: center;
	margin-bottom: clamp(2rem, 6vw, 3.5rem);
	font-family: var(--mono);
	font-size: .8125rem;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding-inline: .6rem;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 8px;
	text-decoration: none;
	color: var(--ink-soft);
	transition: border-color .18s ease, color .18s ease;
}

.pagination .page-numbers:hover { border-color: var(--pitch); color: var(--pitch); }

.pagination .page-numbers.current {
	background: var(--pitch);
	border-color: var(--pitch);
	color: var(--btn-ink);
}

/* ==========================================================================
   11. Search form, 404, comments
   ========================================================================== */

.searchform {
	display: flex;
	gap: .5rem;
	max-width: var(--measure);
	margin-top: 1.75rem;
}

.searchform input[type="search"] {
	flex: 1;
	font-family: var(--body);
	font-size: 1rem;
	color: var(--ink);
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: .7rem .9rem;
	min-width: 0;
}

.searchform input[type="search"]::placeholder { color: var(--ink-soft); }
.searchform input[type="search"]:focus { border-color: var(--pitch); }

.comments {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: clamp(1.5rem, 5vw, 3.25rem);
	margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.comments h2, .comments h3 {
	font-family: var(--display);
	font-weight: 700;
	letter-spacing: -.02em;
	font-size: 1.1875rem;
	margin: 0 0 1.25rem;
}

.comments ol { list-style: none; margin: 0 0 2rem; padding: 0; }
.comments .children { list-style: none; padding-left: 1.5rem; }

.comments article {
	border-bottom: 1px solid var(--line);
	padding: 1.1rem 0;
}

.comments .comment-meta {
	font-family: var(--mono);
	font-size: .72rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink-soft);
	margin-bottom: .5rem;
}

.comments textarea,
.comments input[type="text"],
.comments input[type="email"],
.comments input[type="url"] {
	width: 100%;
	font-family: var(--body);
	font-size: 1rem;
	color: var(--ink);
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: .7rem .9rem;
}

.comments .submit { font-family: var(--mono); }

/* ==========================================================================
   12. Footer
   ========================================================================== */

.site-foot {
	border-top: 1px solid var(--line);
	margin-top: clamp(3rem, 8vw, 5rem);
	padding: 2.5rem 0 3.5rem;
	color: var(--ink-soft);
	font-size: .875rem;
}

.site-foot p { margin: 0 0 .6rem; max-width: 60ch; }
.site-foot .responsible { margin-bottom: 1.5rem; }

.site-foot nav ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 1.15rem;
	margin: 0 0 1.25rem;
	padding: 0;
	font-family: var(--mono);
	font-size: .72rem;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.site-foot nav a { text-decoration: none; transition: color .18s ease; }
.site-foot nav a:hover { color: var(--pitch); }

/* ==========================================================================
   13. Back to top
   ========================================================================== */

#pb-totop {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 55;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: var(--card);
	color: var(--ink);
	cursor: pointer;
	box-shadow: var(--shadow);
	display: grid;
	place-items: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease, transform .25s ease, border-color .25s ease;
}

#pb-totop.is-on { opacity: 1; pointer-events: auto; }
#pb-totop:hover { transform: translateY(-3px); border-color: var(--pitch); }
#pb-totop svg { width: 1.1rem; height: 1.1rem; stroke: currentColor; fill: none; stroke-width: 2; }

/* ==========================================================================
   14. Motion
   ========================================================================== */

.reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .55s ease, transform .55s ease;
}

.reveal.is-in { opacity: 1; transform: none; }

.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	.reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   15. Print
   ========================================================================== */

@media print {
	.topbar, #pb-progress, #pb-totop, .btn, .postnav, .pagination, .comments { display: none !important; }
	body { background: #fff; color: #000; }
	.post { box-shadow: none; border: 0; padding: 0; }
	.entry-content { max-width: none; }
	.entry-content .wp-block-details p { display: block !important; }
	.entry-content a::after { content: " (" attr(href) ")"; font-size: .75em; word-break: break-all; }
}
