/* StartEase.app — Main Stylesheet
   v0.1.0
   Desktop-first, breakpoints at 900/768/480 */

/* ========== Reset & Base ========== */
:root {
    /* Layout chrome */
    --ecosystem-nav-h: 40px;
    --site-header-h: 72px;

    /* Brand palette */
    --color-primary: #5599cc;
    --color-primary-dark: #3574a3;
    --color-gold: #ffd700;
    --color-ink: #111;
    --color-text: #333;
    --color-muted: #64748b;
    --color-danger: #dc2626;
    --color-success: #16a34a;

    /* Surface tones — three tiers so a long page's chapter rotation never
       puts two identical backgrounds adjacent. */
    --surface-base: #ffffff;
    --surface-alt: #f1f5f9;
    --surface-tertiary: #f8fafc;
    --border-subtle: #e2e8f0;
    --border-muted: #cbd5e1;

    /* Spacing scale (8px base, ~modular) */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-7: 4rem;
    --space-8: 6rem;

    /* Type scale (~1.333 ratio above body) */
    --text-xs: 0.8rem;
    --text-sm: 0.9rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.5rem;
    --text-2xl: 2.125rem;   /* h2 — bumped from 1.75rem for stronger hierarchy */
    --text-3xl: 2.75rem;    /* h1 — bumped from 2.5rem */
    --text-4xl: 3.5rem;     /* marketing-page hero */

    /* Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;

    /* Reading width — paragraphs cap at ~65 chars regardless of container width */
    --measure: 65ch;
}

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

html {
    font-size: 17px;          /* bumped from 16px — better marketing readability on modern displays */
    scroll-behavior: smooth;
    /* Dark root (matches the footer #1e293b) as a backstop so any overscroll /
       rubber-band region behind the page reads dark, never white. NOTE: do NOT
       put `min-height: 100vh` here — on iOS (esp. Chrome iPad) `100vh` is the
       larger toolbar-hidden viewport, which makes <html> taller than the
       visible area and exposes a gap. The footer is pinned by the sticky-footer
       flex layout on `body` below (100dvh) instead. */
    background-color: #1e293b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--color-text);
    background: var(--surface-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Sticky footer (public pages): make the page a full-viewport flex column so
   the footer always sits at the true bottom — on short pages it's pushed down
   (no gap below it), on long pages it scrolls normally. `100dvh` (dynamic
   viewport) is what iOS Safari AND Chrome-iPad compute correctly; `100vh` is a
   fallback. box-sizing:border-box folds the fixed-nav padding-top into the
   height so there's no 40px overflow. Scoped off the dashboard (.app-body has
   its own .app-layout). This is the real fix for "white space below the footer"
   across browsers — there is simply no gap to paint. */
body:not(.app-body) {
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
body:not(.app-body) > main {
    flex: 1 0 auto;
}

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

a:hover {
    color: var(--color-primary-dark);
}

a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    color: var(--color-ink);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }

/* ========== A11y helpers ========== */
/* Skip-to-content link — invisible until keyboard-focused. */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    background: var(--color-ink);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0 0 var(--radius-md) 0;
    font-weight: 600;
}
.skip-link:focus, .skip-link:focus-visible {
    left: 0;
    color: #fff;
}

/* ========== Prose readability cap ========== */
/* Apply to text-heavy sections (about, privacy, terms, help, post bodies). */
/* Caps line length at ~65ch for comfortable reading without restricting */
/* layout grids in the same container. */
.prose { max-width: var(--measure); margin-inline: auto; }
.prose p, .prose ul, .prose ol, .prose blockquote {
    margin-bottom: var(--space-3);
}
.prose h2, .prose h3, .prose h4 { margin-top: var(--space-5); }
.prose > :first-child { margin-top: 0; }

/* ========== Heading anchor affordance ========== */
/* Headings inside .content-section with an id get a `#` icon on hover so */
/* power users discover they can deep-link. */
.content-section h2[id],
.content-section h3[id] {
    position: relative;
    scroll-margin-top: calc(var(--ecosystem-nav-h) + var(--site-header-h) + 1rem);
}
.content-section h2[id]:hover::before,
.content-section h3[id]:hover::before {
    content: '#';
    position: absolute;
    left: -1.5ch;
    color: var(--color-muted);
    font-weight: 400;
    opacity: 0.5;
}
@media (max-width: 768px) {
    .content-section h2[id]:hover::before,
    .content-section h3[id]:hover::before { display: none; }
}

/* ========== Layout ========== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.content-narrow {
    max-width: 760px;
}

/* ========== Ecosystem Nav ========== */
/* Ecosystem nav — unified VentureEase chrome (5 links, gold sweep, arrows). */
.ecosystem-nav {
    background: #1e293b;
    padding: 0.4rem 0;
    font-size: 0.8rem;
    /* Fixed (not sticky) so it never releases at the bottom of the page. */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
}

body { padding-top: var(--ecosystem-nav-h); }

.eco-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 0.9rem;
    justify-content: safe center;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.eco-inner::-webkit-scrollbar { display: none; }

.eco-arrow {
    flex-shrink: 0;
    color: #cbd5e1;
    opacity: 0.55;
    font-weight: 600;
    font-size: 0.9rem;
    user-select: none;
}

.ecosystem-nav a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.8rem;
    transition: color 0.15s, background 0.15s;
}
.ecosystem-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
    color: #fff;
}
.ecosystem-nav a.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 600;
    pointer-events: none;
}
.ecosystem-nav .gold { color: #ffd700; }

/* === Brand wordmark rules (ecosystem standard) ===
   "Ease" is always bold; the prefix word(s) are never bold.
   StartEase wordmark: "Start" = gold + not bold; "Ease" = bold + NOT gold.
   Does NOT apply inside .ecosystem-nav (which has its own gold-sweep flow). */
.gold         { color: #ffd700; font-weight: inherit; }
.brand-prefix { font-weight: 400; }
.brand-ease   { font-weight: 700; }

@media (max-width: 480px) {
    .eco-inner { gap: 0.5rem; padding: 0 0.5rem; }
    .eco-arrow { font-size: 0.75rem; }
    .ecosystem-nav a { font-size: 0.75rem; padding: 0.2rem 0.5rem; }
}

/* ========== Site Header ========== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    position: sticky;
    top: var(--ecosystem-nav-h);
    z-index: 250;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    color: #333;
    font-weight: 300;
}

.logo-text strong {
    font-weight: 700;
    color: #5599cc;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    transition: transform 0.2s;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.nav-link {
    color: #555;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.95rem;
    white-space: nowrap;       /* prevent "Sign Up/In" et al. from wrapping at squeezed widths */
    flex-shrink: 0;            /* don't let flex distribute below natural width */
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: #5599cc;
    background: #f1f5f9;
}

.nav-link.active {
    color: #5599cc;
    font-weight: 600;
}

.nav-link-cta {
    background: #5599cc;
    color: #fff !important;
    padding: 0.4rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}

.nav-link-cta:hover {
    background: #3574a3;
    color: #fff !important;
}

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
}

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

.btn-primary {
    background: #5599cc;
    color: #fff;
}

.btn-primary:hover {
    background: #3574a3;
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #5599cc;
    border-color: #5599cc;
}

.btn-outline:hover {
    background: #5599cc;
    color: #fff;
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1.1rem;
}

/* ========== Hero (homepage) ==========
   Ecosystem POSITIONAL sweep (brand memory "Hero Gradients — POSITIONAL
   SWEEP", corrected 2026-05-23): the hero sweep mirrors the gold sweep —
   blue concentrates toward the LaunchEase center, dark on the journey's
   outer edges. StartEase sits at the LEFT end, so dark left → blue right.
   (LaunchEase = solid #5599cc; HireEase = #5599cc → #1e293b.) padding 5rem 0
   is the ecosystem HEIGHT REFERENCE — do not change. Same gradient on
   .page-hero below so every page-top matches. */
.hero {
    background: linear-gradient(135deg, #1e293b 0%, #5599cc 100%);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Animated hero title: "StartEase" → typed → "Start Your Entrepreneurial Journey with Ease"
   min-height reserves space for the fully-expanded 2-line state so the
   subtitle + CTAs below don't get pushed down as the typewriter grows.
   (Mobile breakpoints below override with their size-appropriate values.) */
.hero-title-animated {
    text-align: center;
    min-height: 2.4em;
}

.hero-word-ease {
    font-weight: bold;
}

.hero-typed.typing::after {
    content: '|';
    font-weight: normal;
    animation: hero-blink 0.7s step-end infinite;
}

.hero-typed.done::after {
    content: none;
}

@keyframes hero-blink {
    50% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-subtitle em {
    color: #93c5fd;
    font-style: italic;
}

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

.hero-cta .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

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

.hero-stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    display: block;
}

.hero-stat-label {
    font-size: 0.85rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== Page Heroes (subpages) ==========
   Same brand-blue gradient as the homepage .hero so the top of every
   page reads as one visual family. No CTA, no meta pills — just title
   + subtitle per the unified design (homepage is the only page with
   a hero CTA). */
.page-hero {
    background: linear-gradient(135deg, #1e293b 0%, #5599cc 100%);
    color: #fff;
    padding: 3.5rem 0;
    text-align: center;
}

.page-hero h1 {
    color: #fff;
    margin-bottom: 0.75rem;
}

.page-hero .hero-subtitle {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.92);
}

.page-hero .last-updated {
    color: rgba(255, 255, 255, 0.78);
    font-size: var(--text-sm);
    margin-top: 0.5rem;
}

/* DEPRECATED aliases — kept so any old class references don't break.
   New code should use plain .page-hero. */
.page-hero-eti  { /* same as base */ }
.page-hero-slim { /* same as base */ }

/* ========== Sections ========== */
.content-section {
    padding: 4rem 0;
}

.alt-bg {
    background: var(--surface-alt);          /* #f1f5f9 — deeper than before */
}
.tertiary-bg {
    background: var(--surface-tertiary);     /* #f8fafc — the original alt-bg shade */
}

/* ========== Section chapter system ========== */
/* Used by long-form pages like /about. Eyebrow caps the chapter heading
   with a gold-numbered label so readers can see "where am I in this page". */
.section-eyebrow {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
    text-align: center;
}
.section-eyebrow .section-num {
    color: var(--color-gold);
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.4em;
    font-weight: 700;
    margin-right: 0.4em;
    letter-spacing: 0.05em;
    /* Keep readable on light backgrounds — pure gold gets lost without weight */
    text-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
/* Hairline divider between adjacent same-background sections. */
.content-section + .content-section { border-top: 1px solid var(--border-subtle); }
.content-section + .content-section.alt-bg,
.content-section + .content-section.tertiary-bg,
.alt-bg + .content-section,
.tertiary-bg + .content-section { border-top: none; }

/* ========== Page TOC (fixed right rail on desktop) ========== */
/* Fixed-position so it doesn't require restructuring page layout. Hidden on
   narrower screens; a mobile bottom-sheet variant could be added later. */
.page-toc {
    position: fixed;
    top: calc(var(--ecosystem-nav-h) + var(--site-header-h) + 1.5rem);
    right: max(1rem, calc((100vw - 1100px) / 2 - 240px));
    width: 220px;
    font-size: var(--text-sm);
    max-height: calc(100vh - var(--ecosystem-nav-h) - var(--site-header-h) - 3rem);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-3) 0;
    z-index: 50;
}
@media (max-width: 1380px) {
    .page-toc { display: none; }
}
.page-toc-title {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: var(--space-3);
    padding-left: 0.85rem;
}
.page-toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; }
.page-toc li { counter-increment: toc; margin: 0; }
.page-toc a {
    display: block;
    padding: 0.4rem 0.85rem;
    color: var(--color-muted);
    border-left: 2px solid transparent;
    line-height: 1.4;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.page-toc a::before {
    content: counter(toc, decimal-leading-zero);
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 0.85em;
    color: var(--color-gold);
    margin-right: 0.5em;
    opacity: 0.7;
}
.page-toc a:hover {
    color: var(--color-primary);
    background: rgba(85, 153, 204, 0.06);
}
.page-toc a.is-active {
    color: var(--color-primary);
    border-left-color: var(--color-gold);
    font-weight: 600;
}

/* (TOC is fixed-position, no layout wrapper needed.) */

/* ========== Reading time badge ========== */
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--text-sm);
    color: var(--color-muted);
    background: rgba(255, 255, 255, 0.85);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    margin-top: var(--space-3);
}
.reading-time::before { content: '\23F1'; opacity: 0.7; }

.section-title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.last-updated {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* ========== Cards ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ========== Figures (Venn diagram, framework-type grid) ========== */
.venn-figure {
    margin: 0 auto var(--space-6);
    max-width: 480px;
    text-align: center;
}
.venn-figure img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

.framework-type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin: var(--space-5) 0;
}
.framework-type {
    margin: 0;
    text-align: center;
}
.framework-type img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}
.framework-type figcaption {
    margin-top: var(--space-2);
    font-weight: 600;
    color: var(--color-ink);
    font-size: var(--text-sm);
}
@media (max-width: 768px) {
    .framework-type-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========== The Framework breakdown — components → disciplines diagram ========== */
.framework-breakdown {
    max-width: 1000px;
    margin: var(--space-5) auto 0;
    overflow-x: auto;
}
.fw-svg {
    display: block;
    width: 100%;
    min-width: 700px;
    height: auto;
    margin: 0 auto;
}
.fw-diagram-note {
    text-align: center;
    max-width: 60ch;
    margin: var(--space-4) auto 0;
    font-size: var(--text-sm);
    color: #64748b;
}

/* ========== The 16-personality grid — StartSquad-style shared-panel selector ========== */
.ss-grid { margin: var(--space-5) 0 0; }
.ss-rowgroup { margin-bottom: var(--space-5); }
.ss-rowlabel {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-muted);
    margin: 0 0 var(--space-3);
    text-align: center;
}
.ss-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
}
.ss-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    padding: var(--space-3) var(--space-2);
    background: var(--surface-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s, background-color .15s;
}
.ss-cell:hover { border-color: var(--color-primary); transform: translateY(-1px); }
.ss-cell-photo {
    width: 64px; height: 64px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--border-muted);
    margin-bottom: 4px; background: var(--surface-alt);
}
.ss-cell:hover .ss-cell-photo { border-color: var(--color-primary); }
.ss-cell-name { font-weight: 700; color: var(--color-ink); line-height: 1.2; }
.ss-cell-combo { font-size: var(--text-xs); color: var(--color-muted); }
/* selected — blue fill + white text + downward arrow notch pointing into the shared panel */
.ss-cell.selected { background: var(--color-primary); border-color: var(--color-primary); }
.ss-cell.selected .ss-cell-name,
.ss-cell.selected .ss-cell-combo { color: #fff; }
.ss-cell.selected .ss-cell-photo { border-color: #fff; }
.ss-cell.selected::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid var(--color-primary);
    z-index: 2;
}
/* the shared panel (one per dominant row; only the selected subtype's detail shows) */
.ss-panel {
    margin-top: var(--space-4);
    padding: var(--space-5);
    background: var(--surface-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}
.ss-detail { display: flex; gap: var(--space-5); align-items: center; }
.ss-detail[hidden] { display: none; }
.ss-detail-media {
    flex: 0 0 240px;
    display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
}
.ss-detail-media img {
    width: 200px; height: 200px; max-width: 100%;
    border-radius: var(--radius-md); object-fit: cover;
    border: 3px solid var(--color-primary);
}
.ss-detail-eg { font-size: var(--text-xs); color: var(--color-muted); font-style: italic; }
.ss-detail-blurb { width: 100%; margin: var(--space-3) 0 0; text-align: center; line-height: 1.55; }
.ss-detail-body { flex: 1; min-width: 0; }
.ss-detail-name { margin: 0 0 var(--space-3); }
.ss-detail-combo { font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); }
.ss-detail-fit { color: var(--color-text); line-height: 1.65; }
.ss-detail-shape {
    margin: var(--space-4) 0;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-subtle);
    color: var(--color-text);
}
.ss-nav { display: flex; gap: var(--space-2); justify-content: flex-end; margin-top: var(--space-3); }
.ss-nav-btn {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--border-subtle); background: #fff;
    color: var(--color-ink); font-size: 1.4rem; line-height: 1;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    transition: background-color .15s, color .15s, border-color .15s;
}
.ss-nav-btn:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
@media (max-width: 900px) {
    .ss-row { grid-template-columns: repeat(2, 1fr); }
    .ss-cell.selected::after { display: none; }
}
@media (max-width: 600px) {
    .ss-detail { flex-direction: column; align-items: flex-start; }
    .ss-detail-media { flex-basis: auto; align-self: center; }
}
@media (max-width: 480px) {
    .ss-row { grid-template-columns: 1fr; }
}

.card {
    display: block;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    color: #333;
}

.card-icon {
    color: #5599cc;
    margin-bottom: 1rem;
}

/* Homepage pillar scene illustrations — composed inline-SVG vignettes
   (LaunchEase scene-grade house style). Centered above each pillar heading. */
.pillar-scene {
    max-width: 440px;
    margin: 0 auto var(--space-5);
}
.pillar-scene svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Public ETI assessment page (free + anonymous host for the eti.js module) */
.assessment-page { padding-top: var(--space-5); }
.assessment-mount { max-width: 760px; margin: 0 auto; }
/* Anonymous completion gate (register/login to view + save full results) */
.anon-gate-teaser {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin: var(--space-2) 0 var(--space-3);
}
.anon-gate-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-4);
}
.anon-gate-note {
    font-size: var(--text-sm);
    color: var(--color-muted);
    text-align: center;
    margin-top: var(--space-3);
}

/* Pillar split layout — scene beside copy, sides alternate per pillar */
.pillar-split {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}
.pillar-split--reverse {
    flex-direction: row-reverse;
}
.pillar-split .pillar-scene {
    flex: 0 0 42%;
    max-width: 420px;
    margin: 0;
}
.pillar-split .pillar-copy {
    flex: 1 1 0;
}
.pillar-split .pillar-copy .section-title,
.pillar-split .pillar-copy .section-subtitle,
.pillar-split .pillar-copy .section-cta {
    text-align: left;
}
.pillar-split .pillar-copy .section-subtitle {
    margin-bottom: var(--space-4);
}
.pillar-split .pillar-copy .section-cta {
    margin-top: var(--space-4);
}
@media (max-width: 768px) {
    .pillar-split,
    .pillar-split--reverse {
        flex-direction: column;
        gap: var(--space-4);
    }
    .pillar-split .pillar-scene {
        flex-basis: auto;
        margin: 0 auto;
        max-width: 360px;
    }
    .pillar-split .pillar-copy .section-title,
    .pillar-split .pillar-copy .section-subtitle,
    .pillar-split .pillar-copy .section-cta {
        text-align: center;
    }
}

.card h3 {
    margin-bottom: 0.25rem;
}

.card-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.card p {
    color: #555;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.card-cta {
    color: #5599cc;
    font-weight: 600;
    font-size: 0.9rem;
}

.card-eti:hover { border-color: #5599cc; }
.card-eti:hover .card-icon { color: #5599cc; }

/* ========== Disciplines Grid (ETI page) ========== */
.disciplines-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.discipline-card {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #5599cc;
}

.discipline-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.discipline-card p {
    color: #555;
    font-size: 0.95rem;
}

/* ========== Feature List ========== */
.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.feature-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    font-size: 1.05rem;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 8px;
    height: 8px;
    background: #5599cc;
    border-radius: 50%;
}

/* ========== CTA Block ========== */
.cta-block {
    text-align: center;
    padding: 3rem;
    background: #f8fafc;
    border-radius: 12px;
    margin-top: 2.5rem;
}

.cta-block h3 {
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

.cta-note {
    margin-top: 0.75rem;
    color: #64748b;
    font-size: 0.9rem;
}

/* ========== Steps Grid ========== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
}

.step-number {
    display: inline-block;
    width: 48px;
    height: 48px;
    line-height: 48px;
    border-radius: 50%;
    background: #5599cc;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.step h3 { margin-bottom: 0.5rem; }

.step p {
    color: #64748b;
    font-size: 0.95rem;
}

/* ========== Framework Page Utilities ========== */
.section-intro {
    max-width: 750px;
    margin: 0 auto 2rem;
    text-align: center;
    color: #64748b;
    line-height: 1.7;
}

.section-intro strong {
    color: #334155;
}

.section-intro.section-closing {
    margin-top: 2rem;
    margin-bottom: 0;
}

.section-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.section-cta .hint {
    margin-top: 0.75rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.section-link {
    text-align: center;
    margin-top: 2rem;
}

.section-link a {
    color: #5599cc;
    font-weight: 600;
}

.card-grid + .card-grid {
    margin-top: 2rem;
}

.card-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.card-bordered-blue { border-left: 4px solid #5599cc; }
.card-bordered-red { border-left: 4px solid #dc2626; }
.card-bordered-green { border-left: 4px solid #16a34a; }
.card-bordered-yellow { border-left: 4px solid #ca8a04; }

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

.subsection-title {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.subsection-title:first-of-type {
    margin-top: 0;
}

.subsection-intro {
    max-width: 700px;
    margin: 0 auto 2rem;
    text-align: center;
    color: #64748b;
    line-height: 1.7;
}

/* ========== Framework Stages (detail page) ========== */
.phase-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.framework-stages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.framework-stage {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.framework-stage .step-number {
    margin-bottom: 0.75rem;
}

.framework-stage h3 {
    margin-bottom: 0.25rem;
}

.stage-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.framework-stage ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.framework-stage li {
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.framework-stage li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5599cc;
}

/* ========== Ecosystem Journey (Homepage) ========== */
.journey-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.journey-step {
    text-align: center;
    padding: 1.5rem 2rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    min-width: 180px;
}

.journey-step.current {
    border-color: #5599cc;
    background: #eff6ff;
}

.journey-number {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.journey-step.current .journey-number {
    background: #5599cc;
    color: #fff;
}

.journey-step h3 {
    margin-bottom: 0.25rem;
}

.journey-step p {
    color: #64748b;
    font-size: 0.9rem;
}

.journey-step p em {
    color: #5599cc;
}

.journey-arrow {
    font-size: 1.5rem;
    color: #94a3b8;
}

/* ETI→Roadmap hierarchy: make the three cards equal width + height */
.framework-hierarchy { align-items: stretch; }
.framework-hierarchy .journey-step { flex: 1 1 0; background: #fff; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06); }
.framework-hierarchy .journey-step.current { background: #fff; }
.framework-hierarchy .journey-arrow { align-self: center; }

.journey-desc {
    text-align: center;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ========== Ecosystem Detail (About page) ========== */
.ecosystem-detail {
    margin-top: 2rem;
}

.eco-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #5599cc;
}

.eco-item h3 {
    margin-bottom: 0.5rem;
}

.badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    background: #5599cc;
    color: #fff;
    border-radius: 3px;
    vertical-align: middle;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ========== Coming Soon ========== */
.coming-soon {
    text-align: center;
    padding: 4rem 1rem;
}

.coming-soon h2 {
    margin-bottom: 1rem;
    color: #64748b;
}

.coming-soon p {
    color: #94a3b8;
    margin-bottom: 2rem;
}

/* ========== Footer ========== */
.site-footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #334155;
}

.footer-brand .logo-text {
    color: #e2e8f0;
    font-size: 1.25rem;
}

.footer-brand .logo-text strong {
    color: #93c5fd;
}

.footer-brand p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-brand a {
    color: #93c5fd;
}

.footer-nav h4 {
    color: #e2e8f0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.4rem;
}

.footer-nav a {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* ========== Responsive: 900px ========== */
@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

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

    .journey-flow {
        flex-direction: column;
        gap: 1rem;
    }

    .journey-arrow {
        transform: rotate(90deg);
    }

    .journey-step {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }

    /* stacked: cards size to content + stay centered (undo desktop equal-flex) */
    .framework-hierarchy { align-items: center; }
    .framework-hierarchy .journey-step { flex: 0 0 auto; }

}

/* ========== Responsive: 768px ========== */
/* ========== Nav collapse: switch to hamburger from iPad portrait down ==========
   At ≤900px the 7-item nav + CTA crowd the header on iPad portrait
   (~768–820px). Hamburger kicks in here; iPad landscape (1024+) keeps
   the desktop nav since it has plenty of room. */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e2e8f0;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

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

    .site-header .container {
        position: relative;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero-title-animated { font-size: 2.25rem; min-height: 2.4em; }
    .hero { padding: 3.5rem 0; }
    .content-section { padding: 3rem 0; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .framework-stages { grid-template-columns: 1fr; }
    .card-grid-2 { grid-template-columns: 1fr; }

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

/* ========== Responsive: 480px ========== */
@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    .hero h1 { font-size: 1.85rem; }
    .hero-title-animated { font-size: 1.5rem; min-height: 3.6em; }
    .hero-subtitle { font-size: 1rem; }
    .hero { padding: 2.5rem 0; }
    .content-section { padding: 2rem 0; }
    .card { padding: 1.5rem; }
    .btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
    .cta-block { padding: 2rem 1rem; }
    .hero-stats { flex-direction: column; gap: 1.25rem; }
    .steps-grid { grid-template-columns: 1fr; }
}

/* ========== Accessibility ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.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;
}

/* ==========================================================================
   PHASE 1: Auth, Dashboard, Sidebar, Admin, Flash, Session Warning
   Added for v1.0.0 platform foundation
   ========================================================================== */

/* ========== Flash Messages ========== */
.flash-message {
    padding: 0.875rem 1.25rem;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.flash-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.flash-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ========== Auth Forms ========== */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 2rem 1rem;
}

.auth-form {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.25rem;
    text-align: center;
}

.auth-subtitle {
    font-size: 0.9375rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-portal-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
}

.form-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #111;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #5599cc;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-input.is-invalid {
    border-color: #dc2626;
}

.form-hint {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.form-error {
    font-size: 0.8125rem;
    color: #dc2626;
    margin-top: 0.25rem;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
}

.form-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #5599cc;
}

.form-submit {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: #5599cc;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.5rem;
}

.form-submit:hover {
    background: #3574a3;
}

.form-submit:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}

.form-links {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
}

.form-link {
    color: #5599cc;
    font-weight: 500;
}

.form-link:hover {
    text-decoration: underline;
}

/* ========== Dashboard Layout ========== */
.app-body {
    background: #f1f5f9;
    min-height: 100vh;
}

.app-layout {
    /* Sidebar is fixed (out of flow), so this is just a positioning context.
       No flex needed. */
    min-height: calc(100vh - var(--ecosystem-nav-h));
}

.app-main {
    /* Right of the fixed 260px sidebar on desktop. The mobile drawer
       (≤768px) overrides margin-left to 0. */
    margin-left: 260px;
    min-width: 0;
    padding: 2rem;
}

.app-content {
    max-width: 1100px;
    margin: 0 auto;
}

.app-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #6b7280;
    font-size: 1rem;
}

/* ========== Sidebar ========== */
/* SPA dashboard sidebar — fixed below the ecosystem-nav. Out of flow so
   .app-main doesn't stretch to match the sidebar's height (which used to
   create empty whitespace below short content). Mobile drawer override
   (≤768px) keeps position: fixed but adds the slide-in transform. */
.app-sidebar {
    width: 260px;
    background: #1e293b;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease;
    position: fixed;
    top: var(--ecosystem-nav-h);
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #334155;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: visible;
}

.sidebar-header .logo {
    text-decoration: none;
}

.sidebar-header .logo-text {
    font-size: 1.25rem;
    color: #fff;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.sidebar-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

.sidebar-user {
    padding: 1rem;
    border-bottom: 1px solid #334155;
}

.sidebar-username {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #fff;
}

.sidebar-portal {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-top: 0.125rem;
}

.portal-presenter-badge {
    background: #f0f4ff;
    color: #475569;
    font-size: 0.8125rem;
    padding: 6px 16px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0;
    overflow-y: auto;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-separator {
    padding: 0.75rem 1rem 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-top: 1px solid #334155;
    margin-top: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    color: #cbd5e1;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: #334155;
    color: #fff;
}

.sidebar-link.active {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    border-left-color: #5599cc;
    font-weight: 600;
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.7;
}

.sidebar-link.active .sidebar-icon {
    opacity: 1;
}

.sidebar-label {
    flex: 1;
}

.sidebar-phase {
    font-size: 0.6875rem;
    background: #475569;
    color: #e2e8f0;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-weight: 500;
}

.sidebar-item-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #334155;
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: #94a3b8;
    font-size: 0.875rem;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: inherit;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

.sidebar-logout:hover {
    background: #334155;
    color: #f87171;
}

/* ========== Dashboard Home ========== */
.dashboard-home {
    padding: 0;
    max-width: 960px;
    margin: 0 auto;
}

.dashboard-greeting h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.dashboard-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 1.75rem;
}

/* Action & Summary Panel (ETI-style) */
.dashboard-action-panel {
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.action-panel-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.25rem;
}

.action-panel-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #bfdbfe;
}

.action-btn {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    cursor: pointer;
}

.action-btn:hover {
    transform: translateY(-1px);
}

.action-btn-primary {
    background: #5599cc;
    color: #fff;
}

.action-btn-primary:hover {
    background: #3574a3;
}

.action-btn-secondary {
    background: #64748b;
    color: #fff;
}

.action-btn-secondary:hover {
    background: #475569;
}

.action-panel-summary {
    text-align: center;
}

.action-panel-summary h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.summary-item {
    font-size: 0.9375rem;
    color: #374151;
    padding: 0.375rem 0;
}

.summary-item strong {
    color: #1e293b;
}

/* Dashboard Feature Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.dashboard-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
    border-top: 3px solid #e5e7eb;
}

.dashboard-card-assessment {
    border-top-color: #5599cc;
}

.dashboard-card-training {
    border-top-color: #22c55e;
}

.dashboard-card-games {
    border-top-color: #eab308;
}

.dashboard-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.dashboard-card h3 {
    font-size: 1.0625rem;
    color: #111;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.dashboard-card p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #5599cc;
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

/* ========== Coming Soon Badge ========== */
.coming-soon {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.1875rem 0.5rem;
    border-radius: 3px;
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* ========== Buttons (Shared) ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    background: #5599cc;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #3574a3;
    color: #fff;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #111;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    background: #dc2626;
    color: #fff;
    border: 1px solid #dc2626;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

.danger-zone {
    border: 1px solid #fecaca;
    background: #fef2f2;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.danger-zone h3 {
    color: #991b1b;
}

/* ========== Admin Tables ========== */
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    font-size: 0.875rem;
}

.admin-table thead {
    position: sticky;
    top: 0;
    z-index: 5;
}

.admin-table th {
    background: #f8fafc;
    color: #374151;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

.admin-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    vertical-align: middle;
}

.admin-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.admin-table tbody tr:hover {
    background: #f1f5f9;
}

.admin-badge {
    display: inline-block;
    padding: 0.1875rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-form {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

/* ========== Session Warning Modal ========== */
.session-warning {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.session-warning.active {
    display: flex;
}

.session-warning-content {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.session-warning-content h3 {
    font-size: 1.25rem;
    color: #111;
    margin-bottom: 0.5rem;
}

.session-warning-content p {
    font-size: 0.9375rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.session-warning-content .btn-primary {
    margin-right: 0.5rem;
}

/* Mobile header bar */
.mobile-header {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #1e293b;
    color: #fff;
    position: sticky;
    /* Sticks 1px high so it overlaps the bottom edge of the ecosystem-nav
       and no sub-pixel rendering gap shows between the two sticky bars. */
    top: calc(var(--ecosystem-nav-h) - 1px);
    z-index: 250;
}
.mobile-header-title {
    font-size: 1.125rem;
}
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
}
.mobile-menu-btn:hover {
    background: rgba(255,255,255,0.1);
}
.mobile-menu-btn .sidebar-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}
@media (max-width: 768px) {
    .mobile-header { display: flex; }
}
@media (max-width: 480px) {
    .ecosystem-nav .container { flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
    .ecosystem-label { display: none; }
    /* Tighten the ecosystem-nav vertical chrome on phones to reclaim
       viewport space (audit D4). Pre-fix the 40px nav + 72px site-header
       ate ~25% of a phone's vertical real estate. */
    .ecosystem-nav { padding: 0.2rem 0; font-size: 0.7rem; }
    body { padding-top: 32px; }
    :root { --ecosystem-nav-h: 32px; }
}

/* ========== Related-pages panel (opt-in via .related-pages) ========== */
/* Apply at the bottom of long-form pages (about, post) above the site
   footer. Gives readers an actionable next step before they hit the
   absolute bottom and bounce. */
.related-pages {
    background: var(--surface-alt);
    padding: var(--space-7) 0;
    margin-top: var(--space-7);
}
.related-pages .related-eyebrow {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
    text-align: center;
    margin-bottom: var(--space-3);
}
.related-pages h3 {
    text-align: center;
    margin: 0 0 var(--space-5);
    font-size: var(--text-xl);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
    max-width: 960px;
    margin: 0 auto;
}
.related-grid a {
    display: block;
    background: var(--surface-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    color: var(--color-text);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.related-grid a:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.related-grid a strong {
    display: block;
    color: var(--color-ink);
    font-size: var(--text-lg);
    margin-bottom: 0.25rem;
}
.related-grid a span {
    display: block;
    color: var(--color-muted);
    font-size: var(--text-sm);
    line-height: 1.45;
}

/* Sidebar backdrop (mobile) */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.25s;
}
.sidebar-backdrop.visible {
    display: block;
    opacity: 1;
}

/* ========== Responsive: Dashboard (768px) ========== */
@media (max-width: 768px) {
    .sidebar-toggle {
        display: flex;
    }

    .app-sidebar {
        /* Already fixed in the desktop rule — just widen for the drawer and
           hide it off-screen by default. */
        width: 280px;
        transform: translateX(-100%);
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.2);
    }

    .app-sidebar.open {
        transform: translateX(0);
    }

    /* Drawer mode → main content is full-width (no fixed sidebar to clear). */
    .app-main { margin-left: 0; }

    /* Lock background scroll while the drawer is open. */
    body.sidebar-open { overflow: hidden; }

    .app-layout {
        flex-direction: column;
    }

    .app-main {
        padding: 1rem;
        min-height: calc(100vh - 30px);
    }

    /* Mobile header bar with toggle */
    .sidebar-header {
        position: sticky;
        top: 0;
        background: #1e293b;
        z-index: 1;
    }

    .auth-form {
        padding: 1.75rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
    }

    /* Dashboard home cards stack on mobile */
    .dashboard-action-panel {
        padding: 1.25rem;
    }

    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== Responsive: Dashboard (480px) — small phones ========== */

/* ========== Responsive: Dashboard (480px) ========== */
@media (max-width: 480px) {
    .auth-form {
        padding: 1.25rem;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }

    .auth-title {
        font-size: 1.5rem;
    }

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

    .app-main {
        padding: 1rem;
    }

    .session-warning-content {
        padding: 1.5rem;
    }
}

/* ========== Assessment Quiz ========== */
.quiz-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem;
}

/* 4-Part Progress Indicator */
.quiz-progress-wrapper { margin-bottom: 1.25rem; }
.quiz-progress-segments { display: flex; gap: 4px; margin-bottom: 0.5rem; }
.quiz-progress-segment { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.625rem 0.25rem; font-size: 0.75rem; font-weight: 600; color: #94a3b8; background: #f1f5f9; border-radius: 8px; transition: 0.25s all; position: relative; overflow: hidden; }
.quiz-progress-segment.active { color: #5599cc; background: #eff6ff; border: 2px solid #bfdbfe; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08); }
.quiz-progress-segment.completed { color: #166534; background: #dcfce7; border: 1px solid #bbf7d0; }
.segment-indicator { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: 0.7rem; font-weight: 700; background: #e2e8f0; color: #94a3b8; }
.quiz-progress-segment.active .segment-indicator { background: #5599cc; color: #fff; }
.quiz-progress-segment.completed .segment-indicator { background: #16a34a; color: #fff; }
.segment-check-icon { background: #16a34a; color: #fff; }
.segment-check-icon svg { display: block; }
.segment-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.7rem; letter-spacing: 0.01em; }
.segment-fill { position: absolute; bottom: 0; left: 0; height: 3px; background: linear-gradient(90deg, #5599cc 0%, #60a5fa 100%); border-radius: 0 0 8px 8px; transition: width 0.3s ease; }
.quiz-progress-count { font-size: 0.8rem; color: #6b7280; text-align: center; margin-top: 0.25rem; }

/* Type Hint (personalized intro) */
.quiz-type-hint { display: flex; align-items: center; gap: 0.625rem; padding: 0.75rem 1rem; margin: 1rem 0; border-left: 4px solid #5599cc; background: #eff6ff; border-radius: 0 8px 8px 0; font-size: 0.9rem; color: #374151; line-height: 1.5; }
.type-hint-icon { font-size: 1.1rem; flex-shrink: 0; }
.type-hint-text strong { font-weight: 700; }

/* Calculating Interstitial */
.calculating-interstitial { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 1.5rem; min-height: 320px; text-align: center; }
.calculating-interstitial .calc-segments { max-width: 480px; width: 100%; margin-bottom: 2rem; }
.calc-title { font-size: 1.5rem; font-weight: 700; color: #1e293b; margin: 0 0 0.5rem; }
.calc-desc { font-size: 1rem; color: #6b7280; margin: 0 0 1.5rem; transition: opacity 0.3s ease; }
.calc-shuffle { font-size: 1.75rem; font-weight: 800; min-height: 2.5rem; color: #5599cc; transition: color 0.3s ease; letter-spacing: -0.02em; }
.calc-dots { display: flex; gap: 8px; margin-top: 1.5rem; }
.calc-dot { width: 10px; height: 10px; border-radius: 50%; background: #5599cc; animation: calcPulse 1.4s ease-in-out infinite; }
.calc-dot:nth-child(2) { animation-delay: 0.2s; }
.calc-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes calcPulse { 0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1.2); } }
.calc-fade-in { animation: calcFadeIn 0.5s ease-out; }
@keyframes calcFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.quiz-question {
    padding: 1.5rem 0;
    margin: 1rem 0;
}

.quiz-question-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quiz-option {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: white;
}

.quiz-option:hover {
    border-color: #93c5fd;
    background: #f0f7ff;
}

.quiz-option.selected {
    border-color: #5599cc;
    background: #eff6ff;
    font-weight: 500;
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.quiz-nav-btn {
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.quiz-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quiz-nav-btn.btn-next {
    background: #5599cc;
    color: white;
}

.quiz-nav-btn.btn-back {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.quiz-intro {
    text-align: center;
    padding: 3rem 1rem;
}

.quiz-intro-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.quiz-intro-desc {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.quiz-begin-btn {
    display: inline-block;
    background: #5599cc;
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.quiz-begin-btn:hover {
    background: #3574a3;
}

/* ========== Results Container ========== */
.results-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

.results-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
    text-align: center;
}

.results-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.results-section:last-child {
    border-bottom: none;
}

.results-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    margin-top: 0;
    color: #1e293b;
}

.results-subsection-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    color: #374151;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid #e5e7eb;
}

.results-subsection-title:first-child {
    margin-top: 0;
}

/* ========== Hero Profile Section ========== */
.results-hero {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
}

.hero-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.hero-profile-left .results-section,
.hero-profile-right .results-section {
    margin-bottom: 1rem;
    padding-bottom: 0;
    border-bottom: none;
}

.hero-profile-left .results-section:last-child,
.hero-profile-right .results-section:last-child {
    margin-bottom: 0;
}

.hero-profile-right .results-subsection-title {
    border-bottom: none;
    padding-bottom: 0;
}

/* Remove inner card styling inside hero to avoid double borders */
.results-hero .subtype-card {
    background: transparent;
    border: none;
    padding: 0;
    text-align: left;
    max-width: none;
    margin: 0;
}

.results-hero .radar-chart-wrap {
    box-shadow: none;
    padding: 0.5rem;
}

/* ========== Grouped Sections ========== */
.results-attributes-group,
.results-readiness-group {
    margin-top: 3rem;
}

.results-attributes-group > .results-section,
.results-readiness-group > .results-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.results-attributes-group > .results-section:last-child,
.results-readiness-group > .results-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.results-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.results-empty h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.results-empty p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.results-error {
    color: #991b1b;
    text-align: center;
    padding: 2rem 1rem;
}

/* ========== 1. Type Breakdown ========== */
.type-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.type-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.type-bar-label {
    min-width: 160px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.type-bar-track {
    flex: 1;
    height: 24px;
    background: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.type-bar-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.6s ease;
}

/* ========== 2. Subtype Card ========== */
.subtype-card {
    background: #f8fafc;
    border: 2px solid #5599cc;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.subtype-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #5599cc;
    margin-bottom: 0.5rem;
}

.subtype-types {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.subtype-dominant,
.subtype-influencer {
    font-weight: 600;
}

.subtype-key {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

/* ========== Subtype description ========== */
.subtype-description {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0.75rem 0 1rem;
}

.subtype-dominant-heading {
    font-size: 1rem;
    color: #1e293b;
    margin: 0.75rem 0 0.25rem;
}

.subtype-influencer-heading {
    font-size: 1rem;
    color: #1e293b;
    margin: 0.75rem 0 0.25rem;
}

.subtype-influencer-list {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: #374151;
}

.subtype-influencer-list li {
    margin-bottom: 0.15rem;
}

/* ========== 3. Confidence / Yrnehtism — inline metrics ========== */
.metric-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 1rem;
    color: #374151;
}

.metric-inline-label {
    font-size: 1rem;
}

/* Info button (i) circle */
.info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 50%;
    font-size: 0.75rem;
    font-style: italic;
    font-weight: 600;
    color: #999;
    cursor: help;
    position: relative;
    flex-shrink: 0;
}

.info-btn:hover,
.info-btn:focus {
    border-color: #5599cc;
    color: #5599cc;
}

/* Tooltip on hover/focus */
.info-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    padding: 0.625rem 0.75rem;
    background: #1e293b;
    color: #fff;
    font-size: 0.775rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    pointer-events: none;
}

.info-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e293b;
}

.info-btn:hover .info-tooltip,
.info-btn:focus .info-tooltip {
    display: block;
}

/* ========== 3b. Yrnehtism (legacy class kept for standalone section) ========== */
.yrnehtism-info {
    font-size: 0.8rem;
    color: #9ca3af;
    font-style: italic;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* ========== 4. Radar Chart ========== */
.radar-chart-wrap {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
}

.radar-chart-wrap canvas {
    width: 100% !important;
    height: auto !important;
}

/* Radar legend checkboxes */
.radar-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.radar-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #374151;
    cursor: pointer;
}

.radar-legend-item.radar-legend-disabled {
    color: #9ca3af;
    cursor: default;
}

.radar-legend-cb {
    display: none;
}

.radar-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 2px solid transparent;
    position: relative;
    flex-shrink: 0;
}

.radar-swatch-user {
    background: rgba(37, 99, 235, 0.2);
    border-color: #5599cc;
}

.radar-swatch-partner {
    background: rgba(255, 196, 57, 0.3);
    border-color: #ffc439;
}

.radar-legend-cb:checked + .radar-swatch::after {
    content: '\2713';
    position: absolute;
    top: -2px;
    left: 2px;
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
}

.radar-legend-disabled .radar-swatch-partner {
    opacity: 0.5;
}

.radar-pro-gate {
    font-size: 0.75rem;
    color: #6366f1;
    font-style: italic;
}

/* ========== 5. Attribute Polarities ========== */
.polarity-group {
    margin-bottom: 1.75rem;
}

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

.polarity-no-detail {
    font-size: 0.85rem;
    color: #6b7280;
    font-style: italic;
    margin: 0.5rem 0 0 0;
    padding-left: 0.25rem;
}

.polarity-group-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #374151;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid #e5e7eb;
}

.polarity-pair {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
}

.polarity-label {
    font-size: 0.75rem;
    min-width: 110px;
    color: #6b7280;
    line-height: 1.2;
}

.polarity-label-left {
    text-align: right;
}

.polarity-label-right {
    text-align: left;
}

.polarity-track {
    flex: 1;
    height: 12px;
    background: #f1f5f9;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.polarity-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 6px;
    background: #5599cc;
    transition: width 0.4s ease;
}

.polarity-marker {
    position: absolute;
    top: -2px;
    width: 4px;
    height: 16px;
    background: #1e293b;
    border-radius: 2px;
    transform: translateX(-2px);
    z-index: 1;
}

/* ========== 6. Polarity Leans ========== */
.lean-pair {
    margin-bottom: 0.875rem;
}

.lean-fill {
    background: #6366f1;
}

.lean-pair .polarity-track {
    height: 16px;
    border-radius: 8px;
}

.lean-pair .polarity-marker {
    height: 20px;
    top: -2px;
}

/* ========== 7. Tension Analysis ========== */
.tension-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    background: #dcfce7;
    color: #166534;
}

.tension-badge.tension-none,
.tension-badge.tension-good {
    background: #dcfce7;
    color: #166534;
}

.tension-badge.tension-low {
    background: #fef9c3;
    color: #854d0e;
}

.tension-badge.tension-moderate {
    background: #fed7aa;
    color: #9a3412;
}

.tension-badge.tension-high,
.tension-badge.tension-very-high {
    background: #fecaca;
    color: #991b1b;
}

.tension-badge.tension-under-confident {
    background: #dbeafe;
    color: #1e40af;
}

.tension-score {
    font-size: 1.25rem;
    font-weight: 700;
}

.tension-label {
    font-size: 0.875rem;
}

.tension-flags {
    margin-top: 1rem;
    list-style: none;
    padding: 0;
}

.tension-flag {
    padding: 0.625rem 0.75rem;
    margin-bottom: 0.5rem;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #f59e0b;
    font-size: 0.875rem;
    color: #374151;
}

.tension-flag:last-child {
    margin-bottom: 0;
}

p.tension-none {
    color: #166534;
    font-size: 0.9rem;
    font-style: italic;
}

/* ========== 8. Ideal Partner ========== */
.partner-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.partner-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5599cc;
    margin-bottom: 0.5rem;
}

.partner-desc {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
}

.partner-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 1rem 0 0.25rem;
}

.partner-why,
.partner-dynamics {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
}

.partner-invite-btn {
    display: inline-block;
    margin-top: 1.25rem;
    text-decoration: none;
}

/* Inside hero, partner card spans full width */
.results-hero .results-partner {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.results-hero .partner-card {
    max-width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 0;
}

/* ========== 9. DK Gap (Dunning-Kruger) ========== */
.dk-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.dk-overall-label {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.dk-overall-gap {
    font-size: 0.85rem;
    color: #6b7280;
    margin-left: auto;
}

.dk-discipline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.dk-discipline-label {
    min-width: 150px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.dk-bar-wrap {
    flex: 1;
    height: 20px;
    background: #f1f5f9;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.dk-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.dk-bar-self {
    background: #5599cc;
    opacity: 0.7;
    z-index: 1;
}

.dk-bar-comp {
    border: 2px solid #ef4444;
    background: transparent;
    z-index: 2;
    box-sizing: border-box;
}

.dk-values {
    font-size: 0.8rem;
    color: #6b7280;
    min-width: 70px;
    text-align: right;
}

.dk-legend {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.dk-legend-item {
    font-size: 0.8rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.dk-legend-self::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: #5599cc;
    opacity: 0.7;
}

.dk-legend-comp::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 2px solid #ef4444;
    box-sizing: border-box;
}

/* ========== 10. Readiness Rating ========== */
.readiness-overall {
    margin-bottom: 1.5rem;
}

.readiness-sq-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.readiness-bar {
    margin-bottom: 0.625rem;
}

/* ========== 11. Roadmaps ========== */
.roadmap-loading {
    color: #6b7280;
    font-style: italic;
}

.roadmap-fit {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

/* --- 4-Level Collapsible Accordion --- */
.roadmap-collapsible {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.roadmap-collapsible:last-child {
    margin-bottom: 0;
}

.roadmap-collapsible-header {
    width: 100%;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    user-select: none;
    text-align: left;
    font-family: inherit;
    transition: background 0.15s;
}

.roadmap-collapsible-header:hover {
    background: #f1f5f9;
}

/* Chevron indicator */
.roadmap-chevron {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid #9ca3af;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.roadmap-collapsible.open > .roadmap-collapsible-header .roadmap-chevron {
    transform: rotate(90deg);
}

/* Body — hidden by default, shown when .open */
.roadmap-collapsible-body {
    display: none;
    border-top: 1px solid #e5e7eb;
}

.roadmap-collapsible.open > .roadmap-collapsible-body {
    display: block;
}

/* Level 1: Phase */
.roadmap-level-1 {
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.roadmap-header-level-1 {
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    background: #eef2ff;
}

.roadmap-header-level-1:hover {
    background: #e0e7ff;
}

.roadmap-level-1 > .roadmap-collapsible-body {
    padding: 0.75rem 1rem;
}

.roadmap-phase-label {
    flex: 1;
}

/* Level 2: Step */
.roadmap-level-2 {
    border-color: #e5e7eb;
    border-radius: 6px;
}

.roadmap-header-level-2 {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: #f8fafc;
}

.roadmap-header-level-2:hover {
    background: #f1f5f9;
}

.roadmap-level-2 > .roadmap-collapsible-body {
    padding: 0.75rem 1rem;
}

.roadmap-step-label {
    flex: 1;
}

.roadmap-step-label u {
    text-decoration: underline;
}

.roadmap-step-narrative {
    color: #4b5563;
    line-height: 1.65;
    margin-bottom: 0.75rem;
    margin-top: 0;
    font-weight: 400;
    font-size: 0.9rem;
}

/* Level 3: Discipline */
.roadmap-level-3 {
    border-color: #e5e7eb;
    border-radius: 6px;
}

.roadmap-header-level-3 {
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    background: #fafafa;
}

.roadmap-header-level-3:hover {
    background: #f5f5f5;
}

.roadmap-level-3 > .roadmap-collapsible-body {
    padding: 0.625rem 0.875rem;
}

/* Discipline badge — colored inline label */
.discipline-badge {
    display: inline-block;
    padding: 0.2rem 0.625rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

.discipline-badge.discipline-ops {
    background: #FF9800;
    color: #fff;
}

.discipline-badge.discipline-marketing {
    background: #9C27B0;
    color: #fff;
}

.discipline-badge.discipline-products {
    background: #4CAF50;
    color: #fff;
}

.discipline-badge.discipline-legal {
    background: #CDDC39;
    color: #333;
}

/* Level 4: Sub-heading */
.roadmap-level-4 {
    border-color: #ebebeb;
    border-radius: 4px;
}

.roadmap-header-level-4 {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    background: #fdfdfd;
    color: #374151;
}

.roadmap-header-level-4:hover {
    background: #f8f8f8;
}

.roadmap-level-4 > .roadmap-collapsible-body {
    padding: 0.5rem 0.75rem;
}

.roadmap-subheading-label {
    flex: 1;
}

/* Task content: paragraphs and bullets */
.roadmap-paragraph {
    color: #374151;
    line-height: 1.65;
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
}

.roadmap-paragraph:last-child {
    margin-bottom: 0;
}

.roadmap-bullet {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}

.roadmap-bullet:last-child {
    margin-bottom: 0;
}

.roadmap-bullet-dot {
    flex-shrink: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #6b7280;
    margin-top: 0.5rem;
}

/* ========== Retake & History ========== */
.retake-info {
    color: #6b7280;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.history-date {
    font-size: 0.8rem;
    color: #9ca3af;
    min-width: 80px;
}

.history-subtype {
    font-weight: 600;
    color: #1e293b;
    flex: 1;
}

.history-confidence {
    font-size: 0.8rem;
    color: #6b7280;
}

.history-view-btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
}

.history-badge {
    display: inline-block;
    background: #fef9c3;
    color: #854d0e;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ========== Responsive: Assessment + Results (768px) ========== */
@media (max-width: 768px) {
    .quiz-container,
    .results-container {
        padding: 1rem;
    }

    .type-bar-label {
        min-width: 120px;
        font-size: 0.8rem;
    }

    .dk-discipline-label {
        min-width: 100px;
        font-size: 0.8rem;
    }

    .polarity-label {
        min-width: 80px;
        font-size: 0.7rem;
    }

    .subtype-name {
        font-size: 1.4rem;
    }

    .radar-chart-wrap {
        max-width: 100%;
        padding: 1rem;
    }

    .history-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .hero-profile-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .results-hero {
        padding: 1.25rem;
    }
}

/* ========== Responsive: Assessment + Results (480px) ========== */
@media (max-width: 480px) {
    .quiz-option {
        padding: 0.75rem;
    }

    .results-title {
        font-size: 1.35rem;
    }

    .type-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .type-bar-label {
        min-width: unset;
    }

    .polarity-pair {
        flex-direction: column;
        gap: 0.25rem;
    }

    .polarity-label {
        min-width: unset;
        text-align: center;
    }

    .polarity-label-left,
    .polarity-label-right {
        text-align: center;
    }

    .dk-discipline {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .dk-discipline-label {
        min-width: unset;
    }

    .dk-values {
        text-align: left;
    }

    .dk-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .dk-overall-gap {
        margin-left: 0;
    }

    .partner-card,
    .subtype-card {
        padding: 1.25rem;
    }

    .subtype-name {
        font-size: 1.25rem;
    }

    .info-tooltip {
        width: 200px;
        left: auto;
        right: -10px;
        transform: none;
    }

    .info-tooltip::after {
        left: auto;
        right: 14px;
        transform: none;
    }

    .partner-name {
        font-size: 1.2rem;
    }

    .history-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .tension-badge {
        padding: 0.375rem 0.875rem;
        font-size: 0.8rem;
    }
}

/* ========== Training Hub ========== */

/* Training Cards Grid */
.training-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.training-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}

.training-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.training-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.training-card-excerpt {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.training-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.8rem;
    color: #9ca3af;
}

.training-card-price {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
}

.training-card-spots {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Status Badges */
.training-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-open { background: #dcfce7; color: #166534; }
.badge-upcoming { background: #dbeafe; color: #1e40af; }
.badge-full { background: #fed7aa; color: #9a3412; }
.badge-draft { background: #f1f5f9; color: #64748b; }
.badge-progress { background: #e0e7ff; color: #3730a3; }
.badge-completed { background: #f1f5f9; color: #475569; }
.badge-cancelled { background: #fecaca; color: #991b1b; }
.badge-pending { background: #fef9c3; color: #854d0e; }
.badge-confirmed { background: #dcfce7; color: #166534; }
.badge-attended { background: #dbeafe; color: #1e40af; }
.badge-default { background: #f1f5f9; color: #64748b; }

/* Delivery Badges */
.delivery-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.delivery-online { background: #dbeafe; color: #1e40af; }
.delivery-in-person { background: #dcfce7; color: #166534; }
.delivery-hybrid { background: #fef3c7; color: #92400e; }

/* Training Detail */
.training-detail {
    max-width: 900px;
    margin: 0 auto;
}

.training-detail-header {
    margin-bottom: 2rem;
}

.training-detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.training-detail-body {
    line-height: 1.7;
    color: #374151;
}

.training-detail-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.training-detail-sidebar {
    position: sticky;
    top: 1rem;
    align-self: start;
}

/* Price Card */
.price-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
}

.price-card-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.price-card-note {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.price-breakdown {
    margin-bottom: 1rem;
}

.price-line {
    display: flex;
    justify-content: space-between;
    padding: 0.375rem 0;
    font-size: 0.875rem;
}

.price-line.price-total {
    font-weight: 700;
    border-top: 1px solid #e2e8f0;
    padding-top: 0.5rem;
    margin-top: 0.25rem;
}

.discount-input-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.discount-input-row input {
    flex: 1;
}

/* Tab Bar */
.training-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.training-tab {
    padding: 0.625rem 1.25rem;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
}

.training-tab:hover {
    color: #374151;
}

.training-tab.active {
    color: #5599cc;
    border-bottom-color: #5599cc;
    font-weight: 600;
}

/* Training Form (admin) */
.training-form {
    max-width: 800px;
}

.training-form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.training-form-section:last-child {
    border-bottom: none;
}

.training-form-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.training-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.session-dates-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.session-date-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.session-date-row input {
    flex: 1;
}

.btn-remove-date {
    background: #fecaca;
    color: #991b1b;
    border: none;
    border-radius: 4px;
    padding: 0.375rem 0.625rem;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-add-date {
    background: #f1f5f9;
    color: #374151;
    border: 1px dashed #d1d5db;
    border-radius: 4px;
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Notes Panel (admin registrations) */
.notes-panel {
    background: #fafbfc;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 0.75rem;
}

.notes-list {
    font-size: 0.85rem;
    color: #374151;
    white-space: pre-line;
    margin-bottom: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
}

.notes-add-form {
    display: flex;
    gap: 0.5rem;
}

.notes-add-form input {
    flex: 1;
}

/* ========== Milestones ========== */

/* Milestone List */
.milestone-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.milestone-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.milestone-card:hover {
    border-color: #93c5fd;
}

.milestone-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.milestone-card-title {
    font-weight: 600;
    font-size: 1rem;
}

.milestone-type-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    background: #f1f5f9;
    color: #64748b;
}

.milestone-type-deliverable { background: #dbeafe; color: #1e40af; }
.milestone-type-survey { background: #fef3c7; color: #92400e; }
.milestone-type-eti_check { background: #dcfce7; color: #166534; }
.milestone-type-documentation { background: #e0e7ff; color: #3730a3; }
.milestone-type-assessment { background: #fce7f3; color: #9d174d; }

.milestone-status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.milestone-due {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Submission Form */
.submission-form {
    max-width: 700px;
}

.submission-field {
    margin-bottom: 1.25rem;
}

.submission-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}

.submission-field input,
.submission-field textarea,
.submission-field select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
}

.submission-field textarea {
    min-height: 100px;
    resize: vertical;
}

.submission-file-list {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
}

.submission-file-list li {
    padding: 0.375rem 0;
    font-size: 0.85rem;
    color: #374151;
}

.submission-feedback {
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

/* Progress Matrix */
.progress-matrix {
    overflow-x: auto;
}

.progress-matrix table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.8rem;
}

.progress-matrix th {
    padding: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.progress-matrix td {
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.progress-cell {
    cursor: pointer;
}

.progress-cell:hover {
    background: #f0f7ff;
}

/* Attendance Grid */
.attendance-grid {
    overflow-x: auto;
    margin-top: 1rem;
}

.attendance-grid table {
    border-collapse: collapse;
    width: 100%;
}

.attendance-grid th,
.attendance-grid td {
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
}

.attendance-grid select {
    padding: 0.25rem;
    font-size: 0.8rem;
    border-radius: 4px;
}

/* Review Panel */
.review-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.review-panel h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.review-actions {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

/* Workbook */
.workbook-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.workbook-current {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Certificate */
.certificate-status {
    text-align: center;
    padding: 2rem;
}

.certificate-eligible {
    color: #166534;
}

.certificate-ineligible {
    color: #991b1b;
}

.certificate-breakdown {
    max-width: 500px;
    margin: 1rem auto;
    text-align: left;
}

.certificate-breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

/* ========== Responsive: Training Hub (768px) ========== */
@media (max-width: 768px) {
    .training-detail-layout {
        grid-template-columns: 1fr;
    }

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

    .training-form .form-row {
        grid-template-columns: 1fr;
    }

    .progress-matrix {
        font-size: 0.7rem;
    }

    .milestone-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
    }
}

/* ========== Application Form ========== */
.application-form {
    max-width: 700px;
    margin: 0 auto;
}

.application-question {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.application-question-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.application-question-hint {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.scale-options {
    display: flex;
    gap: 0.5rem;
}

.scale-option {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
}

.scale-option.selected {
    background: #5599cc;
    color: white;
    border-color: #5599cc;
}

/* ========== Application Status ========== */
.application-status-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.application-status-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.status-pending { color: #eab308; }
.status-scored { color: #5599cc; }
.status-approved { color: #22c55e; }
.status-rejected { color: #ef4444; }
.status-waitlisted { color: #f97316; }

/* ========== Score Display ========== */
.score-dimensions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 500px;
    margin: 1rem auto;
}

.score-dimension {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.score-dimension-label {
    min-width: 150px;
    font-size: 0.875rem;
}

.score-dimension-bar {
    flex: 1;
    height: 16px;
    background: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
}

.score-dimension-fill {
    height: 100%;
    border-radius: 8px;
    background: #5599cc;
}

.score-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5599cc;
    text-align: center;
    margin: 1rem 0;
}

.score-rationale {
    background: #fafbfc;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.score-flags {
    margin-top: 0.75rem;
}

.score-flag {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    margin: 0.25rem;
}

/* ========== Review Buttons ========== */
.review-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn-approve,
.btn-reject,
.btn-waitlist {
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-approve { background: #22c55e; color: white; }
.btn-approve:hover { background: #16a34a; }
.btn-reject { background: #ef4444; color: white; }
.btn-reject:hover { background: #dc2626; }
.btn-waitlist { background: #f97316; color: white; }
.btn-waitlist:hover { background: #ea580c; }

/* ========== Import Section ========== */
.import-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 1rem;
}

/* ========== Responsive: Application Pipeline (768px) ========== */
@media (max-width: 768px) {
    .score-dimensions {
        grid-template-columns: 1fr;
    }

    .review-actions {
        flex-direction: column;
    }

    .scale-options {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   PHASE 4: GAMES & BADGES (ETI-mirrored styling)
   ========================================================================== */

/* ========== Game Hub (ETI: card grid + leaderboard + stats on one page) ========== */
.games-hub { max-width: 100%; }

.games-welcome-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    color: #6b7280;
}

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

.game-hub-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.game-hub-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.game-hub-card-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px 12px 0 0;
}
.game-hub-card-image span {
    font-size: 64px;
}

.game-hub-card-body {
    padding: 1.25rem;
}
.game-hub-card-body h3 {
    margin: 0 0 0.5rem 0;
}
.game-hub-card-body p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 1rem;
}

.game-hub-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-access-badge {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}
.game-access-free {
    background: #dcfce7;
    color: #166534;
}
.game-access-login {
    background: #fef3c7;
    color: #92400e;
}

.games-leaderboard-section,
.games-my-stats-section,
.games-badges-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* ========== Subtype Card Grid (shared: Guess Who + Business Boo) ========== */
/* 4x4 grid, 120x120 cards with type-colored backgrounds — mirrors ETI exactly */
/* Game container card (ETI: white box with left border accent) */
.gw-game-container, .boo-game-container {
    background: #fff;
    border-left: 4px solid #5599cc;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
/* Back button wrapper */
.gw-back-wrap, .boo-back-wrap {
    margin-bottom: 1.5rem;
}
/* Back button (ETI: filled dark with white text) */
.gw-back-btn, .boo-back-btn, .fantasy-back-btn {
    background: #374151 !important;
    color: #fff !important;
    border: none !important;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}
.gw-back-btn:hover, .boo-back-btn:hover {
    background: #1f2937 !important;
}
/* Instructions wrapper + toggle (ETI: light blue pill, spaced below back button) */
.gw-instructions-wrap {
    margin-bottom: 1rem;
}
.gw-instructions-toggle, .boo-instructions-toggle {
    background: #eff6ff;
    color: #5599cc;
    border: 1px solid #bfdbfe;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}
/* Instructions panel (ETI: blue gradient bg, hidden by default) */
.gw-instructions-panel, .boo-instructions-panel {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #5599cc;
}
.gw-instructions-panel h4, .boo-instructions-panel h4 {
    margin: 0 0 0.5rem 0;
    color: #1e40af;
}
/* Hidden utility (for CSP-safe show/hide) */
.hidden { display: none !important; }
.gw-subtype-row {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.gw-grid-wrap, .boo-grid-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 8px;
}
.gw-subtype-card, .boo-subtype-card {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    flex-shrink: 0;
}
.gw-subtype-card.eliminated {
    opacity: 0.3;
    filter: grayscale(100%);
}
.gw-subtype-card.selected,
.boo-subtype-card.selected {
    box-shadow: 0 0 0 4px #ec4899, 0 4px 16px rgba(236,72,153,0.4);
}
.gw-subtype-card:hover:not(.eliminated),
.boo-subtype-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.gw-subtype-icon {
    font-size: 28px;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.gw-subtype-name {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    text-align: center;
    padding: 0 4px;
    line-height: 1.2;
}

/* ========== Guess Who ========== */
.gw-intro {
    text-align: center;
    padding: 2rem 0;
}
.gw-instructions-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #5599cc;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.gw-instructions-box h4 { margin: 0 0 0.5rem; color: #1e40af; }
.gw-instructions-box p { margin: 0; font-size: 14px; color: #1e40af; line-height: 1.5; }

.gw-instructions-panel {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #5599cc;
}
.gw-instructions-panel h4 { margin: 0 0 0.5rem; color: #1e40af; }
.gw-instructions-panel p { margin: 0; font-size: 14px; color: #1e40af; line-height: 1.5; }

/* Status bar (ETI: flex row, gap, #f9fafb bg, rounded) */
.gw-status-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    flex-wrap: wrap;
}
.gw-score-val { color: #059669; font-weight: 700; }
.gw-questions-val { font-weight: 700; }
.gw-candidates-val { font-weight: 700; }

/* Answer display (ETI: colored bg, centered) */
.gw-answer-display {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}
.gw-answer-question { margin: 0 0 0.5rem; font-size: 14px; color: #374151; }
.gw-answer-text { margin: 0; font-size: 24px; font-weight: 700; }

/* Controls (ETI: bg #f9fafb, grid layout, dropdowns) */
.gw-controls {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
}
.gw-controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.gw-control-label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 14px;
}
.gw-select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 13px;
    box-sizing: border-box;
}

/* Result card (ETI: animated toggle between icon and name) */
.gw-result {
    text-align: center;
    padding: 1rem 0;
}
.gw-result-card {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    overflow: hidden;
    margin: 1.5rem auto;
    position: relative;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.gw-result-card-icon,
.gw-result-card-name {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-in-out;
}
.gw-result-card-icon { opacity: 1; }
.gw-result-card-name { opacity: 0; }

/* ========== Business Boo ========== */
.boo-game { margin-bottom: 2rem; }

.boo-instructions-panel {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #ec4899;
}
.boo-instructions-panel h4 { margin: 0 0 0.5rem; color: #9d174d; }
.boo-instructions-panel p { margin: 0; font-size: 14px; color: #9d174d; line-height: 1.5; }

/* Selected prediction confirmation (green border, like ETI) */
.boo-selected-prediction {
    background: #f0fdf4;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    border: 2px solid #22c55e;
}
.boo-selected-prediction p { margin: 0; font-weight: 600; color: #166534; }

/* Locked prediction (step 2) */
.boo-locked-prediction {
    background: #f0fdf4;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 2px solid #22c55e;
}

/* Rewards info box (ETI-style yellow) */
.boo-rewards-box {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fef3c7;
    border-radius: 8px;
    border: 1px solid #fbbf24;
}
.boo-rewards-box h4 { margin: 0 0 0.5rem; }
.boo-rewards-box ul { margin: 0; padding-left: 1.25rem; font-size: 14px; color: #92400e; }

/* My Invites section */
.boo-invites-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

/* Invites table (ETI-style: border-collapse, light header) */
.boo-invites-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.boo-invites-table th {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
    background: #f3f4f6;
    font-weight: 600;
}
.boo-invites-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Status badges (inline, ETI-style) */
.boo-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.boo-badge-won { background: #dcfce7; color: #166534; }
.boo-badge-completed { background: #fee2e2; color: #991b1b; }
.boo-badge-expired { background: #f3f4f6; color: #6b7280; }
.boo-badge-pending { background: #fef3c7; color: #92400e; }

/* ========== Leaderboard (ETI-style: simple table, light gray header) ========== */
.leaderboards-section h2 { margin-bottom: 1rem; }

.lb-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0;
}
.lb-tab {
    padding: 0.625rem 1.25rem;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.lb-tab:hover { color: #5599cc; }
.lb-tab.active {
    color: #5599cc;
    border-bottom-color: #5599cc;
    font-weight: 600;
}

/* Leaderboard table (ETI: simple, light header, border-collapse) */
.lb-table {
    width: 100%;
    border-collapse: collapse;
}
.lb-table .lb-header {
    background: #f3f4f6;
}
.lb-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
}
.lb-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

/* ========== My Stats (ETI: period table with colored rows) ========== */
.my-stats-section h2 { margin-bottom: 1rem; }

.stats-anon-warning {
    background: #fef3c7;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #92400e;
    margin-bottom: 1rem;
}

.stats-period-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 400px;
}
.stats-period-table .lb-header th {
    padding: 12px 8px;
    font-weight: 600;
    color: #374151;
    background: #f3f4f6;
    border-bottom: 2px solid #e5e7eb;
}

/* Per-game stats grid */
.stats-game-card {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}
.stats-game-card h4 { margin: 0 0 0.75rem; }
.stats-game-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #5599cc;
}
.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* ========== Fantasy League Preview (ETI-style) ========== */
.fantasy-preview { text-align: center; }

.fantasy-team-slots {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 1.5rem;
    opacity: 0.6;
    flex-wrap: wrap;
}
.fantasy-team-card {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.fantasy-scenario {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: left;
}
.fantasy-notify-box {
    background: #fef3c7;
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
}
.fantasy-notify-box p { margin: 0; font-size: 15px; color: #92400e; }

/* ========== Badges Grid ========== */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}
.badge-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s;
}
.badge-card.earned {
    border-color: #5599cc;
    background: #fafbff;
}
.badge-card.unearned {
    opacity: 0.5;
    filter: grayscale(1);
}
.badge-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}
.badge-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}
.badge-desc {
    font-size: 0.75rem;
    color: #6b7280;
}
.badge-earned-date {
    font-size: 0.7rem;
    color: #5599cc;
    margin-top: 0.375rem;
}
.badge-progress-wrap { margin-top: 0.5rem; }
.badge-progress-bar {
    height: 4px;
    background: #f1f5f9;
    border-radius: 2px;
    overflow: hidden;
}
.badge-progress-fill {
    height: 100%;
    background: #5599cc;
    border-radius: 2px;
}
.badge-progress-text {
    font-size: 0.7rem;
    color: #6b7280;
}
.badge-seasonal-label,
.badge-seasonal-flag {
    font-size: 0.65rem;
    color: #92400e;
    background: #fef3c7;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 0.25rem;
}
.badge-times {
    font-size: 0.7rem;
    color: #6b7280;
    margin-top: 0.25rem;
}
.badge-season-label {
    font-size: 0.7rem;
    color: #5599cc;
}

/* ========== Responsive: Games & Badges (768px) ========== */
@media (max-width: 768px) {
    /* Cards stay full size — grid scrolls horizontally (matches ETI) */
    .gw-subtype-row { gap: 8px; }
    .gw-grid-wrap, .boo-grid-wrap { gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .gw-status-bar { gap: 1rem; font-size: 14px; }
    .gw-controls-grid { grid-template-columns: 1fr; }
    .badges-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .fantasy-team-card { width: 80px; height: 80px; }
}

@media (max-width: 480px) {
    .gw-subtype-icon { font-size: 24px; }
    .gw-subtype-name { font-size: 10px; }
    .gw-subtype-row { gap: 6px; }
}

/* ==========================================================================
   PHASE 5: SETTINGS, SUPPORT, ADMIN STATS
   ========================================================================== */

/* ========== Settings Tabs (same pattern as .training-tabs) ========== */
.settings-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.settings-tab {
    padding: 0.625rem 1.25rem;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-size: 0.875rem;
}

.settings-tab:hover {
    color: #5599cc;
}

.settings-tab.active {
    color: #5599cc;
    border-bottom-color: #5599cc;
    font-weight: 600;
}

/* ========== Settings Form ========== */
.settings-form {
    max-width: 600px;
}

.settings-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

/* ========== Settings Info (Profile details grid) ========== */
.settings-info {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.settings-info dt {
    color: #6b7280;
    font-weight: 500;
}

.settings-info dd {
    color: #1e293b;
}

/* ========== Checkbox Label ========== */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #5599cc;
}

/* ========== Form Feedback ========== */
.form-success {
    color: #166534;
    background: #dcfce7;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.form-error:not(:empty) {
    color: #991b1b;
    background: #fecaca;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.empty-state {
    color: #9ca3af;
    font-size: 0.9rem;
    text-align: center;
    padding: 2rem 1rem;
}

/* ========== Support Tickets ========== */
.ticket-form {
    max-width: 600px;
}

.ticket-list {
    margin-top: 2rem;
}

.ticket-list h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.ticket-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: background 0.15s;
}

.ticket-card:hover {
    background: #fafbfc;
}

.ticket-detail {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0 0 8px 8px;
    margin-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.ticket-notes {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    white-space: pre-line;
    color: #374151;
}

/* ========== Admin Dashboard Stats ========== */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.admin-stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #5599cc;
}

.admin-stat-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* ========== Responsive: Settings & Support (768px) ========== */
@media (max-width: 768px) {
    .settings-tabs {
        flex-wrap: wrap;
    }

    .settings-info {
        grid-template-columns: 1fr;
    }

    .settings-info dt {
        margin-top: 0.5rem;
    }

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

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

    .settings-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* ========== Workbooks Module ========== */
.workbooks-container { max-width: 1100px; margin: 0 auto; padding: 2rem; }
.workbook-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.workbook-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 1.25rem; transition: 0.2s all; }
.workbook-card:hover { border-color: #93c5fd; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.workbook-card h3 { font-size: 1.1rem; font-weight: 600; color: #1e293b; margin-bottom: 0.5rem; }
.workbook-meta { font-size: 0.85rem; color: #6b7280; margin-bottom: 1rem; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }

/* Progress Indicator Mobile */
@media (max-width: 480px) {
    .segment-label { font-size: 0.55rem; }
    .segment-indicator { width: 20px; height: 20px; font-size: 0.6rem; }
    .segment-check-icon svg { width: 12px; height: 12px; }
    .quiz-progress-segment { padding: 0.375rem 0.125rem; gap: 0.125rem; }
    .calc-shuffle { font-size: 1.35rem; }
    .calc-title { font-size: 1.25rem; }
    .quiz-type-hint { flex-direction: column; text-align: center; gap: 0.375rem; font-size: 0.85rem; }
}

/* ========== Folder Tabs (ETI Admin Pattern) ========== */
.folder-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 0 1rem; }
.folder-tab { padding: 10px 18px; font-size: 1rem; font-weight: 600; color: #374151; background: #f3f4f6; border: 1px solid #d1d5db; border-bottom: none; border-radius: 8px 8px 0 0; cursor: pointer; transition: 0.15s all; }
.folder-tab:hover { background: #f9fafb; color: #111827; }
.folder-tab.active { background: #fff; color: #5599cc; box-shadow: 0 -2px 4px rgba(0,0,0,0.03); position: relative; z-index: 1; }
.folder-content { background: #fff; border: 1px solid #d1d5db; border-radius: 0 0 12px 12px; padding: 1.5rem; min-height: 60vh; box-shadow: 0 3px 6px rgba(0,0,0,0.04); }

/* ========== Admin Data Table Wrapper (ETI Pattern) ========== */
.admin-table-wrapper { border: 1px solid #d1d5db; border-radius: 8px; max-height: 70vh; overflow: auto; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.admin-table-wrapper .admin-table { border-collapse: collapse; width: 100%; }
.admin-table-wrapper .admin-table th { position: sticky; top: 0; z-index: 5; background: #f9fafb; font-weight: 600; color: #374151; border-bottom: 2px solid #d1d5db; padding: 8px 12px; text-align: left; }
.admin-table-wrapper .admin-table td { padding: 8px 12px; border-bottom: 1px solid #e5e7eb; vertical-align: middle; color: #374151; }
.admin-table-wrapper .admin-table tbody tr:nth-child(even) { background: #f9fafb; }
.admin-table-wrapper .admin-table tbody tr:hover { background: #f1f5f9; }
.admin-table .cell-title { max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-table .cell-actions { width: 150px; text-align: right; white-space: nowrap; }

/* Inline Edit Row */
.admin-edit-row { background: #f0f7ff; padding: 1rem 1.5rem; box-shadow: inset 0 2px 4px rgba(0,0,0,0.06); border-top: 1px solid #bce0ff; }

/* Influencer type mini bars */
.influencer-item { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; list-style: disc; }
.influencer-name { min-width: 180px; white-space: nowrap; }
.influencer-bar-track { flex: 1; height: 10px; background: #f1f5f9; border-radius: 5px; overflow: hidden; display: inline-block; }
.influencer-bar-fill { display: block; height: 100%; border-radius: 5px; transition: width 0.5s ease; min-width: 2px; }
.dominant-bar { margin-top: 0.5rem; display: block; height: 12px; }

/* Polarity Lean Dual-Range Sliders (ETI pattern) */
.lean-slider-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.lean-slider-label { min-width: 130px; font-size: 0.9rem; font-weight: 600; color: #374151; }
.lean-slider-label-left { text-align: right; }
.lean-slider-label-right { text-align: left; }
.lean-slider-track-wrap { flex: 1; position: relative; padding-bottom: 1.25rem; }
.lean-slider-track { position: relative; height: 8px; background: #e0e0e0; border-radius: 4px; overflow: visible; }
.lean-slider-zero { position: absolute; left: 50%; top: -10px; width: 3px; height: 28px; background: #333; transform: translateX(-50%); z-index: 3; border-radius: 1px; }
.lean-slider-tick { position: absolute; top: -4px; width: 2px; height: 16px; background: #999; transform: translateX(-50%); z-index: 2; }
.lean-slider-range { position: absolute; top: 0; height: 100%; background: #5599cc; border-radius: 4px; z-index: 1; }
.lean-slider-dot { position: absolute; top: 50%; width: 14px; height: 14px; background: #5599cc; border: 2px solid #fff; border-radius: 50%; transform: translate(-50%, -50%); z-index: 4; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.lean-slider-pct { position: absolute; top: 14px; font-size: 0.75rem; font-weight: 600; color: #5599cc; transform: translateX(-50%); }

@media (max-width: 480px) {
    .lean-slider-label { min-width: 80px; font-size: 0.75rem; }
    .lean-slider-row { gap: 0.375rem; }
}

/* Polarity group collapsible children */
.polarity-chevron { font-size: 0.7rem; color: #94a3b8; margin-right: 0.5rem; transition: 0.15s; flex-shrink: 0; }
.polarity-pairs-collapsible { padding: 0.5rem 0 0.5rem 1.5rem; }
.polarity-child-row { margin-bottom: 0.75rem; }
.polarity-child-label { min-width: 120px; font-size: 0.8rem; font-weight: 500; }
.polarity-child-track { height: 6px; }
.polarity-child-zero { top: -8px; height: 22px; width: 2px; }
.polarity-child-dot { width: 10px; height: 10px; }

@media (max-width: 480px) {
    .polarity-child-label { min-width: 75px; font-size: 0.7rem; }
    .polarity-pairs-collapsible { padding-left: 0.5rem; }
}

/* Thin black outline on Opportunistic yellow text only — for readability on white */
.type-yellow-text { text-shadow: -1px -1px 0 rgba(0,0,0,0.15), 1px -1px 0 rgba(0,0,0,0.15), -1px 1px 0 rgba(0,0,0,0.15), 1px 1px 0 rgba(0,0,0,0.15); }

/* Results action bar (PDF download, share, CSV) */
.results-action-bar { display: flex; gap: 0.75rem; justify-content: flex-end; margin-bottom: 1.5rem; flex-wrap: wrap; }
.btn-download-pdf { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1.25rem; background: #5599cc; color: #fff; border: none; border-radius: 6px; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: 0.2s; }
.btn-download-pdf:hover { background: #3574a3; }
.btn-download-pdf:disabled { background: #93c5fd; cursor: not-allowed; }
.btn-export-csv { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1.25rem; background: #fff; color: #374151; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: 0.2s; }
.btn-export-csv:hover { background: #f9fafb; border-color: #9ca3af; }
.btn-share-results { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1.25rem; background: #fff; color: #374151; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: 0.2s; }
.btn-share-results:hover { background: #f9fafb; border-color: #9ca3af; }

/* Share modal */
.share-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9990; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.share-modal { position: relative; background: #fff; max-width: 480px; width: 100%; border-radius: 12px; padding: 2rem; box-shadow: 0 20px 60px rgba(0,0,0,0.3); max-height: 90vh; overflow-y: auto; }
.share-modal-close { position: absolute; top: 0.75rem; right: 0.75rem; background: none; border: none; font-size: 1.5rem; color: #6b7280; cursor: pointer; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 6px; transition: 0.2s; }
.share-modal-close:hover { background: #f3f4f6; color: #111827; }
.share-modal-title { font-size: 1.25rem; font-weight: 700; color: #111827; margin-bottom: 1.25rem; }
.share-step-label { font-size: 0.875rem; font-weight: 600; color: #374151; margin-bottom: 0.5rem; }
.share-style-options { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.share-style-option { display: flex; flex-direction: column; gap: 0.125rem; padding: 0.75rem 1rem; border: 1.5px solid #d1d5db; border-radius: 8px; cursor: pointer; transition: 0.2s; }
.share-style-option:hover { border-color: #93b5f7; background: #f8faff; }
.share-style-option.active { border-color: #5599cc; background: #eff6ff; }
.share-style-label { font-size: 0.9375rem; font-weight: 600; color: #111827; }
.share-style-desc { font-size: 0.8125rem; color: #6b7280; }
.share-preview { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 0.75rem 1rem; font-size: 0.8125rem; color: #374151; line-height: 1.5; margin-bottom: 1.25rem; white-space: pre-wrap; word-break: break-word; }
.share-channels { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.share-channel-btn { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; width: 56px; padding: 0.5rem 0.25rem; background: #fff; border: 1px solid #d1d5db; border-radius: 10px; cursor: pointer; transition: 0.2s; color: #374151; }
.share-channel-btn:hover { border-color: #5599cc; color: #5599cc; background: #eff6ff; }
.share-channel-label { font-size: 0.625rem; font-weight: 500; }
.share-copied-toast { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); background: #059669; color: #fff; padding: 0.5rem 1.25rem; border-radius: 6px; font-size: 0.8125rem; font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: opacity 0.3s; }
.share-copied-toast.fade-out { opacity: 0; }
@media (max-width: 480px) {
    .share-modal { padding: 1.5rem; }
    .share-channels { gap: 0.5rem; }
    .share-channel-btn { width: 48px; }
}

/* Pro paywall blur on locked roadmap phases */
.roadmap-blur-wrap { position: relative; }
.roadmap-blur-content { filter: blur(4px); user-select: none; pointer-events: none; }
.roadmap-blur-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255,255,255,0.75); backdrop-filter: blur(2px); border-radius: 8px; z-index: 2; }
.roadmap-blur-overlay p { font-size: 1.1rem; font-weight: 600; color: #1e293b; margin-bottom: 0.75rem; }
.btn-go-pro { padding: 0.625rem 1.5rem; background: #5599cc; color: #fff; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; }
.btn-go-pro:hover { background: #3574a3; }

/* ========== Feedback Card ========== */
.feedback-card { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1.5rem; max-width: 600px; margin: 2rem auto; text-align: center; }
.feedback-title { font-size: 1.25rem; font-weight: 700; color: #1e293b; margin-bottom: 0.5rem; }
.feedback-subtitle { font-size: 0.95rem; color: #64748b; margin-bottom: 1rem; }
.feedback-vote-btns { display: flex; gap: 1rem; justify-content: center; margin-bottom: 1rem; }
.feedback-vote-btn { padding: 0.75rem 2rem; border: 2px solid #e5e7eb; border-radius: 8px; background: #fff; font-size: 1.1rem; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.feedback-vote-btn:hover { border-color: #5599cc; }
.feedback-vote-btn.selected { border-color: #5599cc; background: #eff6ff; }
.feedback-form { text-align: left; margin-top: 1rem; }
.feedback-label { display: block; font-weight: 600; color: #334155; margin-bottom: 0.375rem; font-size: 0.95rem; }
.feedback-comment { width: 100%; min-height: 80px; padding: 0.75rem; border: 1px solid #d1d5db; border-radius: 6px; font-family: inherit; resize: vertical; font-size: 0.95rem; box-sizing: border-box; }
.feedback-comment:focus { outline: none; border-color: #5599cc; box-shadow: 0 0 0 2px rgba(37,99,235,0.15); }
.feedback-testimonial-toggle { margin: 1rem 0; }
.feedback-testimonial-toggle label { cursor: pointer; font-weight: 500; color: #334155; }
.feedback-vis-label { font-size: 0.9rem; font-weight: 600; color: #475569; margin-bottom: 0.25rem; width: 100%; }
.feedback-visibility { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.75rem 0; align-items: center; }
.feedback-vis-option { font-size: 0.9rem; color: #475569; cursor: pointer; }
.feedback-submit-btn { display: block; width: 100%; padding: 0.75rem; background: #5599cc; color: #fff; border: none; border-radius: 6px; font-size: 1rem; font-weight: 600; cursor: pointer; margin-top: 1rem; transition: background 0.2s; }
.feedback-submit-btn:hover { background: #3574a3; }
.feedback-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.feedback-thanks { color: #166534; font-weight: 600; font-size: 1.1rem; margin-top: 0.5rem; }

/* ========== Cookie Consent Banner ========== */
.cookie-banner { position: fixed; bottom: 1rem; left: 1rem; width: 90%; max-width: 380px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1.25rem; box-shadow: 0 10px 40px rgba(0,0,0,0.15); z-index: 10000; transform: translateY(0); transition: transform 0.3s ease; }
.cookie-banner.hidden { transform: translateY(200%); }
.cookie-banner-text { font-size: 0.875rem; color: #475569; line-height: 1.5; margin-bottom: 1rem; }
.cookie-banner-btns { display: flex; gap: 0.75rem; }
.cookie-btn-accept { flex: 1; padding: 0.625rem; background: #5599cc; color: #fff; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; }
.cookie-btn-accept:hover { background: #3574a3; }
.cookie-btn-customize { flex: 1; padding: 0.625rem; background: #f1f5f9; color: #374151; border: 1px solid #d1d5db; border-radius: 6px; font-weight: 600; cursor: pointer; }
.cookie-btn-customize:hover { background: #e2e8f0; }
.cookie-prefs { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; }
.cookie-pref-row { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; }
.cookie-pref-label { font-size: 0.85rem; font-weight: 500; color: #374151; }
.cookie-toggle { width: 44px; height: 24px; background: #cbd5e1; border-radius: 12px; position: relative; cursor: pointer; transition: 0.3s; border: none; }
.cookie-toggle.on { background: #5599cc; }
.cookie-toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: 0.3s; }
.cookie-toggle.on::after { left: 23px; }
.cookie-toggle:disabled { opacity: 0.5; cursor: default; }
.cookie-btn-save { margin-top: 0.75rem; width: 100%; padding: 0.5rem; background: #5599cc; color: #fff; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; }
.cookie-btn-save:hover { background: #3574a3; }

/* ========== Analytics Bar Chart ========== */
.analytics-bar-chart { display: flex; align-items: flex-end; gap: 6px; padding: 16px 0; min-height: 140px; border-bottom: 2px solid #e2e8f0; }
.analytics-bar-col { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 30px; }
.analytics-bar-value { font-size: 0.75rem; color: #64748b; margin-bottom: 4px; }
.analytics-bar { width: 100%; max-width: 48px; background: #5599cc; border-radius: 4px 4px 0 0; min-height: 4px; transition: height 0.3s ease; }
.analytics-bar-label { font-size: 0.7rem; color: #94a3b8; margin-top: 4px; }
@media (max-width: 768px) { .analytics-bar-chart { gap: 3px; } .analytics-bar { max-width: 28px; } }

/* ========== FAQ Accordion ========== */
.faq-group { margin-bottom: 2rem; }
.faq-item { border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 0.5rem; overflow: hidden; }
.faq-item summary { padding: 1rem 1.25rem; font-weight: 600; color: #1e293b; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.25rem; font-weight: 400; color: #94a3b8; flex-shrink: 0; margin-left: 1rem; transition: transform 0.2s; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary:hover { background: #f8fafc; }
.faq-item p { padding: 0 1.25rem 1rem 1.25rem; margin: 0; color: #475569; line-height: 1.7; }

/* ========== Pricing Grid ========== */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; max-width: 800px; margin: 0 auto; }
.pricing-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.pricing-card-featured { border-color: #5599cc; box-shadow: 0 4px 24px rgba(37,99,235,0.15); position: relative; }
.pricing-card-featured::before { content: 'Most Popular'; position: absolute; top: 0; left: 0; right: 0; background: #5599cc; color: #fff; text-align: center; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.35rem; }
.pricing-card-header { text-align: center; padding: 2.5rem 1.5rem 1.5rem; }
.pricing-card-featured .pricing-card-header { padding-top: 3rem; }
.pricing-card-header h2 { font-size: 1.5rem; color: #1e293b; margin: 0 0 0.5rem; }
.pricing-price { font-size: 3rem; font-weight: 800; color: #1e293b; margin: 0; line-height: 1; }
.pricing-term { font-size: 0.9rem; color: #64748b; margin: 0.25rem 0 0; }
.pricing-features { list-style: none; padding: 0 1.5rem; margin: 0; flex: 1; }
.pricing-features li { padding: 0.6rem 0; border-bottom: 1px solid #f1f5f9; font-size: 0.95rem; color: #334155; padding-left: 1.75rem; position: relative; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li.included::before { content: '\2713'; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.pricing-features li.excluded { color: #94a3b8; }
.pricing-features li.excluded::before { content: '\2014'; position: absolute; left: 0; color: #cbd5e1; }
.pricing-cta { padding: 1.5rem; text-align: center; }
.pricing-cta .btn { width: 100%; }
.promo-code-row { display: flex; gap: 8px; margin-bottom: 8px; }
.promo-code-row input { flex: 1; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; box-sizing: border-box; }
.promo-code-row input:focus { outline: none; border-color: #5599cc; box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.promo-msg { font-size: 13px; margin: 0 0 8px; min-height: 1.2em; }
.promo-msg-success { color: #16a34a; }
.promo-msg-error { color: #dc2626; }

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

/* Sponsor Ad Interstitial */
.sponsor-interstitial { position: fixed; inset: 0; background: rgba(15,23,42,0.95); z-index: 10001; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sponsor-card { background: #fff; border-radius: 12px; padding: 2rem; max-width: 500px; text-align: center; }
.sponsor-card img { max-width: 100%; border-radius: 8px; margin-bottom: 1rem; }
.sponsor-skip { margin-top: 1.5rem; padding: 0.5rem 1.5rem; background: transparent; color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.3); border-radius: 6px; cursor: pointer; font-size: 0.875rem; }
.sponsor-skip:hover { color: #fff; border-color: rgba(255,255,255,0.6); }
.sponsor-skip.hidden { visibility: hidden; }

/* Attendance Dots (Admin Enrollments) */
.attendance-dots { display: inline-flex; gap: 3px; align-items: center; flex-wrap: wrap; }
.attendance-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #d1d5db; cursor: pointer; padding: 0; transition: transform 0.15s; }
.attendance-dot:hover { transform: scale(1.3); }
.attendance-dot:focus-visible { outline: 2px solid #5599cc; outline-offset: 2px; }
.att-unmarked { background: #e5e7eb; border-color: #d1d5db; }
.att-in_person { background: #22c55e; border-color: #16a34a; }
.att-virtual { background: #5599cc; border-color: #5599cc; }
.att-absent { background: #ef4444; border-color: #dc2626; }

.att-detail-btn:hover { border-color: #374151 !important; transform: scale(1.15); }
.att-detail-btn:focus-visible { outline: 2px solid #5599cc; outline-offset: 2px; }

/* Assessment Image Options (Q25-29) */
.quiz-image-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.quiz-image-option { flex-direction: column; text-align: center; padding: 0.5rem; }
.quiz-option-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
@media (max-width: 480px) { .quiz-image-grid { gap: 0.5rem; } }

/* PayPal return toast */
/* Badge Earned Toast */
.se-badge-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 10000;
    max-width: 320px;
    cursor: pointer;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, box-shadow 1.5s ease-in-out;
}
.se-badge-toast.show {
    opacity: 1;
    transform: translateX(0);
}
.se-badge-toast.hide {
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease-in, transform 0.3s ease-in;
}
.se-badge-toast-inner { display: flex; align-items: center; gap: 12px; }
.se-badge-toast-icon { font-size: 2.5rem; flex-shrink: 0; }
.se-badge-toast-label { font-size: 0.75rem; color: #92400e; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.se-badge-toast-name { font-size: 1.1rem; font-weight: 600; color: #78350f; }
.se-badge-toast-desc { font-size: 0.85rem; color: #92400e; }

.se-paypal-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #059669;
    color: #fff;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}
.se-paypal-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Offer page — BOGO form */
.bogo-form { max-width: 480px; margin: 1.5rem auto 0; }
.bogo-form input[type="email"] { width: 100%; padding: 12px 16px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 16px; margin-bottom: 12px; box-sizing: border-box; }
.bogo-form input[type="email"]:focus { outline: none; border-color: #5599cc; box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.bogo-form .btn { width: 100%; }

/* Offer page — FAQ */
.offer-faq { margin-bottom: 1.5rem; text-align: left; }
.offer-faq h3 { font-size: 1.1rem; color: #1e293b; margin: 0 0 0.35rem; }
.offer-faq p { color: #475569; margin: 0; line-height: 1.6; }

/* ========== Accessible Modal (seModal) ========== */
.se-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.se-modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.se-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.se-modal-title {
    margin: 0;
    font-size: 1.25rem;
    color: #111827;
}
.se-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    color: #6b7280;
    border-radius: 4px;
    transition: background 0.15s;
}
.se-modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}
.se-modal-body {
    color: #374151;
    line-height: 1.6;
}

/* ========== Accessible Confirm Dialog (seConfirm) ========== */
.se-confirm-message {
    margin: 0 0 16px;
    color: #4b5563;
    line-height: 1.6;
}
.se-confirm-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.se-confirm-btn {
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.se-confirm-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}
.se-confirm-btn-primary {
    background: #5599cc;
    color: #fff;
    border-color: #5599cc;
}
.se-confirm-btn-primary:hover {
    background: #3574a3;
    border-color: #3574a3;
}
@media (min-width: 480px) {
    .se-confirm-actions {
        flex-direction: row;
        justify-content: flex-end;
        gap: 8px;
    }
    .se-confirm-btn {
        width: auto;
    }
}

/* ========== Testimonial Carousel ========== */
.testimonial-carousel {
    position: relative;
    max-width: 640px;
    margin: 2rem auto 1rem;
}

.carousel-track {
    min-height: 160px;
}

.carousel-slide {
    display: none;
    animation: carouselFadeIn 0.4s ease;
}

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

.testimonial-quote {
    background: #f8fafc;
    border-left: 4px solid #5599cc;
    border-radius: 8px;
    padding: 2rem 2.5rem;
    margin: 0;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    font-style: normal;
    font-size: 0.9rem;
    color: #64748b;
}

.testimonial-author cite {
    font-weight: 600;
    color: #334155;
}

.testimonial-author time::before {
    content: '\2022';
    margin-right: 0.75rem;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
    color: #64748b;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.carousel-arrow:hover {
    background: #5599cc;
    color: #fff;
    border-color: #5599cc;
}

.carousel-prev { left: -56px; }
.carousel-next { right: -56px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.carousel-dot.active,
.carousel-dot:hover {
    background: #5599cc;
}

.testimonial-empty {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}

.testimonial-empty p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .carousel-prev { left: -12px; }
    .carousel-next { right: -12px; }
    .carousel-arrow { width: 34px; height: 34px; font-size: 1.2rem; }
    .testimonial-quote { padding: 1.5rem; }
    .testimonial-carousel { margin: 1.5rem auto 0.75rem; }
}

@media (max-width: 480px) {
    .carousel-prev { left: -6px; }
    .carousel-next { right: -6px; }
    .carousel-arrow { width: 30px; height: 30px; font-size: 1rem; }
    .testimonial-quote { padding: 1.25rem; font-size: 0.95rem; }
}

/* ========== FAQ Accordion ========== */
.faq-accordion {
    max-width: 720px;
    margin: 2rem auto 0;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: #fff;
    overflow: hidden;
}

.faq-item[open] {
    border-color: #5599cc;
}

.faq-question {
    padding: 1.1rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 400;
    color: #94a3b8;
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] .faq-question::after {
    content: '\2212';
    color: #5599cc;
}

.faq-item[open] .faq-question {
    color: #5599cc;
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: #475569;
    line-height: 1.7;
}

.faq-answer p {
    margin: 0;
}

@media (max-width: 480px) {
    .faq-question { padding: 1rem 1.25rem; font-size: 0.95rem; }
    .faq-answer { padding: 0 1.25rem 1rem; font-size: 0.9rem; }
}

/* ========== Results Comparison View ========== */

.history-btn-group {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.history-compare-btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.history-compare-btn:hover {
    background: #dcfce7;
    border-color: #86efac;
}

.history-delete-btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.history-delete-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.comparison-back-btn {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin-bottom: 1rem;
}

.comparison-back-btn:hover {
    background: #f9fafb;
}

.comparison-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.comparison-col-header {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.comparison-col-current {
    background: #eff6ff;
    border-color: #93c5fd;
}

.comparison-col-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5599cc;
}

.comparison-col-date {
    font-size: 0.8rem;
    color: #6b7280;
}

.comparison-col-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

/* Type Change */
.comparison-type-arrow {
    text-align: center;
    padding: 1rem 0;
}

.comparison-same-badge {
    display: inline-block;
    background: #d1fae5;
    color: #065f46;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.comparison-type-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    flex-wrap: wrap;
}

.comparison-type-old { color: #6b7280; }
.comparison-arrow { color: #9ca3af; font-size: 1.5rem; }
.comparison-type-new { color: #1e293b; }

.comparison-shift-note {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #92400e;
    background: #fef3c7;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
}

/* Type Percentage Bars */
.comparison-bar-row {
    display: grid;
    grid-template-columns: 100px 1fr 60px;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comparison-bar-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.comparison-bar-pair {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comparison-bar {
    position: relative;
    height: 18px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.comparison-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.comparison-bar-val {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: #374151;
}

.comparison-bar-delta {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: right;
    color: #6b7280;
}

.comparison-bar-delta.delta-up { color: #059669; }
.comparison-bar-delta.delta-down { color: #dc2626; }

.comparison-legend {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.comparison-legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.comparison-legend-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* Metric Row (Confidence / Readiness) */
.comparison-metric-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.comparison-metric-old,
.comparison-metric-new {
    text-align: center;
}

.comparison-metric-label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.comparison-metric-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
}

.comparison-metric-arrow {
    font-size: 1.5rem;
    color: #9ca3af;
}

.comparison-metric-arrow.delta-up { color: #059669; }
.comparison-metric-arrow.delta-down { color: #dc2626; }

.comparison-metric-delta {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    min-width: 80px;
    text-align: center;
}

.comparison-metric-delta.delta-up { color: #059669; }
.comparison-metric-delta.delta-down { color: #dc2626; }

/* Polarity Shifts */
.comparison-polarity-row {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.comparison-polarity-row:last-child {
    border-bottom: none;
}

.comparison-polarity-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.35rem;
}

.comparison-polarity-values {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.comparison-polarity-old { color: #6b7280; }
.comparison-polarity-arrow { color: #9ca3af; }
.comparison-polarity-new { color: #1e293b; font-weight: 600; }

/* Insights Grid */
.comparison-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.comparison-insight-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.comparison-insight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.comparison-insight-text {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.5;
}

/* Responsive: Comparison View */
@media (max-width: 768px) {
    .comparison-header {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .comparison-bar-row {
        grid-template-columns: 80px 1fr 50px;
        gap: 0.5rem;
    }

    .comparison-type-names {
        font-size: 1rem;
    }

    .comparison-metric-row {
        gap: 1rem;
    }

    .comparison-metric-value {
        font-size: 1.35rem;
    }

    .comparison-insights-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .comparison-bar-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .comparison-bar-label {
        font-size: 0.8rem;
    }

    .comparison-bar-delta {
        text-align: left;
    }

    .history-btn-group {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ============================================================
   Exit Intent Modal
   ============================================================ */
.exit-intent-body { text-align: center; max-width: 400px; margin: 0 auto; }
.exit-intent-body h2 { margin: 0 0 12px; font-size: 22px; color: #111; }
.exit-intent-body p { color: #555; margin: 0 0 16px; }
.exit-intent-benefits { text-align: left; margin: 16px 0; padding-left: 20px; list-style: disc; }
.exit-intent-benefits li { margin: 6px 0; color: #333; }
.exit-intent-price { font-size: 20px; font-weight: 700; color: #5599cc; margin: 16px 0; }
.exit-intent-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.exit-intent-bogo { font-size: 13px; color: #888; margin-top: 12px; }
.exit-intent-bogo a { color: #5599cc; }

/* Thank You Page */
.ty-checkmark { font-size: 3rem; color: #16a34a; background: rgba(22,163,106,0.1); width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.ty-content { max-width: 640px; margin: 0 auto; }
.ty-details, .ty-benefits { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1.5rem 2rem; margin-bottom: 1.5rem; }
.ty-details h2, .ty-benefits h2 { font-size: 1.15rem; font-weight: 700; color: #1e293b; margin: 0 0 1rem; }
.ty-detail-list { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.5rem; margin: 0; }
.ty-detail-list dt { font-weight: 600; color: #64748b; font-size: 0.9rem; }
.ty-detail-list dd { margin: 0; color: #1e293b; font-size: 0.95rem; }
.ty-notice { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 1rem 1.25rem; color: #1e40af; font-size: 0.95rem; margin-bottom: 1.5rem; }
.ty-steps { padding-left: 1.25rem; margin: 0; }
.ty-steps li { padding: 0.35rem 0; color: #334155; font-size: 0.95rem; }
.ty-benefits .pricing-features { padding: 0; margin: 0; }

/* Workbook Tabs */
.wb-tabs { display: flex; gap: 0; border-bottom: 2px solid #e5e7eb; margin-bottom: 1rem; }
.wb-tab { padding: 0.6rem 1.25rem; font-size: 0.9rem; font-weight: 600; color: #64748b; background: transparent; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.wb-tab:hover { color: #5599cc; }
.wb-tab.active { color: #5599cc; border-bottom-color: #5599cc; }
.wb-viewer { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; background: #f8fafc; }
.wb-viewer iframe { width: 100%; height: 600px; border: none; }
.wb-download { margin-top: 0.75rem; }

/* ========== Milestone Builder (Admin Training Form) ========== */
.milestone-builder-section { margin-top: 0.5rem; }
.milestone-builder-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.75rem; }
.milestone-builder-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.milestone-builder-header { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 1rem; cursor: pointer; user-select: none; }
.milestone-builder-header:hover { background: #f1f5f9; }
.milestone-builder-header-left { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.milestone-builder-header-right { display: flex; align-items: center; gap: 0.35rem; flex-shrink: 0; }
.milestone-builder-title { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.milestone-sort-label { font-size: 0.75rem; color: #94a3b8; font-weight: 700; min-width: 20px; }
.milestone-toggle-icon { font-size: 0.7rem; color: #94a3b8; margin-left: 4px; }
.milestone-move-btn { padding: 2px 6px !important; font-size: 0.65rem !important; line-height: 1 !important; min-width: 0 !important; }
.milestone-builder-body { padding: 0.75rem 1rem 1rem; border-top: 1px solid #e2e8f0; }
.milestone-builder-body .form-group { margin-bottom: 0.75rem; }
.milestone-builder-body label { font-size: 0.85rem; font-weight: 500; margin-bottom: 0.25rem; display: block; }
.milestone-builder-card-actions { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.milestone-card-feedback { font-size: 0.8rem; color: #64748b; margin-left: 0.5rem; }
.milestone-card-feedback.success { color: #16a34a; }
.milestone-card-feedback.error { color: #dc2626; }
.milestone-builder-actions { margin-top: 0.5rem; }
.btn-xs { padding: 0.15rem 0.4rem; font-size: 0.7rem; }
.btn-danger { background: #dc2626; color: white; border: none; border-radius: 4px; cursor: pointer; padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.btn-danger:hover { background: #b91c1c; }

/* ========== Autosave Banner ========== */
.autosave-banner { background: #fefce8; border: 1px solid #fde68a; border-radius: 6px; padding: 0.6rem 1rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.85rem; color: #92400e; }

/* ========== Simulator Subtype Grid ========== */
.sim-subtype-grid { display: inline-block; }
.sim-subtype-grid-header, .sim-subtype-grid-row { display: flex; }
.sim-subtype-grid-th { width: 56px; height: 36px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; color: #475569; }
.sim-subtype-cell { width: 56px; height: 40px; border: 1px solid #d1d5db; background: white; cursor: pointer; font-size: 0.75rem; font-weight: 600; color: #334155; border-radius: 4px; margin: 1px; transition: background 0.15s, border-color 0.15s; }
.sim-subtype-cell:hover { background: #dbeafe; border-color: #93c5fd; }
.sim-subtype-cell.active { background: #5599cc; color: white; border-color: #3574a3; }
.sim-subtype-cell-same { background: #f1f5f9; color: #94a3b8; }
.sim-subtype-cell-same:hover { background: #dbeafe; color: #334155; }

/* ========== Articles / Blog Posts ========== */
.articles-filter-bar { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.articles-filter-bar label { font-size: 0.875rem; font-weight: 600; color: #475569; }
.articles-filter-bar select { padding: 0.4rem 0.75rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.875rem; color: #1e293b; background: white; }

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

.article-card { background: white; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; display: flex; flex-direction: column; }
.article-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); transform: translateY(-2px); }

.article-card-image { width: 100%; height: 180px; overflow: hidden; }
.article-card-image img { width: 100%; height: 100%; object-fit: cover; }

.article-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }

.article-category-badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 12px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; background: #dbeafe; color: #1e40af; margin-bottom: 0.5rem; margin-right: 0.4rem; }
.article-sticky-badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 12px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; background: #fef3c7; color: #92400e; margin-bottom: 0.5rem; }

.article-card-title { font-size: 1.1rem; font-weight: 600; color: #1e293b; margin-bottom: 0.5rem; line-height: 1.4; }
.article-card-excerpt { font-size: 0.85rem; color: #6b7280; line-height: 1.55; margin-bottom: 0.75rem; flex: 1; }

.article-card-meta { display: flex; gap: 0.75rem; font-size: 0.78rem; color: #9ca3af; margin-top: auto; }

/* Article Detail View */
.article-detail { max-width: 760px; margin: 0 auto; }
.article-detail-title { font-size: 1.75rem; font-weight: 700; color: #1e293b; margin: 0.5rem 0 0.75rem; line-height: 1.3; }
.article-detail-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; color: #6b7280; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid #e5e7eb; }

.article-detail-image { margin-bottom: 1.5rem; border-radius: 8px; overflow: hidden; }
.article-detail-image img { width: 100%; height: auto; display: block; }

.article-detail-body { font-size: 1rem; line-height: 1.75; color: #334155; }
.article-detail-body h2 { font-size: 1.35rem; font-weight: 700; color: #1e293b; margin: 1.75rem 0 0.75rem; }
.article-detail-body h3 { font-size: 1.15rem; font-weight: 600; color: #1e293b; margin: 1.5rem 0 0.5rem; }
.article-detail-body p { margin-bottom: 1rem; }
.article-detail-body ul, .article-detail-body ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.article-detail-body li { margin-bottom: 0.35rem; }
.article-detail-body blockquote { border-left: 3px solid #5599cc; padding: 0.75rem 1rem; margin: 1rem 0; background: #f8fafc; color: #475569; font-style: italic; border-radius: 0 6px 6px 0; }
.article-detail-body img { max-width: 100%; height: auto; border-radius: 6px; margin: 1rem 0; }
.article-detail-body a { color: #5599cc; text-decoration: underline; }
.article-detail-body a:hover { color: #3574a3; }

.article-discussion-placeholder {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.article-discussion-placeholder h3 { font-size: 1rem; font-weight: 600; color: #1e293b; margin: 0 0 0.5rem; }
.article-discussion-placeholder p { font-size: 0.875rem; color: #64748b; margin: 0; line-height: 1.5; }

@media (max-width: 768px) {
    .articles-grid { grid-template-columns: 1fr; }
    .article-detail-title { font-size: 1.4rem; }
    .article-card-image { height: 150px; }
}

/* ========== Scroll to Top Button ========== */
.se-scroll-top {
    position: fixed; bottom: 80px; right: 24px;
    width: 44px; height: 44px; border-radius: 50%;
    background: #5599cc; color: #fff; border: none;
    font-size: 20px; cursor: pointer; z-index: 900;
    opacity: 0; transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.se-scroll-top.visible { opacity: 1; transform: translateY(0); }
.se-scroll-top:hover { background: #3574a3; }

/* ========== Floating Labels ========== */
.form-group { position: relative; }
.form-group.floating-label label {
    position: absolute; top: 14px; left: 13px;
    font-size: 15px; color: #9ca3af; pointer-events: none;
    transition: all 0.2s;
}
.form-group.floating-label.focused label,
.form-group.floating-label.has-value label {
    top: -8px; left: 10px; font-size: 12px;
    color: #5599cc; background: #fff; padding: 0 4px;
}

/* ========== Article Comments ========== */
.article-comments-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.article-comments-section h3 { font-size: 1.1rem; font-weight: 600; color: #1e293b; margin: 0 0 1rem; }
.comment-form { margin-bottom: 1.5rem; }
.comment-textarea {
    width: 100%; min-height: 80px; padding: 10px 12px;
    border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 0.875rem; resize: vertical; font-family: inherit;
    box-sizing: border-box;
}
.comment-textarea:focus { outline: none; border-color: #5599cc; box-shadow: 0 0 0 2px rgba(37,99,235,0.15); }
.comment-submit-btn { margin-top: 0.5rem; }
.comment-login-prompt { font-size: 0.875rem; color: #64748b; margin: 0 0 1rem; }
.comments-list { display: flex; flex-direction: column; gap: 1rem; }
.comments-empty { font-size: 0.875rem; color: #94a3b8; margin: 0; font-style: italic; }
.comment-item {
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.comment-author { font-weight: 600; font-size: 0.85rem; color: #334155; }
.comment-date { font-size: 0.78rem; color: #94a3b8; }
.comment-text { font-size: 0.875rem; color: #475569; margin: 0; line-height: 1.5; }

/* ========== About Page Feedback Form ========== */
.about-feedback-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}
.feedback-prompt { font-size: 1rem; color: #334155; margin-bottom: 1rem; }
.feedback-vote-btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.feedback-vote-btn.selected { outline: 3px solid #5599cc; outline-offset: 2px; }
.feedback-textarea {
    width: 100%; min-height: 100px; padding: 10px 12px;
    border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 0.875rem; resize: vertical; font-family: inherit;
    margin-top: 1rem; box-sizing: border-box;
}
.feedback-textarea:focus { outline: none; border-color: #5599cc; box-shadow: 0 0 0 2px rgba(37,99,235,0.15); }
.feedback-consent-label {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.85rem; color: #475569; margin-top: 0.75rem;
    justify-content: center; cursor: pointer;
}
.feedback-name-info { font-size: 0.85rem; color: #64748b; margin: 0.75rem 0 0.25rem; }
#feedback-submit-btn { margin-top: 1rem; }
.feedback-thanks-msg {
    font-size: 1rem; color: #166534; font-weight: 600;
    padding: 1.5rem; background: #f0fdf4; border-radius: 8px;
    border: 1px solid #bbf7d0;
}

/* ========== About Page (v2.19.0) ========== */
.about-centered-text {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-muted {
    color: #6b7280;
}

.about-narrow {
    max-width: 640px;
}

.about-quote {
    text-align: center;
    color: #334155;
    margin-top: 1.5rem;
    font-weight: 400;
    font-size: 1.1rem;
}

/* Framework Pairs Grid */
.about-pairs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.about-pair-card {
    text-align: left;
}

.about-pair-heading {
    text-align: center;
    margin-bottom: 1.25rem;
}

.about-pair-list {
    list-style: none;
    padding: 0;
}

.about-pair-item {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.about-pair-negative::before {
    content: '\2716';
    position: absolute;
    left: 0;
    color: #dc2626;
    font-weight: bold;
}

.about-pair-positive::before {
    content: '\2714';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: bold;
}

/* Framework Pairs Carousel */
.fwk-carousel {
    position: relative;
    overflow: hidden;
}

.fwk-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow: hidden;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    touch-action: pan-y pinch-zoom;
    overscroll-behavior: auto;
}

.fwk-track::-webkit-scrollbar {
    display: none;
}

.fwk-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.fwk-slide .about-pairs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.fwk-slide .fwk-type-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

/* Image card in carousel — centered, enlarged like ETI */
.fwk-slide .about-pair-card:first-child {
    display: grid;
    place-items: center;
}
.fwk-type-img {
    height: 290px;
    max-width: 100%;
    width: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.fwk-type-content h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    color: #1f2937;
}

.fwk-type-content p {
    color: #4b5563;
    line-height: 1.7;
}

.fwk-type-traits {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.fwk-type-traits li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.fwk-type-summary {
    margin-top: 1rem;
    color: #4b5563;
    line-height: 1.6;
}

/* Framework carousel has NO arrows — "Explore the Framework"/"Next" button is the control */
.fwk-arrow {
    display: none;
}

.fwk-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
}

.fwk-dots button {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: #d7dfeb;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: background 0.2s;
}

.fwk-dots button.active {
    background: #5599cc;
}

.fwk-dots button:hover {
    background: #94a3b8;
}

.fwk-dots button.active:hover {
    background: #5599cc;
}

/* Stats Counter Animation */
.about-stat-number.counting {
    transition: none;
}

/* Comparison Fade Transition */
.about-comparison-content {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.about-comparison-content.about-comparison-visible {
    opacity: 1;
}

@media (max-width: 600px) {
    .fwk-slide .about-pairs-grid {
        grid-template-columns: 1fr;
    }
    .fwk-slide .fwk-type-grid {
        grid-template-columns: 1fr;
    }
    .fwk-type-img {
        width: 200px;
        margin: 0 auto;
    }
}

/* Assessment Comparison */
/* ETI comparison — itemized 3-column grid (ported from the ETI site; server-rendered, .is-active toggle) */
.eti-cmp { max-width: 780px; margin: var(--space-5) auto 0; }
.eti-cmp-head {
    display: flex; align-items: center; justify-content: center;
    gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4);
}
.eti-cmp-badge {
    background: var(--color-primary); color: #fff; font-weight: 700;
    padding: 0.55rem 1.1rem; border-radius: var(--radius-md);
}
.eti-cmp-vs { color: var(--color-muted); font-size: 1.25rem; }
.eti-cmp-select {
    padding: 0.6rem 1rem; border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md); font-size: 1rem; background: #fff;
    min-width: 240px; cursor: pointer;
}
.eti-cmp-placeholder { text-align: center; color: var(--color-muted); padding: var(--space-5) 0; margin: 0; }
.eti-cmp-panel { display: none; }
.eti-cmp-panel.is-active { display: block; }
.eti-cmp-name { text-align: center; margin: 0 0 var(--space-4); }
.eti-cmp-deriv {
    display: inline-block; font-size: var(--text-xs); font-weight: 600;
    background: #fef3c7; color: #92400e; padding: 2px 9px; border-radius: 10px;
    vertical-align: middle; margin-left: var(--space-2);
}
.eti-cmp-grid { display: flex; flex-direction: column; gap: 4px; }
.eti-cmp-row {
    display: grid; grid-template-columns: 1fr 1.6fr 1.6fr; gap: var(--space-3);
    padding: 0.6rem 0.85rem; border-radius: 6px; align-items: start;
    font-size: var(--text-sm); line-height: 1.4;
}
.eti-cmp-row:nth-child(even) { background: var(--surface-alt); }
.eti-cmp-rowhead { background: var(--surface-tertiary); font-weight: 700; }
.eti-cmp-aspect { font-weight: 600; color: var(--color-ink); }
.eti-cmp-eti { color: var(--color-primary-dark); font-weight: 600; }
.eti-cmp-other { color: var(--color-muted); }
.eti-cmp-summary {
    margin: var(--space-4) auto 0; color: var(--color-text);
    font-style: italic; line-height: 1.6; text-align: center; max-width: 65ch;
}
@media (max-width: 600px) {
    .eti-cmp-row { grid-template-columns: 1fr; gap: 2px; padding: 0.6rem 0.75rem; }
    .eti-cmp-rowhead { display: none; }
    .eti-cmp-eti::before { content: "ETI: "; font-weight: 700; color: var(--color-ink); }
    .eti-cmp-other::before { content: "Other: "; font-weight: 700; color: var(--color-ink); }
}

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

.about-comparison-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.about-comparison-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #5599cc, #5599cc);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(85, 153, 204, 0.3);
}

.about-comparison-vs {
    font-size: 1.5rem;
    color: #9ca3af;
}

.about-comparison-select {
    padding: 0.75rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    background: #fff;
    min-width: 220px;
    color: #333;
}

.about-comparison-display {
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.about-comparison-placeholder {
    text-align: center;
    padding: 3rem;
    color: #9ca3af;
    font-size: 1.1rem;
}

.about-comparison-content {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.about-comparison-content.about-comparison-visible {
    opacity: 1;
}

.about-comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.about-comparison-cell {
    padding: 1.5rem;
    border-radius: 8px;
}

.about-comparison-cell h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-comparison-cell p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
}

.about-comparison-them {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.about-comparison-eti {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

/* Page Header (ETI branding) */
.about-page-header-title {
    margin-bottom: -0.3rem;
}
.about-page-header-sub {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 21px;
}

/* Insights Two-Column Layout */
.about-insights-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-insights-hero {
    max-width: 560px;
    margin: 0 auto;
}

.about-insights-hero-img {
    width: 100%;
    display: block;
    border-radius: 12px;
}

.about-insights-tabs-title {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.about-insights-tabs-subtitle {
    color: #6b7280;
    margin-bottom: 1rem;
}

.about-insight-tab {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    cursor: pointer;
}

.about-insight-tab-head {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #1e293b;
    background: #f8fafc;
    margin: 0;
    transition: background 0.2s;
}

.about-insight-tab:hover .about-insight-tab-head {
    background: #eff6ff;
}

.about-insight-tab.active .about-insight-tab-head {
    background: #5599cc;
    color: #fff;
}

.about-insight-tab-body {
    display: none;
    padding: 0.75rem 1rem 1rem;
}

.about-insight-tab.active .about-insight-tab-body {
    display: block;
}

.about-insight-tab-body p {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Plans Table */
.about-plans-table-wrap {
    max-width: 980px;
    margin: 1.5rem auto;
    overflow-x: auto;
}

.about-plans-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.95rem;
}

.about-col-benefits { width: 52%; }
.about-col-tier { width: 16%; }

.about-plans-table th,
.about-plans-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
}

.about-plans-table th:first-child,
.about-plans-table td:first-child {
    text-align: left;
}

.about-plans-table thead th {
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    color: #1e293b;
}

.about-plans-table tbody tr:nth-child(odd) { background: #fafafa; }
.about-plans-table tbody tr:nth-child(even) { background: #fff; }

.about-plans-table tfoot tr { background: #fff; }
.about-plans-table tfoot th,
.about-plans-table tfoot td {
    font-weight: 700;
    border-top: 1px solid #e5e7eb;
}

.about-plan-note {
    font-size: 0.75em;
    color: #666;
}

/* Use Cases */
.about-use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.about-use-case-card {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
}

.about-use-case-blue { border-left: 4px solid #5590cc; }
.about-use-case-green { border-left: 4px solid #10b981; }
.about-use-case-amber { border-left: 4px solid #f59e0b; }

.about-use-case-card h3 {
    color: #374151;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.about-use-case-card p {
    color: #4b5563;
    margin: 0;
}

/* Origins / Framing the Framework */
.about-origins-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
    align-items: start;
}

.about-origins-carousel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f1f5f9;
}

.about-origins-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.about-origins-img.active {
    opacity: 1;
}

.about-origins-copy h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #1e293b;
}

.about-origins-copy p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Stats Grid */
.about-stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.about-stat {
    text-align: center;
    min-width: 140px;
}

.about-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
}

.about-stat-label {
    display: block;
    font-size: 0.9rem;
    color: #6b7280;
}

.about-stat-amber { color: #f59e0b; }
.about-stat-purple { color: #8b5cf6; }
.about-stat-green { color: #10b981; }
.about-stat-blue { color: #5590cc; }

/* Roadmap Accordion */
.about-roadmap-accordion {
    max-width: 760px;
    margin: 0 auto;
}

.about-roadmap-phase {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: #fff;
    overflow: hidden;
}

.about-roadmap-phase[open] {
    border-color: #5599cc;
}

.about-roadmap-label {
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    color: #1e293b;
    list-style: none;
}

.about-roadmap-label::-webkit-details-marker {
    display: none;
}

.about-roadmap-label::before {
    content: '\25B6';
    display: inline-block;
    margin-right: 0.75rem;
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.about-roadmap-phase[open] > .about-roadmap-label::before {
    transform: rotate(90deg);
}

.about-roadmap-content {
    padding: 0 1.5rem 1.5rem;
}

.about-roadmap-status {
    text-align: center;
    margin-bottom: 1rem;
}

.about-roadmap-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.about-roadmap-completed { background: #dcfce7; color: #166534; }
.about-roadmap-current { background: #dbeafe; color: #1e40af; }
.about-roadmap-upcoming { background: #fef3c7; color: #92400e; }

.about-roadmap-list {
    list-style: disc;
    padding-left: 1.25rem;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* About page share button spacing */
.about-share-btn {
    margin-left: 0.75rem;
}

/* About page responsive */
@media (max-width: 768px) {
    .about-pairs-grid {
        grid-template-columns: 1fr;
    }
    .about-comparison-row {
        grid-template-columns: 1fr;
    }
    .about-insights-two-col {
        grid-template-columns: 1fr;
    }
    .about-insights-hero {
        max-width: 400px;
    }
    .about-origins-grid {
        grid-template-columns: 1fr;
    }
    .about-origins-carousel {
        max-width: 400px;
        margin: 0 auto;
    }
    .about-plans-table {
        font-size: 0.88rem;
    }
    .about-plans-table th,
    .about-plans-table td {
        padding: 8px;
    }
    .about-col-benefits { width: 48%; }
    .about-col-tier { width: 17.333%; }
}

@media (max-width: 480px) {
    .about-plans-table {
        font-size: 0.78rem;
    }
    .about-plans-table th,
    .about-plans-table td {
        padding: 6px 4px;
        word-break: break-word;
        hyphens: auto;
    }
    .about-col-benefits { width: 44%; }
    .about-col-tier { width: 18.666%; }
    .about-plan-note {
        font-size: 0.7em;
    }
    .about-stats-grid {
        gap: 1.5rem;
    }
    .about-stat-number {
        font-size: 2rem;
    }
    .about-share-btn {
        margin-left: 0;
        margin-top: 0.75rem;
    }
    .about-comparison-select {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 420px) {
    .about-plans-table {
        font-size: 0.7rem;
    }
    .about-plans-table th,
    .about-plans-table td {
        padding: 5px 3px;
    }
    .about-col-benefits { width: 40%; }
    .about-col-tier { width: 20%; }
    .about-plan-note {
        font-size: 0.65em;
        display: block;
        line-height: 1.2;
    }
}

@media (max-width: 360px) {
    .about-plans-table {
        font-size: 0.65rem;
    }
    .about-plans-table th,
    .about-plans-table td {
        padding: 4px 2px;
    }
    .about-plan-note {
        font-size: 0.6em;
    }
}

/* ========== Partners Marquee ========== */
.partner-marquee { position: relative; overflow: hidden; padding: 8px 0; margin-top: 10px; }
.partner-marquee::before,
.partner-marquee::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 48px; pointer-events: none; z-index: 1;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0));
}
.partner-marquee::before { left: 0; }
.partner-marquee::after {
    right: 0; left: auto;
    background: linear-gradient(to left, #fff, rgba(255,255,255,0));
}
.pm-track { display: flex; gap: 36px; align-items: center; width: max-content; animation: pm-scroll 28s linear infinite; }
.pm-group { display: flex; gap: 36px; align-items: center; }
.pm-logo { height: 34px; width: auto; object-fit: contain; flex: 0 0 auto; filter: grayscale(1); opacity: .9; }
.pm-badge { flex: 0 0 auto; padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 8px; background: #f8fafc; color: #374151; font-weight: 600; }
.partner-marquee:hover .pm-track { animation-play-state: paused; }

@keyframes pm-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (max-width: 700px) {
    .pm-logo { height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .pm-track { animation: none; }
}

/* ========== Testimonials Carousel (ETI-style t-track) ========== */
.t-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow: hidden;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-y pinch-zoom;
    overscroll-behavior: auto;
    scroll-behavior: smooth;
}
.t-track::-webkit-scrollbar { display: none; }
.t-slide {
    scroll-snap-align: start;
    padding: 1rem 0;
}
.t-quote {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
    margin: 0 0 0.5rem;
}
.t-quote::before { content: none; }
.t-name {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
    margin-top: 4px;
}
.t-website-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    background: #5599cc;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}
.t-website-btn:hover { background: #4488bb; }

/* ========== About Page ETI-style Card Wrapper ========== */
.about-card-wrap {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    padding: 1.5rem;
    margin-bottom: 0;
}

/* About page hero-style background card */
.about-hero-card {
    text-align: center;
    background-color: #f9fafb;
    padding: 40px 20px;
    border-radius: 12px;
}

/* ========== Utilities ========== */
.text-center { text-align: center; }

/* ========== Public Training Grid ========== */
.training-public-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.training-public-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.training-public-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}
.training-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.training-status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}
.training-status-open { background: #dcfce7; color: #166534; }
.training-status-upcoming { background: #dbeafe; color: #1e40af; }
.training-status-full { background: #fed7aa; color: #9a3412; }
.training-status-in-progress { background: #e0e7ff; color: #3730a3; }
.training-card-dates { font-size: 0.85rem; color: #475569; }
.training-card-tags { font-size: 0.8rem; color: #9ca3af; }
.training-card-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}
.training-spots { font-size: 0.8rem; color: #6b7280; }
.training-spots.full { color: #dc2626; font-weight: 600; }
.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    margin-left: auto;
}
@media (max-width: 480px) {
    .training-public-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== Training Hub (Public) ========== */
.training-hub-intro {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* STEP Overview */
.step-overview {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 10px;
}
.step-overview-title {
    text-align: center;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    color: #1e293b;
}
.step-overview-desc {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 1.5rem;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}
.step-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.step-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
}
.step-card-title {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
}
.step-card-features {
    list-style: disc;
    padding-left: 1.25rem;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Filter bar */
.training-filter-bar {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}
.training-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.training-filter-input,
.training-filter-select,
.training-filter-date {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #fff;
    color: #333;
}
.training-filter-date-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.training-filter-date-label {
    font-size: 0.875rem;
    color: #6b7280;
}
.training-filter-date-sep {
    color: #6b7280;
    font-size: 0.875rem;
}
.training-filter-clear {
    margin-left: auto;
    padding: 0.5rem 1rem;
    background: #6b7280;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s;
}
.training-filter-clear:hover {
    background: #4b5563;
}

/* Section headings */
.training-section-heading {
    margin: 1.5rem 0 1rem;
    font-size: 1.2rem;
    color: #1e293b;
}
.training-section-heading-partner {
    margin-top: 2.5rem;
}
.training-section-heading-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

/* Training card grid */
.training-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Training card */
.training-hub-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.training-hub-card:hover,
.training-hub-card:focus-visible {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.training-hub-card:focus-visible {
    outline: 2px solid #5599cc;
    outline-offset: 2px;
}
.training-hub-portal-badge {
    font-size: 0.75rem;
    color: #0369a1;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.training-hub-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: #1e293b;
}
.training-hub-card-meta {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.training-hub-card-excerpt {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.5;
    flex: 1;
}
.training-hub-card-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* Post cards */
.training-hub-post-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}
.training-hub-post-card:hover,
.training-hub-post-card:focus-visible {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.training-hub-post-card:focus-visible {
    outline: 2px solid #5599cc;
    outline-offset: 2px;
}
.training-hub-post-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.training-hub-post-body {
    padding: 1.25rem;
}
.training-hub-post-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #1e293b;
}
.training-hub-post-excerpt {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
}

/* Utility */
.training-hub-muted {
    color: #6b7280;
    padding: 2rem 0;
}
.training-hub-loading {
    color: #6b7280;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .step-overview {
        padding: 1.25rem;
    }
    .training-filter-row {
        grid-template-columns: 1fr;
    }
    .training-hub-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}
@media (max-width: 480px) {
    .training-hub-grid {
        grid-template-columns: 1fr;
    }
    .step-cards-grid {
        grid-template-columns: 1fr;
    }
    .training-filter-date-row {
        flex-direction: column;
        align-items: stretch;
    }
    .training-filter-clear {
        margin-left: 0;
    }
}

