/*
Theme Name: Candy AI Shorts
Theme URI: https://candy-ai-shorts.com/
Description: Dark, lightweight custom theme for candy-ai-shorts.com, an independent FAQ and knowledge hub about Candy AI Shorts. Dark greys, fuchsia accent, Sora and Manrope type. No build step, no framework, no jQuery.
Author: Candy AI Shorts Guide Editorial Team
Version: 1.7.2
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cas
*/

/* ---------- tokens: candy.ai-style dark greys (no pure black), fuchsia accent ---------- */
:root {
  --page: #131313;
  --panel: #1a1a1a;
  --pill: #1c1c1c;
  --pill-hover: #242424;
  --stroke: #282828;
  --stroke-2: #343434;
  --text: #f5f5f5;
  --text-2: #b3b3b3;
  --hint: #8a8a8a;
  --control: #5a5a5a;
  --accent: #f0329b;
  --accent-bright: #ff5cb8;
  --pink-badge: #f0329b;
  --spicy: #ff9000;
  --check: #5fd39a;
  --warn-bg: #2a1418; --warn-stroke: #5a2a30; --warn-text: #ffb4b4;
  --ok-bg: #13261d; --ok-stroke: #2a5a45; --ok-text: #9fe0c0;
  --info-bg: #2a1522; --info-stroke: #5a2a45; --info-text: #ffb8dc;
  --cta-gradient: linear-gradient(90deg, #ff4fb0 0%, #e0189a 100%);
  --cta-gradient-bright: linear-gradient(90deg, #ff6cc0 0%, #f0329b 100%);
  --cta-text: #ffffff;
  --shadow-pink: 0 2px 20px 0 rgba(255, 60, 170, .32);
  --shadow-pink-2: 0 3px 24px 0 rgba(255, 60, 170, .45);
  --shadow-card: 0 6px 18px rgba(0, 0, 0, .45);
  --poster-veil: .12;
  --radius: .75rem;
  --radius-lg: 1rem;
  --btn-radius: 12px;
  --gutter: 16px;
  --sidebar-w: 232px;
  --head-h: 60px;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Manrope", ui-sans-serif, system-ui, sans-serif;
}
@media (min-width: 768px) { :root { --gutter: 28px; } }
@media (min-width: 1024px) { :root { --head-h: 72px; } }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 1rem); }
body { margin: 0; background: var(--page); color: var(--text); font: 400 15px/1.6 var(--font); overflow-wrap: break-word; color-scheme: dark; }
img, svg, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--text); text-wrap: balance; font-family: var(--font-display); }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.35rem, 2.3vw, 1.7rem); line-height: 1.15; font-weight: 700; letter-spacing: -.025em; margin-top: .25em; }
h3 { font-size: 1.05rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: .3em; }

/* ---------- layout ---------- */
.wrap { width: 100%; padding-inline: var(--gutter); }
.layout .wrap { padding-inline: 0; }
.prose { max-width: none; }
.prose p, .prose li { color: var(--text-2); font-size: 1.0625rem; line-height: 1.7; }
.prose li + li { margin-top: .5em; }
.prose li strong, .prose p strong { color: var(--text); }
.prose h2 { margin-top: 2.2em; scroll-margin-top: calc(var(--head-h) + 1rem); }
.prose h3 { margin-top: 1.6em; }
.section { padding-block: clamp(1.75rem, 4vw, 3rem); }
.section--tight { padding-block: clamp(1rem, 2.5vw, 1.5rem); }
.page { padding-top: clamp(1.25rem, 3vw, 2rem); }
main { container-type: inline-size; container-name: content; }

.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.sec-head h2 { display: flex; align-items: center; gap: .45rem; margin: 0; font-weight: 800; }
.sec-head h2 .accent { color: var(--accent); }
.sec-head__link { flex: none; font-size: .8125rem; font-weight: 500; color: var(--hint); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.sec-head__link:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(19, 19, 19, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--stroke); }
@media screen and (min-width: 783px) { body.admin-bar .site-head { top: 32px; } }
@media screen and (min-width: 601px) and (max-width: 782px) { body.admin-bar .site-head { top: 46px; } }
.site-head__inner { display: flex; align-items: center; gap: .75rem; min-height: var(--head-h); }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--text); letter-spacing: -.04em; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand span { color: var(--accent); }
.brand small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--hint); margin-top: .35rem; }
.site-head .nav-toggle { order: 1; }
.site-head .brand { order: 2; flex: 1 1 auto; text-align: center; font-size: 1.35rem; }
@media (min-width: 1024px) { .site-head .brand { flex: none; text-align: left; font-size: 1.45rem; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.5rem; border-radius: var(--btn-radius); font-weight: 700; font-size: .9rem; line-height: 1.1; letter-spacing: -.005em; border: 0; cursor: pointer; text-align: center; white-space: nowrap; transition: box-shadow .25s, transform .2s, color .15s, background .15s; }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--cta-gradient); color: var(--cta-text); box-shadow: var(--shadow-pink); }
.btn--primary:hover { color: var(--cta-text); box-shadow: var(--shadow-pink-2); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn--outline:hover { color: var(--cta-text); background: var(--accent); }
.btn--ghost { background: var(--pill); color: var(--text); box-shadow: inset 0 0 0 1px var(--stroke); }
.btn--ghost:hover { background: var(--pill-hover); color: var(--text); }
.btn--sm { padding: .55rem 1.1rem; font-size: .8125rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1rem 0; }

/* ---------- hero ---------- */
.hero-wrap { padding: 0 0 clamp(1rem, 2.5vw, 1.5rem); }
.hero { position: relative; overflow: hidden; margin-inline: calc(-1 * var(--gutter)); border-bottom: 1px solid var(--stroke); min-height: clamp(440px, 46cqw, 820px); min-height: clamp(440px, 46cqw, min(820px, calc(100svh - var(--head-h)))); display: flex; align-items: center; background: #131313; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 12%; }
.hero__overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(19,19,19,.96) 0%, rgba(19,19,19,.86) 28%, rgba(19,19,19,.5) 52%, rgba(19,19,19,.08) 78%, transparent 100%); }
.hero__content { position: relative; z-index: 2; padding: clamp(1.5rem, 4cqw, 3.5rem); max-width: 40rem; color: #fff; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.2cqw, 4rem); margin-bottom: .55em; font-weight: 800; letter-spacing: -.04em; }
.hero h1 .accent { color: var(--accent-bright); }
.hero__tag { font-size: clamp(1.1rem, 1.7cqw, 1.4rem); font-weight: 700; letter-spacing: -.02em; color: #fff; margin: -.2em 0 .8rem; max-width: 30rem; text-wrap: balance; }
.hero__lede { font-size: clamp(.95rem, 1.35cqw, 1.05rem); line-height: 1.6; font-weight: 500; color: rgba(255,255,255,.86); margin: 0 0 1.5rem; max-width: 40rem; }
.hero__cta { display: flex; gap: .7rem; flex-wrap: wrap; margin: 0 0 1.25rem; }
.hero .btn--primary { background: var(--cta-gradient-bright); color: var(--cta-text); box-shadow: 0 2px 24px 0 rgba(255, 60, 170, .55); }
.hero .btn--ghost { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.hero .btn--ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.hero__note { margin: 0; font-size: 11px; color: rgba(255,255,255,.6); }
@media (max-width: 639px) {
  .hero { min-height: 520px; align-items: flex-end; }
  .hero__bg { object-position: 60% 20%; }
  .hero__overlay { background: linear-gradient(180deg, rgba(19,19,19,.05) 0%, rgba(19,19,19,.6) 45%, rgba(19,19,19,.97) 100%); }
}

/* ---------- poster cards ---------- */
.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container content (min-width: 440px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container content (min-width: 680px) { .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
@container content (min-width: 900px) { .card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; } }
@supports not (container-type: inline-size) {
  @media (min-width: 640px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  @media (min-width: 1280px) { .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; } }
}
.pcard { display: block; }
.pcard__thumb { position: relative; display: block; width: 100%; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 14px; background: #131313; box-shadow: var(--shadow-card); transition: box-shadow .3s; }
.pcard__thumb:hover { box-shadow: 0 0 0 2px rgba(240,50,155,.75), var(--shadow-pink); text-decoration: none; }
.pcard__thumb img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s cubic-bezier(0,0,.2,1); }
.pcard__thumb:hover img { transform: scale(1.04); }
.pcard__thumb::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: rgba(0,0,0,var(--poster-veil)); }
.pcard__name { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: .3rem; padding: 4.5rem .85rem .85rem; background: linear-gradient(to top, rgba(0,0,0,.94) 0%, rgba(0,0,0,.7) 38%, rgba(0,0,0,.2) 72%, transparent 100%); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.pcard__title { margin: 0; font-size: 1rem; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.pcard__meta { font-size: 11px; font-weight: 500; color: rgba(255,255,255,.8); }
.pcard__badge { position: absolute; top: .7rem; left: .7rem; z-index: 2; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #ffffff; background: var(--accent); border-radius: 5px; padding: .2rem .5rem; }

/* ---------- series header ---------- */
.series-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin-bottom: 1.75rem; }
@container content (min-width: 640px) { .series-head { grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 2rem; align-items: start; } }
@container content (max-width: 639px) { .series-head { justify-items: center; text-align: center; } .series-head__poster { max-width: 320px; } .series-head__body { display: flex; flex-direction: column; align-items: center; } .specs { justify-content: center; } }
.series-head__poster { position: relative; width: 100%; max-width: 300px; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 14px; background: #131313; box-shadow: var(--shadow-card); }
.series-head__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.series-head__poster::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: rgba(0,0,0,var(--poster-veil)); }
.series-head__body h1 { margin-bottom: .4em; }
.series-head__lede { color: var(--text-2); font-size: 1.0625rem; line-height: 1.7; margin: 0 0 .5rem; }
.series-head__cta { margin: 1.1rem 0 .75rem; }
.specs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .55rem 1.5rem; margin: 1.25rem 0 0; align-items: center; }
.specs dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--hint); }
.specs dd { margin: 0; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.tag-new { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #ffffff; background: var(--accent); border-radius: 5px; padding: .18rem .45rem; vertical-align: middle; }

/* ---------- quick answers / link boxes ---------- */
.qa-grid, .cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; margin: 1rem 0 1.5rem; padding: 0; }
.qa, .cards .card { position: relative; display: flex; flex-direction: column; justify-content: center; gap: .25rem; border-radius: var(--radius-lg); padding: 1.3rem 1.35rem; background: var(--pill); box-shadow: inset 0 0 0 1px var(--stroke); transition: box-shadow .15s, transform .15s; margin: 0; }
.qa:hover, .cards .card:hover { box-shadow: inset 0 0 0 1.5px var(--accent); transform: translateY(-1px); }
.qa h3, .cards .card a { margin: 0 0 .3rem; font-size: 1rem; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.cards .card a::after { content: ""; position: absolute; inset: 0; }
.cards .card a:hover { text-decoration: none; }
.qa p, .cards .card p { margin: 0; font-size: .875rem; color: var(--text-2); line-height: 1.55; }
.qa .qa__link { font-size: .8125rem; font-weight: 600; margin-top: .5rem; }
.cards .card .tag, .qa .tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: .25rem; }

/* ---------- editorial components ---------- */
.lede { font-size: 1.15rem; line-height: 1.6; color: var(--text-2); font-weight: 500; max-width: 46rem; margin: 0 0 1.25rem; }
.answer { border-radius: var(--radius-lg); padding: 1.2rem 1.35rem; margin: 1.25rem 0 1.75rem; background: var(--pill); box-shadow: inset 0 0 0 1px var(--stroke); border-left: 4px solid var(--accent); }
.answer .label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin-bottom: .4rem; }
.answer p { margin: 0; font-size: 1.0625rem; line-height: 1.65; color: var(--text); font-weight: 500; }
.meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--hint); margin: 0 0 1.5rem; }
.kicker { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin-bottom: .6rem; }
.note { border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.4rem 0; box-shadow: inset 0 0 0 1px var(--stroke); background: var(--pill); }
.note p:last-child { margin-bottom: 0; }
.note-warn { background: var(--warn-bg); box-shadow: inset 0 0 0 1px var(--warn-stroke); color: var(--warn-text); }
.note-ok { background: var(--ok-bg); box-shadow: inset 0 0 0 1px var(--ok-stroke); color: var(--ok-text); }
.note-info { background: var(--info-bg); box-shadow: inset 0 0 0 1px var(--info-stroke); color: var(--info-text); }
figure.ph { margin: 1.8rem 0; }
figure.ph img { width: 100%; border-radius: 14px; box-shadow: var(--shadow-card); background: var(--pill); }
figure.ph img.poster { max-width: 300px; }
figure.ph img.article-image { aspect-ratio: 16 / 9; object-fit: cover; }
figure.ph figcaption { font-size: 11px; color: var(--hint); margin-top: .5rem; font-weight: 500; }
.stats { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 1.25rem 0 1.5rem; }
.stat { padding: .95rem 1rem 1rem; border-radius: var(--radius); background: var(--pill); box-shadow: inset 0 0 0 1px var(--stroke); display: flex; flex-direction: column; gap: .2rem; }
.stat b { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--text); line-height: 1.1; }
.stat span { font-size: .8125rem; color: var(--hint); }
.hub-hero { display: none; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; margin: .25rem 0 1.5rem; background: var(--pill); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--stroke), var(--shadow-card); -webkit-overflow-scrolling: touch; }
.tbl { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 560px; font-size: .9375rem; margin: 0; }
.tbl thead th { text-align: left; padding: .75rem 1.1rem; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--hint); background: var(--panel); border-bottom: 1px solid var(--stroke); }
.tbl thead th:first-child { border-top-left-radius: var(--radius); }
.tbl thead th:last-child { border-top-right-radius: var(--radius); }
.tbl tbody td { padding: .85rem 1.1rem; border-bottom: 1px solid var(--stroke); color: var(--text-2); vertical-align: top; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--pill-hover); }
.tbl td:first-child { font-weight: 600; color: var(--text); }
.tbl td:first-child a { color: var(--text); }
.tbl td:first-child a:hover { color: var(--accent); text-decoration: none; }

/* ---------- faq ---------- */
.faq { margin-top: 2.5rem; }
.faq h2 { margin-bottom: 1rem; }
.faq details { border-radius: var(--radius); background: var(--pill); box-shadow: inset 0 0 0 1px var(--stroke); padding: 0 1.1rem; margin-bottom: .55rem; }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 700; font-size: .95rem; letter-spacing: -.01em; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { font-size: .875rem; color: var(--text-2); margin: 0 0 .95rem; }
.cta-inline { margin: 1.5rem 0; }

/* ---------- footer ---------- */
.site-foot { margin-top: 2.5rem; padding-block: 2rem 2.5rem; border-top: 1px solid var(--stroke); background: var(--panel); font-size: .8125rem; color: var(--hint); }
.site-foot a { color: var(--hint); }
.site-foot a:hover { color: var(--accent); }
.site-foot__nav { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.disclosure { border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: 1.3rem; background: var(--pill); color: var(--text-2); font-size: .8125rem; box-shadow: inset 0 0 0 1px var(--stroke); }
.disclosure strong { color: var(--text); }

/* ---------- utils ---------- */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; border-radius: 8px; background: var(--accent); color: #ffffff; padding: .6rem 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.crumbs { font-size: 11px; color: var(--hint); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.crumbs a { color: var(--hint); }
.crumbs a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- sidebar / drawer ---------- */
.nav-toggle { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 10px; cursor: pointer; background: var(--pill); color: var(--text); box-shadow: inset 0 0 0 1px var(--stroke); }
.nav-toggle svg { width: 20px; height: 20px; }
.sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 60; width: min(300px, 86vw); padding: .75rem 1rem 2rem; background: var(--panel); box-shadow: 1px 0 0 var(--stroke), 0 24px 60px rgba(0,0,0,.7); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; transform: translateX(-100%); visibility: hidden; transition: transform .28s cubic-bezier(.2,.7,.2,1), visibility 0s linear .28s; }
.sidebar-open .sidebar { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2,.7,.2,1), visibility 0s; }
html.sidebar-open, html.sidebar-open body { overflow: hidden; }
@media (max-width: 1023px) { body.admin-bar .sidebar { z-index: 100001; } body.admin-bar .sidebar-scrim { z-index: 100000; } }
.sidebar__top { display: flex; align-items: center; justify-content: flex-end; min-height: 44px; margin-bottom: .5rem; }
.sidebar__close { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 10px; cursor: pointer; background: var(--pill); color: var(--text); box-shadow: inset 0 0 0 1px var(--stroke); }
.sidebar__close svg { width: 18px; height: 18px; }
.sidebar-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.7); touch-action: none; }
.sb-label { margin: 1.4rem 0 .5rem .25rem; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--hint); }
.sb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.sb-list li + li { margin-top: 0; }
.sb-item { display: flex; align-items: center; gap: .7rem; min-height: 48px; padding: .6rem .9rem; border-radius: 10px; font-size: .9rem; font-weight: 600; color: var(--text); background: var(--pill); box-shadow: inset 0 0 0 1px var(--stroke); transition: background .15s, box-shadow .15s; }
.sb-item:hover { background: var(--pill-hover); text-decoration: none; color: var(--text); }
.sb-item.is-active { box-shadow: inset 0 0 0 1.5px var(--accent); }
.sb-item__label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-item__badge { flex: none; font-size: 10px; font-weight: 700; color: #ffffff; background: var(--accent); border-radius: 999px; padding: .15rem .45rem; }
.sb-icon { width: 18px; height: 18px; flex: none; color: var(--text); }
.sb-list--minor { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--stroke); }
.sb-cta { margin: 1.4rem 0 0; }
.sb-legal { margin: 1.25rem 0 0 .25rem; font-size: 10px; color: var(--hint); display: flex; gap: .4rem; flex-wrap: wrap; }
.sb-legal a { color: var(--hint); }
@media (min-width: 1024px) {
  .nav-toggle, .sidebar__top { display: none; }
  .sidebar-scrim { display: none !important; }
  html.sidebar-open, html.sidebar-open body { overflow: visible; }
  .layout { position: relative; display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); gap: 12px; align-items: start; padding: 0 0 0 var(--gutter); }
  .layout::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) + var(--sidebar-w) + 6px); width: 1px; background: var(--stroke); pointer-events: none; }
  .layout > main { order: 2; min-width: 0; padding-inline: var(--gutter); }
  .layout > .sidebar { order: 1; inset: auto; position: sticky; top: calc(var(--head-h) + 1.5rem); width: auto; max-width: none; padding: 1.5rem 0 0; background: transparent; transform: none; transition: none; visibility: visible; box-shadow: none; z-index: 1; max-height: calc(100vh - var(--head-h) - 3rem); overflow-y: auto; scrollbar-width: thin; }
  body.admin-bar .layout > .sidebar { top: calc(32px + var(--head-h) + 1.5rem); max-height: calc(100vh - 32px - var(--head-h) - 3rem); }
}

/* ---------- age gate ---------- */
#age-gate { position: fixed; inset: 0; z-index: 9999; padding: 20px; background: rgba(19,19,19,.9); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; }
html.age-ok #age-gate { display: none !important; }
html:not(.age-ok) body { overflow: hidden; }
.age-gate__box { max-width: 460px; text-align: center; border-radius: var(--radius-lg); padding: 2rem 1.5rem; background: var(--panel); box-shadow: inset 0 0 0 1px var(--stroke), 0 20px 60px rgba(0,0,0,.6); }
.age-gate__title { margin: 0 0 .5em; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.age-gate__box p { color: var(--text-2); font-size: .875rem; }
.age-gate__box small { display: block; margin-top: 1rem; font-size: 11px; color: var(--hint); }
.age-gate__actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.2rem; }

/* ---------- cookie banner ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900; max-width: 520px; padding: 1rem 1.1rem; border-radius: var(--radius-lg); background: var(--panel); box-shadow: inset 0 0 0 1px var(--stroke), 0 16px 40px rgba(0,0,0,.6); font-size: .875rem; color: var(--text-2); }
@media (min-width: 1024px) { .cookie { left: auto; right: 24px; } }
html.consent-set .cookie, html:not(.age-ok) .cookie { display: none; }
.cookie p { margin: 0 0 .7rem; }
.cookie strong { color: var(--text); }
.cookie .btn-row { margin: 0; }

/* ---------- 404 ---------- */
.error-page h1 { margin-bottom: .5rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-head, .sidebar, .cookie, #age-gate, .nav-toggle { display: none !important; } .layout { display: block; } }
