/* ============================================================
   site.css — 2026 refresh layer for guitar-chords-lessons.com
   Loaded AFTER style.css. Provides:
     1. Refined tokens
     2. Header (sticky, mobile hamburger)
     3. Buttons
     4. Footer
     5. Homepage sections
     6. Two-column page shell (content + sidebar) used by lessons/blog
     7. Lesson page refinements + illustration figure / zoom
     8. Ad slots
     9. Privacy / simple prose pages
   ============================================================ */

/* ------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------ */
:root {
  --c-bg:        #0d0d0f;
  --c-bg-2:      #121215;
  --c-surface:   #17171b;
  --c-surface-2: #1d1d22;
  --c-line:      rgba(255, 255, 255, 0.07);
  --c-line-2:    rgba(255, 255, 255, 0.12);
  --c-text:      #f2f2f3;
  --c-text-2:    #b4b4bc;
  --c-text-3:    #7c7c86;
  --c-gold:      #e8a838;
  --c-gold-2:    #f3c063;
  --c-gold-ink:  #1a1206;
  --shell-max:   1200px;
  --gutter:      clamp(16px, 4vw, 32px);
  --radius:      14px;
}

body {
  background-color: var(--c-bg);
}

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ------------------------------------------------------------
   2. HEADER
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(13, 13, 15, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--c-line);
}

.site-header__inner {
  max-width: var(--shell-max);
  padding-inline: var(--gutter);
  min-height: 64px;
  flex-wrap: nowrap;
  gap: 24px;
}

.site-logo {
  gap: 10px;
}
.site-logo:hover { transform: none; }
.site-logo__mark {
  flex: none;
  width: 30px;
  height: auto;
  transition: transform 250ms var(--ease-out-smooth);
}
.site-logo:hover .site-logo__mark { transform: rotate(-8deg); }
.site-logo__words {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--c-text);
}
.site-logo__gold { color: var(--c-gold); }
.site-logo__tld {
  font-weight: 400;
  font-size: 0.78em;
  color: var(--c-text-3);
  letter-spacing: 0;
}

/* Desktop nav */
.site-nav { width: auto; padding: 0; }
.site-nav__list { gap: 4px; flex-wrap: nowrap; }
.site-nav__link {
  padding: 8px 14px;
  font-size: 0.92rem;
  color: var(--c-text-2);
  border-radius: 999px;
}
.site-nav__link:hover { background: rgba(255, 255, 255, 0.06); color: var(--c-text); }
.site-nav__link.active {
  color: var(--c-text);
  background: rgba(232, 168, 56, 0.12);
}
.site-nav__link.active::after { display: none; }

.site-nav__submenu {
  top: calc(100% + 8px);
  min-width: 220px;
  padding: 8px;
  background: var(--c-surface);
  border: 1px solid var(--c-line-2);
  border-radius: 14px;
}
/* Invisible bridge so hover doesn't drop when moving into the menu */
.site-nav__submenu::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -10px;
  height: 10px;
}
.site-nav__submenu li a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}

/* Mobile: hamburger + slide-out panel (markup lives in footer.php) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 10px;
  border-radius: 10px;
}
.hamburger:hover { background: rgba(255, 255, 255, 0.06); }
.hamburger__line { width: 22px; transition: transform 250ms, opacity 250ms; }
.hamburger.is-active .hamburger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active .hamburger__line:nth-child(2) { opacity: 0; }
.hamburger.is-active .hamburger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .hamburger { display: inline-flex; }
}

.nav-mobile {
  padding: 84px 20px 32px;
  background: var(--c-bg-2);
}
.nav-mobile__link { font-size: 1.02rem; padding: 10px 14px; }
.nav-mobile__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--c-text-2);
  border-radius: 10px;
}
.nav-mobile__close:hover { color: var(--c-text); background: rgba(255, 255, 255, 0.06); }

/* ------------------------------------------------------------
   3. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font: 600 0.98rem/1 var(--font-body);
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 150ms var(--ease-out-smooth), box-shadow 250ms, background 150ms, border-color 150ms, color 150ms;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  color: var(--c-gold-ink);
  background: linear-gradient(180deg, var(--c-gold-2), var(--c-gold));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 6px 20px rgba(232, 168, 56, 0.22);
}
.btn--primary:hover { color: var(--c-gold-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 10px 28px rgba(232, 168, 56, 0.32); }

.btn--outline {
  color: var(--c-text);
  border-color: var(--c-line-2);
  background: rgba(255, 255, 255, 0.02);
}
.btn--outline:hover { color: var(--c-text); border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.06); }

.btn--sm { padding: 9px 16px; font-size: 0.88rem; }
.btn--lg { padding: 15px 28px; font-size: 1.05rem; }
.btn--xl { padding: 18px 34px; font-size: 1.12rem; }

/* ------------------------------------------------------------
   4. FOOTER
   ------------------------------------------------------------ */
.site-footer {
  padding: 64px 0 28px;
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-line);
  margin-top: 0;
}
.site-footer__inner {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: none;
  margin: 0 0 48px;
}
.site-footer__brand { max-width: 340px; }
.site-footer__brand p {
  margin: 12px 0 20px;
  color: var(--c-text-2);
  font-size: 0.95rem;
  line-height: 1.65;
}
.site-footer__logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-text);
}
.site-footer__logo:hover { color: var(--c-text); }
.site-footer__logo-sub { color: var(--c-text-3); font-weight: 400; font-size: 0.8em; margin-left: 2px; }

.site-footer__heading {
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-3);
}
.site-footer__links,
.site-footer__stages { display: grid; gap: 9px; }
.site-footer__links a,
.site-footer__stages a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--c-text-2);
}
.site-footer__links a:hover,
.site-footer__stages a:hover { color: var(--c-gold-2); }
.stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot, var(--c-gold));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot, #e8a838) 18%, transparent);
  flex: none;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
  font-size: 0.86rem;
  color: var(--c-text-3);
}
.site-footer__bottom a { color: var(--c-text-2); }
.site-footer__bottom a:hover { color: var(--c-gold-2); }

@media (max-width: 960px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; max-width: 520px; }
}
@media (max-width: 520px) {
  .site-footer { padding-top: 48px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .site-footer__col:last-child { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------
   5. HOMEPAGE
   ------------------------------------------------------------ */
.home-section { padding: clamp(48px, 6vw, 80px) 0; }
.home-section--tint { background: var(--c-bg-2); border-block: 1px solid var(--c-line); }

.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.section-title {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--c-text);
}
.section-subtitle {
  margin-top: 12px;
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--c-text-2);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--c-gold-2);
  white-space: nowrap;
}
.text-link:hover { color: var(--c-gold); }

/* Hero */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px);
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(232, 168, 56, 0.12), transparent 70%),
    radial-gradient(45% 60% at 5% 100%, rgba(168, 85, 247, 0.07), transparent 70%),
    var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}
.home-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.home-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  margin-bottom: 22px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--c-text-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c-line-2);
  border-radius: 999px;
}
.home-hero__pill b {
  padding: 3px 9px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-gold-ink);
  background: var(--c-gold);
  border-radius: 999px;
}
.home-hero__title {
  font-size: clamp(2.6rem, 1.6rem + 4.2vw, 4.6rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--c-text);
}
.home-hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--c-gold-2), var(--c-gold) 55%, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-hero__lead {
  max-width: 34em;
  margin: 22px 0 30px;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.6;
  color: var(--c-text-2);
}
.home-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.home-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
  font-size: 0.92rem;
  color: var(--c-text-3);
}
.home-hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.home-hero__facts svg { color: #4ade80; flex: none; }
.home-hero__facts strong { color: var(--c-text); font-weight: 700; }

.home-hero__art {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 500px;
}
.home-hero__art img { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55)); }

@media (max-width: 900px) {
  .home-hero__grid { grid-template-columns: 1fr; }
  .home-hero__art { justify-self: center; max-width: 440px; }
}

/* Stage path */
.stage-path {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  counter-reset: stage;
}
.stage-tile {
  --c: var(--c-gold);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  color: var(--c-text);
  overflow: hidden;
  transition: border-color 200ms, transform 200ms var(--ease-out-smooth), background 200ms;
}
.stage-tile::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--c);
  opacity: 0.85;
}
.stage-tile:hover {
  color: var(--c-text);
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--c) 45%, transparent);
  background: var(--c-surface-2);
}
.stage-tile__top { display: flex; align-items: center; justify-content: space-between; }
.stage-tile__num {
  font: 700 0.76rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c);
}
.stage-tile__range { font-size: 0.8rem; color: var(--c-text-3); }
.stage-tile__name { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.01em; }
.stage-tile__desc { font-size: 0.93rem; line-height: 1.55; color: var(--c-text-2); flex: 1; }
.stage-tile__go {
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c);
}
.stage-tile--cta {
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(160deg, rgba(232, 168, 56, 0.16), rgba(232, 168, 56, 0.04));
  border-color: rgba(232, 168, 56, 0.3);
}
.stage-tile--cta::before { display: none; }

/* Popular lessons */
.home-lessons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lesson-tile {
  --c: var(--c-gold);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  padding: 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  color: var(--c-text);
  transition: border-color 200ms, background 200ms;
}
.lesson-tile:hover { color: var(--c-text); border-color: var(--c-line-2); background: var(--c-surface-2); }
.lesson-tile__num {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font: 700 1.05rem/1 var(--font-mono);
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  border-radius: 12px;
}
.lesson-tile__stage { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em; color: var(--c); }
.lesson-tile__title { font-size: 1.08rem; font-weight: 700; line-height: 1.25; }
.lesson-tile__desc { font-size: 0.9rem; line-height: 1.5; color: var(--c-text-2); }

@media (max-width: 960px) { .home-lessons { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .home-lessons { grid-template-columns: 1fr; } }

/* Tools */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tool-tile {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  color: var(--c-text);
  transition: border-color 200ms, background 200ms;
}
.tool-tile:hover { color: var(--c-text); border-color: rgba(232, 168, 56, 0.35); background: var(--c-surface-2); }
.tool-tile__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--c-gold);
  background: rgba(232, 168, 56, 0.1);
  border-radius: 12px;
}
.tool-tile__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.tool-tile__desc { font-size: 0.9rem; line-height: 1.5; color: var(--c-text-2); }

@media (max-width: 960px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .tool-grid { grid-template-columns: 1fr; } }

/* What you'll learn */
.learn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.learn-item { padding: 28px; background: var(--c-bg); }
.learn-item svg { color: var(--c-gold); margin-bottom: 14px; }
.learn-item h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; color: var(--c-text); }
.learn-item p { font-size: 0.93rem; line-height: 1.6; color: var(--c-text-2); }
@media (max-width: 860px) { .learn-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .learn-grid { grid-template-columns: 1fr; } .learn-item { padding: 22px; } }

/* About / SEO copy */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.about-copy p {
  margin-bottom: 16px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--c-text-2);
}
.about-copy strong { color: var(--c-text); font-weight: 600; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Final CTA */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(232, 168, 56, 0.18), transparent 70%),
    var(--c-surface);
  border: 1px solid rgba(232, 168, 56, 0.22);
  border-radius: 22px;
}
.cta-band h2 {
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--c-text);
}
.cta-band p { margin: 12px auto 28px; max-width: 32em; color: var(--c-text-2); font-size: 1.05rem; }

@media (max-width: 620px) {
  .section-head--row { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------------------
   6. PAGE SHELL (content + sidebar)
   ------------------------------------------------------------ */
.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 0 var(--gutter) 72px;
}
.page-shell__main { min-width: 0; }
.page-shell__side {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 20px;
  padding-top: 24px;
}
@media (max-width: 1080px) {
  .page-shell { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 860px; }
  .page-shell__side { position: static; padding-top: 8px; }
}

.side-card {
  padding: 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}
.side-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-3);
}
.side-card__title span { font: 600 0.76rem/1 var(--font-mono); letter-spacing: 0; color: var(--stage-colour, var(--c-gold)); text-transform: none; }

.side-progress {
  height: 5px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
}
.side-progress > i {
  display: block;
  height: 100%;
  background: var(--stage-colour, var(--c-gold));
  border-radius: inherit;
}

.side-list { display: grid; gap: 2px; counter-reset: none; }
.side-list a {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: baseline;
  gap: 8px;
  padding: 7px 8px;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--c-text-2);
  border-radius: 8px;
}
.side-list a:hover { color: var(--c-text); background: rgba(255, 255, 255, 0.04); }
.side-list a b { font: 600 0.78rem/1.35 var(--font-mono); color: var(--c-text-3); }
.side-list a[aria-current="page"] {
  color: var(--c-text);
  background: color-mix(in srgb, var(--stage-colour, #e8a838) 13%, transparent);
}
.side-list a[aria-current="page"] b { color: var(--stage-colour, var(--c-gold)); }
.side-list a.is-soon { opacity: 0.55; }

.side-links { display: grid; gap: 4px; }
.side-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  font-size: 0.9rem;
  color: var(--c-text-2);
  border-radius: 8px;
}
.side-links a:hover { color: var(--c-text); background: rgba(255, 255, 255, 0.04); }
.side-links svg { color: var(--c-gold); flex: none; }

/* On small screens the sidebar sits after the lesson; keep only the useful bits */
@media (max-width: 1080px) {
  .page-shell__side .side-card--tools { display: none; }
}

/* ------------------------------------------------------------
   7. LESSON PAGE
   ------------------------------------------------------------ */
.lesson-page.lesson-page--shell { max-width: none; margin: 0; padding: 0; }

/* Tame stacked spacing inherited from style.css */
.lesson-page--shell .lesson-header { margin-bottom: 28px; padding-bottom: 24px; }
.lesson-page--shell .lesson-content { padding: 0; margin-bottom: 40px; }
.lesson-page--shell .lesson-content > * + * { margin-top: 0; }
.lesson-page--shell .lesson-section { margin-bottom: 40px; }
.lesson-page--shell .lesson-section h2 {
  margin-top: 0;
  font-size: 1.4rem;
  letter-spacing: -0.015em;
  border-bottom: 0;
  padding-bottom: 0;
}
.lesson-page--shell .lesson-section .prose { font-size: 1.05rem; color: #cfcfd4; }
.lesson-page--shell .lesson-header__title { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); color: var(--c-text); }
.lesson-page--shell .lesson-header__subtitle { font-style: normal; color: var(--c-text-2); }

.lesson-figure { margin: 0 0 40px; }
.lesson-figure__zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--c-line-2);
  border-radius: var(--radius);
  overflow: hidden;
  background: #141418;
  cursor: zoom-in;
}
.lesson-figure__zoom img { width: 100%; height: auto; border: 0; border-radius: 0; }
.lesson-figure__hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-text);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--c-line-2);
  border-radius: 999px;
  opacity: 0;
  transition: opacity 200ms;
}
.lesson-figure__zoom:hover .lesson-figure__hint,
.lesson-figure__zoom:focus-visible .lesson-figure__hint { opacity: 1; }
@media (hover: none) { .lesson-figure__hint { opacity: 1; } }
.lesson-figure figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--c-text-3);
  text-align: center;
}

/* Full-screen zoom dialog */
.zoom-dialog {
  width: min(96vw, 1400px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  margin: auto;
  background: #141418;
  border: 1px solid var(--c-line-2);
  border-radius: 16px;
  overflow: auto;
  color: var(--c-text);
}
.zoom-dialog::backdrop { background: rgba(0, 0, 0, 0.82); }
.zoom-dialog img { width: 100%; min-width: 900px; height: auto; }
.zoom-dialog__close {
  position: sticky;
  top: 10px;
  float: right;
  margin: 10px 10px -54px 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--c-text);
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--c-line-2);
  border-radius: 50%;
}

/* ------------------------------------------------------------
   8. AD SLOTS (only rendered when ads are enabled in includes/ads.php)
   ------------------------------------------------------------ */
.ad-slot {
  display: block;
  margin: 40px 0;
  padding: 10px 0 0;
  text-align: center;
  border-top: 1px solid var(--c-line);
  min-height: 120px;
}
.ad-slot__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-3);
}
.ad-slot--sidebar {
  margin: 0;
  padding: 12px;
  min-height: 280px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}
/* If AdSense couldn't fill the slot, collapse it so no blank box is left behind */
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }
@media (max-width: 1080px) { .ad-slot--sidebar { display: none; } }

/* ------------------------------------------------------------
   9. SIMPLE PROSE PAGES (privacy etc.)
   ------------------------------------------------------------ */
.prose-page {
  max-width: 760px;
  margin-inline: auto;
  padding: 56px var(--gutter) 88px;
}
.prose-page h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.prose-page .prose-page__meta { color: var(--c-text-3); margin-bottom: 36px; font-size: 0.92rem; }
.prose-page h2 { font-size: 1.3rem; font-weight: 700; margin: 36px 0 10px; color: var(--c-text); }
.prose-page p,
.prose-page li { color: var(--c-text-2); line-height: 1.75; font-size: 1.02rem; }
.prose-page p { margin-bottom: 14px; }
.prose-page ul { list-style: disc; padding-left: 1.3em; margin-bottom: 14px; }
.prose-page li { margin-bottom: 6px; }
.prose-page a { text-decoration: underline; text-underline-offset: 3px; }

/* Zen mode (js/zen-mode.js) hides the sidebar too */
body.zen-mode .page-shell { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
body.zen-mode .page-shell__side { display: none; }

/* ------------------------------------------------------------
   10. BLOG ARTICLE (inside .page-shell)
   ------------------------------------------------------------ */
.page-shell--article .blog-article-wrapper { max-width: none; margin: 0; padding: 24px 0 0; }
.side-toc__list { display: grid; gap: 2px; counter-reset: none; }
.side-toc__list a {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  padding: 6px 8px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--c-text-2);
  border-radius: 8px;
  border-left: 2px solid transparent;
}
.side-toc__list a:hover { color: var(--c-text); background: rgba(255, 255, 255, 0.04); }
.side-toc__list a.is-active { color: var(--c-text); background: rgba(232, 168, 56, 0.1); border-left-color: var(--c-gold); }
.side-toc__list .blog-toc-number { font: 600 0.78rem/1.4 var(--font-mono); color: var(--c-gold); background: none; width: auto; height: auto; }
.side-course__text { margin: -4px 0 14px; font-size: 0.9rem; line-height: 1.55; color: var(--c-text-2); }
.side-links--plain a { display: block; padding: 7px 8px; font-size: 0.88rem; line-height: 1.4; }
.page-shell__side .side-toc { max-height: calc(100vh - 380px); overflow: auto; }

/* Desktop: TOC lives in the sidebar. Mobile/tablet: keep the inline TOC, hide the sidebar copy. */
@media (min-width: 1081px) {
  .page-shell--article .blog-article-content > .blog-toc { display: none; }
}
@media (max-width: 1080px) {
  .page-shell__side .side-toc { display: none; }
}
.page-shell--article .page-shell__side { position: static; align-self: stretch; align-content: start; }
.page-shell--article .side-toc { position: sticky; top: 88px; max-height: calc(100vh - 110px); }
.page-shell--article .blog-article-title { font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); line-height: 1.08; }

/* ------------------------------------------------------------
   11. SONGS LIBRARY fixes
   ------------------------------------------------------------ */
.songs-filter-bar { top: 64px; }
.songs-filter-bar__search-icon { left: 14px; width: 16px; height: 16px; }
.songs-filter-bar .songs-filter-bar__search { padding-left: 40px; }

/* Footer credit */
.site-footer__bottom-right { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.site-footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-text-3);
  opacity: 0.8;
  transition: opacity 150ms;
}
.site-footer__credit:hover { opacity: 1; color: var(--c-text-2); }
.site-footer__credit img { height: 22px; width: auto; }
