/* ==========================================================================
   Red Chair - Main Stylesheet
   Independent Queensland Performing Arts

   Design inspired by:
   - Perth Festival (bordered layout, warm palette)
   - Sydney Festival (energetic, card-based event displays)
   - Malthouse Theatre (event details above hero, left-aligned)

   Fonts: Arvo (headings) + Sora (body)
   Colors: Set via CSS custom properties from PHP Customizer
   ========================================================================== */

/* ==========================================================================
   0. CSS Custom Properties
   ========================================================================== */

:root {
    /* Brand colors - fallbacks; PHP injects --rc-primary/secondary/accent via <style> */
    --rc-primary: #C41E3A;
    --rc-secondary: #1A1A2E;
    --rc-accent: #E8D5B7;

    /* Heading color — matches the purple from the Red Chair logo */
    --rc-heading: #6A2C91;

    /* Derived palette */
    --rc-primary-dark: #9E1830;
    --rc-primary-light: #D94A60;
    --rc-bg: #ffffff;
    --rc-bg-warm: #FAF6F1;
    --rc-bg-muted: #F5F5F5;
    --rc-text: #2C2C2C;
    --rc-text-light: #6B6B6B;
    --rc-text-inverse: #ffffff;
    --rc-border: #E0DCD7;
    --rc-border-light: #EDEBE8;

    /* Typography */
    --rc-font-heading: 'Arvo', Georgia, 'Times New Roman', serif;
    --rc-font-body: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --rc-space-xs: 4px;
    --rc-space-sm: 8px;
    --rc-space-md: 16px;
    --rc-space-lg: 24px;
    --rc-space-xl: 32px;
    --rc-space-2xl: 48px;
    --rc-space-3xl: 64px;
    --rc-space-4xl: 80px;

    /* Layout */
    --rc-container-max: 1400px;
    --rc-container-narrow: 800px;
    --rc-container-padding: 24px;
    --rc-border-width: 24px;
    --rc-header-height: 96px;

    /* Transitions */
    --rc-transition: 0.25s ease;
    --rc-transition-slow: 0.4s ease;

    /* Radius */
    --rc-radius: 4px;
    --rc-radius-md: 6px;
    --rc-radius-lg: 8px;

    /* Shadows */
    --rc-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --rc-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --rc-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --rc-shadow-lift: 0 8px 30px rgba(0, 0, 0, 0.15);
}


/* ==========================================================================
   1. Reset / Base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--rc-font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--rc-text);
    background-color: var(--rc-accent);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

svg {
    display: inline-block;
    vertical-align: middle;
}

a {
    color: var(--rc-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color var(--rc-transition), text-decoration-color var(--rc-transition);
}

a:hover,
a:focus-visible {
    color: var(--rc-primary-dark);
}

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    color: inherit;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

figure {
    margin: 0;
}

table {
    border-collapse: collapse;
    width: 100%;
}

/* Focus styles - accessibility */
:focus-visible {
    outline: 2px solid var(--rc-primary);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}


/* ==========================================================================
   2. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--rc-font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--rc-heading);
    margin-top: 0;
    margin-bottom: 0.5em;
}

h1 {
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2.5rem);
    letter-spacing: -0.015em;
}

h3 {
    font-size: clamp(1.25rem, 2vw + 0.25rem, 1.75rem);
}

h4 {
    font-size: 1.25rem;
    font-family: var(--rc-font-body);
    font-weight: 600;
}

h5 {
    font-size: 1.1rem;
    font-family: var(--rc-font-body);
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-family: var(--rc-font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    margin-top: 0;
    margin-bottom: 1em;
}

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

strong,
b {
    font-weight: 600;
}

small {
    font-size: 0.875rem;
}

blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid var(--rc-primary);
    font-style: italic;
    color: var(--rc-text-light);
    background: var(--rc-bg-warm);
    border-radius: 0 var(--rc-radius) var(--rc-radius) 0;
}

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

/* Logo text styling */
.logo-red {
    color: var(--rc-primary);
    font-family: var(--rc-font-heading);
    font-weight: 700;
}

.logo-chair {
    color: var(--rc-secondary);
    font-family: var(--rc-font-heading);
    font-weight: 400;
}


/* ==========================================================================
   3. Site Border (Perth Festival-inspired)
   ========================================================================== */

.site-border {
    padding: var(--rc-border-width);
    background-color: var(--rc-accent);
    min-height: 100vh;
}

/*
 * Fixed top border strip — stays visible above the sticky header.
 * Placed on body (not .site-border) so no ancestor stacking context,
 * overflow, or Gutenberg block wrapper can ever obscure it.
 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--rc-border-width);
    background-color: var(--rc-accent);
    z-index: 9999;
    pointer-events: none;
}

.site-wrapper {
    background-color: var(--rc-bg);
    min-height: calc(100vh - var(--rc-border-width) * 2);
    position: relative;
    overflow: clip;
}


/* ==========================================================================
   4. Container
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--rc-container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--rc-container-padding);
    padding-right: var(--rc-container-padding);
}

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


/* ==========================================================================
   5. Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: var(--rc-border-width);
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rc-border-light);
    transition: box-shadow var(--rc-transition);
}

.site-header.is-scrolled {
    box-shadow: var(--rc-shadow-sm);
}

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

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

.site-header__brand .custom-logo-link {
    display: block;
}

.site-header__brand .custom-logo {
    height: 80px;
    width: auto;
}

.site-header__logo-text {
    font-size: 1.5rem;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.site-header__logo-text:hover {
    text-decoration: none;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--rc-space-md);
    flex-shrink: 0;
}

.site-header__search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--rc-secondary);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color var(--rc-transition), color var(--rc-transition);
}

.site-header__search-toggle:hover,
.site-header__search-toggle:focus-visible {
    background-color: var(--rc-bg-muted);
    color: var(--rc-primary);
}

.site-header__cta {
    display: none;
}

/* Hamburger */
.site-header__menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--rc-radius-sm);
    color: var(--rc-secondary);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color var(--rc-transition);
}

.site-header__menu-toggle:hover,
.site-header__menu-toggle:focus-visible {
    background-color: var(--rc-bg-muted);
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 22px;
    height: 22px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    border-radius: 1px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    transform-origin: center;
}

/* Hamburger → X animation */
.site-header__menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header__menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
}

.site-header__menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ==========================================================================
   6. Desktop Navigation
   ========================================================================== */

.site-nav {
    display: none;
    flex: 1;
    justify-content: center;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: var(--rc-space-xs);
}

.site-nav__item {
    position: relative;
    flex-shrink: 0;
}

.site-nav__link {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--rc-secondary);
    text-decoration: none;
    border-radius: var(--rc-radius);
    transition: color var(--rc-transition), background-color var(--rc-transition);
    white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
    color: var(--rc-primary);
    background-color: var(--rc-bg-warm);
    text-decoration: none;
}

.site-nav__item--active > .site-nav__link {
    color: var(--rc-primary);
}

.site-nav__item--active > .site-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 2px;
    background-color: var(--rc-primary);
    border-radius: 1px;
}

/* Dropdown toggle (shared base for both standard links and mega buttons) */
.site-nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--rc-text-light);
    transition: color var(--rc-transition), transform var(--rc-transition);
}

.site-nav__toggle:hover,
.site-nav__toggle:focus-visible {
    color: var(--rc-primary);
}

/* Mega trigger: merged link + chevron as a single <button> */
.site-nav__mega-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: auto;
    height: auto;
    margin-left: 0;
    padding: 8px 14px;
    font-family: var(--rc-font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--rc-secondary);
    border-radius: var(--rc-radius);
    white-space: nowrap;
    cursor: pointer;
    transition: color var(--rc-transition), background-color var(--rc-transition);
}

.site-nav__mega-trigger:hover,
.site-nav__mega-trigger:focus-visible {
    color: var(--rc-primary);
    background-color: var(--rc-bg-warm);
}

.site-nav__mega-trigger[aria-expanded="true"] {
    color: var(--rc-primary);
    transform: none; /* override the 180deg from .site-nav__toggle */
}

.site-nav__mega-chevron {
    flex-shrink: 0;
    margin-left: 4px;
    vertical-align: middle;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav__toggle[aria-expanded="true"] .site-nav__mega-chevron {
    transform: rotate(180deg);
}

/* Mega menu opens on hover of the parent <li> */
.site-nav__item--mega:hover > .mega-menu,
.site-nav__item--mega:focus-within > .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.site-nav__item--mega:hover > .mega-menu .mega-menu__col,
.site-nav__item--mega:focus-within > .mega-menu .mega-menu__col {
    animation-play-state: running;
}

/* Dropdown menu (standard – non-mega items) */
.site-nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--rc-bg);
    border: 1px solid var(--rc-border-light);
    border-radius: var(--rc-radius-md);
    box-shadow: var(--rc-shadow-md);
    padding: var(--rc-space-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--rc-transition), visibility var(--rc-transition), transform var(--rc-transition);
    z-index: 50;
}

.site-nav__item--has-children:not(.site-nav__item--mega):hover > .site-nav__dropdown,
.site-nav__item--has-children:not(.site-nav__item--mega):focus-within > .site-nav__dropdown,
.site-nav__item--has-children:not(.site-nav__item--mega) > .site-nav__toggle[aria-expanded="true"] + .site-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-nav__dropdown .site-nav__item {
    display: block;
}

.site-nav__dropdown .site-nav__link {
    display: block;
    padding: 8px 20px;
    font-size: 0.875rem;
    border-radius: 0;
}

.site-nav__dropdown .site-nav__link:hover,
.site-nav__dropdown .site-nav__link:focus-visible {
    background-color: var(--rc-bg-warm);
}

/* Nested dropdown */
.site-nav__dropdown--nested {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
}

.site-nav__dropdown--nested .site-nav__link {
    padding-left: 36px;
    font-size: 0.8125rem;
    color: var(--rc-text-light);
}


/* ==========================================================================
   6b. Mega Menu
   ========================================================================== */

/* The mega-menu panel sits below the About nav item and stretches the
   full width of the .site-header container.
   Scoped to .site-nav so the class name doesn't collide with the
   WordPress-generated <li class="mega-menu"> in the mobile menu. */

.site-nav .mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    width: calc(var(--rc-container-max) - var(--rc-space-xl) * 2);
    max-width: calc(100vw - var(--rc-border-width) * 2 - var(--rc-space-lg) * 2);
    background: var(--rc-bg);
    border: 1px solid var(--rc-border-light);
    border-radius: var(--rc-radius-lg);
    box-shadow: var(--rc-shadow-lg);
    padding: 0;
    z-index: 100;

    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    /* Smooth entry */
    transition:
        opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.35s;
}

/* Open state */
.site-nav__item--mega.is-open > .mega-menu,
.site-nav__item--mega > .site-nav__toggle[aria-expanded="true"] ~ .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Inner wrapper – multi-column grid */
.mega-menu__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0;
    padding: var(--rc-space-xl) var(--rc-space-2xl);
}

/* Individual column */
.mega-menu__col {
    padding: var(--rc-space-sm) var(--rc-space-md);

    /* Staggered fade-in (uses --col-i set inline by the walker) */
    opacity: 0;
    transform: translateY(10px);
    animation: megaColIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--col-i, 1) * 0.06s);
    animation-play-state: paused;
}

/* Only play the stagger animation when the panel is open */
.site-nav__item--mega.is-open .mega-menu__col,
.site-nav__item--mega > .site-nav__toggle[aria-expanded="true"] ~ .mega-menu .mega-menu__col {
    animation-play-state: running;
}

@keyframes megaColIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Column heading (non-link label or clickable heading) */
.mega-menu__heading {
    display: block;
    font-family: var(--rc-font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--rc-primary);
    padding-bottom: var(--rc-space-sm);
    margin-bottom: var(--rc-space-sm);
    border-bottom: 2px solid var(--rc-accent);
}

.mega-menu__heading--link {
    text-decoration: none;
    transition: color var(--rc-transition);
}

.mega-menu__heading--link:hover,
.mega-menu__heading--link:focus-visible {
    color: var(--rc-primary-dark);
}

/* Link list within a column */
.mega-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-menu__item {
    margin: 0;
}

.mega-menu__link {
    display: block;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--rc-text);
    text-decoration: none;
    transition:
        color var(--rc-transition),
        padding-left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mega-menu__link:hover,
.mega-menu__link:focus-visible {
    color: var(--rc-primary);
    padding-left: 6px;
}

.mega-menu__item--active .mega-menu__link {
    color: var(--rc-primary);
    font-weight: 600;
}

/* Subtle divider between columns (not on the last one) */
.mega-menu__col:not(:last-child) {
    border-right: 1px solid var(--rc-border-light);
}

/* ── Projects mega menu: cards column takes more space ──────────── */

.mega-menu__col--cards {
    flex: 2;
}

/* Card list uses a vertical stack */
.mega-menu__list--cards {
    display: flex;
    flex-direction: column;
    gap: var(--rc-space-sm);
}

/* Individual project card inside mega menu */
.mega-menu__card {
    display: flex;
    align-items: flex-start;
    gap: var(--rc-space-sm);
    padding: var(--rc-space-xs);
    border-radius: var(--rc-radius);
    text-decoration: none;
    color: var(--rc-text);
    transition: background-color var(--rc-transition);
}

.mega-menu__card:hover,
.mega-menu__card:focus-visible {
    background-color: var(--rc-bg-muted);
}

.mega-menu__card-img {
    flex-shrink: 0;
    width: 64px;
    height: 48px;
    border-radius: var(--rc-radius-sm, 4px);
    overflow: hidden;
}

.mega-menu__card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mega-menu__card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mega-menu__card-title {
    font-family: var(--rc-font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rc-text);
    line-height: 1.3;
    transition: color var(--rc-transition);
}

.mega-menu__card:hover .mega-menu__card-title {
    color: var(--rc-primary);
}

.mega-menu__card-excerpt {
    font-size: 0.8rem;
    color: var(--rc-text-light);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Projects mega inner: cards column wider than Past Projects list */
.site-nav__item--mega:has(.mega-menu__col--cards) .mega-menu__inner {
    grid-template-columns: 2fr 1fr;
}


/* ==========================================================================
   7. Mobile Menu
   ========================================================================== */

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background-color: var(--rc-bg);
    z-index: 90;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.mobile-menu[aria-hidden="false"] {
    transform: translateX(0);
}

/* Header row with close button — pushed below the sticky site header + border */
.mobile-menu__header {
    display: flex;
    justify-content: flex-end;
    padding: calc(var(--rc-header-height) + var(--rc-border-width) + var(--rc-space-sm)) var(--rc-space-lg) 0;
}

.mobile-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--rc-secondary);
    background: var(--rc-bg-muted);
    border: none;
    cursor: pointer;
    transition: background-color var(--rc-transition), color var(--rc-transition);
}

.mobile-menu__close:hover,
.mobile-menu__close:focus-visible {
    background-color: var(--rc-primary);
    color: var(--rc-text-inverse);
}

.mobile-menu__close:focus-visible {
    outline: 2px solid var(--rc-primary);
    outline-offset: 2px;
}

.mobile-menu__inner {
    padding: var(--rc-space-sm) var(--rc-space-lg) var(--rc-space-2xl);
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Neutralise the WP-generated .mega-menu class on <li> items so it
   doesn't inherit any desktop mega-menu panel styles. */
.mobile-menu__list li.mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    width: auto;
    max-width: none;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    z-index: auto;
    transition: none;
}

/* ── Nav list ──────────────────────────────────────────────────────── */

.mobile-menu__list {
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu__list > li {
    border-bottom: 1px solid var(--rc-border-light);
}

/* Top-level links */
.mobile-menu__list > li > a {
    display: flex;
    align-items: center;
    padding: 16px 0;
    font-family: var(--rc-font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--rc-secondary);
    text-decoration: none;
    min-height: 52px;
    transition: color var(--rc-transition);
}

.mobile-menu__list > li > a:hover,
.mobile-menu__list > li > a:focus-visible {
    color: var(--rc-primary);
}

.mobile-menu__list > li > a:active {
    color: var(--rc-primary-dark);
}

/* Parent items with children: link + toggle in a row */
.mobile-menu__has-children {
    position: relative;
}

.mobile-menu__has-children > a {
    padding-right: 52px;  /* space for toggle button */
}

/* ── Sub-menu toggle button ────────────────────────────────────────── */

.mobile-menu__submenu-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-left: 1px solid var(--rc-border-light);
    color: var(--rc-text-light);
    cursor: pointer;
    transition: color var(--rc-transition), background-color var(--rc-transition);
}

.mobile-menu__submenu-toggle:hover,
.mobile-menu__submenu-toggle:focus-visible {
    color: var(--rc-primary);
    background-color: var(--rc-bg-muted);
}

.mobile-menu__submenu-toggle:focus-visible {
    outline: 2px solid var(--rc-primary);
    outline-offset: -2px;
}

.mobile-menu__submenu-toggle svg {
    transition: transform 0.3s ease;
}

.mobile-menu__has-children.is-active > .mobile-menu__submenu-toggle svg {
    transform: rotate(180deg);
}

/* ── Accordion sub-menus ───────────────────────────────────────────── */

.mobile-menu__list .sub-menu {
    list-style: none;
    padding: 0 0 var(--rc-space-sm) var(--rc-space-md);
    margin: 0;
    border-left: 2px solid var(--rc-border-light);
    margin-left: var(--rc-space-sm);
}

.mobile-menu__list .sub-menu li {
    border-bottom: none;
}

.mobile-menu__list .sub-menu li a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    font-size: 1rem;
    font-weight: 400;
    color: var(--rc-text-light);
    text-decoration: none;
    min-height: 44px;
    border-radius: var(--rc-radius-sm);
    transition: color var(--rc-transition), background-color var(--rc-transition);
}

.mobile-menu__list .sub-menu li a:hover,
.mobile-menu__list .sub-menu li a:focus-visible {
    color: var(--rc-primary);
    background-color: var(--rc-bg-muted);
}

/* Nested sub-sub-menus */
.mobile-menu__list .sub-menu .sub-menu {
    margin-left: var(--rc-space-sm);
    padding-left: var(--rc-space-sm);
    border-left-color: var(--rc-border);
}

.mobile-menu__list .sub-menu .sub-menu li a {
    font-size: 0.925rem;
    padding: 8px 12px;
    min-height: 40px;
}

/* ── Footer: CTA + social ─────────────────────────────────────────── */

.mobile-menu__footer {
    margin-top: var(--rc-space-xl);
    padding-top: var(--rc-space-lg);
    border-top: 1px solid var(--rc-border);
}

.mobile-menu__footer .btn {
    margin-bottom: var(--rc-space-lg);
}

.mobile-menu__social {
    display: flex;
    align-items: center;
    gap: var(--rc-space-md);
    justify-content: center;
}

.mobile-menu__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--rc-text-light);
    background-color: var(--rc-bg-muted);
    text-decoration: none;
    transition: color var(--rc-transition), background-color var(--rc-transition);
}

.mobile-menu__social-link:hover,
.mobile-menu__social-link:focus-visible {
    color: var(--rc-text-inverse);
    background-color: var(--rc-primary);
}

/* ── Backdrop overlay ──────────────────────────────────────────────── */

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 80;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Prevent scroll when menu open */
body.is-menu-open {
    overflow: hidden;
}


/* ==========================================================================
   8. Search Overlay
   ========================================================================== */

.site-search {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--rc-bg);
    border-bottom: 1px solid var(--rc-border);
    box-shadow: var(--rc-shadow-md);
    padding: var(--rc-space-lg) 0;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--rc-transition), visibility var(--rc-transition), transform var(--rc-transition);
    z-index: 60;
}

.site-search[aria-hidden="false"] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.site-search__form {
    display: flex;
    align-items: center;
    gap: var(--rc-space-md);
}

.site-search__input {
    flex: 1;
    height: 52px;
    padding: 0 var(--rc-space-md);
    font-size: 1.125rem;
    border: 2px solid var(--rc-border);
    border-radius: var(--rc-radius);
    background-color: var(--rc-bg);
    transition: border-color var(--rc-transition);
}

.site-search__input:focus {
    border-color: var(--rc-primary);
    outline: none;
}

.site-search__input::placeholder {
    color: var(--rc-text-light);
}

.site-search__submit {
    flex-shrink: 0;
    height: 52px;
}

.site-search__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    color: var(--rc-text-light);
    transition: color var(--rc-transition);
}

.site-search__close:hover,
.site-search__close:focus-visible {
    color: var(--rc-secondary);
}

.site-search__results {
    margin-top: var(--rc-space-md);
}

.site-search__results:empty {
    display: none;
}

/* Search overlay dimmed background */
.search-dimmer {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--rc-transition), visibility var(--rc-transition);
}

.search-dimmer.is-active {
    opacity: 1;
    visibility: visible;
}


/* ==========================================================================
   9. Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--rc-space-sm);
    padding: 12px 28px;
    font-family: var(--rc-font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--rc-radius);
    cursor: pointer;
    transition: background-color var(--rc-transition), color var(--rc-transition),
                border-color var(--rc-transition), box-shadow var(--rc-transition),
                transform var(--rc-transition);
    white-space: nowrap;
    min-height: 44px;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

/* Primary button */
.btn--primary {
    background-color: var(--rc-primary);
    color: var(--rc-text-inverse);
    border-color: var(--rc-primary);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background-color: var(--rc-heading);
    border-color: var(--rc-heading);
    color: var(--rc-text-inverse);
    box-shadow: 0 4px 12px rgba(106, 44, 145, 0.3);
}

/* Outline button */
.btn--outline {
    background-color: transparent;
    color: var(--rc-secondary);
    border-color: var(--rc-secondary);
}

.btn--outline:hover,
.btn--outline:focus-visible {
    background-color: var(--rc-heading);
    border-color: var(--rc-heading);
    color: var(--rc-text-inverse);
}

/* Small button */
.btn--sm {
    padding: 8px 18px;
    font-size: 0.8125rem;
    min-height: 36px;
}

/* Full width button */
.btn--full {
    width: 100%;
}


/* ==========================================================================
   10. Hero Section (Homepage)
   ========================================================================== */

.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--rc-secondary);
}

.hero__media {
    position: absolute;
    inset: 0;
}

/* Background video wrapper – scales the 16:9 iframe to cover the hero */
.hero__video-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__video-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 ratio */
    min-height: 100%;
    min-width: 177.78vh; /* inverse 16:9 */
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

.hero__video,
.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fallback image: visible until video loads, then cross-fades out */
.hero__image--fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: opacity 0.6s ease;
}

.hero.is-video-loaded .hero__image--fallback {
    opacity: 0;
    pointer-events: none;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 46, 0.3) 0%,
        rgba(26, 26, 46, 0.5) 50%,
        rgba(26, 26, 46, 0.7) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--rc-text-inverse);
}

.hero__logo {
    margin-bottom: var(--rc-space-lg);
}

.hero__logo .custom-logo-link {
    display: inline-block;
}

.hero__logo .custom-logo {
    height: 140px;
    width: auto;
    filter: brightness(0) invert(1);
}

.hero__wordmark {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: -0.02em;
}

.hero__wordmark .logo-red,
.hero__wordmark .logo-chair {
    color: var(--rc-text-inverse);
}

.hero__tagline {
    font-family: var(--rc-font-body);
    font-size: clamp(1rem, 2vw, 1.375rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--rc-space-xl);
    opacity: 0.9;
}

.hero__cta {
    font-size: 1rem;
    padding: 14px 36px;
}


/* ==========================================================================
   11. Section Spacing
   ========================================================================== */

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

.section__header {
    margin-bottom: var(--rc-space-xl);
}

.section__title {
    margin-bottom: 0.25em;
}

.section__subtitle {
    font-size: 1.0625rem;
    color: var(--rc-text-light);
    max-width: 600px;
}

.section__footer {
    margin-top: var(--rc-space-xl);
    text-align: center;
}

/* Section variations */
.section--whats-on {
    background-color: var(--rc-bg);
}

.section--about {
    background-color: var(--rc-bg-warm);
}

.section--projects {
    background-color: var(--rc-bg);
}

.section--subscribe {
    background-color: var(--rc-secondary);
    color: var(--rc-text-inverse);
}

.section--subscribe .section__title {
    color: var(--rc-text-inverse);
}

.section--subscribe .section__subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.section--opportunities {
    background-color: var(--rc-bg-muted);
}

.section--acknowledgement {
    background-color: var(--rc-bg-warm);
    padding: var(--rc-space-xl) 0;
}

/* About block */
.about-block__body {
    max-width: 720px;
}

.about-block__text {
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-bottom: var(--rc-space-lg);
}

/* Opportunities block */
.opportunities__links {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--rc-space-lg);
}

.opportunities__card {
    display: block;
    padding: var(--rc-space-lg);
    background-color: var(--rc-bg);
    border: 1px solid var(--rc-border-light);
    border-radius: var(--rc-radius-lg);
    text-decoration: none;
    transition: box-shadow var(--rc-transition), transform var(--rc-transition), border-color var(--rc-transition);
}

.opportunities__card:hover {
    box-shadow: var(--rc-shadow-md);
    transform: translateY(-2px);
    border-color: var(--rc-primary);
    text-decoration: none;
}

.opportunities__card-title {
    font-family: var(--rc-font-heading);
    font-size: 1.375rem;
    color: var(--rc-heading);
    margin-bottom: 0.25em;
}

.opportunities__card-desc {
    color: var(--rc-text-light);
    margin-bottom: var(--rc-space-sm);
}

.opportunities__card-arrow {
    font-size: 1.25rem;
    color: var(--rc-primary);
    transition: transform var(--rc-transition);
}

.opportunities__card:hover .opportunities__card-arrow {
    transform: translateX(4px);
}

/* Subscribe block on homepage */
.subscribe-block {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Acknowledgement */
.acknowledgement {
    max-width: 720px;
    text-align: center;
    margin: 0 auto;
}

.acknowledgement__title {
    font-size: 1.25rem;
    color: var(--rc-heading);
    margin-bottom: 0.75em;
}

.acknowledgement__text {
    font-size: 0.9375rem;
    color: var(--rc-text-light);
    line-height: 1.75;
}


/* ==========================================================================
   12. Events Grid
   ========================================================================== */

.events-grid,
.event-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--rc-space-md);
}

.events-grid__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--rc-space-3xl) var(--rc-space-lg);
    color: var(--rc-text-light);
}

.events-grid__empty--filtered {
    padding: var(--rc-space-2xl) var(--rc-space-lg);
}

/* Compact grid (4 columns on desktop) */
.events-grid--compact {
    gap: var(--rc-space-md);
}

/* Load more */
.events-load-more {
    text-align: center;
    margin-top: var(--rc-space-xl);
}

.events-load-more__btn {
    min-width: 200px;
}

.events-load-more__btn.is-loading {
    pointer-events: none;
    opacity: 0.7;
}


/* ==========================================================================
   13. Event Card
   ========================================================================== */

.event-card {
    border-radius: var(--rc-radius-md);
    overflow: hidden;
    transition: box-shadow var(--rc-transition), transform var(--rc-transition);
    background-color: var(--rc-bg);
}

.event-card:hover {
    box-shadow: var(--rc-shadow-lift);
    transform: translateY(-3px);
}

.event-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.event-card__link:hover {
    text-decoration: none;
    color: inherit;
}

.event-card__image {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: var(--rc-bg-muted);
    flex-shrink: 0;
}

.event-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--rc-transition-slow);
}

.event-card:hover .event-card__img {
    transform: scale(1.03);
}

.event-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--rc-bg-muted) 0%, var(--rc-border-light) 100%);
}

.event-card__badge {
    position: absolute;
    top: var(--rc-space-md);
    left: var(--rc-space-md);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rc-text-inverse);
    background-color: var(--rc-primary);
    border-radius: var(--rc-radius);
}

.event-card__credit {
    position: absolute;
    bottom: var(--rc-space-sm);
    right: var(--rc-space-sm);
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(0, 0, 0, 0.45);
    padding: 2px 8px;
    border-radius: var(--rc-radius);
}

.event-card__content {
    padding: var(--rc-space-md);
}

.event-card__title {
    font-family: var(--rc-font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--rc-heading);
    margin-bottom: 0.25em;
    line-height: 1.3;
}

.event-card__artist {
    font-size: 0.9375rem;
    color: var(--rc-text);
    margin-bottom: 0.25em;
}

.event-card__dates {
    font-size: 0.8125rem;
    color: var(--rc-text-light);
    margin-bottom: 0.15em;
}

.event-card__location {
    font-size: 0.8125rem;
    color: var(--rc-text-light);
}

/* Past event card */
.event-card--past {
    opacity: 0.6;
}

.event-card--past:hover {
    opacity: 0.8;
}


/* ==========================================================================
   14. Events Filters
   ========================================================================== */

.events-filters {
    margin-bottom: var(--rc-space-xl);
    padding: var(--rc-space-md) 0;
    border-bottom: 1px solid var(--rc-border-light);
    position: sticky;
    top: calc(var(--rc-header-height) + var(--rc-border-width));
    background-color: var(--rc-bg);
    z-index: 20;
}

.events-filters__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--rc-space-md);
}

.events-filters__control {
    flex: 1;
    min-width: 160px;
}

.events-filters__control--actions {
    flex: 0;
    min-width: auto;
}

.events-filters__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rc-text-light);
    margin-bottom: var(--rc-space-xs);
}

.events-filters__select {
    width: 100%;
    height: 44px;
    padding: 0 36px 0 12px;
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius);
    background-color: var(--rc-bg);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B6B6B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    transition: border-color var(--rc-transition);
}

.events-filters__select:focus {
    border-color: var(--rc-primary);
    outline: none;
}

.events-filters__clear {
    white-space: nowrap;
}


/* ==========================================================================
   15. Page Headers
   ========================================================================== */

.page-header {
    padding: var(--rc-space-2xl) 0 var(--rc-space-xl);
    background-color: var(--rc-bg-warm);
}

.page-header__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 0;
}

.page-header--whats-on {
    padding-bottom: var(--rc-space-lg);
}


/* ==========================================================================
   16. Single Event
   ========================================================================== */

/* Event header - Malthouse style: above hero, left-aligned */
.single-event__header {
    padding: var(--rc-space-xl) 0;
    background-color: var(--rc-bg-warm);
}

.single-event__badge {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rc-text-inverse);
    background-color: var(--rc-primary);
    border-radius: var(--rc-radius);
    margin-bottom: var(--rc-space-md);
}

.single-event__title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.1;
    margin-bottom: 0.2em;
}

.single-event__artist {
    font-size: 1.25rem;
    color: var(--rc-text);
    margin-bottom: 0.25em;
    font-weight: 500;
}

.single-event__dates {
    font-size: 1rem;
    color: var(--rc-text-light);
    margin-bottom: var(--rc-space-lg);
}

.single-event__book-btn {
    font-size: 1rem;
    padding: 14px 36px;
}

/* Event hero */
.single-event__hero {
    margin-bottom: var(--rc-space-2xl);
}

.single-event__hero-wrap {
    position: relative;
}

.single-event__hero-img {
    width: 100%;
    height: auto;
    border-radius: var(--rc-radius-md);
}

.single-event__credit {
    position: absolute;
    bottom: var(--rc-space-sm);
    right: var(--rc-space-sm);
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.85);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 3px 10px;
    border-radius: var(--rc-radius);
}

/* Two-column body layout */
.single-event__body {
    padding: var(--rc-space-xl) 0;
}

.single-event__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--rc-space-xl);
}

.single-event__content {
    font-size: 1.0625rem;
    line-height: 1.75;
}

.single-event__content p {
    margin-bottom: 1.25em;
}

/* Sidebar */
.single-event__sidebar {
    background-color: var(--rc-bg-warm);
    padding: var(--rc-space-lg);
    border-radius: var(--rc-radius-lg);
    align-self: start;
}

.single-event__sidebar-heading {
    font-size: 1.125rem;
    font-family: var(--rc-font-body);
    font-weight: 600;
    margin-bottom: var(--rc-space-md);
    padding-bottom: var(--rc-space-sm);
    border-bottom: 2px solid var(--rc-primary);
}

.single-event__details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--rc-space-sm) var(--rc-space-md);
    margin-bottom: var(--rc-space-lg);
}

.single-event__details-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--rc-text-light);
}

.single-event__details-value {
    font-size: 0.9375rem;
    color: var(--rc-text);
    margin: 0;
}

.single-event__sidebar-book {
    margin-top: var(--rc-space-sm);
}

/* Section titles within single event */
.single-event__section-title {
    font-size: 1.5rem;
    margin-bottom: var(--rc-space-lg);
}

/* Video */
.single-event__video {
    padding: var(--rc-space-xl) 0;
}

.single-event__video .video-embed {
    max-width: 960px;
}

/* Tour dates */
.single-event__tour {
    padding: var(--rc-space-xl) 0;
    background-color: var(--rc-bg-muted);
}

.single-event__tour-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.single-event__tour-table {
    min-width: 600px;
}

.single-event__tour-table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rc-text-light);
    padding: var(--rc-space-sm) var(--rc-space-md);
    text-align: left;
    border-bottom: 2px solid var(--rc-border);
}

.single-event__tour-row {
    transition: background-color var(--rc-transition);
}

.single-event__tour-row:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.025);
}

.single-event__tour-row:hover {
    background-color: var(--rc-bg-warm);
}

.single-event__tour-cell {
    padding: var(--rc-space-md);
    font-size: 0.9375rem;
    vertical-align: middle;
}

.single-event__tour-cell--date {
    font-weight: 500;
    white-space: nowrap;
}

.single-event__tour-cell--book {
    text-align: right;
}

/* Past tour dates */
.single-event__tour-row--past {
    opacity: 0.5;
}

.single-event__tour-row--past:hover {
    opacity: 0.7;
}

.single-event__tour-past-label {
    font-size: 0.8125rem;
    color: var(--rc-text-light);
    font-style: italic;
}

.single-event__tour-book {
    white-space: nowrap;
}

/* Audio */
.single-event__audio {
    padding: var(--rc-space-xl) 0;
}

.single-event__audio-title {
    font-weight: 500;
    margin-bottom: var(--rc-space-md);
}

.single-event__audio-player {
    width: 100%;
    max-width: 600px;
}

/* Gallery */
.single-event__gallery {
    padding: var(--rc-space-xl) 0;
}

.single-event__gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--rc-space-md);
}

.single-event__gallery-item {
    border-radius: var(--rc-radius-md);
    overflow: hidden;
}

.single-event__gallery-img {
    width: 100%;
    height: auto;
    transition: transform var(--rc-transition-slow);
}

.single-event__gallery-item:hover .single-event__gallery-img {
    transform: scale(1.02);
}

/* Credits */
.single-event__credits {
    padding: var(--rc-space-xl) 0;
    background-color: var(--rc-bg-warm);
}

.single-event__credits-block {
    margin-bottom: var(--rc-space-xl);
}

.single-event__credits-text {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--rc-text-light);
}

.single-event__supporters {
    margin-top: var(--rc-space-xl);
}

.single-event__supporters-text {
    font-size: 0.9375rem;
    color: var(--rc-text-light);
}


/* ==========================================================================
   17. Project Card & Grid
   ========================================================================== */

.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--rc-space-lg);
}

.project-card {
    border-radius: var(--rc-radius-md);
    overflow: hidden;
    background-color: var(--rc-bg);
    transition: box-shadow var(--rc-transition), transform var(--rc-transition);
}

.project-card:hover {
    box-shadow: var(--rc-shadow-lift);
    transform: translateY(-3px);
}

.project-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-card__link:hover {
    text-decoration: none;
    color: inherit;
}

.project-card__image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: var(--rc-bg-muted);
}

.project-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--rc-transition-slow);
}

.project-card:hover .project-card__img {
    transform: scale(1.03);
}

.project-card__content {
    padding: var(--rc-space-md);
}

.project-card__title {
    font-family: var(--rc-font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--rc-heading);
    margin-bottom: 0.25em;
    line-height: 1.3;
}

.project-card__excerpt {
    font-size: 0.875rem;
    color: var(--rc-text-light);
    line-height: 1.6;
}


/* ==========================================================================
   18. Single Project
   ========================================================================== */

.single-project__hero {
    position: relative;
    overflow: hidden;
}

.single-project__hero-img {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
}

.single-project__credit {
    position: absolute;
    bottom: var(--rc-space-sm);
    right: var(--rc-space-sm);
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.85);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 3px 10px;
    border-radius: var(--rc-radius);
}

.single-project__header {
    padding: var(--rc-space-xl) 0 var(--rc-space-lg);
}

.single-project__badge {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--rc-radius);
    margin-bottom: var(--rc-space-md);
}

.single-project__badge--past {
    background-color: var(--rc-text-light);
    color: var(--rc-text-inverse);
}

.single-project__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 0.25em;
}

.single-project__program {
    font-size: 1rem;
    color: var(--rc-text-light);
}

.single-project__video {
    margin-bottom: var(--rc-space-xl);
}

.single-project__audio {
    margin-bottom: var(--rc-space-xl);
}

.single-project__content {
    margin-bottom: var(--rc-space-xl);
}

.single-project__gallery {
    margin-bottom: var(--rc-space-xl);
}

.single-project__related {
    margin-top: var(--rc-space-xl);
    padding-top: var(--rc-space-xl);
    border-top: 1px solid var(--rc-border-light);
}

.single-project__related-title {
    margin-bottom: var(--rc-space-lg);
}

/* Past project */
.single-project--past {
    position: relative;
}


/* ==========================================================================
   19. FAQ Section
   ========================================================================== */

.faq-section {
    padding: var(--rc-space-2xl) 0;
    background-color: var(--rc-bg-warm);
}

.faq-section__title {
    margin-bottom: var(--rc-space-xl);
}

.faq-section__list {
    max-width: 800px;
}

.faq-item {
    border-bottom: 1px solid var(--rc-border);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rc-space-md);
    padding: var(--rc-space-md) 0;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--rc-secondary);
    cursor: pointer;
    list-style: none;
    min-height: 44px;
    transition: color var(--rc-transition);
}

.faq-item__question::-webkit-details-marker {
    display: none;
}

.faq-item__question::marker {
    display: none;
    content: '';
}

.faq-item__question:hover {
    color: var(--rc-primary);
}

.faq-item__question-text {
    flex: 1;
}

.faq-item__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    transition: transform var(--rc-transition);
    color: var(--rc-text-light);
}

/* Rotate icon when open (plus to X) */
.faq-item[open] .faq-item__icon {
    transform: rotate(45deg);
    color: var(--rc-primary);
}

.faq-item__answer {
    padding: 0 0 var(--rc-space-md) 0;
    color: var(--rc-text-light);
    line-height: 1.75;
    font-size: 0.9375rem;
}


/* ==========================================================================
   20. Page Templates
   ========================================================================== */

/* General page */
.page-general {
    padding-bottom: var(--rc-space-2xl);
}

.page-general__hero {
    position: relative;
    overflow: hidden;
}

.page-general__hero-image {
    position: relative;
}

.page-general__hero-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
}

.page-general__credit {
    position: absolute;
    bottom: var(--rc-space-sm);
    right: var(--rc-space-sm);
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.85);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 3px 10px;
    border-radius: var(--rc-radius);
}

.page-general__header {
    padding: var(--rc-space-xl) 0 var(--rc-space-lg);
}

.page-general__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.page-general__video {
    margin-bottom: var(--rc-space-xl);
}

.page-general__audio {
    margin-bottom: var(--rc-space-xl);
}

.page-general__content {
    margin-bottom: var(--rc-space-xl);
}

.page-general__gallery {
    margin-bottom: var(--rc-space-xl);
}

/* Contact page */
.page-contact {
    padding: var(--rc-space-xl) 0 var(--rc-space-2xl);
}

.page-contact__header {
    padding-bottom: var(--rc-space-lg);
}

.page-contact__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.page-contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--rc-space-2xl);
}

.page-contact__content {
    margin-bottom: var(--rc-space-lg);
}

.contact-detail {
    margin-bottom: var(--rc-space-lg);
}

.contact-detail__label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rc-text-light);
    margin-bottom: 0.25em;
}

.contact-detail p {
    margin-bottom: 0;
}

.contact-social {
    display: flex;
    gap: var(--rc-space-md);
    flex-wrap: wrap;
}

.contact-social a {
    font-weight: 500;
}

.page-contact__subscribe-box {
    background-color: var(--rc-bg-warm);
    padding: var(--rc-space-xl);
    border-radius: var(--rc-radius-lg);
}

.page-contact__subscribe-box h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5em;
}

.page-contact__subscribe-box p {
    color: var(--rc-text-light);
    margin-bottom: var(--rc-space-lg);
}

/* Subscribe page */
.page-subscribe {
    padding: var(--rc-space-2xl) 0;
}

.page-subscribe__header {
    text-align: center;
    margin-bottom: var(--rc-space-lg);
}

.page-subscribe__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.page-subscribe__content {
    text-align: center;
    margin-bottom: var(--rc-space-xl);
    color: var(--rc-text-light);
}

.page-subscribe__form {
    max-width: 500px;
    margin: 0 auto;
}

/* Storyplace page */
.page-storyplace {
    padding-bottom: var(--rc-space-2xl);
}

.page-storyplace__hero {
    overflow: hidden;
}

.page-storyplace__hero-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
}

.page-storyplace__header {
    padding: var(--rc-space-xl) 0 var(--rc-space-lg);
}

.page-storyplace__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.page-storyplace__content {
    margin-bottom: var(--rc-space-xl);
}

.page-storyplace__audio {
    margin-bottom: var(--rc-space-xl);
    padding: var(--rc-space-lg);
    background-color: var(--rc-bg-warm);
    border-radius: var(--rc-radius-lg);
}

.page-storyplace__audio-heading {
    font-size: 1.25rem;
    margin-bottom: var(--rc-space-md);
}

.page-storyplace__gallery {
    margin-bottom: var(--rc-space-xl);
}

/* Search results page */
.page-search {
    padding: var(--rc-space-xl) 0 var(--rc-space-2xl);
}

.page-search__header {
    margin-bottom: var(--rc-space-xl);
}

.page-search__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.page-search__title span {
    color: var(--rc-primary);
}

.page-search__empty {
    text-align: center;
    padding: var(--rc-space-3xl) 0;
}

.page-search__empty p {
    color: var(--rc-text-light);
    font-size: 1.0625rem;
    margin-bottom: var(--rc-space-lg);
}

.page-search__actions {
    display: flex;
    gap: var(--rc-space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* 404 page */
.page-404 {
    padding: var(--rc-space-4xl) 0;
    text-align: center;
}

.page-404__title {
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--rc-primary);
    margin-bottom: 0.25em;
    line-height: 1;
}

.page-404__text {
    font-size: 1.125rem;
    color: var(--rc-text-light);
    margin-bottom: var(--rc-space-xl);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.page-404__actions {
    display: flex;
    gap: var(--rc-space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Default page */
.page-default {
    padding: var(--rc-space-xl) 0 var(--rc-space-2xl);
}

.page-default__header {
    padding-bottom: var(--rc-space-lg);
}

.page-default__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.page-default__content {
    max-width: 800px;
}

/* Archive page */
.page-archive {
    padding: var(--rc-space-xl) 0 var(--rc-space-2xl);
}

.page-archive__header {
    margin-bottom: var(--rc-space-xl);
}

.page-archive__title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.page-archive__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--rc-space-lg);
}

/* Archive card */
.archive-card {
    display: flex;
    flex-direction: column;
    background-color: var(--rc-bg);
    border-radius: var(--rc-radius-md);
    overflow: hidden;
    border: 1px solid var(--rc-border-light);
    transition: box-shadow var(--rc-transition), transform var(--rc-transition);
}

.archive-card:hover {
    box-shadow: var(--rc-shadow-md);
    transform: translateY(-2px);
}

.archive-card__image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

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

.archive-card__content {
    padding: var(--rc-space-md);
}

.archive-card__title {
    font-size: 1.125rem;
    font-family: var(--rc-font-heading);
    margin-bottom: 0.25em;
}

.archive-card__title a {
    color: var(--rc-heading);
    text-decoration: none;
}

.archive-card__title a:hover {
    color: var(--rc-primary);
}

.archive-card__excerpt {
    font-size: 0.875rem;
    color: var(--rc-text-light);
}


/* ==========================================================================
   21. Audio Player
   ========================================================================== */

.audio-player {
    padding: var(--rc-space-md);
    background-color: var(--rc-bg-warm);
    border-radius: var(--rc-radius-lg);
}

.audio-player--featured {
    padding: 0;
    background: none;
}

.audio-player__title {
    font-weight: 500;
    margin-bottom: var(--rc-space-sm);
}

.audio-player__element {
    width: 100%;
    max-width: 600px;
    border-radius: var(--rc-radius);
}

/* Style the native audio element where supported */
audio::-webkit-media-controls-panel {
    background-color: var(--rc-bg-muted);
}


/* ==========================================================================
   22. Video Embed
   ========================================================================== */

.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--rc-radius-md);
    background-color: var(--rc-secondary);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* ==========================================================================
   23. Gallery
   ========================================================================== */

.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--rc-space-md);
}

.gallery__item {
    border-radius: var(--rc-radius-md);
    overflow: hidden;
}

.gallery__img {
    width: 100%;
    height: auto;
    transition: transform var(--rc-transition-slow);
}

.gallery__item:hover .gallery__img {
    transform: scale(1.02);
}


/* ==========================================================================
   24. Mailchimp Form
   ========================================================================== */

.mc-form__title {
    font-family: var(--rc-font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.25em;
}

.mc-form__desc {
    color: var(--rc-text-light);
    margin-bottom: var(--rc-space-md);
}

.mc-form__fields {
    display: flex;
    gap: var(--rc-space-sm);
    flex-wrap: wrap;
}

.mc-form__input {
    flex: 1;
    min-width: 200px;
    height: 48px;
    padding: 0 var(--rc-space-md);
    border: 2px solid var(--rc-border);
    border-radius: var(--rc-radius);
    background-color: var(--rc-bg);
    transition: border-color var(--rc-transition);
}

.mc-form__input:focus {
    border-color: var(--rc-primary);
    outline: none;
}

.mc-form__input::placeholder {
    color: var(--rc-text-light);
}

.mc-form__btn {
    flex-shrink: 0;
    height: 48px;
}

/* Compact form (footer/inline) */
.mc-form--compact .mc-form__fields {
    max-width: 480px;
}

/* Styling within dark sections */
.section--subscribe .mc-form__input {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--rc-text-inverse);
}

.section--subscribe .mc-form__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.section--subscribe .mc-form__input:focus {
    border-color: var(--rc-primary);
    background-color: rgba(255, 255, 255, 0.15);
}

/* Styling within footer */
.footer-subscribe .mc-form__input {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--rc-text-inverse);
}

.footer-subscribe .mc-form__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-subscribe .mc-form__input:focus {
    border-color: var(--rc-primary-light);
    background-color: rgba(255, 255, 255, 0.15);
}


/* ==========================================================================
   25. Footer
   ========================================================================== */

.site-footer {
    background-color: var(--rc-secondary);
    color: rgba(255, 255, 255, 0.8);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--rc-transition);
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--rc-text-inverse);
}

/* Footer subscribe strip */
.footer-subscribe {
    background-color: var(--rc-primary-dark);
    padding: var(--rc-space-xl) 0;
}

.footer-subscribe .mc-form__title {
    color: var(--rc-text-inverse);
}

.footer-subscribe .mc-form__desc {
    color: rgba(255, 255, 255, 0.7);
}

/* Footer main */
.footer-main {
    padding: var(--rc-space-2xl) 0;
}

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

.footer-col__title {
    font-family: var(--rc-font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rc-text-inverse);
    margin-bottom: var(--rc-space-md);
}

/* Footer brand/contact column */
.footer-logo {
    margin-bottom: var(--rc-space-md);
}

.footer-logo .custom-logo {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo-text {
    font-size: 1.375rem;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.footer-logo-text .logo-red,
.footer-logo-text .logo-chair {
    color: var(--rc-text-inverse);
}

.footer-contact {
    margin-bottom: var(--rc-space-xs);
    font-size: 0.9375rem;
}

/* Footer social */
.footer-social {
    display: flex;
    gap: var(--rc-space-md);
    margin-top: var(--rc-space-md);
}

.footer-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    transition: background-color var(--rc-transition), color var(--rc-transition);
}

.footer-social__link:hover,
.footer-social__link:focus-visible {
    background-color: var(--rc-primary);
    color: var(--rc-text-inverse);
}

/* Footer navigation */
.footer-nav {
    columns: 2;
    column-gap: var(--rc-space-lg);
}

.footer-nav li {
    margin-bottom: var(--rc-space-sm);
    break-inside: avoid;
}

.footer-nav a {
    font-size: 0.9375rem;
    padding: 4px 0;
    display: inline-block;
}

/* Footer acknowledgements */
.footer-ack {
    margin-bottom: var(--rc-space-lg);
}

.footer-ack__flags {
    display: flex;
    gap: 8px;
    margin-bottom: var(--rc-space-sm);
}

.footer-ack__flag {
    width: 32px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.footer-ack p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

.footer-ack--aq {
    padding-top: var(--rc-space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--rc-space-md) 0;
}

.footer-bottom__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--rc-space-md);
}

.footer-copyright {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: var(--rc-space-md);
}

.footer-legal a {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.8);
}


/* ==========================================================================
   26. Search Results
   ========================================================================== */

.search-result {
    display: flex;
    justify-content: space-between;
    gap: var(--rc-space-lg);
    padding: var(--rc-space-lg) 0;
    border-bottom: 1px solid var(--rc-border-light);
}

.search-result__content {
    flex: 1;
    min-width: 0;
}

.search-result__type {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rc-primary);
    margin-bottom: var(--rc-space-xs);
}

.search-result__title {
    font-size: 1.25rem;
    font-family: var(--rc-font-heading);
    margin-bottom: 0.25em;
}

.search-result__title a {
    color: var(--rc-heading);
    text-decoration: none;
}

.search-result__title a:hover {
    color: var(--rc-primary);
    text-decoration: underline;
}

.search-result__excerpt {
    font-size: 0.9375rem;
    color: var(--rc-text-light);
    line-height: 1.6;
}

.search-result__thumb {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: var(--rc-radius);
    overflow: hidden;
    background-color: var(--rc-bg-muted);
}

.search-result__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ==========================================================================
   27. Pagination
   ========================================================================== */

.pagination {
    margin-top: var(--rc-space-xl);
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--rc-space-xs);
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--rc-space-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--rc-secondary);
    text-decoration: none;
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius);
    transition: background-color var(--rc-transition), color var(--rc-transition), border-color var(--rc-transition);
}

.pagination .page-numbers:hover {
    background-color: var(--rc-bg-warm);
    border-color: var(--rc-secondary);
}

.pagination .page-numbers.current {
    background-color: var(--rc-primary);
    border-color: var(--rc-primary);
    color: var(--rc-text-inverse);
}

.pagination .page-numbers.dots {
    border: none;
    pointer-events: none;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    font-weight: 600;
}


/* ==========================================================================
   28. Entry Content (WordPress content styles)
   ========================================================================== */

.entry-content {
    font-size: 1.0625rem;
    line-height: 1.75;
}

.entry-content h2 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.entry-content h3 {
    margin-top: 1.25em;
    margin-bottom: 0.5em;
}

.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.entry-content p {
    margin-bottom: 1.25em;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.25em;
    padding-left: 1.5em;
}

.entry-content ul {
    list-style-type: disc;
}

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

.entry-content li {
    margin-bottom: 0.4em;
    padding-left: 0.25em;
}

.entry-content li::marker {
    color: var(--rc-primary);
}

.entry-content img {
    border-radius: var(--rc-radius-md);
    margin: 1em 0;
}

.entry-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.entry-content .alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.entry-content .alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.entry-content figure {
    margin: 1.5em 0;
}

.entry-content figcaption {
    font-size: 0.8125rem;
    color: var(--rc-text-light);
    text-align: center;
    margin-top: var(--rc-space-sm);
    font-style: italic;
}

.entry-content blockquote {
    margin: 1.5em 0;
}

.entry-content table {
    margin-bottom: 1.5em;
    border: 1px solid var(--rc-border);
}

.entry-content th,
.entry-content td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--rc-border-light);
}

.entry-content th {
    font-weight: 600;
    background-color: var(--rc-bg-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.entry-content tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.entry-content hr {
    border: none;
    border-top: 1px solid var(--rc-border);
    margin: 2em 0;
}

.entry-content .wp-caption {
    max-width: 100%;
}

.entry-content .wp-caption-text {
    font-size: 0.8125rem;
    color: var(--rc-text-light);
    text-align: center;
    margin-top: var(--rc-space-sm);
}

/* WordPress gallery */
.entry-content .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--rc-space-md);
    margin: 1.5em 0;
}

.entry-content .gallery-item {
    margin: 0;
}

.entry-content .gallery-item img {
    margin: 0;
    width: 100%;
}


/* ==========================================================================
   29. Utility / Accessibility
   ========================================================================== */

/* Screen reader only text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
    white-space: nowrap;
}

.screen-reader-text:focus {
    background-color: var(--rc-bg);
    clip: auto !important;
    clip-path: none;
    color: var(--rc-secondary);
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
    box-shadow: var(--rc-shadow-md);
}

/* Skip link */
.skip-link {
    position: fixed;
    top: -100%;
    left: var(--rc-space-md);
    z-index: 9999;
    background-color: var(--rc-primary);
    color: var(--rc-text-inverse);
    padding: var(--rc-space-sm) var(--rc-space-md);
    border-radius: 0 0 var(--rc-radius) var(--rc-radius);
    font-weight: 600;
    text-decoration: none;
    transition: top var(--rc-transition);
}

.skip-link:focus {
    top: 0;
    outline: none;
}


/* ==========================================================================
   30. Responsive - 576px (Small devices)
   ========================================================================== */

@media (min-width: 576px) {

    .events-grid,
    .event-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }

    /* Bento pattern at 2-col: 1st card spans both columns */
    .event-grid > .event-card:nth-child(5n + 1),
    .events-grid > .event-card:nth-child(5n + 1) {
        grid-column: span 2;
    }

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

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

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

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

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

    .search-result__thumb {
        width: 160px;
        height: 107px;
    }
}


/* ==========================================================================
   31. Responsive - 768px (Tablets)
   ========================================================================== */

@media (min-width: 768px) {

    :root {
        --rc-border-width: 20px;
        --rc-container-padding: 32px;
    }

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

    .site-header__cta {
        display: inline-flex;
    }

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

    .page-contact__grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .single-event__grid {
        grid-template-columns: 1fr 320px;
        gap: var(--rc-space-2xl);
    }

    .archive-card {
        flex-direction: row;
    }

    .archive-card__image {
        width: 260px;
        flex-shrink: 0;
        aspect-ratio: auto;
    }

    .archive-card__content {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}


/* ==========================================================================
   32. Responsive - 1024px (Desktop)
   ========================================================================== */

@media (min-width: 1024px) {

    :root {
        --rc-border-width: 24px;
        --rc-header-height: 96px;
    }

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

    /* Show desktop nav, hide hamburger */
    .site-nav {
        display: flex;
    }

    .site-header__menu-toggle {
        display: none;
    }

    .events-grid,
    .event-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: minmax(200px, auto);
    }

    /* Reset the 2-col bento rule */
    .event-grid > .event-card:nth-child(5n + 1),
    .events-grid > .event-card:nth-child(5n + 1) {
        grid-column: auto;
    }

    /*
     * Bento / masonry pattern on a 4-column grid.
     * Repeating cycle of 9 cards:
     *
     *  ┌──────────┐ ┌────┐ ┌────┐
     *  │  1 (2×2) │ │  2 │ │  3 │
     *  │          │ ├────┤ ├────┤
     *  │          │ │  4 │ │  5 │
     *  ├────┐┌────┤ ├────┴─┘    │
     *  │  6 ││  7 │ │  8 (2×2) │
     *  ├────┘├────┤ │          │
     *  │  9 (2×1) │ │          │
     *  └──────────┘ └──────────┘
     */

    /* Card 1: large feature — 2 cols × 2 rows */
    .event-grid > .event-card:nth-child(9n + 1),
    .events-grid > .event-card:nth-child(9n + 1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    /* Cards 2-5: standard 1×1 */

    /* Card 6-7: standard 1×1 */

    /* Card 8: large feature — 2 cols × 2 rows */
    .event-grid > .event-card:nth-child(9n + 8),
    .events-grid > .event-card:nth-child(9n + 8) {
        grid-column: span 2;
        grid-row: span 2;
    }

    /* Card 9: wide — 2 cols × 1 row */
    .event-grid > .event-card:nth-child(9n),
    .events-grid > .event-card:nth-child(9n) {
        grid-column: span 2;
    }

    /* ── Bento card fill ─────────────────────────────────────────── */

    /* All cards fill their grid cell */
    .event-grid > .event-card,
    .events-grid > .event-card {
        height: 100%;
    }

    /* Large feature cards (2×2): image fills available space */
    .event-grid > .event-card:nth-child(9n + 1) .event-card__image,
    .event-grid > .event-card:nth-child(9n + 8) .event-card__image,
    .events-grid > .event-card:nth-child(9n + 1) .event-card__image,
    .events-grid > .event-card:nth-child(9n + 8) .event-card__image {
        aspect-ratio: auto;
        flex: 1 1 0%;
    }

    /* Wide cards (2×1): shorter image */
    .event-grid > .event-card:nth-child(9n) .event-card__image,
    .events-grid > .event-card:nth-child(9n) .event-card__image {
        aspect-ratio: 21 / 9;
    }

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

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

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

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

    .footer-grid {
        grid-template-columns: 1.2fr 0.8fr 1fr;
    }

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

    /* Hero sizing on larger screens */
    .hero__logo .custom-logo {
        height: 180px;
    }
}


/* ==========================================================================
   33. Responsive - 1200px (Large Desktop)
   ========================================================================== */

@media (min-width: 1200px) {

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

    .single-event__grid {
        grid-template-columns: 1fr 360px;
    }
}


/* ==========================================================================
   34. Mobile-only adjustments (max-width)
   ========================================================================== */

@media (max-width: 575px) {

    :root {
        --rc-border-width: 12px;
        --rc-container-padding: 16px;
    }

    .hero {
        height: 70vh;
        min-height: 400px;
    }

    .hero__logo .custom-logo {
        height: 90px;
    }

    .hero__cta {
        padding: 12px 28px;
    }

    .site-search__form {
        flex-wrap: wrap;
    }

    .site-search__input {
        width: 100%;
        flex: auto;
    }

    /* Single event tour table: card layout on very small screens */
    .single-event__tour-table-wrap {
        margin-left: calc(var(--rc-container-padding) * -1);
        margin-right: calc(var(--rc-container-padding) * -1);
        padding: 0 var(--rc-container-padding);
    }

    .mc-form__fields {
        flex-direction: column;
    }

    .mc-form__input {
        min-width: 0;
    }

    .mc-form__btn {
        width: 100%;
    }
}


/* ==========================================================================
   35. Scroll Reveal Animations
   ========================================================================== */

/* Base state: elements start invisible and offset.
   JS adds .rc-reveal to targets, then .is-visible when in viewport. */

.rc-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.rc-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Variant: fade up from further away (for hero content) */
.rc-reveal--up {
    transform: translateY(40px);
}

.rc-reveal--up.is-visible {
    transform: translateY(0);
}

/* Variant: fade in only (no vertical movement) */
.rc-reveal--fade {
    transform: none;
}

/* Variant: slide in from left */
.rc-reveal--left {
    opacity: 0;
    transform: translateX(-24px);
}

.rc-reveal--left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Variant: slide in from right */
.rc-reveal--right {
    opacity: 0;
    transform: translateX(24px);
}

.rc-reveal--right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Variant: scale up slightly */
.rc-reveal--scale {
    opacity: 0;
    transform: scale(0.95);
}

.rc-reveal--scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children: each successive card delays slightly.
   Applied via inline --reveal-i custom property. */
.rc-reveal[style*="--reveal-i"] {
    transition-delay: calc(var(--reveal-i, 0) * 0.08s);
}


/* ==========================================================================
   35b. Page Transitions
   ========================================================================== */

/* The main content area fades/slides on page enter and exit.
   The header stays fixed and visible throughout. */

.site-main {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.site-footer {
    transition: opacity 0.3s ease;
}

/* Leaving state: page is navigating away */
body.is-page-leaving .site-main {
    opacity: 0;
    transform: translateY(8px);
}

body.is-page-leaving .site-footer {
    opacity: 0;
}

/* Entering state: page just loaded, starts hidden then animates in */
body.is-page-entering .site-main {
    opacity: 0;
    transform: translateY(12px);
}

body.is-page-entering .site-footer {
    opacity: 0;
}

/* Arrived state: content is fully visible */
body.is-page-ready .site-main {
    opacity: 1;
    transform: translateY(0);
}

body.is-page-ready .site-footer {
    opacity: 1;
}


/* ==========================================================================
   36. Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .event-card:hover {
        transform: none;
    }

    .project-card:hover {
        transform: none;
    }

    .archive-card:hover {
        transform: none;
    }

    .opportunities__card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    .event-card:hover .event-card__img,
    .project-card:hover .project-card__img,
    .gallery__item:hover .gallery__img,
    .single-event__gallery-item:hover .single-event__gallery-img {
        transform: none;
    }

    /* Disable scroll reveal — show everything immediately */
    .rc-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Disable page transitions — show content instantly */
    .site-main,
    .site-footer {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    /* Hide background video for users who prefer reduced motion */
    .hero__video-wrap {
        display: none;
    }

    .hero__image--fallback {
        opacity: 1 !important;
    }
}


/* ==========================================================================
   36. Front Page Content (Gutenberg Overrides)
   ========================================================================== */

/*
 * Native Gutenberg Group/Heading/Paragraph blocks are used as homepage
 * sections so editors get a friendly WYSIWYG experience.
 *
 * Section-level Group blocks (.section) keep their theme padding.
 * Inner Group blocks (container, about-block, etc.) have Gutenberg's
 * added padding/margins stripped so only theme styles apply.
 */

/* No margin between top-level content children */
.front-page-content > * {
    margin-top: 0;
    margin-bottom: 0;
}

/*
 * Inner Group blocks: strip Gutenberg padding/margin.
 * Exclude .section (keeps vertical section padding) and
 * .container (keeps horizontal page padding) from the reset.
 */
.front-page-content .wp-block-group:not(.section):not(.container) {
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
}

/* Gutenberg flow layout children: strip auto-margins */
.front-page-content .is-layout-flow > *,
.front-page-content .is-layout-constrained > * {
    margin-top: 0;
    margin-bottom: 0;
}

/* Inner-container WP adds inside each Group block */
.front-page-content .wp-block-group__inner-container {
    padding: 0;
    margin: 0;
}

/* Headings: rely on theme .section__title / .acknowledgement__title */
.front-page-content .wp-block-heading {
    margin-top: 0;
    margin-bottom: 0.25em;
}

/* Paragraphs */
.front-page-content .wp-block-group p {
    margin-top: 0;
}

/* Buttons block */
.front-page-content .wp-block-buttons {
    margin-top: 0;
    margin-bottom: 0;
    gap: 0;
}

/* Section title heading margin */
.front-page-content .section__title {
    margin-bottom: 0.25em;
}

/* About text gets a bottom margin before the button */
.front-page-content .about-block__text {
    margin-bottom: var(--rc-space-lg);
}

/* Section subtitle gets a bottom margin */
.front-page-content .section__subtitle {
    margin-bottom: var(--rc-space-lg);
}

/* Gutenberg outline button → match theme .btn--outline */
.front-page-content .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    border: 2px solid var(--rc-primary);
    color: var(--rc-primary);
    padding: 0.75em 2em;
    border-radius: var(--rc-radius);
    font-family: var(--rc-font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background-color var(--rc-transition), color var(--rc-transition);
}

.front-page-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--rc-heading);
    border-color: var(--rc-heading);
    color: #fff;
}


/* ==========================================================================
   37. Print Styles
   ========================================================================== */

@media print {

    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .site-border {
        padding: 0;
    }

    body::before {
        display: none;
    }

    .site-header,
    .site-nav,
    .site-search,
    .mobile-menu,
    .mobile-menu-overlay,
    .search-dimmer,
    .skip-link,
    .footer-subscribe,
    .footer-social,
    .hero__media,
    .hero__overlay,
    .events-filters,
    .events-load-more,
    .btn,
    .pagination,
    .site-header__actions {
        display: none !important;
    }

    .site-wrapper {
        min-height: auto;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
    }

    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }

    .hero {
        height: auto;
        min-height: 0;
        page-break-after: avoid;
    }

    .hero__content {
        position: static;
        color: #000;
        padding: 1em 0;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }

    img {
        page-break-inside: avoid;
        max-width: 100% !important;
    }

    .section {
        padding: 1em 0;
        page-break-inside: avoid;
    }

    .events-grid,
    .event-grid,
    .project-grid {
        display: block;
    }

    .event-card,
    .project-card {
        page-break-inside: avoid;
        margin-bottom: 1em;
        border: 1px solid #ccc;
    }

    .single-event__grid {
        display: block;
    }

    .single-event__sidebar {
        border: 1px solid #ccc;
        padding: 1em;
        margin-top: 1em;
    }

    .single-event__tour-table {
        min-width: 0;
    }

    .single-event__tour-table th,
    .single-event__tour-table td {
        border: 1px solid #ccc;
    }

    .site-footer {
        border-top: 1px solid #ccc;
        padding-top: 1em;
    }

    .footer-grid {
        display: block;
    }

    .footer-col {
        margin-bottom: 1em;
    }
}
