        /* ═══════════════════════════════════════════════════════
           ROYAL INK — EnglishJibi Design System v2.0 (Resources)
           ═══════════════════════════════════════════════════════ */

        :root {
            --brand-navy: #0E2A54;
            --brand-royal: #113264;
            --brand-cobalt: #1B3A9A;
            --brand-silver: #B8C8E4;
            --brand-pearl: #E1EBF7;
            /* Deepest ink in the system — was hardcoded as the ticker's bottom
               border. Named so inset wells on navy can share the same value. */
            --brand-ink: #081426;

            --gold-rich: #F2AF13;
            --gold-light: #FFFBF5;
            --gold-muted: #C78800;

            --brand-red: #E21D38;
            --brand-red-deep: #B31026;
            /* --brand-red manages only 3.02:1 on navy — below AA. Same hue,
               lightened to 5.4:1 for text sitting on --brand-navy. */
            --red-on-navy: #F27B8C;

            --bg-page: #F4F7FB;
            --bg-section-alt: #EDF2FC;
            --bg-card: #FFFFFF;
            --bg-navy-section: #0E2A54;

            --text-heading: #0E2A54;
            --text-body: #0F172A;
            --text-muted: #475569;
            --text-on-navy: #FFFFFF;
            --text-on-navy-muted: #DFE5F2;
            --text-gold: #C78800;
            --text-link: #113264;

            --border-default: rgba(14, 42, 84, 0.12);
            --border-card: rgba(14, 42, 84, 0.08);
            --border-strong: rgba(14, 42, 84, 0.24);
            --border-gold: rgba(242, 175, 19, 0.35);

            --glass-nav-bg: rgba(14, 42, 84, 0.95);
            --card-shadow: 0 4px 14px rgba(14, 42, 84, .08);
            --card-shadow-hover: 0 16px 48px rgba(14, 42, 84, .13);

            --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
            --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; }

        body {
            font-family: 'Inter', sans-serif;
            background: var(--bg-page);
            color: var(--text-body);
            font-size: 16px;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            overflow-x: hidden;
        }

        h1, h2, h3, h4, h5, h6 { font-family: 'Lora', serif; }
        img { max-width: 100%; height: auto; }
        a { text-decoration: none; }

        /* ── Typography ──────────────────────────── */
        .type-hero {
            font-family: 'Lora', serif;
            font-size: clamp(2.1rem, 4.6vw, 3.25rem);
            font-weight: 700;
            line-height: 1.15;
            letter-spacing: -0.02em;
            color: var(--text-heading);
        }
        .type-h2 {
            font-family: 'Lora', serif;
            font-size: clamp(1.75rem, 3.5vw, 2.5rem);
            font-weight: 600;
            line-height: 1.2;
            letter-spacing: -0.01em;
            color: var(--text-heading);
        }
        .type-h3 {
            font-family: 'Lora', serif;
            font-size: clamp(1.1rem, 2vw, 1.35rem);
            font-weight: 600;
            line-height: 1.3;
            color: var(--text-heading);
        }
        .eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--text-gold);
            margin-bottom: 0.75rem;
        }
        .eyebrow::before {
            content: '';
            display: block;
            width: 20px;
            height: 2px;
            background: var(--gold-rich);
            border-radius: 1px;
        }

        /* ── Glass Navigation (reused from homepage) ─ */
        .glass-nav {
            position: sticky;
            top: 0;
            z-index: 1000;
            background: var(--glass-nav-bg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            box-shadow: var(--card-shadow);
            transition: all 0.4s var(--ease-premium);
        }
        .glass-nav.scrolled { background: rgba(14, 42, 84, 0.98); box-shadow: 0 4px 20px rgba(14, 42, 84, 0.22); }

        #menu-toggle-icon { width: 2rem !important; height: 2rem !important; }
        #menu-toggle-icon svg, #menu-toggle svg { stroke-width: 2.5px !important; }

        .nav-link {
            font-size: 0.875rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.85);
            text-decoration: none;
            padding: 0.5rem 0;
            position: relative;
            transition: color 0.2s ease;
        }
        #mobile-menu .nav-link {
            font-size: 1.05rem !important;
            font-weight: 700 !important;
            padding: 0.7rem 1rem !important;
            display: block;
            border-radius: 8px;
        }
        #mobile-menu .nav-link:hover, #mobile-menu .nav-link.active {
            background: rgba(255, 255, 255, 0.06);
            color: var(--gold-rich) !important;
        }
        @media (min-width: 1024px) {
            .nav-link::after {
                content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
                background: var(--gold-rich); transform: scaleX(0); transition: transform 0.3s var(--ease-premium);
            }
            .nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
        }
        .nav-link:hover { color: #FFFFFF; }
        .nav-link.active { color: var(--gold-rich); }

        .ticker-bar {
            background: linear-gradient(90deg, var(--brand-red) 0%, var(--brand-red-deep) 100%);
            color: #FFFFFF; overflow: hidden; white-space: nowrap;
            border-top: 3px solid var(--gold-rich); border-bottom: 3px solid var(--brand-ink);
            box-shadow: 0 4px 20px rgba(226, 29, 56, 0.15);
        }
        .ticker-track {
            display: inline-flex; gap: 60px; padding: 12px 0; animation: ticker 32s linear infinite;
            font-weight: 700; font-size: clamp(0.75rem, 1vw, 0.85rem); text-transform: uppercase;
            letter-spacing: 0.04em; color: #FFFFFF;
        }
        .ticker-track .star { color: var(--gold-rich); }
        .ticker-bar:hover .ticker-track { animation-play-state: paused; }
        @keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

        /* ── Sticky Search Dock ───────────────────────────────
           Lives INSIDE .glass-nav, so it inherits the nav's own
           position:sticky — no second sticky context, no offset math.

           Scrolling past the hero search swaps the ticker for the dock:
           the ticker collapses (~49px) as the dock expands (~60px), so
           the nav's total height barely moves and the page doesn't jump.

           Both wrappers animate grid-template-rows 0fr↔1fr rather than
           max-height — that eases to the element's true auto height, so
           the dock can grow a second row for filter chips without a
           hardcoded pixel cap. Browsers without fr interpolation snap
           instantly instead of easing; nothing breaks. */
        .nav-collapsible {
            display: grid;
            grid-template-rows: 1fr;
            transition: grid-template-rows 0.38s var(--ease-premium);
        }
        .nav-collapsible > * { overflow: hidden; min-height: 0; }
        .glass-nav.nav-condensed .nav-collapsible { grid-template-rows: 0fr; }
        /* box-sizing:border-box floors the ticker at its own border height, so a
           0fr row still leaves a 6px sliver. Collapse the borders with it. */
        .ticker-bar { transition: border-width 0.38s var(--ease-premium); }
        .glass-nav.nav-condensed .ticker-bar { border-top-width: 0; border-bottom-width: 0; }

        /* Applied for one frame while initSearchDock() re-measures, so forcing
           the nav open to read its natural height never animates on screen. */
        .glass-nav.nav-no-anim,
        .glass-nav.nav-no-anim * { transition: none !important; }

        .search-dock {
            display: grid;
            grid-template-rows: 0fr;
            /* Deep, slightly cool shelf that sits UNDER the nav in the visual
               stack — descending into ink rather than rising toward royal, so
               the nav row above stays the brightest band and the eye is drawn
               down to the field instead of to the background.
               The soft cobalt glow behind the field keeps the centre from
               going dead flat across a 1280px span. */
            background:
                radial-gradient(120% 180% at 22% 0%, rgba(27, 58, 154, 0.30) 0%, rgba(27, 58, 154, 0) 62%),
                linear-gradient(180deg, #12305C 0%, #0C2449 58%, #081C3A 100%);
            /* Borders are zero-width until the dock opens — a static border
               would leave a stray hairline under the ticker at the top of the
               page, where the dock is meant to be invisible. The gold underline
               echoes the ticker's own gold top border. */
            border-top: 0 solid rgba(184, 200, 228, 0.16);
            border-bottom: 0 solid rgba(242, 175, 19, 0.55);
            transition: grid-template-rows 0.38s var(--ease-premium),
                        border-width 0.38s var(--ease-premium),
                        box-shadow 0.38s ease;
        }
        .glass-nav.nav-condensed .search-dock {
            border-top-width: 1px;
            border-bottom-width: 2px;
            box-shadow: 0 10px 26px rgba(8, 20, 38, 0.28);
        }
        .search-dock > div { overflow: hidden; min-height: 0; }
        .glass-nav.nav-condensed .search-dock { grid-template-rows: 1fr; }

        .search-dock-inner {
            display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
            max-width: 80rem; margin: 0 auto; padding: 0.45rem 1rem;
            opacity: 0; transform: translateY(-8px);
            transition: opacity 0.28s ease 0.06s, transform 0.28s var(--ease-premium) 0.06s;
        }
        .glass-nav.nav-condensed .search-dock-inner { opacity: 1; transform: none; }
        /* Un-condensed the dock is zero-height but its children still sit in
           the a11y tree and the tab order. Hide it from both. */
        .glass-nav:not(.nav-condensed) .search-dock-inner { visibility: hidden; }

        .dock-search {
            display: flex; align-items: center; gap: 0.5rem; flex: 1 1 240px;
            min-width: 0; max-width: 440px;
            /* Recessed well, not a raised panel — a field you type into should
               read as cut into the surface. Inset shadow does the work; the
               silver-tinted border keeps it in the Royal Ink family rather
               than the neutral grey a white-alpha wash produces. */
            /* A gentle recess, not a black cut-out — at higher opacity the well
               went near-black against the shelf and read as a hole. */
            background: rgba(8, 20, 38, 0.34);
            border: 1.5px solid rgba(184, 200, 228, 0.20);
            border-radius: 10px; padding: 0.35rem 0.7rem;
            box-shadow: inset 0 1px 2px rgba(8, 20, 38, 0.32);
            transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
        }
        .dock-search:hover { border-color: rgba(184, 200, 228, 0.34); }
        /* Focus is stated in cool light, deliberately NOT gold. Gold means "a
           filter is applied" everywhere else on this page; spending it on mere
           cursor position would make a focused empty field look like state. */
        .dock-search:focus-within {
            background: rgba(8, 20, 38, 0.46);
            border-color: rgba(213, 226, 245, 0.85);
            box-shadow: inset 0 1px 2px rgba(8, 20, 38, 0.32), 0 0 0 3px rgba(184, 200, 228, 0.15);
        }
        .dock-search > svg, .dock-search > i {
            flex-shrink: 0; width: 17px; height: 17px;
            color: var(--brand-silver); stroke: var(--brand-silver);
            transition: color 0.2s ease, stroke 0.2s ease;
        }
        .dock-search:focus-within > svg, .dock-search:focus-within > i { color: #FFFFFF; stroke: #FFFFFF; }
        .dock-search input {
            flex: 1; min-width: 0; background: transparent; border: none; outline: none;
            color: #FFFFFF; font-size: 0.9rem; font-weight: 500; padding: 0.15rem 0;
        }
        .dock-search input::placeholder { color: rgba(184, 200, 228, 0.62); font-weight: 400; }

        /* Shared reset affordance — one rule serves the hero field and the dock. */
        .search-clear {
            display: none; flex-shrink: 0; align-items: center; justify-content: center;
            width: 22px; height: 22px; border: none; border-radius: 50%; cursor: pointer;
            background: rgba(17, 50, 100, 0.12); padding: 0;
            transition: background 0.2s ease;
        }
        .search-clear svg { width: 12px; height: 12px; stroke: var(--brand-royal); stroke-width: 2.5; fill: none; stroke-linecap: round; }
        .search-clear:hover { background: rgba(17, 50, 100, 0.22); }
        .search-clear.is-visible { display: flex; }
        .dock-search .search-clear { background: rgba(255, 255, 255, 0.18); }
        .dock-search .search-clear:hover { background: rgba(255, 255, 255, 0.30); }
        .dock-search .search-clear svg { stroke: #FFFFFF; }

        /* Live result count. aria-live is on the element, so keep it in the DOM
           even at zero matches — swapping textContent is what gets announced. */
        /* Silver, not gold: the count is passive metadata. Reserving gold for
           the chips keeps one meaning per colour — gold means "a filter is on",
           exactly as it does on the class pills and category cards. */
        .dock-count {
            flex-shrink: 0; font-size: 0.76rem; font-weight: 700;
            letter-spacing: 0.04em; text-transform: uppercase;
            color: var(--brand-silver); white-space: nowrap;
        }
        .dock-count.is-empty { color: var(--red-on-navy); }

        .dock-chips { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; min-width: 0; }
        /* With no filters the container is empty but still consumes a flex row
           plus a gap — on mobile that is ~10px of permanent sticky chrome. */
        .dock-chips:empty { display: none; }
        /* Gold-tinted, matching the active states elsewhere on the page, so an
           applied filter looks the same whether you see it as a chip up here or
           as a highlighted card down there. */
        .dock-chips .filter-chip {
            background: rgba(242, 175, 19, 0.15);
            border: 1px solid rgba(242, 175, 19, 0.32);
            color: var(--gold-rich);
            font-size: 0.75rem; font-weight: 700; padding: 0.28rem 0.38rem 0.28rem 0.68rem;
            transition: background 0.2s ease, border-color 0.2s ease;
        }
        .dock-chips .filter-chip:hover { background: rgba(242, 175, 19, 0.22); border-color: rgba(242, 175, 19, 0.5); }
        .dock-chips .filter-chip button { width: 17px; height: 17px; background: rgba(242, 175, 19, 0.26); }
        .dock-chips .filter-chip button:hover { background: rgba(242, 175, 19, 0.45); }
        .dock-chips .filter-chip button svg { width: 10px; height: 10px; stroke: var(--gold-rich); }
        .dock-clear-all {
            flex-shrink: 0; background: none; border: none; cursor: pointer;
            padding: 0.25rem 0.1rem;
            font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em;
            text-transform: uppercase; color: var(--brand-silver);
            text-decoration: underline; text-underline-offset: 3px;
            text-decoration-color: rgba(184, 200, 228, 0.4);
            transition: color 0.2s ease, text-decoration-color 0.2s ease;
        }
        .dock-clear-all:hover { color: #FFFFFF; text-decoration-color: #FFFFFF; }

        /* Buttons only. The text input must be excluded: .dock-search already
           renders focus on the wrapper, and a second outline on the input
           inside it stacks into a double ring. */
        .search-dock button:focus-visible { outline: 2px solid var(--brand-silver); outline-offset: 2px; }
        .dock-search input:focus-visible { outline: none; }

        @media (max-width: 640px) {
            .search-dock-inner { padding: 0.45rem 0.85rem; gap: 0.5rem; }
            /* flex-basis:auto, not 100% — at 100% the count is pushed onto a
               second row and the dock costs ~96px of an 812px screen even with
               no filters applied. Field + count share row one; chips get their
               own row only when there is something to show. */
            .dock-search { flex: 1 1 auto; max-width: none; }
            .dock-count { font-size: 0.72rem; }
            /* 16px is the iOS Safari threshold — below it, focusing the field
               zooms the whole viewport and the user has to pinch back out. */
            .dock-search input { font-size: 16px; }
            .dock-chips { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
            .dock-chips::-webkit-scrollbar { display: none; }
            .dock-chips .filter-chip { flex-shrink: 0; font-size: 0.72rem; padding: 0.25rem 0.35rem 0.25rem 0.6rem; }
            .dock-clear-all { flex-shrink: 0; }
        }

        @media (prefers-reduced-motion: reduce) {
            .nav-collapsible, .search-dock, .search-dock-inner { transition: none; }
        }

        /* ── Buttons (reused) ────────────────────── */
        .btn-primary {
            display: inline-flex; align-items: center; gap: 0.5rem;
            background: linear-gradient(145deg, #E21D38 0%, #B31026 100%);
            color: #FFFFFF; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.04em;
            padding: 0.75rem 1.75rem; border-radius: 8px; border: none; cursor: pointer;
            box-shadow: 0 4px 14px rgba(226, 29, 56, 0.25);
            transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
        }
        .btn-primary:hover { background: #B31026; box-shadow: 0 6px 20px rgba(226, 29, 56, 0.35); transform: translateY(-2px); }
        .btn-primary:active { transform: translateY(1px) scale(0.97); }
        .btn-primary:disabled { opacity: .6; cursor: not-allowed; transform:none; }

        .btn-secondary {
            display: inline-flex; align-items: center; gap: 0.5rem;
            background: transparent; color: var(--brand-navy); font-size: 0.875rem; font-weight: 700;
            letter-spacing: 0.04em; padding: 0.72rem 1.7rem; border-radius: 8px; border: 2px solid var(--brand-navy);
            cursor: pointer; transition: color 0.35s ease 0.12s, border-color 0.4s ease, transform 0.1s ease;
        }
        .btn-secondary:hover { color: #FFFFFF; border-color: var(--brand-navy); transform: translateY(-2px); }
        .btn-secondary:active { transform: translateY(1px) scale(0.97); }

        .btn-gold {
            display: inline-flex; align-items: center; gap: 0.5rem;
            background: linear-gradient(145deg, #F2AF13 0%, #C78800 100%);
            color: #0F172A; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.04em;
            padding: 0.75rem 1.75rem; border-radius: 8px; border: none; cursor: pointer;
            box-shadow: 0 4px 14px rgba(242, 175, 19, 0.30);
            transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
        }
        .btn-gold:hover { background: #C78800; box-shadow: 0 6px 20px rgba(242, 175, 19, 0.40); transform: translateY(-2px); }
        .btn-gold:active { transform: translateY(1px) scale(0.97); }

        .btn-whatsapp {
            display: inline-flex; align-items: center; justify-content:center; gap: 0.6rem;
            background: linear-gradient(145deg, #25D366 0%, #1DA851 100%);
            color: #FFFFFF; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.02em;
            padding: 0.85rem 1.75rem; border-radius: 8px; border: none; cursor: pointer;
            box-shadow: 0 4px 14px rgba(37, 211, 102, 0.30);
            transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
        }
        .btn-whatsapp:hover { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.42); transform: translateY(-2px); }
        .btn-whatsapp:active { transform: translateY(1px) scale(0.97); }

        /* ── Liquid Fill Hover Animation ──────────
           A blobby "liquid" layer sits behind the label (z-index:-1 inside
           a local stacking context) and rises from the bottom of the button
           on hover, wobbling gently like fluid settling in a glass. ────── */
        .btn-primary, .btn-secondary, .btn-gold, .btn-whatsapp {
            position: relative;
            z-index: 0;
            overflow: hidden;
            isolation: isolate;
            transform: translateZ(0);
            backface-visibility: hidden;
            will-change: transform;
        }
        .btn-primary::before,
        .btn-secondary::before,
        .btn-gold::before,
        .btn-whatsapp::before {
            content: '';
            position: absolute;
            left: 50%;
            bottom: -25%;
            width: 170%;
            height: 170%;
            border-radius: 42% 58% 55% 45% / 60% 42% 58% 40%;
            transform: translate(-50%, 78%) scale(0.85);
            transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
            z-index: -1;
            pointer-events: none;
            will-change: transform, border-radius;
        }
        .btn-primary::before  { background: rgba(255, 255, 255, 0.22); }
        .btn-gold::before     { background: rgba(255, 255, 255, 0.28); }
        .btn-whatsapp::before { background: rgba(255, 255, 255, 0.22); }
        .btn-secondary::before { background: var(--brand-navy); }

        .btn-primary:hover::before,
        .btn-gold:hover::before,
        .btn-whatsapp:hover::before {
            transform: translate(-50%, 22%) scale(1.05);
            animation: liquidWobble 2.4s ease-in-out infinite;
        }
        .btn-secondary:hover::before {
            transform: translate(-50%, -4%) scale(1.15);
            animation: liquidWobble 2.4s ease-in-out infinite;
        }
        .btn-primary:active::before,
        .btn-secondary:active::before,
        .btn-gold:active::before,
        .btn-whatsapp:active::before {
            transform: translate(-50%, -8%) scale(1.2);
            transition: transform 0.25s ease-out;
        }
        @keyframes liquidWobble {
            0%, 100% { border-radius: 42% 58% 55% 45% / 60% 42% 58% 40%; }
            50%      { border-radius: 58% 42% 45% 55% / 42% 60% 40% 58%; }
        }
        @media (prefers-reduced-motion: reduce) {
            .btn-primary::before, .btn-secondary::before, .btn-gold::before, .btn-whatsapp::before {
                transition: none; animation: none !important;
            }
        }

        /* ── Cards (reused) ──────────────────────── */
        .ink-card {
            background: var(--bg-card);
            border: 1px solid var(--border-card);
            border-radius: 16px;
            box-shadow: var(--card-shadow);
            transition: transform 0.4s var(--ease-premium), box-shadow 0.4s var(--ease-premium), border-color 0.3s ease;
        }
        @media (hover: hover) {
            .ink-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); border-color: var(--border-gold); }
        }

        /* ── Section Wrappers (reused) ───────────── */
        .section-base { background: var(--bg-page); padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 1.5rem); }
        .section-warm { background: var(--bg-section-alt); padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 1.5rem); }
        .section-navy {
            background: linear-gradient(145deg, var(--brand-navy) 0%, #081426 100%);
            padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 1.5rem);
            color: var(--text-on-navy); position: relative; overflow: hidden;
        }
        .section-divider {
            width: 60px; height: 3px;
            background: linear-gradient(90deg, var(--gold-rich), var(--gold-light));
            border-radius: 2px; margin: 1rem auto 1.75rem;
        }
        .section-header { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }

        /* ── Badges (reused + .badge-new) ────────── */
        .badge {
            display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.7rem; font-weight: 700;
            letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.75rem; border-radius: 100px;
        }
        .badge-navy { background: rgba(13, 27, 82, 0.08); color: var(--brand-navy); }
        .badge-gold { background: rgba(184, 147, 26, 0.12); color: var(--gold-muted); }
        .badge-new { background: var(--gold-rich); color: #FFFFFF; box-shadow: 0 1px 6px rgba(184, 147, 26, 0.30); }

        /* ── Forms (reused) ──────────────────────── */
        .form-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-body); margin-bottom: 0.4rem; }

        /* ── FAQ Accordion (reused) ──────────────── */
        .faq-item {
            border: 1px solid var(--border-default); border-radius: 12px; overflow: hidden;
            transition: border-color 0.3s ease; margin-bottom: 0.75rem; background: var(--bg-card);
        }
        .faq-item:hover, .faq-item.open { border-color: var(--border-gold); }
        .faq-q {
            width: 100%; text-align: left; background: none; border: none; cursor: pointer;
            display: flex; align-items: center; justify-content: space-between; gap: 1rem;
            padding: 1.2rem 1.5rem; font-weight: 600; font-size: 0.95rem; color: var(--text-body); font-family: inherit;
        }
        .faq-q:focus-visible { outline: 2px solid var(--brand-royal); outline-offset: -2px; }
        .faq-icon { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.3s var(--ease-premium); stroke: var(--brand-royal); }
        .faq-item.open .faq-icon { transform: rotate(180deg); }
        .faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-premium), padding 0.3s ease; }
        .faq-item.open .faq-a { max-height: 300px; padding: 0 1.5rem 1.2rem; }
        .faq-a p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; border-top: 1px solid var(--border-default); padding-top: 1rem; }

        /* ── WhatsApp FAB (reused) ───────────────── */
        .whatsapp-fab {
            position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999; width: 52px; height: 52px;
            background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center;
            box-shadow: 0 4px 16px rgba(37, 211, 102, 0.40); transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s ease;
        }
        .whatsapp-fab:hover { transform: scale(1.10); box-shadow: 0 6px 24px rgba(37, 211, 102, 0.50); }
        .whatsapp-ping { position: absolute; inset: -4px; border-radius: 50%; background: rgba(37, 211, 102, 0.35); animation: waPing 2s cubic-bezier(0, 0, 0.2, 1) infinite; }
        @keyframes waPing { 75%, 100% { transform: scale(1.6); opacity: 0; } }

        /* ── Scroll Reveal (reused) ──────────────── */
        .reveal-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-premium), transform 0.7s var(--ease-premium); }
        .reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

        :focus-visible { outline: 2px solid var(--brand-royal); outline-offset: 2px; }

        i[data-lucide], svg[data-lucide] {
            display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
            flex-shrink: 0; width: 1em; height: 1em;
        }

        /* ═══════════════════════════════════════════
           RESOURCES PAGE — NEW COMPONENTS
           ═══════════════════════════════════════════ */

        /* ── Hero ─────────────────────────────────── */
        .hero-resources {
            background-image:
                linear-gradient(100deg, var(--bg-page) 0%, rgba(244,247,251,.95) 32%, rgba(244,247,251,.6) 54%, rgba(244,247,251,.16) 76%, rgba(244,247,251,.02) 100%),
                url('https://sk-mallick.github.io/englishjibi-classes//img/resources-banner.png');
            background-size: cover, cover;
            background-position: center, right center;
            background-repeat: no-repeat, no-repeat;
            position: relative; overflow: hidden;
            padding: clamp(3.5rem, 8vw, 5rem) 0 clamp(4.5rem, 9vw, 7rem);
        }
        @media (min-width: 1024px) { .hero-resources { min-height: 380px; padding: clamp(2rem, 4vw, 2.75rem) 0 clamp(3rem, 5vw, 3.75rem); display: flex; align-items: center; } }
        .hero-resources-divider { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; pointer-events: none; }
        .hero-resources-divider svg { width: 100%; height: auto; display: block; }
        .free-badge {
            display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(242, 175, 19, 0.14);
            border: 1px solid var(--border-gold); color: var(--gold-muted); font-size: 0.7rem; font-weight: 800;
            letter-spacing: 0.1em; text-transform: uppercase; padding: 0.35rem 0.9rem; border-radius: 100px; margin-bottom: 1rem;
        }
        .hero-resources-search {
            display: flex; align-items: stretch; gap: 0.6rem; background: #fff; padding: 0.4rem;
            border-radius: 12px; border: 1.5px solid var(--border-default);
            box-shadow: 0 6px 22px rgba(14, 42, 84, .10);
            transition: border-color .2s ease, box-shadow .2s ease; max-width: 520px;
        }
        /* Cool-light focus, mirroring .dock-search so the hero field and the
           docked field behave identically. Gold stays reserved for filter state. */
        .hero-resources-search:focus-within {
            border-color: var(--brand-cobalt);
            box-shadow: 0 0 0 4px rgba(27, 58, 154, .12), 0 6px 22px rgba(14, 42, 84, .10);
        }
        .hero-resources-search input:focus-visible { outline: none; }
        .hero-resources-search input {
            flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 0.9rem; padding: 0.6rem 0.75rem; color: var(--text-body);
        }
        /* 16px minimum on touch widths — anything smaller makes iOS Safari
           zoom the viewport the moment the field takes focus. */
        @media (max-width: 640px) { .hero-resources-search input { font-size: 16px; } }
        .hero-resources-search .search-clear { align-self: center; margin-right: 0.15rem; }
        .hero-resources-search button[type="submit"] {
            display: flex; align-items: center; justify-content: center; width: 44px; flex-shrink: 0;
            /* Gradient depth to match .btn-primary's treatment — a flat fill
               looked unfinished beside the gradient buttons on the same page. */
            background: linear-gradient(145deg, var(--brand-cobalt) 0%, var(--brand-royal) 100%);
            color: #fff; border: none; border-radius: 8px; cursor: pointer;
            transition: background .2s ease, box-shadow .2s ease;
        }
        .hero-resources-search button[type="submit"]:hover {
            background: linear-gradient(145deg, var(--brand-royal) 0%, var(--brand-navy) 100%);
            box-shadow: 0 3px 10px rgba(17, 50, 100, .3);
        }

        /* Every scrollIntoView({block:'start'}) target on this page parks its
           heading at viewport y=0 — directly behind the sticky nav. --sticky-h
           is measured and written by initSearchDock() on load and resize. */
        :root { --sticky-h: 120px; }
        main section[id], #featured-resources, #browse-class-grid { scroll-margin-top: calc(var(--sticky-h) + 1rem); }

        /* Contextual result count beside the section heading. */
        /* A pill, not loose grey text — it sits beside a Lora serif h2, where
           an unstyled run of Inter just looked like the heading had frayed. */
        .result-count-badge {
            display: inline-flex; align-items: center; vertical-align: middle;
            margin-left: 0.7rem; padding: 0.22rem 0.65rem;
            background: var(--brand-pearl); color: var(--brand-royal);
            border-radius: 100px;
            font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 800;
            letter-spacing: 0.06em; text-transform: uppercase;
        }
        .result-count-badge:empty { display: none; }

        /* ── Quick Categories ─────────────────────── */
        .category-card {
            background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 16px;
            padding: 1.5rem 1.25rem; text-align: center; box-shadow: var(--card-shadow);
            cursor: pointer; transition: transform 0.3s var(--ease-premium), box-shadow 0.3s ease, border-color .3s ease;
        }
        .category-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); border-color: var(--border-gold); }
        /* Active/selected state — mirrors .class-pill.active */
        .category-card.active {
            border-color: var(--gold-rich);
            background: rgba(242, 175, 19, 0.07);
            box-shadow: 0 0 0 3px rgba(242,175,19,.18), var(--card-shadow);
            transform: translateY(-2px);
        }
        .category-card.active .category-icon-badge { box-shadow: 0 0 0 3px rgba(242,175,19,.22); }
        .category-icon-badge {
            width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
            margin: 0 auto 0.9rem;
        }
        .category-icon-badge i, .category-icon-badge svg { width: 22px; height: 22px; }

        .tone-navy   { background: rgba(14, 42, 84, .08); }   .tone-navy i, .tone-navy svg   { stroke: var(--brand-navy); }
        .tone-royal  { background: rgba(17, 50, 100, .08); }  .tone-royal i, .tone-royal svg { stroke: var(--brand-royal); }
        .tone-cobalt { background: rgba(27, 58, 154, .08); }  .tone-cobalt i, .tone-cobalt svg { stroke: var(--brand-cobalt); }
        .tone-gold   { background: rgba(242, 175, 19, .14); } .tone-gold i, .tone-gold svg   { stroke: var(--gold-muted); }
        .tone-red    { background: rgba(226, 29, 56, .08); }  .tone-red i, .tone-red svg     { stroke: var(--brand-red); }

        /* ── Browse By Class ──────────────────────── */
        .class-pill {
            display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
            padding: 0.9rem 0.5rem; border-radius: 12px; border: 1.5px solid var(--border-default);
            background: var(--bg-card); cursor: pointer; transition: all 0.2s ease; user-select: none;
        }
        .class-pill:hover { border-color: var(--brand-royal); transform: translateY(-2px); box-shadow: var(--card-shadow); }
        /* Guarantee 44 px+ touch target on all breakpoints */
        .class-pill { min-height: 60px; }
        .class-pill.active { border-color: var(--gold-rich); background: rgba(242, 175, 19, 0.08); box-shadow: 0 0 0 3px rgba(242,175,19,.18); }
        .class-pill .num { font-family: 'Lora', serif; font-weight: 700; font-size: 1.05rem; color: var(--text-heading); }
        .class-pill .lbl { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
        @media (min-width: 1024px) {
            .class-pill { padding: 2rem 1rem; border-radius: 16px; gap: 0.6rem; }
            .class-pill .num { font-size: 2.25rem; }
            .class-pill .lbl { font-size: 0.85rem; }
        }

        /* ── Featured Resources ───────────────────── */
        .resource-cover {
            aspect-ratio: 16/10; border-radius: 16px 16px 0 0; position: relative; overflow: hidden;
            display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.25rem;
        }
        .resource-cover .cover-bg-icon {
            position: absolute; opacity: 0.14; width: 92px; height: 92px; stroke: #fff; top: 50%; left: 50%; transform: translate(-50%,-46%);
        }
        .resource-cover .cover-title {
            position: relative; font-family: 'Lora', serif; font-weight: 700; font-size: 1.05rem; color: #fff; line-height: 1.25;
        }
        .resource-cover .cover-tag {
            position: relative; margin-top: 0.5rem; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
            color: rgba(255,255,255,.85); background: rgba(255,255,255,.16); padding: 0.2rem 0.65rem; border-radius: 100px;
        }
        .cover-navy   { background: linear-gradient(150deg, var(--brand-navy), var(--brand-royal)); }
        .cover-royal  { background: linear-gradient(150deg, var(--brand-royal), var(--brand-cobalt)); }
        .cover-cobalt { background: linear-gradient(150deg, var(--brand-cobalt), #3E5FC7); }
        .cover-gold   { background: linear-gradient(150deg, var(--gold-muted), var(--gold-rich)); }

        .resource-card-body { padding: 1.35rem 1.35rem 1.5rem; }
        .resource-card-body .btn-secondary,
        .resource-card-body .btn-primary {
            flex: 1 1 0; justify-content: center; padding: 0.65rem 0.5rem; font-size: 0.78rem; gap: 0.35rem;
        }
        /* ── Goo-blob fill (inside animation only) ──
           Modifier applied on top of .btn-primary for the Download CTA.
           Keeps the red primary look; on hover, four gold blobs rise from
           below and merge via the #goo SVG filter, painting a fluid fill
           inside the button. The base .btn-primary::before liquid wobble is
           suppressed to leave only this inside animation. */
        .btn-primary.blob-fill {
            overflow: hidden; isolation: isolate;
            border: 2px solid var(--brand-red);
            --blob-fill-color: var(--gold-rich);
        }
        .btn-primary.blob-fill::before { display: none; }

        /* View Details variant: reuse the same goo fluid, but keep the
           existing btn-secondary color scheme untouched — navy blobs rise
           and the base hover already turns the label white. */
        .btn-secondary.blob-fill { --blob-fill-color: var(--brand-navy); }
        .btn-secondary.blob-fill::before { display: none; }

        /* Gold variant: the default blob color IS gold (see .blob-fill__blob's
           fallback below), which would be invisible rising on a gold button —
           use navy instead, and flip the label to white on hover to match. */
        .btn-gold.blob-fill { --blob-fill-color: var(--brand-navy); }
        .btn-gold.blob-fill::before { display: none; }
        .btn-gold.blob-fill:hover .blob-fill__label,
        .btn-gold.blob-fill:hover .blob-fill__label i,
        .btn-gold.blob-fill:hover .blob-fill__label svg { color: #FFFFFF; }

        /* Join WhatsApp variant: white blobs rise over the green base and the
           label flips to WhatsApp-green on hover so it stays legible against
           the fill. */
        .btn-whatsapp.blob-fill { --blob-fill-color: #FFFFFF; }
        .btn-whatsapp.blob-fill::before { display: none; }
        .btn-whatsapp.blob-fill:hover .blob-fill__label,
        .btn-whatsapp.blob-fill:hover .blob-fill__label svg,
        .btn-whatsapp.blob-fill:hover .blob-fill__label i {
            color: #1DA851;
            fill: #1DA851;
            stroke: #1DA851;
        }

        .blob-fill__label {
            position: relative; z-index: 2;
            display: inline-flex; align-items: center; gap: 0.35rem;
        }
        .blob-fill__inner {
            position: absolute; inset: 0; z-index: 1;
            overflow: hidden; pointer-events: none;
            /* Fluid clip radius = button radius (8px) − border width (2px) so
               the fill hugs the inside of the border with no corner gaps. */
            border-radius: 6px;
        }
        .blob-fill__blobs {
            position: relative; display: block; height: 100%;
            /* NOTE: `filter: url('#goo')` is deliberately NOT here. A relative url()
               inside an EXTERNAL stylesheet resolves against the stylesheet's own URL
               (i.e. assets/site.css#goo), where no such filter exists — the filter
               would silently do nothing and every blob button would render as four
               hard rectangles instead of one merged blob, with no console error.
               It lives in a small inline <style> on each page instead. Same reason
               for the two @supports (filter: url('#goo')) blocks below. */
        }
        .blob-fill__blob {
            position: absolute; top: 2px;
            width: 25%; height: 100%;
            background: var(--blob-fill-color, var(--gold-rich)); border-radius: 100%;
            transform: translate3d(0, 150%, 0) scale(1.7);
            transition: transform 0.45s;
        }
        /* @supports (filter: url('#goo')) scale(1.4) override → per-page inline <style> */
        .blob-fill__blob:nth-child(1) { left:  0%; transition-delay: 0s;    }
        .blob-fill__blob:nth-child(2) { left: 30%; transition-delay: 0.08s; }
        .blob-fill__blob:nth-child(3) { left: 60%; transition-delay: 0.16s; }
        .blob-fill__blob:nth-child(4) { left: 90%; transition-delay: 0.24s; }
        .blob-fill:hover .blob-fill__blob { transform: translateZ(0) scale(1.7); }
        /* @supports (filter: url('#goo')) hover scale(1.4) override → per-page inline <style> */

        /* Cancel the card's own lift on resource cards. The card was translating
           the button up under a stationary cursor, causing the button's :hover
           to flicker and the blob rise to restart (blink). Now only the button
           lifts on hover (via the base .btn-primary:hover rule) — nothing shifts
           under the cursor, and card-level hover feedback (border/shadow) is
           preserved. */
        .ink-card:has(.resource-card-body):hover {
            transform: none;
        }

        /* On hover, flip the label + icon to red so they read against the
           rising yellow blob fill. */
        .btn-primary.blob-fill:hover .blob-fill__label,
        .btn-primary.blob-fill:hover .blob-fill__label i,
        .btn-primary.blob-fill:hover .blob-fill__label svg {
            color: var(--brand-red);
            stroke: var(--brand-red);
        }

        @media (prefers-reduced-motion: reduce) {
            .blob-fill__blob { transition: none !important; }
        }

        /* ── Recently Added ───────────────────────── */
        .recently-added-track {
            display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
            /* Vertical padding gives the cards' drop-shadows (and their larger
               hover shadows) room to render without being clipped by the
               scroll container's edge. */
            padding: 0.75rem 0.25rem 2.125rem;
            -ms-overflow-style: none; scrollbar-width: none;
            /* Prevent vertical wheel scroll from being trapped when auto-scroll
               is not running; and stabilise scroll on touch devices. */
            overscroll-behavior-x: contain;
        }
        .recently-added-track::-webkit-scrollbar { display: none; }
        .recently-added-card {
            scroll-snap-align: start; flex: 0 0 auto;
            /* Card width = fraction of the track so N full cards fit per
               breakpoint with no overflow. Formula: (100% - (N-1)*gap) / N,
               where gap = 1rem (matches .recently-added-track gap). */
            width: 100%;
            display: flex; align-items: center; gap: 0.85rem;
            padding: 1rem 1.1rem; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 14px;
            box-shadow: 0 3px 10px rgba(14, 42, 84, .06); transition: box-shadow .3s ease, border-color .3s ease;
        }
        @media (min-width:  640px) { .recently-added-card { width: calc((100% - 1rem) / 2); } } /* 2 per view */
        @media (min-width: 1024px) { .recently-added-card { width: calc((100% - 2rem) / 3); } } /* 3 per view */
        @media (min-width: 1280px) { .recently-added-card { width: calc((100% - 3rem) / 4); } } /* 4 per view */
        .recently-added-card:hover { border-color: var(--border-gold); box-shadow: var(--card-shadow-hover); }
        .recently-added-icon {
            width: 42px; height: 42px; border-radius: 10px; background: var(--brand-pearl); flex-shrink: 0;
            display: flex; align-items: center; justify-content: center;
        }
        .recently-added-icon i, .recently-added-icon svg { width: 20px; height: 20px; stroke: var(--brand-royal); }
        .recently-download-btn {
            width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid var(--border-default); background: #fff;
            display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; transition: all .2s ease;
        }
        .recently-download-btn:hover { border-color: var(--brand-royal); background: var(--brand-pearl); }
        .recently-download-btn i, .recently-download-btn svg { width: 16px; height: 16px; stroke: var(--brand-royal); }
        .carousel-arrow {
            width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--border-default); background: #fff;
            display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s ease; flex-shrink: 0;
            box-shadow: var(--card-shadow);
        }
        .carousel-arrow:hover { border-color: var(--brand-royal); background: var(--brand-pearl); }
        .carousel-arrow:disabled { opacity: .35; cursor: not-allowed; }
        .carousel-arrow i, .carousel-arrow svg { width: 18px; height: 18px; stroke: var(--brand-navy); }

        /* ── Filter chip ──────────────────────────── */
        .filter-chip {
            display: inline-flex; align-items: center; gap: 0.5rem; background: var(--brand-pearl); color: var(--brand-royal);
            font-size: 0.8rem; font-weight: 600; padding: 0.45rem 0.6rem 0.45rem 0.9rem; border-radius: 100px;
        }
        .filter-chip button { display: flex; background: rgba(17,50,100,.14); border: none; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; align-items: center; justify-content: center; }
        .filter-chip button:hover { background: rgba(17,50,100,.24); }
        .filter-chip button svg { width: 12px; height: 12px; stroke: var(--brand-royal); }

        .empty-state {
            grid-column: 1 / -1; text-align: center; padding: 2.5rem 1.5rem; border: 1.5px dashed var(--border-default);
            border-radius: 16px; color: var(--text-muted); font-size: 0.9rem;
        }

        /* ── Skeleton Shimmer Loader ──────────────── */
        @keyframes shimmer {
            0%   { background-position: -200% 0; }
            100% { background-position:  200% 0; }
        }
        .skeleton-cover {
            aspect-ratio: 16 / 10;
            background: linear-gradient(90deg, #dde7f3 25%, #ecf1f9 50%, #dde7f3 75%);
            background-size: 200% 100%;
            animation: shimmer 1.6s ease-in-out infinite;
        }
        .skeleton-line {
            border-radius: 6px;
            background: linear-gradient(90deg, #dde7f3 25%, #ecf1f9 50%, #dde7f3 75%);
            background-size: 200% 100%;
            animation: shimmer 1.6s ease-in-out infinite;
            margin-bottom: 0.6rem;
        }
        @media (prefers-reduced-motion: reduce) {
            .skeleton-cover, .skeleton-line { animation: none; background: #dde7f3; }
        }

        /* ── Carousel Indicator Dots ──────────────── */
        .carousel-dots {
            display: flex; justify-content: center; align-items: center; gap: 6px;
            margin-top: 0.9rem; min-height: 16px;
        }
        .carousel-dot {
            width: 7px; height: 7px; border-radius: 50%; border: none; padding: 0;
            background: var(--border-strong); cursor: pointer;
            transition: width 0.3s var(--ease-premium), border-radius 0.3s var(--ease-premium),
                        background 0.3s ease, transform 0.2s ease;
        }
        .carousel-dot:hover { background: var(--brand-silver); transform: scale(1.2); }
        .carousel-dot.active {
            width: 22px; border-radius: 4px; background: var(--brand-royal);
        }
        @media (min-width: 1024px) {
            /* Dots still shown on desktop but subtler */
            .carousel-dots { margin-top: 0.5rem; }
        }

        /* ── Sticky Sidebar & Scroll Target Offset System ── */
        .sticky-sidebar-col {
            position: sticky;
            top: 144px; /* 120px header+ticker + 24px clean padding gap */
            align-self: start;
        }

        /* Scroll Target Offset: Ensures Table of Contents targets & Tags card land with clean padding */
        .content-card-box,
        .sidebar-widget,
        #toc-widget,
        #tags-section,
        #about,
        #topics,
        #preview,
        #faq,
        #related {
            scroll-margin-top: 144px;
        }

        /* ── FAQ split panel (full-bleed image, founder-section style) ── */
        .faq-section { background: var(--bg-page); padding: 0; }
        .faq-split-row { display: grid; grid-template-columns: 1fr; }
        @media (min-width: 1024px) { .faq-split-row { grid-template-columns: 5fr 7fr; min-height: 520px; } }
        .faq-media-panel {
            position: relative; overflow: hidden; min-height: 280px; background: #ffffff;
            display: flex; align-items: center; justify-content: center; padding: 1.5rem;
        }
        .faq-media-panel img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
        .faq-text-panel {
            background: var(--bg-section-alt); display: flex; align-items: center;
            padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3.5rem) clamp(2.5rem, 6vw, 4rem);
        }
        .faq-text-panel > div { width: 100%; max-width: 640px; margin: 0 auto; }

        /* ── WhatsApp Update band ─────────────────── */
        .whatsapp-band {
            position: relative; overflow: hidden;
            background: linear-gradient(135deg, rgba(37,211,102,.10), rgba(14,42,84,.03) 55%, rgba(37,211,102,.05));
            border: 1px solid rgba(37,211,102,.25); border-radius: 18px;
            padding: clamp(0.9rem, 2vw, 1.25rem) clamp(1rem, 2.5vw, 1.5rem);
        }
        .whatsapp-decor {
            position: absolute; width: 180px; height: 180px; border-radius: 50%;
            background: radial-gradient(circle, rgba(37,211,102,.22), rgba(37,211,102,0) 70%);
            top: -70px; right: -50px; pointer-events: none;
        }
        .whatsapp-band-inner {
            position: relative; z-index: 1; display: grid;
            grid-template-columns: 1fr; gap: 1.2rem; align-items: stretch;
        }
        /* Tablet and up: side-by-side. The form column is capped with minmax()
           rather than given an fr share — a phone-number field gains nothing
           from being 500px wide, so as the band widens the extra space goes to
           the copy column instead of stretching the input. */
        /* Split at 768, not 640: at 640 the copy column collapsed to ~230px and
           ended up NARROWER than the form beside it, which reads as the form
           leading and the message trailing. Stacked is better down there. */
        @media (min-width: 768px) {
            .whatsapp-band-inner {
                grid-template-columns: 1fr minmax(260px, 300px);
                align-items: center; gap: 1.75rem;
            }
        }
        @media (min-width: 1024px) {
            .whatsapp-band-inner {
                grid-template-columns: 1fr minmax(300px, 380px);
                gap: 2.5rem;
            }
        }
        .whatsapp-head-row {
            display: flex; align-items: center; gap: 0.75rem;
        }
        .whatsapp-icon-wrap {
            width: 40px; height: 40px; border-radius: 12px; background: rgba(37,211,102,.14);
            display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative;
        }
        .whatsapp-icon-wrap svg { width: 20px; height: 20px; }
        .whatsapp-icon-wrap::after {
            content: ''; position: absolute; inset: -4px; border-radius: 16px;
            border: 1.5px solid rgba(37,211,102,.45); animation: whatsapp-pulse 2.6s var(--ease-premium) infinite;
        }
        .whatsapp-head-row h3 { margin: 0; font-size: 1.1rem; line-height: 1.2; }
        @keyframes whatsapp-pulse {
            0% { transform: scale(0.92); opacity: 0.7; }
            70% { transform: scale(1.18); opacity: 0; }
            100% { opacity: 0; }
        }
        .whatsapp-desc {
            margin: 0.5rem 0 0; font-size: 0.85rem; line-height: 1.5;
            color: var(--text-muted); max-width: 52ch;
        }
        .whatsapp-trust {
            display: flex; align-items: center; gap: 0.4rem; margin-top: 0.55rem;
            font-size: 0.75rem; color: var(--text-muted);
        }
        .whatsapp-trust i { width: 13px; height: 13px; color: #1a7a34; flex-shrink: 0; }
        .whatsapp-form-card {
            background: #FFFFFF; border: 1px solid var(--border-card); border-radius: 12px;
            padding: clamp(0.85rem, 4vw, 1.15rem); box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
        }
        .whatsapp-form-card .form-label {
            display: block;
            margin-bottom: 0.45rem; font-size: clamp(0.8rem, 2.5vw, 0.88rem); font-weight: 700;
            color: var(--text-heading); letter-spacing: 0.01em;
        }
        .whatsapp-input-group {
            display: flex; align-items: center; border: 1.5px solid #E5E7EB;
            border-radius: 10px; background: #FAFBFC; overflow: hidden;
            transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.2s ease;
            /* Floor is 44px, not 40 — 8vw only reaches 44px at a 550px viewport,
               so every phone was landing on the clamp minimum and shipping a
               sub-44px tap target for the two controls that matter most here. */
            min-height: clamp(44px, 8vw, 48px);
        }
        .whatsapp-input-group:hover {
            border-color: #D1D5DB; background-color: #FFFFFF;
        }
        .whatsapp-input-group:focus-within {
            border-color: #25D366; background-color: #FFFFFF;
            box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
        }
        .whatsapp-country-badge {
            border: none; border-right: 1.5px solid #E5E7EB; background: transparent;
            padding: clamp(0.6rem, 2vw, 0.75rem) clamp(0.35rem, 1vw, 0.6rem);
            font-size: clamp(0.7rem, 1.8vw, 0.83rem); font-weight: 600;
            color: var(--text-heading); flex-shrink: 0;
            white-space: nowrap; display: flex; align-items: center;
        }
        .whatsapp-input-group:focus-within .whatsapp-country-badge { border-right-color: #25D366; }
        .whatsapp-input-group input {
            border: none; flex: 1; min-width: 0;
            padding: clamp(0.6rem, 2vw, 0.75rem) clamp(0.75rem, 2vw, 1rem);
            font-size: clamp(0.8rem, 2vw, 0.9rem);
            color: var(--text-body); outline: none; background: transparent;
            font-weight: 500;
        }
        .whatsapp-input-group input::placeholder {
            color: rgba(0, 0, 0, 0.4); font-weight: 400;
        }
        .whatsapp-band .btn-whatsapp {
            width: 100%; margin-top: clamp(0.65rem, 2vw, 0.8rem);
            padding: clamp(0.65rem, 2vw, 0.75rem) clamp(0.75rem, 2vw, 1rem);
            font-size: clamp(0.75rem, 1.8vw, 0.86rem);
            /* Floor is 44px, not 40 — 8vw only reaches 44px at a 550px viewport,
               so every phone was landing on the clamp minimum and shipping a
               sub-44px tap target for the two controls that matter most here. */
            min-height: clamp(44px, 8vw, 48px);
            font-weight: 600; letter-spacing: 0.02em;
        }
        /* Now one short line — centre the icon against it instead of top-aligning
           for a wrapped paragraph, and drop word-break, which only mattered when
           this held a long sentence. */
        .whatsapp-form-note {
            font-size: clamp(0.7rem, 1.8vw, 0.74rem); color: var(--text-muted);
            margin-top: clamp(0.5rem, 1.6vw, 0.62rem);
            display: flex; align-items: center; gap: 0.35rem;
            line-height: 1.45;
        }
        .whatsapp-form-note i {
            width: 12px; height: 12px; flex-shrink: 0; color: #1a7a34;
        }

        /* ── Toast ─────────────────────────────────── */
        .toast-notice {
            position: fixed; bottom: 1.75rem; left: 50%; transform: translateX(-50%) translateY(120%);
            background: var(--brand-navy); color: #fff; padding: 0.85rem 1.35rem; border-radius: 100px;
            box-shadow: 0 16px 40px rgba(14,42,84,.28); font-size: 0.85rem; font-weight: 600;
            display: flex; align-items: center; gap: 0.6rem; z-index: 2500; max-width: 90vw;
            transition: transform 0.4s var(--ease-premium), opacity 0.4s ease; opacity: 0; pointer-events: none;
        }
        .toast-notice.show { transform: translateX(-50%) translateY(0); opacity: 1; }
        .toast-notice i, .toast-notice svg { width: 16px; height: 16px; stroke: var(--gold-rich); flex-shrink: 0; }

        /* ── Footer (reused) ──────────────────────── */
        footer.section-navy { padding-bottom: 1.5rem; }

        /* ═══════════════════════════════════════════
           RESPONSIVE
           ═══════════════════════════════════════════ */
        @media (max-width: 480px) {
            .type-hero { font-size: 1.8rem; line-height: 1.25; }
            .type-h2 { font-size: 1.55rem; }
            .section-base, .section-warm, .section-navy { padding: 2.5rem 1rem; }
            .section-header { margin-bottom: 2rem; }
            .btn-primary, .btn-secondary, .btn-gold, .btn-whatsapp { padding: 0.8rem 1.5rem; font-size: 0.875rem; width: 100%; justify-content: center; min-height: 46px; }
            .hero-resources-search { flex-direction: row; }
            .whatsapp-band .whatsapp-input-group select { width: 84px; }
        }
        @media (max-width: 640px) {
            .glass-nav { border-radius: 0; }
            .ticker-track { gap: 32px; font-size: 0.75rem; }
            .nav-link { font-size: 0.875rem; }
        }
        @media (max-width: 768px) {
            .glass-nav { border-radius: 0; }
            .ticker-track { gap: 40px; }
            .hero-resources { padding: 2.5rem 0 3rem; }
        }
        @media (max-width: 1024px) {
            .max-w-7xl { max-width: 100%; }
            .desktop-nav { gap: 1.25rem; }
        }
        @media (min-width: 1280px) {
            .max-w-7xl { max-width: 1200px; }
        }
        @media (prefers-reduced-motion: reduce) {
            .reveal-on-scroll { transition: none; opacity: 1; transform: none; }
            .ticker-track { animation: none; }
            .whatsapp-ping { animation: none; }
        }

        /* ═══════════════════════════════════════════════════════
           LIBRARY PAGES — class.html / folder.html / view.html
           Added for the Class → Folder → PDF viewer flow.
           No new colour tokens: everything below reuses :root vars.
           ═══════════════════════════════════════════════════════ */

        /* ── Breadcrumb bar ───────────────────────── */
        .crumb-bar {
            background: var(--bg-section-alt);
            border-bottom: 1px solid var(--border-default);
        }
        .crumb-list {
            display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
            font-size: 0.8rem; padding: 0.7rem 0; color: var(--text-muted);
        }
        .crumb-list a { color: var(--brand-royal); font-weight: 600; }
        .crumb-list a:hover { color: var(--gold-muted); text-decoration: underline; }
        /* Plain "/" character, not a lucide icon, so crumbs render before JS loads. */
        .crumb-sep { opacity: 0.45; }
        .crumb-current {
            color: var(--text-heading); font-weight: 700;
            max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        }

        /* ── PDF viewer frame ─────────────────────── */
        .pdf-frame {
            position: relative; background: #fff;
            border: 1px solid var(--border-card); border-radius: 16px;
            box-shadow: var(--card-shadow); overflow: hidden;
        }
        .pdf-frame iframe {
            display: block; width: 100%; border: 0;
            height: clamp(480px, 78vh, 900px);
            background: var(--bg-section-alt);
        }
        @media (max-width: 640px) { .pdf-frame iframe { height: 62vh; } }

        /* Always visible — there is no reliable way to detect that an iframe failed
           to render a PDF (onerror does not fire), so we never hide this. */
        .pdf-fallback {
            display: flex; align-items: flex-start; gap: 0.5rem; margin-top: 0.75rem;
            font-size: 0.8rem; line-height: 1.5; color: var(--text-muted);
        }
        .pdf-fallback i, .pdf-fallback svg {
            width: 14px; height: 14px; flex-shrink: 0; margin-top: 0.15rem;
            stroke: var(--gold-muted);
        }

        /* ── Current sibling-folder chip (extends .filter-chip) ── */
        .filter-chip.is-current { background: var(--brand-navy); color: #FFFFFF; }

        /* ── Meta line: "PDF · 2.4 MB · 57 pages" ── */
        .meta-row {
            display: flex; flex-wrap: wrap; gap: 0.4rem 1rem;
            font-size: 0.8rem; color: var(--text-muted);
        }
        .meta-row span { display: inline-flex; align-items: center; gap: 0.35rem; }
        .meta-row i, .meta-row svg { width: 14px; height: 14px; }

        /* ── Action row + file-path hint inside .empty-state ── */
        .empty-state .state-actions {
            display: flex; flex-wrap: wrap; gap: 0.75rem;
            justify-content: center; margin-top: 1.25rem;
        }
        .empty-state code {
            font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.75rem;
            background: rgba(14, 42, 84, 0.06); padding: 0.15rem 0.4rem; border-radius: 4px;
        }

        /* .category-card sets no display, so an <a> would stay inline. */
        a.category-card { display: block; color: inherit; }
