/*
Theme Name: Lottery Toolbox
Theme URI: https://lotterytoolbox.com/
Author: Lottery Toolbox
Description: Midnight-blue theme for the Lottery Toolbox plugin: a live draw machine on the home page, a moving ticker of every lottery, an odds ladder of all 88 games, and clean pages for lotteries and the blog.
Version: 1.2.2
Requires at least: 6.0
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: lotterytoolbox
Tags: dark, blog, two-columns, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
	--night: #0A1A3F;
	--ink: #06102A;
	--panel: #13295C;
	--line: #24407F;
	--gold: #FFC23D;
	--coral: #FF5A5F;
	--ivory: #F1F0EA;
	--text: #E9EEFA;
	--muted: #9AABCF;
	--display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
	--body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1180px;
	--radius-s: 10px;
	--radius-l: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--night); color: var(--text); font: 17px/1.6 var(--body); }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffd77a; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 32px, 760px); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--gold); color: var(--ink); border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

.btn, .hero-search button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 22px; border: 0; border-radius: 999px;
	background: var(--gold); color: var(--ink); font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
	transition: transform .12s ease, background-color .2s ease;
}
.btn:hover, .hero-search button:hover { background: #ffd370; color: var(--ink); }
.btn:active, .hero-search button:active { transform: translateY(1px); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(6, 16, 42, .86); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(36, 64, 127, .6); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand .mark { width: 36px; height: 36px; }
.brand-name { font: 800 1.15rem/1 var(--display); letter-spacing: -0.02em; }
.brand-logo { max-height: 44px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.site-nav .menu { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav .menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 700; font-size: .95rem; }
.site-nav .menu a:hover, .site-nav .current-menu-item > a { background: var(--panel); }
.site-nav .menu > li { position: relative; }
.site-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .7; }
.site-nav .sub-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 60; min-width: 230px; margin: 0; padding: 8px; list-style: none; background: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
	opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s ease, transform .15s ease, visibility 0s .15s; }
.site-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.site-nav .menu > li:hover > .sub-menu, .site-nav .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.site-nav .sub-menu a { font-weight: 400; }
/* Regions in the left column, main countries in the right one */
@media (min-width: 901px) {
	.site-nav .sub-menu:has(.ltt-country-first) { display: grid; grid-template-rows: repeat(8, auto); grid-auto-flow: column; column-gap: 8px; min-width: 420px; }
}
.site-nav .sub-menu .ltt-country-first { position: relative; }
@media (max-width: 900px) { .site-nav .sub-menu .ltt-country-first { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); } }
.site-nav .sub-menu li:first-child a { font-weight: 700; }
.head-search input { width: 190px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--ink); color: var(--text); font: inherit; font-size: .9rem; }
.head-search input::placeholder { color: var(--muted); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; margin: auto; background: var(--text); border-radius: 2px; content: ""; position: relative; transition: transform .2s ease; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; background: var(--ink); border-bottom: 1px solid var(--line); }
	.nav-open .site-nav { display: flex; }
	.site-nav .menu { flex-direction: column; }
	.site-nav { max-height: calc(100vh - 68px); overflow-y: auto; }
	.site-nav .sub-menu { position: static; min-width: 0; padding: 0 0 0 14px; background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
	.site-nav .menu-item-has-children > a::after { display: none; }
	.head-search input { width: 100%; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 56px; background:
	radial-gradient(700px 420px at 78% 40%, rgba(255, 194, 61, .10), transparent 70%),
	radial-gradient(900px 600px at 10% -10%, #17357A, transparent 60%), var(--night); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.hero-title { max-width: 14ch; margin-bottom: .35em; font-size: clamp(2.3rem, 5vw, 4.1rem); line-height: 1.02; letter-spacing: -0.03em; }
.hero-text { max-width: 48ch; color: #C7D2EC; font-size: 1.12rem; }
.hero-search { display: flex; gap: 8px; max-width: 520px; margin: 28px 0 14px; padding: 6px; background: var(--ink); border: 1px solid var(--line); border-radius: 999px; }
.hero-search input { flex: 1; min-width: 0; padding: 10px 16px; border: 0; background: transparent; color: var(--text); font: inherit; }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { border-color: var(--gold); }
.hero-search input::placeholder { color: var(--muted); }
.hero-quick { color: var(--muted); font-size: .95rem; }
.hero-quick a { margin-right: 10px; color: var(--text); }

.machine { display: grid; justify-items: center; gap: 14px; }
.machine-drum { position: relative; width: min(100%, 440px); aspect-ratio: 1; }
.machine-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.machine-glass { position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
	background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .16), transparent 34%), radial-gradient(circle at 50% 50%, transparent 60%, rgba(120, 160, 255, .12) 72%, rgba(6, 16, 42, .55) 100%);
	box-shadow: inset 0 0 0 2px rgba(160, 190, 255, .28), inset 0 -18px 40px rgba(0, 0, 0, .35), 0 30px 60px -20px rgba(0, 0, 0, .6); }
.machine-drum::after { content: ""; position: absolute; left: 50%; bottom: -26px; width: 46%; height: 30px; transform: translateX(-50%); border-radius: 0 0 18px 18px; background: linear-gradient(#1B3A80, #0F2558); box-shadow: 0 8px 20px rgba(0, 0, 0, .4); z-index: -1; }
.machine-tray { width: min(100%, 460px); margin-top: 18px; padding: 14px 16px; background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-l); }
.machine-game { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 10px; font-size: .92rem; }
.machine-name { color: var(--text); font: 700 1rem var(--display); text-decoration: none; }
.machine-name:hover { color: var(--gold); }
.machine-odds { color: var(--muted); }
.machine-balls { display: flex; flex-wrap: wrap; gap: 7px; min-height: 40px; }
.tray-ball { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--night); font: 800 .98rem/1 var(--display); font-variant-numeric: tabular-nums;
	background: radial-gradient(circle at 32% 28%, #fff 0 18%, var(--ivory) 45%, #B9C2D8 100%); box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .18), 0 3px 8px rgba(0, 0, 0, .35);
	animation: drop .5s cubic-bezier(.2, 1.5, .4, 1) both; }
.tray-ball.is-bonus { color: #fff; background: radial-gradient(circle at 32% 28%, #FFD3D4 0 16%, var(--coral) 45%, #A8262B 100%); }
@keyframes drop { from { transform: translateY(-40px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.machine-again { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); font: 700 .92rem var(--body); cursor: pointer; }
.machine-again:hover { border-color: var(--gold); color: var(--gold); }

@media (max-width: 900px) {
	.hero { padding-top: 40px; }
	.hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.machine-drum { width: min(100%, 340px); }
}

/* ---------- ticker ---------- */
.ticker { overflow: hidden; background: var(--ink); border-block: 1px solid var(--line); }
.ticker-track { display: flex; width: max-content; animation: ticker 140s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; margin: 0; padding: 0; list-style: none; }
.ticker-list a { display: inline-flex; gap: 8px; align-items: baseline; padding: 14px 22px; color: var(--muted); text-decoration: none; white-space: nowrap; border-right: 1px solid rgba(36, 64, 127, .55); font-size: .95rem; }
.ticker-list strong { color: var(--text); font-family: var(--display); }
.ticker-list a:hover strong { color: var(--gold); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .ticker { overflow-x: auto; } }

/* ---------- sections ---------- */
.section-title { margin-bottom: 22px; }
.tools, .regions, .latest { padding: 72px 0 8px; }

.tools-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.tool { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 250px; padding: 26px; border-radius: var(--radius-l); background: var(--panel); color: var(--text); text-decoration: none; overflow: hidden; transition: background-color .2s ease; }
.tool:hover { background: #17336F; color: var(--text); }
.tool h3 { font-size: 1.35rem; margin-bottom: .3em; }
.tool p { margin: 0; color: #C3CFEA; }
.tool-gen { background: linear-gradient(160deg, #1A3B85, var(--panel)); }
.tool-balls { display: flex; gap: 8px; margin-bottom: auto; padding-bottom: 28px; }
.tool-balls b, .tool-balls i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font: 800 1.15rem var(--display); font-style: normal; color: var(--night); background: radial-gradient(circle at 32% 28%, #fff 0 18%, var(--ivory) 45%, #B9C2D8 100%); box-shadow: 0 6px 14px rgba(0, 0, 0, .35); }
.tool-balls i { color: #fff; background: radial-gradient(circle at 32% 28%, #FFD3D4 0 16%, var(--coral) 45%, #A8262B 100%); }
.tool-gen:hover .tool-balls b:nth-child(odd) { transform: translateY(-4px); }
.tool-balls b, .tool-balls i { transition: transform .25s ease; }
.tool-fig { margin-bottom: auto; padding-bottom: 24px; color: var(--muted); font: 500 1rem/1.15 var(--display); }
.tool-fig strong { color: var(--gold); font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; }
@media (max-width: 900px) { .tools-grid { grid-template-columns: 1fr; } .tool { min-height: 200px; } }

/* odds ladder */
.ladder { margin-top: 72px; padding: 72px 0; background: var(--ink); border-block: 1px solid var(--line); }
.ladder-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px 48px; align-items: end; margin-bottom: 28px; }
.ladder-head p { margin: 0; color: var(--muted); max-width: 60ch; }
.ladder-bars { display: flex; align-items: flex-end; gap: 3px; height: 260px; margin: 0; padding: 0; list-style: none; }
.ladder-bars li { flex: 1; height: var(--h); position: relative; transform-origin: bottom; transform: scaleY(.02); transition: transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 12ms); }
.ladder-bars.is-in li { transform: none; }
.ladder-bars a { display: block; height: 100%; border-radius: 4px 4px 0 0; background: linear-gradient(to top, #2A54B0, #6E8FE0 60%, var(--gold)); background-size: 100% 260px; background-position: bottom; background-repeat: no-repeat; opacity: .9; }
.ladder-bars a:hover, .ladder-bars a:focus-visible { opacity: 1; background: var(--gold); }
.ladder-tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); padding: 6px 10px; border-radius: 8px; background: var(--ivory); color: var(--night); font-size: .8rem; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s ease; z-index: 2; }
.ladder-bars li:first-child .ladder-tip { left: 0; transform: none; }
.ladder-bars li:last-child .ladder-tip { left: auto; right: 0; transform: none; }
.ladder-bars a:hover .ladder-tip, .ladder-bars a:focus-visible .ladder-tip { opacity: 1; }
.ladder-axis { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: .85rem; }
.ladder-ends { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.ladder-ends h3 { color: var(--muted); font-size: 1rem; }
.ladder-ends ol { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.ladder-ends li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(36, 64, 127, .6); counter-increment: r; }
.ladder-ends li::before { content: counter(r); width: 1.5em; color: var(--muted); font-family: var(--display); }
.ladder-ends li a { flex: 1; color: var(--text); text-decoration: none; font-weight: 700; }
.ladder-ends li a:hover { color: var(--gold); }
.ladder-ends li span { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .ladder-head, .ladder-ends { grid-template-columns: 1fr; } .ladder-bars { height: 180px; gap: 1px; } .ladder-tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .ladder-bars li { transition: none; transform: none; } }

/* regions */
.region-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 40px; margin: 0; padding: 0; list-style: none; }
.region-list a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.region-name { font: 700 1.3rem var(--display); }
.region-count { align-self: center; color: var(--gold); font-weight: 700; }
.region-games { grid-column: 1 / -1; color: var(--muted); font-size: .92rem; }
.region-list a:hover .region-name { color: var(--gold); }

/* posts */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.card-link { display: flex; flex-direction: column; height: 100%; color: var(--text); text-decoration: none; }
.card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-s); background: var(--panel); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-link:hover .card-img img { transform: scale(1.03); }
.card-img-empty { display: flex; align-items: center; justify-content: center; gap: 10px; }
.card-img-empty span { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0 18%, var(--ivory) 45%, #B9C2D8 100%); opacity: .8; }
.card-img-empty span:last-child { background: radial-gradient(circle at 32% 28%, #FFD3D4 0 16%, var(--coral) 45%, #A8262B 100%); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; }
.card-meta { color: var(--muted); font-size: .85rem; }
.card-title { font: 700 1.25rem/1.2 var(--display); }
.card-link:hover .card-title { color: var(--gold); }
.card-excerpt { color: #C3CFEA; font-size: .98rem; }

.embed-band { margin-top: 80px; padding: 48px 0; background: var(--gold); color: var(--ink); }
.embed-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.embed-band h2 { margin-bottom: .2em; }
.embed-band p { margin: 0; max-width: 56ch; }
.embed-band .btn { background: var(--ink); color: var(--gold); }
.embed-band .btn:hover { background: var(--night); color: #ffd370; }

/* ---------- inner pages ---------- */
.page-head { padding: 56px 0 24px; }
.page-title { font-size: clamp(2rem, 4vw, 3rem); }
.page-lede { max-width: 60ch; color: var(--muted); font-size: 1.1rem; }
.page-search { margin-top: 18px; }
.article-head { padding: 48px 0 16px; }
.article-title { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.article-meta, .crumbs { color: var(--muted); font-size: .92rem; }
.crumbs { margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.article-hero { margin-block: 8px 28px; }
.article-hero img { border-radius: var(--radius-s); }
.prose { padding-bottom: 64px; }
.prose-wide { width: min(100% - 32px, var(--wrap)); }
.prose > * { max-width: 72ch; }
.prose > .ltb, .prose > .ltb-list, .prose > .ltb-builder, .prose > .ltb-facts, .prose > .ltb-related, .prose > figure, .prose > .wp-block-image { max-width: none; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--gold); color: #C7D2EC; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose img { border-radius: var(--radius-s); }
.prose em { color: var(--muted); }
.game-page .prose > .ltb { margin: 8px 0 40px; max-width: 680px; }
.game-page .article-head { padding-bottom: 8px; }

/* plugin elements on the dark theme */
.ltb-facts th { color: var(--muted); }
.ltb-faq details { border-color: var(--line); }
.ltb-faq summary { padding: 4px 0; }
.ltb-faq summary:hover { color: var(--gold); }
.ltb-related li, .ltb-list-grid a { background: var(--panel); border: 1px solid var(--line) !important; }
.ltb-related li a, .ltb-list-grid a { color: var(--text); }
.ltb-list-grid a:hover { border-color: var(--gold) !important; color: var(--text); transform: none !important; }
.ltb-list-grid em { color: var(--gold); }
.ltb-list-search { background: var(--ink); color: var(--text); border-color: var(--line) !important; margin-bottom: 8px; }
.ltb-list-region { margin-top: 1.6em; }
.ltb-builder select, .ltb-b-code { background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.ltb-builder .ltb-btn { background: var(--gold) !important; color: var(--ink) !important; }
.ltb-embed-cta a { color: var(--gold); }
.game-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; padding: 0; list-style: none; margin-bottom: 48px; }
.game-results a { display: block; padding: 14px; border-radius: 12px; text-decoration: none; }
.game-results strong, .game-results span, .game-results em { display: block; }
.game-results span { color: var(--muted); font-size: .88rem; }
.game-results em { font-style: normal; font-weight: 700; color: var(--gold); margin-top: 4px; }

.navigation.pagination, .post-navigation { margin: 40px 0; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; }
.page-numbers.current, .page-numbers:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.post-navigation .nav-links { justify-content: space-between; }
.post-navigation a { color: var(--text); text-decoration: none; font-weight: 700; }
.nav-label { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; }
.empty { color: var(--muted); }
.notfound { text-align: center; }
.notfound .page-lede { margin-inline: auto; }
.notfound .page-search { margin-inline: auto; }
.nf-balls { display: flex; justify-content: center; gap: 10px; }
.nf-balls b { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: var(--night); font: 800 1.8rem var(--display); background: radial-gradient(circle at 32% 28%, #fff 0 18%, var(--ivory) 45%, #B9C2D8 100%); }
.nf-balls b:nth-child(2) { color: #fff; background: radial-gradient(circle at 32% 28%, #FFD3D4 0 16%, var(--coral) 45%, #A8262B 100%); }

.comments { margin-top: 40px; }
.comment-list { padding-left: 0; list-style: none; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--ink); color: var(--text); font: inherit; }
.comment-form .submit { padding: 12px 20px; border: 0; border-radius: 999px; background: var(--gold); color: var(--ink); font: 700 1rem var(--body); cursor: pointer; }

/* WordPress core classes */
.alignwide { max-width: var(--wrap) !important; }
.alignfull { max-width: none !important; }
.aligncenter { margin-inline: auto; display: block; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.wp-caption-text, figcaption { color: var(--muted); font-size: .88rem; }

/* ---------- footer ---------- */
.site-foot { margin-top: 0; padding: 56px 0 24px; background: var(--ink); border-top: 1px solid var(--line); }
.embed-band + .site-foot, .ladder + .site-foot { border-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }
.foot-about p { max-width: 46ch; margin-top: 14px; color: var(--muted); font-size: .95rem; }
.foot-title { color: var(--muted); font-size: 1rem; }
.foot-list { margin: 0; padding: 0; list-style: none; }
.foot-list li { padding: 5px 0; }
.foot-list a { color: var(--text); text-decoration: none; }
.foot-list a:hover { color: var(--gold); }
.foot-list span { color: var(--muted); font-size: .85rem; }
.foot-base { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.age { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--coral); border-radius: 50%; color: var(--coral); font-weight: 700; font-size: .78rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
