@charset "UTF-8";
/* Generated from exact Learnaroo theme style.css. Original rule order is preserved. */
/*
Theme Name: Learnaroo
Theme URI: https://learnaroohub.com
Author: Humaira Ahmed
Author URI: https://learnaroohub.com/about/
Description: The Learnaroo Learning Engine — a vibrant, child-safe educational platform for UK families, teachers and schools. EYFS to GCSE.
Version: 2.45.8
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: learnaroo
Tags: education, children, e-learning, uk-curriculum, accessibility-ready
*/

/* ==========================================================================
   01 — RESET + BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Nunito', sans-serif; font-size: 16px; line-height: 1.6; color: #1A1A2E; background: #fff; -webkit-font-smoothing: antialiased; }
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }
input, select, textarea, button { font: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: 'Fredoka', sans-serif; font-weight: 700; line-height: 1.2; color: #1A1A2E; }

/* ==========================================================================
   02 — VARIABLES
   ========================================================================== */
:root {
  --lwh-coral: #E91E63;
  --lwh-coral-dark: #C2185B;
  --lwh-coral-light: #FCE4EC;
  --lwh-purple: #6B2FA0;
  --lwh-purple-dark: #4A148C;
  --lwh-purple-light: #F3E5F5;
  --lwh-yellow: #FFD700;
  --lwh-yellow-light: #FFFDE7;
  --lwh-ink: #1A1A2E;
  --lwh-ink-soft: #4A4A6A;
  --lwh-grey: #6B7280;
  --lwh-grey-light: #F3F4F6;
  --lwh-white: #FFFFFF;
  --lwh-border: #E5E7EB;
  --lwh-success: #22C55E;
  --lwh-teal: #0D9488;
  --lwh-error: #EF4444;
  --lwh-warning: #F59E0B;
  --lwh-radius: 16px;
  --lwh-radius-sm: 10px;
  --lwh-radius-xs: 6px;
  --lwh-radius-pill: 999px;
  --lwh-shadow-sm: 0 1px 3px rgba(26,26,46,0.06);
  --lwh-shadow-md: 0 4px 12px rgba(26,26,46,0.08);
  --lwh-shadow-lg: 0 12px 32px rgba(26,26,46,0.12);
  --lwh-shadow-hover: 0 8px 24px rgba(233,30,99,0.15);
  --lwh-container: min(95%, 1200px);
  --lwh-section-pad: clamp(3rem, 6vh, 5rem);
  /* Sprint 39 — richer accent palette for the playful desktop redesign.
     Used only inside min-width:900px enhancement rules, so mobile is untouched. */
  --lwh-tangerine: #FF7A1A;
  --lwh-sky: #2BB3FF;
  --lwh-lime: #7BD938;
  --lwh-grape: #9B4DFF;
  --lwh-bubble: #FF4FA3;
  --lwh-cream: #FFF6E9;
  --lwh-mint-bg: #EAFBF3;
  --lwh-sky-bg: #E8F6FF;
  --lwh-grad-hero: linear-gradient(135deg, #4A148C 0%, #6B2FA0 45%, #B5179E 80%, #E91E63 100%);
  --lwh-grad-sunset: linear-gradient(120deg, #FF7A1A 0%, #E91E63 55%, #9B4DFF 100%);
  --lwh-grad-candy: linear-gradient(135deg, #FF4FA3 0%, #9B4DFF 100%);

  /* Legacy compat aliases */
  --lh-display: 'Fredoka', sans-serif;
  --lh-font: 'Nunito', sans-serif;
  --lh-flame: #E91E63;
  --lh-ink: #1A1A2E;
  --lh-ink-soft: #4A4A6A;
}

/* ==========================================================================
   03 — TYPOGRAPHY
   ========================================================================== */
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { margin-bottom: 1rem; }
.lwh-eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--lwh-coral); margin-bottom: .5rem;
}
.lwh-section-head { text-align: center; margin-bottom: 2.5rem; }
.lwh-section-head h2 { margin-bottom: .6rem; }
.lwh-section-head p { color: var(--lwh-grey); max-width: 650px; margin: 0 auto; }

/* ==========================================================================
   04 — BUTTONS
   ========================================================================== */
.lh-btn, .lwh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem 1.4rem; border-radius: var(--lwh-radius-pill);
  font-weight: 700; font-size: .95rem; border: 2px solid transparent;
  transition: all .2s ease; text-decoration: none; line-height: 1.3;
  white-space: nowrap;
}
.lh-btn--flame, .lwh-btn--coral, .lh-btn--coral {
  background: var(--lwh-coral); color: #fff; border-color: var(--lwh-coral);
}
.lh-btn--flame:hover, .lwh-btn--coral:hover { background: var(--lwh-coral-dark); border-color: var(--lwh-coral-dark); }
.lwh-btn--purple { background: var(--lwh-purple); color: #fff; border-color: var(--lwh-purple); }
.lwh-btn--purple:hover { background: var(--lwh-purple-dark); }
.lh-btn--ghost, .lwh-btn--ghost { background: transparent; }
.lh-btn--sm, .lwh-btn--sm { padding: .45rem .9rem; font-size: .85rem; }
.lh-btn--lg, .lwh-btn--lg { padding: .85rem 1.8rem; font-size: 1.05rem; }

/* ==========================================================================
   05 — LAYOUT UTILITIES
   ========================================================================== */
.lwh-container { width: var(--lwh-container); margin: 0 auto; }
/* Wave divider */
.lwh-wave { width: 100%; line-height: 0; overflow: hidden; }
.lwh-wave svg { width: 100%; height: auto; display: block; }


/* ==========================================================================
   06 — TOP BAR + HEADER + NAV
   ========================================================================== */

/* Top bar */
:root { --lh-topbar-h: 40px; }
.lh-topbar {
  /* Distinct contrasting bar so it never fuses into the purple hero behind it.
     A vivid coral→tangerine gradient with a bottom border reads as its own
     independent strip above everything else. */
  background: linear-gradient(90deg, var(--lwh-coral) 0%, var(--lwh-tangerine, #FF7A1A) 100%);
  color: #fff; position: relative; z-index: 1200;
  height: var(--lh-topbar-h); display: flex; align-items: center;
  font-size: .84rem; font-weight: 700; letter-spacing: .01em;
  overflow: hidden; white-space: nowrap;
  border-bottom: 2px solid rgba(255,255,255,.18);
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
/* The track holds two duplicated sets of messages and slides left forever,
   so the strip reads as a continuous marquee on every device. */
.lh-topbar__track {
  display: inline-block; white-space: nowrap;
  animation: lwhMarquee 38s linear infinite;
  will-change: transform;
}
/* Mobile hamburger */
.lh-header__burger { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--lwh-ink); padding: .25rem; }
@media (max-width: 960px) {
  .lh-header__burger { display: block; }
  .lh-nav__list { display: none; }
}

/* Mobile drawer */
.lh-drawer { position: fixed; top: 0; right: -100%; width: min(85vw, 360px); height: 100vh;height: 100dvh; background: #fff; z-index: 10001; box-shadow: var(--lwh-shadow-lg); transition: right .3s ease; overflow-y: auto; padding: 1.5rem; }
.lh-drawer.lh-drawer--open { right: 0; }
.lh-drawer__backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 10000; opacity: 0; pointer-events: none; transition: opacity .25s; }
.lh-drawer__list { margin-top: 2rem; }
.lh-drawer__item { border-bottom: 1px solid var(--lwh-border); }
.lh-drawer__link, .lh-drawer__toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: .85rem 0; font-size: 1rem; font-weight: 700; color: var(--lwh-ink); background: none; border: 0; text-align: left; }
.lh-drawer__sub { padding: 0 0 .5rem 1rem; }
.lh-drawer__sub a { display: block; padding: .45rem 0; font-size: .92rem; color: var(--lwh-grey); font-weight: 600; }
.lh-drawer__sub a:hover { color: var(--lwh-coral); }
.lh-section__h { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; margin-bottom: .6rem; }
.lh-section__sub { color: var(--lwh-grey); max-width: 650px; margin: 0 auto; }

/* ==========================================================================
   10 — RESOURCE CARDS (Grid + List)
   ========================================================================== */

/* Grid wrapper */
/* ════════════════════════════════════════════════════════════════
   CATALOGUE — WILDCARD card system (ticket grid + colour-coded list).
   ONE markup, two layouts via CSS. Type colour drives spine + icon in
   both views. List view is purpose-built (no reused grid markup) so it
   never duplicates or overflows.
   ════════════════════════════════════════════════════════════════ */

/* Grid wrapper */
.lh-res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
@media (max-width: 760px) { .lh-res-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .7rem; } }

/* Type colour keys — c1/c2 used by spine + icon gradient */
.lh-rc--quiz   { --rc1:#2BB3FF; --rc2:#185FA5; }
.lh-rc--elearn { --rc1:#9B4DFF; --rc2:#6B2FA0; }
.lh-rc--print  { --rc1:#E91E63; --rc2:#C2185B; }
.lh-rc--flash  { --rc1:#FF7A1A; --rc2:#E8590C; }
.lh-rc--game   { --rc1:#0D9488; --rc2:#0A6E66; }
.lh-rc--book   { --rc1:#C2185B; --rc2:#8E1145; }
.lh-rc--paper  { --rc1:#6B2FA0; --rc2:#4A148C; }
.lh-rc--video  { --rc1:#6B2FA0; --rc2:#B5179E; }
.lh-rc--audio  { --rc1:#0D9488; --rc2:#13a99b; }

/* ─────────── GRID = "ticket" cards ─────────── */
.lh-rc { position: relative; background: #fff; border: 1px solid var(--lwh-border); border-radius: var(--lwh-radius); overflow: hidden; transition: transform .16s, box-shadow .16s; box-shadow: 0 6px 18px rgba(74,20,140,.08); }
.lh-rc:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(74,20,140,.16); }
.lh-rc__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--lwh-ink); }

/* type spine: top bar in grid, left bar in list */
.lh-rc__spine { display: block; height: 7px; width: 100%; background: linear-gradient(90deg, var(--rc1), var(--rc2)); }

/* icon tile */
.lh-rc__icon { width: 50px; height: 50px; margin: 1rem 0 0 1rem; border-radius: 15px; background: linear-gradient(135deg, var(--rc1), var(--rc2)); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(0,0,0,.12); }
.lh-rc__icon .lh-res-card__icon { font-size: 1.5rem; line-height: 1; filter: saturate(0) brightness(3); } /* emoji rendered light on the gradient tile */

/* main: title + desc + (grid) chips */
.lh-rc__main { padding: .7rem 1rem 0; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.lh-rc__title { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.02rem; line-height: 1.22; margin-bottom: .35rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lh-rc__desc { font-size: .82rem; color: var(--lwh-ink-soft, #4A4A6A); line-height: 1.45; margin-bottom: .7rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lh-rc__chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; }

.lh-tag { font-size: .7rem; font-weight: 700; padding: .22rem .55rem; border-radius: 8px; white-space: nowrap; }
.lh-tag--stage    { background: #E9EFFF; color: #3257b5; }
.lh-tag--subject  { background: #FFF3DA; color: #9a6a12; }
.lh-tag--duration { background: #F0ECF7; color: #6b5b8a; }

/* perforated tear-line */
.lh-rc__perf { display: block; margin: .85rem 0 0; border-top: 2px dashed var(--lwh-border); position: relative; }
.lh-rc__perf::before, .lh-rc__perf::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--lwh-bg, #F6F4FB); }
.lh-rc__perf::before { left: -9px; } .lh-rc__perf::after { right: -9px; }

/* footer: FREE stub + Play */
.lh-rc__foot { display: flex; align-items: center; justify-content: space-between; padding: .7rem 1rem .9rem; }
.lh-rc__tier { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: .7rem; padding: .25rem .6rem; border-radius: var(--lwh-radius-pill); text-transform: uppercase; }
.lh-tier--free  { background: #D8F5E6; color: #157a4a; }
.lh-tier--pro   { background: #E5ECFF; color: #3257b5; }
.lh-tier--elite { background: #F3E0FB; color: #7a2fa0; }
.lh-rc__go { display: inline-flex; align-items: center; gap: .4rem; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: .85rem; color: #fff; background: var(--lwh-success, #22A565); padding: .45rem .95rem; border-radius: var(--lwh-radius-pill); box-shadow: 0 4px 10px rgba(34,165,101,.4); }
.lh-rc__go-arrow { font-size: .6rem; }

/* favourite heart (grid) */
.lh-rc .lh-fav-btn { position: absolute; top: 12px; right: 12px; z-index: 5; opacity: 0; transition: opacity .2s; background: rgba(255,255,255,.92); border: 0; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: .95rem; cursor: pointer; padding: 0; }
.lh-rc:hover .lh-fav-btn { opacity: 1; }
.lh-rc .lh-fav-btn.is-favourited { opacity: 1; color: var(--lwh-coral); }
.lh-rc__assign { position: absolute; bottom: 12px; left: 12px; z-index: 4; background: rgba(255,255,255,.92); border: 0; border-radius: 8px; font-size: 1rem; cursor: pointer; padding: .1rem .3rem; }

/* elements that belong to the OTHER view — hidden in grid */
.lh-res-grid:not(.lh-grid--list) .lh-rc__listtags,
.lh-res-grid:not(.lh-grid--list) .lh-rc__listtype,
.lh-res-grid:not(.lh-grid--list) .lh-rc__play { display: none; }
/* legacy leftovers, hidden globally */
.lh-res-card__thumb, .lh-tier-ribbon, .lh-list-col, .lh-list-header, .lh-res-card__col, .lh-res-card__tier-badge { display: none; }

/* ─────────── LIST = colour-coded play-strips ─────────── */
.lh-res-grid.lh-grid--list { display: flex; flex-direction: column; gap: .6rem; grid-template-columns: none; }
/* Pagination */

/* Mobile filter */
@media (max-width: 959px) {
  .lh-catalogue__sidebar { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100vh;height: 100dvh; z-index: 10000; background: #fff; padding: 1rem 1.25rem 5rem; overflow-y: auto; transform: translateY(100%); transition: transform .3s cubic-bezier(.4,0,.2,1); box-shadow: 0 -12px 40px rgba(0,0,0,.2); border-radius: 20px 20px 0 0; }
  .lh-catalogue.is-filter-open .lh-catalogue__sidebar { transform: translateY(0); }
  .lh-catalogue.is-filter-open::before { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9999; backdrop-filter: blur(4px); }
  .lh-catalogue::before { opacity: 0; pointer-events: none; transition: opacity .25s; }
  .lh-catalogue__mobile-trigger { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 9000; display: inline-flex; align-items: center; gap: .5rem; background: var(--lwh-coral); color: #fff; border: 0; border-radius: var(--lwh-radius-pill); padding: .85rem 1.5rem; font-weight: 700; font-size: .95rem; box-shadow: 0 8px 28px rgba(233,30,99,.4); }
}
@media (min-width: 960px) { .lh-catalogue__mobile-trigger, .lh-catalogue__drawer-head, .lh-catalogue__drawer-apply { display: none; } }

/* ==========================================================================
   12 — RESOURCE PAGE (viewer + toolbar + meta)
   ========================================================================== */
.lh-rp { max-width: min(95%, 900px); margin: 0 auto; padding: 1.5rem 0; }
/* Wide document layout: viewer fills the page, guidance moves to a right rail */
.lh-rp--wide { max-width: min(96%, 1320px); }
.lh-rp-stage { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.5rem; align-items: start; margin: 1rem 0; }
.lh-rp-stage__main { min-width: 0; }
.lh-rp-stage__side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 1rem; }
.lh-rp-stage__side .lh-rp-about,
.lh-rp-stage__side .lh-rp-meta { margin: 0; }
.lh-rp-stage__side .lh-rp-meta { grid-template-columns: 1fr; }
/* No inner scroll inside the About panel — it renders at natural height. */
.lh-rp-stage__side .lh-rp-about__body { max-height: none; overflow: visible; }
@media (max-width: 980px) {
  .lh-rp-stage { grid-template-columns: 1fr; }
  .lh-rp-stage__side { position: static; }
}
/* Short "about" statement that sits directly above the activity. */
.lh-rp-stage__main .lh-rp-statement { font-size: 1.02rem; line-height: 1.6; color: var(--lwh-ink); margin: .1rem 0 1rem; }
.lh-rp-stage__main .lh-rp-statement p { margin: 0 0 .6rem; }
.lh-rp-stage__main .lh-rp-statement p:last-child { margin-bottom: 0; }
/* Progress / sign-in bar now sits above the activity — give it breathing room. */
.lh-rp-stage__main .lh-rp-progress { margin: 0 0 1rem; }
.lh-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; padding: .85rem 0; border-bottom: 1px solid var(--lwh-border); margin-bottom: .75rem; }
.lh-toolbar__btn { display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .85rem; border: 1.5px solid var(--lwh-border); border-radius: var(--lwh-radius-sm); background: #fff; color: var(--lwh-ink); font-size: .86rem; font-weight: 700; transition: border-color .15s, color .15s; white-space: nowrap; }
.lh-toolbar__btn:hover { border-color: var(--lwh-coral); color: var(--lwh-coral); }
.lh-toolbar__btn--assign { background: var(--lwh-coral); color: #fff; border-color: var(--lwh-coral); }
.lh-toolbar__btn--assign:hover { background: var(--lwh-coral-dark); }
.lh-toolbar__btn--fav.is-active { background: var(--lwh-coral-light); border-color: #F8BBD0; color: var(--lwh-coral); }
.lh-toolbar__btn--fs { margin-left: auto; }
@media (max-width: 640px) { .lh-toolbar__btn { font-size: .8rem; padding: .4rem .6rem; } .lh-toolbar__btn--fs { margin-left: 0; } }

/* Viewer */
.lh-viewer { border-radius: var(--lwh-radius); overflow: hidden; margin: 1rem 0; }
.lh-rp-viewer { margin: 1rem 0; }
.lh-rp-viewer:fullscreen, .lh-rp-viewer:-webkit-full-screen { background: #fff; padding: 1rem; overflow-y: auto; }

/* About box */
.lh-rp-about { border: 1.5px solid var(--lwh-border); border-radius: var(--lwh-radius); margin: 1.25rem 0; }
/* Progress bar */
.lh-progress { height: 8px; background: var(--lwh-grey-light); border-radius: 4px; overflow: hidden; }
.lh-progress__bar { height: 100%; background: linear-gradient(90deg, var(--lwh-success), #4ADE80); border-radius: 4px; transition: width .4s ease; }

/* Related modules */
.lh-rp-related { margin: 2rem 0; padding-top: 1.5rem; border-top: 1px solid var(--lwh-border); }
.lh-rp-related h2 { font-size: 1.3rem; margin-bottom: 1rem; }

/* ==========================================================================
   13 — HOMEPAGE SECTIONS
   ========================================================================== */
.lh-home-section { width: var(--lwh-container); margin: 0 auto; padding: var(--lwh-section-pad) 0; }

/* Trust strip */
.lh-home-trust { background: var(--lwh-ink); color: #fff; padding: .85rem 1.5rem; margin: 0; }
@media (max-width: 782px) { .admin-bar .lh-header { top: 46px; } }

/* Print */
@media print { .lh-header, .lh-footer, .lh-topbar, .lh-trust-marquee, .lh-curricbar, .lh-toolbar, .lh-catalogue__sidebar { display: none; } }


/* ==========================================================================
   19 — COMPAT: Match actual HTML class names in templates
   ========================================================================== */

/* Burger */
.lh-burger { display: none; background: none; border: 0; width: 36px; height: 36px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; padding: 4px; }
.lh-burger span { display: block; width: 24px; height: 3px; background: var(--lwh-ink); border-radius: 2px; transition: all .2s; }
/* On transparent-header pages the burger sits over a dark hero — make it white
   and bold so it's clearly visible. */
.lh-homepage-body .lh-burger span,
.lh-hero-header-body .lh-burger span { background: #fff; }
/* Open state → X */
.lh-burger--open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.lh-burger--open span:nth-child(2) { opacity: 0; }
.lh-burger--open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 960px) { .lh-burger { display: flex; } }

/* Header actions (auth area) */
.lh-header__actions { display: flex; align-items: center; gap: .5rem; }
@media (max-width: 960px) { .lh-header__actions { display: none; } }

.lh-curricbar__sub { font-size: .72rem; color: var(--lwh-grey); display: block; }
.lh-curricbar__all { font-size: .82rem; font-weight: 700; color: var(--lwh-coral); white-space: nowrap; margin-left: auto; }

/* Drawer overlay */
.lh-drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 10000; transition: opacity .25s; }
.lh-drawer-overlay[hidden] { display: none; }
.lh-drawer__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--lwh-border); }
.lh-drawer__close { background: none; border: 0; font-size: 1.8rem; color: var(--lwh-ink); cursor: pointer; }
.entry-content li { margin-bottom: .35rem; }

/* Page title */
.lh-page-title { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 1rem; padding: 1.5rem 0 0; }

/* Generic form styles */
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"], input[type="search"], select, textarea {
  border: 1.5px solid var(--lwh-border); border-radius: var(--lwh-radius-sm);
  padding: .55rem .75rem; font-size: .92rem; width: 100%;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--lwh-coral); outline: none; box-shadow: 0 0 0 3px rgba(233,30,99,.1); }

/* WP block compat */
.wp-block-image { margin: 1.5rem 0; }
.lh-assign-group__members[hidden] { display: none; }
.lh-assign-member:disabled + .lh-assign-modal__avatar { opacity: .55; }

/* ==========================================================================
   24 — VIEWER (PDF, embed, native players)
   ========================================================================== */
.lh-viewer { border-radius: var(--lwh-radius); overflow: hidden; margin: 1rem 0; background: #fff; border: 1.5px solid var(--lwh-border); }
.lh-viewer--restricted-embed { text-align: center; }
.lh-viewer__lockbanner { background: var(--lwh-coral-light); padding: .75rem 1rem; font-size: .88rem; text-align: center; }
.lh-viewer__canvas-wrap { position: relative; overflow: auto; max-height: 80vh; }
.lh-viewer__canvas { display: block; margin: 0 auto; }
.lh-viewer__toolbar { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .6rem; background: var(--lwh-ink); }
.lh-viewer__toolbar button { background: rgba(255,255,255,.1); border: 0; color: #fff; padding: .35rem .6rem; border-radius: var(--lwh-radius-xs); font-size: .85rem; cursor: pointer; }
.lh-viewer__toolbar button:hover { background: rgba(255,255,255,.2); }
.lh-viewer__page { color: rgba(255,255,255,.7); font-size: .82rem; font-weight: 600; }
.lh-viewer__zoom-label { color: rgba(255,255,255,.7); font-size: .78rem; }
.lh-viewer__nav { display: flex; gap: .35rem; }
.lh-viewer__actions { display: flex; gap: .5rem; justify-content: center; padding: .75rem; }
.lh-viewer__hint { text-align: center; padding: .5rem; font-size: .82rem; color: var(--lwh-grey); }
.lh-viewer__error { text-align: center; padding: 2rem; color: var(--lwh-error); }
.lh-viewer--embed-html iframe, .lh-viewer--embed-url iframe { width: 100%; min-height: 500px; border: 0; border-radius: var(--lwh-radius); }
.lh-viewer--inline-html { padding: 1rem; }
.lh-viewer--empty { padding: 2rem; text-align: center; color: var(--lwh-grey); }

/* ==========================================================================
   25 — RESOURCE PAGE INTERNALS
   ========================================================================== */
.lh-rp-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 1rem 0; }
.lh-rp-title__type-icon { font-size: 1.2rem; }
.lh-rp-title__pill { font-size: .75rem; font-weight: 800; padding: .2rem .5rem; border-radius: var(--lwh-radius-pill); }
.lh-rp-progress { margin: .5rem 0 1rem; }
.lh-rp-progress__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .35rem; font-size: .82rem; }
.lh-rp-progress__label { font-weight: 700; color: var(--lwh-ink); }
.lh-rp-progress__pct { font-weight: 800; color: var(--lwh-coral); }
.lh-rp-progress__bar { height: 8px; background: var(--lwh-grey-light); border-radius: 4px; overflow: hidden; }
.lh-rp-meta__body { font-size: .88rem; color: var(--lwh-grey); line-height: 1.5; }
.lh-rp-meta__sub { font-size: .78rem; color: var(--lwh-grey); margin-top: .25rem; }
.lh-rp-related__h { font-size: 1.2rem; margin-bottom: 1rem; }
.lh-rp-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }

/* ==========================================================================
   26 — AUTH PAGES (backgrounds, shapes, cards)
   ========================================================================== */
.lh-authpage { min-height: 100vh;min-height: 100dvh; display: flex; align-items: stretch; }
.lh-authpage__main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem; position: relative; overflow: hidden; }
.lh-landing__formats { margin: 1rem 0; }
.lh-landing__trust { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; font-size: .82rem; color: var(--lwh-grey); }

/* Viewer modifiers */
.lh-viewer--paper, .lh-viewer--flashcards { }
.lh-viewer__paper { padding: 1rem; }
.lh-viewer__paper-frame { border: 1px solid var(--lwh-border); border-radius: var(--lwh-radius-sm); overflow: hidden; }
.lh-viewer__paper-scroll { max-height: 80vh; overflow-y: auto; }
.lh-viewer__flashcards-wrap { padding: 1rem; text-align: center; }
.lh-viewer__zoom-in, .lh-viewer__zoom-out, .lh-viewer__zoom-reset { background: rgba(255,255,255,.1); border: 0; color: #fff; padding: .3rem .5rem; border-radius: var(--lwh-radius-xs); cursor: pointer; }
.lh-viewer__page-current { font-weight: 800; }
.lh-viewer__page-total { }

.lh-thumb-help { font-size: .78rem; color: var(--lwh-grey); }
.lh-thumb-source { font-size: .82rem; }
.lh-social { display: flex; gap: .5rem; }
.lh-social__btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; transition: background .15s; }
.lh-social__btn:hover { background: var(--lwh-coral); }
/* Hub section variants */
.lh-reshub__section--featured { background: #fff; }
.lh-reshub__section--latest   { background: var(--lwh-grey-light); }

/* Favourite button — login variant (shows login link instead of toggle) */
.lh-fav-btn--login { opacity: .5; }
.lh-fav-btn--login:hover { opacity: 1; }
.lh-fav-icon { font-size: 1rem; line-height: 1; }

/* Free pill sidebar */
.lh-freepill--sidebar { text-align: center; }

/* Filter dropdown internals (the actual summary/label/count/option elements) */
.lh-filterdrop__summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: .55rem .75rem; font-size: .88rem; font-weight: 700;
  cursor: pointer; list-style: none;
}
/* ============================================================================
   SPRINT 38 — HOMEPAGE ENHANCEMENTS (additive; existing rules untouched)
   Mobile sliders for card rows + premium featured variant + mobile centring.
   ============================================================================ */

/* Premium featured row tint (distinguishes from free row) */
.lh-featured--premium { background: var(--lwh-grey-light); }

/* Mobile: turn card rows into swipeable scroll-snap sliders.
   Targets the existing grids used by stage cards, audience strip, and the
   featured rows. Page itself never scrolls sideways (guard below). */
@media (max-width: 679px) {
  .lh-featured__grid,
  .lh-audiences-grid,
  .lh-stage-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    gap: 1rem;
    padding-bottom: 0.75rem;
    scrollbar-width: none;
  }
  /* Every slide is the same width and height so no card looks larger than its
     neighbours (was rendering uneven). */
  .lh-stage-grid > * { scroll-snap-align: center; min-width: 0; height: 100%; }
  .lh-featured__grid::-webkit-scrollbar,
  .lh-audiences-grid::-webkit-scrollbar,
  .lh-stage-grid::-webkit-scrollbar { display: none; }
  .lh-featured__grid > *,
  .lh-audiences-grid > *,
  .lh-stage-grid > * { scroll-snap-align: center; }

  /* Mobile centring — no lonely left-aligned single boxes */
  .lh-hero__copy { text-align: center; }
  .lh-hero__cta { justify-content: center; }
  .lh-hero__trust { text-align: center; }
  .lh-featured__head,
  .lh-section__head { text-align: center; margin-inline: auto; }
}

/* Page-level guard: nothing should ever cause horizontal PAGE scroll */
html, body { overflow-x: clip; max-width: 100%; } /* clip (not hidden) so position:sticky header keeps working */

/* ═══════════════════════════════════════════════════════════════════
   SPRINT 39 — PLAYFUL DESKTOP HOMEPAGE ENHANCEMENT
   Scope: large screens only (min-width: 900px). Mobile/tablet below
   900px is intentionally untouched and renders exactly as before.
   These rules win by source order (appended last), no !important needed —
   except the prefers-reduced-motion override at the very end, where an
   accessibility reset legitimately must win unconditionally.
   ═══════════════════════════════════════════════════════════════════ */
@media (min-width: 900px) {

  /* ---- Section rhythm: alternating coloured bands so no two adjacent
     sections share the same flat background. This alone kills most of
     the "bland" feeling on wide screens. ---- */
  .lh-home-stages   { background: var(--lwh-mint-bg); }
  .lh-home-subjects { background: #fff; }
  .lh-home-types    { background: var(--lwh-cream); }
  .lh-home-audience { background: var(--lwh-sky-bg); }
  .lh-home-how      { background: #fff; }
  .lh-home-faq      { background: var(--lwh-purple-light); }

  /* Generous, confident vertical space on big screens. */
  .lh-home-stages, .lh-home-subjects, .lh-home-types,
  .lh-home-audience, .lh-home-how, .lh-home-faq,
  .lh-home-section { padding-top: 5.5rem; padding-bottom: 5.5rem; }

  /* (Sprint 39 curved-separator overlap removed — Sprint 43 panel layout with
     even margins supersedes it; keeping both caused odd gaps.) */

  /* ---- Bigger, bolder section headings with a gradient accent ---- */
  .lwh-section-head { margin-bottom: 3.5rem; }
  .lwh-section-head h2 {
    font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.08;
    letter-spacing: -0.02em; max-width: 16ch; margin-inline: auto;
  }
  .lwh-section-head .lh-eyebrow {
    font-size: .9rem; padding: .35rem 1rem; border-radius: 999px;
    background: var(--lwh-coral-light); color: var(--lwh-coral-dark);
  }

  /* ---- Grids: use the width. Fixed sensible column counts instead of
     auto-fill packing tiny cards across a huge screen. ---- */
  .lh-stage-grid   { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; max-width: 1200px; margin-inline: auto; }
    .lh-type-grid    { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; max-width: 1100px; margin-inline: auto; }

  /* ---- Stage cards: vivid top accent, lift + tilt on hover ---- */
  .lh-stage-card {
    padding: 1.75rem 1.5rem; border-top-width: 6px; border-radius: 22px;
    box-shadow: 0 6px 20px rgba(26,26,46,.07);
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
  }
  .lh-stage-card:hover { transform: translateY(-10px) rotate(-1.2deg) scale(1.02); box-shadow: 0 22px 44px rgba(26,26,46,.16); }
  .lh-stage-card__label { font-size: 1.6rem; }
  .lh-stage-card__arrow {
    align-self: flex-end; width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center; background: var(--lwh-coral-light);
    color: var(--lwh-coral); font-weight: 800; transition: transform .25s, background .25s;
  }
  .lh-stage-card:hover .lh-stage-card__arrow { transform: translateX(4px); background: var(--lwh-coral); color: #fff; }

  /* ---- Resource-type cards: gradient wash on hover ---- */
  .lh-type-card {
    padding: 2rem 1.5rem; border-radius: 24px; border-width: 2px; position: relative; overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
  }
  .lh-type-card::before {
    content: ""; position: absolute; inset: 0; opacity: 0;
    background: var(--lwh-grad-candy); transition: opacity .3s; z-index: 0;
  }
  .lh-type-card > * { position: relative; z-index: 1; transition: color .3s; }
  .lh-type-card .lh-type-card__icon { font-size: 2.4rem; display: block; margin-bottom: .5rem; }
  .lh-type-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(233,30,99,.2); border-color: transparent; }
  .lh-type-card:hover::before { opacity: 1; }
  .lh-type-card:hover > *, .lh-type-card:hover strong, .lh-type-card:hover p { color: #fff; }

  /* ---- Audience tiles: big, distinct, gradient-edged ---- */
  .lh-audience-tile {
    padding: 2.25rem; border-radius: 26px; border-width: 2px;
    transition: transform .25s, box-shadow .25s;
  }
  .lh-audience-tile:hover { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(43,179,255,.2); }
  .lh-audience-tile__icon { font-size: 2.6rem; display: inline-block; margin-bottom: .4rem; }
  .lh-audience-tile h3 { font-size: 1.5rem; }
  .lh-audience-tile--parent  { border-top: 6px solid var(--lwh-bubble); }
  .lh-audience-tile--teacher { border-top: 6px solid var(--lwh-sky); }
  .lh-audience-tile--school  { border-top: 6px solid var(--lwh-lime); }

  /* ---- Plan cards: featured one lifts and gets a gradient ring ---- */
  .lh-plan-card { padding: 2.5rem 2rem; border-radius: 26px; transition: transform .25s, box-shadow .25s; }
  .lh-plan-card:hover { transform: translateY(-6px); box-shadow: var(--lwh-shadow-lg); }
  .lh-plan-card--featured {
    transform: scale(1.05); border-color: var(--lwh-coral);
    box-shadow: 0 18px 44px rgba(233,30,99,.22);
  }
  .lh-plan-card--featured:hover { transform: scale(1.05) translateY(-6px); }
  .lh-plan-card__price-amount { font-size: 3rem; background: var(--lwh-grad-sunset); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

  /* ---- How-it-works: numbered discs get gradient + connecting dashes ---- */
  .lh-how-grid { max-width: 1000px; margin-inline: auto; position: relative; }
  .lh-how-step__num {
    width: 64px; height: 64px; font-size: 1.7rem; border-radius: 50%;
    background: var(--lwh-grad-candy); color: #fff; display: grid; place-items: center;
    margin: 0 auto 1rem; box-shadow: 0 8px 20px rgba(155,77,255,.3);
  }
  .lh-how-step h3 { font-size: 1.25rem; }

  /* ---- Stats row: gradient numbers, pill chips ---- */
  .lh-stats-row { gap: 1.5rem; margin-top: 1rem; }
  .lh-stat { background: #fff; border-radius: 20px; padding: 1.5rem 2rem; box-shadow: 0 6px 18px rgba(26,26,46,.06); min-width: 180px; }
  .lh-stat__num { font-size: 2.8rem; background: var(--lwh-grad-sunset); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

  /* ---- FAQ: card-style accordions ---- */
  .lh-faq-item { background: #fff; border-radius: 16px; margin-bottom: .9rem; box-shadow: 0 4px 14px rgba(26,26,46,.05); border: 1px solid transparent; transition: border-color .2s; }
  .lh-faq-item[open] { border-color: var(--lwh-coral); }
  .lh-faq-item summary { padding: 1.15rem 1.4rem; font-size: 1.05rem; }

  /* ---- HERO: richer 4-stop gradient + floating blobs + entrance ---- */
  /* Desktop: the hero fills the viewport height (minus the ~108px topbar +
     header above it) and vertically centres its content, so the whole hero is
     visible on load without scrolling. Padding trimmed to fit. Scoped to
     .lh-homepage-body so it overrides the base homepage padding rule. */
  .lh-homepage-body .lh-home-hero {
    background: var(--lwh-grad-hero);
    min-height: calc(100vh - 40px);min-height: calc(100dvh - 40px);
    display: flex; flex-direction: column; justify-content: center;
    padding-top: 2.75rem; padding-bottom: 2.5rem; margin-bottom: 0;
  }
  .lh-home-hero__headline { font-size: clamp(2.8rem, 4.4vw, 4rem); line-height: 1.04; }

  /* Decorative floating blobs in the hero background. */
  .lh-home-hero__blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .35; pointer-events: none; }
  .lh-home-hero__blob--1 { width: 260px; height: 260px; background: var(--lwh-tangerine); top: -60px; left: -40px; animation: lwhFloat 9s ease-in-out infinite; }
  .lh-home-hero__blob--2 { width: 200px; height: 200px; background: var(--lwh-sky); bottom: -50px; right: 8%; animation: lwhFloat 11s ease-in-out infinite reverse; }
  .lh-home-hero__blob--3 { width: 150px; height: 150px; background: var(--lwh-yellow); top: 30%; right: -30px; animation: lwhFloat 7s ease-in-out infinite; }

  /* ---- Final CTA banner: sunset gradient + float ---- */
  .lh-home-cta-banner { background: var(--lwh-grad-sunset); padding: 5rem 2rem; border-radius: 42px 42px 0 0; }
  .lh-home-cta-banner h2 { font-size: clamp(2rem, 3.5vw, 3rem); }

  /* ---- Staggered entrance for section heads + grids on load ---- */
  .lwh-section-head, .lh-stage-grid, .lh-subject-cards, .lh-type-grid,
  .lwh-grid--3, .lh-how-grid, .lh-stats-row {
    animation: lwhRise .7s cubic-bezier(.16,1,.3,1) both;
  }
}

@keyframes lwhFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(-14px) translateX(6px); }
}
.lh-cadence__opt:has(input:checked) { border-color:var(--lwh-purple,#6B2FA0); background:var(--lwh-purple-light,#F3E5F5); color:var(--lwh-purple,#6B2FA0); }
.lh-cadence__opt input { accent-color:var(--lwh-purple,#6B2FA0); }

/* ============================================================
   Sprint 48 — Uniform back-end modal system
   One canonical look for every dashboard/back-end modal. Rather
   than rewrite each modal's markup, we normalise the backdrop and
   panel of all existing modal families to identical tokens so they
   look and behave consistently.
   ============================================================ */
:root{
	--lh-modal-radius:22px;
	--lh-modal-pad:1.8rem;
	--lh-modal-maxw:560px;
	--lh-modal-backdrop:rgba(20,12,40,.55);
	--lh-modal-z:10050;
	--lh-modal-shadow:0 30px 80px rgba(20,12,40,.38);
}

/* --- Backdrops: same colour, blur, z-index across all modals --- */
.lh-assign-modal__backdrop,
.lh-master-assign__backdrop,
.lh-reviewmodal,
.lh-oops-modal,
.lh-agegate-modal,
.lh-childmgr-modal,
.lh-childmgr__modal {
	background:var(--lh-modal-backdrop) !important;
	backdrop-filter:blur(4px) !important;
}
.lh-assign-modal, .lh-master-assign { z-index:var(--lh-modal-z) !important; }
.lh-btn--lg{padding:1.1rem 2.1rem;font-size:1.08rem;}
@media(max-width:900px){.lh-hp__hero-inner,.lh-hp__about,.lh-hp__welcome{grid-template-columns:1fr;}.lh-hp__hero h1{font-size:2.3rem;}.lh-hp__ksgrid,.lh-hp__typegrid,.lh-hp__audgrid,.lh-hp__plangrid,.lh-hp__aboutstats{grid-template-columns:1fr;}}

/* ============================================================
   Resource completion control (Sprint 41) — explicit "mark done"
   for documents & embeds that can't always self-report finishing.
   ============================================================ */
.lh-rp-complete{display:flex;align-items:center;justify-content:center;gap:.8rem;flex-wrap:wrap;margin:1rem 0 .5rem;padding:1rem 1.2rem;background:var(--lwh-bg,#FAF8FD);border:1px solid var(--lwh-border,#ece6f5);border-radius:14px;}
.lh-rp-complete.is-done{background:#f0fdf4;border-color:#c8e6d3;}
.lh-rp-complete__btn{cursor:pointer;}
.lh-rp-complete__btn[disabled]{opacity:.7;cursor:default;}
.lh-rp-complete__done{font-family:'Fredoka',sans-serif;font-weight:700;color:#1f7a47;font-size:1.05rem;display:inline-flex;align-items:center;gap:.4rem;}
.lh-rp-complete--anon{justify-content:space-between;}
.lh-rp-complete__hint{font-size:.9rem;color:var(--lwh-dim,#5d5a6e);font-weight:600;}

/* ============================================================
   CATALOGUE REDESIGN (2026) — cover-band grid cards + chip/segment filters
   Markup + AJAX filter JS unchanged; this is a visual reskin only.
   ============================================================ */
/* ---- GRID: colour cover band (concept A) ---- */
.lh-res-grid:not(.lh-grid--list) .lh-rc{border-radius:22px;border:1px solid #E7E0F7;box-shadow:0 6px 18px rgba(74,20,140,.08)}
.lh-res-grid:not(.lh-grid--list) .lh-rc__spine,
.lh-res-grid:not(.lh-grid--list) .lh-rc__icon{display:none!important}
.lh-rc__cover{display:none}
.lh-res-grid:not(.lh-grid--list) .lh-rc__cover{display:flex;align-items:center;gap:.6rem;height:74px;padding:0 1rem;
  background:linear-gradient(135deg,var(--rc1,#6D28D9),var(--rc2,#43159E));color:#fff;position:relative;overflow:hidden}
.lh-res-grid:not(.lh-grid--list) .lh-rc__cover::after{content:"";position:absolute;inset:0;background:radial-gradient(120% 200% at 100% 0,rgba(255,255,255,.22),transparent 50%)}
.lh-rc__cover-ic{width:42px;height:42px;border-radius:12px;background:rgba(255,255,255,.22);display:grid;place-items:center;font-size:1.3rem;flex:none;position:relative;z-index:1}
.lh-rc__cover-meta{position:relative;z-index:1;line-height:1.12}
.lh-rc__cover-type{font-family:'Baloo 2',sans-serif;font-weight:800;font-size:.92rem;display:block}
.lh-rc__cover-dur{font-size:.72rem;opacity:.92}
.lh-rc__cover-tier{position:absolute;top:10px;right:10px;z-index:2;background:rgba(255,255,255,.92);color:#0f8f4d;font-family:'Baloo 2',sans-serif;font-weight:800;font-size:.64rem;padding:.14rem .5rem;border-radius:999px}
.lh-rc__cover-tier.lh-tier--pro{color:#6D28D9}.lh-rc__cover-tier.lh-tier--elite{color:#D11E45}
.lh-res-grid:not(.lh-grid--list) .lh-rc__title{font-family:'Baloo 2',sans-serif}
.lh-res-grid:not(.lh-grid--list) .lh-rc__main{padding-top:.9rem}
.lh-res-grid:not(.lh-grid--list) .lh-rc__perf{display:none}
.lh-res-grid:not(.lh-grid--list) .lh-rc__foot .lh-rc__tier{display:none}
.lh-res-grid:not(.lh-grid--list) .lh-rc__go{background:#28C76F;box-shadow:0 4px 0 #0f8f4d}
/* ---- LIST: hide cover, keep the existing tidy row ---- */
.lh-grid--list .lh-rc__cover{display:none!important}
.lh-grid--list .lh-rc{border-radius:16px}

@media (max-width: 700px){ .lh-foot__tier { grid-template-columns: 1fr; } }

/* mobile nav drawer scroll lock */
body.lh-navlock { overflow: hidden; }

/* ==========================================================================
   47 — Header burger (3-bar, white) + mobile drawer head (ui.js-driven).
   The drawer slide-in, overlay and accordion CSS already exist above; this
   just makes the burger visible on the brand header and styles the head.
   ========================================================================== */
.site .lh-burger span, header.site .lh-burger span { background: #fff; }
.lh-burger { gap: 5px; }
.lh-drawer { display: flex; flex-direction: column; }
.lh-drawer__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: .8rem; margin-bottom: .4rem; border-bottom: 1px solid var(--lwh-border, #E7E0F7); }
.lh-drawer__brand { font-family: 'Baloo 2','Fredoka',sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--lwh-purple, #6B2FA0); text-decoration: none; }
.lh-drawer__actions .btn-primary { background: var(--lwh-coral, #FF3D5A); color: #fff; }
.lh-drawer__actions .btn-on-dark { background: #F3EEFC; color: var(--lwh-purple-dark, #4A148C); }

/* ==========================================================================
   48 — RICH MOBILE DRAWER (.lh-drawer--rich) — colour-coded key stages,
   subjects, formats, audiences + CTA. Driven by ui.js (.lh-drawer__toggle).
   ========================================================================== */
.lh-drawer--rich { padding: 0 !important; width: min(92vw, 390px) !important; display: flex; flex-direction: column; background: #fff; }
.lh-drawer--rich .lh-drawer__head { display: none; }

.lh-dh { background: linear-gradient(135deg,#6B2FA0 0%,#8B43E8 55%,#B5179E 100%); color: #fff; padding: 16px 16px 18px; position: relative; overflow: hidden; }
.lh-dh::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.12); top: -46px; right: -30px; }
.lh-dh__top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.lh-dh__brand { font-family: 'Baloo 2','Fredoka',sans-serif; font-weight: 800; font-size: 21px; color: #fff; text-decoration: none; }
.lh-dh__brand span { color: #FFD23F; }
.lh-dh__close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.22); color: #fff; font-size: 18px; cursor: pointer; line-height: 1; }
.lh-dh__tag { position: relative; z-index: 1; font-size: 12px; font-weight: 700; opacity: .92; margin-top: 3px; }
.lh-dh__search { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; margin-top: 12px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); border-radius: 14px; padding: 8px 12px; }
.lh-dh__search span { font-size: 15px; }
.lh-dh__search input { flex: 1; background: transparent; border: 0; outline: 0; color: #fff; font-size: 14px; font-family: inherit; font-weight: 600; }
.lh-dh__search input::placeholder { color: rgba(255,255,255,.8); }

.lh-dchips { display: flex; gap: 7px; overflow-x: auto; padding: 11px 12px 9px; border-bottom: 1px solid #F0ECFA; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.lh-dchips::-webkit-scrollbar { display: none; }
.lh-dchips a:nth-child(3) { background: #EEE3FF; color: #6A23CE; }
.lh-dchips a:nth-child(4) { background: #FFF3D6; color: #8a6100; }

.lh-dnav { padding: 6px 12px 2px; }
.lh-dsec__h { width: 100%; display: flex; align-items: center; gap: 11px; background: none; border: 0; padding: 11px 8px; cursor: pointer; text-align: left; text-decoration: none; border-top: 1px solid #F0ECFA; }
.lh-dnav > .lh-dsec__h:first-of-type { border-top: 0; }
.lh-dsec__ic { flex: 0 0 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.lh-dsec__t { flex: 1; font-family: 'Baloo 2','Fredoka',sans-serif; font-weight: 800; font-size: 15px; color: #2A2150; }
.lh-dsec__cv { color: #938BBA; font-size: 13px; transition: transform .2s; }
.lh-drawer__toggle[aria-expanded="true"] .lh-dsec__cv { transform: rotate(180deg); color: #6B2FA0; }

.lh-drawer--rich .lh-drawer__sub { padding: 2px 4px 8px; margin: 0; }
.lh-drawer--rich .lh-drawer__sub[hidden] { display: none; }
.lh-dstages { display: flex; flex-direction: column; gap: 6px; }
.lh-stage { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 13px; background: var(--b); text-decoration: none; border: 1.5px solid transparent; transition: border-color .15s, transform .12s; font-size: 16px; }
.lh-stage:hover { border-color: var(--c); }
.lh-dchipwrap a { font-size: 12px; font-weight: 800; color: #4a3f72; background: #F3EEFC; border: 1px solid #E5DCF6; border-radius: 999px; padding: 6px 11px; text-decoration: none; }
.lh-dlink { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #3a3360; background: #F7F4FD; border: 1px solid #ECE6FA; border-radius: 11px; padding: 9px 11px; text-decoration: none; margin-bottom: 5px; }

.lh-dcta { margin: 6px 12px 12px; background: linear-gradient(135deg,#6B2FA0,#8B43E8); border-radius: 16px; padding: 14px; color: #fff; position: relative; overflow: hidden; }
.lh-dcta::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; background: rgba(255,255,255,.12); bottom: -34px; right: -22px; }
.lh-dcta__t { position: relative; z-index: 1; font-family: 'Baloo 2','Fredoka',sans-serif; font-weight: 800; font-size: 15px; }
.lh-dcta__s { position: relative; z-index: 1; font-size: 11.5px; opacity: .92; margin: 2px 0 10px; }
.lh-dcta__btn { position: relative; z-index: 1; display: block; text-align: center; background: #FFD23F; color: #4A148C; font-weight: 800; font-size: 13.5px; padding: 10px; border-radius: 11px; text-decoration: none; }

.lh-dfoot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid #F0ECFA; background: #FBF9FF; }
.lh-dfoot__soc { display: flex; gap: 8px; }
.lh-dfoot__soc a { width: 32px; height: 32px; border-radius: 50%; background: #F3EEFC; color: #6B2FA0; display: flex; align-items: center; justify-content: center; font-weight: 800; text-decoration: none; }
.lh-dfoot__lg { font-size: 13px; font-weight: 800; color: #6B2FA0; text-decoration: none; }

/* ==========================================================================
   49 — RICH DRAWER POLISH: consistent 16px gutters, bigger tap targets,
   softer dividers, refined icon tiles + spacing for a modern, pro feel.
   ========================================================================== */
.lh-dh { padding: 18px 16px 20px; }
.lh-dh__brand { font-size: 22px; letter-spacing: .2px; }
.lh-dh__tag { margin-top: 4px; font-size: 12.5px; }
.lh-dh__search { margin-top: 14px; padding: 11px 14px; border-radius: 16px; }
.lh-dh__search input { font-size: 15px; }

.lh-dchips { padding: 13px 16px; gap: 8px; }
.lh-dchips a { padding: 7px 13px; font-size: 12px; }

.lh-dnav { padding: 0; }
.lh-dsec__h { padding: 15px 16px; gap: 13px; border-top-color: #F4F0FB; transition: background .12s; border-radius: 0; }
.lh-dnav > .lh-dsec__h:first-of-type { border-top: 0; }
.lh-dsec__h:hover { background: #FAF7FF; }
.lh-dsec__h:active { background: #F3EEFC; }
.lh-dsec__ic { flex: 0 0 34px; height: 34px; border-radius: 11px; font-size: 17px; }
.lh-dsec__t { font-size: 15.5px; letter-spacing: .1px; }
.lh-dsec__cv { font-size: 12px; padding-left: 2px; }

.lh-drawer--rich .lh-drawer__sub { padding: 2px 16px 14px; }
.lh-dstages { gap: 8px; }
.lh-stage { padding: 12px 13px; border-radius: 15px; gap: 12px; font-size: 18px; }
.lh-stage:hover { border-color: var(--c); transform: translateY(-1px); }
.lh-dlink { padding: 11px 13px; border-radius: 13px; margin-bottom: 7px; font-size: 13.5px; transition: background .12s; }
.lh-dlink:hover { background: #EFE9FB; }

.lh-dcta { margin: 10px 16px 14px; padding: 16px; border-radius: 18px; }
.lh-dcta__t { font-size: 15.5px; }
.lh-dcta__btn { padding: 11px; font-size: 14px; border-radius: 12px; transition: transform .12s; }
.lh-dcta__btn:active { transform: scale(.98); }

.lh-dfoot { padding: 14px 16px; }
.lh-dfoot__soc a { width: 34px; height: 34px; transition: background .12s, color .12s; }
.lh-dfoot__soc a:hover { background: #6B2FA0; color: #fff; }

/* smooth slide-in for the panel itself */
.lh-drawer--rich { transition: right .32s cubic-bezier(.34,1.2,.5,1); }


/* ==========================================================================
   52 — Catalogue: sticky sidebar, redesigned rounded free-views module,
   horizontal Year-group filter bar (injected above the catalogue).
   ========================================================================== */

/* (a) Sticky sidebar on desktop — robust. */
@media (min-width: 960px) {
  .lh-catalogue__layout { align-items: start; }
  .lh-catalogue__sidebar { position: sticky; top: 1rem; align-self: start; max-height: calc(100vh - 1.5rem);max-height: calc(100dvh - 1.5rem); overflow-y: auto; overflow-x: visible; z-index: 5; }
  .lh-catalogue__sidebar::-webkit-scrollbar { width: 7px; }
  .lh-catalogue__sidebar::-webkit-scrollbar-thumb { background: #E0D8EE; border-radius: 99px; }
}

/* (b) Free-views module — fully rounded, popping gradient card. */
.lh-deck__top--free,
.lh-catalogue__sidebar-pill.lh-deck__top--free {
  border-radius: 18px !important;
  margin: 0 0 .85rem !important;
  padding: 15px 16px !important;
  background: linear-gradient(135deg, #6B2FA0 0%, #9B4DFF 58%, #B5179E 100%) !important;
  box-shadow: 0 12px 28px rgba(74,20,140,.24);
  position: relative; overflow: hidden;
}
/* 59b — Dashboard header: render the assign trigger as the pink pill it replaced. */
.lhcc-top .lh-master-assign-open { background: var(--pink, #FF3D5A) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important; padding: 9px 16px !important; font: 700 13px system-ui !important; box-shadow: none !important; display: inline-flex; align-items: center; gap: 6px; }
.lhcc-top .lh-master-assign-open:hover { filter: brightness(.95); }

/* ==========================================================================
   60 — Advanced account widget (desktop header): avatar trigger → gamified,
   role-aware card with a tailored menu. Hover (desktop) or click to open.
   ========================================================================== */
.lh-acct { position: relative; display: inline-block; }
.lh-acct__trig { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 4px 11px 4px 4px; color: #fff; font-weight: 800; font-size: .9rem; cursor: pointer; transition: background .15s; line-height: 1; }
.lh-acct__trig:hover { background: rgba(255,255,255,.24); }
.lh-acct__av { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .78rem; flex: 0 0 auto; }
.lh-acct__av--guest { background: #fff; }
.lh-acct__hi { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lh-acct__cv { font-size: .68rem; opacity: .85; }
.lh-acct__card { position: absolute; right: 0; top: calc(100% + 12px); width: 300px; background: #fff; border-radius: 18px; box-shadow: 0 24px 64px rgba(42,33,80,.34); overflow: hidden; z-index: 1300; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .16s ease, transform .16s ease, visibility .16s; }
.lh-acct.is-open .lh-acct__card { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .lh-acct:hover .lh-acct__card { opacity: 1; visibility: visible; transform: none; } }
.lh-acct__card:after { content: ""; position: absolute; bottom: 100%; right: 20px; border: 7px solid transparent; border-bottom-color: #fff; }
.lh-acct__top { padding: 14px; color: #fff; display: flex; gap: 11px; align-items: center; }
.lh-acct__big { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.05rem; flex: 0 0 auto; }
.lh-acct__nm { font-family: 'Baloo 2','Fredoka',sans-serif; font-size: 1.02rem; font-weight: 800; line-height: 1.15; color: #fff; }
.lh-acct__rl { font-size: .78rem; opacity: .94; }
.lh-acct__blurb { font-size: .82rem; color: #6E6794; margin: 0; padding: 11px 14px 4px; line-height: 1.5; }
.lh-acct__stats { display: flex; gap: 6px; padding: 11px 12px; background: #FAF7FF; }
.lh-acct__st { flex: 1; text-align: center; background: #fff; border: 1px solid #EFEAFB; border-radius: 11px; padding: 7px 4px; }
.lh-acct__st b { display: block; font-family: 'Baloo 2','Fredoka',sans-serif; font-size: 1rem; color: #43159E; }
.lh-acct__st span { font-size: .66rem; color: #8A7FB5; font-weight: 800; letter-spacing: .02em; }
.lh-acct__menu { padding: 7px; }
.lh-acct__mi { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; font-size: .88rem; font-weight: 700; color: #2A2150; text-decoration: none; transition: background .12s, color .12s; }
.lh-acct__mi span { font-size: 1rem; width: 20px; text-align: center; flex: 0 0 auto; }
.lh-acct__mi:hover { background: #F3EEFC; color: #43159E; }
.lh-acct__mi--cta { background: #534AB7; color: #fff; justify-content: center; margin-top: 4px; }
.lh-acct__mi--cta:hover { background: #43159E; color: #fff; }
.lh-acct__mi--ghost { justify-content: center; color: #6E6794; }
.lh-acct__mi--out { border-top: 1px solid #EFEAFB; color: #C2185B; margin-top: 4px; }
.lh-acct__mi--out:hover { background: #FCEBEF; color: #C2185B; }
/* On mobile the burger/drawer handles the account, so hide the desktop widget. */
@media (max-width: 900px) { .lh-acct { display: none; } }

/* 60b — The header nav uses overflow:hidden (shimmer), which clips an absolutely
   positioned dropdown. Make the account card position:fixed (viewport-relative,
   no transform/filter ancestor) so it escapes the clip; JS sets top/right. */
.lh-acct__card { position: fixed !important; right: 16px; top: 62px; z-index: 100000 !important; }
.lh-acct__card:after { display: none; }

/* 59c — Resource-page assign picker: learners who already have this module. */
.lh-amx-person.is-assigned { opacity: .7; cursor: default; background: #EAF7EF; border-color: #BFE6CF; color: #0F6E56; }
.lh-amx-who--many .lh-amx-person.is-assigned { background: #EAF7EF; color: #0F6E56; }
