/*
 * Bunny English 4.3.2 — complete site-wide dark mode.
 * This file is intentionally loaded after the theme and plugin-facing styles.
 */

html[data-bunny-theme="dark"]{
  --bunny-blue:#315f86;
  --bunny-blue-dark:#a8cdea;
  --bunny-blue-soft:#183049;
  --bunny-pink:#8e4665;
  --bunny-pink-dark:#f0a6c2;
  --bunny-pink-soft:#3a2230;
  --bunny-purple:#312b45;
  --bunny-yellow:#3a3121;
  --bunny-green:#22463b;
  --ink:#eef5ff;
  --muted:#aebdce;
  --bg:#0f1724;
  --warm:#141d2b;
  --white:#182538;
  --border:#304158;
  --shadow:0 20px 52px rgba(0,0,0,.34);
  --shadow-sm:0 9px 28px rgba(0,0,0,.25);

  /* Shared tokens consumed by Bunny Core / Membership when available. */
  --bny-bg:#0f1724;
  --bny-surface:#182538;
  --bny-surface-soft:#142033;
  --bny-card-bg:#182538;
  --bny-text:#eef5ff;
  --bny-muted:#aebdce;
  --bny-border:#304158;
  --bem-bg:#0f1724;
  --bem-surface:#182538;
  --bem-text:#eef5ff;
  --bem-muted:#aebdce;
  --bem-border:#304158;

  color-scheme:dark;
  scrollbar-color:#42556e #0f1724;
  accent-color:#d47b9f;
}

/* Keep the mode switch smooth without animating every descendant on the page. */
html.bunny-theme-ready body,
html.bunny-theme-ready .site-header,
html.bunny-theme-ready .site-header .header-inner,
html.bunny-theme-ready .site-main,
html.bunny-theme-ready .site-footer,
html.bunny-theme-ready :is(input,textarea,select,.theme-toggle__track,.theme-toggle__thumb){
  transition:background-color .24s ease,color .24s ease,border-color .24s ease,box-shadow .24s ease;
}

/* Global canvas, typography and native controls. */
html[data-bunny-theme="dark"] body{
  background:
    radial-gradient(circle at 6% 18%,rgba(93,57,79,.12),transparent 25%),
    radial-gradient(circle at 94% 42%,rgba(48,91,126,.12),transparent 28%),
    var(--bg)!important;
  color:var(--ink);
}
html[data-bunny-theme="dark"] .site-main{background:transparent!important}
html[data-bunny-theme="dark"] ::selection{background:#96526f;color:#fff}
html[data-bunny-theme="dark"] :is(hr,.wp-block-separator){border-color:var(--border)}
html[data-bunny-theme="dark"] :where(h1,h2,h3,h4,h5,h6,.entry-title,.page-title,.card-title){color:var(--ink)}
html[data-bunny-theme="dark"] :where(.content-entry,.generic-content,.content-body-copy) p{color:#cbd7e5}
html[data-bunny-theme="dark"] :where(.section-heading p,.page-hero p,.program-single-hero p,.week-hero p,.content-single-hero p){color:var(--muted)}
html[data-bunny-theme="dark"] :where(code,kbd,pre){background:#0b1320;color:#dbe9f8;border-color:var(--border)}
html[data-bunny-theme="dark"] :where(a,button,input,textarea,select):focus-visible{
  outline:3px solid rgba(229,137,174,.38);
  outline-offset:3px;
}
html[data-bunny-theme="dark"] :is(input,textarea,select){
  background:#121e2f!important;
  color:var(--ink)!important;
  border-color:var(--border)!important;
  box-shadow:none;
}
html[data-bunny-theme="dark"] :is(input,textarea,select):focus{
  border-color:#8daecc!important;
  box-shadow:0 0 0 4px rgba(96,139,177,.18)!important;
}
html[data-bunny-theme="dark"] :is(input,textarea)::placeholder{color:#8292a7;opacity:1}
html[data-bunny-theme="dark"] select option{background:#121e2f;color:var(--ink)}
html[data-bunny-theme="dark"] .skip-link:focus{background:#182538;color:var(--ink);border:1px solid var(--border)}

/* Header, navigation and the light/dark toggle. */
.theme-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:42px;
  padding:0;
  border:0;
  background:transparent;
  border-radius:14px;
  color:var(--ink);
  flex:0 0 auto;
}
.theme-toggle__track{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:46px;
  height:28px;
  padding:0 5px;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:999px;
  background:#eef6fc;
  box-shadow:inset 0 1px 4px rgba(39,59,82,.08);
}
.theme-toggle__icon{display:grid;place-items:center;width:16px;height:16px;z-index:1;color:#6888a4;pointer-events:none}
.theme-toggle__icon .bunny-icon{width:15px;height:15px}
.theme-toggle__icon--moon{color:#71569a}
.theme-toggle__thumb{
  position:absolute;
  top:3px;
  right:3px;
  width:20px;
  height:20px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 3px 9px rgba(43,57,78,.25);
  transition:transform .24s ease,background .24s ease,box-shadow .24s ease;
  pointer-events:none;
}
.theme-toggle:hover .theme-toggle__track{border-color:#a9bfd2}
.theme-toggle:focus-visible{outline:3px solid rgba(229,137,174,.38);outline-offset:2px}
html[data-bunny-theme="dark"] .theme-toggle__track{background:#142238;border-color:#42556e;box-shadow:inset 0 1px 5px rgba(0,0,0,.28)}
html[data-bunny-theme="dark"] .theme-toggle__thumb{transform:translateX(-18px);background:#d6e1ee;box-shadow:0 3px 10px rgba(0,0,0,.35)}
html[data-bunny-theme="dark"] .theme-toggle__icon--sun{color:#f0ca67}
html[data-bunny-theme="dark"] .theme-toggle__icon--moon{color:#d5b8f5}

/* main.css contains historic !important header declarations; mode rules must beat them. */
html[data-bunny-theme="dark"] .site-header,
html[data-bunny-theme="dark"] body.home .site-header:not(.is-scrolled){
  background:rgba(12,20,32,.94)!important;
  border:0!important;
  border-bottom:1px solid rgba(69,88,115,.72)!important;
  box-shadow:0 8px 28px rgba(0,0,0,.22)!important;
  color:var(--ink)!important;
}
html[data-bunny-theme="dark"] .site-header.is-scrolled{
  background:rgba(14,23,37,.985)!important;
  border-bottom-color:#34465e!important;
  box-shadow:0 12px 34px rgba(0,0,0,.34)!important;
}
html[data-bunny-theme="dark"] .site-header .header-inner,
html[data-bunny-theme="dark"] .site-header.is-scrolled .header-inner{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
html[data-bunny-theme="dark"] body.home .site-header:not(.is-scrolled) :is(.brand-copy strong,.site-menu a,.header-login){color:var(--ink)!important}
html[data-bunny-theme="dark"] body.home .site-header:not(.is-scrolled) .brand-copy small,
html[data-bunny-theme="dark"] .brand-copy small{color:#a8cdea!important}
html[data-bunny-theme="dark"] :is(.site-menu a:hover,.site-menu .current-menu-item>a,.site-menu .current_page_item>a,.header-login:hover),
html[data-bunny-theme="dark"] body.home .site-header:not(.is-scrolled) :is(.site-menu a:hover,.site-menu .current-menu-item>a,.site-menu .current_page_item>a,.header-login:hover){
  background:#1b3047!important;
  color:#dceefe!important;
}
html[data-bunny-theme="dark"] .menu-toggle,
html[data-bunny-theme="dark"] body.home .site-header:not(.is-scrolled) .menu-toggle{background:#152237!important;border-color:var(--border)!important}
html[data-bunny-theme="dark"] .menu-toggle span,
html[data-bunny-theme="dark"] body.home .site-header:not(.is-scrolled) .menu-toggle span{background:var(--ink)!important}
html[data-bunny-theme="dark"] .mobile-actions{border-color:var(--border)}
@media(max-width:1020px){
  html[data-bunny-theme="dark"] .primary-nav{
    background:#152237!important;
    border-color:var(--border)!important;
    box-shadow:0 24px 60px rgba(0,0,0,.42)!important;
  }
  html[data-bunny-theme="dark"] .site-menu li+li{border-color:rgba(75,94,120,.35)}
}

/* Buttons, actions, chips, pagination and badges. */
html[data-bunny-theme="dark"] :is(.bunny-btn--primary,.bny-action--primary){
  background:linear-gradient(135deg,#2f638c,#3f7198)!important;
  color:#fff!important;
  border-color:transparent!important;
  box-shadow:0 9px 22px rgba(26,75,111,.35);
}
html[data-bunny-theme="dark"] .bunny-btn--accent{
  background:linear-gradient(135deg,#8e4564,#a95073)!important;
  color:#fff!important;
  border-color:transparent!important;
  box-shadow:0 9px 22px rgba(110,42,72,.34);
}
html[data-bunny-theme="dark"] :is(.bunny-btn--outline,.bunny-btn--ghost,.bny-action--ghost,.archive-filters button,.archive-filters a,.library-filter-reset){
  background:#162338!important;
  color:var(--ink)!important;
  border-color:var(--border)!important;
}
html[data-bunny-theme="dark"] :is(.bunny-btn--outline,.bunny-btn--ghost,.bny-action--ghost,.archive-filters button,.archive-filters a,.library-filter-reset):hover{
  background:#1d3149!important;
  border-color:#49617e!important;
  color:#fff!important;
}
html[data-bunny-theme="dark"] :is(.bunny-btn--soft,.eyebrow,.content-type-grid span,.week-phrases span){
  background:#1a3148!important;
  color:#bddcf2!important;
  border-color:#2e4a64!important;
}
html[data-bunny-theme="dark"] :is(.archive-filters .is-active,.page-numbers.current,.bunny-pagination .current,.pagination-wrap .current){
  background:#8e4564!important;
  color:#fff!important;
  border-color:#b56586!important;
}
html[data-bunny-theme="dark"] :is(.page-numbers,.pagination-wrap a,.pagination-wrap span,.bunny-pagination a,.bunny-pagination span){
  background:#17253a!important;
  color:#cbd9e7!important;
  border-color:var(--border)!important;
}
html[data-bunny-theme="dark"] :is(.free-badge,.premium-badge,.popular-badge){color:#fff!important}
html[data-bunny-theme="dark"] .play-badge{background:#1c2b40!important;color:#d8e7f5!important;border:1px solid var(--border)}
html[data-bunny-theme="dark"] .play-badge--locked{background:#382331!important;color:#f1b0c9!important}

/* Hero areas and large page bands. */
html[data-bunny-theme="dark"] :is(
  .hero-section,.hero-section--v2,.learning-hero,.page-hero,.page-hero--illustrated,
  .page-hero--learning,.page-hero--library,.page-hero--learning-taxonomy,.page-hero--search,
  .program-single-hero,.week-hero,.content-single-hero,.be3-hero,.bunny-v4-hero,.be31-hero
){
  background:
    radial-gradient(circle at 12% 12%,rgba(129,69,99,.2),transparent 32%),
    radial-gradient(circle at 88% 10%,rgba(55,99,136,.24),transparent 35%),
    linear-gradient(135deg,#101b2c 0%,#171b2c 53%,#221824 100%)!important;
  color:var(--ink)!important;
}
html[data-bunny-theme="dark"] :is(.hero-copy--v2 h1,.hero-copy--v2>p,.hero-highlight,.learning-hero__copy h1,.learning-hero__copy>p,.page-hero__copy h1,.page-hero__copy p){color:inherit!important}
html[data-bunny-theme="dark"] :is(.hero-copy--v2>p,.learning-hero__copy>p,.page-hero__copy p){color:var(--muted)!important}
html[data-bunny-theme="dark"] :is(.learning-hero:before,.learning-hero:after,.learning-hero::after,.page-hero__bubble,.hero-blob){opacity:.28}
html[data-bunny-theme="dark"] .hero-cloud-shine{opacity:.35}
html[data-bunny-theme="dark"] :is(.hero-cloud-orbit::before,.hero-cloud-orbit::after){background:#9fb9d0;box-shadow:0 0 0 7px rgba(102,134,165,.18)}

html[data-bunny-theme="dark"] :is(
  .section--warm,.section--dashboard-preview,.age-programs-section,.weekly-model-section,
  .today-section,.library-preview-section,.parent-role-section,.program-intro-section,
  .program-levels-section,.week-overview-section,.week-today-section,.week-playlists-section,
  .week-parent-section,.week-completion-section,.week-navigation,.content-player-section,
  .content-parent-guide-section,.related-content-section,.taxonomy-programs-section,
  .taxonomy-library-section,.bny-week-method-section,.bny-now-section,.be31-content-worlds,
  .be31-support-strip,.bunny-v4-paths,.bunny-v4-levels,.bunny-v4-how
){background:var(--bg)!important}
html[data-bunny-theme="dark"] :is(.section--warm,.weekly-model-section,.week-today-section,.week-parent-section,.content-parent-guide-section,.bunny-v4-how){background:var(--warm)!important}
html[data-bunny-theme="dark"] .section--soft-blue{background:linear-gradient(135deg,#111f31,#1c1d2d)!important}
html[data-bunny-theme="dark"] .trust-strip{background:#131f30!important;border-color:var(--border)!important}
html[data-bunny-theme="dark"] .trust-strip-grid>div{border-color:var(--border)!important}

/* Reusable surfaces and cards. */
html[data-bunny-theme="dark"] :is(
  .age-card,.activity-card,.content-card,.course-card,.step-card,.testimonial-card,.pricing-card,.faq-item,
  .dashboard-mockup,.archive-search,.page-numbers,.empty-state,.single-content,.single-sidebar-card,
  .generic-content,.blog-card,.info-card,.form-card,.static-card,.login-card,.mock-panel,.feature-card,
  .hero-age-card,.hero-benefits>div,.hero-logo-orbit,.mini-card,.age-picker,.orbit-dot,
  .bunny-locked-content,.cartoon-live-search,.cartoon-search-empty,.bunny-video-fallback--server,
  .page-hero__figure-card,.be3-hero__benefits>div,.be3-hero__scene-card,.be3-floating-card,
  .be3-feature-card,.be3-age-card,.library-filter-shell,.library-filter-summary,
  .weekly-model-demo,.today-example-grid article,.parent-role-bubble,.program-level-block,
  .program-week-card,.week-parent-grid article,.content-info-card,
  .content-parent-guide-grid article,.search-results-grid .journal-card>a,.bny-content-card,
  .bny-program-card,.bny-level-unlock-panel,.bny-level-modal__dialog,.bny-audio-level-preview,
  .bny-audio-level-preview__list li,.bny-session-tab,.bny-level-lock-overlay__card,
  .bunny-v4-path,.bunny-v4-level-card,.bunny-v4-step-grid article,.bunny-v4-world-grid a,
  .bunny-audio-program-promise,.bunny-audio-note-grid article,.bunny-audio-note-grid details,
  .bunny-v4-method-grid article,.bunny-v4-parent-grid article,.bunny-v4-faq details,
  .be31-duo-card,.be31-support-strip__inner,.be31-world-card,.bem-plan-card,.bem-membership-card,
  .bem-account-card,.bem-dashboard-card,.bem-payment-card,.bem-form-card
){
  background:#182538!important;
  color:var(--ink)!important;
  border-color:var(--border)!important;
  box-shadow:var(--shadow-sm);
}
html[data-bunny-theme="dark"] :is(.age-card,.activity-card,.content-card,.course-card,.pricing-card,.faq-item,.be3-feature-card,.be3-age-card,.bunny-v4-path,.bunny-v4-level-card,.bunny-v4-step-grid article,.bunny-v4-world-grid a,.be31-duo-card,.be31-world-card):hover{
  border-color:#405774!important;
  box-shadow:0 16px 40px rgba(0,0,0,.32);
}
html[data-bunny-theme="dark"] :is(
  .hero-age-icon,.hero-age-options a,.age-icon,.activity-icon,.play-badge,.step-icon,.experience-badge,
  .be3-age-card__visual,.be3-feature-card__icon,.be3-hero__benefits span,.be3-week-demo .demo-session span,
  .be3-week-demo .demo-offline span,.bny-audio-level-preview__head>span,.bny-audio-level-preview__list li>i,
  .program-intro-grid aside>span,.week-overview-grid>aside>span,.program-level-review>span,
  .week-parent-grid article>span,.content-parent-guide-grid article>span,.week-session-block>header>span,
  .week-completion-card>div>span,.content-single-hero__visual>span,.bunny-audio-program-promise>span,
  .bunny-audio-note-grid article>span,.bunny-v4-method-grid article>span,.bunny-v4-parent-grid article>span,
  .be31-world-card__copy>span
){
  background:linear-gradient(180deg,#28263b,#193149)!important;
  color:#d7b9ef!important;
  border-color:#3b4660!important;
}
html[data-bunny-theme="dark"] :is(.page-hero__figure-card,.be3-age-card__visual,.program-single-hero__visual,.content-single-hero__visual,.be31-world-card__visual,.be3-final-cta__art){background:linear-gradient(145deg,#1a293d,#202438)!important;border-color:var(--border)!important}
html[data-bunny-theme="dark"] :is(.page-hero__figure-card,.be3-hero__scene-card,.be3-age-card__visual,.content-single-hero__visual,.program-single-hero__visual,.be31-world-card__visual) img{filter:brightness(.9) saturate(.94)}

/* Force hard-coded dark text in old component styles to become readable. */
html[data-bunny-theme="dark"] :is(
  .age-card,.activity-card,.content-card,.course-card,.step-card,.testimonial-card,.pricing-card,.faq-item,
  .dashboard-mockup,.archive-search,.empty-state,.single-content,.single-sidebar-card,.generic-content,
  .blog-card,.info-card,.form-card,.static-card,.login-card,.feature-card,.hero-age-card,
  .be3-feature-card,.be3-age-card,.be3-hero__benefits>div,.be3-floating-card,.weekly-model-demo,
  .today-example-grid article,.program-level-block,.program-week-card,.week-parent-grid article,
  .content-info-card,.content-parent-guide-grid article,.bny-content-card,.bny-program-card,
  .bny-level-modal__dialog,.bny-audio-level-preview,.bny-session-tab,.bunny-v4-path,
  .bunny-v4-level-card,.bunny-v4-step-grid article,.bunny-v4-world-grid a,.bunny-audio-program-promise,
  .bunny-audio-note-grid article,.bunny-audio-note-grid details,.bunny-v4-method-grid article,
  .bunny-v4-parent-grid article,.bunny-v4-faq details,.be31-duo-card,.be31-world-card
) :is(h1,h2,h3,h4,h5,h6,strong,b){color:var(--ink)!important}
html[data-bunny-theme="dark"] :is(
  .age-card,.activity-card,.content-card,.course-card,.step-card,.testimonial-card,.pricing-card,.faq-item,
  .dashboard-mockup,.empty-state,.single-content,.single-sidebar-card,.generic-content,.blog-card,
  .info-card,.form-card,.static-card,.login-card,.feature-card,.hero-age-card,.be3-feature-card,
  .be3-age-card,.be3-hero__benefits>div,.be3-floating-card,.weekly-model-demo,.today-example-grid article,
  .program-level-block,.program-week-card,.week-parent-grid article,.content-info-card,
  .content-parent-guide-grid article,.bny-content-card,.bny-program-card,.bny-level-modal__dialog,
  .bny-audio-level-preview,.bny-session-tab,.bunny-v4-path,.bunny-v4-level-card,
  .bunny-v4-step-grid article,.bunny-v4-world-grid a,.bunny-audio-program-promise,
  .bunny-audio-note-grid article,.bunny-audio-note-grid details,.bunny-v4-method-grid article,
  .bunny-v4-parent-grid article,.bunny-v4-faq details,.be31-duo-card,.be31-world-card
) :is(p,small){color:var(--muted)!important}
html[data-bunny-theme="dark"] :is(.text-link,.content-back-link,.content-type-kicker,.week-breadcrumb a,.age-card a,.activity-card a,.be3-feature-card a){color:#a8cdea!important}
html[data-bunny-theme="dark"] .bunny-v4-level-card>span{display:inline;width:auto;padding:0;border:0;border-radius:0;background:transparent!important;color:#ddbfff!important;line-height:inherit}

/* Home and legacy showcase details. */
html[data-bunny-theme="dark"] .orbit-dot--three{background:#342d20!important;color:#efc66a!important}
html[data-bunny-theme="dark"] .progress-track{background:#111c2d!important}
html[data-bunny-theme="dark"] .mini-chart{background:linear-gradient(180deg,rgba(80,134,174,.18),transparent)!important}
html[data-bunny-theme="dark"] .course-showcase{
  background:linear-gradient(135deg,#13273a,#2b1e2a)!important;
  color:var(--ink)!important;
}
html[data-bunny-theme="dark"] .course-showcase .section-heading p{color:var(--muted)!important}
html[data-bunny-theme="dark"] .course-card-price{background:linear-gradient(135deg,#142a40,#30202d)!important;color:#cfe0ee!important}
html[data-bunny-theme="dark"] .course-showcase .eyebrow--light{background:#1b3047!important;color:#c4def2!important}
html[data-bunny-theme="dark"] .pricing-card.is-featured{background:linear-gradient(145deg,#1a3044,#30202d)!important;color:var(--ink)!important}
html[data-bunny-theme="dark"] .pricing-card.is-featured :is(p,ul){color:#c5d2df!important}
html[data-bunny-theme="dark"] .mock-sidebar{background:#121d30!important;color:var(--ink)!important}
html[data-bunny-theme="dark"] .mock-sidebar a{color:#b5c3d2!important}
html[data-bunny-theme="dark"] .mock-sidebar a.is-active{background:#21344c!important;color:#fff!important}

/* V4 / 3.1 landing-page components. */
html[data-bunny-theme="dark"] .bunny-v4-path--audio{background:linear-gradient(135deg,#19283d,#30202d)!important}
html[data-bunny-theme="dark"] .bunny-v4-path li{background:#142033!important;color:#c7d4e2!important;border-color:var(--border)!important}
html[data-bunny-theme="dark"] .bunny-locked-content__icon{background:#28243a!important;color:#d8bbed!important}
html[data-bunny-theme="dark"] .bunny-v4-level-card{background:linear-gradient(145deg,#172b40,#2b202e)!important}
html[data-bunny-theme="dark"] .be31-duo-card--success{background:linear-gradient(135deg,#182538,#2a202d)!important}
html[data-bunny-theme="dark"] .be31-support-strip__inner{background:linear-gradient(135deg,#142a3e,#2d202c)!important}
html[data-bunny-theme="dark"] .be31-content-worlds{background:linear-gradient(180deg,#0f1724,#121d2b)!important}
html[data-bunny-theme="dark"] .be31-world-card__visual::after{background:rgba(192,211,228,.14)}
html[data-bunny-theme="dark"] .bunny-v4-hero__facts span,
html[data-bunny-theme="dark"] :is(.program-facts,.week-hero__facts,.content-facts) span{
  background:rgba(24,37,56,.9)!important;
  color:#d2deea!important;
  border:1px solid var(--border)!important;
}

/* Learning path, levels, weeks and soft locks. */
html[data-bunny-theme="dark"] .hero-week-card{
  background:rgba(24,37,56,.94)!important;
  color:var(--ink)!important;
  border:1px solid var(--border)!important;
  box-shadow:0 16px 38px rgba(0,0,0,.34)!important;
}
html[data-bunny-theme="dark"] .hero-week-card small{color:var(--muted)!important}
html[data-bunny-theme="dark"] .hero-week-card__icon{background:linear-gradient(135deg,#2f2a22,#1a2b40)!important;color:#e3c06b!important}
html[data-bunny-theme="dark"] .hero-week-card--play .hero-week-card__icon{background:linear-gradient(135deg,#29243b,#1a2b40)!important;color:#d1baf1!important}
html[data-bunny-theme="dark"] .hero-week-card--calm .hero-week-card__icon{background:linear-gradient(135deg,#332d20,#20253a)!important;color:#efd17d!important}
html[data-bunny-theme="dark"] .age-program-card{border-color:var(--border)!important;color:var(--ink)!important}
html[data-bunny-theme="dark"] .age-program-card--baby{background:#30202c!important}
html[data-bunny-theme="dark"] .age-program-card--explorer{background:#183027!important}
html[data-bunny-theme="dark"] .age-program-card--adventure{background:#28233b!important}
html[data-bunny-theme="dark"] .age-program-card--fluent{background:#172b3f!important}
html[data-bunny-theme="dark"] .age-program-card :is(h3,strong){color:var(--ink)!important}
html[data-bunny-theme="dark"] .age-program-card p{color:var(--muted)!important}
html[data-bunny-theme="dark"] .demo-week-head{background:linear-gradient(135deg,#172d42,#30202d)!important}
html[data-bunny-theme="dark"] .demo-session{border-color:var(--border)!important}
html[data-bunny-theme="dark"] .demo-session em{background:#3b3020!important;color:#f1cc72!important}
html[data-bunny-theme="dark"] .demo-offline{background:#183027!important;color:var(--ink)!important}
html[data-bunny-theme="dark"] .parent-role-visual{background:radial-gradient(circle at center,#1b293d 0 35%,transparent 36%),linear-gradient(135deg,#172d42,#30202d)!important}
html[data-bunny-theme="dark"] .program-intro-grid aside,
html[data-bunny-theme="dark"] .week-overview-grid>aside,
html[data-bunny-theme="dark"] .program-level-review{background:#302a20!important;border-color:#4a4130!important}
html[data-bunny-theme="dark"] .program-level-review p{color:#cbbfa5!important}
html[data-bunny-theme="dark"] .program-week-card{color:var(--ink)!important}
html[data-bunny-theme="dark"] .program-week-card.is-complete{background:#183229!important;border-color:#2e5b4b!important}
html[data-bunny-theme="dark"] .program-week-card>span{background:#1b334a!important;color:#c5dff3!important}
html[data-bunny-theme="dark"] .program-week-card.is-complete>span{background:#34785f!important;color:#fff!important}
html[data-bunny-theme="dark"] .week-hero__badge{box-shadow:inset 0 0 0 18px rgba(15,23,36,.7),0 22px 54px rgba(0,0,0,.3)}
html[data-bunny-theme="dark"] .week-hero__badge :is(span,strong){color:#e7eef7!important}
html[data-bunny-theme="dark"] .week-overview-grid>article{background:#182538!important;border-color:var(--border)!important}
html[data-bunny-theme="dark"] .week-session-block{border-color:var(--border)!important}
html[data-bunny-theme="dark"] .week-session-block--start{background:#2c281e!important}
html[data-bunny-theme="dark"] .week-session-block--play{background:#172f29!important}
html[data-bunny-theme="dark"] .week-session-block--calm{background:#25213a!important}
html[data-bunny-theme="dark"] .week-session-block header>b{background:#182538!important;color:#d5e1ed!important;border:1px solid var(--border)}
html[data-bunny-theme="dark"] .week-completion-card{background:linear-gradient(135deg,#172d42,#183229)!important;border:1px solid var(--border)}
html[data-bunny-theme="dark"] .week-navigation a{background:#17253a!important;color:var(--ink)!important;border:1px solid var(--border)}
html[data-bunny-theme="dark"] .week-navigation small{color:var(--muted)!important}
html[data-bunny-theme="dark"] .content-tags span{background:#1a2d43!important;color:#c9dbea!important;border:1px solid #304c66}

html[data-bunny-theme="dark"] .bny-audio-level-guide{background:linear-gradient(135deg,#302a20,#172b40)!important;border-color:#4a4130!important}
html[data-bunny-theme="dark"] :is(.bny-audio-level-guide>span,.bny-audio-level-guide__stats b,.bny-week-method-card>span,.bny-week-method-card__counts b,.bny-now-card__icon,.bny-level-soft-lock__icon,.bny-level-modal__notice>span){background:#1a293d!important;color:#d7b9ef!important;border-color:var(--border)!important}
html[data-bunny-theme="dark"] .bny-level-soft-lock{background:linear-gradient(135deg,#17202f,#2a1e2a)!important;border-color:#45566e!important}
html[data-bunny-theme="dark"] .bny-week-method-card{background:linear-gradient(135deg,#142b40,#2b202d)!important;border-color:var(--border)!important}
html[data-bunny-theme="dark"] .bny-now-card--start{background:linear-gradient(135deg,#302a1e,#17253a)!important}
html[data-bunny-theme="dark"] .bny-now-card--play{background:linear-gradient(135deg,#173128,#17253a)!important}
html[data-bunny-theme="dark"] .bny-now-card--calm{background:linear-gradient(135deg,#29233d,#17253a)!important}
html[data-bunny-theme="dark"] .bny-session-tab.is-active{background:#35212f!important;border-color:#bf6c90!important;box-shadow:0 12px 30px rgba(0,0,0,.25)}
html[data-bunny-theme="dark"] .bny-session-tab :is(strong,small){color:inherit!important}
html[data-bunny-theme="dark"] .bny-session-tab small{color:var(--muted)!important}
html[data-bunny-theme="dark"] .bny-audio-level-preview__head{border-color:var(--border)!important}
html[data-bunny-theme="dark"] .program-level-block--audio .bny-audio-level-player{background:#121e2f!important;border-color:var(--border)!important}
html[data-bunny-theme="dark"] .program-single-hero--audio .program-single-hero__visual img{background:#1a293d!important}
html[data-bunny-theme="dark"] .bny-audio-level-preview__list li>span{background:#1b3047!important;color:#c7ddec!important}
html[data-bunny-theme="dark"] .bny-audio-level-preview__list li>b{background:#121e2f!important;color:#aebdce!important}
html[data-bunny-theme="dark"] .bny-level-lock-overlay{background:linear-gradient(135deg,rgba(13,22,35,.9),rgba(37,25,34,.92))!important}
html[data-bunny-theme="dark"] :is(.bny-level-lock-overlay__icon,.bny-level-modal__icon){background:linear-gradient(145deg,#172f45,#35212f)!important}
html[data-bunny-theme="dark"] .bny-level-modal__backdrop{background:rgba(4,9,16,.74)!important}
html[data-bunny-theme="dark"] .bny-level-modal__close{background:#152237!important;border-color:var(--border)!important;color:var(--ink)!important}
html[data-bunny-theme="dark"] .bny-level-modal__notice{background:linear-gradient(135deg,#302a20,#172b40)!important}
html[data-bunny-theme="dark"] .bny-level-modal__status{background:#3a2028!important;color:#ffb8c7!important}
html[data-bunny-theme="dark"] :is(.program-level-list--audio,.program-level-list--mixed) .program-level-block.is-soft-locked.is-level-locked-compact .program-level-block__surface{
  background:linear-gradient(135deg,#152437,#2a1e2a)!important;
  border-color:var(--border)!important;
}

/* Matching access/progress rail for unlocked and softly locked level cards. */
.bny-level-card-progress{display:flex;flex-direction:column;gap:8px;padding:0 22px 18px}
.bny-level-card-progress__label{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;font-size:11px;font-weight:850;color:#657b89}
.bny-level-card-progress .bny-linear-progress{width:100%}
.bny-linear-progress{position:relative;width:100%;height:9px;overflow:hidden;border-radius:999px;background:#e5edf3;border:1px solid rgba(75,105,124,.1)}
.bny-linear-progress>i,.bny-linear-progress>span{display:block;height:100%;min-width:0;border-radius:inherit;background:linear-gradient(90deg,#7ca8c8,#c77b9d);transition:width .35s ease}
.bny-level-card-progress.is-unlocked .bny-linear-progress>i{width:100%}
.bny-level-card-progress.is-locked .bny-linear-progress>i{width:12%!important;background:linear-gradient(90deg,#8a7180,#655765)}
html[data-bunny-theme="dark"] .bny-level-card-progress__label{color:var(--muted)}
html[data-bunny-theme="dark"] .bny-linear-progress{background:#101a29;border-color:#2b3b50}
html[data-bunny-theme="dark"] .bny-linear-progress>i,
html[data-bunny-theme="dark"] .bny-linear-progress>span{background:linear-gradient(90deg,#4b82aa,#bd668c)}
html[data-bunny-theme="dark"] .bny-level-card-progress.is-locked .bny-linear-progress>i{background:linear-gradient(90deg,#735666,#4b4050)}

/* Library filters and search. */
html[data-bunny-theme="dark"] .library-filter-form__actions{border-color:#35465d!important}
html[data-bunny-theme="dark"] .library-field label{color:#becbdd!important}
html[data-bunny-theme="dark"] :is(.library-control>.bunny-icon,.library-field label .bunny-icon,.library-filter-summary>.bunny-icon,.library-result-head .bunny-icon){color:#d2ace6!important}
html[data-bunny-theme="dark"] .library-control::after{border-color:#ae9bc4}
html[data-bunny-theme="dark"] .bunny-select__trigger{border-color:#354a65;background:#14243a;color:#f1f4fa;box-shadow:0 7px 18px rgba(0,0,0,.13)}
html[data-bunny-theme="dark"] .bunny-select__trigger::after{border-color:#c4a9db}
html[data-bunny-theme="dark"] .bunny-select.is-open .bunny-select__trigger{border-color:#bd81ad;box-shadow:0 0 0 4px rgba(189,103,151,.16),0 14px 32px rgba(0,0,0,.28)}
html[data-bunny-theme="dark"] .bunny-select__menu{border-color:#354a64;background:rgba(15,27,43,.98);box-shadow:0 24px 54px rgba(0,0,0,.42)}
html[data-bunny-theme="dark"] .bunny-select__option{color:#dbe4ef}
html[data-bunny-theme="dark"] .bunny-select__option::after{color:#efb5d0}
html[data-bunny-theme="dark"] .bunny-select__option:hover,html[data-bunny-theme="dark"] .bunny-select__option:focus-visible{background:#1d3149;color:#fff}
html[data-bunny-theme="dark"] .bunny-select__option.is-selected{background:linear-gradient(135deg,#213a52,#35283f);color:#f6d7e6}
html[data-bunny-theme="dark"] .bunny-select__menu::-webkit-scrollbar-thumb{background:#52627a;background-clip:padding-box}
html[data-bunny-theme="dark"] .library-filter-reset{color:var(--ink)!important}
html[data-bunny-theme="dark"] .library-filter-summary{color:var(--muted)!important}
html[data-bunny-theme="dark"] .library-filter-summary strong{color:var(--ink)!important}
html[data-bunny-theme="dark"] .library-result-head{color:var(--muted)!important}
html[data-bunny-theme="dark"] .library-result-head strong{color:var(--ink)!important}
html[data-bunny-theme="dark"] .cartoon-live-search__icon{background:linear-gradient(135deg,#1b3047,#342331)!important}
html[data-bunny-theme="dark"] .cartoon-live-search__clear{background:#121e2f!important;color:#aebdce!important}
html[data-bunny-theme="dark"] .cartoon-live-search__clear:hover{background:#382331!important;color:#f0acc5!important}
html[data-bunny-theme="dark"] .cartoon-search-empty{background:linear-gradient(135deg,#142033,#281c28)!important;border-color:#40536b!important}

/* Media players. */
html[data-bunny-theme="dark"] .content-single-hero__visual{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
html[data-bunny-theme="dark"] .content-single-hero__visual>span{background:transparent!important;border-color:transparent!important;box-shadow:none!important;--ph-secondary:transparent!important}
html[data-bunny-theme="dark"] .bunny-video-fallback--server{background:linear-gradient(135deg,#142a40,#2e1d2a)!important;border-color:var(--border)!important}
html[data-bunny-theme="dark"] .bunny-video-fallback__icon{background:transparent!important;color:#d9b9ec!important;box-shadow:none!important}
html[data-bunny-theme="dark"] .plyr{
  --plyr-color-main:#d8799f;
  --plyr-video-background:#070d16;
  --plyr-menu-background:rgba(24,37,56,.98);
  --plyr-menu-color:#eef5ff;
  --plyr-audio-controls-background:#182538;
  --plyr-audio-control-color:#eef5ff;
  --plyr-audio-control-color-hover:#fff;
  --plyr-control-icon-size:17px;
}
html[data-bunny-theme="dark"] .plyr--audio .plyr__controls{background:#182538!important;color:#eef5ff!important;border-color:var(--border)!important}
html[data-bunny-theme="dark"] .plyr__menu__container{background:#182538!important;color:#eef5ff!important;border:1px solid var(--border)!important}
html[data-bunny-theme="dark"] .plyr__menu__container::after{border-top-color:#182538!important}

/* Coloring game: chrome becomes dark, but the drawing paper and swatches stay true. */
html[data-bunny-theme="dark"] :is(.bny-coloring,.bny-coloring__shell,.bny-coloring__card,.bny-coloring__toolbar,.bny-coloring__footer){background:#162338!important;color:var(--ink)!important;border-color:var(--border)!important}
html[data-bunny-theme="dark"] .bny-coloring button:not(.bny-coloring__swatch):not([data-color]){background:#1c2b40!important;color:var(--ink)!important;border-color:#3a4d66!important}
html[data-bunny-theme="dark"] :is(.bny-coloring__viewport,.bny-coloring__paper,.bny-coloring canvas){background:#fff!important;color-scheme:light;border-color:#4b5f78!important}
html[data-bunny-theme="dark"] :is(.bny-coloring__swatch,[data-color]){color-scheme:light}

/* Final call to action and footer. */
html[data-bunny-theme="dark"] .final-cta{
  background:
    radial-gradient(circle at 18% 28%,rgba(68,105,136,.2),transparent 24%),
    radial-gradient(circle at 82% 75%,rgba(133,70,99,.2),transparent 23%),
    linear-gradient(135deg,#13263a,#2b1d2a)!important;
  color:var(--ink)!important;
}
html[data-bunny-theme="dark"] .final-cta .be3-final-cta{background:rgba(19,31,48,.82)!important;border-color:#374a63!important;box-shadow:0 26px 74px rgba(0,0,0,.3)!important}
html[data-bunny-theme="dark"] .final-cta :is(h2,p){color:inherit!important}
html[data-bunny-theme="dark"] .final-cta p{color:var(--muted)!important}
html[data-bunny-theme="dark"] .site-footer{background:#090f19!important;color:#eef5ff!important;border-top:1px solid #27364b}
html[data-bunny-theme="dark"] .footer-bottom{border-color:#27364b!important}
html[data-bunny-theme="dark"] :is(.footer-brand>p,.site-footer li a,.site-footer section>p){color:#a8b7c8!important}
html[data-bunny-theme="dark"] .social-links a{background:#152238!important;color:#d5e3ef!important}
html[data-bunny-theme="dark"] .newsletter-form input{background:#121d2e!important;border-color:#2d3d54!important;color:var(--ink)!important}
html[data-bunny-theme="dark"] .newsletter-form button{background:#9d506f!important;color:#fff!important}

/* WordPress/editor content that is not tied to one template class. */
html[data-bunny-theme="dark"] :is(.generic-content,.single-content,.content-entry,.content-body-copy,.entry-content) :is(table,th,td){border-color:var(--border)!important}
html[data-bunny-theme="dark"] :is(.generic-content,.single-content,.content-entry,.content-body-copy,.entry-content) :is(th,thead td){background:#17263a!important;color:var(--ink)!important}
html[data-bunny-theme="dark"] :is(.generic-content,.single-content,.content-entry,.content-body-copy,.entry-content) tbody tr:nth-child(even){background:#142033}
html[data-bunny-theme="dark"] :is(.generic-content,.single-content,.content-entry,.content-body-copy,.entry-content) blockquote{background:#142238!important;border-color:#8e4564!important;color:#d4dfeb!important}
html[data-bunny-theme="dark"] :is(.generic-content,.single-content,.content-entry,.content-body-copy,.entry-content) :is(mark,.has-inline-color){border-radius:5px}
html[data-bunny-theme="dark"] :is(.generic-content,.single-content,.content-entry,.content-body-copy,.entry-content) mark{background:#5a4924;color:#fff1bf}
html[data-bunny-theme="dark"] :is(.generic-content,.single-content,.content-entry,.content-body-copy,.entry-content) a:not(.bunny-btn):not(.bny-action){color:#a8cdea;text-decoration-color:#5f7892}

@media(max-width:700px){
  .theme-toggle{width:44px;height:42px}
  .header-actions{gap:6px}
  .bny-level-card-progress{padding:0 16px 16px}
}

@media(prefers-reduced-motion:reduce){
  html.bunny-theme-ready body,
  html.bunny-theme-ready .site-header,
  html.bunny-theme-ready .site-header .header-inner,
  html.bunny-theme-ready .site-main,
  html.bunny-theme-ready .site-footer,
  html.bunny-theme-ready :is(input,textarea,select,.theme-toggle__track,.theme-toggle__thumb),
  .bny-linear-progress>i,
  .bny-linear-progress>span{transition:none!important}
}


/* Bunny English 4.3.12 — mobile theme toggle geometry fix */
.theme-toggle__track{
  box-sizing:border-box!important;
}
.theme-toggle__thumb{
  top:50%!important;
  right:4px!important;
  transform:translateY(-50%)!important;
  transition:right .24s ease,background .24s ease,box-shadow .24s ease!important;
}
html[data-bunny-theme="dark"] .theme-toggle__thumb{
  right:calc(100% - 24px)!important;
  transform:translateY(-50%)!important;
}

@media(max-width:700px){
  .header-actions > .theme-toggle{
    width:44px!important;
    height:44px!important;
    min-height:44px!important;
    border-radius:13px!important;
  }
  .theme-toggle__track{
    width:42px!important;
    height:24px!important;
    padding:0 4px!important;
  }
  .theme-toggle__icon{
    width:14px!important;
    height:14px!important;
  }
  .theme-toggle__icon .bunny-icon{
    width:13px!important;
    height:13px!important;
  }
  .theme-toggle__thumb{
    width:18px!important;
    height:18px!important;
    right:2px!important;
  }
  html[data-bunny-theme="dark"] .theme-toggle__thumb{
    right:calc(100% - 20px)!important;
  }
}

/* Bunny English 4.3.68 — content single hero dark parity */
html[data-bunny-theme="dark"] .content-single-hero__visual{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
html[data-bunny-theme="dark"] .content-single-hero__visual>span{background:rgba(18,33,52,.58)!important;border-color:rgba(148,174,198,.14)!important;box-shadow:0 18px 42px rgba(0,0,0,.22)!important}
