/* assets/style.css */

:root {
    /* Brand Colors */
    --accent: #a01c34;
    --accent-hover: #C5124E;
    --accent-glow: rgba(227, 22, 91, 0.4);

    --plum-900: #3D101F;
    --plum-800: #4A1425;

    /* Neutrals (Light Theme Default) */
    --bg-body: #EEEEEE;
    --bg-surface: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --border: #d0d0d0;
    --text-main: #0A0A0A;
    --text-muted: #4B5563;
    /* Contrast 4.6:1 against white */

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Mediator Serif Web', 'Georgia', 'Times New Roman', serif;

    /* Spacing */
    --container-width: 1280px;
    --header-height: 80px;
    --education-video-panel-fade: rgba(255, 255, 255, 0.98);
}

[data-theme="dark"] {
    /* Neutrals (Dark Theme) */
    --bg-body: #050505;
    --bg-surface: #101010;
    --bg-glass: rgba(10, 10, 10, 0.7);
    --border: #2A2A2A;
    --text-main: #FFFFFF;
    --text-muted: #9CA3AF;
    /* Contrast > 4.5:1 against black */
    --education-video-panel-fade: rgba(16, 16, 16, 0.98);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-radius: 0;
    /* Surgical Precision Rule */
}

/* Base font-size is controlled by JS on <html> */
html {
    font-size: 100%;
    /* Default (usually 16px) */
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    font-size: 1rem;
    /* 16px relative to html */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.breadcrumb-link {
    text-decoration: none !important;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.breadcrumb-link:hover {
    filter: brightness(1.3);
}

ul {
    list-style: none;
}

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

/* Headings Typography */
h1,
h2,
h3 {
    font-family: var(--font-serif);
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.glass {
    background: var(--bg-surface);
    border: 0px solid var(--border);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    /* 14px */
    min-height: 44px;
    /* Accessible target size */
    cursor: pointer;
    transition: all 0.2s ease;
    border: 0px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-outline {
    border-color: var(--border);
    color: var(--text-main);
    background-color: var(--bg-body);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--text-main);
    background-color: var(--bg-surface);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
    /* Prevent squeezing in flex container */
    margin-right: 30px;
    /* Spacing */
}

/* Base logo image style (Desktop) */
.logo img.logo-desktop {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Mobile Icon Logo */
.logo img.logo-mobile-icon {
    height: 32px;
    width: auto;
    object-fit: contain;
}

/* Center mobile logo text absolutely in the header */
.logo-mobile-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
}

.logo-mobile-text img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

/* In Light Mode, invert logos if they are intended to be white-on-dark by default */
[data-theme="light"] .logo img,
[data-theme="light"] .logo-mobile-text img {
    filter: invert(1) brightness(0);
}

nav.main-nav ul {
    display: flex;
    gap: 24px;
}

nav.main-nav a {
    font-size: 0.8rem;
    /* 14px */
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 10px 0;
    /* Vertical hit area */
    font-family: var(--font-serif);
    letter-spacing: 0.5px;
}

nav.main-nav a:hover,
nav.main-nav a.active {
    color: var(--accent);
}

.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-body);
    border: 0px solid var(--border);
    width: 44px;
    /* WCAG 44px */
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
}

.theme-toggle:hover {
    border-color: var(--accent);
}

.theme-toggle.member-login-trigger svg {
    width: 20px;
    margin-left: -4px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    /* Responsive height */
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    /* Fallback */
    z-index: -1;
    overflow: hidden;
}

/* Placeholder Image logic */
.hero-bg img {
    width: 100%;
    height: 110%;
    /* Increased height for parallax buffer */
    top: -5%;
    /* Offset for parallax buffer */
    position: relative;
    object-fit: cover;
    opacity: 0.4;
    filter: grayscale(100%);
    will-change: transform;
    /* Performance optimization */
}

.hero-edu img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: grayscale(100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    padding: 40px 1.5rem !important;
    width: 100%;
}

.hero h1 {
    font-size: clamp(2rem, 3vw, 4rem);
    /* Responsive fluid type */
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 24px;
    text-transform: uppercase;
    color: #FFFFFF;
    /* Always white */
}

/* Theme overrides removed */

.hero p {
    font-size: 1.25rem;
    /* 20px */
    color: rgba(255, 255, 255, 0.9);
    /* Always light */
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero .btn-outline {
    border-color: #FFFFFF;
    background-color: var(--bg-surface);
}

.hero .btn-outline:hover {
    color: var(--accent);
    border-color: var(--accent);
    background-color: var(--bg-surface);
}

/* Footer */
footer {
    border-top: 0px solid var(--border);
    padding: 80px 0 40px;
    background: var(--bg-surface);
    color: var(--text-main);
    margin-top: 100px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-branding {
    flex: 0 0 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-serif);
    margin-bottom: 24px;
}

.footer-logo img {
    height: 32px;
    width: auto;
}

[data-theme="light"] .footer-logo img {
    filter: invert(1) brightness(0);
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0px solid var(--border);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--white);
    background-color: var(--bg-body);
    transform: translateY(-3px);
}

.footer-email {
    display: inline-block;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-email:hover {
    color: var(--accent);
}

.footer-grid-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    flex-grow: 1;
}

.footer-nav-col h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
}

.footer-nav-col ul li {
    margin-bottom: 12px;
}

.footer-nav-col a {
    color: var(--text-muted);
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-nav-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 40px;
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.legal-primary {
    display: flex;
    gap: 12px;
    font-weight: 600;
    font-size: 0.875rem;
}

.legal-details {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
}

.footer-cookie-settings {
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-main);
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-cookie-settings:hover {
    color: var(--accent);
}

.footer-legal-links {
    column-gap: 0;
}

.footer-legal-links a {
    display: inline-block;
}

.footer-disclaimer {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.6;
    opacity: 0.7;
    max-width: 900px;
}

html.cookie-bar-visible body {
    padding-bottom: 112px;
}

.cookie-consent-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
    background: var(--bg-body);
    backdrop-filter: blur(18px);
}

.cookie-consent-actions button {
    background: var(--bg-surface);
}

.cookie-consent-inner {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-consent-copy {
    flex: 1;
    min-width: 0;
}

.cookie-consent-text {
    margin: 0;
    color: var(--text-main);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-consent-btn {
    min-width: 128px;
    justify-content: center;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.grid-upcoming {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
}

.grid-upcoming>div {
    grid-column: span 2;
}

.grid-upcoming>div:nth-last-child(-n+2) {
    grid-column: span 3;
}

/* Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.partner-item {
    width: 100%;
    max-width: 160px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}

.partner-item:hover {
    transform: scale(1.05);
    opacity: 1;
}

.partner-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* Ensure SVGs are black by default if they have color, but these are black */
    filter: grayscale(1) contrast(1);
}

[data-theme="dark"] .partner-item img {
    filter: brightness(0) invert(1) contrast(1);
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Program Detail Layout */

.program-detail-container {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.program-main-content {
    flex: 1 1 400px;
}

.program-sidebar {
    flex: 0 0 340px;
}

/* Improved Education Card */
.edu-card-horizontal {
    display: flex;
    align-items: center;
    gap: 30px;
}

.education-videos-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}

.education-video-upload-button {
    flex: 0 0 auto;
    gap: 9px;
    white-space: nowrap;
}

.education-video-upload-plus {
    font-size: 1.2rem;
    line-height: 1;
    transform: translateY(-1px);
}

.video-card.is-draft {
    border-color: rgba(160, 28, 52, 0.18);
}

.video-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.video-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 0px solid var(--border);
    background: var(--bg-surface);
    min-height: 100%;
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(160, 28, 52, 0.25);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
}

.video-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(160, 28, 52, 0.08), rgba(5, 5, 5, 0.8));
}

.video-card-media img,
.video-card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.video-card:hover .video-card-media img,
.video-card:hover .video-card-media video {
    transform: scale(1.03);
}

.video-card-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.video-card-flag,
.video-card-duration {
    position: absolute;
    left: 18px;
    display: inline-flex;
    align-items: center;
    padding: 9px 13px;
    background: rgba(5, 5, 5, 0.72);
    color: white;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.video-card-flag {
    top: 18px;
    left: 18px;
}

.video-card-draft-flag {
    background: rgba(160, 28, 52, 0.88);
}

.video-card-processing-flag {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    padding: 9px 13px;
    background: rgba(5, 5, 5, 0.72);
    color: white;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.video-card-duration {
    left: auto;
    right: 18px;
    bottom: 18px;
    letter-spacing: 0.08em;
}

.video-card-progress,
.education-video-recommendation-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: rgba(160, 28, 52, 0.05);
    overflow: hidden;
}

.video-card-progress.is-idle,
.education-video-recommendation-progress.is-idle {
    background: rgba(160, 28, 52, 0.015);
}

.video-card-progress span,
.education-video-recommendation-progress span {
    display: block;
    height: 100%;
    background: var(--accent);
    opacity: 0.92;
}

.video-card-progress.is-completed span,
.education-video-recommendation-progress.is-completed span {
    background: rgba(160, 28, 52, 0.65);
}

.video-card-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
    flex: 1;
}

.video-card-meta,
.education-video-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.video-card-meta span,
.education-video-header-meta span,
.education-video-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 10px;
    border: 0px solid rgba(160, 28, 52, 0.12);
    background: rgba(160, 28, 52, 0.04);
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.video-card-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3;
}

.video-card-chips,
.education-video-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.education-videos-empty {
    border: 0px solid var(--border);
}

.education-video-page {
    padding-top: var(--header-height);
    padding-bottom: 100px;
}

.education-video-breadcrumb {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.education-video-stage-shell {
    --education-video-stage-height: max(220px, calc(100vh - var(--header-height) - 128px));
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 clamp(16px, 3vw, 32px);
    background: radial-gradient(circle at top, rgba(160, 28, 52, 0.14), rgba(5, 5, 5, 0) 45%), #050505;
    border: 0px solid rgba(160, 28, 52, 0.12);
}

@supports (height: 100svh) {
    .education-video-stage-shell {
        --education-video-stage-height: max(220px, calc(100svh - var(--header-height) - 128px));
    }
}

.education-video-stage-shell::after {
    content: '';
    position: absolute;
    inset: auto -10% -30% -10%;
    height: 200px;
    background: radial-gradient(circle, rgba(160, 28, 52, 0.12), rgba(160, 28, 52, 0));
    pointer-events: none;
}

.education-video-player-surface {
    position: relative;
    z-index: 1;
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
    height: min(var(--education-video-stage-height), calc(56.25vw - 36px));
    max-width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #050505;
}

.education-video-player-frame,
.education-video-player-frame iframe {
    width: 100%;
    height: 100%;
}

.education-video-safe-preview {
    appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    background: #050505;
    color: white;
}

.education-video-safe-preview.is-locked {
    cursor: default;
}

.education-video-safe-preview-media,
.education-video-safe-preview-media img,
.education-video-safe-preview-media video {
    width: 100%;
    height: 100%;
}

.education-video-safe-preview-media img,
.education-video-safe-preview-media video {
    object-fit: cover;
}

.education-video-safe-preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
    padding: clamp(20px, 4vw, 34px);
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.08) 0%, rgba(5, 5, 5, 0.82) 72%);
    text-align: left;
}

.education-video-safe-preview-overlay strong {
    max-width: 760px;
    font-size: clamp(1.75rem, 3vw, 2.8rem);
    line-height: 1.08;
    font-family: var(--font-serif);
}

.education-video-safe-preview-overlay small {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.6;
}

.education-video-preview-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.education-video-play-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
}

.education-video-play-badge::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 10px solid white;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
}

.education-video-safe-preview-error {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    max-width: min(360px, calc(100% - 36px));
    padding: 12px 14px;
    background: rgba(160, 28, 52, 0.92);
    color: white;
    font-size: 0.875rem;
    line-height: 1.45;
}

.education-video-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-top: 16px;
}

.education-video-title {
    margin: 7px 0;
    font-size: clamp(1.5rem, 2vw, 1.75rem);
    line-height: 1.04;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.education-video-draft-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    background: rgba(160, 28, 52, 0.1);
    color: var(--accent);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: help;
}

.education-video-draft-tooltip {
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    z-index: 4;
    width: min(280px, calc(100vw - 48px));
    padding: 10px 12px;
    background: var(--bg-body);
    color: var(--text-main);
    border: 1px solid var(--border);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.45;
    text-transform: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.education-video-draft-badge:hover .education-video-draft-tooltip,
.education-video-draft-badge:focus-visible .education-video-draft-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.education-video-subtitle {
    max-width: 860px;
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.7;
    padding-bottom: 40px;
}

.education-video-progress-pill {
    flex-shrink: 0;
    padding: 12px 16px;
    border: 0px solid rgba(160, 28, 52, 0.14);
    background: rgba(160, 28, 52, 0.04);
    color: var(--text-main);
    font-size: 0.8125rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.education-video-progress-pill.is-completed {
    border-color: rgba(160, 28, 52, 0.3);
    background: rgba(160, 28, 52, 0.08);
}

.education-video-player-native {
    width: 100%;
    height: 100%;
    background: #000;
}

.education-video-detail-grid {
    gap: 32px;
}

.education-video-panel {
    border: 0px solid var(--border);
    padding: clamp(16px, 2vw, 24px) clamp(24px, 3vw, 36px);
}

.education-video-panel+.education-video-panel {
    margin-top: 24px;
}

.education-video-panel-head {
    margin-bottom: 24px;
}

.education-video-panel-head h2 {
    font-size: clamp(1.2rem, 1.2vw, 1.2rem);
}

.education-video-panel-toggle {
    display: none;
}

.education-video-speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.education-video-speakers-block {
    padding: 20px 0 11px 0;
}

.education-video-speakers-block h2 {
    margin-bottom: 14px;
    font-size: 1rem;
}

.education-video-speaker-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.education-video-speaker-card:hover,
.education-video-speaker-card:focus-visible {
    border-color: rgba(160, 28, 52, 0.24);
    background: rgba(160, 28, 52, 0.04);
    outline: none;
}

.education-video-speaker-avatar {
    width: 56px;
    height: 56px;
    overflow: hidden;
    background: rgba(160, 28, 52, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
}

.education-video-speaker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.education-video-speaker-copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.education-video-speaker-copy strong {
    font-size: 1rem;
    line-height: 1.3;
}

.education-video-speaker-copy span {
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    html.cookie-bar-visible body {
        padding-bottom: 156px;
    }

    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-actions {
        width: 100%;
    }

    .cookie-consent-btn {
        flex: 1 1 0;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    html.cookie-bar-visible body {
        padding-bottom: 186px;
    }

    .cookie-consent-bar {
        padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
    }

    .cookie-consent-actions {
        flex-direction: column;
    }

    #cookieConsentAcceptBtn {
        order: -1;
    }

    .cookie-consent-btn {
        width: 100%;
    }
}

.education-video-speaker-copy p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.education-video-speaker-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.education-video-speaker-card[aria-expanded="true"] .education-video-speaker-description {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.education-video-description {
    color: var(--text-main);
    line-height: 1.8;
}

.education-video-description p+p {
    margin-top: 14px;
}

.education-video-metadata-group+.education-video-metadata-group {
    margin-top: 22px;
}

.education-video-metadata-group>span,
.education-video-meta-grid span {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.education-video-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.education-video-meta-grid div {
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.education-video-meta-grid strong {
    display: block;
    font-size: 1rem;
    line-height: 1.5;
}

.education-video-recommendations-panel {
    position: sticky;
    margin-top: 32px;
    padding: 0 !important;
}

.education-video-recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.education-video-recommendation-card {
    display: grid;
    gap: 12px;
    align-items: stretch;
    min-width: 0;
}

.education-video-recommendation-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: rgba(160, 28, 52, 0.06);
}

.education-video-recommendation-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.education-video-recommendation-copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.education-video-recommendation-copy strong {
    font-size: 0.95rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.education-video-recommendation-copy span {
    color: var(--text-muted);
    font-size: 0.8125rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.education-video-recommendation-copy small {
    color: var(--text-muted);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-video-membership-note {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.education-video-membership-note p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 16px;
}

.education-video-unlock-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.education-video-unlock-btn svg {
    flex: 0 0 auto;
}

.education-video-sidebar-actions {
    margin-top: 24px;
}

/* Responsive Grid & Layouts */
@media (max-width: 862px) {
    .program-sidebar {
        flex: 1 1 100%;
    }

    .education-video-player-surface {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .education-video-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .education-video-recommendations-panel {
        position: static;
        top: auto;
    }
}

@media (max-width: 768px) {
    .edu-card-horizontal {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .education-videos-section-head {
        align-items: flex-start;
    }

    .education-video-upload-button.btn {
        width: 44px !important;
        min-width: 44px;
        max-width: 44px;
        height: 44px;
        min-height: 44px;
        flex: 0 0 44px;
        padding: 0;
        align-self: flex-start;
    }

    .education-video-upload-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .education-video-upload-plus {
        font-size: 1.5rem;
    }

    .video-cards-grid {
        grid-template-columns: 1fr;
    }

    .education-video-stage-shell {
        padding: 0 12px;
    }

    .education-video-safe-preview-overlay {
        gap: 8px;
        padding: 14px;
        background: linear-gradient(180deg, rgba(5, 5, 5, 0.1) 0%, rgba(5, 5, 5, 0.88) 76%);
    }

    .education-video-safe-preview-overlay strong {
        display: none;
    }

    .education-video-safe-preview-overlay small {
        max-width: 100%;
        font-size: 0.75rem;
        line-height: 1.35;
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .education-video-play-badge {
        padding: 8px 10px;
        gap: 7px;
        font-size: 0.625rem;
    }

    .education-video-play-badge::before {
        border-left-width: 8px;
        border-top-width: 5px;
        border-bottom-width: 5px;
    }

    .education-video-preview-actions {
        margin-top: 0;
    }

    .education-video-preview-actions .btn {
        min-height: 36px;
        padding: 8px 12px;
        font-size: 0.6875rem;
    }

    .education-video-detail-grid {
        gap: 24px;
    }


    .education-video-speaker-avatar {
        width: 64px;
        height: 64px;
    }

    .education-video-panel {
        padding: 24px;
    }

    .education-video-title {
        align-items: flex-start;
        gap: 8px;
    }

    .education-video-draft-tooltip {
        left: auto;
        right: 0;
    }

    .education-video-collapsible-panel {
        position: relative;
        max-height: 256px;
        overflow: hidden;
        cursor: pointer;
        transition: max-height 0.35s ease, padding-bottom 0.35s ease, background-color 0.3s ease;
    }

    .education-video-collapsible-panel.is-expanded {
        max-height: 2400px;
        cursor: default;
    }

    .education-video-collapsible-panel::after {
        content: '';
        position: absolute;
        z-index: 1;
        left: 0;
        right: 0;
        bottom: 0;
        height: 92px;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--education-video-panel-fade) 78%);
        opacity: 1;
        transition: opacity 0.25s ease, background 0.3s ease;
    }

    .education-video-collapsible-panel.is-expanded::after {
        opacity: 0;
    }

    .education-video-collapsible-panel .education-video-panel-toggle {
        position: absolute;
        z-index: 2;
        left: 50%;
        bottom: 8px;
        display: inline-flex;
        width: 36px;
        height: 28px;
        align-items: center;
        justify-content: center;
        transform: translateX(-50%);
        border: 0;
        background: transparent;
        color: var(--text-main);
        cursor: pointer;
    }

    .education-video-collapsible-panel .education-video-panel-toggle::before {
        content: '';
        width: 10px;
        height: 10px;
        border: solid currentColor;
        border-width: 0 1.5px 1.5px 0;
        transform: translateY(-2px) rotate(45deg);
        transition: transform 0.25s ease;
    }

    .education-video-collapsible-panel.is-expanded .education-video-panel-toggle::before {
        transform: translateY(3px) rotate(-135deg);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

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

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

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

    .grid-upcoming>div,
    .grid-upcoming>div:nth-last-child(-n+2) {
        grid-column: span 1;
    }
}

/* Social Links */
.social-links-container .btn {
    min-width: 160px;
}

@media (max-width: 768px) {
    .social-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 24px !important;
    }

    .social-links-container {
        width: 100% !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 12px !important;
        flex-wrap: wrap !important;
    }

    .social-links-container .btn {
        flex-direction: column !important;
        height: auto !important;
        padding: 16px 8px !important;
        flex: 1 1 0 !important;
        min-width: 90px !important;
        max-width: 140px !important;
        text-align: center !important;
    }

    .social-links-container .btn .mr-10 {
        margin-right: 0 !important;
        margin-bottom: 8px !important;
        width: 24px !important;
        height: 24px !important;
    }
}

@media (max-width: 768px) {
    .grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .grid-upcoming {
        grid-template-columns: 1fr;
    }

    .grid-upcoming>div,
    .grid-upcoming>div:nth-last-child(-n+2) {
        grid-column: span 1;
    }

    nav.main-nav {
        display: none;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-branding {
        flex: none;
        width: 100%;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-grid-nav {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-legal {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-disclaimer {
        text-align: center;
    }

    .btn {
        width: 100%;
    }

    .seo-links {
        flex-direction: column;
    }
}

/* --- Accessibility (WCAG AA) --- */

/* Visible Focus Indicators */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -60px;
    left: 20px;
    background: var(--accent);
    color: #fff !important;
    padding: 12px 20px;
    z-index: 9999;
    font-weight: 700;
    transition: top 0.3s;
    text-decoration: none;
    border: 2px solid #fff;
}

.skip-link:focus {
    top: 20px;
}

/* 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;
    }
}

/* --- Utilities & Helper Classes (Refactored) --- */

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.d-flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.align-end {
    align-items: flex-end;
}

.mt-auto {
    margin-top: auto;
}

.pos-relative {
    position: relative;
}

.pos-absolute {
    position: absolute;
}

.text-center {
    text-align: center;
}

.list-none {
    list-style: none;
}

/* Colors */
.text-accent {
    color: var(--accent);
}

.text-muted {
    color: var(--text-muted);
}

.text-white {
    color: white;
}

.bg-plum-800 {
    background: var(--plum-800);
}

.bg-plum-900 {
    background: var(--plum-900);
}

.bg-transparent {
    background: transparent;
}

/* Spacing (Kept in px for structural stability, only font needs rem for a11y) */
.m-0 {
    margin: 0;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-60 {
    margin-bottom: 60px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-80 {
    margin-top: 80px;
}

.py-60 {
    padding-top: 60px;
    padding-bottom: 60px;
}

.pt-60 {
    padding-top: 60px;
}

.py-80 {
    padding-top: 80px;
    padding-bottom: 80px;
}

.py-100 {
    padding-top: 100px;
}

.pt-120 {
    padding-top: 120px;
}

.pb-60 {
    padding-bottom: 60px;
}

.pb-100 {
    padding-bottom: 100px;
}

.p-30 {
    padding: 30px;
}

.p-40 {
    padding: 40px;
}

.p-60 {
    padding: 60px;
}

.gap-10 {
    gap: 10px;
}

.gap-30 {
    gap: 30px;
}

.gap-40 {
    gap: 40px;
}

.gap-60 {
    gap: 60px;
}

/* Typography (Converted to rem) */
.fs-12 {
    font-size: 0.75rem;
}

/* 12px */
.mr-10 {
    margin-right: 10px;
}

.fs-14 {
    font-size: 0.875rem;
}

/* 14px */
.fs-18 {
    font-size: 1.125rem;
}

/* 18px */
.fs-20 {
    font-size: 1.25rem;
}

/* 20px */
.fs-24 {
    font-size: 1.25rem;
}

/* 24px */
.fs-32 {
    font-size: 2rem;
}

/* 32px */
.fs-36 {
    font-size: 2.25rem;
}

/* 36px */
.fw-400 {
    font-weight: 400;
}

.fw-500 {
    font-weight: 500;
}

.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

.fw-800 {
    font-weight: 800;
}

/* New Utilities for Minimalist Design */
.gap-20 {
    gap: 20px;
}

.p-20 {
    padding: 20px;
}

.w-60 {
    width: 60px;
}

.h-60 {
    height: 60px;
}

.w-12 {
    width: 12px;
}

.h-12 {
    height: 12px;
}

.opacity-30 {
    opacity: 0.3;
}

.tracking-wide {
    letter-spacing: 0.1em;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 1;
}

.fs-48 {
    font-size: 3rem;
}

/* 48px */

.lh-18 {
    line-height: 1.8;
}

.uppercase {
    text-transform: uppercase;
}

/* Grids */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Team Section Classes */
.team-group {
    margin-bottom: 60px;
    text-align: center;
    width: 100%;
    overflow: hidden;
}

.team-group:last-child {
    margin-bottom: 0;
}

.team-scroller {
    display: inline-flex;
    max-width: 100vw;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    /* Indicate draggable */
    scrollbar-width: none;
    /* Hide for clean look */

    /* Gutters */
    padding-left: 1.5rem;
    padding-right: 0;

    /* Reset text-align for cards */
    text-align: left;
}

.team-scroller.active {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

.team-scroller::-webkit-scrollbar {
    display: none;
}

/* Force padding-right to be respected in all browsers when scrolling */
.team-scroller::after {
    content: "";
    flex: 0 0 1.5rem;
    /* Matches padding-right */
    margin-left: -20px;
    /* Offset the gap */
    display: block;
}

@media (min-width: 1024px) {
    .team-scroller {
        padding-left: calc((100vw - var(--container-width)) / 2 + 2rem);
        padding-right: 0;
    }

    .team-scroller::after {
        flex-basis: calc((100vw - var(--container-width)) / 2 + 2rem);
    }
}

.team-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 0px solid var(--accent) !important;
    padding: 24px;
    gap: 24px;
}

.team-avatar {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-muted);
    flex-shrink: 0;
    border-radius: 0 !important;
}

.team-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
    text-transform: none;
    margin-bottom: 0;
}

.team-role {
    color: var(--accent);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.team-desc {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 0px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-desc-item {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.4;
    position: relative;
    padding-left: 14px;
}

.team-desc-item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.team-desc-date {
    font-weight: 700;
    color: var(--text-main);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.grid-span-last> :last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.grid-detail {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Prevent zoom on mobile */
input,
textarea,
select {
    font-size: 16px;
}

.form-input {
    width: 100%;
    padding: 12px;
    min-height: 52px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    font-size: 16px;
}

/* Autofill overrides to match theme */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
    -webkit-background-clip: text;
    -webkit-text-fill-color: var(--text-main) !important;
    -webkit-box-shadow: 0 0 0 1000px var(--bg-surface) inset !important;
    box-shadow: 0 0 0 1000px var(--bg-surface) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-input:focus {
    border-color: var(--accent);
    outline: none;
}

.form-textarea {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    font-size: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.alert {
    padding: 15px;
    border: 1px solid transparent;
    font-size: 0.9375rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #10b981;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.auth-legal-note,
.contact-legal-note {
    margin: 20px 0;
    padding: 14px 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.auth-legal-note a,
.contact-legal-note a {
    color: var(--text-main);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-legal-note a:hover,
.contact-legal-note a:hover {
    color: var(--accent);
}

.legal-shell {
    position: relative;
}

.legal-container {
    max-width: 1080px;
    margin-top: 80px;
}

.legal-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.legal-page-head h1 {
    margin-bottom: 12px;
}

.legal-page-kicker {
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.legal-page-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.legal-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-status-badge.status-published {
    border-color: rgba(31, 157, 85, 0.4);
    color: #1f9d55;
}

.legal-status-badge.status-draft {
    border-color: rgba(75, 123, 236, 0.4);
    color: #4b7bec;
}

.legal-status-badge.status-archived {
    border-color: rgba(148, 163, 184, 0.4);
    color: #94a3b8;
}

.legal-page-card {
    padding: 32px;
}

.legal-center-intro {
    margin: 0 0 28px;
    color: var(--text-muted);
    font-size: 1rem;
}

.legal-page-view .legal-content {
    max-width: 780px;
}

.legal-content> :first-child {
    margin-top: 0;
}

.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4 {
    margin-top: 1.8em;
    margin-bottom: 0.6em;
}

.legal-content p,
.legal-content ul,
.legal-content ol,
.legal-content blockquote,
.legal-content table,
.legal-content pre {
    margin-bottom: 1.1rem;
}

.legal-content blockquote {
    margin-left: 0;
    padding-left: 18px;
    border-left: 3px solid var(--accent);
    color: var(--text-muted);
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
}

.legal-content th,
.legal-content td {
    padding: 12px;
    border: 1px solid var(--border);
    text-align: left;
}

.legal-content .legal-note {
    margin: 18px 0 24px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.legal-center-groups {
    display: grid;
    gap: 24px;
    margin-top: 36px;
}

.legal-center-group {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.legal-center-group h2 {
    margin-bottom: 14px;
}

.legal-center-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.legal-center-group a {
    color: var(--text-main);
}

.legal-center-group a:hover {
    color: var(--accent);
}

.legal-page-bottom-link {
    margin-top: 32px;
}

.legal-editor-message {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.9375rem;
}

.legal-editor-message.is-success {
    border-color: rgba(31, 157, 85, 0.4);
    color: #1f9d55;
}

.legal-editor-message.is-error {
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.legal-editor-top,
.legal-editor-actions,
.legal-editor-tabs {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.legal-editor-top {
    justify-content: space-between;
    margin-bottom: 24px;
}

.legal-editor-tab {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    min-height: 42px;
    padding: 10px 16px;
    cursor: pointer;
}

.legal-editor-tab.is-active {
    border-color: var(--accent);
    color: var(--text-main);
}

.legal-editor-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
}

.legal-editor-pane {
    display: none;
}

.legal-editor-pane.is-active {
    display: block;
}

.legal-editor-instance {
    border: 1px solid var(--border);
    min-height: 360px;
}

.legal-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.legal-editor-grid-bottom {
    margin-top: 8px;
}

.legal-editor-textarea {
    min-height: 96px;
}

.legal-preview-panel {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.legal-revision-sidebar {
    border-left: 1px solid var(--border);
    padding-left: 24px;
}

.legal-revision-sidebar h3 {
    margin-bottom: 16px;
}

.legal-revision-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}

.legal-revision-card:first-child {
    border-top: 0;
    padding-top: 0;
}

.legal-revision-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.legal-revision-copy span,
.legal-revision-copy small,
.legal-revision-copy p,
.legal-revision-empty {
    color: var(--text-muted);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.legal-revision-restore {
    flex-shrink: 0;
}

.legal-cookie-panel {
    margin-top: 28px;
    padding: 24px;
    border: 1px solid var(--border);
}

.legal-cookie-panel-head {
    margin-bottom: 18px;
}

.legal-cookie-panel-head h2 {
    margin-bottom: 8px;
}

.legal-cookie-panel-head p {
    color: var(--text-muted);
}

.legal-cookie-list {
    display: grid;
    gap: 14px;
}

.legal-cookie-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
}

.legal-cookie-copy {
    display: grid;
    gap: 4px;
}

.legal-cookie-copy small,
.legal-cookie-status {
    color: var(--text-muted);
}

.legal-cookie-status {
    margin-top: 16px;
}

.legal-cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Heroes */
.hero-sm {
    height: 40vh;
    min-height: 300px;
}

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

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

/* Components */
.sticky-top-100 {
    position: sticky;
    top: 100px;
}

.object-top {
    object-position: top;
}

.membership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.border-accent {
    border-color: var(--accent);
}

.border-default {
    border-color: var(--border);
}

.badge-popular {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    background: var(--accent);
    color: white;
    padding: 5px 0;
    font-size: 0.75rem;
    /* 12px */
    font-weight: 700;
    text-transform: uppercase;
}

/* Small Utilities Used in Header */
.gap-4 {
    gap: 4px;
}

.gap-8 {
    gap: 8px;
}

.pb-24 {
    padding-bottom: 128px;
}

.w-32 {
    width: 44px;
}

/* --- Mobile Menu Styles --- */

/* Default Visibility */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none !important;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    /* Below header */
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    z-index: 999;
    background: var(--bg-surface);
    border-top: 0px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

/* --- Instagram Widget --- */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.instagram-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: block;
    background-color: var(--bg-surface);
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.instagram-item:hover img {
    transform: scale(1.05);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.icon-instagram {
    color: white;
    width: 32px;
    height: 32px;
}

@media (min-width: 768px) {
    .instagram-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Committees Grid --- */
.committees-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 1024px) {
    .committees-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1023px) {
    .committees-grid> :last-child:nth-child(odd) {
        grid-column: span 2;
    }
}

/* Specific styling for committee items in the preview grid */
@media (max-width: 768px) {
    .committees-grid .glass {
        padding: 15px 10px;
    }

    .committees-grid h3 {
        font-size: 0.8125rem;
        /* Slightly smaller on mobile to fit */
    }
}



.mobile-menu.active {
    display: block;
    transform: translateX(0);
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
}

.mobile-nav li {
    border-bottom: 0px solid var(--border);
}

.mobile-nav a {
    display: block;
    padding: 20px 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-serif);
    color: var(--text-main);
}

/* Burger Button */
.burger-btn {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 4px 0;
    cursor: pointer;
    z-index: 1001;
}

.burger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s;
}

.burger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-btn.active span:nth-child(2) {
    opacity: 0;
}

.burger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile / Tablet Overrides --- */
@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    /* Stack Grids on smaller screens */
    .grid-detail,
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Remove sticky on mobile as it takes up too much space */
    .sticky-top-100 {
        position: static;
    }
}

/* New Timeline Utilities */
.justify-center {
    justify-content: center;
}

.justify-start {
    justify-content: flex-start;
}

.justify-end {
    justify-content: flex-end;
}

.absolute-center-x {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.max-w-1000 {
    max-width: 1000px;
}

/* --- Member Auth --- */

.btn-danger {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
}

.btn-danger:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-profile-header {
    min-width: 140px;
}

.member-login-trigger {
    flex-shrink: 0;
}

.member-login-trigger-mobile {
    width: 56px;
}

.auth-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.auth-modal-overlay,
.member-confirm-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 3, 3, 0.58);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
    z-index: 1500;
}

.auth-modal-overlay.is-open,
.member-confirm-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.auth-modal-dialog,
.member-confirm-dialog {
    width: min(100%, 960px);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    transform: translateY(24px) scale(0.98);
    transition: transform 0.32s ease;
    position: relative;
    overflow: hidden;
}

.auth-modal-overlay.is-open .auth-modal-dialog,
.member-confirm-modal.is-open .member-confirm-dialog {
    transform: translateY(0) scale(1);
}

.auth-modal-close,
.member-confirm-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    background: var(--bg-body);
    color: var(--text-main);
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 2;
}

.auth-modal-shell {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    min-height: 520px;
}

.auth-modal-copy {
    position: relative;
    overflow: hidden;
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        radial-gradient(circle at top left, rgba(160, 28, 52, 0.18), transparent 46%),
        linear-gradient(180deg, rgba(160, 28, 52, 0.1), transparent 48%);
}

.auth-modal-copy>.auth-modal-kicker,
.auth-modal-copy>h3,
.auth-modal-copy>.text-muted {
    position: relative;
    z-index: 1;
}

.auth-modal-bg-graphics {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 56px;
    padding-bottom: 0;
    box-sizing: border-box;
    z-index: 0;
    pointer-events: none;
}

.auth-modal-images-stack {
    position: relative;
    width: 100%;
}

.auth-modal-login-img {
    display: block;
    width: 130%;
    max-width: none;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    left: calc(-23% - 41px);
    top: 24px;
    margin-bottom: -8%;
}

.auth-modal-sur-line-wrapper {
    position: absolute;
    top: 13%;
    /* slightly above the middle of login.png */
    transform: translateY(-50%);
    left: -56px;
    /* offset the padding of the graphics container */
    width: calc(100% + 112px);
    /* span full width of the copy area */
    overflow: hidden;
    z-index: 1;
}

.auth-modal-sur-line-track {
    display: flex;
    width: max-content;
    animation: scrollSurLine 50s linear infinite;
}

.auth-modal-sur-line-track img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

@keyframes scrollSurLine {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.auth-modal-kicker {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.auth-modal-copy h3 {
    font-size: clamp(2rem, 3vw, 3.6rem);
    line-height: 0.98;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.auth-modal-forms {
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-video-upload-dialog {
    width: min(100%, 980px);
    max-height: min(86vh, 900px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.member-video-modal-top-actions {
    position: absolute;
    top: 16px;
    right: 72px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.member-video-modal-top-actions .btn {
    min-height: 44px;
    padding: 9px 10px 9px 14px;
    font-size: 0.75rem;
}

.member-video-open-link {
    gap: 10px;
}

.member-video-open-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(160, 28, 52, 0.24);
    color: var(--accent);
}

.member-video-open-icon svg {
    display: block;
}

.member-video-upload-shell {
    display: grid;
    gap: 20px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: clamp(20px, 3vw, 36px);
}

.member-video-upload-head {
    max-width: 720px;
}

.member-video-upload-head h3 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 3vw, 3.25rem);
    line-height: 0.98;
    text-transform: uppercase;
}

.member-video-upload-form,
.member-video-youtube-form,
.member-video-draft-form {
    display: grid;
    gap: 16px;
}

.member-video-upload-modal [hidden] {
    display: none !important;
}

.member-video-source-stage {
    display: grid;
    gap: 20px;
}

.member-video-upload-help {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.member-video-upload-progress {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
}

.member-video-upload-progress-copy {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.member-video-upload-progress-copy strong {
    color: var(--text-main);
}

.member-video-upload-progress-track {
    height: 3px;
    background: rgba(160, 28, 52, 0.08);
    overflow: hidden;
}

.member-video-upload-progress-track span {
    display: block;
    height: 100%;
    background: var(--accent);
    transition: width 0.25s ease;
}

.member-video-upload-actions,
.member-video-draft-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.member-video-upload-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.member-video-upload-divider::before,
.member-video-upload-divider::after {
    content: '';
    height: 1px;
    flex: 1;
    background: var(--border);
}

.member-video-youtube-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 14px;
}

.member-video-youtube-row .form-group {
    margin-bottom: 0;
}

.member-video-modal-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-bottom: 1px solid var(--border);
}

.member-video-modal-step {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1px 9px;
    align-items: center;
    min-height: 58px;
    padding: 10px 8px 12px;
    border: 0;
    background: transparent;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
    opacity: 0.72;
    transition: color 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.member-video-modal-step::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.18s ease;
}

.member-video-modal-step span {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(160, 28, 52, 0.18);
    background: transparent;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
}

.member-video-modal-step strong {
    font-size: 0.84rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.member-video-modal-step small {
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.25;
}

.member-video-modal-step:hover {
    opacity: 1;
    background: rgba(160, 28, 52, 0.03);
}

.member-video-modal-step.is-active {
    opacity: 1;
    color: var(--accent);
    background: transparent;
}

.member-video-modal-step.is-active::after {
    transform: scaleX(1);
}

.member-video-draft-panel {
    display: grid;
    gap: 18px;
}

.member-video-draft-panel-head h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.member-video-draft-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.member-video-draft-grid .form-group {
    margin-bottom: 0;
}

.member-video-draft-grid select[multiple] {
    min-height: 132px;
}

.member-video-multiselect.is-enhanced-native {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    opacity: 0;
    pointer-events: none;
}

.member-video-multiselect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 8px;
    max-height: 154px;
    overflow: auto;
    padding-right: 2px;
}

.member-video-multiselect-compact.is-enhanced-native+.member-video-multiselect-grid {
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.member-video-multiselect-card {
    min-height: 38px;
    border: 1px solid var(--border);
    background: rgba(160, 28, 52, 0.03);
    color: var(--text-main);
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    line-height: 1.25;
    padding: 9px 11px;
    text-align: left;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.member-video-multiselect-card:hover {
    border-color: rgba(160, 28, 52, 0.26);
    background: rgba(160, 28, 52, 0.06);
}

.member-video-multiselect-card:focus-visible {
    outline: none;
    border-color: rgba(160, 28, 52, 0.58);
    box-shadow: 0 0 0 3px rgba(160, 28, 52, 0.12);
}

.member-video-multiselect-card.is-selected {
    border-color: rgba(160, 28, 52, 0.56);
    background: rgba(160, 28, 52, 0.12);
    color: var(--accent);
}

.member-video-ai-import-trigger {
    gap: 9px;
}

.member-video-ai-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    border: 1px solid rgba(160, 28, 52, 0.28);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.member-video-ai-import-panel {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(160, 28, 52, 0.18);
    background: rgba(160, 28, 52, 0.05);
}

.member-video-ai-import-panel p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.member-video-ai-import-panel textarea {
    min-height: 132px;
    resize: vertical;
}

.member-video-ai-import-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.member-video-ai-import-actions .btn {
    min-height: 38px;
    padding: 10px 14px;
    font-size: 0.75rem;
}

.member-video-draft-footer {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
    padding: 12px clamp(20px, 3vw, 36px);
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
}

.member-video-draft-footer-status {
    min-width: 0;
}

.member-video-draft-footer .member-video-upload-progress {
    min-height: 52px;
}

.auth-membership-tip {
    display: none;
    margin-bottom: 20px;
    padding: 16px 18px;
    border-left: 3px solid var(--accent);
    background: rgba(160, 28, 52, 0.08);
    color: var(--text-main);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.auth-membership-tip.is-visible {
    display: block;
}

.auth-membership-tip.is-visible a {
    border-bottom: 1px;
    border-bottom-style: outset;
    transition: border-bottom-style 0.2s ease;
}

.auth-membership-tip.is-visible a:hover {
    border-bottom-style: inset;
}

.auth-input-error {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 1px rgba(160, 28, 52, 0.28);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 22px 0;
}

.auth-divider::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    border-top: 1px solid var(--border);
}

.auth-divider span {
    position: relative;
    display: inline-block;
    padding: 0 12px;
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.auth-google-btn {
    gap: 12px;
}

.auth-provider-disabled {
    opacity: 0.58;
    cursor: not-allowed;
    box-shadow: none !important;
}

.auth-secondary-link {
    margin-top: 16px;
    align-self: center;
    background: transparent;
    border: 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
    cursor: pointer;
    padding: 0;
}

.auth-secondary-link:hover {
    color: var(--accent);
}

.auth-modal-dialog-compact {
    max-width: 620px;
}

.auth-modal-forms-compact {
    padding: 40px;
}

.auth-modal-copy-compact {
    margin-bottom: 20px;
}

.auth-grid-tight {
    gap: 14px;
}

.auth-inline-action-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.auth-inline-input-grow {
    flex: 1 1 auto;
}

.auth-provider-inline {
    flex: 0 0 auto;
    display: inline-flex;
}

.auth-google-btn-compact {
    min-height: 52px;
    padding: 12px 18px;
    white-space: nowrap;
}

.auth-password-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.auth-forgot-btn {
    margin-top: 18px;
    background: transparent;
    border: 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
    text-align: left;
    cursor: pointer;
    padding: 0;
}

.auth-forgot-btn:hover {
    color: var(--accent);
}

.auth-forgot-inline {
    margin-top: 0;
    text-align: right;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.member-toast-stack {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1600;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
}

.member-toast {
    padding: 18px 18px 16px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-main);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
    animation: memberToastIn 0.28s ease;
}

.member-toast-success {
    border-left: 3px solid #1f9d55;
}

.member-toast-error {
    border-left: 3px solid var(--accent);
}

.member-toast-info {
    border-left: 3px solid #4b7bec;
}

@keyframes memberToastIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.auth-inline-notice {
    padding: 16px 18px;
    border-left: 3px solid var(--border);
    background: var(--bg-surface);
}

.auth-inline-notice-success {
    border-left-color: #1f9d55;
}

.auth-inline-notice-error {
    border-left-color: var(--accent);
}

.auth-inline-notice-info {
    border-left-color: #4b7bec;
}

.member-profile-card {
    border: 1px solid var(--border);
}

.member-profile-connected-top {
    align-items: flex-start;
}

.member-profile-header,
.member-profile-connected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.member-profile-header {
    margin-bottom: 32px;
}

.member-profile-avatar-wrap {
    flex-shrink: 0;
}

.member-profile-avatar {
    width: 112px;
    height: 112px;
    border: 0px solid var(--border);
    background:
        radial-gradient(circle at top left, rgba(160, 28, 52, 0.16), transparent 52%),
        var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.member-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-profile-name,
.member-profile-provider-title {
    font-size: clamp(1.4rem, 2.1vw, 2.2rem);
    font-family: var(--font-serif);
    text-transform: uppercase;
}

.member-profile-provider-email {
    display: inline-block;
    margin-left: 8px;
    color: var(--text-main);
}

.member-invites-top {
    align-items: flex-start;
}

.member-invite-request-form {
    margin-left: auto;
    flex: 0 0 auto;
}

.member-invite-request-btn,
.member-invite-request-status {
    min-width: 220px;
    min-height: 58px;
}

.member-invite-request-btn {
    white-space: nowrap;
}

.member-invite-request-status {
    margin-left: auto;
    padding: 12px 16px;
    border: 0px solid var(--border);
    background:
        radial-gradient(circle at top left, rgba(160, 28, 52, 0.14), transparent 58%),
        var(--bg-body);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.member-invite-request-status span {
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.member-invite-request-status strong {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 700;
}

.member-invites-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.member-invite-code {
    border: 0px solid var(--border);
    background:
        radial-gradient(circle at top left, rgba(160, 28, 52, 0.12), transparent 60%),
        var(--bg-body);
    color: var(--text-main);
    min-height: 92px;
    padding: 18px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.member-invite-code:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.member-invite-code span {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.member-invite-code small {
    display: block;
    color: var(--text-muted);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.member-invite-code.is-disabled {
    opacity: 0.72;
}

.member-profile-form .btn {
    width: auto;
    min-width: 220px;
}

.member-profile-logout-card .btn {
    width: auto;
}

.member-confirm-dialog {
    max-width: 560px;
    padding: 32px;
}

.member-confirm-dialog h3 {
    margin-bottom: 16px;
    font-size: 1.75rem;
    text-transform: uppercase;
}

.member-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

@media (max-width: 1024px) {
    .auth-modal-shell {
        grid-template-columns: 1fr;
    }

    .auth-modal-copy,
    .auth-modal-forms {
        padding: 40px 32px;
    }

    .auth-modal-copy {
        min-height: 200px;
        justify-content: flex-start;
    }

    .auth-modal-login-img {
        display: none;
    }
}

#memberAuthModalTitle {
    font-size: 40px;
}

@media (max-width: 768px) {

    #memberAuthModalTitle {
        font-size: 24px;
    }

    .auth-modal-overlay,
    .member-confirm-modal {
        padding: 12px;
    }

    .auth-modal-dialog,
    .member-confirm-dialog {
        width: 100%;
    }

    .auth-modal-copy,
    .auth-modal-forms,
    .member-confirm-dialog {
        padding: 28px 20px;
    }

    .auth-modal-copy h3 {
        font-size: 2rem;
    }

    .auth-modal-bg-graphics {
        padding: 28px 20px;
    }

    .member-video-upload-dialog {
        max-height: calc(100vh - 24px);
    }

    .member-video-modal-top-actions {
        top: 12px;
        right: 64px;
    }

    .member-video-modal-top-actions .btn {
        min-height: 40px;
        padding: 9px 12px;
        font-size: 0.7rem;
    }

    .member-video-upload-shell {
        padding: 20px;
    }

    .member-video-upload-head h3 {
        font-size: 2rem;
    }

    .member-video-draft-grid {
        grid-template-columns: 1fr;
    }

    .member-video-youtube-row,
    .member-video-modal-steps {
        grid-template-columns: 1fr;
    }

    .member-video-youtube-row .btn {
        width: 100%;
    }

    .member-video-upload-progress-copy {
        flex-direction: column;
        gap: 4px;
    }

    .member-video-multiselect-grid {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .member-video-draft-footer {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 10px;
        padding: 10px 20px;
    }

    .member-video-upload-actions,
    .member-video-draft-actions {
        flex-direction: column-reverse;
    }

    .member-video-upload-actions .btn,
    .member-video-draft-actions .btn,
    .member-video-ai-import-actions .btn {
        width: 100%;
    }

    .auth-modal-sur-line-wrapper {
        top: 150px;
        left: -20px;
        width: calc(100% + 40px);
    }

    .auth-modal-forms-compact {
        padding: 28px 20px;
    }

    .auth-inline-action-row {
        align-items: stretch;
    }

    .auth-google-btn-compact {
        width: 52px;
        min-width: 52px;
        padding: 12px;
    }

    .member-profile-header,
    .member-profile-connected,
    .member-confirm-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .member-profile-form .btn,
    .member-profile-logout-card .btn,
    .member-confirm-actions .btn {
        width: 100%;
    }

    .member-toast-stack {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }

    .auth-password-row {
        align-items: flex-start;
    }

    .member-invites-grid {
        grid-template-columns: 1fr;
    }

    .member-invite-request-form,
    .member-invite-request-status {
        width: 100%;
        margin-left: 0;
    }

    .member-invite-request-btn {
        width: 100%;
    }

    .legal-page-card {
        padding: 24px 18px;
    }

    .legal-page-head,
    .legal-cookie-item {
        flex-direction: column;
        align-items: stretch;
    }

    .legal-editor-main,
    .legal-editor-grid {
        grid-template-columns: 1fr;
    }

    .legal-cookie-actions {
        grid-template-columns: 1fr;
    }

    .legal-revision-sidebar {
        border-left: 0;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 20px;
    }

    .legal-revision-card {
        flex-direction: column;
        align-items: stretch;
    }
}

.pr-40 {
    padding-right: 40px;
}

.pl-40 {
    padding-left: 40px;
}

/* Timeline Visuals */
.timeline-connector {
    height: 1px;
    background-color: var(--border);
    width: 60px;
    display: block;
}

.timeline-year {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.timeline-dot-outline {
    width: 16px;
    height: 16px;
    background: var(--accent);
    border: 3px solid var(--bg-body);
    box-shadow: 0 0 0 1px var(--accent);
}

.text-serif {
    font-family: var(--font-serif);
}

.max-w-400 {
    max-width: 400px;
}

.mr-auto {
    margin-right: auto;
}

.ml-auto {
    margin-left: auto;
}

.pr-0 {
    padding-right: 0 !important;
}

.pl-0 {
    padding-left: 0 !important;
}

.ml-20 {
    margin-left: 20px;
}

.mr-20 {
    margin-right: 20px;
}

.pl-20 {
    padding-left: 20px;
}

.mb-100 {
    margin-bottom: 100px;
}

.fs-16 {
    font-size: 1rem;
}

/* Semantic Timeline Refactor */
.timeline-wrapper {
    position: relative;
    margin: 0 auto;
}

.timeline-line-desktop {
    position: absolute;
    height: 100%;
    width: 1px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--border);
    z-index: 0;
}

.timeline-line-mobile {
    position: absolute;
    height: 100%;
    width: 1px;
    left: 20px;
    top: 0;
    background-color: var(--border);
    z-index: 0;
}

.timeline-entry {
    margin-bottom: 100px;
    position: relative;
    z-index: 1;
}

.timeline-entry-desktop {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.timeline-entry-mobile {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 40px;
}

.timeline-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-body);
    box-shadow: 0 0 0 1px var(--accent);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.timeline-marker-mobile {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-surface);
    box-shadow: 0 0 0 1px var(--accent);
    position: absolute;
    left: 20px;
    top: 25px;
    /* Aligned with first line of text roughly */
    transform: translate(-50%, -50%);
    z-index: 10;
}

.timeline-col-left,
.timeline-col-right {
    width: 45%;
    display: flex;
    align-items: center;
}

.timeline-col-left {
    justify-content: flex-end;
    padding-right: 0;
}

.timeline-col-right {
    justify-content: flex-start;
    padding-left: 0;
}

.timeline-date-text {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.timeline-title {
    font-size: 1.5rem;
    /* fs-24 */
    font-weight: 800;
    margin-bottom: 10px;
    font-family: var(--font-serif);
    color: var(--accent);
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
}

/* --- BLOG STYLES --- */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
}

.blog-card {
    border: 0px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    background: var(--bg-surface);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.blog-card-img {
    height: 240px;
    width: 100%;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

/* Article Typography (Prose) */
.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-main);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 2em;
    margin-bottom: 0.8em;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-main);
}

.article-content h1 {
    font-size: 1.5rem;
}

.article-content h2 {
    font-size: 2rem;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content p {
    margin-bottom: 1.5em;
}

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

.article-content li {
    margin-bottom: 0.5em;
}

.article-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content blockquote {
    border-left: 4px solid var(--accent);
    margin: 2em 0;
    padding-left: 1.5em;
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.25rem;
}

.article-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 2em 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.article-content pre {
    background: var(--surface);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5em;
    border: 1px solid var(--border);
    font-family: monospace;
    font-size: 0.9em;
}

.article-content code {
    background: var(--surface);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

/* Dark mode adjustments explicitly if needed (though vars handle most) */
[data-theme="dark"] .article-content pre,
[data-theme="dark"] .article-content code {
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .article-content {
        font-size: 1rem;
    }

    .fs-48 {
        font-size: 1.5rem;
        /* Down from 3rem on mobile */
    }
}

/* Blog Tags (Chips) */
.blog-tags-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.blog-tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--bg-surface);
    border: 0px solid var(--border);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
    text-decoration: none;
}

.blog-tag-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(156, 0, 53, 0.05);
    /* Using accent color manually to be safe */
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .blog-tag-chip {
        font-size: 0.8125rem;
        /* Smaller on mobile */
        padding: 6px 14px;
    }
}

/* --- Preloader --- */
body.preloader-active {
    overflow: hidden;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

html.no-preloader .preloader {
    display: none !important;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    /* 20px up from center */
    transform: translateY(-80px);
    width: 30%;
    max-width: 320px;
    display: flex;
    justify-content: center;
}

.preloader-content video {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Page Transitions --- */
/* Body always visible to render background/preloader */
body {
    opacity: 1;
}

#page-wrapper {
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.45, 0, 0.55, 1);
}

#page-wrapper.is-visible {
    opacity: 1;
}

#page-wrapper.is-exiting {
    opacity: 0 !important;
}

section.pt-80 {
    padding-top: 80px;
}

/* --- Advocacy / Petitions --- */
.advocacy-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 8, 10, 0.2) 0%, rgba(8, 8, 10, 0.78) 80%);
}

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

.advocacy-hero-content {
    align-items: flex-start;
}

.advocacy-breadcrumb {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.advocacy-hero-intro {
    max-width: 860px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.8;
}

.advocacy-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 24px;
}

.advocacy-hero-meta span {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.advocacy-hero-mobile-panel {
    display: none !important;
}

.advocacy-hero-mobile-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.advocacy-hero-mobile-count,
.advocacy-hero-mobile-deadline,
.advocacy-hero-mobile-progress {
    display: grid;
    gap: 6px;
}

.advocacy-hero-mobile-count strong,
.advocacy-hero-mobile-deadline strong {
    font-size: 1.15rem;
    line-height: 1.1;
    color: #fff;
}

.advocacy-hero-mobile-count span,
.advocacy-hero-mobile-deadline small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.advocacy-hero-mobile-progress strong {
    color: #fff;
    font-size: 0.92rem;
    line-height: 1.45;
}

.advocacy-hero-mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.advocacy-page-shell {
    position: relative;
}

.advocacy-detail-grid {
    align-items: flex-start;
    gap: 32px;
}

.advocacy-main-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.advocacy-body-card,
.advocacy-progress-strip,
.advocacy-faq-card,
.advocacy-signers-card,
.advocacy-sidebar-card {
    padding: clamp(20px, 2.3vw, 32px);
    border: 1px solid var(--border);
}

.advocacy-body-prose {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.85;
}

.advocacy-body-prose p+p,
.advocacy-body-prose ul+p,
.advocacy-body-prose ol+p {
    margin-top: 18px;
}

.advocacy-body-prose ul,
.advocacy-body-prose ol {
    padding-left: 20px;
}

.advocacy-progress-strip {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.advocacy-progress-strip-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.advocacy-progress-strip-copy strong,
.advocacy-sidebar-copy strong {
    font-size: 1.15rem;
    line-height: 1.45;
}

.advocacy-progress-strip-copy p,
.advocacy-sidebar-copy p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 0;
}

.advocacy-hero-mobile-copy strong,
.advocacy-hero-mobile-deadline strong,
.advocacy-hero-mobile-progress strong,
.advocacy-hero-mobile-panel strong {
    color: white;
}

.advocacy-hero-mobile-copy .petition-progress-body {
    color: #9ca3af;
}


.advocacy-progress-strip-scale {
    position: relative;
    padding-top: 18px;
    padding-bottom: 26px;
}

.advocacy-progress-strip-bar {
    width: 100%;
    height: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.advocacy-progress-strip-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, #d64874 100%);
}

.advocacy-progress-strip-milestones {
    position: absolute;
    inset: 0 0 0 0;
    pointer-events: none;
}

.advocacy-progress-milestone {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.advocacy-progress-milestone i {
    width: 2px;
    height: 12px;
    background: rgba(255, 255, 255, 0.16);
    margin-top: 18px;
}

.advocacy-progress-milestone span {
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.advocacy-progress-milestone-left {
    transform: translateX(0);
}

.advocacy-progress-milestone-right {
    transform: translateX(-100%);
}

.advocacy-progress-milestone.is-reached i {
    background: var(--accent);
}

.advocacy-progress-milestone.is-reached span {
    color: var(--text-main);
}

.advocacy-progress-strip-actions {
    display: flex;
    justify-content: flex-end;
}

.advocacy-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.advocacy-section-head h2 {
    margin: 0;
    font-size: 1.2rem;
}

.advocacy-section-head span {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.advocacy-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.advocacy-faq-item {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.advocacy-faq-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    text-align: left;
    cursor: pointer;
}

.advocacy-faq-toggle span {
    font-weight: 600;
    line-height: 1.5;
}

.advocacy-faq-toggle strong {
    color: var(--accent);
    font-size: 1.25rem;
    line-height: 1;
}

.advocacy-faq-answer {
    padding: 0 20px 20px;
    color: var(--text-muted);
    line-height: 1.75;
}

.advocacy-signers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.advocacy-signer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.advocacy-signer-row strong {
    font-size: 0.98rem;
    line-height: 1.3;
}

.advocacy-signer-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.advocacy-signer-meta em {
    padding: 4px 8px;
    background: rgba(160, 28, 52, 0.14);
    color: var(--accent);
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.advocacy-signers-actions {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.advocacy-empty-state {
    padding: 28px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-align: center;
}

.advocacy-sidebar {
    position: sticky;
    top: 110px;
}

.advocacy-sidebar-card {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.advocacy-ring-card {
    position: relative;
    display: grid;
    place-items: center;
}

.advocacy-progress-ring {
    width: min(220px, 100%);
    height: auto;
    transform: rotate(-90deg);
}

.advocacy-progress-ring-track,
.advocacy-progress-ring-value {
    fill: none;
    stroke-width: 10;
}

.advocacy-progress-ring-track {
    stroke: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .advocacy-progress-strip-bar {
    background: rgba(5, 5, 5, 0.12);
}

[data-theme="light"] .advocacy-progress-ring-track {
    stroke: rgba(5, 5, 5, 0.12);
}

[data-theme="light"] .advocacy-progress-milestone i {
    background: rgba(5, 5, 5, 0.16);
}

[data-theme="light"] .advocacy-hero-mobile-panel .advocacy-progress-ring-track {
    stroke: rgba(255, 255, 255, 0.08);
}

.advocacy-progress-ring-value {
    stroke: var(--accent);
    stroke-linecap: round;
}

.advocacy-ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.advocacy-ring-center strong {
    font-size: 2rem;
    line-height: 1;
}

.advocacy-ring-center span {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.advocacy-sidebar-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.advocacy-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.advocacy-deadline-block {
    padding-top: 22px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.advocacy-deadline-block span {
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.advocacy-deadline-block strong {
    font-size: 1rem;
}

.advocacy-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.advocacy-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.advocacy-card-count {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 8px 12px;
    background: rgba(8, 8, 10, 0.72);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.petition-modal-dialog,
.petition-share-dialog {
    width: min(720px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    max-height: calc(100svh - 24px);
}

.petition-modal-content,
.petition-share-content {
    gap: 24px;
    justify-content: flex-start;
}

.petition-modal-copy {
    width: 100%;
    margin: -40px -40px 0px;
    padding: 40px 40px 12px;
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(19, 19, 21, 0.96) 84%, rgba(19, 19, 21, 0) 100%);
}

[data-theme="light"] .petition-modal-copy {
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.96) 84%, rgba(255, 255, 255, 0) 100%);
}

.petition-sign-step {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.petition-sign-step[hidden] {
    display: none !important;
}

.petition-sphere-grid,
.petition-method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.petition-sphere-btn,
.petition-method-btn {
    min-height: 60px;
}

.petition-method-btn-google {
    grid-column: 1 / -1;
}

.petition-method-btn[data-disabled="true"] {
    opacity: 0.55;
}

.petition-name-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.petition-name-field {
    margin-bottom: 0;
}

.petition-sign-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.petition-sign-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.petition-workplace-wrap {
    grid-column: 1 / -1;
}

.petition-sign-grid>*,
.petition-inline-row>*,
.petition-share-link-row>* {
    min-width: 0;
}

.petition-form-hint {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.45;
}

.petition-inline-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.petition-form-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.petition-email-locked {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: not-allowed;
}

[data-theme="light"] .petition-email-locked {
    background: rgba(5, 5, 5, 0.04);
}

.petition-share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.petition-share-btn {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    min-height: 56px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.petition-share-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(160, 28, 52, 0.14);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.petition-share-btn:hover,
.petition-share-btn:focus-visible {
    border-color: rgba(160, 28, 52, 0.24);
    background: rgba(160, 28, 52, 0.08);
    transform: translateY(-1px);
    outline: none;
}

.petition-share-link-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

@media (max-width: 862px) {
    .hero.hero-lg.advocacy-hero {
        min-height: 100svh;
        min-height: max(760px, 100svh);
        height: auto;
        align-items: stretch;
    }

    .advocacy-hero::after {
        background: linear-gradient(180deg, rgba(8, 8, 10, 0.14) 0%, rgba(8, 8, 10, 0.64) 38%, rgba(8, 8, 10, 0.92) 100%);
    }

    .advocacy-hero .hero-bg img {
        height: 100%;
        top: 0;
        object-position: center top;
        filter: grayscale(100%) contrast(1.04);
    }

    .advocacy-hero-content {
        min-height: 100svh;
        justify-content: flex-end;
        padding-top: calc(var(--header-height) + 68px) !important;
        padding-bottom: calc(18px + env(safe-area-inset-bottom)) !important;
    }

    .advocacy-breadcrumb {
        margin-bottom: 12px;
        font-size: 0.68rem;
        letter-spacing: 0.14em;
    }

    .advocacy-hero h1 {
        max-width: 100%;
        font-size: clamp(2rem, 9vw, 3rem);
        letter-spacing: -0.04em;
        line-height: 0.98;
        margin-bottom: 14px;
        text-wrap: balance;
    }

    .advocacy-page-shell {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .advocacy-hero-intro {
        max-width: 100%;
        font-size: 0.98rem;
        line-height: 1.65;
        margin-bottom: 0;
    }

    .advocacy-hero-meta {
        gap: 8px;
        margin-top: 18px;
    }

    .advocacy-hero-meta span {
        padding: 8px 10px;
        font-size: 0.68rem;
        line-height: 1.35;
    }

    .advocacy-hero-mobile-panel {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "ring copy actions";
        align-items: center;
        gap: 16px;
        margin-top: 18px;
        padding: 18px 16px;
        width: 100%;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: linear-gradient(180deg, rgba(12, 12, 14, 0.46) 0%, rgba(12, 12, 14, 0.82) 100%);
        backdrop-filter: blur(16px);
    }

    .advocacy-ring-card {
        display: none;
    }

    .advocacy-ring-card-mobile {
        display: grid !important;
        grid-area: ring;
        width: 92px;
        min-width: 92px;
        justify-items: start;
    }

    .advocacy-progress-ring-mobile {
        width: 92px;
    }

    .advocacy-ring-center-mobile {
        padding: 10px;
    }

    .advocacy-ring-center-mobile span {
        display: none;
    }

    .advocacy-sidebar-card {
        gap: 18px;
    }

    .advocacy-sidebar-copy strong {
        font-size: 1rem;
    }

    .advocacy-body-card,
    .advocacy-progress-strip,
    .advocacy-faq-card,
    .advocacy-signers-card,
    .advocacy-sidebar-card {
        padding: 18px;
    }

    .advocacy-hero-mobile-top {
        display: grid;
        gap: 8px;
        min-width: 0;
    }

    .advocacy-signer-meta {
        justify-content: flex-start;
    }

    .advocacy-progress-strip-actions,
    .advocacy-signers-actions {
        justify-content: stretch;
    }

    .advocacy-hero-mobile-actions {
        grid-area: actions;
        grid-template-columns: 1fr;
        width: min(180px, 100%);
    }

    .advocacy-hero-mobile-copy {
        grid-area: copy;
        min-width: 0;
    }

    .auth-modal-overlay,
    .member-confirm-modal {
        align-items: flex-start;
        overflow-y: auto;
        padding: max(12px, env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom));
    }

    .petition-modal-dialog,
    .petition-share-dialog {
        width: 100%;
        min-width: 0;
        max-height: calc(100svh - 12px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        overflow: hidden;
    }

    .petition-modal-content,
    .petition-share-content {
        min-width: 0;
        max-width: 100%;
        max-height: inherit;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .petition-modal-copy {
        position: sticky;
        top: 0;
        z-index: 1;
        margin: -28px -20px 18px;
        padding: 28px 20px 10px;
    }

    .petition-inline-row,
    .petition-share-link-row {
        grid-template-columns: 1fr;
    }

    .petition-name-grid,
    .petition-sign-grid,
    .petition-sphere-grid,
    .petition-method-grid,
    .petition-share-grid,
    .petition-sign-form,
    .petition-sign-grid,
    .petition-sign-grid>*,
    .petition-inline-row,
    .petition-inline-row>*,
    .petition-share-link-row,
    .petition-share-link-row>*,
    .petition-modal-copy {
        min-width: 0;
        max-width: 100%;
    }

    .petition-name-grid,
    .petition-sphere-grid,
    .petition-method-grid,
    .petition-share-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .petition-name-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .advocacy-progress-strip-scale {
        padding-bottom: 32px;
    }

    .advocacy-progress-milestone span {
        font-size: 0.62rem;
        letter-spacing: 0.04em;
    }

    .advocacy-progress-strip-milestones .advocacy-progress-milestone:nth-last-child(1) {
        margin-left: -2px;
    }

    .advocacy-progress-strip-milestones .advocacy-progress-milestone:nth-last-child(2) {
        margin-left: -34px;
    }

    .advocacy-progress-strip-milestones .advocacy-progress-milestone:nth-last-child(3) {
        margin-left: -38px;
    }

    .advocacy-progress-strip-milestones .advocacy-progress-milestone:nth-last-child(4) {
        margin-left: -38px;
    }

    .petition-modal-dialog,
    .petition-share-dialog {
        max-width: 100%;
    }

    .petition-sphere-btn,
    .petition-method-btn,
    .petition-inline-row .btn,
    .petition-share-link-row .btn {
        width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .petition-method-btn-google {
        grid-column: auto;
    }
}

@media (max-width: 620px) {
    .advocacy-hero-mobile-panel {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "ring actions"
            "copy copy";
        align-items: start;
    }

    .advocacy-hero-mobile-actions {
        width: 100%;
    }

    .advocacy-hero-mobile-copy {
        min-width: 0;
    }
}