@charset "UTF-8";

/* ============================================================================
 * Private Sun Yat-sen Memorial Hall — Subpage & Event Styles (subpage.css)
 * ============================================================================
 * COMMENTING STANDARDS
 * 1. Block comments only. Inline comments are strictly prohibited.
 * 2. Section dividers use the === banner format.
 * 3. All prose is written in English.
 * ============================================================================ */

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px 40px 20px;
    min-height: 100vh;
    overflow-x: clip;
    background-color: var(--sys-bg, #111111);
    color: var(--sys-text, #ffffff);
    font-family: var(--sys-font-family, -apple-system, BlinkMacSystemFont, "PingFang TC", "PingFang SC", "Microsoft JhengHei", sans-serif);
}

/* ============================================================================
 * Apple Native Top Navigation Bar (Frosted Glass Header)
 * ============================================================================ */
.apple-top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(44px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(20, 20, 22, 0.88);
    backdrop-filter: blur(25px) saturate(190%);
    -webkit-backdrop-filter: blur(25px) saturate(190%);
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.15);
    z-index: 25000 !important;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

.apple-top-nav .nav-title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "PingFang SC", "Microsoft JhengHei", sans-serif;
    margin: 0;
    padding: 0 76px;
    height: 44px;
    line-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    max-width: calc(100% - 152px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Apple Native Blue Back Button (Image 2 Specification) */
.apple-top-nav .nav-back-link {
    position: absolute;
    left: 0;
    top: env(safe-area-inset-top, 0px);
    bottom: 0;
    height: 44px;
    padding-left: calc(12px + env(safe-area-inset-left, 0px));
    padding-right: 18px;
    display: flex !important;
    align-items: center;
    gap: 3px;
    color: #0a84ff !important;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "PingFang SC", sans-serif;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    z-index: 25005 !important;
    touch-action: manipulation;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1;
}

.apple-top-nav .nav-back-link svg {
    width: 20px;
    height: 20px;
    stroke: #0a84ff !important;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.apple-top-nav .nav-back-link:active {
    opacity: 0.35;
    transition: opacity 0.08s ease;
}

/* ============================================================================
 * iOS Native Navigation Transition & Gesture Classes
 * ============================================================================ */
.apple-top-nav .nav-back-link #nav-back-text {
    display: inline-block;
    transition: transform 0.24s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.24s ease, color 0.2s ease;
}

.apple-top-nav .nav-back-link svg {
    transition: transform 0.24s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.24s ease;
}

.apple-top-nav .nav-title {
    transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.26s ease;
}

.ios-content-sliding-out {
    transform: translate3d(100%, 0, 0) !important;
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1) !important;
    box-shadow: -15px 0 35px rgba(0, 0, 0, 0.55) !important;
    pointer-events: none;
}

.ios-content-dragging {
    transition: none !important;
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.45) !important;
    will-change: transform;
}

/* ============================================================================
 * Apple Native Top Navigation Micro-Animations (Settings Specification)
 * ============================================================================ */
@keyframes iosNavLabelToCenter {
    0% {
        transform: translate3d(0, 0, 0);
        color: #0a84ff;
        opacity: 1;
    }
    35% {
        opacity: 0;
        color: #0a84ff;
    }
    65% {
        opacity: 0;
        color: #ffffff;
    }
    100% {
        transform: translate3d(var(--nav-center-offset, 135px), 0, 0);
        color: #ffffff;
        font-weight: 600;
        opacity: 1;
    }
}

@keyframes iosNavCenterToLabel {
    0% {
        transform: translate3d(var(--nav-center-offset, 135px), 0, 0);
        color: #ffffff;
        font-weight: 600;
        opacity: 1;
    }
    35% {
        opacity: 0;
        color: #ffffff;
    }
    65% {
        opacity: 0;
        color: #0a84ff;
    }
    100% {
        transform: translate3d(0, 0, 0);
        color: #0a84ff;
        opacity: 1;
    }
}

.ios-nav-label-sliding-center {
    animation: iosNavLabelToCenter 0.26s cubic-bezier(0.32, 0.72, 0, 1) forwards !important;
}

.ios-nav-label-sliding-from-center {
    animation: iosNavCenterToLabel 0.26s cubic-bezier(0.32, 0.72, 0, 1) forwards !important;
}

.ios-nav-chevron-exit {
    transform: translate3d(-14px, 0, 0) !important;
    opacity: 0 !important;
    transition: transform 0.22s ease, opacity 0.18s ease !important;
}

.ios-nav-title-exit {
    transform: translate3d(60px, 0, 0) !important;
    opacity: 0 !important;
    transition: transform 0.24s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.2s ease !important;
}

.ios-nav-title-enter {
    transform: translate3d(60px, 0, 0) !important;
    opacity: 0 !important;
    transition: none !important;
}

.ios-nav-title-enter-active {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
    transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.26s ease !important;
}

.ios-nav-chevron-enter {
    transform: translate3d(10px, 0, 0) !important;
    opacity: 0 !important;
    transition: none !important;
}

.ios-nav-chevron-enter-active {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
    transition: transform 0.24s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.24s ease !important;
}

.ios-nav-label-enter {
    transform: translate3d(20px, 0, 0) !important;
    opacity: 0 !important;
    transition: none !important;
}

.ios-nav-label-enter-active {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
    transition: transform 0.24s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.24s ease !important;
}

.ios-nav-back-enter {
    transform: translate3d(-10px, 0, 0) !important;
    opacity: 0 !important;
    transition: none !important;
}

.ios-nav-back-enter-active {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
    transition: transform 0.24s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.24s ease !important;
}

/* ============================================================================
 * Apple Native Push Entrance Transitions
 * ============================================================================ */
.ios-content-entering {
    transform: translate3d(100%, 0, 0) !important;
    box-shadow: -15px 0 35px rgba(0, 0, 0, 0.55) !important;
    transition: none !important;
    pointer-events: none;
}

.ios-content-enter-active {
    transform: translate3d(0, 0, 0) !important;
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1) !important;
    box-shadow: -15px 0 35px rgba(0, 0, 0, 0.55) !important;
}

/* Enforce static tab bar above all transition layers */
.apple-tab-bar {
    z-index: 10000 !important;
    transform: none !important;
}

.apple-top-nav {
    z-index: 25000 !important;
}

/* ============================================================================
 * Apple Native Hero Banner (Settings Specification / Image 2)
 * ============================================================================ */
.festival-hero {
    width: 100%;
    max-width: 800px;
    margin: 10px auto 20px auto;
    text-align: center;
    padding: 26px 20px 22px;
    background: var(--sys-card-bg, #1c1c1e);
    border-radius: 16px;
    border: 0.5px solid var(--sys-border, rgba(255, 255, 255, 0.12));
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--sys-transition-standard, all 0.3s ease);
}

.festival-hero .festival-badge {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin: 0 auto 12px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.festival-hero .festival-icon {
    font-size: 28px;
    line-height: 1;
    display: block;
}

.festival-hero h1 {
    color: var(--sys-text, #ffffff);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px 0;
    text-align: center;
    letter-spacing: normal;
    line-height: 1.35;
}

.festival-hero .festival-date {
    color: #0a84ff;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: normal;
    margin: 0 0 8px 0;
    text-align: center;
}

.festival-hero .festival-desc {
    color: var(--sys-text-secondary, #98989f);
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 90%;
    text-align: center;
}

/* ============================================================================
 * Markdown Content Card
 * ============================================================================ */
.markdown-container,
.charts-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    min-height: 280px;
    height: auto !important;
    flex-shrink: 0 !important;
    background-color: var(--sys-card-bg, #1c1c1e);
    padding: 35px 32px;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    border: 0.5px solid var(--sys-border, rgba(255, 255, 255, 0.12));
    box-sizing: border-box;
    opacity: 1;
    margin: 10px auto 25px auto;
}

zero-md {
    display: block !important;
    width: 100% !important;
    min-height: 100% !important;
}

.markdown-container:not(.loaded) zero-md {
    opacity: 0;
    pointer-events: none;
}

.markdown-container.loaded zero-md {
    opacity: 1;
    transition: opacity 0.25s ease-in;
}

.markdown-container > .sys-activity-overlay,
.charts-container > .sys-activity-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 280px !important;
    border-radius: 14px;
    background-color: var(--sys-card-bg, #1c1c1e);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (prefers-color-scheme: light) {
    .markdown-container > .sys-activity-overlay,
    .charts-container > .sys-activity-overlay {
        background-color: #ffffff;
    }
}

.charts-container {
    display: none;
}

.markdown-container.loaded,
.charts-container.loaded {
    opacity: 1;
}

.markdown-container.active,
.charts-container.active {
    display: block;
}

.chart-box {
    margin-bottom: 40px;
}

.chart-title {
    color: var(--sys-accent-gold, #f1c40f);
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--sys-border, #333333);
    padding-bottom: 10px;
}

.show-all-btn {
    background-color: var(--sys-card-bg, #1a1a1a);
    color: var(--sys-accent-gold, #f1c40f);
    border: 1px solid var(--sys-border, #333333);
    padding: 6px 16px;
    border-radius: 16px;
    cursor: pointer;
    font-family: var(--sys-font-family);
    font-size: 13px;
    transition: var(--sys-transition-standard, all 0.3s ease);
}

.show-all-btn:hover {
    border-color: var(--sys-accent-gold, #f1c40f);
}

/* ============================================================================
 * iOS Inset Grouped Table View & Collapsible Cards (Image 3 Specification)
 * ============================================================================ */
.ios-group-container {
    width: 100%;
    max-width: 680px;
    margin: 6px auto 16px auto;
    box-sizing: border-box;
}

.ios-section-header {
    font-size: 12px;
    font-weight: 500;
    color: #8e8e93;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 12px 0 5px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "PingFang SC", sans-serif;
    user-select: none;
    -webkit-user-select: none;
}

.ios-section-header:first-child {
    margin-top: 6px;
}

.ios-card {
    background-color: var(--sys-card-bg, #1c1c1e);
    border-radius: 11px;
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 0px;
    box-sizing: border-box;
}

.ios-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 10px 16px;
    cursor: pointer;
    text-decoration: none;
    color: var(--sys-text, #ffffff);
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, color 0.18s ease;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    box-sizing: border-box;
}

.ios-row:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 16px;
    height: 0.5px;
    background-color: rgba(255, 255, 255, 0.08);
}

.ios-row:active {
    background-color: rgba(255, 255, 255, 0.08);
}

.ios-row-title {
    font-size: 15.5px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--sys-text, #ffffff);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "PingFang SC", sans-serif;
    letter-spacing: 0.2px;
}

/* ============================================================================
 * iOS Settings App Icon Badges (iOS 18 Dark & Light Specification)
 * ============================================================================ */
.ios-badge {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.ios-badge svg {
    width: 17px;
    height: 17px;
    stroke: none;
    transition: fill 0.2s ease, color 0.2s ease;
}

/* Dark Mode: Apple iOS 18 Specification (Outer is pure black, thin white ring border, inner SVG is colored) */
@media (prefers-color-scheme: dark) {
    .ios-badge,
    .ios-badge[class*="badge-"] {
        background: #000000 !important;
        background-color: #000000 !important;
        box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.22), 0 1px 3px rgba(0, 0, 0, 0.5) !important;
    }

    .ios-badge.badge-blue svg   { fill: #0a84ff !important; color: #0a84ff !important; }
    .ios-badge.badge-purple svg { fill: #bf5af2 !important; color: #bf5af2 !important; }
    .ios-badge.badge-red svg    { fill: #ff453a !important; color: #ff453a !important; }
    .ios-badge.badge-orange svg { fill: #ff9f0a !important; color: #ff9f0a !important; }
    .ios-badge.badge-green svg  { fill: #30d158 !important; color: #30d158 !important; }
    .ios-badge.badge-teal svg   { fill: #64d2ff !important; color: #64d2ff !important; }
    .ios-badge.badge-indigo svg { fill: #5e5ce6 !important; color: #5e5ce6 !important; }
    .ios-badge.badge-gray svg   { fill: #98989d !important; color: #98989d !important; }
    .ios-badge.badge-dark svg   { fill: #ebebf5 !important; color: #ebebf5 !important; }
}

.ios-row.has-badge:not(:last-child)::after {
    left: 56px;
}

.ios-row-value {
    color: #8e8e93;
    font-size: 14.5px;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "PingFang SC", sans-serif;
}

.ios-row-accessory {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8e8e93;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "PingFang SC", sans-serif;
}

.ios-chevron {
    width: 13px;
    height: 13px;
    stroke: #8e8e93;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1), stroke 0.2s ease;
}

.ios-row.expanded .ios-chevron {
    transform: rotate(90deg);
    stroke: #8e8e93;
}

.ios-row.expanded .ios-row-title {
    color: var(--sys-text, #ffffff);
    font-weight: 400;
}

/* Accordion Smooth Grid Fold/Expand */
.ios-accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.ios-row.expanded + .ios-accordion-content,
.ios-accordion-content.open {
    grid-template-rows: 1fr;
}

.ios-accordion-inner {
    overflow: hidden;
    padding: 0 16px;
    transition: padding 0.3s ease;
}

.ios-row.expanded + .ios-accordion-content .ios-accordion-inner,
.ios-accordion-content.open .ios-accordion-inner {
    padding: 6px 16px 8px 16px;
    border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}

/* Radio Option Items (e.g. Language Selector) */
.ios-option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 4px;
    cursor: pointer;
    color: var(--sys-text, #ffffff);
    font-size: 14.5px;
    transition: color 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
}

.ios-option-item:not(:last-child) {
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
}

.ios-option-item {
    min-height: 56px;
    padding: 10px 16px;
}

.ios-option-item .ios-check-icon,
.ios-option-item .ios-checkmark {
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.18s ease;
    flex-shrink: 0;
}

.ios-option-item.selected {
    color: var(--sys-text, #ffffff);
    font-weight: 500;
}

.ios-option-item.selected .ios-check-icon,
.ios-option-item.selected .ios-checkmark {
    opacity: 1;
}

.lang-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
}

.lang-primary-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--sys-text, #ffffff);
    letter-spacing: -0.2px;
}

.lang-secondary-desc {
    font-size: 12.5px;
    color: var(--sys-text-secondary, #8e8e93);
    font-weight: 400;
    letter-spacing: -0.1px;
}

.ios-section-footer {
    font-size: 13px;
    color: var(--sys-text-secondary, #8e8e93);
    line-height: 1.45;
    padding: 8px 16px 0 16px;
}


/* ============================================================================
 * Responsive Viewport Rules
 * ============================================================================ */
@media (min-width: 769px) {
    html:not(.device-mobile) .apple-top-nav {
        display: none !important;
    }
    html:not(.device-mobile) .icon-ios { display: none; }
    html:not(.device-mobile) .icon-macos { display: block; }
}

@media (max-width: 768px) {
    html {
        min-height: 100%;
        min-height: 100.5vh;
        min-height: calc(100lvh + 1px);
    }

    body {
        padding: calc(44px + env(safe-area-inset-top, 0px) + 8px) 0 calc(65px + env(safe-area-inset-bottom, 34px)) 0 !important;
        width: 100%;
        min-height: 100%;
        min-height: 100.5vh;
        min-height: calc(100lvh + 1px);
        box-sizing: border-box;
    }

    /* Subpage Bottom Bar Hiding: completely hide tab bar on all subpages */
    body.is-subpage .apple-tab-bar,
    body.is-subpage #apple-tab-bar,
    body:has(.nav-back-link) .apple-tab-bar,
    body:has(.nav-back-link) #apple-tab-bar {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Subpage Bottom Padding: reduce dead space when tab bar is hidden */
    body.is-subpage,
    body:has(.nav-back-link) {
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 16px)) !important;
    }

    @media all and (display-mode: standalone) {
        html,
        body {
            min-height: 100%;
            min-height: 100.5vh;
            min-height: calc(100lvh + 1px);
        }
    }

    /* Mobile & Tablet Device Layout (e.g. iPad, iPhone, Android) */
    html.device-mobile body {
        padding: calc(44px + env(safe-area-inset-top, 0px) + 8px) 0 calc(65px + env(safe-area-inset-bottom, 34px)) 0 !important;
        width: 100%;
        min-height: 100%;
        min-height: 100.5vh;
        min-height: calc(100lvh + 1px);
        box-sizing: border-box;
    }

    html.device-mobile body.is-subpage .apple-tab-bar,
    html.device-mobile body.is-subpage #apple-tab-bar,
    html.device-mobile body:has(.nav-back-link) .apple-tab-bar,
    html.device-mobile body:has(.nav-back-link) #apple-tab-bar {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    html.device-mobile body.is-subpage,
    html.device-mobile body:has(.nav-back-link) {
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 16px)) !important;
    }

    html.is-standalone,
    html.is-standalone body {
        min-height: 100%;
        min-height: 100.5vh;
        min-height: calc(100lvh + 1px);
    }

    /* Activate Apple Native Frosted Glass Navigation Bar */
    .apple-top-nav {
        display: flex !important;
        width: 100%;
        z-index: 25000 !important;
    }

    .apple-top-nav.nav-hidden {
        display: none !important;
    }

    /* Ensure back link is visible and clickable on subpages */
    .apple-top-nav .nav-back-link {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        z-index: 25005 !important;
    }

    /* Completely hide top back button on mobile */
    .top-back-btn {
        display: none !important;
    }

    .markdown-container {
        width: calc(100% - 32px) !important;
        margin: 10px auto;
        padding: 18px 16px;
        box-sizing: border-box;
        border-radius: 11px;
    }

    .festival-hero {
        width: calc(100% - 32px) !important;
        padding: 18px 14px 16px;
        margin-top: 10px;
        box-sizing: border-box;
        border-radius: 11px;
    }

    .ios-group-container {
        width: calc(100% - 32px) !important;
        margin: 6px auto 16px auto !important;
        box-sizing: border-box;
    }

    .charts-container {
        width: calc(100% - 32px) !important;
        box-sizing: border-box;
    }

    .ios-section-header {
        margin: 12px 0 5px 16px !important;
    }

    .ios-section-header:first-child {
        margin-top: 6px !important;
    }

    .icon-ios { display: block; }
    .icon-macos { display: none; }
}

/* ============================================================================
 * Light Mode Theme Overrides
 * ============================================================================ */
@media (prefers-color-scheme: light) {
    body {
        background-color: #f5f0e8 !important;
        color: #2c1810 !important;
    }

    .apple-top-nav {
        background: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(25px) saturate(190%);
        -webkit-backdrop-filter: blur(25px) saturate(190%);
        border-bottom-color: rgba(0, 0, 0, 0.12);
    }

    .apple-top-nav .nav-title {
        color: #000000;
    }

    .apple-top-nav .nav-back-link {
        color: #007aff !important;
    }

    .apple-top-nav .nav-back-link svg {
        stroke: #007aff !important;
    }

    .festival-hero h1 {
        text-shadow: 0 0 20px rgba(122, 79, 0, 0.2);
    }

    .markdown-container {
        background-color: #ffffff;
        border-color: rgba(0, 0, 0, 0.08);
        box-shadow: none;
    }

    .ios-card {
        background-color: #ffffff;
        border-color: rgba(0, 0, 0, 0.08);
        box-shadow: none;
    }

    .ios-section-header {
        color: #6d6d72;
    }

    .ios-row {
        color: #000000;
    }

    .ios-row-title {
        color: #000000;
    }

    .ios-row.expanded .ios-row-title {
        color: #000000;
    }

    .ios-row.expanded .ios-chevron {
        stroke: #8e8e93;
    }

    .ios-row:not(:last-child)::after {
        background-color: rgba(0, 0, 0, 0.08);
    }

    .ios-row:active {
        background-color: rgba(0, 0, 0, 0.04);
    }

    .ios-row.expanded + .ios-accordion-content .ios-accordion-inner,
    .ios-accordion-content.open .ios-accordion-inner {
        border-top-color: rgba(0, 0, 0, 0.08);
    }

    .ios-option-item {
        color: #000000;
    }

    .ios-option-item.selected {
        color: #000000;
    }

    .ios-option-item .ios-check-icon {
        stroke: #007aff;
    }

    .ios-option-item:not(:last-child) {
        border-bottom-color: rgba(0, 0, 0, 0.06);
    }

    /* Light Mode: Classic Apple Colored Background + Pure White Glyph */
    .ios-badge {
        box-shadow: none !important;
    }

    .ios-badge svg,
    .ios-badge[class*="badge-"] svg {
        fill: #ffffff !important;
        color: #ffffff !important;
    }

    .ios-badge.badge-blue   { background-color: #007aff !important; }
    .ios-badge.badge-purple { background-color: #af52de !important; }
    .ios-badge.badge-red    { background-color: #ff3b30 !important; }
    .ios-badge.badge-orange { background-color: #ff9500 !important; }
    .ios-badge.badge-green  { background-color: #34c759 !important; }
    .ios-badge.badge-teal   { background-color: #30b0c7 !important; }
    .ios-badge.badge-indigo { background-color: #5856d6 !important; }
    .ios-badge.badge-gray   { background-color: #8e8e93 !important; }
    .ios-badge.badge-dark   { background-color: #3a3a3c !important; }

    @keyframes iosNavLabelToCenter {
        0% {
            transform: translate3d(0, 0, 0);
            color: #007aff;
            opacity: 1;
        }
        35% {
            opacity: 0;
            color: #007aff;
        }
        65% {
            opacity: 0;
            color: #000000;
        }
        100% {
            transform: translate3d(var(--nav-center-offset, 135px), 0, 0);
            color: #000000;
            font-weight: 600;
            opacity: 1;
        }
    }

    @keyframes iosNavCenterToLabel {
        0% {
            transform: translate3d(var(--nav-center-offset, 135px), 0, 0);
            color: #000000;
            font-weight: 600;
            opacity: 1;
        }
        35% {
            opacity: 0;
            color: #000000;
        }
        65% {
            opacity: 0;
            color: #007aff;
        }
        100% {
            transform: translate3d(0, 0, 0);
            color: #007aff;
            opacity: 1;
        }
    }

    .ios-content-sliding-out,
    .ios-content-dragging,
    .ios-content-entering,
    .ios-content-enter-active {
        box-shadow: -10px 0 25px rgba(0, 0, 0, 0.18) !important;
    }
}
