/*
Theme Name: Bez Risku v Nezisku
Description: Vzdelávacia platforma pre neziskové organizácie — ekonomika, dane a účtovníctvo bez rizika. Moderná svetlá téma s oranžovými akcentmi.
Version: 1.7.0
Author: DiverzityStudios.sk
Author URI: https://diverzitystudios.sk
Text Domain: bezrisku
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ============================================
   CSS Variables — Design System
   ============================================ */
:root {
    /* Primary Colors */
    --orange: #E8752A;
    --orange-light: #F4A261;
    --orange-dark: #D4621E;
    --orange-bg: rgba(232, 117, 42, 0.1);
    --orange-bg-hover: rgba(232, 117, 42, 0.15);

    /* Secondary Colors */
    --navy: #1B3A5C;
    --navy-light: #2A5580;
    --navy-dark: #0F2440;

    /* Backgrounds */
    --cream: #FFF8F0;
    --cream-dark: #F5EDE3;
    --white: #FFFFFF;

    /* Greys */
    --grey-50: #FAFAFA;
    --grey-100: #F5F5F5;
    --grey-200: #EEEEEE;
    --grey-300: #E0E0E0;
    --grey-400: #BDBDBD;
    --grey-500: #9E9E9E;
    --grey-600: #757575;
    --grey-700: #616161;

    /* Text */
    --text-primary: #1B3A5C;
    --text-secondary: #5A6B7D;
    --text-light: #8896A6;
    --text-inverse: #FFFFFF;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(27, 58, 92, 0.06);
    --shadow-md: 0 4px 16px rgba(27, 58, 92, 0.08);
    --shadow-lg: 0 8px 32px rgba(27, 58, 92, 0.1);
    --shadow-xl: 0 12px 48px rgba(27, 58, 92, 0.12);
    --shadow-card: 0 4px 20px rgba(27, 58, 92, 0.07);
    --shadow-card-hover: 0 8px 30px rgba(27, 58, 92, 0.12);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* ── Motion system ────────────────────────────────────────────────
       One vocabulary for every animation, so the whole site shares a
       rhythm instead of each component inventing its own timing.

       Durations follow the platform guidance: micro-interactions land in
       150–250ms, larger transitions stay under 400ms. Exits run at ~70%
       of their entrance, which is what makes an interface feel responsive
       rather than sluggish — waiting for something to leave is dead time. */
    --dur-instant: 120ms;
    --dur-fast:    180ms;
    --dur-base:    260ms;
    --dur-slow:    420ms;
    --dur-exit:    160ms;

    /* ease-out for entrances: fast start, gentle settle — reads as the
       element arriving under its own momentum. */
    --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
    /* ease-in for exits: the reverse, so leaving feels decisive. */
    --ease-in:     cubic-bezier(0.64, 0, 0.78, 0);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    /* A restrained overshoot for press/lift feedback. Deliberately mild:
       spring on an accounting site should feel crisp, not bouncy. */
    --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);

    /* Named transitions, so components declare intent rather than numbers. */
    --t-hover:  var(--dur-fast) var(--ease-out);
    --t-press:  var(--dur-instant) var(--ease-out);
    --t-enter:  var(--dur-base) var(--ease-out);
    --t-exit:   var(--dur-exit) var(--ease-in);

    /* ── Layered shadows ──────────────────────────────────────────────
       Real depth comes from two overlapping shadows — a tight contact
       shadow plus a wider ambient one. A single large blur is the tell of
       a flat design pretending to have depth. Tinted with the brand navy
       rather than black so shadows sit in the palette. */
    --shadow-soft:  0 1px 2px rgba(27, 58, 92, 0.04),
                    0 4px 12px rgba(27, 58, 92, 0.06);
    --shadow-lift:  0 2px 4px rgba(27, 58, 92, 0.05),
                    0 12px 28px rgba(27, 58, 92, 0.10);
    --shadow-float: 0 4px 8px rgba(27, 58, 92, 0.06),
                    0 24px 48px rgba(27, 58, 92, 0.14);
    /* Focus ring as a token so it is identical everywhere. */
    --ring: 0 0 0 3px rgba(232, 117, 42, 0.35);

    /* Layout */
    --container-max: 1400px;
    --container-narrow: 800px;
    --header-height: 90px;
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

::selection {
    background: var(--orange);
    color: var(--white);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--cream);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    position: relative;
}

/* Decorative background blobs */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 600px 400px at 5% 15%, rgba(232, 117, 42, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 90% 80%, rgba(232, 117, 42, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 50% 50%, rgba(244, 162, 97, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--orange);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--orange-dark);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--navy);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.125rem, 1.55rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 1.36rem + 1.75vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.13rem + 0.55vw, 1.5rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Layout
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--space-4xl) 0;
}

.section--cream {
    background: var(--cream);
}

.section--white {
    background: var(--white);
}

.section--navy {
    background: var(--navy);
    color: var(--text-inverse);
}

.section--navy h2,
.section--navy h3 {
    color: var(--white);
}

.section--navy p {
    color: rgba(255, 255, 255, 0.8);
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section__header h2 {
    margin-bottom: var(--space-md);
}

.section__header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.75rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: transform var(--t-hover), box-shadow var(--t-hover), border-color var(--t-hover), background-color var(--t-hover), color var(--t-hover);
    text-decoration: none;
    line-height: 1.4;
}

.btn--primary {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

.btn--primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(232, 117, 42, 0.3);
}

.btn--secondary {
    background: transparent;
    color: var(--orange);
    border-color: var(--orange);
}

.btn--secondary:hover {
    background: var(--orange);
    color: var(--white);
    transform: translateY(-2px);
}

.btn--navy {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.btn--navy:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
    color: var(--white);
    transform: translateY(-2px);
}

.btn--white {
    background: var(--white);
    color: var(--orange);
    border-color: var(--white);
}

.btn--white:hover {
    background: var(--cream);
    color: var(--orange-dark);
    transform: translateY(-2px);
}

.btn--sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn--lg {
    padding: 1rem 2.25rem;
    font-size: 1.1rem;
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 248, 240, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform var(--t-hover), box-shadow var(--t-hover), border-color var(--t-hover), background-color var(--t-hover), color var(--t-hover);
    height: var(--header-height);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.site-header > .container {
    max-width: none;
    padding: 0 var(--space-3xl);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-branding {
    flex-shrink: 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
    text-decoration: none;
}

.site-logo:hover {
    color: var(--navy);
}

.site-logo img {
    height: 44px;
    width: auto;
    max-width: 200px;
}

.site-logo .logo-highlight {
    color: var(--orange);
}

.main-navigation {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    padding: 0 var(--space-xl);
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.main-navigation ul li a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--space-sm) var(--space-md);
    position: relative;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.main-navigation ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width var(--transition-medium);
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a,
.main-navigation ul li.current_page_item a {
    color: var(--orange);
}

.main-navigation ul li a:hover::after,
.main-navigation ul li.current-menu-item a::after,
.main-navigation ul li.current_page_item a::after {
    width: 100%;
}

.main-navigation .header-actions-mobile {
    display: none !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
    margin-left: var(--space-3xl);
}

.header-actions .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.header-user {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.header-user img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 1001;
    margin-left: auto;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform var(--t-hover), box-shadow var(--t-hover), border-color var(--t-hover), background-color var(--t-hover), color var(--t-hover);
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-4xl);
    position: relative;
    /* clip, not hidden: `hidden` makes this a scroll container, which
       breaks animation-timeline: view() on every descendant. `clip` clips
       the same way without creating a scrollport. */
    overflow: clip;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero__text h1 {
    font-size: 2.75rem;
    line-height: 1.15;
    margin-bottom: var(--space-lg);
    color: var(--navy);
}

.hero__text h1 .highlight {
    color: var(--orange);
}

.hero__text p {
    font-size: 1.15rem;
    margin-bottom: var(--space-xl);
    color: var(--text-secondary);
    max-width: 500px;
}

.hero__buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero__image {
    position: relative;
}

.hero__image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
}

/* Decorative blobs */
.hero__blob {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

.hero__blob--1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232, 117, 42, 0.12) 0%, transparent 70%);
    top: -50px;
    right: -80px;
}

.hero__blob--2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(244, 162, 97, 0.1) 0%, transparent 70%);
    bottom: -30px;
    left: -60px;
}

.hero__blob--3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(232, 117, 42, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 40%;
}

/* ============================================
   Feature / Category Cards
   ============================================ */
.feature-cards {
    display: grid;
    /* auto-fit rather than a hard repeat(4): the client removed the fourth card
       ("Skutočné príbehy"), which left three cards in a four-column grid with an
       empty slot pushing them off-centre. Tracks now follow the card count, so
       three fill the row evenly and a fourth would still fit if one is added
       back. */
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform var(--t-hover), box-shadow var(--t-hover), border-color var(--t-hover), background-color var(--t-hover), color var(--t-hover);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(232, 117, 42, 0.15);
}

.feature-card__icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    background: var(--orange-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    transition: transform var(--t-hover), box-shadow var(--t-hover), border-color var(--t-hover), background-color var(--t-hover), color var(--t-hover);
}

.feature-card:hover .feature-card__icon {
    background: var(--orange);
}

.feature-card__icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--orange);
    fill: none;
    stroke-width: 2;
    transition: stroke var(--transition-medium);
}

.feature-card:hover .feature-card__icon svg {
    stroke: var(--white);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ============================================
   Material Cards (rendered by e-shop plugin)
   ============================================ */
.material-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.material-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--t-hover), box-shadow var(--t-hover), border-color var(--t-hover), background-color var(--t-hover), color var(--t-hover);
    border: 1px solid var(--grey-200);
}

.material-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.material-card__image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    overflow: hidden;
}

.material-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.material-card__badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: var(--orange);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-xl);
}

.material-card__body {
    padding: var(--space-xl);
}

.material-card__category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.material-card__title {
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
    color: var(--navy);
}

.material-card__title a {
    color: inherit;
    text-decoration: none;
}

.material-card__title a:hover {
    color: var(--orange);
}

.material-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   Steps Guide (How it works)
   ============================================ */
.steps-guide {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-lg);
}

.step {
    text-align: center;
    flex: 1;
    max-width: 280px;
}

.step__number {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--orange);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
    color: var(--navy);
}

.step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.step__arrow {
    flex-shrink: 0;
    width: 32px;
    color: var(--grey-300);
    padding-top: 12px;
}

.step__arrow svg {
    width: 100%;
    height: auto;
}

/* ============================================
   Category Tiles (Materiály subsections)
   ============================================
   Replaces the old .course-filter-* chips, which were never wired to any JS.
   The client asked for clickable squares that open each section. */
.category-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-sm);
    padding: var(--space-xl) var(--space-lg);
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.category-tile:hover,
.category-tile:focus-visible {
    transform: translateY(-4px);
    border-color: var(--orange);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.category-tile__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--orange-bg);
}

.category-tile__icon svg {
    width: 26px;
    height: 26px;
    color: var(--orange);
}

.category-tile__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
}

.category-tile__count {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@media (prefers-reduced-motion: reduce) {
    .category-tile { transition: none; }
    .category-tile:hover, .category-tile:focus-visible { transform: none; }
}

/* ============================================
   Course Cards Grid (e-shop archive)
   ============================================ */
.course-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.course-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--t-hover), box-shadow var(--t-hover), border-color var(--t-hover), background-color var(--t-hover), color var(--t-hover);
    border: 1px solid var(--grey-200);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.course-card__image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    overflow: hidden;
}

.course-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-card__badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: var(--orange);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-xl);
}

.course-card__body {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-card__category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.course-card__title {
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
    color: var(--navy);
}

.course-card__title a {
    color: inherit;
    text-decoration: none;
}

.course-card__title a:hover {
    color: var(--orange);
}

.course-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.course-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: auto;
}

.course-card__meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.course-card__meta svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
}

/* Course Empty State */
.course-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
}

.course-empty-state svg {
    width: 64px;
    height: 64px;
    color: var(--grey-300);
    margin-bottom: var(--space-lg);
}

.course-empty-state h3 {
    color: var(--navy);
    margin-bottom: var(--space-sm);
}

.course-empty-state p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Target Audience Section
   ============================================ */
.audience-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.audience-card {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform var(--t-hover), box-shadow var(--t-hover), border-color var(--t-hover), background-color var(--t-hover), color var(--t-hover);
}

.audience-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.audience-card__icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: var(--orange-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
}

.audience-card__icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--orange);
    fill: none;
    stroke-width: 2;
}

.audience-card h3 {
    margin-bottom: var(--space-sm);
}

.audience-card p {
    font-size: 0.95rem;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: var(--space-4xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(232, 117, 42, 0.1);
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: var(--space-md);
    position: relative;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta-section .btn {
    position: relative;
}

/* ============================================
   Blog / Article Cards
   ============================================ */
.post-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.post-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--t-hover), box-shadow var(--t-hover), border-color var(--t-hover), background-color var(--t-hover), color var(--t-hover);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.post-card__image {
    height: 200px;
    background: var(--cream-dark);
    overflow: hidden;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-card__image img {
    transform: scale(1.05);
}

.post-card__body {
    padding: var(--space-xl);
}

.post-card__date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.post-card__title {
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
}

.post-card__title a {
    color: var(--navy);
}

.post-card__title a:hover {
    color: var(--orange);
}

.post-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.post-card__link {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.post-card__link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.post-card__link:hover svg {
    transform: translateX(4px);
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--white);
    border: 2px solid var(--grey-300);
    border-radius: var(--radius-md);
    transition: transform var(--t-press), box-shadow var(--t-press), border-color var(--t-press), background-color var(--t-press), color var(--t-press);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(232, 117, 42, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--grey-400);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group .error-message {
    font-size: 0.85rem;
    color: #e74c3c;
    margin-top: var(--space-xs);
    display: none;
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #e74c3c;
}

.form-group.has-error .error-message {
    display: block;
}

.form-message {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    margin-bottom: var(--space-lg);
    display: none;
}

.form-message--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Auth forms */
.auth-page {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-4xl);
}

.auth-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 460px;
}

.auth-form-wrapper h1 {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: var(--space-sm);
}

.auth-form-wrapper .auth-subtitle {
    text-align: center;
    margin-bottom: var(--space-2xl);
    color: var(--text-secondary);
}

.auth-form-wrapper .btn {
    width: 100%;
    padding: 0.85rem;
}

.auth-link {
    text-align: center;
    margin-top: var(--space-xl);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.auth-link a {
    font-weight: 600;
}

/* ============================================
   Profile / Dashboard
   ============================================ */
.profile-page {
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-4xl);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
    padding: var(--space-2xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--orange-bg);
}

.profile-info h1 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.profile-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.profile-section {
    margin-bottom: var(--space-3xl);
}

.profile-section h2 {
    font-size: 1.35rem;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--grey-200);
}


/* ============================================
   Archive Header
   ============================================ */
.archive-header {
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-2xl);
    text-align: center;
}

.archive-header h1 {
    margin-bottom: var(--space-sm);
}

.archive-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--grey-200);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    text-align: left;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--orange);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    stroke: var(--navy);
    transition: transform var(--transition-medium);
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium);
}

.faq-answer__content {
    padding: 0 var(--space-xl) var(--space-xl);
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-4xl) 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-section ul li {
    margin-bottom: var(--space-sm);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--orange-light);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
}

.footer-logo .logo-highlight {
    color: var(--orange);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--t-press), box-shadow var(--t-press), border-color var(--t-press), background-color var(--t-press), color var(--t-press);
}

.footer-social a:hover {
    background: var(--orange);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
    fill: var(--white);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--orange-light);
    fill: none;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item a:hover {
    color: var(--orange-light);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xl) 0;
    font-size: 0.85rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-bottom-links a:hover {
    color: var(--orange-light);
}

/* ============================================
   Powered by Diverzity — Floating & Glowing
   ============================================ */
.powered-by-link {
    display: inline-block;
    animation: poweredFloat 3s ease-in-out infinite;
    transition: filter 0.4s ease, transform 0.4s ease;
}

.powered-by-img {
    height: 34px;
    width: auto;
    opacity: 0.55;
    transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
}

.powered-by-link:hover .powered-by-img {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(255, 111, 97, 0.6))
            drop-shadow(0 0 16px rgba(255, 111, 97, 0.3))
            drop-shadow(0 0 32px rgba(255, 111, 97, 0.15));
    transform: scale(1.08);
}

.powered-by-link:hover {
    animation-play-state: paused;
}

@keyframes poweredFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ============================================
   Placeholder Logo Image
   ============================================ */
.placeholder-logo {
    width: 80px;
    height: auto;
    opacity: 0.25;
    object-fit: contain;
}

.material-card__image .placeholder-logo,
.post-card__image .placeholder-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
}

.hero__image .placeholder-logo {
    width: 160px;
    opacity: 0.2;
}

/* ============================================
   Page Templates
   ============================================ */
.page-header {
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-2xl);
    text-align: center;
    background: var(--white);
}

.page-header h1 {
    font-size: 2.25rem;
    margin-bottom: var(--space-sm);
}

.page-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: var(--space-3xl) 0 var(--space-4xl);
}

.page-content .container {
    max-width: var(--container-narrow);
}

/* Content styles (from editor) */
.entry-content h2 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.entry-content h3 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.entry-content p {
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.entry-content ul,
.entry-content ol {
    list-style: disc;
    padding-left: var(--space-xl);
    margin-bottom: var(--space-md);
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

.entry-content img {
    border-radius: var(--radius-md);
    margin: var(--space-xl) 0;
}

.entry-content blockquote {
    border-left: 4px solid var(--orange);
    padding: var(--space-md) var(--space-xl);
    background: var(--orange-bg);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: var(--space-xl) 0;
}

.entry-content blockquote p {
    color: var(--navy);
    font-style: italic;
}

/* About page */
.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.about-value {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.about-value__icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: var(--orange-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
}

.about-value__icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--orange);
    fill: none;
}

/* Contact page */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-card);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--orange-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-item__icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--orange);
    fill: none;
}

.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-card);
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background: var(--cream-dark);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    margin-top: var(--space-3xl);
}

/* ============================================
   Single Post (Blog)
   ============================================ */
.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-3xl);
    align-items: start;
    padding: var(--space-3xl) 0 var(--space-4xl);
}

.single-post-layout .entry-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-card);
}

.single-post-header {
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-xl);
}

.single-post-header .post-meta {
    display: flex;
    gap: var(--space-lg);
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

.single-post-header h1 {
    font-size: 2rem;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-card);
    margin-bottom: var(--space-xl);
}

.sidebar-widget h3 {
    font-size: 1.05rem;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--orange-bg);
}

.sidebar-widget ul li {
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--grey-200);
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-widget ul li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sidebar-widget ul li a:hover {
    color: var(--orange);
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-3xl);
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--white);
    border: 1px solid var(--grey-300);
    transition: transform var(--t-press), box-shadow var(--t-press), border-color var(--t-press), background-color var(--t-press), color var(--t-press);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

.pagination .prev,
.pagination .next {
    width: auto;
    padding: 0 var(--space-lg);
}

/* ============================================
   404 Page
   ============================================ */
.error-404 {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header-height) + var(--space-2xl)) 0;
}

.error-404__number {
    font-size: 8rem;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.error-404 h1 {
    font-size: 1.75rem;
    margin-bottom: var(--space-md);
}

.error-404 p {
    font-size: 1.1rem;
    margin-bottom: var(--space-2xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Search Page
   ============================================ */
.search-form-inline {
    display: flex;
    gap: var(--space-md);
    max-width: 600px;
    margin: var(--space-xl) auto var(--space-3xl);
}

.search-form-inline input[type="search"] {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--grey-300);
    border-radius: var(--radius-xl);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.search-form-inline input[type="search"]:focus {
    border-color: var(--orange);
}

.search-form-inline button {
    padding: 0.75rem 1.75rem;
}

/* ============================================
   Loading Spinner
   ============================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader__spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--grey-200);
    border-top-color: var(--orange);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Scroll Animations
   ============================================ */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate--delay-1 { transition-delay: 0.1s; }
.scroll-animate--delay-2 { transition-delay: 0.2s; }
.scroll-animate--delay-3 { transition-delay: 0.3s; }
.scroll-animate--delay-4 { transition-delay: 0.4s; }

/* ============================================
   Responsive — Tablet
   ============================================ */
@media (max-width: 1024px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.85rem; }

    .hero__text h1 { font-size: 2.25rem; }

    .feature-cards { grid-template-columns: repeat(2, 1fr); }
    .material-cards { grid-template-columns: repeat(2, 1fr); }
    .course-cards { grid-template-columns: repeat(2, 1fr); }
    .post-cards { grid-template-columns: repeat(2, 1fr); }
    .audience-cards { grid-template-columns: repeat(2, 1fr); }
    .about-values { grid-template-columns: repeat(2, 1fr); }

    .footer-content { grid-template-columns: repeat(2, 1fr); }

    .single-post-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
}

/* ============================================
   Responsive — Mobile
   ============================================ */
@media (max-width: 768px) {
    :root {
        --space-4xl: 3rem;
        --header-height: 64px;
    }

    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .container {
        padding: 0 var(--space-md);
    }

    /* Mobile navigation */
    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--white);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
        transition: right var(--transition-medium);
        z-index: 999;
        flex-direction: column;
        overflow-y: auto;
    }

    .main-navigation.mobile-open {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation ul li {
        border-bottom: 1px solid var(--grey-200);
    }

    .main-navigation ul li a {
        display: block;
        padding: var(--space-md) 0;
        font-size: 1.05rem;
    }

    .main-navigation ul li a::after {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .main-navigation .header-actions-mobile {
        display: flex !important;
        flex-direction: column;
        gap: var(--space-md);
        margin-top: var(--space-xl);
        padding-top: var(--space-xl);
        border-top: 1px solid var(--grey-200);
    }

    /* Mobile overlay */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 998;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding-bottom: var(--space-2xl);
    }

    .hero__content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .hero__text h1 { font-size: 1.85rem; }

    .hero__buttons {
        flex-direction: column;
    }

    .hero__buttons .btn {
        width: 100%;
        text-align: center;
    }

    .hero__image {
        max-width: 400px;
        margin: 0 auto;
    }

    /* Cards */
    .feature-cards { grid-template-columns: 1fr 1fr; }
    .material-cards { grid-template-columns: 1fr; }
    .course-cards { grid-template-columns: 1fr; }
    .post-cards { grid-template-columns: 1fr; }
    .audience-cards { grid-template-columns: 1fr; }

    .steps-guide {
        flex-direction: column;
        align-items: center;
    }

    .step__arrow {
        transform: rotate(90deg);
        width: 24px;
    }
    .about-values { grid-template-columns: 1fr; }

    /* Footer */
    .footer-content { grid-template-columns: 1fr; gap: var(--space-2xl); }
    .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }

    /* Contact */
    .contact-layout { grid-template-columns: 1fr; }

    /* Auth */
    .auth-form-wrapper { padding: var(--space-xl); }

    /* Profile */
    .profile-header { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .feature-cards { grid-template-columns: 1fr; }

    .hero__text h1 { font-size: 1.6rem; }

    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   2026 REFRESH — motion, depth and interaction polish
   ═══════════════════════════════════════════════════════════════════════
   Layered on top of the existing design rather than replacing it: the
   orange/navy/cream palette, Inter, and the page structure are unchanged.
   What changes is how the interface *moves and responds* — which is what
   separates a competent site from a considered one.
   ═════════════════════════════════════════════════════════════════════ */

/* ── Reveal on scroll ────────────────────────────────────────────────
   The existing reveal moved 30px and faded. That distance reads as a
   "slide", which draws attention to the animation itself. A shorter
   travel with a slight scale settles the eye on the content instead. */
.scroll-animate {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.995);
    transition:
        opacity var(--dur-slow) var(--ease-out),
        transform var(--dur-slow) var(--ease-out);
    /* Hint the compositor before the transition starts, then release it —
       leaving will-change on permanently costs memory on long pages. */
    will-change: opacity, transform;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    will-change: auto;
}

/* Stagger comes from --i, set by JS per item in a group. 45ms reads as one
   flowing gesture; below ~30ms it looks simultaneous, above ~80ms it drags. */
.scroll-animate {
    transition-delay: calc(var(--i, 0) * 45ms);
}

/* ── Buttons ─────────────────────────────────────────────────────────
   Lift on hover, settle on press. The press state is deliberately faster
   than the hover so the button feels mechanically responsive. */
.btn {
    transition:
        transform var(--t-hover),
        box-shadow var(--t-hover),
        background-color var(--t-hover),
        border-color var(--t-hover),
        color var(--t-hover);
    will-change: transform;
}

.btn:hover {
    transform: translate3d(0, -2px, 0);
}

.btn:active {
    transform: translate3d(0, 0, 0) scale(0.98);
    transition: transform var(--t-press);
}

.btn--primary:hover {
    box-shadow: var(--shadow-lift);
}

/* ── Cards ───────────────────────────────────────────────────────────
   Transform + shadow only. Animating the shadow alone on a large card is
   expensive to repaint, so the lift carries most of the perceived motion. */
.course-card,
.feature-card,
.category-tile,
.material-card,
.post-card {
    transition:
        transform var(--dur-base) var(--ease-out),
        box-shadow var(--dur-base) var(--ease-out),
        border-color var(--dur-base) var(--ease-out);
}

.course-card:hover,
.feature-card:hover,
.material-card:hover,
.post-card:hover {
    transform: translate3d(0, -4px, 0);
    box-shadow: var(--shadow-lift);
}

/* Tiles are navigation, so they get a slightly stronger response than a
   passive content card. */
.category-tile:hover,
.category-tile:focus-visible {
    transform: translate3d(0, -5px, 0);
    box-shadow: var(--shadow-float);
}

.category-tile:active {
    transform: translate3d(0, -1px, 0) scale(0.99);
    transition: transform var(--t-press);
}

/* Card images: a restrained zoom. Anything past ~1.04 reads as a stock
   template rather than a considered detail. */
.course-card__image,
.material-card__image {
    overflow: hidden;
}

.course-card__image img,
.material-card__image img {
    transition: transform var(--dur-slow) var(--ease-out);
    will-change: transform;
}

.course-card:hover .course-card__image img,
.material-card:hover .material-card__image img {
    transform: scale(1.04);
}

/* ── Focus ───────────────────────────────────────────────────────────
   :focus-visible so the ring appears for keyboard users without firing on
   every mouse click. Offset keeps it legible against the element itself.
   This is an accessibility requirement, not decoration — it was missing. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.category-tile:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Inputs get the ring instead, since an outline would fight their border. */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    border-color: var(--orange);
    box-shadow: var(--ring);
}

/* ── Links ───────────────────────────────────────────────────────────
   Underline that grows from the left rather than appearing all at once. */
.content-link,
.footer-col a,
.bezrisku-create-alt a {
    position: relative;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 1px;
    transition: background-size var(--dur-base) var(--ease-out), color var(--t-hover);
}

.content-link:hover,
.footer-col a:hover,
.bezrisku-create-alt a:hover {
    background-size: 100% 1px;
}

/* ── Header ──────────────────────────────────────────────────────────
   Condenses slightly once scrolled, so the page feels like it has depth
   without a hard state change. Uses the .scrolled class that initHeader()
   already sets — no second scroll listener. */
.site-header {
    transition:
        box-shadow var(--dur-base) var(--ease-out),
        background-color var(--dur-base) var(--ease-out),
        backdrop-filter var(--dur-base) var(--ease-out);
}

.site-header.scrolled,
#masthead.scrolled {
    box-shadow: var(--shadow-soft);
    background-color: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(1.6) blur(12px);
    -webkit-backdrop-filter: saturate(1.6) blur(12px);
}

/* ── Section rhythm ──────────────────────────────────────────────────
   Fluid vertical spacing so sections breathe on desktop without wasting
   half a phone screen on mobile. */
.section {
    padding-block: clamp(3rem, 2rem + 4.5vw, 6rem);
}

/* ── Selection ───────────────────────────────────────────────────────
   Small detail, but default blue selection on a warm palette is the kind
   of thing that quietly reads as unfinished. */
::selection {
    background: var(--orange-bg-hover);
    color: var(--navy-dark);
}

/* ── Reduced motion ──────────────────────────────────────────────────
   Previously handled in one place across the whole stylesheet. Motion
   sensitivity is a real accessibility need, so everything above collapses
   to instant, and revealed content is shown rather than left invisible —
   the failure mode that hides content from the people who need it most. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }

    .scroll-animate {
        opacity: 1;
        transform: none;
    }

    .btn:hover,
    .course-card:hover,
    .feature-card:hover,
    .category-tile:hover,
    .material-card:hover,
    .post-card:hover {
        transform: none;
    }

    .course-card:hover .course-card__image img,
    .material-card:hover .material-card__image img {
        transform: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   EDITORIAL LAYER
   ═══════════════════════════════════════════════════════════════════════
   The motion work above made the site feel better without making it look
   different. This layer addresses the visual reasons it read as generic:
   an empty hero, uniform type weight, and every section centred with the
   same heading-plus-subtitle rhythm.
   ═════════════════════════════════════════════════════════════════════ */

/* ── Display typography ──────────────────────────────────────────────
   Large type needs negative tracking and tighter leading. Left at default
   spacing, a 52px headline looks like body text that was enlarged —
   which is most of why the hero read as plain. */
.hero h1,
.archive-header h1 {
    letter-spacing: -0.03em;
    line-height: 1.04;
    font-weight: 800;
    text-wrap: balance;
}

h2 {
    letter-spacing: -0.02em;
    line-height: 1.12;
    text-wrap: balance;
}

h3 {
    letter-spacing: -0.011em;
}

/* Lead paragraph: one clear step below the headline rather than the same
   grey as everything else. */
.hero__text > p {
    font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 46ch;
}

/* ── Hero ────────────────────────────────────────────────────────────
   Slightly asymmetric: the text column takes more room than the panel, so
   the composition has a clear primary side instead of reading as two
   equal halves. */
@media (min-width: 900px) {
    .hero__content {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: center;
        gap: clamp(2rem, 1rem + 4vw, 5rem);
    }
}

/* ── Hero stats panel ────────────────────────────────────────────────
   Replaces the empty placeholder box. Navy against the cream hero so it
   anchors that side of the composition — the page previously had no dark
   mass anywhere above the fold. */
.hero-panel {
    position: relative;
    padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(232, 117, 42, 0.22) 0%, transparent 55%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-float);
    overflow: hidden;
}

/* Hairline highlight along the top edge — the detail that stops a dark
   panel looking like a flat rectangle. */
.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
}

.hero-panel__eyebrow {
    margin: 0 0 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange-light);
}

.hero-panel__stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.hero-stat__value {
    display: block;
    font-size: clamp(2.25rem, 1.7rem + 2.4vw, 3.25rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    /* Tabular figures so numbers align and do not shuffle width. */
    font-variant-numeric: tabular-nums;
}

.hero-stat__unit {
    font-size: 0.4em;
    font-weight: 600;
    margin-left: 0.25rem;
    color: var(--orange-light);
}

.hero-stat__label {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.72);
}

.hero-panel__list {
    list-style: none;
    margin: 0;
    padding: 1.5rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: grid;
    gap: 0.6rem;
}

.hero-panel__list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.86);
}

/* Check mark drawn in CSS rather than shipped as an icon font or emoji. */
.hero-panel__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.36em;
    width: 0.5rem;
    height: 0.28rem;
    border-left: 2px solid var(--orange-light);
    border-bottom: 2px solid var(--orange-light);
    transform: rotate(-45deg);
}

/* ── Section headers ─────────────────────────────────────────────────
   Every section repeated the same centred heading + grey subtitle. An
   eyebrow rule gives each one an anchor and breaks the symmetry without
   restructuring any templates. */
.section__header {
    position: relative;
}

.section__header h2 {
    position: relative;
    display: inline-block;
    padding-top: 1.25rem;
}

.section__header h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5rem;
    height: 3px;
    border-radius: 999px;
    background: var(--orange);
}

.section__header > p {
    max-width: 52ch;
    margin-inline: auto;
    font-size: 1.0625rem;
    line-height: 1.6;
}

/* ── Cards ───────────────────────────────────────────────────────────
   White box + pastel circle is the most generic card on the web. A top
   accent that appears on hover, and a squircle icon tile instead of a
   circle, give them identity while keeping the existing structure. */
.feature-card,
.category-tile {
    position: relative;
    overflow: hidden;
}

.feature-card::after,
.category-tile::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--orange-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-base) var(--ease-out);
}

.feature-card:hover::after,
.category-tile:hover::after,
.category-tile:focus-visible::after {
    transform: scaleX(1);
}

.feature-card__icon,
.category-tile__icon {
    border-radius: 30% !important;
    transition: transform var(--dur-base) var(--ease-spring),
                background-color var(--dur-base) var(--ease-out);
}

.feature-card:hover .feature-card__icon,
.category-tile:hover .category-tile__icon {
    transform: scale(1.08) rotate(-3deg);
    background: var(--orange-bg-hover);
}

/* ── Numbered steps ──────────────────────────────────────────────────
   The step circles were flat orange discs. A gradient and a soft glow
   make them read as deliberate rather than default. */
.step__number {
    background: linear-gradient(145deg, var(--orange-light), var(--orange-dark)) !important;
    box-shadow: 0 6px 18px rgba(232, 117, 42, 0.32);
    font-variant-numeric: tabular-nums;
}

/* ── Texture ─────────────────────────────────────────────────────────
   A very fine grain over the cream sections. Flat colour fills are what
   make a page look like a wireframe; this is barely perceptible on its
   own but removes that plastic evenness. */
.section--cream::before,
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.section--cream,
.hero {
    position: relative;
}

/* Keep section content above the grain layer. */
.section--cream > .container,
.hero > .container {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .feature-card:hover::after,
    .category-tile:hover::after,
    .feature-card:hover .feature-card__icon,
    .category-tile:hover .category-tile__icon {
        transform: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   SCROLL-DRIVEN MOTION
   ═══════════════════════════════════════════════════════════════════════
   Native CSS scroll timelines: tied to scroll position and run on the
   compositor, so they stay smooth while the main thread is busy. A JS
   scroll handler animating the same properties jitters under load and
   costs frame budget on every scroll event.

   Driven off .scroll-animate, which all 16 page templates already use, so
   every page gets the same behaviour without enumerating component classes.

   Motion is symmetric: content rises in as it enters and settles back as
   it leaves, in both scroll directions. Entry and exit are two separate
   animations rather than one range spanning cover 0–100%, because the last
   elements on a page never reach the exit phase — with a single range they
   would freeze part-faded and never become fully visible.
   ═════════════════════════════════════════════════════════════════════ */

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {

        /* The JS reveal and the scroll-driven one would fight over the same
           properties, so the JS path is neutralised where CSS takes over. */
        .scroll-animate {
            opacity: 1;
            transform: none;
            transition: none;
        }

        @keyframes flow-in {
            from { opacity: 0; transform: translate3d(0, 34px, 0) scale(0.988); }
            to   { opacity: 1; transform: none; }
        }

        /* Leaving is gentler than arriving — a hard fade-out pulls attention
           to content the reader has finished with. */
        @keyframes flow-out {
            from { opacity: 1; transform: none; }
            to   { opacity: 0.25; transform: translate3d(0, -22px, 0) scale(0.99); }
        }

        /* Entry applies to everything. */
        .scroll-animate {
            animation: flow-in linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 100%;
        }

        /* Exit is deliberately NOT universal. The exit phase is keyed to an
           element's top edge leaving the viewport, so on a tall block — a
           724px contact form, say — the fade starts while the reader is
           still reading the bottom of it. Restricted to small repeated
           items and headers, where "this one is done" is the right message.

           flow-out uses `forwards`, not `both`: with `both` its backwards
           fill (opacity 1) applies before its range starts and, being later
           in the list, silently overrides flow-in, so the entry animation
           never shows. */
        .feature-cards > .scroll-animate,
        .category-tiles > .scroll-animate,
        .course-cards > .scroll-animate,
        .material-cards > .scroll-animate,
        .post-cards > .scroll-animate,
        .about-values > .scroll-animate,
        .event-cards > .scroll-animate,
        .section__header.scroll-animate {
            animation: flow-in linear both, flow-out linear forwards;
            animation-timeline: view(), view();
            /* exit 60%, not 25%: the exit phase runs from the element's top
               crossing the viewport top to its bottom doing the same, so at
               25% roughly three-quarters of the card is still on screen and
               visibly fading. Starting at 60% means it only dims once mostly
               gone. */
            animation-range: entry 0% entry 100%, exit 60% exit 100%;
        }

        /* ── Directional entry for grids ─────────────────────────────
           Alternating sides give a grid rhythm as it assembles rather than
           every card arriving on the same vector. 26px of travel: a longer
           slide draws attention to the animation instead of the content. */
        @keyframes flow-in-left {
            from { opacity: 0; transform: translate3d(-26px, 22px, 0); }
            to   { opacity: 1; transform: none; }
        }
        @keyframes flow-in-right {
            from { opacity: 0; transform: translate3d(26px, 22px, 0); }
            to   { opacity: 1; transform: none; }
        }

        /* Two names, because these grids also carry the exit animation. */
        .feature-cards      > .scroll-animate:nth-child(odd),
        .category-tiles     > .scroll-animate:nth-child(odd),
        .course-cards       > .scroll-animate:nth-child(odd),
        .material-cards     > .scroll-animate:nth-child(odd),
        .post-cards         > .scroll-animate:nth-child(odd),
        .about-values       > .scroll-animate:nth-child(odd),
        .event-cards        > .scroll-animate:nth-child(odd) {
            animation-name: flow-in-left, flow-out;
        }

        /* Steps have entry only, so a single name. Listing two here would
           leave flow-out without a matching timeline, falling back to the
           document timeline and playing once on load regardless of scroll. */
        .steps-guide > .scroll-animate:nth-child(odd) {
            animation-name: flow-in-left;
        }
        .feature-cards      > .scroll-animate:nth-child(even),
        .category-tiles     > .scroll-animate:nth-child(even),
        .course-cards       > .scroll-animate:nth-child(even),
        .material-cards     > .scroll-animate:nth-child(even),
        .post-cards         > .scroll-animate:nth-child(even),
        .about-values       > .scroll-animate:nth-child(even),
        .event-cards        > .scroll-animate:nth-child(even) {
            animation-name: flow-in-right, flow-out;
        }

        .steps-guide > .scroll-animate:nth-child(even) {
            animation-name: flow-in-right;
        }

        /* ── Hero ────────────────────────────────────────────────────
           The hero recedes as it leaves so the page has depth rather than
           feeling like a flat sheet pulled upward. It is above the fold on
           load, so it gets no entry animation — only a departure. */
        @keyframes hero-recede {
            from { opacity: 1; transform: none; }
            to   { opacity: 0.15; transform: translate3d(0, -40px, 0) scale(0.97); }
        }

        .hero__text {
            animation: hero-recede linear both;
            animation-timeline: view();
            animation-range: exit -10% exit 90%;
        }

        /* Panel drifts at a different rate to the text, separating the two
           columns in depth. Kept small — heavy parallax dates a site fast. */
        @keyframes drift {
            from { translate: 0 24px; }
            to   { translate: 0 -24px; }
        }

        .hero__image {
            animation: hero-recede linear both, drift linear both;
            /* drift only touches `translate`, so it cannot mask hero-recede's
               opacity — `both` is safe on this pair. */
            animation-timeline: view(), view();
            animation-range: exit -10% exit 90%, cover 0% cover 100%;
        }

        /* ── Section accent rules draw themselves ────────────────────── */
        @keyframes rule-draw {
            from { transform: translateX(-50%) scaleX(0); }
            to   { transform: translateX(-50%) scaleX(1); }
        }

        .section__header h2::before {
            animation: rule-draw linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 100%;
        }

        /* ── Reading progress ────────────────────────────────────────
           Driven by scroll() on the root, so it costs nothing per frame. */
        @keyframes progress-grow {
            from { transform: scaleX(0); }
            to   { transform: scaleX(1); }
        }

        .site-header::after,
        #masthead::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 2px;
            transform-origin: left;
            background: linear-gradient(90deg, var(--orange), var(--orange-light));
            animation: progress-grow linear both;
            animation-timeline: scroll(root block);
        }

        /* Long-form pages read better without their body copy animating, so
           only structural blocks move there. */
        .page-privacy .scroll-animate,
        .page-terms .scroll-animate,
        .entry-content .scroll-animate {
            animation-name: flow-in;
            animation-range: entry 0% entry 100%;
        }
    }
}

/* Firefox and older browsers keep the IntersectionObserver reveal in
   main.js, so they get a working page without the scroll linkage. Noted so
   the absence of a fallback here reads as deliberate. */
