/* ============================================
   ELLA RISES - STYLE SYSTEM
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* CSS Variables for Color Palette */
:root {
    /* Brand Colors from Style Guide */
    --color-dusty-blue: #99B7C6;
    --color-lavender: #97BEC4;
    --color-cream: #F9F5EA;
    --color-blush-light: #FFD8D1;
    --color-blush: #F9AFB1;
    --color-sage: #9AB59D;
    --color-charcoal: #3A3F3B;
    --color-peach: #F4B092;
    --color-rose: #CE325B;
    
    /* Contextual Color Assignments */
    --primary-text: #3A3F3B;
    --background-light: #FFFFFF;
    --background-cream: #F9F5EA;
    --accent-primary: #FFD8D1;
    --accent-secondary: #99B7C6;
    --accent-tertiary: #9AB59D;
    --button-primary: #CE325B;
    --button-secondary: #99B7C6;
    
    /* Typography */
    --font-heading: 'DM Serif Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-accent: 'Brush Script MT', cursive;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--primary-text);
    background-color: var(--background-light);
}

.hero-banner {
    min-height: 100vh;
    padding-top: 0;
    display: flex;
    align-items: stretch;
    position: relative;
}

.hero-banner-edge {
    padding-top: 0;
}


.hero-overlay {
    width: 100%;
    background: linear-gradient(90deg, rgba(249, 175, 177, 0.9), rgba(153, 183, 198, 0.85));
    position: relative;
    overflow: hidden;
}

.hero-overlay-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.hero-scroll-arrow {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-charcoal);
    opacity: 0.4;
    transition: opacity 0.3s ease;
    z-index: 10;
    animation: bounce 2s infinite;
}

.hero-scroll-arrow:hover {
    opacity: 0.7;
}

.section-scroll-arrow {
    display: inline-block;
    color: var(--color-charcoal);
    opacity: 0.4;
    transition: opacity 0.3s ease;
    margin: 1rem 0;
    animation: bounce-inline 2s infinite;
}

.section-scroll-arrow:hover {
    opacity: 0.7;
}

@keyframes bounce-inline {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-6px);
    }
    60% {
        transform: translateY(-3px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-8px);
    }
    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}

.hero-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
    min-height: calc(100vh - 8rem);
    padding: 4rem 0;
    position: relative;
    z-index: 2;
}

.hero-plasma {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    filter: blur(111px);
    pointer-events: none;
    z-index: 0;
}

.plasma-gradient {
    position: absolute;
    border-radius: 100%;
    mix-blend-mode: screen;
    animation-iteration-count: infinite;
    animation-timing-function: cubic-bezier(0.1, 0, 0.9, 1);
}

.plasma-gradient-one {
    background: rgb(152, 142, 197);
    width: 700px;
    height: 700px;
    left: 60%;
    top: 40%;
    z-index: -2;
    animation-duration: 7s;
    animation-name: plasma-gradient-one-motion;
}

.plasma-gradient-two {
    background: rgb(244, 175, 146);
    width: 600px;
    height: 600px;
    left: 40%;
    top: 60%;
    z-index: -1;
    animation-duration: 7s;
    animation-name: plasma-gradient-two-motion;
}

.plasma-gradient-three {
    background: rgb(205, 51, 92);
    width: 500px;
    height: 500px;
    left: 50%;
    top: 50%;
    z-index: -3;
    animation-duration: 7s;
    animation-name: plasma-gradient-three-motion;
}

.hero-grid-center {
    justify-content: center;
}

.hero-text {
    flex: 1 1 360px;
    max-width: 640px;
}

.hero-text-centered {
    text-align: center;
    max-width: 880px;
}

.hero-text-with-butterflies {
    position: relative;
    padding: clamp(2rem, 4vw, 3rem);
}

.hero-text-with-butterflies h1,
.hero-text-with-butterflies .hero-subtitle {
    position: relative;
    z-index: 1;
}

.hero-text-centered h1 {
    font-size: clamp(4rem, 9vw, 7rem);
    line-height: 1.02;
}

.hero-headline-line {
    display: block;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
}

.hero-butterfly {
    position: absolute;
    width: auto;
    height: auto;
    max-width: none;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
    mix-blend-mode: screen;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.25));
}

.hero-butterfly-left {
    top: -2%;
    left: -2%;
    transform: scale(0.5) rotate(-12deg);
}

.hero-butterfly-right {
    bottom: -1%;
    right: -1%;
    transform: scaleX(-1) scale(0.5) rotate(8deg);
}

@keyframes plasma-gradient-one-motion {
    0% {
        transform: translateY(-50%) translateX(-50%) rotate(-20deg) translateX(20%);
    }
    25% {
        transform: translateY(-50%) translateX(-50%) skew(-15deg, -15deg) rotate(80deg) translateX(30%);
    }
    50% {
        transform: translateY(-50%) translateX(-50%) rotate(180deg) translateX(25%);
    }
    75% {
        transform: translateY(-50%) translateX(-50%) skew(15deg, 15deg) rotate(240deg) translateX(15%);
    }
    100% {
        transform: translateY(-50%) translateX(-50%) rotate(340deg) translateX(20%);
    }
}

@keyframes plasma-gradient-two-motion {
    0% {
        transform: translateY(-50%) translateX(-50%) rotate(40deg) translateX(-20%);
    }
    25% {
        transform: translateY(-50%) translateX(-50%) skew(15deg, 15deg) rotate(110deg) translateX(-5%);
    }
    50% {
        transform: translateY(-50%) translateX(-50%) rotate(210deg) translateX(-35%);
    }
    75% {
        transform: translateY(-50%) translateX(-50%) skew(-15deg, -15deg) rotate(300deg) translateX(-10%);
    }
    100% {
        transform: translateY(-50%) translateX(-50%) rotate(400deg) translateX(-20%);
    }
}

@keyframes plasma-gradient-three-motion {
    0% {
        transform: translateY(-50%) translateX(-50%) translateX(-15%) translateY(10%);
    }
    20% {
        transform: translateY(-50%) translateX(-50%) translateX(20%) translateY(-30%);
    }
    40% {
        transform: translateY(-50%) translateX(-50%) translateX(-25%) translateY(-15%);
    }
    60% {
        transform: translateY(-50%) translateX(-50%) translateX(30%) translateY(20%);
    }
    80% {
        transform: translateY(-50%) translateX(-50%) translateX(5%) translateY(35%);
    }
    100% {
        transform: translateY(-50%) translateX(-50%) translateX(-15%) translateY(10%);
    }
}

.hero-body {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cta-link {
    font-weight: 600;
    color: var(--color-charcoal);
    text-decoration: underline;
}

.hero-image {
    flex: 1 1 320px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
}

.hero-image img {
    max-width: 840px;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
}

.hero-image-expanded {
    flex: 1 1 520px;
    min-height: 520px;
}

.hero-image-expanded img {
    max-width: 1680px;
}

.hero-image-expanded .hero-background-shape {
    inset: auto 5% 4% 5%;
}

.hero-background-shape {
    position: absolute;
    inset: auto 10% 8% 10%;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.8), rgba(206, 50, 91, 0.35));
    filter: blur(10px);
    border-radius: 40% 60% 50% 70%;
    z-index: 1;
}

.spotlight-panels {
    margin-top: -6rem;
    padding-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.spotlight-card {
    background-color: var(--background-light);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 60px rgba(58, 63, 59, 0.15);
    border: 1px solid rgba(58, 63, 59, 0.05);
}

.mission-card {
    background: linear-gradient(135deg, rgba(255, 216, 209, 0.9), rgba(249, 245, 234, 0.95));
}

.impact-card {
    background: linear-gradient(135deg, rgba(153, 183, 198, 0.95), rgba(154, 181, 157, 0.95));
    color: var(--background-light);
}

.impact-card h2,
.impact-card p,
.impact-card .impact-metric-label,
.impact-card .impact-metric-value {
    color: var(--background-light);
}

.spotlight-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.impact-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.impact-metrics-grid-wide {
    grid-template-columns: minmax(0, 1fr);
}

.metric-card {
    background: var(--background-light);
    padding: 1.75rem;
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(58, 63, 59, 0.12);
    border: 1px solid rgba(58, 63, 59, 0.08);
}

.metric-label {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    margin-bottom: 0.75rem;
}

.metric-value {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.metric-detail {
    font-size: 0.95rem;
    opacity: 0.7;
}

.metric-category-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.metric-category-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.7;
}

.metric-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 1.25rem;
}

.stats-band {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(249, 245, 234, 0.9));
}

.stats-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stats-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.insight-card {
    padding: 1.5rem;
    border-radius: 1rem;
    background-color: var(--background-light);
    border: 1px solid rgba(58, 63, 59, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.tableau-preview-card {
    padding: 2rem;
    border-radius: 1.5rem;
    background-color: var(--background-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
}

.tableau-preview-copy h3 {
    margin-bottom: 0.75rem;
}

.tableau-frame {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    background-color: var(--background-cream);
    min-height: 240px;
    box-shadow: inset 0 0 0 1px rgba(58, 63, 59, 0.05);
}

.tableau-frame iframe,
.tableau-frame img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    display: block;
}

.tableau-wide-frame {
    width: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    background-color: var(--background-light);
    min-height: 520px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.tableau-wide-frame iframe {
    width: 100%;
    height: 600px;
    border: none;
}

.tableau-placeholder {
    padding: 3rem;
    text-align: center;
}

.impact-metric-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.impact-metric-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

.impact-context-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0 3rem;
}

.impact-context-card {
    background-color: var(--background-light);
    border: 1px solid #ebe6df;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.testimonial-card {
    background-color: var(--background-light);
    border: 1px solid #ebe6df;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.testimonial-quote {
    font-size: 1.05rem;
    margin: 0.5rem 0;
}

.testimonial-meta {
    font-weight: 700;
    color: var(--color-charcoal);
}

.testimonial-detail {
    margin-top: 0.35rem;
    opacity: 0.8;
    font-style: italic;
}

.why-sponsors .testimonial-grid {
    margin-top: 3.5rem;
}

.audience-section {
    background-color: var(--color-charcoal);
    padding: 4rem 0;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.audience-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-radius: 1rem;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--background-light);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.audience-card:hover {
    transform: translateY(-6px);
    background-color: rgba(255, 255, 255, 0.18);
}

.audience-label {
    font-size: 1.1rem;
    font-weight: 600;
}

.audience-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-blush);
}

.site-footer {
    background-color: var(--color-charcoal);
    color: var(--background-light);
    padding: 1.5rem 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.footer-brand .brand-name {
    font-weight: 600;
}

.footer-brand .brand-divider {
    opacity: 0.5;
}

.footer-brand .brand-tagline {
    opacity: 0.8;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: var(--background-light);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-nav a:hover {
    opacity: 1;
}

.footer-note {
    font-size: 0.85rem;
    opacity: 0.6;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-text);
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

p {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: var(--primary-text);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* Accent Text Style */
.text-accent {
    font-family: var(--font-accent);
    font-style: italic;
}

/* ============================================
   LAYOUT & CONTAINERS
   ============================================ */

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 0;
}

.section-large {
    padding: 6rem 0;
}

.compact-top {
    padding-top: 3rem;
}

.section-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-charcoal);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2.5rem;
}

.section-heading h2 {
    margin-bottom: 1rem;
}

.section-spacious {
    padding: 3rem 0;
}

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

.page-home section {
    position: relative;
}

.page-home section p {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-muted {
    background-color: #f7f5ef;
}

.lede {
    font-size: 1.1rem;
    line-height: 1.8;
}

.supporting-source {
    margin-top: 1rem;
    color: rgba(58, 63, 59, 0.85);
    max-width: 760px;
}

.supporting-source a {
    color: var(--color-charcoal);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.page-shell {
    padding-top: 7rem;
    padding-right: 0;
    padding-left: 0;
    padding-bottom: 0;
    background-color: var(--background-light);
}

.page-shell.page-home {
    padding-top: 0;
}

.page-shell.page-sponsors {
    padding-top: 0;
}

.page-shell.auth-page {
    padding-bottom: 0;
    background-color: transparent;
}

/* Remove bottom padding on dashboard pages so footer can sit at viewport bottom
   while preserving the top spacing across the site. */
.page-shell.page-dashboard {
    padding-bottom: 0;
}

.page-messages {
    margin: 0 auto;
}

.page-shell.page-dashboard .page-messages {
    margin-top: 2rem;
}

.problem-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.5fr);
    gap: 3rem;
    align-items: center;
    justify-content: start;
    max-width: 1200px;
    margin-left: 0;
    margin-right: auto;
    padding-left: 4rem;
}

.problem-hero-copy {
    max-width: 680px;
    margin-right: auto;
    margin-left: 0;
    text-align: left;
}

.problem-hero-image {
    display: flex;
    justify-content: flex-end;
}

.problem-hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 1.5rem;
    object-fit: cover;
}

.problem-hero {
    background-image: url('/images/ella-build.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.problem-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(247, 245, 239, 0.85);
    z-index: 0;
}

.problem-hero > * {
    position: relative;
    z-index: 1;
}

.problem-hero .container-narrow {
    margin-top: 3rem;
}

.how-we-help-section {
    background-color: rgba(255, 240, 245, 0.9);
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.how-we-help-section .solution-copy {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.solution-section {
    background-color: var(--background-light);
}

.solution-section-image-only {
    padding: 0;
}

.solution-section-background {
    position: relative;
    padding-bottom: 4rem;
    padding-top: 2rem;
    overflow: hidden;
}

.solution-section-background-empty {
    min-height: 500px;
    padding: 0;
}

.solution-section-background::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-image: url('/images/people/people-kidsPlayingMusicCultural-2.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: blur(10px);
    z-index: 0;
}

.solution-section-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.80);
    z-index: 1;
}

.solution-section-background-empty::before {
    filter: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.solution-section-background-empty::after {
    background-color: rgba(255, 255, 255, 0.5);
}

.solution-section-background > * {
    position: relative;
    z-index: 2;
}

.impact-section,
.why-sponsors,
.get-involved,
.sources-section {
    background-color: var(--background-light);
}

.impact-section {
    padding-top: 1rem;
}

.why-sponsors {
    background-color: var(--background-light);
    position: relative;
    overflow: hidden;
}

.why-sponsors::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('/images/people/people-KidsWorkingAtTableArt.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(5px);
    z-index: 0;
    pointer-events: none;
}

.why-sponsors > * {
    position: relative;
    z-index: 1;
}

.why-sponsors h1 {
    white-space: nowrap;
}

.problem-detail {
    background-color: var(--background-light);
    border-top: 1px solid #ebe6df;
    border-bottom: 1px solid #ebe6df;
}

.solution-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 3rem;
}

.solution-visual {
    display: flex;
    justify-content: center;
}

.solution-visual img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.solution-copy {
    max-width: 560px;
    background: rgba(255, 240, 245, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.solution-copy-with-image {
    max-width: 800px;
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

.solution-copy-image {
    max-width: 360px;
    height: auto;
    flex-shrink: 0;
}

.solution-copy-text {
    flex: 1;
}

.solution-intro-grid:has(.solution-copy-with-image) {
    display: flex;
    justify-content: center;
}

.stat-highlight-carousel {
    margin-top: 2rem;
    padding: 0 clamp(0.5rem, 5vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 1.5vw, 0.9rem);
}

.stat-highlight-grid,
.pillar-highlight-grid {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    justify-content: center;
    align-items: stretch;
}

.stat-highlight,
.pillar-highlight-card {
    background-color: var(--background-light);
    border: 1px solid #ebe6df;
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
    display: none;
    flex-direction: column;
    gap: 1rem;
    flex: 1 1 clamp(260px, 28vw, 340px);
    min-width: clamp(230px, 26vw, 320px);
    max-width: 340px;
    order: var(--carousel-position, 0);
    opacity: 0;
    transform: translateX(0) scale(0.92);
    transition:
        transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 0.35s ease,
        box-shadow 0.35s ease;
}
.stat-highlight.is-visible,
.pillar-highlight-card.is-visible {
    display: flex;
    opacity: 1;
    transform: translateX(calc((var(--carousel-position, 1) - 1) * 1rem)) scale(1);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.stat-highlight.is-visible.is-faded,
.pillar-highlight-card.is-visible.is-faded {
    opacity: 0.6;
    transform: translateX(calc((var(--carousel-position, 1) - 1) * 1rem)) scale(0.9);
}

.stat-carousel-arrow {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: none;
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--color-charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0.55;
    flex: 0 0 auto;
    align-self: center;
    cursor: pointer;
    transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.stat-carousel-arrow-left {
    /* reserved for future per-side tweaks */
}

.stat-carousel-arrow-right {
    /* reserved for future per-side tweaks */
}

.stat-carousel-arrow:hover {
    opacity: 0.9;
    background-color: rgba(0, 0, 0, 0.08);
    transform: scale(1.03);
}

.stat-carousel-arrow:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.barrier-block {
    margin-top: 3rem;
}

.barrier-block h3 {
    margin-bottom: 1rem;
}

.barrier-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem 1.5rem;
    padding-left: 1rem;
}

.barrier-list li {
    list-style: disc;
    line-height: 1.6;
}

.pillar-highlight-grid {
    margin-top: 2.5rem;
}

.pillar-highlight-carousel .pillar-highlight-grid {
    flex-wrap: nowrap;
}

.pillar-highlight-number {
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-charcoal);
    opacity: 0.65;
    margin-bottom: 0.25rem;
}

.pillar-highlight-list {
    padding-left: 1.1rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pillar-highlight-list li {
    line-height: 1.55;
}

.page-hero {
    background: linear-gradient(135deg, rgba(255, 216, 209, 0.3), rgba(153, 183, 198, 0.25));
}

.page-hero-video {
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.page-hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.page-hero-video::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 216, 209, 0.7), rgba(153, 183, 198, 0.65));
    z-index: 1;
}

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

.page-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    align-items: center;
}

.impact-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.definitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

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

.tableau-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.tableau-tile {
    padding: 1.5rem;
    border-radius: 1rem;
    background-color: var(--background-light);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sponsor-offerings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.sponsor-offerings ul {
    padding-left: 1.25rem;
}

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

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.page-header-actions {
    display: flex;
    gap: 0.75rem;
}

/* Full-width section backgrounds */
.section-accent-blue {
    background-color: var(--color-dusty-blue);
    width: 100%;
}

.section-accent-pink {
    background-color: var(--color-blush-light);
    width: 100%;
}

.section-accent-blush {
    background-color: var(--color-blush);
    width: 100%;
}

.section-accent-sage {
    background-color: var(--color-sage);
    width: 100%;
}

.section-accent-lavender {
    background-color: var(--color-lavender);
    width: 100%;
}

.section-light {
    background-color: var(--background-light);
}

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

.section-charcoal {
    background-color: var(--color-charcoal);
    color: var(--background-light);
}

.section-charcoal h1,
.section-charcoal h2,
.section-charcoal h3,
.section-charcoal h4,
.section-charcoal h5,
.section-charcoal h6,
.section-charcoal p {
    color: var(--background-light);
}

.section-dark {
    background: linear-gradient(135deg, #1f1f2b, #3b2146);
    color: var(--background-light);
}

.section-dark h2,
.section-dark p,
.section-dark .section-label {
    color: var(--background-light);
}

.impact-teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
}

.impact-teaser .tableau-frame {
    background-color: rgba(255, 255, 255, 0.1);
}

.cta-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

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

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.sponsor-uses {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.sponsor-uses li {
    margin-bottom: 0.35rem;
}

.sponsor-timeline ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sponsor-timeline li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(58, 63, 59, 0.1);
    font-weight: 600;
}

.sponsor-highlight {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.callout-band {
    background: linear-gradient(120deg, rgba(206, 50, 91, 0.1), rgba(153, 183, 198, 0.2));
}

.callout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    align-items: center;
}

.impact-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.impact-list ul {
    padding-left: 1.25rem;
    margin: 0;
}

.impact-list li {
    margin-bottom: 0.5rem;
}

.callout-card {
    background-color: var(--background-cream);
    border: 1px solid #ebe6df;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.sponsors-partners {
    background-image: linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)), url('/images/people/people-largeWallPainting.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sponsors-partners .sponsor-list-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.sponsors-partners .section-heading {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.sponsor-list-card {
    background-color: var(--background-light);
    border: 1px solid #ebe6df;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.sponsor-list-card ul {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sponsor-list-card li {
    line-height: 1.5;
}

.sponsor-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    align-items: center;
}

.sponsor-group-label {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 600;
    color: var(--color-charcoal);
    text-align: center;
}

.sponsor-logo-card {
    background-color: var(--background-light);
    border: 1px solid #ebe6df;
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    width: min(100%, max-content);
    max-width: 820px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    align-self: center;
}

.sponsor-logo-card:has(.sponsor-logo-grid > .sponsor-logo-figure:only-child) {
    width: fit-content;
    max-width: 100%;
    padding: 0.75rem;
}

.sponsor-logo-card:has(.sponsor-logo-grid > .sponsor-logo-figure:only-child) .sponsor-logo-grid {
    max-width: 175px;
    grid-template-columns: 1fr;
}

.sponsor-logo-grid {
    display: grid;
    width: 100%;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    align-content: center;
    justify-items: center;
    justify-content: center;
    max-width: 760px;
}

.sponsor-logo-figure {
    width: 100%;
    max-width: 175px;
    border-radius: 0.85rem;
    border: 1px solid #e5dfd6;
    padding: 0.5rem 0.75rem;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    height: auto;
    text-align: center;
}

@media (max-width: 640px) {
    .sponsor-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.sponsor-logo-figure img {
    max-width: 100%;
    max-height: 70px;
    height: auto;
    object-fit: contain;
}

.sponsor-logo-caption {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    color: var(--color-charcoal);
}

.involved-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
}

.sources-list {
    display: grid;
    gap: 0.75rem;
    padding-left: 1.25rem;
}

.auth-hero-section {
    min-height: 100vh;
    padding: 0;
}

.auth-hero-shell {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 6rem 1.5rem 4rem;
    position: relative;
    z-index: 1;
}

/* ─────────────────────────────────────────────────────────────
   Donation Calculator Section
   ───────────────────────────────────────────────────────────── */

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

.calculator-header {
    max-width: 700px;
    margin: 0 auto 2rem;
}

.calculator-header h2 {
    margin-bottom: 0.5rem;
}

.calculator-header p {
    color: var(--color-charcoal);
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.calculator-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-height: 300px;
}

.calculator-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.calculator-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calculator-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-charcoal);
}

.calculator-input {
    width: 240px;
    font-size: 1.25rem;
    text-align: center;
}

.calculator-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.calculator-result .metric-value {
    font-size: 3rem;
    color: var(--color-rose);
    display: inline-block;
    min-width: 6ch;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.calculator-result-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-charcoal);
}

.calculator-cta {
    margin-top: 0.5rem;
}

.calculator-chart-container {
    width: 100%;
    height: 300px;
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (min-width: 640px) {
    .calculator-body {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
}

@media (min-width: 900px) {
    .calculator-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .calculator-controls {
        min-height: 350px;
    }
    
    .calculator-chart-container {
        height: 350px;
    }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 1rem 1rem;
    pointer-events: none;
    z-index: 50;
    transform: translateY(0);
    will-change: transform;
}

.nav-shell {
    max-width: 900px;
    margin: 1.25rem auto 0;
    background-color: #fffdf5;
    border-radius: 9999px;
    padding: 0.2rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: 0 25px 60px rgba(58, 63, 59, 0.12);
    border: 1px solid rgba(58, 63, 59, 0.08);
    pointer-events: auto;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    color: inherit;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-logo img {
    width: 170%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 45%;
}

.brand-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: 0.75rem;
    margin: 0;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin: 0;
}

.nav-link {
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    color: var(--color-charcoal);
    opacity: 0.9;
    transition: background-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.nav-link:hover {
    background-color: rgba(58, 63, 59, 0.08);
    color: var(--color-charcoal);
    opacity: 1;
}

.nav-link-pill {
    background-color: var(--color-charcoal);
    color: var(--background-light);
    padding: 0.65rem 1.25rem;
    box-shadow: 0 12px 30px rgba(58, 63, 59, 0.2);
}

.nav-link-pill:hover {
    background-color: var(--color-rose);
    color: var(--background-light);
}

.user-menu {
    position: relative;
}

.user-menu-trigger {
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background-color: var(--color-blush);
    box-shadow: 0 4px 12px rgba(58, 63, 59, 0.25);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.user-menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.75rem);
    background-color: var(--background-light);
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    min-width: 180px;
    padding: 0.75rem;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 1;
}

.user-menu.is-open .user-menu-dropdown {
    display: flex;
}

.user-menu-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: var(--primary-text);
    font-weight: 500;
}

.user-menu-link:hover {
    background-color: var(--color-blush-light);
}

.user-menu-button {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
}

.nav-admin-links {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(58, 63, 59, 0.08);
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-admin-label {
    font-size: 0.75rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 0.25rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--button-primary);
    color: var(--background-light);
}

.btn-primary:hover {
    background-color: var(--color-peach);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(206, 50, 91, 0.3);
}

.btn-secondary {
    background-color: var(--button-secondary);
    color: var(--background-light);
}

.btn-secondary:hover {
    background-color: var(--color-dusty-blue);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(154, 181, 157, 0.3);
}

.btn-light {
    background-color: var(--background-light);
    color: var(--primary-text);
    border: 2px solid var(--color-blush);
}

.btn-light:hover {
    background-color: var(--color-blush-light);
    opacity: 1;
}

.btn-danger {
    background-color: var(--color-rose);
    color: var(--background-light);
    border: 2px solid var(--color-rose);
}

.btn-danger:hover {
    background-color: #a11644;
    border-color: #a11644;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(161, 22, 68, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-text);
    border: 2px solid var(--primary-text);
}

.btn-outline:hover {
    background-color: var(--primary-text);
    color: var(--background-light);
    opacity: 1;
}

/* ============================================
   CARDS & CONTENT BLOCKS
   ============================================ */

.card {
    background-color: var(--background-light);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(58, 63, 59, 0.1);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(58, 63, 59, 0.15);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card-content {
    font-family: var(--font-body);
    color: var(--primary-text);
}

.card-accent-blush {
    background-color: var(--color-blush-light);
}

.card-accent-sage {
    background-color: var(--color-sage);
    color: var(--background-light);
}

.card-accent-sage .card-title,
.card-accent-sage .card-content {
    color: var(--background-light);
}

.content-section {
    background-color: var(--background-light);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.no-data {
    padding: 2rem;
    border: 2px dashed var(--color-blush-light);
    border-radius: 1rem;
    text-align: center;
    background-color: var(--background-cream);
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    background-color: #fff8e6;
    border: 1px solid #ffe7b3;
    margin-bottom: 1.5rem;
}

.stats {
    margin-top: 1rem;
    font-weight: 600;
}

.flash-message {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.flash-success {
    background-color: #ecfdf3;
    color: #065f46;
    margin-top: 2rem;
}

.flash-error {
    background-color: #fef2f2;
    color: #991b1b;
}

/* ============================================
   FORMS & INPUTS
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-text);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--primary-text);
    background-color: var(--background-light);
    border: 2px solid var(--color-blush-light);
    border-radius: 0.75rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-blush);
    box-shadow: 0 0 0 3px rgba(255, 216, 209, 0.3);
}

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

.form-helper {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: rgba(58, 63, 59, 0.7);
}

.form-errors {
    background-color: #fff1f1;
    border: 1px solid #f8b4b4;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.form-errors ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #a61b29;
}

.form-errors li {
    margin-bottom: 0.25rem;
}

/* ============================================
   TABLES
   ============================================ */

/* Base table styles - applies to both raw tables and .table class */
table,
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--background-light);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(58, 63, 59, 0.1);
    margin-bottom: 1.5rem;
}

table thead,
.table thead {
    background-color: var(--color-charcoal);
    color: var(--background-light);
}

table th,
.table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

table td,
.table td {
    padding: 1rem 1.5rem;
    font-family: var(--font-body);
    border-bottom: 1px solid var(--color-blush-light);
    vertical-align: middle;
}

table tbody tr:hover,
.table tbody tr:hover {
    background-color: var(--background-cream);
}

table tbody tr:last-child td,
.table tbody tr:last-child td {
    border-bottom: none;
}

/* Striped rows for better readability */
table tbody tr:nth-child(even),
.table tbody tr:nth-child(even) {
    background-color: rgba(255, 216, 209, 0.15);
}

table tbody tr:nth-child(even):hover,
.table tbody tr:nth-child(even):hover {
    background-color: var(--background-cream);
}

/* Table container for horizontal scroll on mobile */
.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(58, 63, 59, 0.1);
}

.table-scroll {
    max-height: 600px; /* Approximately 20 rows */
    overflow-y: auto;
    border-radius: 1rem;
}

.table-scroll table {
    border-collapse: separate;
    border-spacing: 0;
}

.table-scroll thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.table-scroll thead th {
    background-color: var(--color-charcoal);
}

.auth-shell {
    display: flex;
    justify-content: center;
}

.auth-container {
    max-width: 640px;
    width: 100%;
}

.auth-card {
    background-color: var(--background-light);
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 20px 45px rgba(58, 63, 59, 0.12);
}

.auth-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.account-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.account-details div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background-color: var(--background-cream);
}

.account-label {
    font-weight: 600;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background-color: var(--color-blush-light);
    font-size: 0.875rem;
    text-transform: capitalize;
}

/* ============================================
   TABLE ACTION BUTTONS (Edit/Delete)
   ============================================ */

/* Inline forms in table cells */
td form {
    display: inline-block;
    margin: 0;
    padding: 0;
}

/* Fixed width for action columns */
td:has(form) {
    width: 100px;
    text-align: center;
    white-space: nowrap;
}

/* Base styling for table action inputs */
td input[type="submit"] {
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.25px;
}

/* Edit button - secondary style (dusty blue) */
td input[type="submit"][value="Edit"],
td input[type="submit"][name="Edit"] {
    background-color: var(--color-dusty-blue);
    color: var(--background-light);
}

td input[type="submit"][value="Edit"]:hover,
td input[type="submit"][name="Edit"]:hover {
    background-color: var(--color-lavender);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(153, 183, 198, 0.4);
}

/* Delete button - danger style (rose) */
td input[type="submit"][value="Delete"],
td input[type="submit"][name="Delete"] {
    background-color: var(--color-rose);
    color: var(--background-light);
}

td input[type="submit"][value="Delete"]:hover,
td input[type="submit"][name="Delete"]:hover {
    background-color: #b02a4d;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(206, 50, 91, 0.4);
}

/* Add Milestone button - neutral/outline style */
td input[type="submit"][value="Add Milestone"],
td input[type="submit"].btn-milestone {
    background-color: var(--background-light);
    color: var(--primary-text);
    border: 2px solid var(--primary-text);
}

td input[type="submit"][value="Add Milestone"]:hover,
td input[type="submit"].btn-milestone:hover {
    background-color: var(--primary-text);
    color: var(--background-light);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(58, 63, 59, 0.3);
}

.table-actions {
    width: auto;
    text-align: left;
    white-space: normal;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}

.table-action-form {
    display: inline-flex;
    margin: 0;
}

.table-action-form .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-width: 82px;
}

/* ============================================
   CONTENT SECTIONS & ALERTS
   ============================================ */

.content-section {
    padding: 2rem 0;
}

.event-structure-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.event-structure-intro {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}

.event-structure-title-block {
    flex: 1 1 240px;
}

.event-structure-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    line-height: 1.2;
}

.event-structure-description {
    flex: 1 1 320px;
    max-width: 720px;
    line-height: 1.65;
}

.event-structure-search {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
}

.event-structure-search .form-input {
    margin-top: 0.35rem;
}

/* Alert/Error messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    background-color: rgba(206, 50, 91, 0.1);
    border: 1px solid var(--color-rose);
    color: var(--color-rose);
}

.alert-success {
    background-color: rgba(154, 181, 157, 0.15);
    border-color: var(--color-sage);
    color: var(--color-charcoal);
}

.alert-warning {
    background-color: rgba(244, 176, 146, 0.2);
    border-color: var(--color-peach);
    color: var(--color-charcoal);
}

/* Empty state / No data message */
.no-data {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--background-cream);
    border-radius: 1rem;
    color: var(--primary-text);
}

.no-data p {
    font-size: 1.125rem;
    margin-bottom: 0;
    opacity: 0.8;
}

/* Stats/Summary footer */
.stats {
    padding: 1rem 1.5rem;
    background-color: var(--color-blush-light);
    border-radius: 0.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary-text);
    display: inline-block;
}
.program-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.program-card {
    display: flex;
    flex-direction: column;
    border-radius: 1.5rem;
    overflow: hidden;
    background-color: var(--background-light);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.program-card.compact {
    padding: 2rem;
    gap: 1.5rem;
}

.program-preview {
    margin-top: 4rem;
}



.program-card-minimal {
    box-shadow: none;
    padding: 0.85rem;
    border-radius: 1rem;
    padding: 1.75rem;
    gap: 1rem;
}

.program-card-minimal h3 {
    margin: 0.5rem 0 1rem;
}

.program-media {
    object-fit: contain;
    border-radius: 1rem;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    background: var(--background-cream);
}

@media (min-width: 768px) {
    .program-media {
        max-width: 420px;
        padding: 1.25rem;
    }
}

.program-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.program-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.program-label {
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.program-body ul,
.program-detail-body ul {
    padding-left: 1.25rem;
    margin: 0;
}

.program-body li,
.program-detail-body li {
    margin-bottom: 0.35rem;
}

.program-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 1rem 0;
}

.program-stats .stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-primary, #e91e63);
}

.program-stats .stat-caption {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

@media (min-width: 768px) {
    .program-stats {
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .program-stats .stat-number {
        font-size: 2.5rem;
    }

    .program-stats .stat-caption {
        font-size: 0.875rem;
        letter-spacing: 0.15rem;
        margin-top: 0.5rem;
    }
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-caption {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15rem;
    opacity: 0.7;
}

.program-outcome {
    font-weight: 600;
    margin-top: 0.5rem;
}

.program-cta {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.program-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.program-detail-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
    border-radius: 1.5rem;
    overflow: hidden;
    background-color: var(--background-cream);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .program-detail-card {
        grid-template-columns: 1fr 1fr;
    }
}

.program-card-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    min-width: 0;
}

@media (min-width: 768px) {
    .program-card-visual {
        padding: 1.5rem;
    }
}

.program-detail-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

@media (min-width: 768px) {
    .program-detail-body {
        padding: 1.75rem;
        gap: 0.75rem;
    }
}

.program-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background-color: white;
    border: 1px solid grey;
    font-size: 0.8rem;
    width: 100%;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    .program-highlights {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
        gap: 0.35rem;
    }
}

.program-highlights-label {
    font-size: 0.75rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-rose);
}

.program-highlights-list {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0;
}

.program-highlights-list li {
    margin: 0.25rem 0;
}

.program-activity-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(249, 245, 234, 0.9));
    padding-bottom: 2rem;
}

.program-activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.program-activity-card {
    background-color: var(--background-light);
    border-radius: 1.5rem;
    padding: 1.75rem;
    align-items: stretch;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.program-activity-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.program-activity-card-header h3 {
    margin: 0.25rem 0 0;
    font-size: 1.25rem;
}

.program-activity-card-body {
    flex: 1;
}

.program-activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.program-activity-list-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(58, 63, 59, 0.08);
}

.program-activity-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.activity-date {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-rose);
    margin-bottom: 0.25rem;
}

.activity-location,
.activity-description {
    font-size: 0.9rem;
    opacity: 0.75;
    margin-bottom: 0.2rem;
}

.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: rgba(58, 63, 59, 0.8);
}

.activity-meta span {
    background-color: rgba(206, 50, 91, 0.08);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
}

.program-activity-empty {
    font-size: 0.95rem;
    opacity: 0.75;
    padding: 1rem 0;
}
/* Color Utilities */
.text-charcoal { color: var(--color-charcoal); }
.text-blush { color: var(--color-blush); }
.text-sage { color: var(--color-sage); }
.text-rose { color: var(--color-rose); }
.text-light { color: var(--background-light); }

.background-cream { background-color: var(--background-cream); }
.background-blush-light { background-color: var(--color-blush-light); }
.background-sage { background-color: var(--color-sage); }
.background-charcoal { background-color: var(--color-charcoal); }

/* Spacing */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Display */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Rounded Corners */
.rounded { border-radius: 0.5rem; }
.rounded-lg { border-radius: 0.75rem; }
.rounded-xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.w-full { width: 100%; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Shadows */
.shadow-sm { box-shadow: 0 1px 2px rgba(58, 63, 59, 0.05); }
.shadow { box-shadow: 0 1px 3px rgba(58, 63, 59, 0.1); }
.shadow-md { box-shadow: 0 4px 6px rgba(58, 63, 59, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px rgba(58, 63, 59, 0.1); }

/* Max Width */
.max-w-sm { max-width: 640px; }
.max-w-md { max-width: 768px; }
.max-w-lg { max-width: 1024px; }
.max-w-xl { max-width: 1280px; }

/* ============================================
   CONFIRMATION MODAL
   ============================================ */

body.modal-open {
    overflow: hidden;
}

.confirm-modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 24, 31, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.confirm-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.confirm-modal__card {
    background: var(--background-light);
    border-radius: 1.25rem;
    box-shadow: 0 30px 60px rgba(20, 24, 31, 0.35);
    padding: 2rem;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.confirm-modal__header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.confirm-modal__title {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--primary-text);
}

.confirm-modal__subtitle {
    font-size: 1rem;
    color: rgba(58, 63, 59, 0.8);
}

.confirm-modal__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.confirm-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.confirm-modal__placeholder,
.confirm-modal__error {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    background-color: var(--background-cream);
    border: 1px dashed rgba(58, 63, 59, 0.25);
    font-weight: 600;
}

.confirm-modal__error {
    background-color: #fff1f1;
    border-color: #f8b4b4;
    color: #a61b29;
}

.dependency-section {
    border: 1px solid rgba(58, 63, 59, 0.12);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    background-color: rgba(248, 248, 248, 0.8);
}

.dependency-section__title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    color: rgba(58, 63, 59, 0.8);
}

.dependency-section__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dependency-section__item {
    padding: 0.35rem 0;
    border-bottom: 1px dashed rgba(58, 63, 59, 0.2);
    font-size: 0.95rem;
}

.dependency-section__item:last-child {
    border-bottom: none;
}

.dependency-section__empty {
    margin: 0;
    font-style: italic;
    color: rgba(58, 63, 59, 0.8);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-large {
        padding: 4rem 0;
    }

    .section-spacious {
        padding: 5rem 0;
    }
    
    .hero-grid {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-options {
        grid-template-columns: 1fr;
    }

    .hero-image img {
        max-width: 420px;
    }

    .spotlight-panels {
        margin-top: -3rem;
    }

    .spotlight-card {
        padding: 2rem;
    }

    .impact-metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .problem-hero-grid {
        grid-template-columns: 1fr;
    }

    .problem-hero-image {
        justify-content: center;
        margin-top: 2rem;
    }

    .solution-intro-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .solution-copy {
        max-width: none;
    }

    .pillar-highlight-grid,
    .impact-context-grid,
    .testimonial-grid,
    .sponsors-partners .sponsor-list-grid,
    .involved-grid {
        grid-template-columns: 1fr;
    }

    .stat-highlight,
    .pillar-highlight-card,
    .impact-context-card,
    .testimonial-card,
    .sponsor-list-card {
        padding: 1.25rem;
    }

    .barrier-list {
        grid-template-columns: 1fr;
    }
    
    .audience-grid {
        grid-template-columns: 1fr;
    }
    
    .site-header {
        padding: 0 1rem 1rem;
    }

    .nav-shell {
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.65rem 0.85rem;
        margin-top: 0.75rem;
    }

    .nav-left {
        flex: 0 0 auto;
        justify-content: center;
    }

    .nav-right {
        flex: 0 0 auto;
        justify-content: center;
        gap: 0.65rem;
        margin-left: 0;
    }

    .nav-center {
        flex: 1 1 100%;
        min-width: 0;
        order: 3;
    }

    .nav-links {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }
    
    table th,
    table td,
    .table th,
    .table td {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    td input[type="submit"] {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .content-section {
        padding: 1.5rem 0;
    }

    .stats-header,
    .tableau-preview-card,
    .impact-teaser-grid,
    .callout-grid,
    .sponsor-grid,
    .program-detail-card {
        grid-template-columns: 1fr;
    }

    .tableau-wide-frame iframe {
        height: 420px;
    }

    .hero-banner {
        min-height: auto;
    }

    .hero-overlay {
        padding: clamp(1.5rem, 3vw, 2.5rem) 0 3rem;
    }

    .hero-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-text {
        width: 100%;
        padding: 0 clamp(1rem, 4vw, 2rem);
        max-width: none;
    }

    .hero-text-centered h1 {
        font-size: clamp(3rem, 8vw, 4.5rem);
    }

    .hero-subtitle {
        letter-spacing: 0.05em;
        font-size: 0.95rem;
    }

    .hero-butterfly {
        display: none;
    }

    .stat-highlight-carousel {
        flex-direction: row;
        align-items: center;
    }

    .stat-highlight-grid {
        flex: 1 1 auto;
    }

    .stat-carousel-arrow {
        width: 2.25rem;
        height: 2.25rem;
    }

    .calculator-chart-container {
        height: 200px;
    }

    .cta-row .btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    .impact-list {
        gap: 1rem;
    }

    .auth-hero-shell {
        padding: 5rem 1rem 3rem;
    }
}

/* Scrollable cell for long text content like comments */
.cell-truncate {
    max-width: 375px;
    overflow-x: auto;
    white-space: nowrap;
}

/* Prevent wrapping in specific cells */
.cell-nowrap {
    white-space: nowrap;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.story-card {
    padding: 2rem;
    border-radius: 1.25rem;
    background-color: var(--background-light);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(58, 63, 59, 0.06);
}

.story-quote {
    font-style: italic;
}

.story-meta {
    font-size: 0.9rem;
    opacity: 0.7;
}

.story-milestone {
    font-weight: 600;
}

.page-dashboard {
    background-color: var(--background-light);
}

.dashboard-hero {
    background: linear-gradient(135deg, rgba(255, 216, 209, 0.35), rgba(153, 183, 198, 0.35));
    padding-top: 4rem;
    padding-bottom: 3rem;
}

.dashboard-hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.25rem);
    margin-bottom: 1rem;
}

.dashboard-hero-lede {
    max-width: 720px;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.dashboard-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: var(--background-light);
    border-radius: 1.5rem;
    border: 1px solid rgba(58, 63, 59, 0.08);
    box-shadow: 0 20px 45px rgba(58, 63, 59, 0.1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.dashboard-card-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.dashboard-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background-color: rgba(206, 50, 91, 0.12);
    color: var(--color-rose);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-frame {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    min-height: 360px;
    border: 1px solid rgba(58, 63, 59, 0.08);
    background: var(--background-cream);
}

.dashboard-frame iframe,
.dashboard-frame img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    display: block;
}

.dashboard-locked-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    gap: 1rem;
    height: 100%;
}

.dashboard-empty {
    grid-column: 1 / -1;
    padding: 2.5rem;
    border-radius: 1.25rem;
    border: 1px dashed rgba(58, 63, 59, 0.25);
    text-align: center;
    background-color: var(--background-cream);
}

@media (max-width: 768px) {
    .dashboard-card {
        padding: 1.5rem;
    }

    .dashboard-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-frame iframe,
    .dashboard-frame img {
        min-height: 320px;
    }
}

/* Utility: remove bottom padding for specific sections while preserving
   `.section-large` defaults elsewhere. Use `section-no-bottom` on the
   section element to apply. Placed at end to ensure it overrides earlier
   definitions. */
.section-large.section-no-bottom {
    padding-bottom: 0;
}
