/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,100..900&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand - aligned with React reference UI */
    --color-brand-green: #15502E;
    --color-brand-green-dark: #0D3B1F;
    --color-brand-green-light: #1D6B3C;
    --color-brand-orange: #FF6106;
    --color-brand-orange-dark: #E55605;
    --color-brand-orange-light: #FEE3DA;
    --color-brand-yellow: #FFE782;
    --color-brand-blue: #ABD8F9;
    --color-brand-cream: #F8F7F5;

    /* Neutrals */
    --color-white: #FFFFFF;
    --color-gray-50: #F8F7F5;
    --color-gray-100: #F3F3F3;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;

    /* Status Colors */
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    --color-info: #3B82F6;

    /* Semantic Aliases */
    --bg-primary: var(--color-brand-cream);
    --bg-surface: var(--color-white);
    --text-primary: #212631;
    --text-secondary: #14201E;
    --border-color: rgba(0, 0, 0, 0.06);

    /* Shadows */
    --shadow-soft: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-elevated: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

img,
svg,
iframe,
video {
    max-width: 100%;
}

.specification-text {
    margin-top: 12px;
}

.specification-text h5 {
    margin-bottom: 8px;
}

.specification-text p {
    margin: 6px 0;
}

.specification-text .spec-subsection {
    margin-top: 14px;
    margin-left: 0;
}

.specification-text .spec-paragraph {
    margin-left: 20px;
}

.specification-text .spec-subparagraph {
    margin-left: 40px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fraunces', 'Georgia', 'Times New Roman', serif;
    font-weight: 600;
}

code, pre, .code-inline {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

/* Brand Title */
.brand-title {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-variation-settings: 'opsz' 24, 'SOFT' 0, 'WONK' 0;
}

/* Accessibility: Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only.focus-visible:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: 12px 24px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background-color: var(--color-brand-green);
    color: white;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    border-radius: 0 0 6px 0;
}

/* Focus Ring Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-brand-green);
}

/* ============================================
   NAVIGATION - Floating pill navbar
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    justify-content: center;
    padding: 20px 24px 0;
    background: transparent;
    pointer-events: none;
}

.nav-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    flex-wrap: nowrap;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 16px;
    box-shadow: var(--shadow-elevated), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: auto;
    transition: box-shadow 0.3s ease;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.nav-brand:hover {
    text-decoration: none;
    opacity: 0.85;
}

a.nav-brand:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-brand-green);
    border-radius: 8px;
}

.nav-brand .quill-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-brand .quill-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.nav-brand h1 {
    font-size: 20px;
    font-family: 'Fraunces', serif;
    color: var(--text-primary);
    font-weight: 800;
    font-variation-settings: 'opsz' 24, 'SOFT' 0, 'WONK' 0;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    display: flex;
    align-items: center;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-item {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    opacity: 0.7;
    padding: 8px 16px;
    border-radius: 10px;
    transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    font-family: 'IBM Plex Sans', sans-serif;
    line-height: 1.5;
    min-height: 44px;
}

.nav-menu > .nav-item > a:hover {
    background-color: var(--color-gray-100);
    color: var(--text-primary);
    opacity: 1;
}

.nav-menu > .nav-item > a.active {
    background-color: transparent;
    color: var(--text-primary);
    font-weight: 600;
    opacity: 1;
    position: relative;
}

.nav-menu > .nav-item > a.active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 16px;
    right: 16px;
    height: 2px;
    border-radius: 1px;
    background-color: var(--color-brand-green);
}


/* ---- Hamburger toggle button ---- */
.nav-toggle {
    display: none;           /* hidden on desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
    background-color: var(--color-gray-100);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate hamburger → X when open */
.nav-toggle.open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open .hamburger-line:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- Responsive nav collapse ---- */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-container {
        flex-wrap: wrap;
        position: relative;
    }

    .nav-menu {
        /* Collapsed by default */
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        order: 3;             /* push below brand + toggle row */
        padding: 8px 0 12px;
        gap: 2px;
        border-top: 1px solid var(--color-gray-100);
        margin-top: 8px;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu a {
        width: 100%;
        justify-content: flex-start;
        border-radius: 8px;
        padding: 10px 16px;
    }

    .nav-menu > .nav-item > a.active::after {
        /* Switch underline to left-bar in mobile dropdown */
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
        left: 0;
        right: auto;
        width: 3px;
        height: 60%;
        border-radius: 2px;
    }

}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--color-brand-green-dark) 0%, var(--color-brand-green) 50%, var(--color-brand-green-light) 100%);
    padding: 80px 32px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Animated Pencil Marks Background */
.pencil-marks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.15;
    z-index: 0;
}

.pencil-mark {
    position: absolute;
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 2;
    stroke-linecap: round;
    fill: none;
    opacity: 0;
}

.pencil-mark path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

@keyframes drawPencil {
    0% {
        opacity: 0;
        stroke-dashoffset: 1000;
    }
    10% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        stroke-dashoffset: 0;
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.project-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 9999px;
    font-size: 14px;
    margin-bottom: 24px;
    font-weight: 500;
}

.hero-title {
    font-family: 'Fraunces', serif;
    font-size: 48px;
    font-weight: 800;
    font-variation-settings: 'opsz' 24, 'SOFT' 0, 'WONK' 0;
    line-height: 1.2;
    margin-bottom: 24px;
    max-width: 800px;
}

.hero-title .highlight {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 800;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    font-family: 'IBM Plex Sans', sans-serif;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--color-brand-orange);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: var(--shadow-soft);
    font-family: 'IBM Plex Sans', sans-serif;
    border: none;
    cursor: pointer;
    min-height: 44px;
}

.btn-primary:hover {
    background-color: var(--color-brand-orange-dark);
    box-shadow: var(--shadow-elevated);
    transform: translateY(-1px);
}

/* Button Component System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 10px;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    font-family: 'IBM Plex Sans', sans-serif;
    min-height: 44px;
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-brand-green);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--color-gray-300);
}

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

.btn--primary:hover {
    background-color: var(--color-brand-green-dark);
}

.btn--secondary {
    background-color: var(--color-gray-100);
    color: var(--color-gray-700);
}

.btn--secondary:hover {
    background-color: var(--color-gray-200);
}

.btn--ghost {
    background: none;
    color: var(--text-secondary);
}

.btn--ghost:hover {
    background-color: var(--color-gray-100);
    color: var(--text-primary);
}

.btn--danger {
    background-color: var(--color-error);
    color: white;
}

.btn--danger:hover {
    background-color: #DC2626;
}

.btn--sm {
    padding: 6px 12px;
    font-size: 12px;
    min-height: 36px;
}

.btn--lg {
    padding: 12px 24px;
    font-size: 16px;
    min-height: 48px;
}

.github-icon {
    display: flex;
    align-items: center;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}
/* Project tag */
.project-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.06);
    padding: 8px 16px;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 32px;
}

.project-tag svg {
    opacity: 0.7;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    padding: 64px 32px;
    background-color: var(--bg-surface);
}

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

.features h2,
.about h2,
.team h2,
.gallery h2 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-primary);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.feature-card {
    background: white;
    border: 1px solid rgba(21, 80, 46, 0.1);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--color-brand-green);
    box-shadow: 0 8px 24px rgba(21, 80, 46, 0.08);
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #f0f4f2 0%, #e8f0ec 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-brand-green);
}

.feature-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px;
}

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

    .feature-card {
        padding: 28px 20px;
    }

    .feature-card h3 {
        font-size: 18px;
    }

    .feature-card p {
        font-size: 14px;
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 64px 32px;
    background-color: var(--bg-surface);
}

/* About section - new Problem/Solution design */
.section-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-brand-green);
    text-align: center;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Fraunces', serif;
    font-size: 32px;
    font-weight: 800;
    font-variation-settings: 'opsz' 24, 'SOFT' 0, 'WONK' 0;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 48px;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--color-brand-orange);
    margin: 16px auto 0;
    border-radius: 2px;
}

.about-grid,
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.ps-block {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.ps-block:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-2px);
}

.ps-block--problem {
    border-top: 4px solid var(--color-brand-blue);
}

.ps-block--solution {
    border-top: 4px solid var(--color-brand-green);
}

.ps-block-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding: 5px 12px;
    border-radius: 9999px;
}

.ps-block--problem .ps-block-label {
    background: rgba(171, 216, 249, 0.25);
    color: #1a5a8a;
}

.ps-block--solution .ps-block-label {
    background: rgba(21, 80, 46, 0.08);
    color: var(--color-brand-green);
}

.ps-block-label svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.ps-block h3 {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    line-height: 1.3;
}

.ps-block p {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-gray-600);
    text-align: left;
}

.partners-block {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 32px 40px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    text-align: center;
}

.partners-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-gray-400);
    margin-bottom: 24px;
}

.partners-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    transition: opacity 0.2s ease, filter 0.2s ease;
    filter: grayscale(1);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0);
}

.partner-logo-box {
    display: none;
}

.partner-wordmark {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
}

.partner-wordmark--ibm {
    font-family: 'IBM Plex Sans', sans-serif;
    color: #1F70C1;
    letter-spacing: 3px;
}

.partner-wordmark--qualcomm {
    font-family: 'IBM Plex Sans', sans-serif;
    color: #3253DC;
    font-size: 20px;
}

.partner-wordmark--nas {
    font-family: 'IBM Plex Sans', sans-serif;
    color: #E8000D;
    font-weight: 900;
    letter-spacing: 2px;
}

.partner-wordmark--ucl {
    font-family: 'IBM Plex Sans', sans-serif;
    color: #500778;
    font-weight: 900;
    letter-spacing: 2px;
    font-size: 26px;
}

.partner-name {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-gray-500);
    letter-spacing: 0.3px;
}

.partner-divider {
    width: 1px;
    height: 32px;
    background: var(--color-gray-200);
}

@media (max-width: 768px) {
    .about-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .partners-row {
        gap: 24px;
    }

    .partner-divider {
        display: none;
    }
}

/* ============================================
   VIDEO DEMONSTRATION SECTION
   ============================================ */
.video-demo {
    padding: 64px 32px;
    background-color: var(--bg-primary);
}

.video-demo h2 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.video-demo p {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 32px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-elevated);
    background-color: #000;
}

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

.about p {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   STATISTICS SECTION
   ============================================ */
.stats-section {
    padding: 64px 32px;
    background-color: var(--bg-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

/* ============================================
   TIMELINE SECTION
   ============================================ */
.timeline {
    padding: 64px 32px;
    background-color: var(--bg-surface);
}

.timeline h2 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.timeline p {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 32px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.timeline-chart {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--bg-surface);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.timeline-chart:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-2px);
}

.timeline-chart img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team {
    padding: 64px 32px;
    background-color: var(--bg-primary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
    padding: 32px 24px;
    background-color: var(--bg-surface);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.team-member.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
}

.member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--color-brand-green), var(--color-brand-green-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 4px 6px -1px rgba(45, 90, 61, 0.3);
    overflow: hidden;
    position: relative;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9999px;
}

.member-avatar svg {
    width: 40px;
    height: 40px;
    stroke: white;
}

.team-member h3 {
    font-family: 'Fraunces', serif;
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
}

.team-member p {
    color: var(--text-secondary);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery {
  padding: 64px 32px;
  background-color: var(--bg-secondary);
}


/* ============================================
   DOCUMENTATION PAGES
   ============================================ */

/* Documentation Layout Container - Card style matching React app */
.doc-layout {
    max-width: 1200px;
    margin: 24px auto;
    background-color: var(--bg-surface);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

/* Main Content */
.doc-content {
    min-width: 0;
    padding: 48px;
}

/* Inline Page Header within doc-content */
.doc-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    text-align: center;
}

.doc-header h1 {
    font-family: 'Fraunces', serif;
    font-size: 32px;
    font-weight: 800;
    font-variation-settings: 'opsz' 24, 'SOFT' 0, 'WONK' 0;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
    padding-left: 0;
    border-left: none;
    padding-right: 0;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 4px solid var(--color-brand-orange);
    display: inline-block;
}

.doc-header p {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px;
    color: var(--color-gray-500);
    margin: 16px auto 0;
    line-height: 1.6;
    max-width: 700px;
}

.doc-content h2 {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 32px 0 16px 0;
    scroll-margin-top: 100px;
    padding-left: 16px;
    border-left: 4px solid var(--color-brand-green);
}

.doc-content h2:first-of-type {
    margin-top: 0;
}

.doc-content h3 {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 12px 0;
    padding-left: 12px;
    border-left: 3px solid var(--color-brand-blue);
}

.doc-content h4 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-brand-green);
    margin: 20px 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doc-content p {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.doc-figure {
    margin: 24px auto 28px;
    text-align: center;
}

.doc-figure img {
    width: 100%;
    max-width: 1040px;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--color-white);
    box-shadow: var(--shadow-soft);
}

.doc-figure figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: var(--color-gray-500);
    font-style: italic;
}

/* Keep inline citation links readable without drawing too much attention. */
.doc-content p a[href^="#ref-"] {
    color: inherit;
    text-decoration-color: var(--color-gray-400);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.doc-content p a[href^="#ref-"]:visited {
    color: inherit;
}

.doc-content p a[href^="#ref-"]:hover {
    color: var(--text-primary);
    text-decoration-color: var(--color-brand-green);
}

.doc-content p a[href^="#ref-"]:focus-visible {
    border-radius: 2px;
}

.doc-content ul,
.doc-content ol {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.doc-content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.doc-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   DOCUMENT SECTIONS — Distinct content blocks
   ============================================ */
.doc-content.has-sections {
    padding-bottom: 0;
}

.doc-section {
    margin-left: -48px;
    margin-right: -48px;
    padding: 56px 48px 24px;
}

.doc-section:last-of-type {
    padding-bottom: 56px;
}

.doc-section--alt {
    background-color: var(--bg-primary);
}

/* Override doc-content h2 inside sections — centered like homepage */
.doc-section > h2 {
    text-align: center;
    border-left: none;
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 40px;
    font-size: 30px;
}

.doc-section > h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--color-brand-green);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ============================================
   TABLE OF CONTENTS — Floating button
   ============================================ */
.toc-wrapper {
    position: fixed;
    bottom: 28px;
    right: 28px;
    top: auto;
    z-index: 30;
}

.toc-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background-color: var(--color-brand-green);
    border: none;
    border-radius: 12px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    min-height: 44px;
    box-shadow: 0 4px 16px rgba(21, 80, 46, 0.35), 0 1px 4px rgba(0,0,0,0.1);
}

.toc-toggle:hover {
    background-color: var(--color-brand-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(21, 80, 46, 0.4), 0 2px 6px rgba(0,0,0,0.1);
}

.toc-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-brand-green);
}

.toc-toggle svg {
    flex-shrink: 0;
}

.toc-chevron {
    transition: transform 0.2s ease;
}

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

.toc-menu {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    min-width: 260px;
    max-width: 360px;
    background-color: var(--bg-surface);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: var(--shadow-elevated);
    padding: 6px;
    z-index: 20;
    max-height: 400px;
    overflow-y: auto;
}

.toc-menu.open {
    display: block;
    animation: scale-in 150ms ease-out;
}

.toc-menu ol {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: toc-counter;
}

.toc-menu li {
    counter-increment: toc-counter;
    margin: 0;
}

.toc-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
    line-height: 1.4;
}

.toc-menu a::before {
    content: counter(toc-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 6px;
    background-color: var(--color-gray-100);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.toc-menu a:hover {
    background-color: var(--color-gray-100);
    color: var(--text-primary);
}

.toc-menu a.toc-active {
    background-color: rgba(21, 80, 46, 0.08);
    color: var(--color-brand-green);
}

.toc-menu a.toc-active::before {
    background-color: var(--color-brand-green);
    color: white;
}

/* ============================================
   PERSONA CARDS
   ============================================ */
.persona-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.persona-card {
    background-color: var(--bg-surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.persona-card:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-2px);
}

.persona-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   USE CASE TABLES
   ============================================ */
.use-case-table {
    background-color: var(--bg-surface);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    overflow: hidden;
    margin: 24px 0;
    box-shadow: var(--shadow-soft);
}

.use-case-header {
    display: grid;
    grid-template-columns: 120px 1fr;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
}

.use-case-id {
    background-color: var(--color-brand-green);
    color: white;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.use-case-title {
    font-family: 'Fraunces', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 16px;
    display: flex;
    align-items: center;
}

.use-case-body {
    padding: 0;
}

.use-case-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    border-bottom: 1px solid var(--color-gray-100);
    min-height: 44px;
}

.use-case-row:last-child {
    border-bottom: none;
}

.use-case-label {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 12px 16px;
    background-color: var(--color-gray-50);
    display: flex;
    align-items: flex-start;
}

.use-case-content {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 12px 16px;
    line-height: 1.6;
}

.use-case-content ol {
    margin: 0;
    padding-left: 20px;
}

.use-case-content ol li {
    margin-bottom: 6px;
    color: var(--text-secondary);
}

/* ============================================
   WHITE BACKGROUND SECTION
   ============================================ */
.white-bg-section {
    background-color: white;
    padding: 32px;
    margin: 24px -32px;
    border-radius: 8px;
}

/* ============================================
   SKETCH IMAGES
   ============================================ */
.sketch-image {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.sketch-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: subpixel-antialiased;
}

/* Sketch Comparison Layout */
.sketch-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
}

.sketch-column h4 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    text-align: center;
}

/* ============================================
   ISSUE TABLES
   ============================================ */
.issue-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background-color: var(--bg-surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    font-family: 'IBM Plex Sans', sans-serif;
}

.issue-table thead {
    background-color: var(--color-brand-green);
    color: white;
}

.issue-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.issue-table tbody tr {
    border-bottom: 1px solid var(--color-gray-100);
}

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

.issue-table tbody td {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    vertical-align: top;
}

.issue-table tbody td:last-child {
    text-align: center;
    font-weight: 600;
    color: var(--color-brand-green);
    font-size: 16px;
}

/* ============================================
   LEGACY CONTENT PAGE SUPPORT
   ============================================ */
.content-page {
    max-width: 900px;
    margin: 32px auto;
    padding: 24px;
    background-color: var(--bg-surface);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.content-page h1 {
    font-family: 'Fraunces', serif;
    font-size: 30px;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 800;
    font-variation-settings: 'opsz' 24, 'SOFT' 0, 'WONK' 0;
}

.content-page h2 {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    padding: 12px;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.content-page h2:hover {
    background-color: var(--color-gray-100);
}

.content-page h2.collapsible::before {
    content: '\25BC ';
    color: var(--color-brand-green);
    margin-right: 8px;
    transition: transform 0.2s ease;
    display: inline-block;
}

.content-page h2.collapsible.collapsed::before {
    transform: rotate(-90deg);
}

.content-page .collapsible-content {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    opacity: 1;
}

.content-page .collapsible-content.collapsed {
    max-height: 0;
    opacity: 0;
}

.content-page h3 {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.content-page h4 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-brand-green);
    margin: 20px 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content-page p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px;
}

.content-page ul,
.content-page ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.content-page li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-family: 'IBM Plex Sans', sans-serif;
    line-height: 1.8;
    font-size: 15px;
}

.content-page a {
    color: var(--color-brand-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

.content-page a:hover {
    color: var(--color-brand-green-dark);
    text-decoration: underline;
}

/* ============================================
   CARD COMPONENT
   ============================================ */
.card {
    background-color: var(--bg-surface);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 24px;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-elevated);
}

.card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.card__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.card__description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* ============================================
   SUBCARDS — Colored accent cards (React ClassDashboard pattern)
   ============================================ */
.subcard {
    background-color: var(--bg-surface);
    border-radius: 12px;
    padding: 24px;
    margin: 16px 0;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-soft);
    border-top: 4px solid var(--color-gray-200);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.subcard:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-2px);
}

.subcard--orange { border-top-color: var(--color-brand-orange); }
.subcard--blue   { border-top-color: var(--color-brand-blue); }
.subcard--green  { border-top-color: var(--color-brand-green); }
.subcard--yellow { border-top-color: var(--color-brand-yellow); }

.subcard h4 {
    margin-top: 0;
}

.subcard p:last-child,
.subcard ul:last-child,
.subcard ol:last-child {
    margin-bottom: 0;
}

.subcard__title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* MoSCoW List Completed Items */
.requirement-item {
    margin-bottom: 16px;
    line-height: 1.7;
}

.requirement-item.completed {
    list-style: none;
    position: relative;
    padding-left: 0;
}

.requirement-item.completed::before {
    content: "✓";
    color: var(--color-success);
    font-weight: 700;
    font-size: 18px;
    margin-right: 10px;
}

.requirement-note {
    display: inline;
    font-size: 12px;
    color: var(--color-brand-green);
    margin-left: 8px;
    font-style: italic;
    line-height: 1.5;
    font-weight: 500;
}

/* User Interactions Diagram */
.user-flow-diagram {
    margin: 24px 0;
    background: var(--color-gray-50);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border-color);
}

.user-flow-grid {
    display: flex;
    gap: 48px;
    justify-content: center;
}

.user-flow-col {
    flex: 1;
    max-width: 480px;
}

.user-flow-title {
    text-align: center;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 24px;
    font-family: 'IBM Plex Sans', sans-serif;
    letter-spacing: 0.02em;
}

.user-flow-title--teacher { background: var(--color-brand-orange); }
.user-flow-title--student { background: var(--color-brand-green); }

.user-flow-actor {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.user-flow-actor svg { display: block; }

.user-flow-actor--teacher { background: var(--color-brand-orange-light); }
.user-flow-actor--student { background: rgba(21, 80, 46, 0.1); }

.user-flow-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 18px;
    text-align: center;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-soft);
}

.user-flow-box--highlight {
    border-color: var(--color-brand-orange);
    background: var(--color-brand-orange-light);
}

.user-flow-arrow {
    display: flex;
    justify-content: center;
    color: var(--color-brand-orange);
    margin: 8px 0;
}

.user-flow-split {
    display: flex;
    gap: 10px;
    margin: 8px 0;
}

.user-flow-split-box {
    flex: 1;
    background: var(--bg-surface);
    border: 1px solid var(--color-gray-300);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--color-gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
}

.user-flow-split-box--a { border-color: var(--color-brand-orange); }
.user-flow-split-box--b { border-color: var(--color-brand-green); }
.user-flow-split-box--warn { border-color: var(--color-warning); background: #FFFBEB; }

.user-flow-network {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.user-flow-network-label {
    text-align: center;
    color: var(--color-brand-orange);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.user-flow-network-bar {
    height: 3px;
    background: var(--color-brand-orange);
    border-radius: 2px;
    margin-bottom: 20px;
}

.user-flow-network-cols {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.user-flow-network-side { flex: 1; text-align: center; }

.user-flow-network-side-title {
    color: var(--color-brand-orange);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.user-flow-network-side p {
    color: var(--color-gray-500);
    font-size: 13px;
    line-height: 1.7;
}

.user-flow-network-center {
    background: var(--color-brand-green);
    color: white;
    padding: 20px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    box-shadow: var(--shadow-elevated);
    white-space: nowrap;
}

.user-flow-network-center span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.85;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .user-flow-grid {
        flex-direction: column;
    }
    .user-flow-col { max-width: 100%; }
    .user-flow-network-cols { flex-direction: column; }
}

/* Interview tabs */
.interview-tabs {
    margin: 24px 0;
}

.interview-tab-buttons {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--color-gray-200);
    margin-bottom: 24px;
}

.interview-tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray-500);
    position: relative;
    transition: color 0.2s ease;
}

.interview-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-brand-green);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.interview-tab-btn.active {
    color: var(--text-primary);
    font-weight: 600;
}

.interview-tab-btn.active::after {
    opacity: 1;
}

.interview-tab-panel {
    display: none;
}

.interview-tab-panel.active {
    display: block;
}

.interview-placeholder {
    padding: 32px;
    background-color: var(--color-gray-50);
    border-radius: 12px;
    border: 2px dashed var(--color-gray-300);
    color: var(--color-gray-500);
    text-align: center;
    font-size: 14px;
}

/* Grid layout for subcards */
.subcard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.subcard-grid .subcard {
    margin: 0;
}

/* ============================================
   INFO BANNERS — Colored callout boxes
   ============================================ */
.info-banner {
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0;
    border-left: 4px solid;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    line-height: 1.7;
}

.info-banner--orange {
    background-color: var(--color-brand-orange-light);
    border-left-color: var(--color-brand-orange);
    color: var(--text-secondary);
}

.info-banner--blue {
    background-color: rgba(171, 216, 249, 0.25);
    border-left-color: var(--color-brand-blue);
    color: var(--text-secondary);
}

.info-banner--green {
    background-color: rgba(21, 80, 46, 0.06);
    border-left-color: var(--color-brand-green);
    color: var(--text-secondary);
}

.info-banner--yellow {
    background-color: rgba(255, 231, 130, 0.25);
    border-left-color: var(--color-brand-yellow);
    color: var(--text-secondary);
}

.info-banner p {
    margin: 0 0 8px 0;
}

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

.info-banner strong {
    color: var(--text-primary);
}

/* ============================================
   COLOR DOT INDICATORS
   ============================================ */
.color-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    flex-shrink: 0;
}

.color-dot--orange { background-color: var(--color-brand-orange); }
.color-dot--blue   { background-color: var(--color-brand-blue); }
.color-dot--green  { background-color: var(--color-brand-green); }
.color-dot--yellow { background-color: var(--color-brand-yellow); }

/* ============================================
   METRIC HIGHLIGHTS (inside subcards)
   ============================================ */
.subcard__metric {
    font-family: 'Fraunces', serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}

.subcard__metric--orange { color: var(--color-brand-orange); }
.subcard__metric--blue   { color: var(--color-brand-blue); }
.subcard__metric--green  { color: var(--color-brand-green); }
.subcard__metric--yellow { color: #B8960A; }

.subcard__label {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   PROGRESS BARS
   ============================================ */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--color-gray-100);
    border-radius: 9999px;
    overflow: hidden;
    margin: 8px 0;
}

.progress-bar__fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.6s ease;
}

.progress-bar__fill--orange { background-color: var(--color-brand-orange); }
.progress-bar__fill--blue   { background-color: var(--color-brand-blue); }
.progress-bar__fill--green  { background-color: var(--color-brand-green); }
.progress-bar__fill--yellow { background-color: var(--color-brand-yellow); }

/* ============================================
   BADGES & TAGS
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 9999px;
    font-family: 'IBM Plex Sans', sans-serif;
}

.badge--success {
    background-color: #D1FAE5;
    color: #065F46;
}

.badge--warning {
    background-color: #FEF3C7;
    color: #92400E;
}

.badge--error {
    background-color: #FEE2E2;
    color: #991B1B;
}

.badge--info {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.badge--primary {
    background-color: var(--color-brand-green);
    color: white;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 9999px;
    background-color: var(--color-gray-100);
    color: var(--text-secondary);
    font-family: 'IBM Plex Sans', sans-serif;
}

/* ============================================
   INPUT & FORM
   ============================================ */
.input {
    display: block;
    width: 100%;
    padding: 8px 16px;
    font-size: 14px;
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 44px;
}

.input:focus {
    outline: none;
    border-color: var(--color-brand-green);
    box-shadow: 0 0 0 2px rgba(21, 80, 46, 0.15);
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-family: 'IBM Plex Sans', sans-serif;
}

.form-helper {
    font-size: 12px;
    color: var(--color-gray-400);
    margin-top: 4px;
    font-family: 'IBM Plex Sans', sans-serif;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state__icon {
    color: var(--color-gray-400);
    margin-bottom: 16px;
}

.empty-state__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state__description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ============================================
   ICON BUTTON
   ============================================ */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.icon-btn:hover {
    background-color: var(--color-gray-100);
    color: var(--text-primary);
}

/* ============================================
   AVATAR
   ============================================ */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    overflow: hidden;
    background-color: var(--color-brand-green);
    color: white;
    font-weight: 600;
    font-family: 'IBM Plex Sans', sans-serif;
}

.avatar--sm {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.avatar--md {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.avatar--lg {
    width: 64px;
    height: 64px;
    font-size: 20px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    text-align: center;
    padding: 32px;
    margin-top: 0;
}

footer p {
    margin: 4px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================
   SMOOTH SCROLLING
   ============================================ */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fade-in 200ms ease-out;
}

.animate-slide-up {
    animation: slide-up 300ms ease-out;
}

.animate-scale-in {
    animation: scale-in 200ms ease-out;
}

/* Spinner */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   FRAUNCES UTILITY CLASSES
   ============================================ */
.font-fraunces-preferred {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-variation-settings: 'opsz' 24, 'SOFT' 0, 'WONK' 0;
}

.font-fraunces-display {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-variation-settings: 'opsz' 24, 'SOFT' 0, 'WONK' 0;
}

.font-fraunces-heading {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-variation-settings: 'opsz' 24, 'SOFT' 0, 'WONK' 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .navbar {
        padding: 8px 8px 0;
    }

    .nav-container {
        padding: 0 12px;
        min-height: 56px;
        border-radius: 12px;
    }

    .nav-brand h1 {
        font-size: 18px;
    }

    .nav-menu a {
        font-size: 14px;
        padding: 10px 12px;
        min-height: 44px;
    }

    .hero {
        padding: 48px 16px;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-description {
        font-size: 16px;
    }

    .feature-grid,
    .team-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .content-page {
        padding: 16px;
        margin: 16px;
        border-radius: 14px;
    }

    .content-page h1 {
        font-size: 24px;
    }

    .content-page h2 {
        font-size: 20px;
    }

    /* Documentation responsive */
    .doc-layout {
        margin: 12px;
    }

    .doc-content {
        padding: 24px 16px;
    }

    .doc-header h1 {
        font-size: 24px;
    }

    .toc-wrapper {
        top: auto;
        right: 16px;
        bottom: 16px;
    }

    .toc-menu {
        min-width: 220px;
    }

    .doc-section {
        margin-left: -16px;
        margin-right: -16px;
        padding: 40px 16px 16px;
    }

    .doc-section:last-of-type {
        padding-bottom: 40px;
    }

    .doc-section > h2 {
        font-size: 22px;
        margin-bottom: 28px;
    }

    .doc-content h2 {
        font-size: 20px;
    }

    .doc-content p,
    .doc-content ul,
    .doc-content ol {
        font-size: 14px;
    }

    .persona-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .use-case-header {
        grid-template-columns: 80px 1fr;
    }

    .use-case-id {
        font-size: 14px;
        padding: 12px 8px;
    }

    .use-case-title {
        font-size: 16px;
        padding: 12px;
    }

    .use-case-row {
        grid-template-columns: 1fr;
    }

    .use-case-label {
        border-bottom: none;
        padding: 8px 12px 0 12px;
        background-color: var(--bg-surface);
    }

    .use-case-content {
        padding: 0 12px 8px 12px;
    }

    .issue-table {
        font-size: 13px;
    }

    .issue-table thead th,
    .issue-table tbody td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .sketch-image {
        margin: 12px 0;
    }

    .sketch-comparison {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .doc-content pre {
        font-size: 12px;
        padding: 16px;
    }

    .doc-content table {
        font-size: 13px;
    }

    .doc-content table th,
    .doc-content table td {
        padding: 12px 14px;
        font-size: 13px;
    }

    .doc-content table td:first-child {
        width: 40%;
    }
}

/* Table improvements */
.doc-content table caption {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-gray-600);
    text-align: left;
    padding: 8px 0;
    caption-side: top;
    margin-bottom: 8px;
}

/* Section numbering style for professional reports */
.doc-content h2 {
    counter-increment: section;
    counter-reset: subsection;
}

.doc-content h3 {
    counter-increment: subsection;
}

/* ============================================
   IMPLEMENTATION PAGE STYLES - REPORT STYLE
   ============================================ */

/* Intro section */
.intro-card {
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 24px 0;
}

.intro-card p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.intro-card strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Attribution text */
.attribution {
    font-style: italic;
    color: var(--color-gray-500);
    font-size: 13px;
    margin-top: -4px;
    margin-bottom: 20px;
}

/* Screenshot placeholders */
.screenshot-placeholder {
    background-color: #f9fafb;
    border: 1px dashed var(--color-gray-300);
    padding: 50px 24px;
    margin: 24px 0;
    text-align: center;
}

.screenshot-placeholder p {
    color: var(--color-gray-500);
    font-size: 13px;
    font-weight: 400;
    margin: 0;
}

/* Implementation screenshots */
.implementation-screenshot {
    width: 100%;
    max-width: 920px;
    height: auto;
    margin: 24px auto;
    border: 1px solid var(--color-gray-200);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: block;
}

.implementation-screenshot-mobile {
    max-width: 360px;
    height: auto;
    margin: 24px auto;
    border: 1px solid var(--color-gray-200);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: block;
}

/* Warning boxes */
.warning-box {
    background-color: #fffbf0;
    border-left: 4px solid var(--color-brand-orange);
    padding: 16px 20px;
    margin: 20px 0;
}

.warning-box p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
    line-height: 1.7;
}

.warning-box strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Code blocks - programmer-style */
.doc-content pre {
    background-color: #1e1e1e;
    color: #d4d4d4;
    border: 1px solid #333;
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Courier New', monospace;
    border-radius: 6px;
    line-height: 1.6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.doc-content pre code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Courier New', monospace;
    font-size: 13.5px;
    line-height: 1.6;
    color: #d4d4d4;
    background: transparent;
    padding: 0;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.doc-content code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Courier New', monospace;
    background-color: #f3f4f6;
    color: #c7254e;
    padding: 3px 7px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
}

/* Pseudocode headers */
.doc-content h4 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 28px;
    margin-bottom: 12px;
}

/* Tables - Clean Report Style */
.doc-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    background-color: white;
    border: 1px solid var(--color-gray-200);
    font-size: 14px;
}

.doc-content table thead {
    background-color: #f9fafb;
    border-bottom: 2px solid var(--color-gray-300);
}

.doc-content table th {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    color: var(--text-primary);
    vertical-align: top;
}

.doc-content table td {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    padding: 12px 16px;
    border-top: 1px solid var(--color-gray-100);
    color: var(--text-secondary);
    line-height: 1.6;
    vertical-align: top;
}

.doc-content table td:first-child {
    font-weight: 500;
    color: var(--text-primary);
    width: 38%;
}

.doc-content table tbody tr:hover {
    background-color: #fafbfc;
}

/* Video Embeds */
.video-embed {
    position: relative;
    margin: 16px 0 8px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    background: #000;
    aspect-ratio: 16 / 9;
}

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

/* ============================================
   RESOURCE CARDS (Appendices)
   ============================================ */
.resource-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0 48px;
}

.resource-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
    border-color: rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: background-color 0.3s ease;
}

.github-card::before {
    background-color: #24292e;
}

.notion-card::before {
    background-color: #000000;
}

.resource-card:hover.github-card {
    border-color: #24292e;
}

.resource-card:hover.notion-card {
    border-color: #000000;
}

.resource-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    background: var(--color-gray-50);
    color: var(--text-primary);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.resource-card:hover .resource-icon {
    transform: scale(1.05);
}

.github-card:hover .resource-icon {
    background: rgba(36, 41, 46, 0.1);
    color: #24292e;
}

.notion-card:hover .resource-icon {
    background: rgba(0, 0, 0, 0.1);
    color: #000000;
}

.resource-content {
    flex-grow: 1;
}

.resource-content h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: var(--text-primary);
    font-family: 'Fraunces', serif;
    font-weight: 700;
}

.resource-content p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.resource-arrow {
    display: flex;
    align-items: center;
    color: var(--color-gray-400);
    transition: transform 0.3s ease, color 0.3s ease;
    align-self: center;
}

.resource-card:hover .resource-arrow {
    transform: translateX(4px);
    color: var(--color-brand-green);
}

@media (max-width: 640px) {
    .resource-cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   GETTING STARTED SECTION
   ============================================ */
.prerequisites-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.prereq-block {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.prereq-block h4 {
    margin-top: 0;
    margin-bottom: 16px;
    font-family: 'Fraunces', serif;
    color: var(--color-brand-green);
    font-weight: 700;
}

.prereq-block ul {
    margin: 0;
    padding-left: 20px;
}

.prereq-block li {
    margin-bottom: 8px;
    font-size: 14.5px;
    color: var(--text-secondary);
}

.prereq-block li:last-child {
    margin-bottom: 0;
}

.mb-4 {
    margin-bottom: 16px !important;
}

.custom-ordered-list {
    margin-bottom: 32px;
    padding-left: 20px;
}

.custom-ordered-list li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.custom-ordered-list strong {
    color: var(--text-primary);
}

.custom-ordered-list code {
    background: var(--color-gray-100);
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    color: var(--color-brand-orange-dark);
}

.info-callout {
    display: flex;
    gap: 16px;
    background: rgba(171, 216, 249, 0.15);
    border-left: 4px solid var(--color-brand-blue);
    padding: 20px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 32px;
}

.info-callout .callout-icon {
    flex-shrink: 0;
    color: #1a5a8a;
    padding-top: 2px;
}

.info-callout .callout-content {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.info-callout strong {
    color: #1a5a8a;
}

/* ============================================
   TESTIMONIALS / FEEDBACK
   ============================================ */
.testimonial-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px 0;
}

.testimonial-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: var(--shadow-soft);
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-2px);
}

.testimonial-content {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    flex-grow: 1;
    font-style: italic;
}

.testimonial-author-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    border-right: 1px solid var(--border-color);
    padding-right: 32px;
    width: 264px;
    flex-shrink: 0;
    order: -1;
}

.testimonial-crest {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-crest img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.testimonial-crest-placeholder {
    color: var(--color-gray-400);
    font-size: 12px;
    text-align: center;
    line-height: 1.2;
    padding: 4px;
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-break: break-word;
}

.testimonial-author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.testimonial-author-role {
    font-size: 13px;
    color: var(--color-brand-green);
    font-weight: 500;
}

.testimonial-author-school {
    font-size: 13px;
    color: var(--color-gray-500);
}

@media (max-width: 900px) {
        .testimonial-card {
                flex-direction: column;
                align-items: flex-start;
                gap: 20px;
                padding: 22px;
        }

        .testimonial-author-wrapper {
                width: 100%;
                order: 0;
                border-right: none;
                border-bottom: 1px solid var(--border-color);
                padding-right: 0;
                padding-bottom: 16px;
        }

        .testimonial-crest {
                width: 72px;
                height: 72px;
        }
}

/* Link styling, including citation links */
.doc-content p a, .doc-content table a {
  color: inherit;
  text-decoration-color: var(--color-gray-400);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.doc-content p a:hover,
.doc-content table a:hover,
.doc-content li a:hover {
    color: var(--text-primary);
    text-decoration-color: var(--color-brand-green);
}

/* Keep appendix/external links readable without affecting button-like links. */
.doc-content a:not(.btn):not(.resource-card) {
    text-decoration-line: underline;
    text-decoration-style: solid;
}

/* Ensure large flowcharts and diagrams never overflow the content card. */
.mermaid,
.user-flow-diagram {
    max-width: 100%;
    overflow-x: auto;
}

.mermaid svg {
    max-width: 100%;
    height: auto;
}

