/* ==========================================================================
   EverydayCPE — Course Hub  v3.0  (Editorial Design System)
   Warm cream + teal palette · Fraunces display · Inter body · JetBrains Mono
   Mobile-first. Base = 375px. Breakpoints: 640px, 1024px.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
    /* Brand palette */
    --hub-teal-deep:      #00594F;
    --hub-teal:           #26998C;
    --hub-teal-light:     #6CD9CC;
    --hub-teal-50:        #E6F4F2;
    --hub-teal-100:       #C7E6E1;
    --hub-terracotta:     #AE5E3A;
    --hub-terracotta-50:  #F7EAE2;
    --hub-oxblood:        #591C00;
    --hub-peach:          #FFC4AA;
    --hub-peach-50:       #FFF1E9;

    /* Neutrals */
    --hub-cream:          #F4EFE4;
    --hub-paper:          #FBF8F1;
    --hub-white:          #FFFFFF;
    --hub-ink-900:        #0E2E2C;
    --hub-ink-700:        #2B4442;
    --hub-ink-500:        #56706E;
    --hub-ink-300:        #8FA5A3;
    --hub-line-200:       #E4DECE;
    --hub-line-100:       #EFE9DB;
    --hub-sunken:         #ECE5D2;

    /* Semantic */
    --hub-bg:             var(--hub-cream);
    --hub-card:           var(--hub-paper);
    --hub-text:           var(--hub-ink-900);
    --hub-text-muted:     var(--hub-ink-500);
    --hub-border:         var(--hub-line-200);
    --hub-border-strong:  var(--hub-ink-900);
    --hub-primary:        var(--hub-teal-deep);
    --hub-primary-hover:  #00463D;
    --hub-accent:         var(--hub-terracotta);
    --hub-success:        var(--hub-teal);
    --hub-success-deep:   var(--hub-teal-deep);
    --hub-locked:         var(--hub-ink-300);
    --hub-locked-bg:      var(--hub-sunken);

    /* Category tile accent colours (icon badge backgrounds) */
    --cat-0: var(--hub-teal-50);
    --cat-1: var(--hub-peach-50);
    --cat-2: #DFE8E1;
    --cat-3: #F0E4D6;
    --cat-4: #EBE4D6;
    --cat-5: var(--hub-teal-100);
    --cat-6: var(--hub-teal-50);
    --cat-7: var(--hub-terracotta-50);

    --cat-ink-0: var(--hub-teal-deep);
    --cat-ink-1: var(--hub-oxblood);
    --cat-ink-2: var(--hub-teal-deep);
    --cat-ink-3: var(--hub-terracotta);
    --cat-ink-4: var(--hub-ink-900);
    --cat-ink-5: var(--hub-teal-deep);
    --cat-ink-6: var(--hub-teal-deep);
    --cat-ink-7: var(--hub-terracotta);

    /* Type */
    --hub-font-display: 'Fraunces', 'Cochin', Georgia, serif;
    --hub-font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --hub-font-mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;

    /* Radii */
    --hub-radius:    10px;
    --hub-radius-sm:  6px;
    --hub-radius-xs:  4px;
    --hub-radius-pill: 999px;

    /* Shadows (warm, teal-tinted) */
    --hub-shadow-xs:  0 1px 2px rgba(14, 46, 44, 0.06);
    --hub-shadow:     0 2px 6px rgba(14, 46, 44, 0.08), 0 1px 2px rgba(14, 46, 44, 0.04);
    --hub-shadow-md:  0 8px 20px rgba(14, 46, 44, 0.10), 0 2px 4px rgba(14, 46, 44, 0.05);

    /* Motion */
    --hub-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Root
   -------------------------------------------------------------------------- */
#ecpe-hub-root {
    font-family: var(--hub-font-body);
    background: var(--hub-bg);
    min-height: 100vh;
    color: var(--hub-text);
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    line-height: 1.5;
}

/* ============================================================
   STICKY STREAK / STATS BAR
   ============================================================ */
#hub-user-stats {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--hub-ink-900);
    color: var(--hub-paper);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(14, 46, 44, 0.18);
}

/* WordPress admin bar offset */
.admin-bar #hub-user-stats { top: 32px; }
@media (max-width: 782px) {
    .admin-bar #hub-user-stats { top: 46px; }
}

.hub-stats-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--hub-font-display);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}
.hub-stats-brand svg { width: 22px; height: 22px; }

.stat-right-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 479px) {
    #hub-user-stats { padding: 8px 12px; gap: 4px; }
    .stat-item-lessons,
    .stat-divider-lessons { display: none; }
    .stat-account-link { font-size: 11px; }
}

.stat-streak {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--hub-radius-pill);
    background: rgba(255, 196, 170, 0.14);
    border: 1px solid rgba(255, 196, 170, 0.32);
    color: var(--hub-peach);
    font-family: var(--hub-font-display);
    font-weight: 600;
    font-size: 13px;
}

.stat-streak svg { stroke: var(--hub-peach); }

/* When streak is 0 */
.stat-streak-new {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(251, 248, 241, 0.7);
    font-size: 12px;
}

.streak-flame {
    font-size: 16px;
    line-height: 1;
    animation: flame-flicker 1.8s ease-in-out infinite;
}

@keyframes flame-flicker {
    0%, 100% { transform: scale(1) rotate(-2deg); }
    50%       { transform: scale(1.15) rotate(2deg); }
}

.stat-divider {
    opacity: 0.3;
    font-weight: 400;
    margin: 0 2px;
    color: var(--hub-paper);
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--hub-font-mono);
    font-size: 11px;
    color: rgba(251, 248, 241, 0.75);
    letter-spacing: 0.04em;
}

.stat-item b {
    color: var(--hub-paper);
    font-weight: 600;
    font-family: var(--hub-font-display);
    font-size: 14px;
    letter-spacing: -0.01em;
}

.stat-account-link {
    color: rgba(251, 248, 241, 0.7);
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.stat-account-link:hover { color: var(--hub-paper); }

/* ============================================================
   TODAY'S HERO CARD
   ============================================================ */
#hub-today-hero {
    background: var(--hub-bg);
    padding: 24px 16px 0;
}

.today-hero-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.today-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--hub-font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--hub-terracotta);
    font-weight: 600;
    margin-bottom: 12px;
}

.today-hero-eyebrow .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--hub-terracotta);
    flex-shrink: 0;
}

.today-hero-eyebrow .date {
    color: var(--hub-ink-500);
    letter-spacing: 0.14em;
    margin-left: auto;
}

/* 4:3 thumbnail — editorial teal gradient */
.today-hero-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--hub-radius);
    background: var(--hub-teal-deep);
    overflow: hidden;
    border: 1px solid var(--hub-ink-900);
    margin-bottom: 20px;
}

.today-hero-thumb-art {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 30%, rgba(108, 217, 204, 0.35), transparent 55%),
        radial-gradient(ellipse at 15% 85%, rgba(255, 196, 170, 0.22), transparent 50%),
        linear-gradient(135deg, #003F39, #00594F 60%, #004A42);
}

.today-hero-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--hub-paper);
    color: var(--hub-ink-900);
    font-family: var(--hub-font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: var(--hub-radius-pill);
    border: 1px solid var(--hub-ink-900);
    z-index: 2;
}

.today-free-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(14, 46, 44, 0.6);
    backdrop-filter: blur(8px);
    color: var(--hub-paper);
    font-family: var(--hub-font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: var(--hub-radius-pill);
    border: 1px solid rgba(251, 248, 241, 0.22);
    z-index: 2;
}

.today-completed-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--hub-teal);
    color: var(--hub-paper);
    font-family: var(--hub-font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: var(--hub-radius-pill);
    border: 1px solid var(--hub-teal-deep);
    z-index: 2;
}

.today-hero-body {
    flex: 1;
}

.today-hero-category {
    font-family: var(--hub-font-mono);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--hub-terracotta);
    margin-bottom: 8px;
}

.today-hero-title {
    font-family: var(--hub-font-display);
    font-weight: 700;
    font-size: 26px;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--hub-ink-900);
    margin: 0 0 12px;
    text-wrap: balance;
}

.today-hero-desc {
    font-size: 14px;
    color: var(--hub-ink-700);
    line-height: 1.55;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.today-hero-meta {
    display: flex;
    gap: 14px;
    font-family: var(--hub-font-mono);
    font-size: 11px;
    color: var(--hub-ink-500);
    letter-spacing: 0.04em;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.today-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.today-hero-meta b { color: var(--hub-teal-deep); font-weight: 600; }

.today-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.hero-tag {
    font-family: var(--hub-font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--hub-ink-500);
    background: var(--hub-sunken);
    padding: 3px 10px;
    border-radius: var(--hub-radius-pill);
    white-space: nowrap;
}

/* 3D press CTA button */
.today-hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--hub-teal-deep);
    color: var(--hub-paper);
    border: 1.5px solid var(--hub-ink-900);
    border-radius: var(--hub-radius);
    padding: 16px 20px;
    font-family: var(--hub-font-display);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.01em;
    cursor: pointer;
    width: 100%;
    margin-top: 4px;
    margin-bottom: 24px;
    box-shadow: 0 5px 0 var(--hub-ink-900);
    transform: translateY(0);
    transition: transform 0.08s, box-shadow 0.08s, background 0.15s;
}
.today-hero-cta svg { stroke: var(--hub-paper); }
.today-hero-cta:hover { background: var(--hub-primary-hover); }
.today-hero-cta:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 var(--hub-ink-900);
}

.today-hero-cta.secondary {
    background: transparent;
    color: var(--hub-teal-deep);
    border-color: var(--hub-teal-deep);
    box-shadow: 0 5px 0 var(--hub-teal-deep);
}
.today-hero-cta.secondary svg { stroke: var(--hub-teal-deep); }
.today-hero-cta.secondary:active { box-shadow: 0 1px 0 var(--hub-teal-deep); }

/* ============================================================
   TAB NAVIGATION
   ============================================================ */
#hub-tab-nav {
    display: flex;
    background: var(--hub-bg);
    border-bottom: 1px solid var(--hub-border);
    position: sticky;
    top: 44px;
    z-index: 15;
}

.hub-tab-btn {
    flex: 1;
    padding: 12px 6px;
    border: none;
    background: transparent;
    font-family: var(--hub-font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hub-ink-500);
    cursor: pointer;
    position: relative;
    text-align: center;
    transition: color 0.15s;
}

.hub-tab-btn.active { color: var(--hub-ink-900); }

.hub-tab-btn.active::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -1px;
    height: 2px;
    background: var(--hub-terracotta);
    border-radius: 1px;
}

/* ============================================================
   WEEKLY DAY TRACKER
   ============================================================ */
#hub-weekly-tracker {
    background: var(--hub-card);
    padding: 14px 16px 16px;
    border-bottom: 1px solid var(--hub-border);
}

.weekly-tracker-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.weekly-tracker-head .label {
    font-family: var(--hub-font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--hub-ink-500);
    font-weight: 600;
}

.weekly-tracker-head .streak {
    font-family: var(--hub-font-display);
    font-weight: 600;
    font-size: 13px;
    color: var(--hub-oxblood);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.weekly-tracker-inner {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    max-width: 340px;
    margin: 0 auto;
}

.week-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.week-day-bubble {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--hub-font-mono);
    font-size: 12px;
    font-weight: 600;
    transition: transform 0.2s;
}

.week-day-label {
    font-family: var(--hub-font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--hub-ink-500);
}

/* Completed */
.week-day.done .week-day-bubble {
    background: var(--hub-teal-deep);
    color: var(--hub-paper);
}
.week-day.done .week-day-label { color: var(--hub-teal-deep); }

/* Today */
.week-day.today .week-day-bubble {
    background: var(--hub-paper);
    border: 2px solid var(--hub-terracotta);
    color: var(--hub-terracotta);
    animation: today-bubble-pulse 2s ease-in-out infinite;
}
.week-day.today .week-day-label { color: var(--hub-terracotta); font-weight: 700; }

@keyframes today-bubble-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(174, 94, 58, 0.35); }
    50%       { box-shadow: 0 0 0 5px rgba(174, 94, 58, 0); }
}

/* Missed — has lesson */
.week-day.missed.has-lesson .week-day-bubble {
    background: transparent;
    border: 1.5px solid var(--hub-line-200);
    color: var(--hub-ink-300);
}
.week-day.missed.has-lesson .week-day-label { color: var(--hub-ink-300); opacity: 0.7; }

/* No lesson day */
.week-day.no-lesson .week-day-bubble {
    background: transparent;
    color: var(--hub-line-200);
    opacity: 0.5;
}
.week-day.no-lesson .week-day-label { opacity: 0.45; }

/* Future with lesson */
.week-day.future.has-lesson .week-day-bubble {
    background: var(--hub-sunken);
    color: var(--hub-ink-300);
}
.week-day.future.has-lesson .week-day-label { opacity: 0.65; }

/* Future without lesson */
.week-day.future .week-day-bubble {
    background: var(--hub-sunken);
    color: var(--hub-ink-300);
    opacity: 0.45;
}
.week-day.future .week-day-label { opacity: 0.45; }

/* Days with a lesson are clickable */
.week-day[data-date] { cursor: pointer; }
.week-day[data-date]:hover .week-day-bubble { transform: scale(1.10); }

/* ============================================================
   TAB PANES
   ============================================================ */
.hub-pane { display: none; padding: 20px 16px; }
.hub-pane.active { display: block; }

/* ============================================================
   CATEGORY SECTION HEADER
   ============================================================ */
.hub-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}

.hub-section-head .eyebrow {
    font-family: var(--hub-font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--hub-terracotta);
    font-weight: 600;
}

.hub-section-head h2 {
    font-family: var(--hub-font-display);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.015em;
    color: var(--hub-ink-900);
    margin-top: 4px;
}

.hub-section-head .link {
    font-size: 12px;
    font-weight: 600;
    color: var(--hub-teal-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* ============================================================
   CATEGORY TILE GRID
   ============================================================ */
#hub-category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Expanded accordion panel spans both columns */
.cat-expanded-panel {
    grid-column: 1 / -1;
    display: none;
    background: var(--hub-card);
    border: 1px solid var(--hub-ink-900);
    border-radius: var(--hub-radius);
    overflow: hidden;
    animation: fade-in 0.22s var(--hub-ease);
}

.cat-expanded-panel.open { display: block; }

@keyframes fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}

/* Browse All tile spans both columns */
.cat-tile-all { grid-column: 1 / -1; }

/* ---- Category Tile ---- */
.cat-tile {
    background: var(--hub-card);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    padding: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.15s, transform 0.15s;
    user-select: none;
}

.cat-tile:hover { border-color: var(--hub-ink-900); }

.cat-tile.active {
    border-color: var(--hub-ink-900);
    box-shadow: inset 0 0 0 1px var(--hub-ink-900);
}

.cat-tile-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Icon badge — small square with accent colour from --cat-N */
.cat-tile-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--hub-teal-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hub-teal-deep);
    flex-shrink: 0;
}

/* Per-category icon colours */
.cat-bg-0 .cat-tile-icon { background: var(--cat-0); color: var(--cat-ink-0); }
.cat-bg-1 .cat-tile-icon { background: var(--cat-1); color: var(--cat-ink-1); }
.cat-bg-2 .cat-tile-icon { background: var(--cat-2); color: var(--cat-ink-2); }
.cat-bg-3 .cat-tile-icon { background: var(--cat-3); color: var(--cat-ink-3); }
.cat-bg-4 .cat-tile-icon { background: var(--cat-4); color: var(--cat-ink-4); }
.cat-bg-5 .cat-tile-icon { background: var(--cat-5); color: var(--cat-ink-5); }
.cat-bg-6 .cat-tile-icon { background: var(--cat-6); color: var(--cat-ink-6); }
.cat-bg-7 .cat-tile-icon { background: var(--cat-7); color: var(--cat-ink-7); }

.cat-tile-arrow {
    color: var(--hub-ink-300);
    transition: transform 0.2s, color 0.15s;
    line-height: 1;
    font-size: 16px;
}

.cat-tile.active .cat-tile-arrow {
    transform: rotate(90deg);
    color: var(--hub-ink-900);
}

.cat-tile-name {
    font-family: var(--hub-font-display);
    font-weight: 600;
    font-size: 15px;
    color: var(--hub-ink-900);
    line-height: 1.2;
    text-wrap: balance;
}

.cat-tile-all .cat-tile-name { font-size: 17px; }

.cat-tile-meta {
    font-family: var(--hub-font-mono);
    font-size: 10px;
    color: var(--hub-ink-500);
    letter-spacing: 0.04em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cat-tile-meta b {
    color: var(--hub-teal-deep);
    font-family: var(--hub-font-display);
    font-size: 14px;
    font-weight: 600;
}

/* Progress bar */
.cat-tile-bar-wrap {
    height: 3px;
    background: var(--hub-sunken);
    border-radius: 2px;
    overflow: hidden;
}

.cat-tile-bar {
    height: 100%;
    background: var(--hub-teal-deep);
    border-radius: 2px;
    transition: width 0.4s var(--hub-ease);
    min-width: 3px;
}

/* ============================================================
   COURSE PATH  (inside accordion)
   ============================================================ */
.course-path {
    padding: 18px 16px 6px;
}

.course-path-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hub-border);
    margin-bottom: 12px;
}

.course-path-cat-name {
    font-family: var(--hub-font-display);
    font-weight: 600;
    font-size: 17px;
    color: var(--hub-ink-900);
}

.course-path-count {
    font-family: var(--hub-font-mono);
    font-size: 11px;
    color: var(--hub-ink-500);
    letter-spacing: 0.04em;
}

.path-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 10px 6px;
    margin-left: -6px;
    cursor: pointer;
    border-radius: var(--hub-radius-sm);
    transition: background 0.12s;
}

.path-item:hover { background: var(--hub-sunken); }
.path-item:hover .path-item-title { color: var(--hub-teal-deep); }

.path-connector-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    padding-top: 2px;
}

.path-node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--hub-font-mono);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s, box-shadow 0.15s;
    /* Default: available */
    background: var(--hub-paper);
    border: 1.5px solid var(--hub-line-200);
    color: var(--hub-ink-500);
}

.path-node.in-progress {
    background: var(--hub-teal-deep);
    color: var(--hub-paper);
    border-color: var(--hub-ink-900);
    box-shadow: 0 3px 0 var(--hub-ink-900);
    animation: path-node-pulse 2.5s ease-in-out infinite;
}
.path-node.in-progress svg { stroke: var(--hub-paper); }

@keyframes path-node-pulse {
    0%, 100% { box-shadow: 0 3px 0 var(--hub-ink-900), 0 0 0 0 rgba(0, 89, 79, 0.4); }
    50%       { box-shadow: 0 3px 0 var(--hub-ink-900), 0 0 0 7px rgba(0, 89, 79, 0); }
}

.path-node.completed {
    background: var(--hub-teal-50);
    color: var(--hub-teal-deep);
    border-color: var(--hub-teal-deep);
}
.path-node.completed svg { stroke: var(--hub-teal-deep); }

.path-node.locked {
    background: var(--hub-sunken);
    border-color: var(--hub-line-200);
    color: var(--hub-ink-300);
    cursor: default;
}

.path-node:hover:not(.locked):not(.in-progress) { transform: scale(1.08); }
.path-node:active:not(.locked) { transform: translateY(2px) scale(0.97); }

/* Vertical connector line between nodes */
.path-line {
    width: 1.5px;
    height: 20px;
    background: var(--hub-line-200);
    margin: 4px 0;
    border-radius: 2px;
}

.path-item.done .path-line { background: var(--hub-teal-100); }

/* Sub-header label inside "All Courses" path */
.path-subheader {
    font-family: var(--hub-font-mono);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--hub-ink-500);
    background: var(--hub-bg);
    padding: 6px 16px;
    margin: 8px -16px 8px;
    border-top: 1px solid var(--hub-border);
}

.path-item-info {
    flex: 1;
    padding-top: 2px;
    min-width: 0;
}

.path-item-title {
    font-family: var(--hub-font-body);
    font-weight: 600;
    font-size: 14px;
    color: var(--hub-ink-900);
    line-height: 1.35;
    margin-bottom: 3px;
    text-wrap: balance;
    transition: color 0.12s;
}

.path-item.done .path-item-title { color: var(--hub-ink-500); }

.path-item-meta {
    font-family: var(--hub-font-mono);
    font-size: 10px;
    color: var(--hub-ink-500);
    letter-spacing: 0.04em;
}

.path-item.done .path-item-meta { color: var(--hub-teal-deep); }

/* ============================================================
   COURSE CARD  (used in calendar day-detail)
   ============================================================ */
.course-card {
    background: var(--hub-card);
    border-radius: var(--hub-radius);
    overflow: hidden;
    box-shadow: var(--hub-shadow);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
    border: 1px solid var(--hub-border);
}

.course-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hub-shadow-md);
    border-color: var(--hub-ink-900);
}
.course-card:active { transform: scale(0.97); }

.card-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    max-height: 200px;
    background: var(--hub-teal-deep);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
}

/* Category gradient art */
.card-thumb.cat-0 { background: linear-gradient(135deg, #003A32, #00594F); }
.card-thumb.cat-1 { background: linear-gradient(135deg, #8B2E06, #C0460C); }
.card-thumb.cat-2 { background: linear-gradient(135deg, #0F3264, #1A4E8C); }
.card-thumb.cat-3 { background: linear-gradient(135deg, #48107A, #6B1FA8); }
.card-thumb.cat-4 { background: linear-gradient(135deg, #820E2C, #B5173E); }
.card-thumb.cat-5 { background: linear-gradient(135deg, #164A21, #276B35); }
.card-thumb.cat-6 { background: linear-gradient(135deg, #00505C, #007A8A); }
.card-thumb.cat-7 { background: linear-gradient(135deg, #5C1F00, #8A3200); }

.card-today-tag {
    position: absolute;
    top: 8px; left: 8px;
    background: var(--hub-paper);
    color: var(--hub-ink-900);
    font-family: var(--hub-font-mono);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 4px 10px;
    border-radius: var(--hub-radius-pill);
    border: 1px solid var(--hub-ink-900);
    z-index: 2;
}

.card-status {
    position: absolute;
    bottom: 8px; right: 8px;
    width: 26px; height: 26px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    z-index: 2;
}
.card-status.completed { background: var(--hub-teal); color: var(--hub-paper); }
.card-status.in-progress { background: var(--hub-teal-deep); color: var(--hub-paper); }

.card-no-cert-badge {
    position: absolute;
    bottom: 8px; left: 8px;
    background: rgba(14, 46, 44, 0.55);
    color: rgba(251, 248, 241, 0.9);
    font-family: var(--hub-font-mono);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 7px;
    border-radius: var(--hub-radius-pill);
    z-index: 2;
}

.no-cert-meta {
    color: var(--hub-terracotta);
    font-size: 11px;
}

.card-body {
    padding: 12px 14px 14px;
}

.card-category {
    display: block;
    font-family: var(--hub-font-mono);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--hub-terracotta);
    margin-bottom: 4px;
}

.card-title {
    font-family: var(--hub-font-display);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
    color: var(--hub-ink-900);
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    font-family: var(--hub-font-mono);
    font-size: 11px;
    color: var(--hub-ink-500);
    letter-spacing: 0.04em;
}

.hub-empty {
    color: var(--hub-ink-500);
    font-size: 14px;
    text-align: center;
    padding: 32px 0;
    font-family: var(--hub-font-mono);
    letter-spacing: 0.04em;
}

/* ============================================================
   CALENDAR
   ============================================================ */
.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cal-month-label {
    font-family: var(--hub-font-display);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.015em;
    color: var(--hub-ink-900);
}

.cal-nav button {
    background: var(--hub-card);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius-sm);
    width: 34px; height: 34px;
    font-size: 16px;
    cursor: pointer;
    color: var(--hub-ink-900);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600;
    transition: background 0.15s, border-color 0.15s;
}
.cal-nav button:hover {
    background: var(--hub-sunken);
    border-color: var(--hub-ink-900);
}
.cal-nav button:active { transform: translateY(1px); }

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 20px;
}

.cal-day-header {
    text-align: center;
    font-family: var(--hub-font-mono);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--hub-ink-500);
    padding: 6px 0;
}

.cal-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    cursor: default;
    position: relative;
    padding: 2px 0;
}

.cal-day-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--hub-font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--hub-ink-700);
    position: relative;
    z-index: 1;
    transition: background 0.2s, color 0.2s;
}

/* Completed: teal fill */
.cal-day.completed .cal-day-num {
    background: var(--hub-teal-deep);
    color: var(--hub-paper);
    box-shadow: 0 2px 0 rgba(14, 46, 44, 0.2);
}

/* Missed: subtle border, no red punishment */
.cal-day.missed .cal-day-num {
    border: 1px solid var(--hub-line-200);
    color: var(--hub-ink-300);
    opacity: 0.6;
}

/* Today: terracotta ring */
.cal-day.cal-today .cal-day-num {
    border: 2px solid var(--hub-terracotta);
    color: var(--hub-terracotta);
    font-weight: 700;
    animation: today-ring-pulse 2s ease-in-out infinite;
}

/* Today AND completed */
.cal-day.cal-today.completed .cal-day-num {
    background: var(--hub-teal-deep);
    border-color: var(--hub-teal);
    color: var(--hub-paper);
    animation: today-ring-pulse-teal 2s ease-in-out infinite;
}

@keyframes today-ring-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(174, 94, 58, 0.4); }
    50%       { box-shadow: 0 0 0 5px rgba(174, 94, 58, 0); }
}

@keyframes today-ring-pulse-teal {
    0%, 100% { box-shadow: 0 2px 0 rgba(14,46,44,.2), 0 0 0 0 rgba(0, 89, 79, 0.4); }
    50%       { box-shadow: 0 2px 0 rgba(14,46,44,.2), 0 0 0 5px rgba(0, 89, 79, 0); }
}

.cal-day.has-course { cursor: pointer; }
.cal-day.has-course:hover .cal-day-num:not(.completed) {
    background: var(--hub-teal-50);
    color: var(--hub-teal-deep);
}

.cal-day.empty { pointer-events: none; }

/* ---- Streak connection bands ---- */
.cal-day.streak-right::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%);
    width: calc(50% + 2px);
    height: 8px;
    background: var(--hub-teal-50);
    z-index: 0;
    border-radius: 0 4px 4px 0;
}

.cal-day.streak-left::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translateY(-50%);
    width: calc(50% + 2px);
    height: 8px;
    background: var(--hub-teal-50);
    z-index: 0;
    border-radius: 4px 0 0 4px;
}

.cal-day.streak-left.streak-right::before,
.cal-day.streak-left.streak-right::after {
    border-radius: 0;
}

.cal-hint {
    text-align: center;
    color: var(--hub-ink-500);
    font-family: var(--hub-font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    padding: 16px 0;
}

#hub-cal-day-detail { margin-top: 4px; }
#hub-cal-day-detail .course-card { margin-bottom: 12px; }

/* ============================================================
   ANONYMOUS PLAYER OVERLAY
   ============================================================ */
#hub-player-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(14, 46, 44, 0.6);
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

#hub-player-overlay.open {
    opacity: 1;
    pointer-events: all;
}

#hub-player-sheet {
    width: 100%;
    max-height: 92vh;
    background: var(--hub-card);
    border-radius: 16px 16px 0 0;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    position: relative;
}

#hub-player-overlay.open #hub-player-sheet {
    transform: translateY(0);
}

#hub-player-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--hub-border);
    position: sticky;
    top: 0;
    background: var(--hub-card);
    z-index: 2;
}

#hub-player-close {
    background: var(--hub-sunken);
    border: 1px solid var(--hub-line-200);
    border-radius: 50%;
    width: 32px; height: 32px;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--hub-ink-700);
    transition: background 0.15s;
}
#hub-player-close:hover { background: var(--hub-line-200); color: var(--hub-ink-900); }

#hub-player-title {
    font-family: var(--hub-font-display);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    color: var(--hub-ink-900);
}

#hub-player-body { padding: 0 0 36px; }

#anon-video {
    width: 100%;
    display: block;
    background: #000;
    max-height: 45vh;
}

#anon-post-video { padding: 20px; text-align: center; }

.anon-complete-msg {
    font-family: var(--hub-font-display);
    font-size: 18px;
    color: var(--hub-teal-deep);
    font-weight: 600;
    margin-bottom: 16px;
}

/* Quiz */
#anon-quiz { padding: 20px; }

#anon-quiz h3 {
    font-family: var(--hub-font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--hub-ink-900);
    margin: 0 0 4px;
}

#anon-quiz > p {
    font-size: 13px;
    color: var(--hub-ink-500);
    margin-bottom: 20px;
}

.anon-question {
    background: var(--hub-bg);
    border-left: 3px solid var(--hub-teal-deep);
    border-radius: var(--hub-radius-sm);
    padding: 14px 16px;
    margin-bottom: 16px;
}

.anon-question p {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    margin: 0 0 12px;
    color: var(--hub-ink-900);
}

.anon-answer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    margin-bottom: 8px;
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius-sm);
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    color: var(--hub-ink-900);
    background: var(--hub-card);
}

.anon-answer:has(input:checked) {
    border-color: var(--hub-teal-deep);
    background: var(--hub-teal-50);
}

.anon-answer input[type="radio"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--hub-teal-deep);
}

/* Cert prompt */
.anon-cert-prompt {
    padding: 36px 24px;
    text-align: center;
}

.anon-cert-icon { font-size: 48px; margin-bottom: 8px; }

.anon-cert-prompt h2 {
    font-family: var(--hub-font-display);
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--hub-ink-900);
    letter-spacing: -0.02em;
}

.anon-cert-prompt p {
    font-size: 15px;
    color: var(--hub-ink-700);
    line-height: 1.55;
    margin-bottom: 8px;
}

.anon-cert-note {
    font-size: 13px !important;
    margin-bottom: 20px !important;
    color: var(--hub-ink-500) !important;
}

.anon-cert-cta {
    display: block;
    margin: 16px 0 12px;
    text-decoration: none;
}

/* ============================================================
   UPGRADE MODAL
   ============================================================ */
#hub-upgrade-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(14, 46, 44, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.upgrade-modal-inner {
    background: var(--hub-card);
    border: 1px solid var(--hub-ink-900);
    border-radius: var(--hub-radius);
    padding: 36px 28px;
    max-width: 340px;
    width: 100%;
    text-align: left;
    position: relative;
    box-shadow: var(--hub-shadow-md);
}

#hub-upgrade-close {
    position: absolute;
    top: 14px; right: 14px;
    background: var(--hub-sunken);
    border: 1px solid var(--hub-line-200);
    border-radius: 50%;
    width: 28px; height: 28px;
    font-size: 14px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--hub-ink-700);
}

.upgrade-icon { font-size: 40px; margin-bottom: 12px; }

.upgrade-modal-inner .eyebrow {
    font-family: var(--hub-font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--hub-terracotta);
    font-weight: 600;
    margin-bottom: 10px;
}

.upgrade-modal-inner h3 {
    font-family: var(--hub-font-display);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--hub-ink-900);
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-wrap: balance;
}

.upgrade-modal-inner p {
    font-size: 14px;
    color: var(--hub-ink-700);
    line-height: 1.55;
    margin-bottom: 20px;
}

.upgrade-modal-inner ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upgrade-modal-inner li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--hub-ink-700);
    line-height: 1.45;
}

.upgrade-modal-inner li svg { flex-shrink: 0; margin-top: 2px; stroke: var(--hub-teal-deep); }

.upgrade-cta { display: block; text-decoration: none; }

.upgrade-modal-inner .foot {
    font-size: 11px;
    color: var(--hub-ink-500);
    text-align: center;
    margin-top: 12px;
}

.upgrade-modal-inner .foot a { color: var(--hub-teal-deep); font-weight: 600; }

/* ============================================================
   SHARED BUTTONS & LINKS
   ============================================================ */
.hub-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--hub-teal-deep);
    color: var(--hub-paper);
    border: 1.5px solid var(--hub-ink-900);
    border-radius: var(--hub-radius);
    padding: 14px 28px;
    font-family: var(--hub-font-display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 5px 0 var(--hub-ink-900);
    transform: translateY(0);
    transition: transform 0.08s, box-shadow 0.08s, background 0.15s;
}
.hub-btn-primary svg { stroke: var(--hub-paper); }
.hub-btn-primary:hover { background: var(--hub-primary-hover); color: var(--hub-paper); }
.hub-btn-primary:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 var(--hub-ink-900);
}

.hub-link-secondary {
    font-size: 13px;
    font-weight: 600;
    color: var(--hub-ink-500);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    display: inline-block;
    margin-top: 12px;
}
.hub-link-secondary:hover { color: var(--hub-teal-deep); }

/* ============================================================
   SKELETON LOADER
   ============================================================ */
.hub-hero-skeleton { padding: 16px 16px 0; }

.skeleton-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--hub-radius);
    background: linear-gradient(90deg, #DCD5CC 25%, #EAE4DC 50%, #DCD5CC 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s infinite;
    margin-bottom: 20px;
}

.skeleton-body { padding: 0; }

.skeleton-line {
    height: 14px;
    background: linear-gradient(90deg, #DCD5CC 25%, #EAE4DC 50%, #DCD5CC 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s infinite;
    border-radius: var(--hub-radius-pill);
    margin-bottom: 12px;
    width: 100%;
}
.skeleton-line.short  { width: 35%; }
.skeleton-line.medium { width: 60%; }

.skeleton-cta {
    height: 52px;
    border-radius: var(--hub-radius);
    background: linear-gradient(90deg, #DCD5CC 25%, #EAE4DC 50%, #DCD5CC 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s infinite;
    margin-top: 20px;
}

@keyframes skeleton-shimmer {
    0%   { background-position:  200% 0; }
    100% { background-position: -200% 0; }
}

body.hub-player-open { overflow: hidden; }

/* ============================================================
   CONFETTI
   ============================================================ */
#hub-confetti-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    border-radius: 2px;
    animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
    0%   { transform: translateY(-10px) rotate(0deg); opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateY(100vh) rotate(var(--rot, 360deg)); opacity: 0; }
}

/* ============================================================
   RESPONSIVE — tablet 640+
   ============================================================ */
@media (min-width: 640px) {
    .today-hero-card { flex-direction: row; }

    .today-hero-thumb {
        width: 240px;
        aspect-ratio: 4 / 3;
        flex-shrink: 0;
        margin-bottom: 0;
        border-radius: var(--hub-radius) 0 0 var(--hub-radius);
    }

    .today-hero-right {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-width: 0;
        overflow: hidden;
    }

    .today-hero-body { padding: 20px 20px 8px; flex: 1; }

    .today-hero-cta {
        border-radius: 0 0 var(--hub-radius) 0;
        margin-top: auto;
        margin-bottom: 0;
        width: 100%;
    }

    #hub-player-overlay { align-items: center; }
    #hub-player-sheet {
        border-radius: var(--hub-radius);
        max-width: 500px;
        margin: 0 auto;
        max-height: 85vh;
    }

    .weekly-tracker-inner { max-width: 420px; }
    .week-day-bubble { width: 36px; height: 36px; }
}

@media (min-width: 1024px) {
    #ecpe-hub-root { max-width: 980px; margin: 0 auto; }

    #hub-today-hero { padding: 32px 24px 0; }
    .today-hero-thumb { width: 280px; }
    .today-hero-title { font-size: 30px; }
    .today-hero-body { padding: 28px 28px 12px; }

    .hub-pane { padding: 24px 0; }

    #hub-pane-calendar {
        display: grid;
        grid-template-columns: 400px 1fr;
        gap: 28px;
        align-items: start;
    }
    #hub-pane-calendar.active { display: grid; }
    #hub-calendar { grid-column: 1; }
    #hub-cal-day-detail { grid-column: 2; }

    #hub-category-grid { gap: 16px; }
    .cat-tile { padding: 16px; }
    .cat-tile-name { font-size: 16px; }
}

/* ============================================================
   LEARNING PATHS
   ============================================================ */
.lp-header { margin-bottom: 16px; }

.lp-header-title {
    font-family: var(--hub-font-display);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.015em;
    color: var(--hub-ink-900);
    margin: 0 0 4px;
}

.lp-header-sub {
    font-family: var(--hub-font-mono);
    font-size: 12px;
    color: var(--hub-ink-500);
    letter-spacing: 0.04em;
    margin: 0;
}

/* Path card */
.lp-card {
    background: var(--hub-card);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    cursor: pointer;
    transition: border-color 0.15s;
    margin-bottom: 8px;
}

.lp-card:hover { border-color: var(--hub-ink-900); }

.lp-card.active {
    border-color: var(--hub-ink-900);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.lp-card-num {
    font-family: var(--hub-font-display);
    font-weight: 700;
    font-size: 32px;
    color: var(--hub-ink-300);
    letter-spacing: -0.04em;
    line-height: 1;
    width: 36px;
    flex-shrink: 0;
}

.lp-card.active .lp-card-num { color: var(--hub-teal-deep); }

.lp-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lp-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    background: var(--hub-teal-50);
    color: var(--hub-teal-deep);
}

.lp-card-info { flex: 1; min-width: 0; }

.lp-card-title {
    font-family: var(--hub-font-display);
    font-weight: 600;
    font-size: 16px;
    color: var(--hub-ink-900);
    margin-bottom: 4px;
    line-height: 1.25;
    text-wrap: balance;
}

.lp-card-desc {
    font-size: 13px;
    color: var(--hub-ink-700);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.lp-card-meta {
    font-family: var(--hub-font-mono);
    font-size: 10px;
    color: var(--hub-ink-500);
    letter-spacing: 0.04em;
    display: flex;
    gap: 14px;
    align-items: center;
}

.lp-card-meta b {
    color: var(--hub-teal-deep);
    font-weight: 600;
    font-family: var(--hub-font-display);
    font-size: 13px;
}

/* Progress bar */
.lp-card-bar-wrap {
    height: 3px;
    background: var(--hub-sunken);
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}

.lp-card-bar {
    height: 100%;
    background: var(--hub-teal-deep);
    border-radius: 2px;
    transition: width 0.5s var(--hub-ease);
}

/* Progress column (alternate layout) */
.lp-card-right {
    text-align: right;
    flex-shrink: 0;
    min-width: 64px;
}

.lp-card-progress-label {
    font-family: var(--hub-font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--hub-teal-deep);
    margin-bottom: 5px;
}

.lp-card-earned {
    font-family: var(--hub-font-mono);
    font-size: 10px;
    color: var(--hub-teal-deep);
    font-weight: 600;
    margin-top: 4px;
    letter-spacing: 0.04em;
}

/* Chevron arrow */
.lp-card-arrow {
    font-size: 18px;
    color: var(--hub-ink-300);
    transition: transform 0.2s, color 0.15s;
    flex-shrink: 0;
    line-height: 1;
}

.lp-card:hover .lp-card-arrow { color: var(--hub-ink-900); }
.lp-card.active .lp-card-arrow { transform: rotate(90deg); color: var(--hub-ink-900); }

/* Expanded course list panel */
.lp-expanded-panel {
    display: none;
    border: 1px solid var(--hub-ink-900);
    border-top: none;
    border-radius: 0 0 var(--hub-radius) var(--hub-radius);
    margin-bottom: 8px;
    background: var(--hub-card);
    overflow: hidden;
}

.lp-expanded-panel.open { display: block; }

.lp-expanded-panel .course-path {
    border-radius: 0;
    box-shadow: none;
    border: none;
}
