/*
Theme Name: Y999
Theme URI: https://y999.wiki/
Author: Y999.wiki
Description: Independent Y999 Game guide theme. Dark, Nuts-inspired casino layout in Y999 black and lime, with editable block content, breadcrumbs, built-in SEO tags and referral link settings.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
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: y999
Tags: dark, one-column, two-columns, custom-logo, custom-menu, featured-images, block-patterns
*/

/* Fonts ------------------------------------------------------------------ */

@font-face {
	font-family: "Outfit";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/outfit-latin-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Outfit";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/outfit-latin-500-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Outfit";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/outfit-latin-600-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Outfit";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/outfit-latin-700-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Outfit";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("assets/fonts/outfit-latin-800-normal.woff2") format("woff2");
}

/* Tokens ----------------------------------------------------------------- */

:root {
	--bg: #0d0f0c;
	--bg-2: #141712;
	--panel: #1b1d1a;
	--panel-2: #232622;
	--line: #2e322c;
	--lime: #8ce04b;
	--lime-2: #a6ef6c;
	--lime-dark: #5aa82a;
	--gold: #f5a623;
	--text: #ffffff;
	--muted: #b6bdb0;
	--radius: 14px;
	--radius-lg: 22px;
	--wrap: 1200px;
	--narrow: 780px;
	--header-h: 72px;
	--font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--shadow-glow: 0 0 0 1px rgba(140, 224, 75, 0.25), 0 20px 60px -20px rgba(140, 224, 75, 0.45);
}

/* Base ------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.7;
	overflow-x: hidden;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--lime);
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

a:hover {
	color: var(--lime-2);
}

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

h1,
h2,
h3,
h4 {
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 0.6em;
	color: var(--text);
}

h1 {
	font-size: clamp(2.1rem, 4.6vw, 3.6rem);
}

h2 {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h3 {
	font-size: 1.3rem;
}

p {
	margin: 0 0 1.1em;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 1000;
	background: var(--lime);
	color: var(--bg);
	padding: 10px 16px;
	border-radius: 8px;
	font-weight: 700;
}

.skip-link:focus {
	top: 12px;
}

.wrap {
	width: min(100% - 40px, var(--wrap));
	margin-inline: auto;
}

.wrap--narrow {
	width: min(100% - 40px, var(--narrow));
}

/* Buttons and labels ----------------------------------------------------- */

.y9-btn,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 26px;
	border: 2px solid var(--lime);
	border-radius: 10px;
	background: var(--lime);
	color: var(--bg);
	font-family: var(--font);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, transform 0.2s;
}

.y9-btn:hover,
.wp-block-button__link:hover {
	background: var(--lime-2);
	border-color: var(--lime-2);
	color: var(--bg);
	transform: translateY(-1px);
}

.y9-btn--ghost {
	background: transparent;
	color: var(--lime);
}

.y9-btn--ghost:hover {
	background: rgba(140, 224, 75, 0.12);
	color: var(--lime-2);
}

.y9-btn--sm {
	min-height: 44px;
	padding: 8px 18px;
	font-size: 0.875rem;
}

.y9-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 1.4em 0;
}

.y9-label,
.entry-content .y9-label {
	margin: 0 0 0.7em;
	color: var(--lime);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.y9-more a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-weight: 600;
	text-decoration: none;
}

.y9-more a::after {
	content: "";
	width: 18px;
	height: 2px;
	background: currentColor;
	transition: width 0.2s;
}

.y9-more a:hover::after {
	width: 28px;
}

.y9-code {
	color: var(--gold);
	letter-spacing: 0.04em;
}

.y9-note {
	padding: 14px 18px;
	border-left: 3px solid var(--gold);
	border-radius: 0 10px 10px 0;
	background: rgba(245, 166, 35, 0.08);
	color: var(--muted);
	font-size: 0.95rem;
}

/* Header ----------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(13, 15, 12, 0.92);
	border-bottom: 1px solid var(--line);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--header-h);
}

.site-logo,
.custom-logo-link {
	display: inline-flex;
	flex-shrink: 0;
}

.site-logo img,
.custom-logo {
	width: auto;
	height: 44px;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.nav-list {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-list a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 12px;
	color: var(--text);
	font-size: 0.97rem;
	font-weight: 500;
	text-decoration: none;
	border-radius: 8px;
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list a[aria-current="page"] {
	color: var(--lime);
}

.nav-toggle {
	display: none;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--panel);
	color: var(--text);
	cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
	display: block;
	width: 22px;
	height: 2px;
	margin: 0 auto;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle-bars {
	position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle-bars::before {
	top: -7px;
}

.nav-toggle-bars::after {
	top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 960px) {
	.nav-toggle {
		display: block;
	}

	.site-nav {
		position: fixed;
		inset: var(--header-h) 0 auto 0;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		max-height: calc(100vh - var(--header-h));
		overflow-y: auto;
		padding: 16px 20px 28px;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
	}

	.admin-bar .site-nav {
		top: calc(var(--header-h) + 46px);
	}

	.site-nav.is-open {
		transform: none;
		opacity: 1;
		visibility: visible;
	}

	.nav-list {
		flex-direction: column;
	}

	.nav-list a {
		width: 100%;
		min-height: 52px;
		padding: 0 4px;
		font-size: 1.1rem;
		border-bottom: 1px solid var(--line);
		border-radius: 0;
	}

	.header-cta {
		width: 100%;
	}

	body.nav-open {
		overflow: hidden;
	}
}

/* Page hero and breadcrumbs ---------------------------------------------- */

.page-hero {
	position: relative;
	padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 48px);
	margin-bottom: clamp(28px, 4vw, 48px);
	background:
		radial-gradient(60% 120% at 85% 0%, rgba(140, 224, 75, 0.16), transparent 60%),
		linear-gradient(180deg, var(--bg-2), var(--bg));
	border-bottom: 1px solid var(--line);
}

.page-title {
	max-width: 22ch;
	margin-bottom: 0.3em;
}

.page-intro,
.page-meta {
	max-width: 62ch;
	margin: 0;
	color: var(--muted);
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	font-size: 0.9rem;
	color: var(--muted);
}

.breadcrumbs li + li::before {
	content: "/";
	margin: 0 10px;
	color: var(--line);
}

.breadcrumbs a {
	color: var(--muted);
	text-decoration: none;
	display: inline-block;
	padding: 6px 0;
}

.breadcrumbs a:hover {
	color: var(--lime);
}

.breadcrumbs [aria-current] {
	display: inline-block;
	padding: 6px 0;
	color: var(--text);
}

/* Entry content ---------------------------------------------------------- */

.entry-content > * {
	max-width: 100%;
}

.entry-content h2 {
	margin-top: 1.8em;
}

.entry-content h3 {
	margin-top: 1.4em;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.3em;
	margin: 0 0 1.4em;
}

.entry-content li {
	margin-bottom: 0.45em;
}

.entry-content li::marker {
	color: var(--lime);
	font-weight: 700;
}

.entry-content strong {
	color: var(--text);
}

.entry-content figure {
	margin: 1.8em 0;
}

.entry-content figcaption,
.wp-element-caption {
	margin-top: 10px;
	color: var(--muted);
	font-size: 0.88rem;
	text-align: center;
}

.entry {
	padding-bottom: 48px;
}

.entry-cover {
	margin: 0 0 32px;
}

.entry-cover img {
	display: block;
	width: 100%;
	border-radius: var(--radius-lg);
	border: 1px solid var(--line);
}

/* Screenshots ------------------------------------------------------------ */

.y9-phone img {
	display: block;
	width: 100%;
	max-width: 320px;
	margin-inline: auto;
	border: 8px solid #20231f;
	border-radius: 34px;
	box-shadow: var(--shadow-glow);
}

.y9-phone--sm img {
	max-width: 280px;
}

.y9-phone--tilt img {
	transform: rotate(4deg);
}

.y9-shot img {
	display: block;
	width: 100%;
	margin-inline: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.8);
}

.y9-shot--sm img {
	max-width: 520px;
}

/* FAQ -------------------------------------------------------------------- */

.y9-faq {
	margin-top: 2.4em;
}

.wp-block-details {
	margin: 0 0 12px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--panel);
}

.wp-block-details summary {
	position: relative;
	padding: 16px 52px 16px 20px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

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

.wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--lime);
	font-size: 1.5rem;
	font-weight: 400;
}

.wp-block-details[open] summary::after {
	content: "−";
}

.wp-block-details > :not(summary) {
	margin: 0;
	padding: 0 20px 18px;
	color: var(--muted);
}

/* Homepage --------------------------------------------------------------- */

.home-content > .wp-block-group {
	width: min(100% - 40px, var(--wrap));
	margin-inline: auto;
}

.home-content > .alignfull {
	width: 100%;
}

.y9-section {
	padding: clamp(56px, 8vw, 110px) 0 0;
}

.y9-center {
	text-align: center;
}

.y9-center .wp-block-heading {
	max-width: 22ch;
	margin-inline: auto;
}

.has-text-align-center {
	text-align: center;
}

/* Hero */

.y9-hero {
	position: relative;
	padding: clamp(40px, 7vw, 90px) 0 clamp(56px, 7vw, 96px);
	background:
		radial-gradient(55% 80% at 78% 40%, rgba(140, 224, 75, 0.22), transparent 70%),
		radial-gradient(40% 60% at 10% 100%, rgba(90, 168, 42, 0.18), transparent 70%),
		linear-gradient(180deg, #11140f 0%, var(--bg) 100%);
	border-bottom: 1px solid var(--line);
	overflow: hidden;
}

.y9-hero .y9-slide {
	width: min(100% - 40px, var(--wrap));
	margin: 0 auto;
	align-items: center !important;
	gap: clamp(28px, 5vw, 64px);
}

.y9-hero h1,
.y9-hero .y9-hero-title {
	font-size: clamp(2.1rem, 4.8vw, 3.8rem);
	max-width: 15ch;
}

.y9-hero p:not(.y9-label):not(.y9-actions):not(.y9-more) {
	max-width: 54ch;
	color: var(--muted);
	font-size: 1.1rem;
}

.y9-hero .y9-phone img {
	max-width: 360px;
}

.y9-hero .y9-shot img {
	max-width: 440px;
	box-shadow: var(--shadow-glow);
}

.y9-hero.is-slider .y9-slide {
	display: none !important;
}

.y9-hero.is-slider .y9-slide.is-active {
	display: flex !important;
	animation: y9-fade 0.5s ease;
}

@keyframes y9-fade {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.y9-hero:not(.is-slider) .y9-slide + .y9-slide {
	margin-top: 64px;
}

.slider-dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 32px;
}

.slider-dots button {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.slider-dots button::before {
	content: "";
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--line);
	transition: width 0.2s, background 0.2s;
}

.slider-dots button[aria-current="true"]::before {
	width: 30px;
	border-radius: 6px;
	background: var(--lime);
}

/* Icon cards */

.y9-cards {
	margin-top: 40px;
	gap: 20px !important;
}

.y9-cards > .wp-block-column {
	padding: 34px 24px 26px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-align: center;
	transition: transform 0.2s, border-color 0.2s;
}

.y9-cards > .wp-block-column:hover {
	transform: translateY(-4px);
	border-color: rgba(140, 224, 75, 0.5);
}

.y9-cards p {
	margin: 0;
	color: var(--muted);
	font-size: 0.97rem;
}

.y9-ico {
	font-size: 1.25rem;
}

.y9-ico::before {
	content: "";
	display: block;
	width: 56px;
	height: 56px;
	margin: 0 auto 18px;
	background: var(--lime);
	-webkit-mask: var(--ico) center / contain no-repeat;
	mask: var(--ico) center / contain no-repeat;
}

.y9-ico-slot {
	--ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='2.4' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='32' height='28' rx='4'/%3E%3Cpath d='M5 18h32M5 30h32M15.7 18v12M26.3 18v12'/%3E%3Cpath d='M37 16h3a2 2 0 0 1 2 2v8M42 10v6'/%3E%3Ccircle cx='42' cy='8' r='2.5'/%3E%3Cpath d='M9 22l2 4 2-4M19.5 22l2 4 2-4M30 22l2 4 2-4'/%3E%3C/svg%3E");
}

.y9-ico-crash {
	--ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 42c14-2 24-10 32-26'/%3E%3Cpath d='M30 12l12-4-3 12-4-4-5-4z'/%3E%3Cpath d='M5 6v36h38'/%3E%3C/svg%3E");
}

.y9-ico-cards {
	--ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='2.4' stroke-linejoin='round'%3E%3Crect x='6' y='10' width='22' height='32' rx='3' transform='rotate(-12 17 26)'/%3E%3Crect x='20' y='6' width='22' height='32' rx='3'/%3E%3Cpath d='M31 15c-3 3-6 5-6 8a3 3 0 0 0 6 1 3 3 0 0 0 6-1c0-3-3-5-6-8zM31 24v6'/%3E%3C/svg%3E");
}

.y9-ico-fish {
	--ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 24c6-9 16-12 26-8l6-6v28l-6-6C22 36 12 33 6 24z'/%3E%3Ccircle cx='15' cy='22' r='1.6' fill='%23000'/%3E%3Cpath d='M22 18c2 4 2 8 0 12'/%3E%3C/svg%3E");
}

/* Split */

.y9-split {
	align-items: center !important;
	gap: clamp(32px, 6vw, 80px) !important;
}

.y9-split p:not(.y9-label):not(.y9-more) {
	color: var(--muted);
}

.y9-checks {
	list-style: none;
	padding: 0 !important;
}

.y9-checks li {
	position: relative;
	padding-left: 34px;
	margin-bottom: 14px;
	color: var(--muted);
}

.y9-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230d0f0c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Band */

.y9-band {
	margin-top: clamp(56px, 8vw, 110px);
	padding: clamp(48px, 7vw, 90px) 0;
	background:
		radial-gradient(50% 90% at 80% 50%, rgba(140, 224, 75, 0.25), transparent 70%),
		linear-gradient(110deg, #142010 0%, #0f150c 60%, #13200d 100%);
	border-block: 1px solid var(--line);
}

.y9-band .y9-split {
	width: min(100% - 40px, var(--wrap));
	margin-inline: auto;
}

/* Steps */

.y9-steps {
	counter-reset: step;
	margin-top: 36px;
	gap: 20px !important;
}

.y9-steps > .wp-block-column {
	position: relative;
	padding: 30px 26px 24px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.y9-steps > .wp-block-column::before {
	counter-increment: step;
	content: "0" counter(step) ".";
	display: block;
	margin-bottom: 12px;
	color: var(--lime);
	font-size: 2.4rem;
	font-weight: 800;
	line-height: 1;
}

.y9-steps p {
	margin: 0;
	color: var(--muted);
}

/* Games and panels */

.y9-games,
.y9-packs {
	margin-top: 36px;
	gap: 24px !important;
}

.y9-games > .wp-block-column,
.y9-packs > .wp-block-column {
	padding: 18px 18px 22px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	text-align: left;
}

.y9-games figure,
.y9-packs figure {
	margin: 0 0 18px;
}

.y9-games p,
.y9-packs p {
	margin: 0;
	color: var(--muted);
}

.y9-packs h3 {
	margin-top: 4px;
}

.y9-packs .y9-shot img {
	max-height: 360px;
	width: auto;
}

.y9-center .wp-block-image img {
	max-width: min(980px, 100%);
}

/* Responsible band */

.y9-rg {
	margin: clamp(56px, 8vw, 110px) auto 0;
	padding: clamp(28px, 4vw, 44px);
	background: var(--panel);
	border: 1px solid var(--line);
	border-left: 4px solid var(--gold);
	border-radius: var(--radius-lg);
}

.y9-rg h2 {
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.y9-rg p:not(.y9-more) {
	max-width: 70ch;
	color: var(--muted);
}

.y9-rg p:last-child {
	margin-bottom: 0;
}

/* Post grid -------------------------------------------------------------- */

.latest-posts {
	padding-bottom: clamp(56px, 8vw, 100px);
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 24px;
	margin: 32px 0 40px;
}

.post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	transition: transform 0.2s, border-color 0.2s;
}

.post-card:hover {
	transform: translateY(-4px);
	border-color: rgba(140, 224, 75, 0.45);
}

.post-card-media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.post-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px 22px 24px;
}

.post-card-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 10px;
	color: var(--muted);
	font-size: 0.88rem;
}

.post-card-meta .y9-label {
	margin: 0;
}

.post-card-title {
	margin: 0 0 10px;
	font-size: 1.25rem;
}

.post-card-title a {
	color: var(--text);
	text-decoration: none;
}

.post-card-title a:hover {
	color: var(--lime);
}

.post-card-excerpt {
	margin: 0;
	color: var(--muted);
	font-size: 0.97rem;
}

.related {
	padding: 24px 0 72px;
	border-top: 1px solid var(--line);
}

.related h2 {
	margin-top: 40px;
}

/* Pagination */

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 72px;
}

.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 48px;
	min-height: 48px;
	padding: 0 16px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--panel);
	color: var(--text);
	font-weight: 600;
	text-decoration: none;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
	background: var(--lime);
	border-color: var(--lime);
	color: var(--bg);
}

/* CTA box */

.y9-cta {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 20px;
	margin: 48px 0 0;
	padding: 24px;
	background:
		radial-gradient(80% 140% at 100% 0%, rgba(140, 224, 75, 0.18), transparent 60%),
		var(--panel);
	border: 1px solid rgba(140, 224, 75, 0.35);
	border-radius: var(--radius-lg);
}

.y9-cta img {
	border-radius: 16px;
}

.y9-cta p {
	margin: 0;
	color: var(--muted);
	font-size: 0.97rem;
}

.y9-cta .y9-cta-title,
.y9-cta h3 {
	margin: 0 0 4px;
	color: var(--text);
	font-size: 1.2rem;
	font-weight: 700;
}

@media (max-width: 640px) {
	.y9-cta {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.y9-cta img {
		margin-inline: auto;
	}
}

/* Guide and legal layouts ------------------------------------------------ */

.guide-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 48px;
	align-items: start;
}

.guide-aside {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	display: grid;
	gap: 18px;
}

.guide-panel {
	padding: 24px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}

.guide-panel:first-child {
	text-align: center;
	border-color: rgba(140, 224, 75, 0.35);
}

.guide-panel img {
	margin: 0 auto 12px;
	border-radius: 18px;
}

.guide-panel p {
	color: var(--muted);
	font-size: 0.95rem;
}

.guide-panel .guide-panel-title {
	margin: 0 0 6px;
	color: var(--text);
	font-weight: 700;
	font-size: 1.05rem;
}

.guide-panel .y9-btn {
	width: 100%;
}

.guide-links ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.guide-links a {
	display: flex;
	align-items: center;
	min-height: 44px;
	border-bottom: 1px solid var(--line);
	color: var(--text);
	text-decoration: none;
}

.guide-links li:last-child a {
	border-bottom: 0;
}

.guide-links a:hover {
	color: var(--lime);
}

.legal-layout {
	display: grid;
	grid-template-columns: 260px minmax(0, var(--narrow));
	gap: 56px;
	align-items: start;
	justify-content: center;
}

.toc {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	padding: 22px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: 0.95rem;
}

.toc-title {
	margin: 0 0 10px;
	font-weight: 700;
}

.toc ol {
	margin: 0;
	padding-left: 1.2em;
}

.toc li {
	margin: 0;
}

.toc li::marker {
	color: var(--lime);
}

.toc a {
	display: block;
	padding: 6px 0;
	color: var(--muted);
	text-decoration: none;
}

.toc a:hover {
	color: var(--lime);
}

@media (max-width: 960px) {
	.guide-layout,
	.legal-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.guide-aside,
	.toc {
		position: static;
	}

	.legal-layout .toc {
		order: -1;
	}
}

/* Search ----------------------------------------------------------------- */

.search-form {
	display: flex;
	gap: 10px;
	max-width: 560px;
	margin: 0 0 32px;
}

.search-form input {
	flex: 1;
	min-height: 48px;
	padding: 0 16px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--panel);
	color: var(--text);
	font: inherit;
}

.link-list {
	display: grid;
	gap: 8px;
	margin: 0 0 72px;
	padding: 0;
	list-style: none;
}

.link-list a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 0 18px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 10px;
	text-decoration: none;
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
	margin-top: clamp(56px, 8vw, 100px);
	padding-top: 64px;
	background: #090b08;
	border-top: 1px solid var(--line);
}

.home .site-footer {
	margin-top: 0;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: 40px;
	padding-bottom: 40px;
}

.footer-about p {
	max-width: 36ch;
	margin-top: 16px;
	color: var(--muted);
	font-size: 0.95rem;
}

.footer-title {
	margin-bottom: 14px;
	font-size: 1rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--lime);
}

.footer-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-list a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	color: var(--muted);
	text-decoration: none;
}

.footer-list a:hover {
	color: var(--lime);
}

.footer-notes {
	padding: 24px 0 32px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.88rem;
}

.affiliate-note {
	max-width: 90ch;
}

.footer-copy {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
}

.badge-18 {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	border: 2px solid var(--gold);
	border-radius: 50%;
	color: var(--gold);
	font-size: 0.8rem;
	font-weight: 800;
}

.to-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 50;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 12px;
	background: var(--lime);
	color: var(--bg);
	cursor: pointer;
	box-shadow: 0 10px 30px -10px rgba(140, 224, 75, 0.7);
}

.to-top[hidden] {
	display: none;
}

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

	.footer-about {
		grid-column: 1 / -1;
	}
}

@media (max-width: 520px) {
	.footer-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

/* Mobile tweaks ---------------------------------------------------------- */

@media (max-width: 781px) {
	.y9-hero {
		text-align: left;
	}

	.y9-phone img {
		max-width: 260px;
	}

	.y9-split > .wp-block-column:first-child .y9-phone,
	.y9-hero .wp-block-column:last-child {
		order: 2;
	}

	.y9-actions .y9-btn {
		flex: 1 1 100%;
	}

	.y9-cards > .wp-block-column {
		flex-basis: 100% !important;
	}
}

@media (min-width: 600px) and (max-width: 781px) {
	.y9-cards {
		flex-wrap: wrap !important;
	}

	.y9-cards > .wp-block-column {
		flex-basis: calc(50% - 10px) !important;
	}
}
