/* Cyber Institute — design system adapted from Qwalisoft */

/* ============================================
   Professional Financial Data Application
   Design System & Styles
   ============================================ */

/* CSS Variables - Design System */
:root {
    /* Primary Colors */
    --primary-blue: #1e3a8a;
    --primary-blue-light: #3b82f6;
    --primary-blue-dark: #1e40af;
    
    /* Neutral Colors */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Content background - single white for all main content areas */
    --content-bg: #ffffff;
    
    /* Status Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --scrollbar-thumb-green: #166534;
    --scrollbar-thumb-green-hover: #14532d;
    --scrollbar-track-green: #e8f5e9;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --info: #3b82f6;
    --info-light: #dbeafe;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    /* Fixed header height (for body padding-top) — two-row header */
    --header-height: 7.5rem;
    /* Legacy alias — content uses full .container / .search-container width */
    --page-content-max-width: 100%;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 200ms ease-in-out;
    --transition-slow: 300ms ease-in-out;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--gray-800);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    min-height: 100vh;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--header-height);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
    color: var(--gray-700);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-blue-dark);
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.page-content {
    width: 100%;
    max-width: none;
}

/* Header - fixed at top so it does not scroll */
header {
    background: #fff;
    color: var(--gray-900);
    padding: 0.85rem 0;
    box-shadow: none;
    border-bottom: 1px solid var(--gray-200);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.header-page-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    min-width: 0;
}

.header-top-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

.header-account {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.7rem;
    border-radius: 9999px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    line-height: 1.2;
}

.header-account-sep {
    color: var(--gray-400);
    font-size: 0.75rem;
    user-select: none;
}

header h1,
.header-brand {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.header-brand-name {
    white-space: nowrap;
}

.header-brand-sep {
    color: var(--gray-400);
    font-weight: 400;
    white-space: nowrap;
}

.header-brand-tagline {
    font-weight: 500;
    color: var(--gray-600);
}

.header-beta-badge {
    font-weight: 600;
    color: var(--warning);
    letter-spacing: 0.025em;
}

header .logo-icon {
    font-size: 1.13rem;
    flex-shrink: 0;
}

.user-greeting {
    color: var(--gray-700);
    font-size: 0.8125rem;
    font-weight: 500;
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-logout-form {
    display: inline;
    margin: 0;
    line-height: 1;
}

.header-logout-btn {
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    font-weight: 500;
    padding: 0;
    transition: color var(--transition-fast);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
}

.header-logout-btn:hover {
    color: var(--gray-900);
    background: none;
}

/* Main navigation */
.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    padding-top: 0.45rem;
    border-top: 1px solid var(--gray-200);
}

.header-nav-primary,
.header-nav-secondary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem;
}

.header-nav-secondary {
    margin-left: auto;
}

.header-nav-link {
    display: inline-flex;
    align-items: center;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.8125rem;
    padding: 0.38rem 0.8rem;
    border-radius: 9999px;
    transition: background-color var(--transition-fast), color var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
}

.header-nav-link:hover {
    background-color: var(--gray-100);
    color: var(--gray-900);
}

.header-nav-link.nav-active {
    background-color: var(--gray-100);
    color: var(--gray-900);
    font-weight: 600;
}

.header-nav-secondary .header-nav-link {
    font-size: 0.78rem;
    color: var(--gray-600);
    padding: 0.32rem 0.65rem;
}

.header-nav-secondary .header-nav-link:hover {
    color: var(--gray-900);
    background-color: var(--gray-100);
}

.header-nav-secondary .header-nav-link.nav-active {
    background-color: var(--gray-100);
    color: var(--gray-900);
    font-weight: 600;
}

.header-nav-link.admin-nav-link.nav-active {
    background-color: #fffbeb;
    color: #92400e;
}

.header-nav-link-cta {
    background-color: var(--gray-900);
    border: 1px solid var(--gray-900);
    color: #fff;
}

.header-nav-link-cta:hover {
    background-color: var(--gray-800);
    color: #fff;
}

.header-nav-link-cta.nav-active {
    background-color: var(--gray-900);
    color: #fff;
    border-color: var(--gray-900);
}

@media (min-width: 769px) {
    .header-nav-secondary {
        padding-left: 0.65rem;
        border-left: 1px solid var(--gray-200);
    }
}

.header-nav form {
    display: inline;
    margin: 0;
}

.header-nav button[type="submit"] {
    background: none;
    border: none;
    color: var(--gray-700);
    cursor: pointer;
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
    font-family: var(--font-sans);
    font-size: 1rem;
}

.header-nav button[type="submit"]:hover {
    background-color: var(--gray-100);
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    width: 2rem;
    height: 0.25rem;
    background: var(--gray-800);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.hamburger-menu.active span:first-child {
    transform: rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Cards */
.card {
    background: var(--content-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    transition: box-shadow var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.card-header h2 {
    margin: 0;
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.card-body {
    padding: 0;
}

.card-body h3 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    color: var(--primary-blue);
    font-size: 1.25rem;
}

.card-body h3:first-child {
    margin-top: 0;
}

.card-body ul {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.card-body ul li {
    margin-bottom: var(--spacing-sm);
    color: var(--gray-700);
}

/* Search Container */
.search-container {
    background: var(--content-bg);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    color: var(--gray-800);
}

.search-container .form-group label {
    color: var(--gray-800);
}

.search-container h2 {
    margin-bottom: var(--spacing-xl);
    color: var(--gray-800);
    border-bottom: 3px solid var(--primary-blue-light);
    padding-bottom: var(--spacing-md);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    text-decoration: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-800);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

/* Footer – clean, Bloomberg-style hierarchy */
.site-footer,
footer.site-footer {
    background: #f5f6f8;
    color: #374151;
    padding: var(--spacing-lg) 0 var(--spacing-md);
    margin-top: var(--spacing-2xl);
    border-top: 1px solid #e5e7eb;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: var(--spacing-lg) var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    max-width: 100%;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #111827;
    margin: 0 0 var(--spacing-sm);
    padding: 0;
}

.footer-section ul.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-section p {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #4b5563;
}

.footer-section p.footer-tagline {
    font-weight: 600;
    color: #111827;
    font-size: 0.95rem;
}

.footer-section p.footer-desc {
    margin-bottom: var(--spacing-sm);
}

.footer-warning-badge {
    display: inline-block;
    background: #fef9e7;
    border: 1px solid #f0e6c8;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin: 0 0 var(--spacing-sm);
}

.footer-warning-badge .footer-warning-title {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #92400e;
    margin-bottom: 0.15rem;
}

.footer-warning-badge .footer-warning-text {
    font-size: 0.8rem;
    line-height: 1.35;
    color: #78350f;
}

.footer-link-more {
    font-size: 0.875rem;
    font-weight: 500;
}

.footer-section a,
.footer-disclaimer a {
    color: #2563eb;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-section a:hover,
.footer-disclaimer a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: var(--spacing-md);
    text-align: left;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #6b7280;
}

.footer-copyright {
    margin: 0 0 0.5rem;
    color: #6b7280;
}

.footer-disclaimer {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #6b7280;
    max-width: 56em;
}

.footer-disclaimer strong {
    color: #374151;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .header-brand-tagline {
        display: none;
    }

    .header-brand-sep {
        display: none;
    }
    
    .header-nav {
        gap: var(--spacing-sm);
    }
    
    .header-nav-link,
    .header-nav button {
        font-size: 0.78rem;
        padding: 0.32rem 0.6rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 4.75rem;
    }

    .container {
        padding: 0 var(--spacing-md);
    }
    
    .header-brand {
        font-size: 0.8rem;
    }
    
    .header-brand-tagline,
    .header-brand-sep {
        display: none;
    }

    .user-greeting {
        display: none;
    }

    .header-account {
        padding: 0.25rem 0.5rem;
        background: var(--gray-50);
        border: 1px solid var(--gray-200);
    }

    .header-account-sep {
        display: none;
    }

    .header-top-actions {
        align-items: center;
    }
    
    .header-content {
        gap: 0;
    }
    
    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: flex;
    }
    
    /* Hide regular nav by default on mobile */
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 4.5rem var(--spacing-lg) var(--spacing-lg);
        gap: var(--spacing-lg);
        transition: right 0.3s ease-in-out;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.25);
        z-index: 1000;
        overflow-y: auto;
        border-top: none;
        padding-top: 4.5rem;
    }

    .header-nav-primary,
    .header-nav-secondary {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        width: 100%;
    }

    .header-nav-secondary {
        margin-left: 0;
        padding-top: var(--spacing-md);
        border-top: 1px solid var(--gray-200);
    }

    .header-nav-secondary-auth::before {
        content: "Account & settings";
        display: block;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--gray-500);
        margin-bottom: 0.35rem;
        padding-left: 0.25rem;
    }

    .header-nav-secondary-guest::before {
        content: "Get started";
        display: block;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--gray-500);
        margin-bottom: 0.35rem;
        padding-left: 0.25rem;
    }

    .header-nav-primary::before {
        content: "Explore";
        display: block;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--gray-500);
        margin-bottom: 0.35rem;
        padding-left: 0.25rem;
    }
    
    /* Show menu when open */
    .header-nav.mobile-menu-open {
        right: 0;
    }
    
    .header-nav-link {
        font-size: 1rem;
        padding: 0.75rem 1rem;
        width: 100%;
        border-radius: var(--radius-md);
        white-space: normal;
        justify-content: flex-start;
    }
    
    .header-nav-link:hover {
        background-color: var(--gray-100);
        color: var(--gray-900);
    }

    .header-nav-link.nav-active {
        background-color: var(--gray-100);
        color: var(--gray-900);
    }

    .header-nav-secondary .header-nav-link.nav-active {
        background-color: var(--gray-100);
        color: var(--gray-900);
    }
    
    .header-nav button {
        font-size: 1rem;
        padding: var(--spacing-md);
        width: 100%;
        text-align: left;
        white-space: normal;
        border-radius: var(--radius-md);
    }
    
    .header-nav button:hover {
        background-color: var(--gray-100);
    }
    
    .header-nav span {
        font-size: 0.9rem;
        padding: var(--spacing-md);
        white-space: normal;
        display: block;
        width: 100%;
        border-bottom: 1px solid var(--gray-200);
        margin-bottom: var(--spacing-sm);
    }

    .header-nav form {
        width: 100%;
        display: block;
    }

    main {
        padding: var(--spacing-xl) 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* Hero / feature helpers (Qwalisoft landing patterns) */
.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--primary-blue);
    border-radius: var(--radius-lg);
    margin-top: 3rem;
    margin-bottom: 4rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.hero-section h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.hero-section p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-on-hero {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--content-bg);
    color: var(--primary-blue);
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.btn-on-hero:hover {
    color: var(--primary-blue-dark);
    transform: translateY(-2px);
}

.btn-outline-hero {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn-outline-hero:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.section-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 0 0 3rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, var(--content-bg) 0%, var(--gray-50) 100%);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--content-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    color: var(--gray-600);
    font-weight: 600;
}

.admin-nav-grid {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.admin-nav-tile {
    padding: 1rem;
    border-radius: var(--radius-md);
    flex: 1;
    min-width: 200px;
    border-left: 4px solid var(--info);
    background: var(--info-light);
}

.admin-nav-tile a {
    font-weight: 600;
    text-decoration: none;
    display: block;
}

.admin-nav-tile small {
    color: var(--gray-600);
}

.cta-section {
    text-align: center;
    padding: 3.5rem 2rem;
    background: var(--primary-blue);
    color: white;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cta-section h2 {
    color: white;
}

.page-intro {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    text-align: center;
}

/* Auth / forms (Qwalisoft-aligned) */
.search-container-auth { min-height: 480px; padding-bottom: 3rem; }
.auth-container { max-width: 420px; margin: 0 auto; width: 100%; }
.search-form { margin-bottom: var(--spacing-xl); }
.form-group { margin-bottom: var(--spacing-lg); }
.form-group label { display: block; margin-bottom: var(--spacing-sm); font-weight: 600; color: var(--gray-900); font-size: 0.95rem; }
.form-control { width: 100%; padding: 0.875rem 1rem; border: 2px solid var(--gray-300); border-radius: var(--radius-md); font-size: 1rem; font-family: var(--font-sans); background: white; }
.form-control:focus { outline: none; border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1); }
.password-wrapper { position: relative; display: flex; align-items: center; }
.password-wrapper input { flex: 1; padding-right: 4rem; }
.password-wrapper .toggle-password { position: absolute; right: 0.75rem; background: none; border: none; cursor: pointer; color: var(--gray-500); font-size: 0.8rem; font-weight: 600; }
.password-wrapper .toggle-password:hover { color: var(--gray-700); }
.text-danger { color: var(--danger); font-size: 0.9rem; display: block; margin-top: var(--spacing-xs); font-weight: 500; }
.form-text { font-size: 0.85rem; color: var(--gray-600); margin-top: var(--spacing-xs); display: block; }
.error-message { background: var(--danger-light); border: 2px solid var(--danger); color: var(--danger); padding: var(--spacing-md); border-radius: var(--radius-md); margin-bottom: var(--spacing-lg); font-weight: 500; }
.info-message { background: var(--info-light); border: 2px solid var(--info); color: var(--gray-800); padding: var(--spacing-md); border-radius: var(--radius-md); margin-bottom: var(--spacing-lg); }
.error-message:empty, .info-message:empty { display: none; }

/* Narrator picker */
.narrator-picker {
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    background: var(--content-bg);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.narrator-picker-label {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.35rem;
}
.narrator-quality {
    margin: 0 0 0.85rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.45;
}
.narrator-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.narrator-group-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 0.45rem;
}
.narrator-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.narrator-option {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid var(--gray-300);
    background: var(--gray-50);
    color: var(--gray-800);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.narrator-option:hover:not(:disabled) {
    border-color: var(--primary-blue-light);
    background: var(--info-light);
}
.narrator-option.is-active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
}
.narrator-default-badge {
    display: inline-block;
    margin-left: 0.15rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.9;
}
.narrator-option.is-active .narrator-default-badge {
    opacity: 1;
}
.learn-vo {
    margin: 1.25rem 0 1.75rem;
}
.narrator-option:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.narrator-soon {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--gray-500);
}
.narrator-option.is-active .narrator-soon { color: rgba(255,255,255,0.85); }
.narrator-hint {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Lesson layout: always-visible path tree + main content */
.lesson-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 2rem;
}

.path-tree {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    max-height: calc(100vh - var(--header-height) - 2rem);
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    box-shadow: none;
    z-index: 2;
}

.path-tree-header {
    padding: 0 0 0.75rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 0.35rem;
    background: transparent;
    color: inherit;
}

.path-tree-kicker {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 0.2rem;
}

.path-tree-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--gray-900);
}

.path-tree-subtitle {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: var(--gray-500);
    line-height: 1.35;
}

.path-tree-scroll {
    overflow-y: auto;
    padding: 0.35rem 0.25rem 1rem 0;
    flex: 1;
}

.path-tree-root,
.path-tree-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.path-tree-node--module {
    margin: 0.15rem 0 0.55rem;
}

.path-tree-node-label {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--gray-700);
    line-height: 1.35;
    border-radius: 0.25rem;
    padding: 0.2rem 0.3rem;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    font: inherit;
}

.path-tree-node-label--module {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-800);
    padding-left: 0;
}

.path-tree-node.is-unavailable .path-tree-node-label--module,
.path-tree-node-label.is-disabled {
    color: var(--gray-400);
    cursor: default;
}

.path-tree-plus {
    flex: 0 0 0.95rem;
    width: 0.95rem;
    height: 0.95rem;
    margin-top: 0.12rem;
    border: 1px solid var(--gray-400);
    border-radius: 0.15rem;
    position: relative;
    background: #fff;
}

.path-tree-plus::before,
.path-tree-plus::after {
    content: "";
    position: absolute;
    background: var(--gray-600);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.path-tree-plus::before {
    width: 7px;
    height: 1.5px;
}

.path-tree-plus::after {
    width: 1.5px;
    height: 7px;
}

.path-tree-node.is-expanded > .path-tree-toggle .path-tree-plus::after {
    display: none;
}

.path-tree-plus--static {
    opacity: 0.45;
}

.path-tree-node.is-current-module > .path-tree-node-label--module {
    color: var(--primary-blue-dark);
}

.path-tree-node.is-current-module > .path-tree-toggle .path-tree-plus {
    border-color: var(--primary-blue);
}

.path-tree-children {
    margin: 0.1rem 0 0 0.55rem;
    padding-left: 0.75rem;
    border-left: 1px solid var(--gray-200);
}

.path-tree-node--lesson {
    margin: 0.15rem 0;
}

.path-tree-node-label--lesson {
    font-size: 0.82rem;
    font-weight: 600;
}

.path-tree-node-label--lesson:hover,
.path-tree-node-label--leaf:hover {
    color: var(--primary-blue-dark);
    background: rgba(37, 99, 235, 0.06);
}

.path-tree-node-label--leaf {
    font-size: 0.8rem;
    font-weight: 500;
}

.path-tree-leaf {
    flex: 0 0 0.35rem;
    width: 0.35rem;
    height: 0.35rem;
    margin-top: 0.4rem;
    border-radius: 50%;
    background: var(--gray-300);
}

.path-tree-node.is-current-lesson > .path-tree-node-label--lesson {
    color: var(--primary-blue-dark);
}

.path-tree-node.is-current-leaf > .path-tree-node-label--leaf {
    color: var(--primary-blue-dark);
    font-weight: 700;
}

.path-tree-node.is-current-leaf .path-tree-leaf {
    background: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.path-tree-node-text {
    flex: 1;
    min-width: 0;
}

.path-tree-badge {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-400);
    background: transparent;
    border: 1px solid var(--gray-200);
    border-radius: 0.25rem;
    padding: 0 0.3rem;
    line-height: 1.4;
    margin-top: 0.1rem;
}

.path-tree-empty {
    margin: 0.15rem 0 0.35rem 1.1rem;
    font-size: 0.75rem;
    color: var(--gray-400);
}

.lesson-main .search-container {
    box-shadow: none;
    border: 1px solid var(--gray-200);
    padding: 1.5rem 1.75rem 2rem;
}

.lesson-main .learn-unit {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.25rem 0 1rem;
}

/* Microsoft Learn–style study unit */
.learn-crumb {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.learn-crumb-current {
    color: var(--gray-700);
    font-weight: 600;
}

.learn-unit-title {
    margin: 0 0 0.5rem;
    font-size: 1.65rem;
    line-height: 1.25;
    color: var(--gray-900);
}

.learn-unit-intro {
    margin: 0 0 1.5rem;
    font-size: 1.02rem;
    line-height: 1.55;
    color: var(--gray-600);
    max-width: 42rem;
}

.learn-next {
    margin: 1.75rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
    font-size: 0.95rem;
    font-weight: 600;
}

.learn-next a {
    color: var(--gray-800);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.learn-next a:hover {
    color: var(--primary-blue-dark);
}

.learn-h2 {
    margin: 1.75rem 0 0.5rem;
    font-size: 1.25rem;
    color: var(--gray-900);
}

.learn-h3 {
    margin: 1.25rem 0 0.5rem;
    font-size: 1.05rem;
    color: var(--gray-800);
}

.learn-lead {
    margin: 0 0 0.85rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.learn-objectives {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
    color: var(--gray-800);
    line-height: 1.55;
}

.learn-objectives li {
    margin-bottom: 0.45rem;
}

.learn-objective-toc {
    margin: 0.75rem 0 1.75rem;
    padding-left: 1.25rem;
    color: var(--gray-700);
    line-height: 1.55;
}

.learn-objective-toc a {
    color: var(--gray-800);
    text-decoration: none;
}

.learn-objective-toc a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.learn-bullets {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.learn-bullet {
    padding: 1.5rem 0;
    border-top: 1px solid var(--gray-200);
}

.learn-bullet:first-child {
    border-top: none;
    padding-top: 0.25rem;
}

.learn-bullet-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.learn-bullet-actions {
    --learn-ctrl-h: 2.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
}

.learn-bullet-actions > * {
    flex: 0 0 auto;
    box-sizing: border-box;
    height: var(--learn-ctrl-h);
    min-height: var(--learn-ctrl-h);
    max-height: var(--learn-ctrl-h);
}

.learn-vo-select-wrap {
    display: inline-flex;
    margin: 0;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
}

.learn-vo-select {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    max-width: 9.75rem;
    margin: 0;
    padding: 0 1.65rem 0 0.7rem;
    border: 1px solid var(--gray-300);
    border-radius: 9999px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 650;
    color: var(--gray-800);
    cursor: pointer;
    line-height: 1;
}

.learn-vo-select:hover,
.learn-vo-select:focus {
    border-color: #818cf8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.learn-speed {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem 0.45rem;
    margin: 0;
    padding: 0 0.65rem;
    border: 1px solid var(--gray-300);
    border-radius: 9999px;
    background: #fff;
    min-width: 0;
    overflow: hidden;
}

.learn-speed-label {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--gray-500);
    padding-right: 0.4rem;
    border-right: 1px solid var(--gray-200);
    line-height: 1;
}

.learn-speed-option {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 650;
    color: var(--gray-800);
    cursor: pointer;
    user-select: none;
    line-height: 1;
}

.learn-speed-option input {
    width: 0.8rem;
    height: 0.8rem;
    margin: 0;
    accent-color: #6366f1;
    cursor: pointer;
}

.learn-highlight-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0 0.7rem;
    border: 1px solid var(--gray-300);
    border-radius: 9999px;
    background: #fff;
    font-size: 0.78rem;
    font-weight: 650;
    color: var(--gray-800);
    cursor: pointer;
    user-select: none;
    line-height: 1;
    overflow: hidden;
}

.learn-highlight-toggle input {
    width: 0.85rem;
    height: 0.85rem;
    margin: 0;
    accent-color: #6366f1;
    cursor: pointer;
}

.learn-bullet-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 650;
    color: var(--gray-900);
    line-height: 1.35;
}

.learn-bullet-num {
    color: var(--gray-500);
    font-weight: 600;
    margin-right: 0.25rem;
}

.learn-bullet-listen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 5.75rem;
    margin: 0;
    padding: 0 0.8rem;
    border-radius: 9999px;
    border: 1px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(120deg, #22d3ee, #818cf8, #f472b6, #fb923c) border-box;
    color: var(--gray-900);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
    overflow: hidden;
}

.learn-bullet-listen:hover {
    box-shadow: 0 2px 8px rgba(129, 140, 248, 0.2);
}

.learn-bullet-listen:active {
    box-shadow: none;
}

.learn-bullet-listen .listen-icon {
    display: inline-flex;
    line-height: 0;
}

.learn-bullet-listen .listen-headset {
    display: block;
    width: 1.05rem;
    height: 1.05rem;
    animation: listen-bob 2.4s ease-in-out infinite;
    transform-origin: center;
}

.learn-bullet-listen:hover .listen-headset {
    animation-duration: 0.9s;
}

.learn-bullet-listen.is-loading {
    opacity: 0.75;
    cursor: wait;
}

.learn-bullet-listen.is-playing {
    background: linear-gradient(120deg, #1e3a5f, #312e81);
    border-color: #312e81;
    color: #fff;
    box-shadow: 0 4px 14px rgba(49, 46, 129, 0.35);
}

.learn-bullet-listen.is-playing .listen-headset {
    animation: listen-pulse 0.7s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.8));
}

@keyframes listen-bob {
    0%, 100% { transform: rotate(-4deg); }
    50% { transform: rotate(4deg); }
}

@keyframes listen-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.learn-bullet-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}

.learn-bullet-transcript {
    color: var(--gray-800);
    line-height: 1.6;
    max-width: 42rem;
}

.learn-segment {
    margin: 0 0 1.15rem;
}

.learn-segment:last-child {
    margin-bottom: 0;
}

.learn-segment > p {
    margin: 0 0 0.75rem;
}

.learn-segment > p:last-child {
    margin-bottom: 0;
}

.learn-segment[data-visual-key]:not([data-visual-key=""]) > p {
    color: var(--gray-800);
}

.learn-segment.is-active > p {
    color: var(--gray-900);
}

.learn-bullet-transcript.is-highlighting .listen-word {
    border-radius: 0.25em;
    transition: background-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.learn-bullet-transcript .listen-word.is-read {
    background: rgba(167, 243, 208, 0.55);
    color: #065f46;
}

.learn-bullet-transcript .listen-word.is-current {
    background: linear-gradient(120deg, #fde68a, #fbbf24);
    color: #78350f;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.45);
    font-weight: 700;
}

.learn-bullet-visual {
    min-width: 0;
    max-width: 36rem;
    margin-top: 0.15rem;
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.learn-bullet-visuals {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 36rem;
}

.learn-bullet-transcript.is-listening .learn-bullet-visual.is-dimmed {
    opacity: 0.38;
    transform: scale(0.985);
}

.learn-bullet-transcript.is-listening .learn-bullet-visual.is-focus {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35), 0 10px 28px rgba(15, 23, 42, 0.1);
    border-radius: 1.05rem;
}

.learn-bullet-transcript.is-listening .learn-bullet-visual.is-focus .study-viz {
    border-color: #a5b4fc;
}

/* Per-topic study visuals */
.study-viz {
    margin: 0;
    padding: 1rem 1.05rem 0.85rem;
    border-radius: 1rem;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(34, 211, 238, 0.14), transparent 55%),
        radial-gradient(100% 80% at 100% 100%, rgba(244, 114, 182, 0.12), transparent 50%),
        #f8fafc;
    border: 1px solid var(--gray-200);
}

.study-viz figcaption {
    margin-top: 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-600);
    line-height: 1.35;
    text-align: center;
}

.study-viz-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

.study-viz-node {
    padding: 0.65rem 0.9rem;
    border-radius: 0.85rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.study-viz-node--you {
    background: #dbeafe;
    color: #1e3a8a;
    border: 1px solid #93c5fd;
}

.study-viz-arrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6366f1;
}

.study-viz-cloud {
    min-width: 10rem;
    padding: 0.75rem 0.9rem;
    border-radius: 1.25rem 1.25rem 0.85rem 0.85rem;
    background: linear-gradient(145deg, #e0e7ff, #fce7f3);
    border: 1px solid #c4b5fd;
    text-align: center;
}

.study-viz-cloud strong {
    display: block;
    font-size: 0.88rem;
    color: #312e81;
    margin-bottom: 0.45rem;
}

.study-viz-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
}

.study-viz-chips span {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: #fff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

.study-viz-compare,
.study-viz-hybrid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 0.55rem;
}

.study-viz-panel {
    flex: 1 1 8.5rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.85rem;
    border: 1px solid transparent;
}

.study-viz-panel strong {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
}

.study-viz-panel ul {
    margin: 0;
    padding-left: 1rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--gray-700);
}

.study-viz-panel span {
    display: block;
    font-size: 0.78rem;
    color: var(--gray-700);
    line-height: 1.4;
}

.study-viz-panel--prem {
    background: #fff7ed;
    border-color: #fdba74;
}

.study-viz-panel--prem strong { color: #9a3412; }

.study-viz-panel--cloud {
    background: #eff6ff;
    border-color: #93c5fd;
}

.study-viz-panel--cloud strong { color: #1e40af; }

.study-viz-vs {
    align-self: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--gray-400);
    text-transform: uppercase;
}

.study-viz-stack {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.study-viz-layer {
    padding: 0.65rem 0.8rem;
    border-radius: 0.65rem;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.35rem;
    align-items: baseline;
}

.study-viz-layer em {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 650;
    opacity: 0.9;
}

.study-viz-layer--you {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.study-viz-layer--split {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
}

.study-viz-layer--provider {
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #a5b4fc;
}

.study-viz-public {
    text-align: center;
}

.study-viz-pool {
    padding: 0.85rem;
    border-radius: 1rem;
    background: linear-gradient(160deg, #dbeafe, #e0e7ff);
    border: 1px dashed #60a5fa;
}

.study-viz-pool strong {
    display: block;
    margin-bottom: 0.55rem;
    color: #1e3a8a;
    font-size: 0.88rem;
}

.study-viz-tenants {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.study-viz-tenants span {
    padding: 0.35rem 0.55rem;
    border-radius: 0.55rem;
    background: #fff;
    border: 1px solid #bfdbfe;
    font-size: 0.72rem;
    font-weight: 700;
    color: #1d4ed8;
}

.study-viz-tenants span:last-child {
    background: #1d4ed8;
    color: #fff;
    border-color: #1d4ed8;
}

.study-viz-callout {
    margin: 0.55rem 0 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #4338ca;
}

.study-viz-private {
    display: flex;
    justify-content: center;
}

.study-viz-fence {
    width: 100%;
    max-width: 16rem;
    padding: 1rem;
    border-radius: 0.85rem;
    border: 2px solid #7c3aed;
    background: #f5f3ff;
    box-shadow: inset 0 0 0 4px rgba(124, 58, 237, 0.12);
    text-align: center;
}

.study-viz-fence strong {
    display: block;
    margin-bottom: 0.55rem;
    color: #5b21b6;
    font-size: 0.9rem;
}

.study-viz-bridge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-width: 5.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: #0f766e;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.study-viz-bridge-line {
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: repeating-linear-gradient(
        90deg,
        #14b8a6 0 8px,
        transparent 8px 14px
    );
}

.study-viz-choices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

@media (max-width: 520px) {
    .study-viz-choices {
        grid-template-columns: 1fr;
    }
}

.study-viz-choice {
    padding: 0.7rem 0.55rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid transparent;
}

.study-viz-choice strong {
    display: block;
    font-size: 0.82rem;
    margin-bottom: 0.25rem;
}

.study-viz-choice span {
    display: block;
    font-size: 0.7rem;
    line-height: 1.35;
    color: var(--gray-700);
}

.study-viz-choice--public {
    background: #eff6ff;
    border-color: #93c5fd;
}
.study-viz-choice--public strong { color: #1d4ed8; }

.study-viz-choice--private {
    background: #f5f3ff;
    border-color: #c4b5fd;
}
.study-viz-choice--private strong { color: #6d28d9; }

.study-viz-choice--hybrid {
    background: #ecfdf5;
    border-color: #6ee7b7;
}
.study-viz-choice--hybrid strong { color: #047857; }

.study-viz-chart {
    padding: 0.35rem 0.25rem 0;
}

.study-viz-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.35rem;
    height: 6.5rem;
    padding: 0 0.35rem;
    border-bottom: 2px solid var(--gray-300);
}

.study-viz-bars span {
    flex: 1;
    height: var(--h);
    border-radius: 0.4rem 0.4rem 0.15rem 0.15rem;
    background: linear-gradient(180deg, #22d3ee, #6366f1);
    animation: study-bar-grow 0.9s ease-out both;
}

.study-viz-bars span:nth-child(1) { animation-delay: 0.05s; background: linear-gradient(180deg, #67e8f9, #0891b2); }
.study-viz-bars span:nth-child(2) { animation-delay: 0.1s; }
.study-viz-bars span:nth-child(3) { animation-delay: 0.15s; background: linear-gradient(180deg, #f472b6, #db2777); }
.study-viz-bars span:nth-child(4) { animation-delay: 0.2s; }
.study-viz-bars span:nth-child(5) { animation-delay: 0.25s; background: linear-gradient(180deg, #34d399, #059669); }
.study-viz-bars span:nth-child(6) { animation-delay: 0.3s; }

@keyframes study-bar-grow {
    from { height: 0; opacity: 0.4; }
    to { height: var(--h); opacity: 1; }
}

.study-viz-chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.4rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--gray-500);
}

.study-viz-money {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.study-viz-money-col {
    text-align: center;
}

.study-viz-money-col strong {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.88rem;
}

.study-viz-money-col span {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gray-600);
}

.study-viz-money-bar--capex {
    height: 4.5rem;
    border-radius: 0.55rem;
    background: linear-gradient(180deg, #fb923c, #c2410c);
    margin: 0 auto;
    width: 2.4rem;
}

.study-viz-money-opex {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.3rem;
    height: 4.5rem;
}

.study-viz-money-opex i {
    display: block;
    width: 0.7rem;
    height: 1.15rem;
    border-radius: 0.25rem;
    background: linear-gradient(180deg, #34d399, #047857);
}

.study-viz-tradeoff {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.study-viz-price {
    display: grid;
    grid-template-columns: 1.1fr 1fr auto;
    gap: 0.35rem;
    align-items: center;
    padding: 0.55rem 0.7rem;
    border-radius: 0.65rem;
    border: 1px solid var(--gray-200);
    background: #fff;
    font-size: 0.72rem;
}

.study-viz-price strong {
    font-size: 0.78rem;
    color: var(--gray-900);
}

.study-viz-price span { color: var(--gray-600); }

.study-viz-price em {
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}

.study-viz-price--payg em { color: #b45309; }
.study-viz-price--reserved em { color: #047857; }
.study-viz-price--spot em { color: #7c3aed; }

.study-viz-price--payg { border-left: 4px solid #f59e0b; }
.study-viz-price--reserved { border-left: 4px solid #10b981; }
.study-viz-price--spot { border-left: 4px solid #8b5cf6; }

.study-viz-traits,
.study-viz-models {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

@media (max-width: 520px) {
    .study-viz-traits,
    .study-viz-models {
        grid-template-columns: 1fr;
    }
}

.study-viz-trait,
.study-viz-model {
    padding: 0.7rem 0.55rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid var(--gray-200);
    background: #fff;
}

.study-viz-trait strong,
.study-viz-model strong {
    display: block;
    font-size: 0.82rem;
    margin-bottom: 0.3rem;
    color: #1e3a8a;
}

.study-viz-trait span,
.study-viz-model span {
    display: block;
    font-size: 0.7rem;
    line-height: 1.35;
    color: var(--gray-700);
}

.study-viz-model em {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 700;
    color: #047857;
}

.study-viz-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

@media (max-width: 520px) {
    .study-viz-dual { grid-template-columns: 1fr; }
}

.study-viz-dual-col {
    padding: 0.7rem;
    border-radius: 0.75rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    text-align: center;
}

.study-viz-dual-col strong {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.88rem;
}

.study-viz-dual-col em {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 650;
    color: var(--gray-600);
}

.study-viz-scale {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.3rem;
    min-height: 3.5rem;
}

.study-viz-scale span {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 1.6rem;
    border-radius: 0.3rem 0.3rem 0.1rem 0.1rem;
    font-size: 0.55rem;
    font-weight: 700;
    color: #fff;
    padding-bottom: 0.15rem;
}

.study-viz-scale .is-low { height: 1.2rem; background: #67e8f9; }
.study-viz-scale .is-mid { height: 2.2rem; background: #6366f1; }
.study-viz-scale .is-high { height: 3.2rem; background: #db2777; }

.study-viz-meter-gauge {
    height: 0.7rem;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
    margin: 0.55rem 0 0.35rem;
}

.study-viz-meter-gauge i {
    display: block;
    height: 100%;
    width: var(--p, 50%);
    background: linear-gradient(90deg, #34d399, #059669);
}

.study-viz-meter span {
    font-size: 0.72rem;
    font-weight: 650;
    color: var(--gray-700);
}

.study-viz-burden {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.study-viz-burden-col {
    padding: 0.7rem 0.8rem;
    border-radius: 0.75rem;
    background: #fff7ed;
    border: 1px solid #fdba74;
}

.study-viz-burden-col--cloud {
    background: #eff6ff;
    border-color: #93c5fd;
}

.study-viz-burden-col strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
}

.study-viz-burden-col ul {
    margin: 0;
    padding-left: 1rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--gray-700);
}

.study-viz-pillrow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.study-viz-pillrow span {
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #c7d2fe;
    font-size: 0.72rem;
    font-weight: 700;
    color: #3730a3;
}

.study-viz-trade2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.study-viz-trade2-good,
.study-viz-trade2-cost {
    padding: 0.75rem;
    border-radius: 0.75rem;
    text-align: center;
}

.study-viz-trade2-good {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
}

.study-viz-trade2-cost {
    background: #fef3c7;
    border: 1px solid #fcd34d;
}

.study-viz-trade2 strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.82rem;
}

.study-viz-trade2 span {
    font-size: 0.72rem;
    color: var(--gray-700);
    line-height: 1.35;
}

.study-viz-decision {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.study-viz-decision div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0.55rem 0.7rem;
    border-radius: 0.65rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    font-size: 0.78rem;
}

.study-viz-decision span {
    font-weight: 700;
    color: #1d4ed8;
}

.study-viz-shift {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.study-viz-shift-from,
.study-viz-shift-to {
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.study-viz-shift-from {
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
}

.study-viz-shift-to {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #047857;
}

.study-viz-shift-arrow {
    font-size: 1.1rem;
    font-weight: 800;
    color: #6366f1;
}

.study-viz-spectrum {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.45rem;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gray-600);
}

.study-viz-spectrum-track {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.25rem;
}

.study-viz-spectrum-track i {
    display: block;
    text-align: center;
    font-style: normal;
    padding: 0.45rem 0.2rem;
    border-radius: 0.45rem;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
}

.study-viz-spectrum-track i:nth-child(1) { background: #f59e0b; }
.study-viz-spectrum-track i:nth-child(2) { background: #10b981; }
.study-viz-spectrum-track i:nth-child(3) { background: #8b5cf6; }

.learn-tip {
    margin: 1.25rem 0;
    padding: 0.95rem 1.1rem;
    border-left: 4px solid #2563eb;
    background: #eff6ff;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.learn-tip strong {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1d4ed8;
    margin-bottom: 0.35rem;
}

.learn-tip p {
    margin: 0;
    color: var(--gray-800);
    line-height: 1.45;
}

.learn-listen {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.board-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.55rem;
    margin: 0.85rem 0 1rem;
}

.board-status {
    font-size: 0.78rem;
    font-weight: 650;
    color: var(--gray-500);
}

.board-stage {
    position: relative;
    padding: 1.25rem 1.35rem 1.15rem;
    border-radius: 0.85rem;
    border: 3px solid #e2e8f0;
    outline: 1px solid #94a3b8;
    background-color: #ffffff;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.18) 1px, transparent 0);
    background-size: 22px 22px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.9),
        0 8px 24px rgba(15, 23, 42, 0.08);
    min-height: 12rem;
    max-width: 46rem;
}

.board-stage::before {
    content: "";
    position: absolute;
    top: 0.55rem;
    right: 0.75rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
    opacity: 0.85;
}

.live-draw {
    position: relative;
    width: 100%;
    min-height: 16rem;
}

.live-draw-svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.live-stroke {
    fill: none;
    stroke: #1e3a8a;
    stroke-width: 3.25;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.95;
}

.live-chip {
    stroke-width: 2.5;
}

.live-label {
    fill: #0f172a;
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.live-label--sm {
    font-size: 13px;
    font-weight: 650;
}

.live-label.is-shown {
    opacity: 1;
}

.live-phase.is-active .live-stroke {
    stroke: #2563eb;
}

.live-phase.is-complete .live-stroke {
    stroke: #1e40af;
}

.live-pen {
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 44px;
    pointer-events: none;
    opacity: 0;
    z-index: 3;
    filter: drop-shadow(0 2px 3px rgba(15, 23, 42, 0.25));
    transition: opacity 0.15s ease;
    will-change: transform;
}

.live-pen.is-visible {
    opacity: 1;
}

.board-caption {
    margin: 0.85rem 0 0;
    min-height: 2.6rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #334155;
}

.learn-video-shell {
    margin: 1rem 0;
    background: #0f172a;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.learn-video-shell--listen {
    max-width: 42rem;
}

.learn-quiz-video {
    margin-bottom: 2rem;
}

.learn-video-shell video {
    width: 100%;
    max-height: 480px;
    display: block;
    background: #000;
}

.learn-download {
    margin: 0 0 1rem;
    font-size: 0.85rem;
}

.learn-quiz-actions {
    --learn-ctrl-h: 2.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.9rem;
}

.learn-quiz-actions > * {
    flex: 0 0 auto;
    box-sizing: border-box;
    height: var(--learn-ctrl-h);
    min-height: var(--learn-ctrl-h);
    max-height: var(--learn-ctrl-h);
}

.learn-quiz-prompt {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 1.05rem;
    line-height: 1.45;
}

.learn-quiz-choices {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 1rem 0 1.25rem;
}

.learn-quiz-choice {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    background: var(--gray-50);
}

.learn-quiz-choice input {
    margin-top: 0.35rem;
    flex: 0 0 auto;
}

.learn-quiz-letter {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    margin-top: 0.05rem;
    border-radius: 0.4rem;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
}

.learn-quiz-choice-text {
    flex: 1 1 auto;
    line-height: 1.45;
    color: var(--gray-800);
}

.learn-quiz-choice:has(input:checked) {
    border-color: #818cf8;
    background: #eef2ff;
}

.learn-quiz-choice:has(input:checked) .learn-quiz-letter {
    background: #4f46e5;
    color: #fff;
}

.learn-quiz-result {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin: 1rem 0;
}

.learn-quiz-result.is-correct {
    background: var(--success-light);
    border: 1px solid var(--success);
}

.learn-quiz-result.is-wrong {
    background: var(--danger-light);
    border: 1px solid var(--danger);
}

.learn-quiz-result p {
    margin: 0.5rem 0 0;
    color: var(--gray-700);
}

.learn-quiz-correct-line {
    margin: 0.75rem 0 0;
    color: var(--gray-800);
}

.learn-quiz-review {
    margin-top: 0.95rem;
}

.learn-quiz-review-lead {
    margin: 0.35rem 0 0.75rem !important;
    font-size: 1rem;
    font-weight: 650;
    color: var(--gray-900) !important;
}

.learn-quiz-review-heading {
    display: block;
    margin-bottom: 0.65rem;
    font-size: 0.92rem;
    color: var(--gray-800);
}

.learn-quiz-review-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.learn-quiz-review-item {
    padding: 0.7rem 0.8rem;
    border-radius: 0.65rem;
    border: 1px solid var(--gray-200);
    background: #fff;
}

.learn-quiz-review-item.is-correct-choice {
    border-color: #86efac;
    background: #f0fdf4;
}

.learn-quiz-review-item.is-wrong-choice {
    border-color: #fecaca;
    background: #fffafa;
}

.learn-quiz-review-option {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
}

.learn-quiz-review-option-text {
    flex: 1 1 auto;
    font-weight: 650;
    color: var(--gray-900);
    line-height: 1.4;
}

.learn-quiz-mark {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
}

.learn-quiz-mark--correct {
    color: #15803d;
    background: #bbf7d0;
    box-shadow: 0 0 0 1px #86efac;
}

.learn-quiz-mark--wrong {
    color: #b91c1c;
    background: #fecaca;
    box-shadow: 0 0 0 1px #fca5a5;
}

.learn-quiz-review-why {
    margin: 0.45rem 0 0 2.2rem !important;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--gray-700) !important;
}

.learn-quiz-wrong-list {
    margin-top: 0.9rem;
}

.learn-quiz-wrong-list strong {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
    color: var(--gray-800);
}

.learn-quiz-wrong-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.learn-quiz-wrong-list li {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--gray-700);
}

.learn-quiz-nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.lesson-video-soon {
    margin: 0 0 1.25rem;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    color: var(--gray-600);
    background: var(--gray-50);
    border: 1px dashed var(--gray-200);
    border-radius: var(--radius-md);
}

.lesson-transcript {
    background: #f8fafc;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1rem 1.15rem;
}

.lesson-transcript p {
    margin: 0 0 0.85rem;
    line-height: 1.55;
    color: var(--gray-700);
}

.lesson-transcript p:last-child {
    margin-bottom: 0;
}

.lesson-quiz-progress {
    margin: 0 0 0.65rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-500);
}

@media (max-width: 900px) {
    .lesson-layout {
        grid-template-columns: 1fr;
    }

    .path-tree {
        position: relative;
        top: 0;
        max-height: 320px;
        border-bottom: 1px solid var(--gray-200);
        padding-bottom: 0.5rem;
        margin-bottom: 0.25rem;
    }
}

/* Fundamentals exams landing (/certifications) — cards ARE the dependency diagram */
.fund-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-blue-light);
    margin: 0 0 0.35rem 0;
}

.fund-flash {
    background: var(--info-light);
    border: 1px solid var(--info);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin: 1rem 0 0;
}

.fund-flow {
    margin-top: 2rem;
}

.fund-flow-row {
    display: grid;
    gap: 1rem;
    align-items: stretch;
}

.fund-flow-row--hub {
    grid-template-columns: minmax(260px, 420px);
    justify-content: center;
}

.fund-flow-row--branch,
.fund-flow-row--solo {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.fund-flow-arrows {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 960px;
    margin: 0.35rem auto 0.15rem;
    height: 2.5rem;
}

.fund-flow-arrow {
    position: relative;
    justify-self: center;
    width: 2px;
    height: 100%;
    background: #94a3b8;
}

.fund-flow-arrow::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #94a3b8;
}

.fund-flow-arrow--left {
    transform: rotate(22deg);
    transform-origin: top center;
}

.fund-flow-arrow--right {
    transform: rotate(-22deg);
    transform-origin: top center;
}

.fund-flow-caption {
    text-align: center;
    margin: 0 0 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-500);
}

.fund-flow-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 960px;
    margin: 1.75rem auto 1.15rem;
    color: var(--gray-400);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.fund-flow-divider::before,
.fund-flow-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.fund-exam {
    display: flex;
    flex-direction: column;
    padding: 1.15rem 1.2rem 1.2rem;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    min-height: 11rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: var(--shadow-sm);
}

.fund-exam--hub {
    min-height: 10rem;
}

.fund-exam--live:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.fund-exam-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.fund-exam-code {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.fund-exam-status {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-500);
    background: rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    padding: 0.15rem 0.45rem;
}

.fund-exam-status--live {
    color: #047857;
    background: rgba(16, 185, 129, 0.15);
}

.fund-exam-title {
    margin: 0 0 0.45rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
}

.fund-exam-desc {
    margin: 0;
    flex: 1;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--gray-700);
}

.fund-exam-cta {
    margin-top: 0.85rem;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Soft modern tones — accent border + wash, not neon */
.fund-exam--azure {
    background: linear-gradient(160deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
}
.fund-exam--azure .fund-exam-code,
.fund-exam--azure .fund-exam-cta { color: #1d4ed8; }

.fund-exam--ai {
    background: linear-gradient(160deg, #f5f3ff 0%, #ede9fe 100%);
    border-color: #c4b5fd;
}
.fund-exam--ai .fund-exam-code { color: #6d28d9; }

.fund-exam--data {
    background: linear-gradient(160deg, #f0fdfa 0%, #ccfbf1 100%);
    border-color: #5eead4;
}
.fund-exam--data .fund-exam-code { color: #0f766e; }

.fund-exam--security {
    background: linear-gradient(160deg, #fff1f2 0%, #ffe4e6 100%);
    border-color: #fda4af;
}
.fund-exam--security .fund-exam-code { color: #be123c; }

.fund-exam--power {
    background: linear-gradient(160deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fcd34d;
}
.fund-exam--power .fund-exam-code { color: #b45309; }

.fund-exam--copilot {
    background: linear-gradient(160deg, #faf5ff 0%, #f3e8ff 100%);
    border-color: #d8b4fe;
}
.fund-exam--copilot .fund-exam-code { color: #7e22ce; }

.fund-exam--github {
    background: linear-gradient(160deg, #f8fafc 0%, #e2e8f0 100%);
    border-color: #94a3b8;
}
.fund-exam--github .fund-exam-code { color: #334155; }

.fund-exam--soon {
    opacity: 0.95;
}

@media (max-width: 900px) {
    .fund-flow-row--branch,
    .fund-flow-row--solo {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .fund-flow-arrows {
        grid-template-columns: 1fr;
        max-width: 420px;
        height: 1.75rem;
    }

    .fund-flow-arrow--left,
    .fund-flow-arrow--right {
        display: none;
    }

    .fund-flow-arrow--mid {
        transform: none;
    }
}


