/*
Theme Name: Candy Shorts
Description: Lightweight custom theme for aicandyshorts.com. No build step, no framework.
Version: 0.4.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: candyshorts
*/

/* ---------- tokens ----------
   candy.ai's design system, inverted to white. Their geometry (232px sidebar,
   pill nav, .75rem/1rem radii, chip filters, poster cards with the name overlaid) is
   kept as-is; only the colours flip. Where their pink fails AA on white it is darkened,
   and their exact pink is used where it sits on dark (hero overlay, poster badges).

     #111114 on #f2f2f5  16.9   text
     #4b4b52 on #f2f2f5   7.7   secondary
     #6b6b70 on #f2f2f5   4.7   hint, section labels, 11px meta
     #d0175a on #f2f2f5   4.8   links
     #fff on #dd2a62      4.6   CTA gradient, lightest end
     #ffffff on #f2f2f5   1.12  box on page (theirs: #1a1a1a on #131313 = 1.07)
     #d9d9e0 on #ffffff   1.40  box border (theirs: #282828 on #1a1a1a = 1.18)
--------------------------------- */
:root {
  --page:        #f2f2f5;   /* light grey page: white boxes read as boxes on it */
  --panel:       #ffffff;   /* header, drawer, age gate */
  --pill:        #ffffff;
  --pill-hover:  #f6f6f9;
  --pill-active: #ffffff;
  --stroke:      #d9d9e0;   /* 1.40 on white: visible, where theirs is 1.18 */
  --stroke-2:    #c9c9d2;

  --text:        #111114;
  --text-2:      #4b4b52;
  --hint:        #6b6b70;
  --control:     #a0a0a6;

  --accent:        #d0175a;   /* 4.76 on the grey page */
  --accent-bright: #ff5c8d;   /* on dark: hero, overlays */
  --pink-badge:    #f53b70;   /* theirs, sits on imagery */
  --spicy:         #ff9000;   /* theirs, sits on imagery */
  --gold:          #8a6100;
  --check:         #1f7a4d;

  --cta-gradient:        linear-gradient(90deg, #dd2a62 0%, #b81f52 100%);
  --cta-gradient-bright: linear-gradient(90deg, #ff7b91 0%, #e65073 100%);
  --shadow-pink:   0 2px 20px 0 rgba(255, 10, 67, .30);
  --shadow-pink-2: 0 3px 24px 0 rgba(255, 38, 90, .40);
  --shadow-card:   0 4px 7px rgba(0, 0, 0, .08);

  --poster-veil: .15;       /* flat black over every poster: some artwork is too light */
  --radius:    .75rem;
  --radius-lg: 1rem;
  --gutter:    16px;
  --sidebar-w: 232px;
  --head-h:    60px;

  --font: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, 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; }
body {
  margin: 0;
  background: var(--page);            /* flat. no glow, no gradient. */
  color: var(--text);
  font: 400 15px/1.6 var(--font);
  overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }   /* a display rule on a class must never un-hide an element */
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; }
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; }
/* Full column width, as on the reference. Body copy at their 18px/30px so the long
   measure stays readable. */
.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 { color: var(--text); }
.prose h2 { margin-top: 2.2em; }
.section { padding-block: clamp(1.75rem, 4vw, 3rem); }
.section--tight { padding-block: clamp(1rem, 2.5vw, 1.5rem); }

main { container-type: inline-size; container-name: content; }

/* "Explore Featured Characters ›" — first word pink, chevron after */
.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 h2 svg { width: 1.1rem; height: 1.1rem; color: var(--text); flex: none; }
.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: var(--panel);
  border-bottom: 1px solid var(--stroke);
}
/* WP's admin bar is fixed and 32px from 783px up, fixed and 46px from 601 to 782, and
   position:absolute (scrolls away) at 600 and below — so no offset there. */
@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-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); }

/* Mobile: hamburger left, logo centred. Desktop: logo alone, left. No CTA in the bar. */
.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: 999px;
  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, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--cta-gradient); color: #fff; box-shadow: var(--shadow-pink); }
.btn--primary:hover { color: #fff; box-shadow: var(--shadow-pink-2); transform: translateY(-1px); }
/* "Premium 70% OFF" — outlined pink pill */
.btn--outline {
  background: transparent; color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.btn--outline:hover { color: #fff; 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%; }

/* ---------- hero: image full-bleed, text on the left over a left-to-right dark overlay ---------- */
/* Full-bleed: negative margins swallow the column gutters so the image runs from just
   past the sidebar to the viewport edge, flush under the header — as on candy.ai. */
.hero-wrap { padding: 0 0 clamp(1rem, 2.5vw, 1.5rem); }
.hero {
  position: relative; overflow: hidden;
  margin-inline: calc(-1 * var(--gutter));
  border-radius: 0;
  /* Close to the image's natural height (2.06:1 → 48.6cqw) so the crop stays small,
     capped so it never overruns the first screen. min beats max in CSS, so the viewport
     cap lives inside the clamp; the plain line is the fallback for browsers without svh. */
  min-height: clamp(440px, 46cqw, 820px);
  min-height: clamp(440px, 46cqw, min(820px, calc(100svh - var(--head-h))));
  display: flex; align-items: center;
  background: #0d0a0f;
  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(13, 10, 15, .94) 0%,
    rgba(13, 10, 15, .82) 28%,
    rgba(13, 10, 15, .45) 52%,
    rgba(13, 10, 15, .05) 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__lede strong { color: var(--accent-bright); font-weight: 600; }
.hero__cta { display: flex; gap: .7rem; flex-wrap: wrap; margin: 0 0 1.25rem; }
.hero .btn--primary { background: var(--cta-gradient-bright); box-shadow: 0 2px 20px 0 #ff0a43cc; }
.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(13,10,15,.05) 0%, rgba(13,10,15,.55) 45%, rgba(13,10,15,.95) 100%); }
}

/* ---------- series cards: poster with name overlaid, like theirs ---------- */
.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; } }
  @media (min-width: 1600px) { .card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
}

.card { display: block; }
.card__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;
}
.card__thumb:hover { box-shadow: 0 0 0 2px rgba(234, 72, 110, .7), var(--shadow-pink); text-decoration: none; }
.card__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);
}
.card__thumb:hover img { transform: scale(1.04); }
.card__thumb::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(0, 0, 0, var(--poster-veil));
}
.card__noposter { position: absolute; inset: 0; display: grid; place-items: center; color: var(--control); font-size: 11px; }

/* everything the card says sits over the bottom of the poster */
.card__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);
}
.card__title { margin: 0; font-size: 1rem; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.card__rating { display: flex; align-items: center; gap: .4rem; --star: 13px; }
.card__rating .stars { gap: 2px; }
.card__rating .star__base svg { fill: rgba(255, 255, 255, .35); }
.card__rating-text { font-size: 11px; color: rgba(255, 255, 255, .85); font-weight: 500; }
.card__rating-text strong { color: #fff; font-weight: 700; }
.card__name small { font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .75); }

/* ---------- single series header: poster left, details right ---------- */
.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; }
  .series-head__body h1 { text-align: center; }
  .specs { justify-content: center; }
  .vote__display, .vote__input { 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__cta { margin: 1.1rem 0 .75rem; }

/* ---------- quick answers ---------- */
.qa-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.qa {
  display: flex; flex-direction: column; justify-content: center;   /* content sits mid-box, whatever its length */
  border-radius: var(--radius-lg); padding: 1.3rem 1.35rem; background: var(--pill); box-shadow: inset 0 0 0 1px var(--stroke);
}
.qa a { margin-top: .1rem; }
.qa h3 { margin: 0 0 .4rem; font-size: 1rem; }
.qa p { margin: 0 0 .7rem; font-size: .875rem; color: var(--text-2); }
.qa a { font-size: .8125rem; font-weight: 600; }

/* ---------- filters: search pill + chips in one scrolling row ---------- */
.filters {
  display: flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch; padding-bottom: 2px;
}
.filters::-webkit-scrollbar { display: none; }
.filters__group { display: flex; gap: .5rem; flex: none; }
.filters__search {
  flex: none; display: flex; align-items: center; gap: .5rem;
  height: 44px; padding: 0 1rem; min-width: 190px;
  border-radius: 999px; background: var(--pill); box-shadow: inset 0 0 0 1px var(--stroke);
}
.filters__search svg { width: 16px; height: 16px; color: var(--hint); flex: none; }
.filters__search input {
  border: 0; background: transparent; outline: 0; width: 100%;
  font: 500 .875rem/1 var(--font); color: var(--text);
}
.filters__search input::placeholder { color: var(--hint); }
.chip {
  flex: none; scroll-snap-align: start; white-space: nowrap;
  height: 44px; padding: 0 1.15rem; border-radius: 999px;
  font-size: .9rem; font-weight: 500; color: var(--text);
  background: var(--pill); border: 0; box-shadow: inset 0 0 0 1px var(--stroke);
  cursor: pointer; transition: box-shadow .15s, background .15s;
}
.chip:hover { background: var(--pill-hover); }
/* active chip: pink ring, not a fill — as on their "All" */
.chip[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--accent); }

/* ---------- intensity scale: five cards, not a table ---------- */
.scale-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: .25rem 0 1.4rem; }
.scale {
  display: flex; flex-direction: column; gap: .3rem;
  padding: .95rem 1rem 1rem; border-radius: var(--radius);
  background: var(--pill); box-shadow: inset 0 0 0 1px var(--stroke);
  color: var(--text); text-decoration: none;
  transition: box-shadow .15s, transform .15s;
}
a.scale:hover { box-shadow: inset 0 0 0 1.5px var(--accent); transform: translateY(-1px); text-decoration: none; color: var(--text); }
.scale--empty { opacity: .5; }
.scale__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.scale__dots { display: inline-flex; gap: 4px; }
.scale__dots i { display: block; width: 9px; height: 9px; border-radius: 999px; background: var(--stroke-2); }
.scale__dots i.on { background: var(--accent); }
.scale__num { font-size: .75rem; font-weight: 800; color: var(--hint); font-variant-numeric: tabular-nums; }
.scale__label { font-weight: 700; font-size: .95rem; line-height: 1.2; letter-spacing: -.01em; }
.scale__count { font-size: .8125rem; color: var(--hint); }

/* ---------- pricing cards ---------- */
.plans { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: .5rem 0 .75rem; }
.plan { padding: 1rem 1.1rem 1.1rem; border-radius: var(--radius); background: var(--pill); box-shadow: inset 0 0 0 1px var(--stroke); display: flex; flex-direction: column; gap: .2rem; }
.plan--best { box-shadow: inset 0 0 0 1.5px var(--accent); }
.plan__head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.plan__name { font-weight: 600; }
.plan__off { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #7a4d00; background: #ffe9b8; border-radius: 6px; padding: .2rem .45rem; }
.plan__tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.plan__price { font-size: 2rem; font-weight: 800; line-height: 1.05; margin-top: .3rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan__price small { font-size: .875rem; font-weight: 500; color: var(--hint); }
.plan__was { font-size: .875rem; color: var(--hint); }
.plan__note { font-size: .8125rem; color: var(--text-2); margin-top: .3rem; }
.plan__foot { font-size: .8125rem !important; color: var(--hint) !important; }
.cta-inline { margin: 1.5rem 0; }

/* ---------- tables ----------
   White card on the grey page, like every other box. The short columns shrink to their
   content so the first column takes the room: four islands spread across 1600px was
   the problem in the first version.
-------------------------------- */
.table-scroll {
  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;
}
table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 560px; font-size: .9375rem; }
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(--page); border-bottom: 1px solid var(--stroke);
}
thead th:first-child { border-top-left-radius: var(--radius); }
thead th:last-child  { border-top-right-radius: var(--radius); }
tbody td { padding: .85rem 1.1rem; border-bottom: 1px solid var(--stroke); color: var(--text-2); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafafb; }
/* everything but the first column hugs its content */
th:not(:first-child), td:not(:first-child) { width: 1%; white-space: nowrap; }
td:first-child { font-weight: 600; color: var(--text); }
td:first-child a { color: var(--text); }
td:first-child a:hover { color: var(--accent); text-decoration: none; }
td strong { color: var(--accent); }
td .num, .intensity-table td:nth-child(3) { font-variant-numeric: tabular-nums; }

.intensity-table td:nth-child(2) { display: table-cell; }
.intensity-table .scale__dots { vertical-align: middle; margin-right: .5rem; }
.intensity-table__label { font-size: .875rem; color: var(--text-2); vertical-align: middle; }
.tag-new {
  display: inline-block; margin-left: .5rem; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--pink-badge);
  border-radius: 5px; padding: .18rem .45rem; vertical-align: middle;
}

/* ---------- vote: average row (read-only) + optional input row ---------- */
.vote { display: flex; flex-direction: column; gap: .6rem; --star: 24px; }
.vote__display, .vote__input { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.stars { display: inline-flex; gap: 3px; }
.star {
  position: relative; width: var(--star); height: var(--star); padding: 0; border: 0;
  background: none; line-height: 0; display: inline-block;
}
.star svg { width: var(--star); height: var(--star); display: block; }
.star__base svg { fill: #dcdce3; }
.star__fill { position: absolute; inset: 0; width: var(--fill, 0%); overflow: hidden; pointer-events: none; }
.star__fill svg { fill: #f5a500; }
/* input row only: pointer, hover preview up to the hovered star */
.stars--input .star { cursor: pointer; }
.stars--input .star[disabled] { cursor: default; }
.stars--input:hover .star .star__fill { width: 0; }
.stars--input .star:hover .star__fill, .stars--input .star:has(~ .star:hover) .star__fill { width: 100%; }
.vote__input.is-locked .stars--input:hover .star .star__fill { width: var(--fill, 0%); }
.vote__score { font-size: .875rem; color: var(--hint); }
.vote__score strong { color: var(--text); font-weight: 700; }
.vote__prompt { font-size: .8125rem; font-weight: 600; color: var(--text-2); }
.vote__done { font-size: .8125rem; font-weight: 600; color: var(--check); }
.vote__done:empty { display: none; }

/* ---------- series facts ---------- */
.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; }
.specs dd a { color: var(--text); text-decoration: underline; text-decoration-color: var(--stroke-2); text-underline-offset: 3px; }
.specs dd a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ---------- faq / episodes ---------- */
.faq details, .episode {
  border-radius: var(--radius); background: var(--pill);
  box-shadow: inset 0 0 0 1px var(--stroke);
}
.faq details { 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; }
.episode { padding: 1rem 1.2rem; margin-bottom: .6rem; scroll-margin-top: calc(var(--head-h) + 1rem); }
.episode h3 { margin: 0 0 .3rem; font-size: 1rem; }
.episode p { margin: 0; font-size: .875rem; color: var(--text-2); }
.episode__meta { font-size: 11px !important; font-weight: 600; color: var(--hint) !important; margin-bottom: .3rem !important; }

/* ---------- age gate ---------- */
#age-gate { position: fixed; inset: 0; z-index: 9999; padding: 20px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; }
#age-gate[hidden] { display: none !important; }
.age-gate__box { max-width: 440px; 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, .12); }
.age-gate__box h2 { margin-top: 0; font-size: 1.35rem; }
.age-gate__box p { color: var(--text-2); font-size: .875rem; }
.age-gate__actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.2rem; }

/* ---------- footer ---------- */
.site-foot { margin-top: 2.5rem; padding-block: 2rem 2.5rem; border-top: 1px solid var(--stroke); 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: #fff; 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; }

/* ---------- layout with sidebar ---------- */
.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, .18);
  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; }
/* Logged in: WP's admin bar is z-index 99999 and, under 600px, position:absolute. Instead
   of offsetting the drawer under it (which leaves a gap once the bar scrolls away), the
   drawer and its scrim go over it — so the drawer starts at the true top for everyone. */
@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(17, 17, 20, .6); touch-action: none; }
.sidebar-scrim[hidden] { display: none; }

/* pills: 48px, 10px radius, 1px border, icon + label — theirs */
.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-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 { background: var(--pill-active); box-shadow: inset 0 0 0 1.5px var(--accent); font-weight: 600; }
.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: #fff; background: var(--pink-badge); 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); }
.sb-legal a:hover { color: var(--accent); }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .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);              /* left gutter for the sidebar; none on the right */
  }
  /* full-height divider between sidebar and content, in the middle of the grid gap */
  .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 { padding-top: 1.5rem; }
  .layout > .sidebar {
    order: 1;
    inset: auto;                                  /* reset BEFORE top */
    position: sticky; top: calc(var(--head-h) + 1.5rem);
    width: auto; max-width: none; padding: 1.5rem 0 0;
    background: transparent; border-right: 0;
    transform: none; transition: none; visibility: visible; box-shadow: none;
    z-index: 1;                                   /* under the header (40), always */
    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); }
}
