@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; }
/* 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); }
@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-plan-card__cta { margin-top: 1rem; }
.lh-plan-card__badge--current { background: var(--lwh-success); color: #fff; }

/* FAQ extras */
.lh-faq { max-width: 800px; margin: 0 auto; }
.lh-faq__head { text-align: center; margin-bottom: 2rem; }
.lh-faq__h { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: .5rem; }
.lh-faq__lead { color: var(--lwh-grey); }
.lh-faq__list, .lh-faq-list { display: flex; flex-direction: column; gap: .5rem; }
.lh-faq__inner { max-width: 800px; margin: 0 auto; }
.lh-faq__item { border: 1.5px solid var(--lwh-border); border-radius: var(--lwh-radius); overflow: hidden; }
.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); }
/* ============================================================================
   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; }
/* Mobile: rail becomes a bottom bar */
@media (max-width:860px){
	.lh-app__body { flex-direction:column; }
	.lh-app__rail { order:0; flex-direction:row; width:100% !important; min-height:0; border-left:0; border-bottom:1px solid var(--app-line); position:sticky; top:56px; overflow-x:auto; justify-content:space-between; }
	.lh-app__rail .lh-app__railtoggle { display:none; }
	.lh-app__rail .lh-app__navlbl { display:none; }
	.lh-app__content { width:100%; }
}

/* App-shell print styles — print/PDF ignores sticky + flex order, so give a
   clean linear layout with the topbar first and the rail hidden. */
@media print {
	.lh-app__rail { display:none !important; }
	.lh-app__body { display:block !important; }
	.lh-app__topbar { position:static !important; }
	.lh-app__content { padding:0 !important; }
	.lh-app { background:#fff !important; color:#000 !important; }
}

/* ============================================================
   Curriculum browse (/learn/) — 3-level pages. Light, fast, contentful.
   ============================================================ */
.lh-learn__wrap{max-width:1100px;margin:0 auto;padding:1.5rem 1.2rem 4rem;}
.lh-learn__top{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:1.2rem;}
.lh-learn__crumb{font-size:.82rem;color:var(--lwh-grey,#5a5a72);font-weight:700;}
.lh-learn__crumb a{color:var(--lwh-purple,#6B2FA0);text-decoration:none;}
.lh-learn__crumb .sep{opacity:.5;}
.lh-learn__ksdrop{margin-left:auto;font-size:.85rem;font-weight:800;}
.lh-learn__ksdrop select{font-family:inherit;font-weight:800;border:1.5px solid var(--lwh-border,#e9e3f3);border-radius:10px;padding:.45rem .7rem;background:#fff;cursor:pointer;}
.lh-learn__h1{font-family:'Fredoka',sans-serif;font-size:2rem;margin:.3rem 0 .5rem;}
.lh-learn__lead{margin:0;max-width:680px;opacity:.95;line-height:1.55;}
.lh-learn__sectit{font-family:'Fredoka',sans-serif;color:var(--lwh-purple,#6B2FA0);font-size:1.25rem;margin:1.6rem 0 1rem;}
.lh-learn__grid{display:grid;gap:1rem;}
.lh-learn__grid--subjects{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));}
.lh-learn--topic .lh-learn__lead{background:#fff;border:1px solid var(--lwh-border,#e9e3f3);border-radius:16px;padding:1.4rem 1.6rem;color:var(--lwh-grey,#5a5a72);}
.lh-learn--topic .lh-learn__h1{color:var(--lwh-ink,#1A1A2E);}
.lh-learn__filterbar{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem;}
.lh-learn__fpill{font-size:.78rem;font-weight:800;padding:.4rem .8rem;border-radius:999px;border:1.5px solid var(--lwh-border,#e9e3f3);background:#fff;cursor:pointer;font-family:inherit;}
.lh-learn__fpill.is-active{background:var(--lwh-purple,#6B2FA0);color:#fff;border-color:var(--lwh-purple,#6B2FA0);}
.lh-learn__reslist{display:grid;gap:.7rem;}
.lh-learn__rescard{display:flex;align-items:center;gap:1rem;background:#fff;border:1px solid var(--lwh-border,#e9e3f3);border-radius:14px;padding:.9rem 1.1rem;text-decoration:none;color:inherit;transition:border-color .15s,box-shadow .15s;}
.lh-learn__rescard:hover{border-color:var(--lwh-grape,#9B4DFF);box-shadow:0 6px 18px rgba(74,20,140,.08);}
.lh-learn__ric{width:44px;height:44px;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:1.3rem;background:#f0e7fa;flex:0 0 auto;}
.lh-learn__rbody{flex:1;min-width:0;display:flex;flex-direction:column;}
.lh-learn__rtitle{font-weight:800;font-size:.96rem;}
.lh-learn__rmeta{font-size:.76rem;color:var(--lwh-grey,#5a5a72);text-transform:uppercase;font-weight:700;}
.lh-learn__rgo{background:var(--lwh-purple,#6B2FA0);color:var(--lwh-yellow,#FFD700);border-radius:9px;padding:.5rem .9rem;font-weight:800;font-size:.8rem;flex:0 0 auto;}
.lh-learn__boards{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center;margin-bottom:1.2rem;}
.lh-learn__boardlbl{font-size:.8rem;font-weight:800;color:var(--lwh-grey,#5a5a72);}
@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 { flex: 0 0 auto; font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 5px 10px; text-decoration: none; }
.lh-dchips a:nth-child(1) { background: #DCEEFF; color: #185FA5; }
.lh-dchips a:nth-child(2) { background: #FFE1E9; color: #C2185B; }
.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; }
