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

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

:root {
    /* Brand Colors */
    --color-brand-blue: #34B1FF;
    --color-brand-blue-light: #E8F4FF;
    --color-brand-blue-soft: #A3D9FF;
    --color-brand-blue-dark: #1A8FDD;

    /* Keep existing for compatibility, but point to brand blue */
    --color-blue: #34B1FF;
    --color-blue-light: #E8F4FF;
    --color-blue-bright: #34B1FF;
    --color-yellow: #FCD34D;
    --color-yellow-bright: #FBBF24;
    --color-orange: #F97316;
    --color-yellow-light: #FFFBEB;
    --color-bg-white: #FFFFFF;
    --color-navy: #1E3A8A;
    --color-text: #1A1A1A;
    --color-text-secondary: #6B7280;
    --color-border: #E5E7EB;
    --color-bg: #F9FAFB;
    
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    --font: 'Outfit', -apple-system, system-ui, sans-serif;
}

body {
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    padding-top: 0;
    -webkit-font-smoothing: antialiased;
    display: flex;
    min-height: 100vh;
}

/* ============================================
   SIDEBAR
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--color-blue-light) 100%);
    z-index: 1000;
    box-shadow: 2px 0 12px rgba(14, 165, 233, 0.08);
    border-right: 2px solid var(--color-blue-light);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 50% 20%, rgba(14, 165, 233, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(14, 165, 233, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.header__inner {
    padding: 32px 24px 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid var(--color-border);
}

.header__left,
.header__center,
.header__right {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

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

.header__logo-link {
    display: block;
    margin-bottom: 20px;
    transition: opacity 0.2s;
}

.header__logo-link:hover {
    opacity: 0.9;
}

.header__logo {
    height: 110px;
    width: auto;
    display: block;
}

.header__identity {
    width: 100%;
    text-align: center;
    margin-bottom: 24px;
}

.header__school-banner {
    max-width: 180px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 20px auto 12px;
    display: block;
}

.header__school {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: var(--color-text);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

/* Hide text name on desktop when school logo is present */
.header__school.has-logo {
    display: none;
}

.header__subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.header__partners {
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    width: 100%;
    text-align: center;
}

.partners__label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
    margin: 0 0 10px 0;
    opacity: 0.7;
}

.partners__names {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.partners__separator {
    color: var(--color-text-secondary);
    opacity: 0.4;
    font-weight: 400;
}

/* Legacy styles - remove */
.header__playbook {
    display: none;
}

.partners__heading,
.partners__text {
    display: none;
}

/* Sidebar Header & Branding */
.sidebar__logo {
    width: 100%;
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto 1.5rem;
}

.sidebar__playbook {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-border);
}

.playbook__year {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-brand-blue);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.playbook__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar__partners {
    text-align: center;
    margin-bottom: 1.5rem;
}

.partners__label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.partners__names {
    font-size: 0.875rem;
    color: var(--color-text);
    font-weight: 500;
}

.sidebar__footer {
    padding: 20px 24px;
    border-top: 1px solid var(--color-border);
    position: relative;
    z-index: 1;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.footer__logo {
    width: 220px;
    height: auto;
    opacity: 1;
    margin-top: 12px;
    transition: opacity 0.2s;
}

.footer__logo:hover {
    opacity: 0.8;
}

.sidebar__credit {
    font-size: 0.6875rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin: 0;
    opacity: 0.7;
}

.lang-toggle {
    background: white;
    border: 2px solid var(--color-blue);
    color: var(--color-navy);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font);
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.15);
    width: 100%;
    display: block;
    text-align: center;
}

/* Hide mobile-only elements on desktop */
.lang-toggle--mobile {
    display: none;
}

.header__cc-logo-mobile {
    display: none;
}

.lang-toggle:hover {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-bright) 100%);
    color: white;
    border-color: var(--color-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
    flex: 1;
    padding: 0;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.nav__inner {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav__link {
    padding: 4px 24px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
    display: block;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.nav__link:hover {
    color: var(--color-text);
    background: rgba(14, 165, 233, 0.05);
    border-left-color: var(--color-blue-light);
}

.nav__link.is-active {
    color: var(--color-blue);
    border-left-color: var(--color-blue);
    font-weight: 600;
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.08) 0%, transparent 100%);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main {
    flex: 1;
    margin-left: 280px;
    max-width: calc(100% - 280px);
    padding: var(--space-2xl) var(--space-3xl);
}

.main > :not(.doors) {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.main section > h3 {
    margin-top: 2.5rem;
}

.main section > h2 + p {
    margin-bottom: 1.5rem;
}

/* ============================================
   HOMEPAGE
   ============================================ */

.home__intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-3xl) auto;
}

.home__intro h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 var(--space-md) 0;
    letter-spacing: -0.02em;
}

.home__intro p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.6;
}

.home__countdown {
    text-align: center;
    margin: 0 auto var(--space-3xl) auto;
    padding: var(--space-3xl) var(--space-2xl);
    background: var(--color-brand-blue);
    border-radius: 20px;
    position: relative;
    max-width: 800px;
}

.home__countdown::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -8%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.home__countdown::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at bottom right, rgba(255,255,255,0.15) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.home__primer {
    margin: 0 auto var(--space-3xl) auto;
    max-width: 900px;
}

.home__primer h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.primer__section {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.04);
}

.primer__section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-navy);
    margin: 0 0 var(--space-md) 0;
}

.primer__section p {
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

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

.primer__section ul {
    margin: var(--space-md) 0;
    padding-left: var(--space-xl);
}

.primer__section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.doors {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.door {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 32px 28px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    text-align:center;
}

.door:hover {
    border-color: var(--color-blue-light);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.12);
    transform: translateY(-3px);
    background: linear-gradient(135deg, #FFFFFF 0%, var(--color-blue-light) 100%);
}

.door__number {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color-blue-light) 0%, #FFFFFF 100%);
    color: var(--color-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8125rem;
    border: 1.5px solid var(--color-blue-light);
    transition: all 0.25s ease;
}

.door:hover .door__number {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-bright) 100%);
    color: white;
    border-color: var(--color-blue);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.door__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--color-text);
    line-height: 1.3;
    letter-spacing: -0.01em;
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.door__description {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.3;
    margin: 0;
}

.door__emoji {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

/* Mini calendar icon for door cards */
.door__cal {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 72px;
    border-radius: 10px;
    overflow: hidden;
    border: 2.5px solid var(--color-brand-blue);
    font-family: inherit;
    line-height: 1;
}

.door__cal-month {
    display: block;
    width: 100%;
    background: var(--color-brand-blue);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 0;
    text-align: center;
}

.door__cal-day {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text);
    padding: 3px 0 5px;
    text-align: center;
}

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

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 3rem 0 1.25rem 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2:first-child {
    margin-top: 0;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 1rem 0 1rem 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

h3:first-child {
    margin-top: 0;
}

h3.section-divider {
    margin-top: 5rem;
    color: var(--color-navy);
}

h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem 0;
    line-height: 1.4;
}

p {
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
}

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

ul, ol {
    margin: 1rem 0 1.5rem 0;
    padding-left: 1.75rem;
}

li {
    margin-bottom: 0.625rem;
    line-height: 1.7;
}

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

/* ============================================
   PRIORITIES (Action Plan)
   ============================================ */

.priorities {
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0;
    counter-reset: priority;
}

.priority {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.priority:hover {
    border-color: var(--color-blue);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.priority::before {
    counter-increment: priority;
    content: counter(priority);
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-bright) 100%);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}

/* ============================================
   CALLOUT & NOTE BOXES
   ============================================ */

.callout {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--color-blue-light) 100%);
    border: 2px solid var(--color-blue);
    border-radius: 12px;
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
    position: relative;
    box-shadow: 0 2px 12px rgba(14, 165, 233, 0.08);
}

.callout::before {
    content: '✨';
    position: absolute;
    top: -12px;
    left: 20px;
    background: white;
    padding: 0 8px;
    font-size: 1.25rem;
}

.callout h3 {
    margin-top: 0;
    margin-bottom: var(--space-md);
    font-size: 1.25rem;
}

.phase-note {
    background: linear-gradient(135deg, var(--color-blue-light) 0%, #FFFFFF 100%);
    border-left: 4px solid var(--color-blue);
    padding: var(--space-lg);
    margin: var(--space-xl) 0 0 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.06);
    position: relative;
}

.phase-note::before {
    content: '💡';
    position: absolute;
    top: -10px;
    left: 12px;
    background: white;
    padding: 0 6px;
    font-size: 1.125rem;
}

.phase-note p {
    margin: 0;
    font-style: italic;
    color: var(--color-navy);
    font-weight: 500;
}

/* ============================================
   ACTION PLAN PAGE
   ============================================ */

/* Hero banner */
.ap-hero {
    border: 2px solid var(--color-brand-blue);
    border-radius: 16px;
    padding: var(--space-lg) var(--space-xl) var(--space-lg);
    margin-bottom: var(--space-xl);
    background: linear-gradient(160deg, #FFFFFF 0%, #F0F9FF 40%, #E0F2FE 100%);
    position: relative;
    overflow: hidden;
}

.ap-hero::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(52, 177, 255, 0.06);
    pointer-events: none;
}

/* countdown-float removed — countdown is now inline */

.ap-hero__phase-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.ap-hero__title {
    margin: 0 0 6px 0;
    font-size: 1.75rem;
    line-height: 1.2;
    max-width: calc(100% - 220px);
}

.ap-hero__desc {
    margin: 0 0 var(--space-lg) 0;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 640px;
}

.ap-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ap-hero__action {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 8px;
    border: 1px solid rgba(52, 177, 255, 0.1);
}

.ap-hero__action-icon {
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(52, 177, 255, 0.1);
}

/* Phase stepper */
.ap-stepper {
    display: flex;
    align-items: flex-start;
    margin: var(--space-3xl) 0 var(--space-2xl) 0;
    padding: 0 var(--space-sm);
}

.ap-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    min-width: 0;
}

.ap-step__dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #E5E7EB;
    border: 3px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s;
}

.ap-step--done .ap-step__dot {
    background: #10B981;
    border-color: #10B981;
}

.ap-step--active .ap-step__dot {
    width: 28px;
    height: 28px;
    box-shadow: 0 0 0 4px rgba(52, 177, 255, 0.2);
}

.ap-step__line {
    position: absolute;
    top: 12px;
    left: calc(50% + 14px);
    right: calc(-50% + 14px);
    height: 3px;
    background: #E5E7EB;
    z-index: 1;
}

.ap-step__line--done {
    background: #10B981;
}

.ap-step__label {
    margin-top: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-text-secondary);
    text-align: center;
}

.ap-step--active .ap-step__label {
    color: var(--color-text);
    font-weight: 700;
}

.ap-step--done .ap-step__label {
    color: #059669;
}

.ap-step__date {
    font-size: 0.65rem;
    color: var(--color-text-secondary);
    margin-top: 2px;
}

/* Checklist */
.ap-checklist {
    margin-top: 2.5rem;
    margin-bottom: var(--space-xl);
}

.ap-checklist__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.ap-checklist__header h3 {
    margin: 0;
}

.ap-checklist__count {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.ap-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ap-check:hover {
    border-color: var(--color-brand-blue-soft);
    box-shadow: 0 2px 8px rgba(52, 177, 255, 0.08);
}

.ap-check__left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.ap-check__num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.ap-check__text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.ap-check__go {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-brand-blue);
    cursor: pointer;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.ap-check__go:hover {
    background: var(--color-brand-blue-light);
}

/* What's Next preview */
.ap-next {
    background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 100%);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-brand-blue);
    border-radius: 0 12px 12px 0;
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-xl);
}

.ap-next__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 4px;
}

.ap-next__header h4 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.ap-next__date {
    font-size: 0.7rem;
    color: white;
    font-weight: 600;
    background: var(--color-brand-blue);
    padding: 2px 8px;
    border-radius: 10px;
}

.ap-next__preview {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-style: italic;
}

.ap-next__items {
    margin: 8px 0 10px;
    padding-left: 1.2rem;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.ap-next__items li {
    margin-bottom: 2px;
}

.ap-next__priorities {
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-text);
    padding-top: 8px;
    border-top: 1px solid var(--color-border);
}

.ap-next__go {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-brand-blue);
    cursor: pointer;
    margin-left: 0.25rem;
    transition: all 0.15s ease;
}

.ap-next__go:hover {
    color: var(--color-brand-blue-dark);
    text-decoration: underline;
}

/* Resource grid */
.ap-resources {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.ap-resources h4 {
    margin: 0 0 var(--space-md) 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
    font-weight: 600;
}

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

.ap-resource {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 16px 10px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--color-text);
}

.ap-resource:hover {
    border-color: var(--color-brand-blue);
    box-shadow: 0 4px 12px rgba(52, 177, 255, 0.12);
    transform: translateY(-2px);
}

.ap-resource__icon {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.ap-resource__name {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
}

.ap-resource__desc {
    font-size: 0.68rem;
    color: var(--color-text-secondary);
    line-height: 1.3;
}

@media (max-width: 768px) {
    .ap-hero__countdown-float {
        position: static;
        margin-bottom: 12px;
    }
    .ap-hero__title {
        max-width: 100%;
    }
    .ap-stepper {
        overflow-x: auto;
        padding-bottom: var(--space-sm);
    }
    .ap-step__label {
        font-size: 0.6rem;
    }
    .ap-resources__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .ap-check__go {
        display: none;
    }
}

.timeline {
    background: #F0F9FF;
    border-left: 4px solid var(--color-blue);
    padding: var(--space-lg);
    margin: var(--space-lg) 0 var(--space-xl) 0;
    border-radius: 0 8px 8px 0;
}

.timeline p {
    margin: 0;
    line-height: 1.8;
}

code {
    background: #F3F4F6;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Monaco', 'Courier New', monospace;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    position: relative;
    cursor: default;
    user-select: none;
}

.badge--must {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
    box-shadow: none;
}

.badge--phase {
    background: white;
    color: var(--color-text-secondary);
    border: 1.5px solid var(--color-border);
}

/* ============================================
   EMAIL CARDS
   ============================================ */

.email {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
}

.email::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--color-blue) 0%, var(--color-blue-bright) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.email:hover {
    border-color: var(--color-blue-light);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.08);
    transform: translateY(-1px);
}

.email:hover::before {
    opacity: 1;
}

.email__header {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.email__meta {
    flex: 1;
}

.email__badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.email__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.375rem;
    line-height: 1.4;
}

.email__date {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.email__chevron {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-brand-blue);
    background: var(--color-blue-light);
    border-radius: 50%;
    transition: transform 0.2s, background 0.2s;
    flex-shrink: 0;
}

.email__header:hover .email__chevron {
    background: var(--color-brand-blue);
    color: white;
}

.email.is-expanded .email__chevron {
    transform: rotate(180deg);
}

.email__body {
    display: none;
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid var(--color-border);
}

.email.is-expanded .email__body {
    display: block;
}

.email__subject {
    background: var(--color-bg);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.email__subject-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.email__subject-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.email__content {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.email__content p {
    margin-bottom: 1rem;
}

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

.email__actions {
    display: flex;
    gap: 0.75rem;
}

/* ============================================
   SECTION CARDS (Social Posts, etc.)
   ============================================ */

.section {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    transition: all 0.2s ease;
}

.section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--color-blue) 0%, var(--color-blue-bright) 100%);
    border-radius: 12px 0 0 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.section:hover {
    border-color: var(--color-blue-light);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.08);
    transform: translateY(-1px);
}

.section:hover::before {
    opacity: 1;
}

.section .email__badges {
    margin-bottom: 0.75rem !important;
}

.section h4 {
    margin-top: 0 !important;
    margin-bottom: 0.625rem !important;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

.section .email__content {
    margin-bottom: 1.25rem !important;
}

.section .btn {
    margin-bottom: 0.75rem;
}

.section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

/* ============================================
   TOAST
   ============================================ */

.toast {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    background: var(--color-navy);
    color: white;
    padding: var(--space-md) var(--space-lg);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(1rem);
    transition: all 0.3s;
    pointer-events: none;
    z-index: 10000;
}

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

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

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    .header {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 2px solid var(--color-blue-light);
    }
    
    .header__inner {
        position: relative;
        padding: 16px 16px 12px;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .header__left,
    .header__center,
    .header__right {
        justify-content: center;
    }

    .header__right {
        flex-direction: row;
        gap: 12px;
    }

    .header__logo-link {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .header__partners {
        display: none;
    }

    .header__playbook {
        display: none;
    }
    
    .nav {
        position: relative;
        overflow-x: auto;
        overflow-y: visible;
        border-bottom: 1px solid var(--color-border);
    }
    
    .nav__inner {
        padding: 0 20px;
        flex-direction: row;
        gap: 24px;
    }
    
    .nav__link {
        padding: 12px 0;
        border-left: none;
        border-bottom: 2px solid transparent;
        white-space: nowrap;
    }
    
    .nav__link.is-active {
        border-left-color: transparent;
        border-bottom-color: var(--color-blue);
        background: linear-gradient(180deg, transparent 0%, rgba(14, 165, 233, 0.05) 100%);
    }
    
    .nav__link:hover {
        border-left-color: transparent;
    }
    
    .sidebar__footer {
        border-top: 1px solid var(--color-border);
        padding: 20px;
    }
    
    .main {
        margin-left: 0;
        max-width: 100%;
        padding: var(--space-lg);
    }
    
    .main > :not(.doors) {
        max-width: 100%;
    }
    
    .home__countdown {
        padding: var(--space-2xl) var(--space-lg);
        border-radius: 16px;
    }
    
    .doors {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Mobile typography adjustments */
    h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem 0;
        line-height: 1.1;
    }
    
    h3 {
        font-size: 1.375rem;
        margin: 1.5rem 0 0.75rem 0;
    }
    
    h3.section-divider {
        margin-top: 3rem;
    }
    
    h4 {
        font-size: 1rem;
        margin: 1.25rem 0 0.5rem 0;
    }
    
    /* Asset tiles mobile optimization */
    .asset__preview {
        min-height: 180px;
    }
    
    .asset__name {
        font-size: 0.9375rem;
    }
    
    .asset__tags {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    .asset__actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .asset__actions .btn {
        width: 100%;
        font-size: 0.875rem;
    }
    
}

ul ul, ol ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* ============================================
   MOBILE NAVIGATION FIX
   ============================================ */

@media (max-width: 768px) {
    .nav {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav__inner {
        min-width: max-content;
    }
    
    .nav__link {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .header__inner {
        padding: 10px 16px;
    }
    
    .header__branding {
        gap: 12px;
    }
    
    .header__logo {
        height: 80px;
    }
    
    .header__school {
        font-size: 0.8125rem;
    }
    
    .lang-toggle {
        padding: 4px 10px;
        font-size: 0.8125rem;
        max-width: 120px;
        margin: 0 auto;
    }
    
    .nav__inner {
        padding: 0 16px;
        gap: 20px;
    }
    
    .nav__link {
        font-size: 0.8125rem;
        padding: 12px 0;
    }
    
    .main {
        padding: 1rem;
    }
    
    /* Smaller mobile typography */
    h2 {
        font-size: 1.25rem;
        line-height: 1.1;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h3.section-divider {
        margin-top: 2.5rem;
    }
    
    /* Tighter spacing on small screens */
    .assets {
        gap: 16px;
        margin-top: 1.5rem;
    }
    
    .asset__preview {
        min-height: 160px;
    }
}

/* ============================================
   MODERN BUTTONS & ASSET LIBRARY
   ============================================ */

/* Modern button system */
.btn, button.filter {
    background: white;
    border: 1.5px solid var(--color-border);
    color: var(--color-text);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover, button.filter:hover {
    background: var(--color-bg);
    border-color: var(--color-text-secondary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

/* Primary button variant */
.btn--primary {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-bright) 100%);
    border-color: var(--color-blue);
    color: white;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15);
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--color-blue-bright) 0%, var(--color-blue) 100%);
    border-color: var(--color-blue-bright);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
    transform: translateY(-2px);
}

/* Filter buttons - active state */
button.filter.is-active {
    background: var(--color-blue);
    border-color: var(--color-blue);
    color: white;
}

button.filter.is-active:hover {
    background: var(--color-brand-blue-dark);
    border-color: var(--color-brand-blue-dark);
}

/* Channel filter buttons: subtle shadow to distinguish from flat badges */
button.filter[data-key="channel"] {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

button.filter[data-key="channel"][data-value="email"] {
    background: #E0F2FE;
    color: #0369A1;
    border-color: #BAE6FD;
}

button.filter[data-key="channel"][data-value="social"] {
    background: #F3E8FF;
    color: #7C3AED;
    border-color: #E9D5FF;
}

button.filter[data-key="channel"][data-value="phone"] {
    background: #D1FAE5;
    color: #065F46;
    border-color: #A7F3D0;
}

button.filter.is-active[data-key="channel"][data-value="email"] {
    background: #0369A1;
    border-color: #0369A1;
    color: white;
}

button.filter.is-active[data-key="channel"][data-value="social"] {
    background: #7C3AED;
    border-color: #7C3AED;
    color: white;
}

button.filter.is-active[data-key="channel"][data-value="phone"] {
    background: #065F46;
    border-color: #065F46;
    color: white;
}

/* Filter groups */
.filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 2rem 0 !important;
}

.filter-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Asset Library - Professional Grid */
.assets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.asset {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.asset:hover {
    border-color: var(--color-blue-light);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.12);
    transform: translateY(-4px);
}

.asset__preview {
    background: #F9FAFB;
    aspect-ratio: 11.5 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
    position: relative;
}

.asset__thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.asset__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    color: var(--color-text-secondary);
}

.asset__format {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.asset__dimensions {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

.asset__content {
    padding: 1.25rem;
}

.asset__name {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
    line-height: 1.4;
}

.asset__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1rem;
}

.asset__actions {
    display: flex;
    gap: 8px;
}

.asset__actions .btn {
    flex: 1;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.75rem;
}

.asset__caption-link {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-brand-blue);
    cursor: pointer;
    margin-top: 0.375rem;
    opacity: 0.7;
    transition: opacity 0.15s;
}
.asset__caption-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Badge improvements */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge--must {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.badge--phase {
    background: var(--color-bg);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

/* Mobile asset grid */
@media (max-width: 768px) {
    .assets {
        grid-template-columns: 1fr;
    }
    
    .filter-group {
        font-size: 0.8125rem;
    }
}

/* ============================================
   SOCIAL POST SPACING FIX
   ============================================ */

.social-post {
    margin-bottom: 2.5rem !important;
}

.social-post__caption {
    margin-bottom: 1.25rem !important;
    line-height: 1.7 !important;
}

.social-post__actions {
    margin-top: 1.25rem !important;
}

.social-post__actions .btn {
    margin-bottom: 1rem !important;
}

.social-post__note {
    margin-top: 1.25rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid var(--color-border);
}


/* ============================================
   CAMPAIGN ARC
   ============================================ */



/* Asset thumbnail display */
.asset__thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn, .btn:hover, .btn:active {
    text-decoration: none;
}

/* Subtle phone frame for stories only */

.asset[data-format="story"] .asset__preview::after {
    content: '';
    position: absolute;
    top: 9%;
    left: 46.5%;
    transform: translateX(-50%);
    width: 10%;
    height: 3%;
    background: #333;
    border-radius: 12px;
    z-index: 2;
    transform: rotate(2deg);
}

.asset[data-format="story"] .asset__thumbnail {
    width: 44%;
    height: 90%;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border: 2px solid #ccc;
    transform: rotate(2deg);
}

.asset[data-format="standard"] .asset__thumbnail {
    object-fit: cover;
}

/* ============================================
   HOME: HERO
   ============================================ */

.home-hero {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.home-hero__eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-brand-blue);
    margin: 0 0 0.75rem;
}

.home-hero__title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1rem;
    color: var(--color-text);
    letter-spacing: -0.03em;
}

.home-hero__date {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.home-hero__hours {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    background: var(--color-brand-blue);
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.02em;
}

.home-hero__match {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0 0 2rem;
    padding: 0.75rem 1.25rem;
    background: var(--color-blue-light);
    border-radius: 8px;
    border-left: 3px solid var(--color-brand-blue);
}

.home-hero__stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.home-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-hero__stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.2;
}

.home-hero__stat-label {
    font-size: 0.6875rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

/* ============================================
   HOME: JUMP IN
   ============================================ */

.home-start {
    max-width: 1000px;
    margin: 0 auto;
}

.home-start__heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-border);
}

/* ============================================
   HOME: CAMPAIGN ARC RIBBON
   ============================================ */

.home-arc {
    max-width: 1000px;
    margin: 0 auto;
}

.home-arc__heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-border);
}

.home-arc__ribbon {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 20px;
}

.home-arc__ribbon::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--color-border);
}

.home-arc__phase {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    position: relative;
}

.home-arc__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
    margin-left: -20px;
    position: relative;
    z-index: 1;
}

.home-arc__phase-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-arc__phase-content strong {
    font-size: 0.9375rem;
    color: var(--color-text);
}

.home-arc__dates {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-brand-blue);
}

.home-arc__phase-content > span:last-child {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .home-hero__title {
        font-size: 1.75rem;
    }
    .home-hero__stats {
        gap: 1.5rem;
    }
    .home-hero__stat-num {
        font-size: 1.25rem;
    }
}
.main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    height: 400px;
    background: radial-gradient(ellipse at top left, rgba(52, 177, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.main > * {
    position: relative;
    z-index: 1;
}
.partners__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.partners__logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.partners__logo:hover {
    opacity: 1;
}

.partners__divider {
    width: 1px;
    height: 32px;
    background: var(--color-border);
}
/* ============================================
   INTEGRATED TIMELINE
   ============================================ */

.timeline-intro {
    background: var(--color-blue-light);
    border-left: 4px solid var(--color-blue);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.timeline-intro p {
    margin: 0;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-day {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
}

.timeline-day__header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--color-bg);
    border-left: 4px solid transparent;
}

/* Phase color-coded day headers */
.timeline-day[data-phase="pre"] .timeline-day__header {
    border-left-color: #7C3AED;
}

.timeline-day[data-phase="live"] .timeline-day__header {
    border-left-color: #DC2626;
}

.timeline-day[data-phase="post"] .timeline-day__header {
    border-left-color: #0EA5E9;
}

.timeline-day__date {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-brand-blue);
    flex: 1;
    min-width: 200px;
    animation: dayHeaderIn 0.5s ease both;
}

.timeline-day__label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-brand-blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    animation: dayHeaderIn 0.5s 0.1s ease both;
}

@keyframes dayHeaderIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.timeline-day__items {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.timeline-item {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-text-secondary);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.timeline-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.timeline-item.is-expanded {
    border-color: var(--color-blue);
}

.timeline-item--milestone {
    border-left-color: #F59E0B;
    background: linear-gradient(135deg, #FFFBEB 0%, white 100%);
}

.badge--milestone {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
    font-weight: 700;
}

.timeline-item--email {
    border-left-color: var(--color-blue);
}

.timeline-item--social {
    border-left-color: #9333EA;
}

.timeline-item--phone {
    border-left-color: #10B981;
}

.timeline-item--ambassador {
    border-left-color: var(--color-orange);
}

.timeline-item--must-use {
    background: linear-gradient(to right, var(--color-yellow-light) 0%, var(--color-bg-white) 100%);
}

.timeline-item__header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
    user-select: none;
}

.timeline-item__icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.timeline-item__meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.timeline-item__type-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.timeline-item__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-navy);
    margin: 0.25rem 0 0 0;
    width: 100%;
}

.timeline-item__time {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.timeline-item__note {
    font-size: 0.875rem;
    color: var(--color-orange);
    font-weight: 500;
    margin-top: 0.25rem;
    font-style: italic;
}

.timeline-item__badges {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.timeline-item__chevron {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-brand-blue);
    background: var(--color-blue-light);
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.2s ease, background 0.2s;
}

.timeline-item__header:hover .timeline-item__chevron {
    background: var(--color-brand-blue);
    color: white;
}

.timeline-item.is-expanded .timeline-item__chevron {
    transform: rotate(180deg);
}

.timeline-item__body {
    display: none;
    padding: 0 1rem 1rem 3.5rem;
}

.timeline-item.is-expanded .timeline-item__body {
    display: block;
}

.timeline-item__help {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-top: 1rem;
    font-style: italic;
}

.phone-section {
    margin-bottom: 1.5rem;
}

.phone-section:last-child {
    margin-bottom: 0;
}

.phone-section h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.timeline-empty {
    text-align: center;
    padding: 3rem;
    color: var(--color-text-secondary);
}

@media (max-width: 768px) {
    .timeline-day__header {
        padding: 1rem;
    }
    
    .timeline-day__date {
        font-size: 1.25rem;
        min-width: 100%;
    }

    .timeline-day__label {
        font-size: 0.7rem;
    }
    
    .timeline-item__header {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .timeline-item__body {
        padding: 0 0.75rem 0.75rem 2.5rem;
    }
    
    .timeline-item__icon {
        font-size: 1.25rem;
    }
    
    .timeline-item__title {
        font-size: 0.9375rem;
    }
}

/* ============================================
   METRICS PAGE - UPDATED
   ============================================ */

.metrics-intro {
    background: var(--color-blue-light);
    border-left: 4px solid var(--color-blue);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.metrics-intro p {
    margin-bottom: 0.75rem;
}

.metrics-intro p:last-child {
    margin-bottom: 0;
}

.metric-block {
    margin-bottom: 3rem;
}

.metric-block h3 {
    color: var(--color-blue);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-blue);
}

.metric-insight {
    background: white;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-blue);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.metric-insight h4 {
    color: var(--color-navy) !important;
    font-size: 1.125rem;
    margin: 0 0 1rem 0 !important;
    font-weight: 600;
}

.metric-why,
.metric-action {
    margin: 0.75rem 0;
    line-height: 1.6;
}

.metric-why strong,
.metric-action strong {
    color: var(--color-navy);
}

.metrics-footer {
    background: var(--color-yellow-light);
    border-left: 4px solid var(--color-orange);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.metrics-footer p {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .metric-block h3 {
        font-size: 1.25rem;
    }
    
    .metric-insight {
        padding: 1.25rem;
    }
    
    .metric-insight h4 {
        font-size: 1rem;
    }
}

/* ============================================
   AFTER CAMPAIGN / STEWARDSHIP
   ============================================ */

.after-intro {
    background: var(--color-blue-light);
    border-left: 4px solid var(--color-blue);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.after-intro p {
    margin-bottom: 0.75rem;
}

.after-intro p:last-child {
    margin-bottom: 0;
}

.after-metrics {
    background: var(--color-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.after-metrics h3 {
    color: var(--color-navy);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.after-metrics ul {
    margin: 0;
    padding-left: 1.5rem;
}

.after-metrics li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.after-footer {
    background: var(--color-yellow-light);
    border-left: 4px solid var(--color-orange);
    padding: 1.5rem;
    border-radius: 8px;
}

.after-footer p {
    margin-bottom: 0;
}

/* ============================================
   CAMPAIGN LOGOS - SIZE FIX
   ============================================ */

.asset[data-format="logo"] .asset__preview {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F9FAFB 60%, rgba(52, 177, 255, 0.06) 100%);
    aspect-ratio: 3 / 2;
}

.asset[data-format="logo"] .asset__preview--dark {
    background: #1A1A2E;
}

.asset[data-format="logo"] .asset__thumbnail {
    width: 75%;
    height: auto;
    max-width: 75%;
    object-fit: contain;
    display: block;
}

/* ============================================
   ASSET SECTIONS
   ============================================ */

.asset-section {
    margin-bottom: 3rem;
}

.asset-section h3 {
    font-size: 1.5rem;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.asset-section__desc {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.asset__preview--pdf {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.asset__preview--wide {
    aspect-ratio: 16 / 9;
}

.asset__preview--wide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 65%;
    height: 110%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 320'%3E%3Cellipse cx='100' cy='88' rx='36' ry='44' fill='rgba(0,0,0,0.13)'/%3E%3Cpath d='M72 128 L28 180 L10 320 L190 320 L172 180 L128 128 C118 132 108 134 100 134 C92 134 82 132 72 128 Z' fill='rgba(0,0,0,0.13)'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
    pointer-events: none;
}

.asset__preview--poster {
    aspect-ratio: 8.5 / 11;
    background: #f8f9fa;
}

.asset__preview--poster .asset__thumbnail {
    object-fit: contain;
    padding: 8px;
}

.asset__placeholder--pdf {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    opacity: 0.5;
    line-height: 1.4;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    width: 100%;
    height: 100%;
}

.assets__format-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    margin: var(--space-md) 0 var(--space-sm) 0;
}

/* ============================================
   SCHOOL SELECTOR
   ============================================ */

.selector {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 0;
}

.selector__title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.selector__desc {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

.selector__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.selector__card {
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font);
}

.selector__card:hover {
    border-color: var(--color-blue);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.15);
    transform: translateY(-3px);
}

.selector__banner {
    width: 100%;
    height: 120px;
    object-fit: contain;
    background: #f9fafb;
    padding: 12px;
}

.selector__name {
    padding: 16px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text);
}

/* ============================================
   METRICS GRID
   ============================================ */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin: 1.5rem 0 2.5rem 0;
}

.metric-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.metric-card:hover {
    border-color: var(--color-blue-light);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.08);
}

.metric-card__name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: var(--color-blue-dark, var(--color-blue));
}

.metric-card__detail p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.metrics-bonus {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--color-border);
}

.metrics-bonus__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.metrics-bonus__icon {
    margin-right: 4px;
}

.metrics-bonus__intro {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.metrics-bonus__category {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    color: var(--color-text);
}

/* ============================================
   CAMPAIGN FOUNDATIONS (Accordion)
   ============================================ */

.campaign-foundations {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--color-border);
}

.campaign-foundations__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--color-brand-blue);
}

.campaign-foundations__icon {
    margin-right: 4px;
}

.campaign-foundations__intro {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.cf-accordion {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.cf-accordion[open] {
    border-color: var(--color-blue-light);
}

.cf-accordion__trigger {
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-navy);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s ease;
}

.cf-accordion__trigger::-webkit-details-marker {
    display: none;
}

.cf-accordion__trigger::after {
    content: '▾';
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-brand-blue);
    background: var(--color-blue-light);
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.2s ease, background 0.2s;
}

.cf-accordion[open] .cf-accordion__trigger::after {
    transform: rotate(180deg);
}

.cf-accordion__trigger:hover::after {
    background: var(--color-brand-blue);
    color: white;
}

.cf-accordion__trigger:hover {
    background: var(--color-blue-light);
}

.cf-accordion__body {
    padding: 0.75rem 1.25rem 1.25rem;
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.cf-accordion__body p {
    margin: 0 0 0.75rem;
}

.cf-accordion__body ul {
    margin: 0.5rem 0 1rem;
    padding-left: 1.25rem;
}

.cf-accordion__body li {
    margin-bottom: 0.4rem;
}

.cf-accordion__body hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 1.25rem 0;
}

/* ============================================
   PHONE SCRIPT
   ============================================ */

.phone-script {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 1rem 0 2rem 0;
}

.phone-script__section {
    background: white;
    border: 1px solid var(--color-border);
    border-left: 4px solid #10B981;
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
}

.phone-script__section h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9375rem;
    color: #10B981;
}

.phone-script__section p {
    margin: 0 0 0.75rem 0;
    line-height: 1.6;
}

/* ---- Phone Script: Flowing layout (Ambassador page) ---- */

.phone-script-flow {
    padding: 0.5rem 0;
}

.phone-script-flow__line {
    margin: 0 0 1rem 0;
    line-height: 1.7;
    font-size: 0.9375rem;
    color: var(--color-text, #111827);
}

.phone-script-flow__label {
    color: #10B981;
    font-weight: 600;
}

/* ============================================
   STEWARDSHIP TIMELINE
   ============================================ */

.stewardship-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

.stewardship-phase {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.2s ease;
}

.stewardship-phase:hover {
    border-color: var(--color-blue-light);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.08);
}

.stewardship-phase__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.stewardship-phase__header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-navy);
}

.stewardship-phase__icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}

.stewardship-phase__timeframe {
    display: inline-block;
    background: var(--color-blue-light);
    color: var(--color-blue);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.stewardship-phase__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stewardship-action {
    background: var(--color-bg);
    border-left: 3px solid var(--color-blue);
    padding: 1rem;
    border-radius: 6px;
}

.stewardship-action h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-navy);
    margin: 0 0 0.25rem 0;
}

.stewardship-action p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.5;
}

.stewardship-phase__closing {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

@media (max-width: 768px) {
    .stewardship-phase {
        padding: 1.25rem;
    }

    .stewardship-phase__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .stewardship-phase__icon {
        font-size: 1.5rem;
    }
}

/* ============================================
   SOCIAL POST OPTIONS
   ============================================ */

.social-post__options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.social-post__option {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1rem;
}

/* ============================================
   TIMELINE CONTENT FIELDS
   ============================================ */

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.timeline-content__field {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

.timeline-content__field:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.timeline-content__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.timeline-content__text {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.timeline-content__text.email-body {
    white-space: pre-line;
}

.timeline-content__alt {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--color-border);
}

/* Social post hints (image suggestion + creative tip) */
.social-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 0.75rem;
}
.social-hint + .social-hint {
    margin: -0.5rem 0rem 0.5rem 0rem;
}
.social-hint--image {
    background: linear-gradient(135deg, #f0f4ff 0%, #fff 100%);
    border: 1px solid var(--color-brand-blue);
    border-left: 3px solid var(--color-brand-blue);
    flex-wrap: wrap;
}
.social-hint--tip {
    background: linear-gradient(135deg, #fffbe6 0%, #fff 100%);
    border: 1px solid #e6d990;
    border-left: 3px solid #d4b94a;
}
.social-hint__icon {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1.4;
}
.social-hint__text {
    flex: 1;
    color: var(--color-navy);
    min-width: 0;
}
.social-hint__more {
    color: var(--color-text-light);
    font-size: 0.8rem;
}
.social-hint__link {
    font-size: 0.8rem;
    color: var(--color-brand-blue);
    cursor: pointer;
    white-space: nowrap;
    font-weight: 600;
    margin-left: auto;
}
.social-hint__link:hover {
    text-decoration: underline;
}

/* ============================================
   UNDERSTAND SECTION
   ============================================ */

.understand-section {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.2s ease;
}

.understand-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.understand-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-brand-blue);
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-blue-light);
}

.understand-content {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.understand-content p {
    margin: 0 0 0.75rem;
}

.understand-content p:last-child {
    margin-bottom: 0;
}

.understand-content strong {
    color: var(--color-text);
}

.understand-content ul {
    padding-left: 1.25rem;
    margin: 0.5rem 0 0.75rem;
}

.understand-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.understand-content li:last-child {
    margin-bottom: 0;
}

/* ============================================
   ASSET PREVIEW DARK BG
   ============================================ */


/* ============================================
   BADGE VARIANTS
   ============================================ */

.badge--live {
    background: #EF4444;
    color: white;
    border: 1px solid #EF4444;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.badge--email {
    background: #E0F2FE;
    color: #0369A1;
    border: 1px solid #BAE6FD;
}

.badge--social {
    background: #F3E8FF;
    color: #7C3AED;
    border: 1px solid #E9D5FF;
}

.badge--phone {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.badge--ambassador {
    background: #FFF7ED;
    color: #C2410C;
    border: 1px solid #FED7AA;
}

.badge--toolkit {
    background: #F0FDFA;
    color: #0F766E;
    border: 1px solid #99F6E4;
    flex-shrink: 0;
}

/* Toolkit & ambassador card headers: badge + title inline */
.email__header-inner {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}
.email__header-inner .email__title {
    margin: 0;
}
.email__header:has(.email__header-inner) {
    padding: 0.875rem 1.25rem;
}

/* ============================================
   AMBASSADOR PAGE — SUB-SECTION STRUCTURE
   ============================================ */

.section-intro {
    color: var(--color-text-secondary, #6B7280);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.subsection-heading {
    margin-top: 2.5rem;
    margin-bottom: 0.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-brand-blue, #1B7BD5);
    font-size: 1.25rem;
    color: var(--color-text, #111827);
}

.subsection-intro {
    color: var(--color-text-secondary, #6B7280);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* ============================================
   VOLUNTEER TOOLKIT SECTIONS
   ============================================ */

.toolkit-intro {
    color: var(--color-text-secondary, #6B7280);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.toolkit-notes {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: #F9FAFB;
    border-radius: 8px;
    border: 1px solid var(--color-border, #E5E7EB);
    font-size: 0.875rem;
    line-height: 1.6;
}

.toolkit-notes strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text, #111827);
}

.toolkit-notes ul {
    margin: 0;
    padding-left: 1.25rem;
}

.toolkit-notes li {
    margin-bottom: 0.35rem;
    color: var(--color-text-secondary, #6B7280);
}

.toolkit-guide-section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border, #E5E7EB);
}

.toolkit-guide-section:first-child {
    margin-top: 0.5rem;
    padding-top: 0;
    border-top: none;
}

.toolkit-guide-section h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: var(--color-text, #111827);
}

.toolkit-item {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: #F9FAFB;
    border-radius: 8px;
    border-left: 3px solid var(--color-brand-blue, #1B4D8E);
}

.toolkit-item strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9375rem;
    color: var(--color-text, #111827);
}

.toolkit-item p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text-secondary, #4B5563);
}

.badge--lang {
    background: #F3F4F6;
    color: #4B5563;
    border: 1px solid #D1D5DB;
}

.badge--countdown, .badge--impact, .badge--community,
.badge--shabbat, .badge--launch, .badge--progress,
.badge--urgency, .badge--gratitude {
    background: #F3F4F6;
    color: #6B7280;
    border: 1px solid #E5E7EB;
    text-transform: capitalize;
}

/* ============================================
   SMALL BUTTON VARIANT
   ============================================ */

.btn--sm {
    padding: 6px 14px;
    font-size: 0.8125rem;
}

/* ============================================
   MOBILE BOTTOM TAB BAR
   ============================================ */

.mobile-tabs {
    display: none;
}

.mobile-more {
    display: none;
}

@media (max-width: 768px) {
    /* Show mobile tab bar, hide desktop nav */
    .mobile-tabs {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: white;
        border-top: 1px solid var(--color-border);
        z-index: 1001;
        justify-content: space-around;
        align-items: center;
        padding: 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
    }

    .mobile-tab {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        background: none;
        border: none;
        padding: 6px 12px;
        cursor: pointer;
        color: var(--color-text-secondary);
        font-family: var(--font);
        transition: color 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-tab.is-active {
        color: var(--color-blue);
    }

    .mobile-tab__icon {
        font-size: 1.25rem;
        line-height: 1;
    }

    .mobile-tab__label {
        font-size: 0.625rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }

    /* Hide sidebar nav on mobile */
    .nav {
        display: none !important;
    }

    .sidebar__footer {
        display: none !important;
    }

    /* Add bottom padding for tab bar clearance */
    .main {
        padding-bottom: 80px !important;
    }

    .main::before {
        left: 0 !important;
        height: 300px;
        background: radial-gradient(ellipse at top left, rgba(52, 177, 255, 0.06) 0%, transparent 60%) !important;
    }

    /* Mobile header — stacked, logo-centered */
    .header__inner {
        position: relative;
        padding: 12px 16px 12px !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .header__logo-link {
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }

    .header__logo {
        height: 70px !important;
    }

    .header__identity {
        text-align: center !important;
        margin-bottom: 0 !important;
    }

    .header__school-banner {
        display: none !important;
    }

    .header__school {
        display: block !important;
        font-size: 0.875rem !important;
        margin-bottom: 2px !important;
    }

    .header__subtitle {
        display: block !important;
        font-size: 0.6875rem !important;
    }

    .header__partners {
        display: none !important;
    }

    /* Mobile More Sheet */
    .mobile-more {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1002;
        pointer-events: none;
        visibility: hidden;
    }

    .mobile-more.is-open {
        pointer-events: auto;
        visibility: visible;
    }

    .mobile-more__overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0);
        transition: background 0.3s ease;
    }

    .mobile-more.is-open .mobile-more__overlay {
        background: rgba(0,0,0,0.4);
    }

    .mobile-more__panel {
        position: absolute;
        bottom: 60px;
        left: 0;
        right: 0;
        background: white;
        border-radius: 16px 16px 0 0;
        padding: 8px 0 16px 0;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
    }

    .mobile-more.is-open .mobile-more__panel {
        transform: translateY(0);
    }

    .mobile-more__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 20px;
        font-weight: 600;
        font-size: 0.9375rem;
        color: var(--color-text-secondary);
    }

    .mobile-more__close {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--color-text-secondary);
        padding: 0 4px;
        line-height: 1;
    }

    .mobile-more__link {
        display: block;
        width: 100%;
        text-align: left;
        background: none;
        border: none;
        padding: 14px 20px;
        font-size: 1rem;
        font-weight: 500;
        color: var(--color-text);
        cursor: pointer;
        font-family: var(--font);
        transition: background 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-more__link:hover,
    .mobile-more__link:active {
        background: var(--color-bg);
    }

    /* Mobile-friendly selector */
    .selector__grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .selector__banner {
        height: 80px;
    }

    .selector__name {
        padding: 10px;
        font-size: 0.875rem;
    }

    /* Mobile metrics */
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile assets */
    .assets {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    }

    /* Mobile language toggle — top left */
    .lang-toggle--mobile {
        display: block !important;
        position: absolute !important;
        top: 12px !important;
        left: 16px !important;
        right: auto !important;
        background: var(--color-blue-light) !important;
        color: var(--color-blue) !important;
        border: 1px solid var(--color-blue) !important;
        border-radius: 6px !important;
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        cursor: pointer;
        z-index: 10;
        width: auto !important;
        box-shadow: none !important;
        text-align: center !important;
    }

    /* CrowdChange icon — top right */
    .header__cc-logo-mobile {
        display: block !important;
        position: absolute !important;
        top: 14px !important;
        right: 16px !important;
        left: auto !important;
        z-index: 10;
        line-height: 0;
    }

    .header__cc-icon {
        width: 22px !important;
        height: 22px !important;
        border-radius: 50% !important;
        object-fit: cover;
    }

    /* Mobile More sheet footer */
    .mobile-more__footer {
        padding: 16px 20px;
        border-top: 1px solid var(--color-border);
        margin-top: 12px;
        text-align: center;
    }

    .mobile-more__cc-logo {
        width: 140px;
        height: auto;
        opacity: 0.8;
        margin-bottom: 4px;
    }

    .mobile-more__credit {
        font-size: 0.625rem;
        color: var(--color-text-secondary);
        opacity: 0.7;
        margin: 0;
    }
}

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

    .assets {
        grid-template-columns: 1fr !important;
    }

    .mobile-tabs {
        height: 54px;
    }

    .mobile-tab__icon {
        font-size: 1.125rem;
    }

    .mobile-tab__label {
        font-size: 0.5625rem;
    }
}

/* ============================================
   COUNTDOWN - Multi-unit timer
   ============================================ */

/* ── Countdown: compact inline strip ── */
.countdown {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #F0F9FF;
    border: 1px solid #BFDBFE;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.countdown--ended {
    background: #F0FDF4;
    border-color: #BBF7D0;
}

.countdown--live {
    background: #FEF2F2;
    border-color: #FECACA;
}

.countdown__icon {
    font-size: 0.875rem;
    line-height: 1;
}

.countdown__cal {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 30px;
    border-radius: 4px;
    overflow: hidden;
    border: 1.5px solid var(--color-brand-blue, #1B7BD5);
    line-height: 1;
    flex-shrink: 0;
}

.countdown__cal-month {
    display: block;
    width: 100%;
    background: var(--color-brand-blue, #1B7BD5);
    color: white;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
    padding: 1px 0;
}

.countdown__cal-day {
    display: block;
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--color-text, #111827);
    text-align: center;
    padding: 0 0 1px;
}

.countdown__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-secondary, #6B7280);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.countdown--ended .countdown__label {
    color: #16A34A;
}

.countdown--live .countdown__label {
    color: #DC2626;
}

.countdown__digits {
    display: inline-flex;
    align-items: baseline;
    gap: 0.125rem;
    font-variant-numeric: tabular-nums;
}

.countdown__num {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--color-text, #111827);
    line-height: 1;
}

.countdown__unit-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--color-text-secondary, #6B7280);
    margin-right: 0.125rem;
}

.countdown__sep {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary, #6B7280);
    margin: 0 0.0625rem;
}

/* ============================================
   FILTER GROUP LABEL
   ============================================ */

.filter-group__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-right: 0.5rem;
    white-space: nowrap;
    display: inline-block;
    min-width: 5.5rem;
    text-align: right;
}

/* Short / full filter labels — desktop shows full, mobile shows short */
.filter__short {
    display: none;
}

@media (max-width: 768px) {
    .filter-group__label {
        min-width: auto;
        text-align: left;
        margin-right: 0.25rem;
        font-size: 0.75rem;
    }

    .filter-group {
        align-items: center;
        gap: 5px;
        flex-wrap: nowrap;
    }

    .filters {
        gap: 6px;
    }

    button.filter {
        padding: 8px 14px;
        font-size: 0.875rem;
        white-space: nowrap;
    }

    .filter__full {
        display: none;
    }

    .filter__short {
        display: inline;
    }
}

/* Active filter tag (shown when deep-linking with intent filter) */
.filter-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--color-brand-blue);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
    text-transform: capitalize;
}
.filter-active-tag__clear {
    background: rgba(255,255,255,0.25);
    border: none;
    color: white;
    font-size: 1rem;
    line-height: 1;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s;
}
.filter-active-tag__clear:hover {
    background: rgba(255,255,255,0.45);
}
.filter-group--active-tag {
    align-items: center;
}

/* ============================================
   SOCIAL POST BADGES
   ============================================ */

.social-post__badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

/* ============================================
   ADMIN PANEL
   ============================================ */

.admin {
    max-width: 960px;
    margin: 0 auto;
}

.admin__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin__header h2 {
    margin: 0;
}

.admin__actions {
    display: flex;
    gap: 0.5rem;
}

/* PIN gate */
.admin-pin {
    max-width: 320px;
    margin: 4rem auto;
    text-align: center;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2.5rem;
}

.admin-pin h2 {
    margin-bottom: 0.5rem;
}

.admin-pin p {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.admin-pin form {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.admin-pin .admin-input {
    max-width: 120px;
    text-align: center;
    font-size: 1.25rem;
    letter-spacing: 0.2em;
}

/* School cards grid */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

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

.admin-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.25rem;
}

.admin-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.admin-card__logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 4px;
}

.admin-card__header h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.admin-card__slug {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    background: var(--color-bg);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
}

/* Form fields */
.admin-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.admin-field__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.admin-field__controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Text inputs */
.admin-input {
    font-family: inherit;
    font-size: 0.8125rem;
    padding: 0.375rem 0.625rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-bg-white);
    color: var(--color-text);
    width: 100%;
    transition: border-color 0.15s;
}

.admin-input:focus {
    outline: none;
    border-color: var(--color-brand-blue);
}

.admin-input:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.admin-input--sm {
    width: 64px;
}

/* Toggle switch */
.admin-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    cursor: pointer;
}

.admin-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.admin-toggle__slider {
    position: absolute;
    inset: 0;
    background: #D1D5DB;
    border-radius: 22px;
    transition: background 0.2s;
}

.admin-toggle__slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

.admin-toggle input:checked + .admin-toggle__slider {
    background: var(--color-brand-blue);
}

.admin-toggle input:checked + .admin-toggle__slider::before {
    transform: translateX(18px);
}

/* Color picker */
.admin-color {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 2px solid var(--color-border);
    border-radius: 6px;
    cursor: pointer;
    background: none;
}

.admin-color__hex {
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--color-text-secondary);
}

/* Card footer */
.admin-card__footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
    text-align: right;
}

/* ============================================
   ANIMATIONS & MICRO-INTERACTIONS
   ============================================ */

/* ── Keyframes ── */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulseRing {
    0%   { box-shadow: 0 0 0 0 rgba(52, 177, 255, 0.4); }
    70%  { box-shadow: 0 0 0 8px rgba(52, 177, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 177, 255, 0); }
}

@keyframes shimmer {
    from { background-position: -200% center; }
    to   { background-position: 200% center; }
}

/* ── 1. Page entrance — fade-up on every view change ── */

#main > section {
    animation: fadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── 2. Stepper active dot pulse ── */

.ap-step--active .ap-step__dot {
    animation: pulseRing 2s ease-out infinite;
}

/* ── 3. Staggered entrance — cards, accordions, checklist items ── */

.door,
.email,
.ap-hero__action,
.ap-check__item,
.ap-resource,
.asset-card,
.home-hero,
.home__primer,
.home-arc,
.subsection-heading,
.timeline-day {
    animation: fadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Stagger delays for sequential elements */
.door:nth-child(1),
.email:nth-child(1),
.ap-hero__action:nth-child(1),
.ap-check__item:nth-child(1) { animation-delay: 0.05s; }

.door:nth-child(2),
.email:nth-child(2),
.ap-hero__action:nth-child(2),
.ap-check__item:nth-child(2) { animation-delay: 0.1s; }

.door:nth-child(3),
.email:nth-child(3),
.ap-hero__action:nth-child(3),
.ap-check__item:nth-child(3) { animation-delay: 0.15s; }

.door:nth-child(4),
.email:nth-child(4),
.ap-check__item:nth-child(4) { animation-delay: 0.2s; }

.email:nth-child(5),
.ap-check__item:nth-child(5) { animation-delay: 0.25s; }

.email:nth-child(6),
.ap-check__item:nth-child(6) { animation-delay: 0.3s; }

.ap-check__item:nth-child(7) { animation-delay: 0.35s; }
.ap-check__item:nth-child(8) { animation-delay: 0.4s; }
.ap-check__item:nth-child(9) { animation-delay: 0.45s; }

/* ── 4. Hero cascade ── */

.ap-hero {
    animation: scaleIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ap-hero__phase-label {
    animation: fadeIn 0.3s ease 0.15s both;
}

.ap-hero__title {
    animation: fadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.ap-hero__desc {
    animation: fadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.ap-hero .countdown {
    animation: fadeIn 0.4s ease 0.25s both;
}

/* ── 5. Stepper entrance — stagger each step ── */

.ap-step:nth-child(1) { animation: fadeIn 0.3s ease 0.3s both; }
.ap-step:nth-child(2) { animation: fadeIn 0.3s ease 0.38s both; }
.ap-step:nth-child(3) { animation: fadeIn 0.3s ease 0.46s both; }
.ap-step:nth-child(4) { animation: fadeIn 0.3s ease 0.54s both; }
.ap-step:nth-child(5) { animation: fadeIn 0.3s ease 0.62s both; }

/* ── 6. Nav link active indicator slide ── */

.nav__link {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
}

.nav__link.is-active {
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── 7. Countdown badge entrance ── */

.countdown {
    animation: scaleIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.countdown__cal {
    animation: fadeIn 0.3s ease 0.3s both;
}

/* ── 8. Accordion expand/collapse smoothness ── */

.email__body {
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                padding 0.3s ease;
}

.email__chevron {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── 9. Button press feedback ── */

.btn {
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:active {
    transform: scale(0.96);
}

/* ── 10. Toast notification entrance ── */

.toast {
    animation: fadeUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── 11. Home page hero stats counter feel ── */

.home-hero__stat-num {
    animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.home-hero__stat:nth-child(1) .home-hero__stat-num { animation-delay: 0.15s; }
.home-hero__stat:nth-child(2) .home-hero__stat-num { animation-delay: 0.25s; }
.home-hero__stat:nth-child(3) .home-hero__stat-num { animation-delay: 0.35s; }
.home-hero__stat:nth-child(4) .home-hero__stat-num { animation-delay: 0.45s; }

/* ── 12. Timeline day blocks cascade ── */

.timeline-day:nth-child(1) { animation-delay: 0.05s; }
.timeline-day:nth-child(2) { animation-delay: 0.12s; }
.timeline-day:nth-child(3) { animation-delay: 0.19s; }
.timeline-day:nth-child(4) { animation-delay: 0.26s; }
.timeline-day:nth-child(5) { animation-delay: 0.33s; }

/* ── 13. Phone script label shimmer on hover ── */

.phone-script-flow__label {
    transition: color 0.2s ease;
}

/* ── 14. Subsection headings slide in ── */

.subsection-heading {
    animation: slideInLeft 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── 15. Badge subtle pop ── */

.badge {
    transition: transform 0.15s ease;
}

.email:hover .badge {
    transform: scale(1.08);
}

/* ── 16. Filter buttons ── */

.filter {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter:active {
    transform: scale(0.95);
}

/* ── 17. Email template preview — dual device (desktop + mobile) ── */

.email-preview-duo {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

/* Shared device chrome */
.email-device {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.06);
    background: #fff;
    flex-shrink: 0;
}

/* Title bar — shared */
.email-device__bar {
    background: linear-gradient(to bottom, #f0f0f3, #e4e4e8);
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #d4d4d8;
    min-height: 28px;
}
.email-device__title {
    font-size: 0.65rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* macOS-style dots for desktop */
.email-device__dots {
    display: flex;
    gap: 5px;
}
.email-device__dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: block;
}
.email-device__dots i:nth-child(1) { background: #ff5f57; }
.email-device__dots i:nth-child(2) { background: #febc2e; }
.email-device__dots i:nth-child(3) { background: #28c840; }

/* Phone notch */
.email-device__notch {
    width: 40px;
    height: 5px;
    border-radius: 3px;
    background: #c8c8cc;
    margin: 0 auto;
}

/* Screen viewport — scrollable window */
.email-device__screen {
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    position: relative;
}
/* Thin scrollbar */
.email-device__screen::-webkit-scrollbar { width: 4px; }
.email-device__screen::-webkit-scrollbar-track { background: transparent; }
.email-device__screen::-webkit-scrollbar-thumb { background: #c8c8cc; border-radius: 2px; }

/*
 * Scaler trick: this div is sized to the SCALED dimensions
 * so the scroll container knows the real scrollable height.
 * The iframe inside uses transform: scale() + transform-origin: top left.
 */
.email-device__scaler {
    overflow: hidden;
    position: relative;
}
.email-device__iframe {
    border: none;
    display: block;
    transform-origin: top left;
    position: absolute;
    top: 0;
    left: 0;
}

/* ── Desktop device ── */
.email-device--desktop {
    flex: 1;
    min-width: 0;
}
.email-device--desktop .email-device__screen {
    height: 480px;
}
/* Desktop: 1000px iframe scaled down so the 65%-width email content
   sits centred with visible background — like a real email client.
   scale = container-width / 1000.  JS sets transform inline.
   Scaler height = 2400 × scale → gives correct scroll region */
.email-device--desktop .email-device__scaler {
    width: 100%;
    /* height set via inline style by JS: iframeHeight * scale */
}
.email-device__iframe--desktop {
    width: 1000px;
    height: 2400px;
    transform: scale(var(--ds, 0.45));
}

/* ── Mobile device ── */
.email-device--mobile {
    width: 200px;
    flex-shrink: 0;
}
.email-device--mobile .email-device__bar {
    justify-content: center;
    padding: 5px 8px;
}
.email-device--mobile .email-device__screen {
    height: 480px;
}
.email-device--mobile .email-device__scaler {
    width: 200px;
    /* 2400 × 0.533 = 1280 */
    height: 1280px;
}
.email-device__iframe--mobile {
    width: 375px;
    height: 2400px;
    transform: scale(0.533);   /* 200 / 375 */
}

/* Action buttons row */
.email-preview__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.btn--outline {
    background: transparent;
    border: 1.5px solid var(--color-brand-blue);
    color: var(--color-brand-blue);
    transition: all 0.15s ease;
}
.btn--outline:hover {
    background: var(--color-brand-blue);
    color: white;
}

/* ── Responsive: stack on small screens ── */
@media only screen and (max-width: 700px) {
    .email-preview-duo {
        flex-direction: column;
        align-items: stretch;
    }
    .email-device--desktop { width: 100%; }
    .email-device--desktop .email-device__screen { height: 320px; }
    .email-device--mobile {
        width: 200px;
        align-self: center;
    }
    .email-device--mobile .email-device__screen { height: 360px; }
    .email-preview__actions { flex-direction: column; }
}

/* ── 18. Respect reduced motion ── */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

