/*
Theme Name: Jilibet Guide
Theme URI: https://jilibet-online.ph/
Description: Fast, SEO-first casino-guide theme for jilibet-online.ph — an independent Jilibet guide for the Philippines. Hero banner, quick-access cards, game tiles, sticky jump menu and CTAs, built-in schema and one-click setup (Appearance → Jilibet Setup). No page builder.
Version: 1.6.0
Requires at least: 6.4
Requires PHP: 7.4
Author: Jilibet Online PH
Text Domain: jilibet-guide
License: GPL-2.0-or-later
*/

/* =========================================================
   Tokens
   ========================================================= */
:root {
	--night: #0d0f1c;
	--night-2: #171a2e;
	--plum: #2a1240;
	--ink: #14161f;
	--text: #2b2f3a;
	--muted: #626979;
	--line: #e3e6ee;
	--soft: #f4f5f9;
	--bg: #ffffff;
	--red: #e0312b;
	--red-2: #b3161c;
	--gold: #f6c343;
	--gold-2: #e2a40c;
	--green: #15a362;
	--green-soft: #e7f7ef;
	--purple: #7b3fe4;
	--amber-soft: #fff6e0;
	--radius: 14px;
	--wrap: 1180px;
	--shadow: 0 10px 30px rgba(13, 15, 28, .10);
	--shadow-lg: 0 18px 50px rgba(13, 15, 28, .22);
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--red-2); text-underline-offset: 2px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; overflow-wrap: anywhere; letter-spacing: -.015em; }
h1 { font-size: clamp(32px, 5.4vw, 54px); font-weight: 850; }
h2 { font-size: clamp(24px, 3.2vw, 31px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 750; }
p, ul, ol { margin: 0 0 1.1em; }
li { margin-bottom: .35em; }
code { background: var(--soft); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.jg-icon { width: 1.1em; height: 1.1em; vertical-align: -0.17em; flex: none; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 12px; }

/* =========================================================
   Buttons
   ========================================================= */
.jg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: linear-gradient(180deg, var(--red), var(--red-2));
	color: #fff !important; text-decoration: none; font-weight: 800; font-size: 15px; line-height: 1.2;
	padding: 13px 22px; border-radius: 12px; white-space: nowrap; border: 0;
	box-shadow: 0 8px 20px rgba(224, 49, 43, .35), inset 0 1px 0 rgba(255,255,255,.25);
	transition: transform .15s ease, box-shadow .15s ease;
}
.jg-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(224, 49, 43, .45), inset 0 1px 0 rgba(255,255,255,.25); }
.jg-btn--lg { font-size: 17px; padding: 16px 26px; }
.jg-btn--ghost { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.jg-btn--ghost:hover { background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.jg-btn--gold { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #2b1d00 !important; box-shadow: 0 8px 20px rgba(226,164,12,.35); }
.jg-btn--block { display: flex; width: 100%; }

/* =========================================================
   Top bar + header
   ========================================================= */
.topbar { background: #07080f; color: #b9bdca; font-size: 13px; line-height: 1.4; text-align: center; padding: 6px 16px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(13,15,28,.97); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid rgba(255,255,255,.08); }
.header-inner { display: flex; align-items: center; min-height: 68px; gap: 12px; }
.site-logo { font-weight: 900; font-size: 21px; color: #fff; text-decoration: none; letter-spacing: -.02em; white-space: nowrap; margin-right: auto; }
.site-logo span { color: var(--gold); }
.custom-logo-link { display: block; line-height: 0; margin-right: auto; }
.custom-logo { max-height: 42px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: 9px 12px; border-radius: 10px; color: #e7e9f1; text-decoration: none; font-size: 15px; font-weight: 700; }
.site-nav a:hover, .site-nav .current-menu-item > a { background: rgba(255,255,255,.08); color: var(--gold); }
.header-cta { padding: 11px 18px; font-size: 14px; border-radius: 10px; box-shadow: 0 6px 16px rgba(224,49,43,.35); }

/* Hamburger */
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; flex: none; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; cursor: pointer; padding: 0; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { position: absolute; left: 50%; width: 20px; height: 2px; margin-left: -10px; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle__bars { top: 50%; margin-top: -1px; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1040px) {
	.site-nav a { padding: 9px 9px; font-size: 14px; }
}
@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.header-inner { min-height: 60px; gap: 8px; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--night); border-bottom: 1px solid rgba(255,255,255,.1); padding: 8px 16px 18px; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; gap: 0; }
	.site-nav li + li { border-top: 1px solid rgba(255,255,255,.06); }
	.site-nav a { padding: 15px 8px; font-size: 17px; border-radius: 0; }
	.header-cta { padding: 10px 14px; font-size: 14px; }
}
@media (max-width: 600px) {
	.topbar { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; padding: 5px 12px; }
}
@media (max-width: 400px) {
	.site-logo { font-size: 18px; }
	.header-cta { padding: 10px 11px; font-size: 13px; }
	.nav-toggle { width: 42px; height: 42px; }
}
@media (max-width: 340px) {
	.header-cta { display: none; }
}

/* =========================================================
   Homepage hero
   ========================================================= */
.hero {
	position: relative; overflow: hidden; color: #e9ebf3;
	background:
		radial-gradient(800px 420px at 85% 30%, rgba(224,49,43,.35), transparent 60%),
		radial-gradient(700px 400px at 10% 110%, rgba(123,63,228,.35), transparent 60%),
		linear-gradient(160deg, var(--night) 0%, var(--plum) 100%);
	padding: 54px 0 110px;
}
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(246,195,67,.12); color: var(--gold); border: 1px solid rgba(246,195,67,.35); padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.hero h1 { color: #fff; margin-bottom: 14px; }
.hero h1 span { background: linear-gradient(90deg, var(--gold), #ffdf8a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: 19px; color: #c9cdda; max-width: 560px; margin-bottom: 26px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: #b9bdca; }
.hero__trust li { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.hero__trust .jg-icon { color: var(--green); }
.badge-21 { background: var(--red); color: #fff; font-weight: 800; font-size: 12px; border-radius: 999px; padding: 2px 7px; }
.hero__art { text-align: center; }
.hero__img { width: 100%; max-width: 500px; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
@media (max-width: 900px) {
	.hero { padding: 36px 0 90px; }
	.hero__grid { grid-template-columns: 1fr; }
	.hero__art { order: 2; margin-top: -8px; }
	.hero__img { max-width: 230px; }
	.hero__lead { font-size: 17px; }
	.hero__buttons .jg-btn { flex: 1 1 100%; }
}

/* Quick-access cards (overlap the hero) */
.quick { position: relative; z-index: 2; margin-top: -64px; margin-bottom: 40px; }
.quick__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick__grid li { margin: 0; }
.quick__card { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; background: #fff; border-radius: var(--radius); padding: 20px 20px 18px; text-decoration: none; box-shadow: var(--shadow-lg); border: 1px solid var(--line); transition: transform .15s ease, border-color .15s ease; }
.quick__card:hover { transform: translateY(-3px); border-color: var(--red); }
.quick__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; margin-bottom: 6px; }
.quick__icon .jg-icon { width: 24px; height: 24px; }
.quick__card--red .quick__icon { background: linear-gradient(135deg, #ff5a4e, var(--red-2)); }
.quick__card--gold .quick__icon { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #2b1d00; }
.quick__card--purple .quick__icon { background: linear-gradient(135deg, #a375ff, var(--purple)); }
.quick__card--green .quick__icon { background: linear-gradient(135deg, #35d68a, #11804c); }
.quick__title { font-weight: 850; font-size: 18px; color: var(--ink); }
.quick__text { font-size: 14px; color: var(--muted); line-height: 1.45; }
.quick__go { position: absolute; top: 20px; right: 18px; color: var(--red); }
@media (max-width: 900px) { .quick__grid { grid-template-columns: 1fr 1fr; gap: 12px; } .quick__card { padding: 16px; } .quick__title { font-size: 16px; } .quick__go { display: none; } }

/* =========================================================
   Inner page banner
   ========================================================= */
.page-banner {
	color: #d7dae4; padding: 34px 0 34px;
	background: radial-gradient(600px 300px at 90% 0%, rgba(224,49,43,.32), transparent 60%), linear-gradient(160deg, var(--night), var(--plum));
	margin-bottom: 36px;
}
.page-banner h1 { color: #fff; font-size: clamp(28px, 4.4vw, 44px); max-width: 860px; }
.page-banner__buttons { margin-top: 18px; }
.breadcrumbs { font-size: 14px; color: #a3a8b8; margin-bottom: 12px; }
.breadcrumbs a { color: #c9cdda; text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { margin: 0 6px; }
.byline { font-size: 14px; color: #b9bdca; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.byline a { color: #e7e9f1; }
.byline .checked { color: #5be3a0; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }

/* =========================================================
   Content + sidebar layout
   ========================================================= */
.site-main { padding-bottom: 64px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.main-col { min-width: 0; max-width: 800px; }
@media (max-width: 1000px) { .layout { grid-template-columns: 1fr; } .main-col { max-width: none; } }

.sidebar { position: sticky; top: 92px; display: grid; gap: 16px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); font-size: 15px; }
.side-card p { margin: 0 0 8px; }
.side-card__title { font-weight: 850; color: var(--ink); display: flex; gap: 8px; align-items: center; margin-bottom: 10px !important; }
.toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; max-height: 46vh; overflow: auto; }
.toc li { counter-increment: toc; margin: 0; }
.toc a { display: flex; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; line-height: 1.35; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--red); font-weight: 800; font-size: 12px; min-width: 20px; padding-top: 1px; }
.toc a:hover, .toc a.is-active { background: var(--soft); color: var(--red-2); }
.side-cta { background: linear-gradient(160deg, var(--night), var(--plum)); border: 0; color: #c9cdda; }
.side-cta__title { color: var(--gold); font-weight: 850; font-size: 18px; }
.side-cta__text { font-size: 14px; margin-bottom: 14px !important; }
.side-warn { background: var(--amber-soft); border-color: #f2dfae; }
.side-warn .jg-icon { color: var(--gold-2); }
@media (max-width: 1000px) { .sidebar { position: static; } .side-warn { display: none; } }

/* =========================================================
   Content blocks
   ========================================================= */
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 1.9em; padding-top: .2em; position: relative; scroll-margin-top: 92px; }
.entry-content h2::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 5px; background: linear-gradient(90deg, var(--red), var(--gold)); margin-bottom: 14px; }
.entry-content h3 { margin-top: 1.5em; }
.entry-content > p:first-child { font-size: 19px; color: var(--ink); }

/* Lists with check marks */
.entry-content ul.wp-block-list { list-style: none; padding-left: 0; }
.entry-content ul.wp-block-list > li { position: relative; padding-left: 32px; }
.entry-content ul.wp-block-list > li::before { content: ""; position: absolute; left: 0; top: .28em; width: 21px; height: 21px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315a362' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.entry-content ol.wp-block-list { list-style: none; counter-reset: step; padding-left: 0; }
.entry-content ol.wp-block-list > li { counter-increment: step; position: relative; padding: 2px 0 6px 46px; min-height: 34px; }
.entry-content ol.wp-block-list > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff; font-weight: 800; font-size: 15px; display: grid; place-items: center; }

/* Tables */
.wp-block-table { margin: 0 0 1.6em; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); box-shadow: var(--shadow); }
.entry-content .wp-block-table table { width: 100%; border: 1px solid var(--line); border-collapse: separate; border-spacing: 0; border-radius: var(--radius); overflow: hidden; font-size: 15px; line-height: 1.5; }
.entry-content .wp-block-table thead { border-bottom: 0; }
.entry-content .wp-block-table th, .entry-content .wp-block-table td { border: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.entry-content .wp-block-table thead th { background: var(--night-2); color: #fff; font-weight: 800; font-size: 14px; white-space: nowrap; }
.entry-content .wp-block-table tbody tr:nth-child(even) td { background: #fafbfd; }
.entry-content .wp-block-table tbody tr:last-child td { border-bottom: 0; }
.entry-content .wp-block-table td:first-child { font-weight: 750; color: var(--ink); }
@media (max-width: 640px) { .entry-content .wp-block-table table { font-size: 14px; min-width: 540px; } }

/* FAQ (core Details block) */
.wp-block-details { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; background: #fff; box-shadow: 0 2px 8px rgba(13,15,28,.04); }
.wp-block-details summary { cursor: pointer; padding: 15px 50px 15px 18px; font-weight: 800; color: var(--ink); list-style: none; position: relative; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 8px; background: var(--soft); color: var(--red); display: grid; place-items: center; font-size: 20px; font-weight: 600; }
.wp-block-details[open] { border-color: #f1c8c6; }
.wp-block-details[open] summary::after { content: "−"; background: var(--red); color: #fff; }
.wp-block-details > *:not(summary) { padding: 0 18px; }
.wp-block-details > p:last-child { padding-bottom: 16px; margin-bottom: 0; }

/* =========================================================
   Shortcode components
   ========================================================= */
.jg-notice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #d9dcf0; background: linear-gradient(180deg, #f6f7ff, #fff); padding: 14px 18px; border-radius: var(--radius); font-size: 15px; margin: 0 0 1.6em; }
.jg-notice::before { content: "i"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--night-2); color: #fff; font-weight: 800; font-style: italic; font-family: Georgia, serif; display: grid; place-items: center; font-size: 14px; }

.jg-cta { position: relative; overflow: hidden; border-radius: 18px; padding: 24px 26px; margin: 1.6em 0 2em; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; color: #c9cdda; background: radial-gradient(400px 200px at 100% 0%, rgba(224,49,43,.4), transparent 60%), linear-gradient(150deg, var(--night), var(--plum)); box-shadow: var(--shadow-lg); }
.jg-cta::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; border: 18px dashed rgba(246,195,67,.18); }
.jg-cta__text { position: relative; z-index: 1; flex: 1 1 320px; }
.jg-cta__title { font-weight: 900; color: var(--gold); margin: 0 0 4px !important; font-size: 21px; }
.jg-cta__body { margin: 0 !important; font-size: 15px; }
.jg-cta .jg-btn { position: relative; z-index: 1; }
.jg-cta.is-partner .jg-cta__title::after { content: "Licensed partner"; margin-left: 10px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--green); border-radius: 999px; padding: 3px 8px; vertical-align: middle; }

.jg-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.jg-status--verified { background: var(--green-soft); color: #0e7a47; }
.jg-status--unverified { background: #fff1d6; color: #8a5a00; }
.jg-status--caution { background: #fde3e2; color: var(--red-2); }
.jg-status--inactive { background: #eceef3; color: var(--muted); }

/* Game tiles */
.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0 0 1.8em; }
.game { display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .15s ease; }
.game:hover { transform: translateY(-3px); }
.game img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.game__body { display: block; padding: 14px 16px 16px; }
.game__title { display: block; font-weight: 850; font-size: 17px; color: var(--ink); }
.game__text { display: block; font-size: 14px; color: var(--muted); }
@media (min-width: 1001px) { .games { grid-template-columns: repeat(4, 1fr); } .game__title { font-size: 15px; } .game__text { font-size: 13px; } }

/* Three steps */
.steps { list-style: none; padding: 0; margin: 0 0 1.8em; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: none; }
.steps .step { margin: 0; background: var(--soft); border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); }
.step__n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #2b1d00; font-weight: 900; margin-bottom: 10px; }
.step__title { display: block; font-weight: 850; color: var(--ink); margin-bottom: 4px; }
.step__text { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }

/* =========================================================
   Mobile sticky CTA bar
   ========================================================= */
.mobile-bar { display: none; }
@media (max-width: 900px) {
	.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 10px; align-items: center; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(13,15,28,.97); border-top: 1px solid rgba(255,255,255,.1); }
	.mobile-bar__link { flex: 1; display: inline-flex; gap: 6px; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-weight: 800; font-size: 15px; padding: 12px; border-radius: 12px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
	.mobile-bar .jg-btn { flex: 1.3; padding: 13px 10px; font-size: 15px; }
	body { padding-bottom: 72px; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--night); color: #a9aec0; font-size: 14px; padding: 44px 0 30px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.footer-brand { font-weight: 900; color: #fff; font-size: 20px; margin-bottom: 8px; }
.footer-brand span { color: var(--gold); }
.footer-menu ul { list-style: none; margin: 0; padding: 0; columns: 2; }
.footer-menu li { margin-bottom: 9px; }
.footer-menu a { text-decoration: none; }
.footer-menu a:hover { color: var(--gold); }
.footer-age { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; border: 1px solid #2c3146; border-radius: 999px; padding: 4px 14px 4px 4px; color: #fff; }
.footer-age b { background: var(--red); border-radius: 999px; padding: 3px 9px; font-size: 13px; }
.footer-bottom { border-top: 1px solid #22263a; margin-top: 28px; padding-top: 16px; font-size: 13px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================
   404 / lists
   ========================================================= */
.error-box { text-align: center; padding: 60px 0; }
.error-box .jg-btn { margin: 6px; }
.read { max-width: 800px; margin: 0 auto; }
.post-list { list-style: none; padding: 0; }
.post-list li { border-bottom: 1px solid var(--line); padding: 16px 0; }
.post-list a { font-weight: 800; font-size: 19px; text-decoration: none; color: var(--ink); }

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

/* =========================================================
   Phone: jump menu at the top instead of the sidebar
   ========================================================= */
.mobile-toc { display: none; }
@media (max-width: 1000px) {
	.mobile-toc { display: block; margin: 0 0 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
	.mobile-toc summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 8px; }
	.mobile-toc summary::-webkit-details-marker { display: none; }
	.mobile-toc summary::after { content: "+"; margin-left: 8px; color: var(--red); font-size: 20px; font-weight: 600; line-height: 1; }
	.mobile-toc[open] summary::after { content: "−"; }
	.mobile-toc__count { margin-left: auto; font-weight: 600; font-size: 13px; color: var(--muted); }
	.mobile-toc ol { margin: 0; padding: 0 16px 12px; list-style: none; counter-reset: mtoc; }
	.mobile-toc li { counter-increment: mtoc; margin: 0; border-top: 1px solid var(--line); }
	.mobile-toc a { display: flex; gap: 10px; padding: 11px 0; color: var(--text); text-decoration: none; font-size: 15px; }
	.mobile-toc a::before { content: counter(mtoc, decimal-leading-zero); color: var(--red); font-weight: 800; font-size: 12px; min-width: 20px; padding-top: 2px; }
	.sidebar .toc { display: none; }
	.page-banner { padding: 24px 0 26px; margin-bottom: 24px; }
	.page-banner h1 { font-size: clamp(26px, 7vw, 34px); }
	.page-banner__buttons .jg-btn { width: 100%; }
	.jg-cta { padding: 20px; }
	.jg-cta .jg-btn { width: 100%; }
	.entry-content > p:first-child { font-size: 18px; }
}
/* Tables on phones: scroll sideways, with a hint */
@media (max-width: 640px) {
	.wp-block-table { position: relative; }
	.wp-block-table::before { content: "Swipe to see more →"; display: block; font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 0 6px 2px; }
	.wp-block-table { box-shadow: none; }
}

/* Uploaded logo: smaller on phones so the header button still fits */
@media (max-width: 600px) { .custom-logo { max-height: 32px; } }
@media (max-width: 400px) { .custom-logo { max-height: 26px; } }
