/* Corvella Ledger: Getting Started · course sample
   Course styles adapted from the original course build. The block below sets the
   fictional Corvella Learning Academy frame (shared with the final test) and
   fonts every device already has, so nothing downloads. */
:root {
  --line-soft: #DDE1EA; --faint: #7C8597; --bg-soft: #F5F6FA;
  --bg: #EEF0F6; --surface: #FFFFFF; --ink: #1C2333; --muted: #4A5468; --line: #C9CFDB;
  --brand: #2F3E8F; --brand-ink: #FFFFFF; --brand-soft: #E9ECF7; --amber: #F2B66D; --amber-ink: #8E520C; --teal: #0F766E;
  --ok: #1E7A4F; --ok-soft: #E4F3EA; --bad: #B42318; --bad-soft: #FBE9E7;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-shell { max-width: 1040px; margin: 0 auto; padding: 20px 16px 96px; display: flex; flex-direction: column; gap: 14px; }
.sample-note { font-size: 14px; color: var(--muted); margin: 0; }
.try-reader { background: #FFF6E5; border: 1px solid #F2D19B; border-radius: 10px; padding: 10px 14px; font-size: 15px; }
.lms { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; overflow: clip; } /* clip keeps rounded corners without breaking sticky bars */
.lms-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 12px 20px; background: var(--brand); color: var(--brand-ink); font-size: 14px; }
.lms-bar .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.3px; }
.lms-bar .mark { width: 20px; height: 20px; border: 3px solid currentColor; border-radius: 6px; position: relative; flex: none; }
.lms-bar .mark::after { content: ''; position: absolute; inset: 3px; background: var(--amber); border-radius: 2px; }
.lms-progress { height: 5px; background: var(--brand-soft); }
.lms-progress-fill { height: 100%; width: 14%; background: var(--amber); transition: width 0.3s ease; }
.is-correct { background: var(--ok-soft) !important; border-color: var(--ok) !important; color: var(--ink); }
.is-wrong { background: var(--bad-soft) !important; border-color: var(--bad) !important; color: var(--ink); }
.mc-feedback-box { margin-top: 1.25rem; padding: 1.1rem 1.25rem; border-radius: 8px; border: 1px solid var(--line); }
.mc-feedback-box h4 { margin: 0 0 0.4rem; }
.mc-feedback-box.is-correct h4 { color: var(--ok); } .mc-feedback-box.is-wrong h4 { color: var(--bad); }
.mc-feedback-box p { margin: 0 0 1rem; }
.btn-link { display: inline-flex; align-items: center; text-decoration: none; }
.text-link { font-weight: 700; }
.indent-1 { padding-left: 1.75rem !important; } .indent-2 { padding-left: 3rem !important; }
.cheat-split { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: flex-start; margin-bottom: 2rem; }
.cheat-split > div { flex: 1 1 300px; }
.cheat-split .cheat-sheet-preview { flex: 0 1 260px; display: block; }
.cheat-split .cheat-sheet-preview img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.06); display: block; }
.permissions-box p, .reflection-box p { margin: 0.25rem 0 0; }
.callout-box p { margin: 0.5rem 0 0; }
.objective-card p { font-size: 0.95rem; }
/* Mock Transactions screen on page 1 */
.split-image-container { margin: 0; }
.mini-window { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); box-shadow: 0 4px 10px rgba(0,0,0,0.05); font-size: 13px; }
.mini-window .window-header { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #F3F4F8; border-bottom: 1px solid var(--line); }
.mini-window .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.mini-window .dot.red { background: var(--bad); } .mini-window .dot.yellow { background: var(--amber); } .mini-window .dot.green { background: var(--ok); }
.mini-window .window-title { margin-left: 6px; color: var(--muted); font-weight: 600; }
.mini-body { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.mini-toolbar { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.mini-search { flex: 1; border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; color: #5F6778; }
.mini-btn { border-radius: 6px; padding: 4px 10px; font-weight: 700; white-space: nowrap; }
.mini-btn.locked { background: #E5E7EE; color: #4B5263; }
.mini-row { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 6px; padding: 6px 8px; border-radius: 4px; }
.mini-row.head { background: #F3F4F8; font-weight: 700; color: var(--muted); }
.mini-row.empty { grid-template-columns: 1fr; color: var(--muted); font-style: italic; border: 1px dashed var(--line); text-align: center; padding: 14px 8px; }
@media (max-width: 768px) {
  .lms-bar { padding: 10px 14px; }
}

/* ==========================================================================
   DESIGN TOKENS & ROOT VARIABLES
========================================================================== */
:root {
    --primary: #1C2333;
    --secondary: #2F3E8F;
    --accent: #8E520C;
    --bg-light: var(--bg-soft);
    --radius-sm: 4px;
    --radius-md: 8px;
    --space-md: 1.5rem;
}

/* Secondary Button Styling */
.btn-secondary {
    background-color: #ffffff;
    color: var(--primary);
    border: 1px solid var(--line);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.btn-secondary:hover {
    background-color: var(--bg-soft);
    border-color: var(--primary);
}

/* ==========================================================================
   PART 1: GENERAL & GLOBAL STYLES
========================================================================== */
.course-player-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    border: 1px solid #eaeaea; 
    width: 92%; 
    max-width: 1000px;
    margin: 3rem auto;
}

/* Page Transitions */
.course-page {
    display: none;
    padding: 2rem 4rem; 
    animation: fadeIn 0.4s ease-in-out;
}
.course-page.active {
    display: block;
}

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

/* Header & Typography */
.course-header {
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}
.section-label {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}
.course-header h2 {
    color: var(--primary);
    margin: 0;
    font-size: 2.2rem;
}

/* Content Elements */
.course-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.course-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Footer Navigation */
.course-footer {
    border-top: 1px solid #eaeaea;
    padding-top: 1.5rem;
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
}
.course-footer p {
    margin: 0;
    font-weight: bold;
    color: var(--ink); /* Hard fallback for var(--primary) so text is always visible */
}

/* Buttons */
.btn-main {
    background-color: #1e2448; /* Primary dark brand color */
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}
.btn-main:hover {
    opacity: 0.9;
}

/* ==========================================================================
   PART 2: REUSABLE UI COMPONENTS
========================================================================== */

/* Universal Callout Boxes */
.callout-box {
    background: var(--bg-light);
    padding: var(--space-md);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border-left: 4px solid var(--accent);
    margin: 2rem 0;
    font-size: 1.05rem;
}

.permissions-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--line-soft); 
    border: 1px solid var(--line);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}
.permissions-box .box-icon {
    flex-shrink: 0;
    color: var(--ink);
}

.reflection-box {
    display: flex;
    align-items: center; 
    gap: 1.5rem;
    background-color: #f0fbf9; 
    border: 1px solid #a3e4d7;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}
.reflection-box .box-icon {
    flex-shrink: 0;
    color: #1e2448; 
}

.instruction-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: var(--bg-soft);
    border: 1px solid #dee2e6;
    padding: 1rem;
    border-radius: 6px;
    margin: 1.5rem 0;
}
.instruction-icon {
    background-color: #1e2448;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 0.2rem;
}
.instruction-text p {
    margin: 0;
    font-size: 0.95rem;
}

/* Course Tabs (Slideshow Component) */
.course-tabs-wrapper {
    background: var(--bg-soft);
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}
.tabs-title {
    text-align: center;
    margin: 0 0 1.5rem 0;
    color: var(--primary);
}
.tabs-header {
    display: flex;
    border-bottom: 2px solid #eaeaea;
    overflow-x: auto;
}
@media (max-width: 600px) {
    .tabs-header { flex-wrap: wrap; overflow-x: visible; }
    .tab-btn { padding: 0.6rem 0.8rem; }
}
.tab-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.tab-btn:hover {
    color: var(--primary);
    background: #f1f1f1;
}
.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--secondary);
}
.tabs-body {
    background: white;
    padding: 1.5rem;
    border: 1px solid #eaeaea;
    border-top: none;
    border-radius: 0 0 6px 6px;
}
.tab-split {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}
.tab-text { flex: 3; }
.tab-image { flex: 2; }
.tab-text h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--primary);
}

/* Lists */
.objective-list {
    margin-left: 2rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}
.objective-list li {
    margin-bottom: 0.5rem;
}

/* Objective Cards Hover Effect */
.objective-card {
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 4px; 
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
/* Objective Cards Hover Effect */
.objective-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.objective-card:hover {
    transform: none;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary);
}

/* Course Images Hover Effect */
.course-image, 
.split-image-container img {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.course-image:hover, 
.split-image-container img:hover {
    transform: none;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   PART 3: PAGE-SPECIFIC STYLES
========================================================================== */

/* Page 1: Lo-Fi Layout Specifics */
.lofi-split-section {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    align-items: flex-start;
}
.split-text { flex: 3; }
.split-image-container { flex: 2; }

.image-placeholder {
    background-color: #d8d8d8;
    color: #333;
    font-size: 0.85rem;
    text-align: center;
    padding: 3rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid #ccc;
}
.split-image-container .caption {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    text-align: center;
}

/* Page 1: Objectives Grid */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0 2rem 0;
}
.objective-card {
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 4px; 
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 0.5rem;
}
.card-head h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary);
}
.gear-icon {
    color: var(--faint);
    flex-shrink: 0;
}

/* Page 4: Segments & Quiz */
.segment-code-wrapper {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0 2rem 0;
    text-align: center;
}
.segment-display-bar {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--faint);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 1.25rem;
}
.segment-btn {
    background: var(--line-soft); 
    border: 1px solid var(--line);
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--ink); 
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.segment-btn:hover { background: var(--line); }
.segment-btn.active {
    background: var(--primary); 
    color: white;
    border-color: var(--primary);
}
.segment-dash {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--muted);
    margin: 0 0.75rem;
}
.segment-info-panel {
    background: #ffffff;
    border-left: 4px solid var(--primary);
    border: 1px solid var(--line-soft);
    border-left-width: 4px;
    padding: 1.25rem;
    border-radius: 0 6px 6px 0;
    text-align: left;
}
.segment-info-panel h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary);
    font-size: 1.05rem;
}
.quiz-card-sim {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

/* Page 5: Interactive Software Window */
.software-window {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    overflow: hidden;
    font-family: inherit;
}
.window-header {
    background: #1e2448;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.dot.red { background-color: var(--bad); }
.dot.yellow { background-color: var(--amber); }
.dot.green { background-color: var(--ok); }

.window-title {
    color: var(--faint);
    font-size: 0.85rem;
    margin-left: 0.5rem;
    font-weight: 500;
}
.window-body {
    padding: 1.25rem;
    background: var(--bg-soft);
}
.coa-toolbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.coa-search-mock {
    background: #ffffff;
    border: 1px solid var(--line-soft);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--muted);
    width: 250px;
    max-width: 100%;
    box-sizing: border-box;
}
.coa-btn-primary {
    background-color: #0f766e;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: default; 
}
.coa-table-wrapper {
    background: #ffffff;
    border: 1px solid var(--line-soft);
    border-radius: 6px;
    overflow-x: auto;
    position: relative;
}
.coa-sim-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}
.coa-sim-table th {
    background: var(--bg-soft);
    color: var(--muted);
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--line-soft);
}
.coa-sim-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--bg-soft);
    color: var(--ink);
    vertical-align: middle;
}
.coa-row-heading { background-color: var(--bg-soft); }
.coa-row-subheading { background-color: #ffffff; }
.coa-row-account { background-color: #ffffff; }

.badge-type {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: bold;
    text-transform: uppercase;
}
.badge-type.heading { background: var(--brand-soft); color: var(--brand); }
.badge-type.subheading { background: #FFF6E5; color: var(--amber-ink); }
.badge-type.account { background: var(--ok-soft); color: var(--ok); }

.dots {
    color: var(--faint);
    letter-spacing: 2px;
    cursor: default; 
}

/* Interactive Hotspots & Modals */
@keyframes pulseBadge {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.4); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(21, 128, 61, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(21, 128, 61, 0); }
}
.hotspot-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--ok); 
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    margin-left: 8px;
    animation: pulseBadge 2s infinite;
    transition: transform 0.2s ease, background-color 0.3s ease;
}
.hotspot-badge:hover {
    transform: scale(1.15);
}
.hotspot-badge.clicked {
    background-color: var(--faint) !important;
    animation: none !important;
    box-shadow: none !important;
}

.coa-info-box {
    margin-top: 1rem;
    background: #ffffff;
    border-left: 4px solid var(--ok);
    border: 1px solid var(--line-soft);
    border-left-width: 4px;
    padding: 1rem;
    border-radius: 0 6px 6px 0;
    font-size: 0.95rem;
    color: var(--ink);
    animation: fadeIn 0.3s ease-in-out;
}

/* Pop-up Modal Overlay */
.coa-modal-overlay {
    display: none; 
    /* Fixed to the screen so the pop-up always opens in view, however long the page is */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 50;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}
.coa-modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 450px;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--line);
    position: relative;
    animation: fadeIn 0.25s ease-in-out;
}
.coa-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--muted);
    cursor: pointer;
}
.coa-modal-close:hover {
    color: var(--ink);
}

/* ==========================================================================
   Page 4: RESPONSIVE DESIGN (MEDIA QUERIES)
========================================================================== */
@media (max-width: 768px) {
    .course-page {
        padding: 2rem 1.5rem; 
    }
    .objectives-grid {
        grid-template-columns: 1fr;
    }
    .tab-split {
        flex-direction: column;
    }
    .course-cards-grid { grid-template-columns: 1fr; }
    .next-step-item { flex-direction: column; gap: 0.75rem; }
}

/* ==========================================================================
   FUND STRUCTURE ORGANIZATIONAL CHART
========================================================================== */
.fund-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 3rem auto;
    padding: 2rem; 
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: var(--radius-md);
    width: max-content; /* Keeps the entire container tight around the chart */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 1. Adds the interactive hover lift to match your other images */
.fund-chart-container:hover {
    transform: none;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.fund-node {
    background-color: #447a34; 
    color: white;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    width: 180px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.fund-node strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.fund-node small {
    font-size: 0.8rem;
    display: block;
}

.fund-root {
    position: relative;
    margin-bottom: 20px;
}

.fund-root::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    width: 2px;
    height: 20px;
    background-color: var(--faint);
    transform: translateX(-50%);
}

/* 2. Changed to inline-flex so the container hugs the boxes tightly */
.fund-branches {
    display: inline-flex; 
    gap: 2rem;
    position: relative;
    padding-top: 20px;
}

/* The left/right 90px will now stop perfectly in the center of your 180px boxes */
.fund-branches::before {
    content: '';
    position: absolute;
    top: 0;
    left: 90px; 
    right: 90px; 
    height: 2px;
    background-color: var(--faint);
}

.fund-branch {
    position: relative;
}

.fund-branch::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    width: 2px;
    height: 20px;
    background-color: var(--faint);
    transform: translateX(-50%);
}

/* Responsive adjustments for Mobile */
@media (max-width: 768px) {
    .fund-chart-container {
        width: 100%; /* Allows it to shrink on small screens */
        padding: 1.5rem;
    }
    .fund-branches {
        flex-direction: column;
        gap: 1.5rem;
        padding-top: 0;
        display: flex;
    }
    .fund-branches::before, 
    .fund-branch::before, 
    .fund-root::after {
        display: none; 
    }
}

/* ==========================================================================
   PAGE 4: MULTIPLE CHOICE QUIZ
========================================================================== */
.mc-quiz-container {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.mc-option-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: #ffffff;
    border: 1px solid var(--line);
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--ink);
    transition: all 0.2s ease;
}
.mc-option-btn:hover:not(:disabled) {
    background: var(--bg-soft);
    border-color: var(--secondary);
    transform: translateX(4px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* Default layout for Desktop: Side-by-side */
.quiz-option-container {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.quiz-answer-box {
    flex: 1; /* Takes up the necessary space on the left */
}

.quiz-rejoinder {
    flex: 1; /* Sits comfortably beside the answer box on wide screens */
}

/* Stack on Mobile screens */
@media (max-width: 768px) {
    .quiz-option-container {
        flex-direction: column;
        gap: 0.75rem;
    }
}


/* ==========================================================================
   PAGE 5: Account Type Visual Cards for Course Tabs
========================================================================== */
.account-visual-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.account-code-badge {
    display: inline-block;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.account-visual-card strong {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.35rem;
    display: block;
}

.account-visual-card p {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.account-visual-card:hover {
    transform: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Accent top border variations to tie into your brand colors */
.asset-visual { border-top: 4px solid var(--primary); }
.liability-visual { border-top: 4px solid var(--accent); }
.netasset-visual { border-top: 4px solid var(--secondary); }
.revenue-visual { border-top: 4px solid var(--ok); }
.expense-visual { border-top: 4px solid var(--bad); }

/* ==========================================================================
   PAGE 8: CHEAT SHEET
========================================================================== */
.cheat-sheet-preview img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cheat-sheet-preview img:hover {
    transform: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
}

/* ==========================================================================
   PAGE 5: SORT ACTIVITY
========================================================================== */
.dnd-activity-container {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.dnd-activity-container .btn-main {
    display: block;
    margin: 2rem auto 0 auto;
}
.dnd-word-bank {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-soft);
    border: 1px dashed var(--faint);
    border-radius: 8px;
    margin-bottom: 2rem;
    min-height: 80px;
    align-items: center;
    justify-content: center;
}
.drag-term {
    background: var(--secondary);
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: grab;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    cursor: grab;
    text-align: center;
    max-width: 250px;
}
.drag-term:active { cursor: grabbing; }
.drag-term.selected {
    outline: 3px solid var(--accent);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.drag-term:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.drag-term.dragging {
    opacity: 0.4;
}
.rejoinder-box {
    display: none;
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

/* ==========================================================================
   PAGE 13: NEXT STEPS & COURSE CARDS
========================================================================== */
.next-steps-container {
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.next-step-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background-color: #ffffff;
    border: 1px solid var(--line);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.next-step-item:hover {
    transform: none;
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
}
.next-step-item:nth-child(1) { border-left: 4px solid var(--primary); }
.next-step-item:nth-child(2) { border-left: 4px solid var(--accent); }
.next-step-item:nth-child(3) { border-left: 4px solid var(--secondary); }
.next-step-item:nth-child(4) { border-left: 4px solid var(--muted); }
.step-icon {
    flex-shrink: 0;
    color: var(--primary);
    width: 36px;
    height: 36px;
}
.step-content h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary);
    font-size: 1.15rem;
}
.step-content p, .step-content ul, .step-content ol {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink);
}
.step-content a {
    color: var(--secondary);
    font-weight: bold;
    text-decoration: underline;
}
.course-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.recommend-card {
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.recommend-card:hover {
    transform: none;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
    border-color: var(--secondary);
}
.recommend-card h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.05rem;
    color: var(--primary);
    line-height: 1.3;
}
.recommend-meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 0.75rem;
}
.recommend-meta span {
    display: block;
    margin-bottom: 0.25rem;
}
.recommend-card p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   ACCESSIBILITY: Focus Rings, Non-Color Error State, Reduced Motion
========================================================================== */
/* Visible keyboard focus ring  */
.course-player-wrapper :focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}
/* Headings and messages that receive focus from script don't need a ring */
.course-player-wrapper [tabindex="-1"]:focus {
    outline: none;
}
/* Respect visitors who ask their device to reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ---- Frame overrides (placed last so they win over the original rules) ---- */
.course-player-wrapper { width: 100%; max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.course-page { display: none; }
.course-page.active { display: block; }
.course-header h2 { color: var(--ink); line-height: 1.2; }
.section-label { color: var(--brand); }
.course-header { border-bottom-color: var(--brand); }
@media (max-width: 768px) { .course-page { padding: 1.25rem 1.1rem; } .course-header h2 { font-size: 1.7rem; } }
.objectives-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; }
.lofi-split-section { flex-wrap: wrap; }
.lofi-split-section .split-text { flex: 3 1 300px; }
.lofi-split-section .split-image-container { flex: 2 1 240px; }
.try-reader p { margin: 0; }
.try-narrow { display: none; }
@media (max-width: 48rem) { .try-wide { display: none; } .try-narrow { display: block; } }

/* ==========================================================================
   PAGE 5: SORT DANA'S RECORDS (buckets hold any number of items)
========================================================================== */
.sort-buckets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}
.sort-bucket {
    background: #ffffff;
    border: 2px dashed var(--line);
    border-radius: 8px;
    padding: 0.75rem;
    min-height: 140px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.sort-bucket.drag-over, .dnd-word-bank.drag-over { background: var(--line-soft); border-color: var(--secondary); }
.sort-bucket-label { font-weight: 700; color: var(--ink); margin-bottom: 0.5rem; display: flex; flex-direction: column; }
.sort-bucket-label span { font-size: 0.75rem; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.sort-bucket-items { display: flex; flex-direction: column; gap: 0.5rem; }
.sort-bucket .drag-term { max-width: none; font-size: 0.85rem; padding: 0.55rem 0.7rem; font-weight: 600; text-align: left; }
.sort-activity .dnd-word-bank .drag-term { font-weight: 600; }
.drag-term.is-placed-right { background: var(--ok); }
.drag-term.is-placed-wrong { background: var(--bad); outline: 3px solid var(--bad); outline-offset: 2px; }
.sort-activity .rejoinder-box { text-align: center; font-weight: 700; }
.rejoinder-box.is-correct, .rejoinder-box.is-wrong { border: 1px solid; }

/* ==========================================================================
   PAGE 2: FIND YOUR WAY AROUND / PAGE 4: CHECK DANA'S DRAFT
========================================================================== */
.click-task, .find-errors { margin: 1rem 0 2rem; }
.click-task-request {
    background: var(--brand-soft);
    border-left: 4px solid var(--brand);
    border-radius: 6px;
    padding: 0.85rem 1.1rem;
    margin-bottom: 1rem;
}
.click-task-count { font-size: 0.8rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 0.04em; }
.click-task-request p { margin: 0.25rem 0 0; }
.click-task .software-window, .find-errors .software-window { margin: 0; }
.nav-mock-body { display: flex; min-height: 200px; }
.nav-mock-side {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0.6rem;
    background: #1C2333;
    min-width: 150px;
}
.nav-mock-item {
    background: transparent;
    color: #E9ECF7;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    text-align: left;
    font: inherit;
    font-size: 0.95rem;
    cursor: pointer;
}
.nav-mock-item:hover { background: rgba(255,255,255,0.1); }
.nav-mock-item.is-correct, .nav-mock-item.is-wrong { color: var(--ink); }
.nav-mock-main { flex: 1; padding: 1rem; display: flex; flex-direction: column; gap: 1rem; background: #fff; }
.nav-mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.nav-mock-tiles span { height: 56px; border-radius: 6px; background: #EEF0F6; }
.nav-mock-lines { display: flex; flex-direction: column; gap: 0.5rem; }
.nav-mock-lines span { height: 12px; border-radius: 4px; background: #EEF0F6; }
.nav-mock-lines span:nth-child(2) { width: 80%; } .nav-mock-lines span:nth-child(3) { width: 60%; }
.click-task-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1rem; }
.click-task-actions .btn-main { margin: 0; }
.fe-count { font-weight: 700; color: var(--muted); margin-right: auto; }
.click-task-feedback {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
}
.click-task-feedback.is-hint { background: #FFF6E8; border-color: var(--amber); }
.fe-sheet { display: flex; flex-direction: column; background: #fff; }
.fe-row {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 0.75rem;
    padding: 0.55rem 1rem;
    border: 2px solid transparent;
    border-bottom: 1px solid #E5E8EF;
    background: #fff;
    font: inherit;
    font-size: 0.95rem;
    text-align: left;
    color: var(--ink);
    cursor: pointer;
}
button.fe-row:hover { background: var(--brand-soft); }
.fe-head { background: #F3F4F8; font-weight: 700; font-size: 0.8rem; color: var(--muted); cursor: default; }
.fe-heading { font-weight: 700; background: var(--bg-soft); }
.fe-row.is-correct, .fe-row.is-wrong { border-width: 2px; border-style: solid; }
@media (max-width: 600px) {
    .nav-mock-body { flex-direction: column; }
    .nav-mock-side { flex-direction: row; flex-wrap: wrap; min-width: 0; }
    .nav-mock-item { flex: 1 1 40%; text-align: center; }
    .nav-mock-main { display: none; }
    .fe-row { grid-template-columns: 4.5rem 1fr; padding: 0.55rem 0.75rem; }
    .dnd-activity-container.sort-activity { padding: 1rem; }
}
.fe-extra { margin: 0.5rem 0 0; font-weight: 700; }
@media (max-width: 600px) {
    .nav-mock-body { min-height: 0; }
}

/* ==========================================================================
   PAGE 2: SIX STEPS PATH TIMELINE
   Desktop: six stops on one line, grouped by course. Phone: vertical.
========================================================================== */
.path-timeline { margin: 1.5rem 0 2rem; }
.path-courses, .path-steps { display: grid; grid-template-columns: repeat(6, 1fr); column-gap: 0.5rem; }
.path-course {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    text-align: center; padding: 0.35rem 0.25rem; border-radius: 6px 6px 0 0; border-bottom: 3px solid;
}
.path-course--this  { grid-column: 1 / 2; color: var(--brand); background: var(--brand-soft); border-color: var(--brand); }
.path-course--setup { grid-column: 2 / 4; color: var(--teal); background: #E3F2F0; border-color: var(--teal); }
.path-course--third { grid-column: 4 / 7; color: var(--amber-ink); background: #FBF1E6; border-color: var(--amber); }
.path-steps { list-style: none; margin: 0; padding: 2.25rem 0 0; position: relative; }
.path-steps::before {
    content: ""; position: absolute; top: calc(2.25rem + 22px); left: 8.33%; right: 8.33%;
    height: 3px; background: var(--line);
}
.path-step { position: relative; display: flex; flex-direction: column; align-items: center; }
.path-stop {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem; width: 100%;
    background: none; border: 0; padding: 0 0.25rem 0.5rem; font: inherit; color: var(--ink); cursor: pointer; text-align: center;
}
.path-dot {
    position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 700; font-size: 1.05rem;
    background: var(--surface); border: 3px solid var(--line); color: var(--muted);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.path-step--this  .path-dot { border-color: var(--brand); color: var(--brand); }
.path-step--setup .path-dot { border-color: var(--teal); color: var(--teal); }
.path-step--third .path-dot { border-color: var(--amber); color: var(--amber-ink); }

.path-stop.active .path-dot { color: #fff; }
.path-step--this  .path-stop.active .path-dot { background: var(--brand); }
.path-step--setup .path-stop.active .path-dot { background: var(--teal); }
.path-step--third .path-stop.active .path-dot { background: var(--amber-ink); border-color: var(--amber-ink); }
.path-title { font-size: 0.9rem; font-weight: 600; line-height: 1.3; }
.path-num { display: block; font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.path-stop.active .path-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.path-tag { display: none; }
.path-dana {
    position: absolute; top: -2rem; left: 50%; transform: translateX(-50%); white-space: nowrap;
    font-size: 0.75rem; font-weight: 700; background: var(--ink); color: #fff; padding: 0.2rem 0.55rem; border-radius: 999px;
}
.path-dana::after {
    content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%);
    border: 5px solid transparent; border-bottom: 0; border-top-color: var(--ink);
}
.path-details { margin-top: 1rem; }
.path-detail { background: var(--bg-light); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.25rem; }
.path-detail h4 { margin: 0 0 0.4rem; }
.path-detail p { margin: 0 0 0.5rem; }
.path-detail .path-detail-course { margin: 0; font-size: 0.85rem; font-weight: 700; color: var(--muted); }
@media (max-width: 700px) {
    .path-courses { display: none; }
    .path-steps { grid-template-columns: 1fr; row-gap: 0.75rem; padding: 0; }
    .path-steps::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 3px; height: auto; }
    .path-step { align-items: stretch; }
    .path-stop { flex-direction: row; align-items: center; gap: 0.85rem; text-align: left; padding: 0; }
    .path-dot { flex: 0 0 44px; }
    .path-title { flex: 1; }
    .path-tag { display: block; font-size: 0.7rem; font-weight: 700; color: var(--muted); text-align: right; max-width: 6.5rem; }
    .path-dana { position: static; transform: none; align-self: flex-start; margin: 0 0 0.35rem 56px; }
    .path-dana::after { display: none; }
}
/* Find-the-mistakes: feedback sits right under the selected line */
/* The counter, Hint and any hint stay at the top of the screen while learners scroll the sheet */
.fe-sticky { position: sticky; top: 0; z-index: 5; background: var(--surface); padding: 0.6rem 0; margin-bottom: 0.5rem; box-shadow: 0 6px 8px -8px rgba(0,0,0,0.25); }
.fe-actions { margin: 0; }
.fe-hint-box { margin: 0.6rem 0 0; }
.fe-note {
    display: flex; gap: 0.6rem; align-items: flex-start;
    padding: 0.7rem 1rem 0.8rem 1rem; font-size: 0.95rem; line-height: 1.45;
    border-left: 4px solid; animation: fe-note-in 0.2s ease-out;
}
.fe-note.is-correct { background: var(--ok-soft); border-color: var(--ok); }
.fe-note.is-wrong { background: var(--bad-soft); border-color: var(--bad); }
.fe-note p { margin: 0; }
.fe-note .fe-extra { margin-top: 0.4rem; }
.fe-note-icon {
    flex: none; width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center;
    font-size: 0.8rem; font-weight: 700; color: #fff;
}
.fe-note.is-correct .fe-note-icon { background: var(--ok); }
.fe-note.is-wrong .fe-note-icon { background: var(--bad); }
@keyframes fe-note-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fe-note { animation: none; } }
/* Multiple choice: the rejoinder opens right under the chosen answer */
.quiz-option-container + .mc-feedback-box { margin: -0.5rem 0 1rem; }
/* Sort: on phones, a pinned bar names the record being placed while learners scroll to the types */
.sort-placing { display: none; }
@media (max-width: 700px) {
    .sort-placing:not([hidden]) {
        display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
        position: sticky; top: 0; z-index: 5; margin: -0.25rem 0 1rem;
        padding: 0.65rem 0.85rem; border-radius: 8px; font-size: 0.9rem;
        background: var(--brand); color: #fff; box-shadow: 0 6px 12px -6px rgba(0,0,0,0.35);
    }
    .sort-placing .btn-secondary { flex: none; padding: 0.4rem 0.75rem; margin: 0; }
}
/* Sort: feedback on the cards */
.drag-term.is-placed-right::before { content: "✓ "; }
.drag-term.is-placed-wrong::before { content: "✕ "; }
.sort-note {
    margin: -0.25rem 0 0.25rem; padding: 0.5rem 0.6rem; border-radius: 0 0 6px 6px;
    background: var(--bad-soft); border: 1px solid var(--bad); border-top: 0;
    font-size: 13.5px; line-height: 1.4; cursor: default;
}
.sort-note p { margin: 0; font-size: 13.5px; line-height: 1.4; }
.sort-why {
    background: none; border: 0; padding: 0; font: inherit; font-weight: 700;
    color: var(--bad); text-decoration: underline; cursor: pointer;
}
.sort-why-text { margin-top: 0.4rem !important; padding-top: 0.4rem; border-top: 1px solid rgba(180,35,24,0.25); }
/* Sort, laid out as chart-of-accounts rows: account type on the left, records drop into the row */
.coa-sort { margin: 0; }
.coa-sort-head { display: grid; grid-template-columns: 170px 1fr; gap: 1rem; padding: 0.55rem 1rem; background: #F3F4F8; font-size: 0.8rem; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }
.coa-sort .sort-buckets { display: flex; flex-direction: column; gap: 0; }
.coa-sort .sort-bucket {
    display: grid; grid-template-columns: 170px 1fr; gap: 1rem; align-items: start;
    min-height: 0; padding: 0.75rem 1rem; border: 0; border-bottom: 1px solid #E5E8EF; border-radius: 0;
    background: #fff;
}
.coa-sort .sort-bucket:last-child { border-bottom: 0; }
.coa-sort .sort-bucket.drag-over { background: var(--brand-soft); }
.coa-sort .sort-bucket-label { margin: 0; flex-direction: row; align-items: baseline; gap: 0.6rem; padding-top: 0.55rem; }
.coa-sort .sort-bucket-label span { font-size: 0.85rem; color: var(--brand); }
.coa-sort .sort-bucket-items {
    flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 0.5rem;
    min-height: 48px; padding: 0.35rem; border: 2px dashed var(--line); border-radius: 6px;
}
.coa-sort .sort-bucket.drag-over .sort-bucket-items { border-color: var(--secondary); }
.sort-slot { display: flex; flex-direction: column; }
.coa-sort .sort-slot { flex: 0 1 200px; }
.dnd-word-bank .sort-slot { flex: 0 1 auto; }
@media (max-width: 700px) {
    .coa-sort-head { display: none; }
    .coa-sort .sort-bucket { grid-template-columns: 1fr; gap: 0.4rem; padding: 0.75rem; }
    .coa-sort .sort-bucket-label { padding-top: 0; }
    .coa-sort .sort-slot { flex: 1 1 100%; }
}

/* Page 6: Build your team (role cards + guided walkthrough) */
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; margin: 1rem 0 2rem; }
.role-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 8px; padding: 0.9rem 1rem; }
.role-card h4 { margin: 0 0 0.35rem; font-size: 1rem; color: var(--brand); }
.role-card p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.walkthrough { margin: 1rem 0 2rem; }
.wt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.wt-count { font-size: 0.8rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 0.04em; min-width: 5.5rem; }
.wt-progress { flex: 1; min-width: 80px; height: 6px; border-radius: 3px; background: var(--brand-soft); overflow: hidden; }
.wt-progress span { display: block; height: 100%; width: 0; background: var(--brand); transition: width 0.3s; }
.walkthrough .software-window { margin: 0; overflow: visible; }
.wt-stage { position: relative; display: flex; min-height: 420px; }
.wt-side { border-radius: 0 0 0 8px; }
.wt-main { flex: 1; padding: 1rem 1rem 5.5rem; background: #fff; border-radius: 0 0 8px 0; display: flex; flex-direction: column; }
.wt-screen { display: flex; flex-direction: column; gap: 0.6rem; }
.wt-screen[hidden] { display: none; }
.wt-screen-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.25rem; }
.wt-btn { background: var(--brand); color: #fff; border: 0; border-radius: 6px; padding: 0.5rem 0.85rem; font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.wt-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.wt-table th, .wt-table td { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid #E3E7ED; }
.wt-table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.wt-new-row td { background: var(--ok-soft); font-weight: 600; }
.wt-label { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.wt-field-wrap { position: relative; }
.wt-field { width: 100%; text-align: left; background: #fff; border: 1px solid #B8C2D0; border-radius: 6px; padding: 0.5rem 0.7rem; font: inherit; font-size: 0.95rem; color: var(--ink); cursor: pointer; }
.wt-placeholder { color: #8A96A8; }
.wt-results { margin-top: 4px; background: #fff; border: 1px solid #B8C2D0; border-radius: 6px; box-shadow: 0 8px 18px rgba(28,35,51,0.15); padding: 4px; display: flex; flex-direction: column; }
.wt-results[hidden] { display: none; }
.wt-result { display: flex; flex-direction: column; align-items: flex-start; text-align: left; background: none; border: 2px solid transparent; border-radius: 5px; padding: 0.45rem 0.6rem; font: inherit; font-size: 0.92rem; cursor: pointer; color: var(--ink); }
.wt-result:hover { background: var(--brand-soft); }
.wt-result span { font-size: 0.8rem; color: var(--muted); }
.wt-form-actions { margin-top: 0.5rem; }
.wt-target { position: relative; z-index: 1; outline: 3px solid var(--amber); outline-offset: 2px; animation: wt-pulse 1.6s ease-in-out infinite; }
.wt-pressed { transform: scale(0.96); }
@keyframes wt-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242,182,109,0.7); } 50% { box-shadow: 0 0 0 8px rgba(242,182,109,0); } }
.wt-tip { position: absolute; z-index: 3; max-width: 260px; display: flex; gap: 0.55rem; align-items: flex-start; background: #1C2333; color: #fff; border-radius: 8px; padding: 0.6rem 0.75rem; font-size: 0.9rem; line-height: 1.4; box-shadow: 0 8px 20px rgba(28,35,51,0.3); pointer-events: none; transition: top 0.25s, left 0.25s; }
.wt-tip[hidden] { display: none; }
.wt-tip::before { content: ''; position: absolute; top: -6px; left: var(--arrow-x, 16px); border: 6px solid transparent; border-top: 0; border-bottom-color: #1C2333; }
.wt-tip.is-above::before { top: auto; bottom: -6px; border-bottom: 0; border-top: 6px solid #1C2333; }
.wt-tip.is-side::before { top: 12px; left: -6px; border: 6px solid transparent; border-left: 0; border-right-color: #1C2333; }
.wt-tip-num { flex: 0 0 auto; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--amber); color: #1C2333; font-weight: 700; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; }
.wt-tip.is-nudge { animation: wt-shake 0.35s; background: #7A1F17; }
.wt-tip.is-nudge::before { border-bottom-color: #7A1F17; }
.wt-tip.is-nudge.is-above::before { border-top-color: #7A1F17; }
.wt-tip.is-nudge.is-side::before { border-bottom-color: transparent; border-right-color: #7A1F17; }
@keyframes wt-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .wt-target, .wt-tip.is-nudge { animation: none; } .wt-tip { transition: none; } }
@media (max-width: 600px) {
    .wt-stage { flex-direction: column; }
    .wt-side { flex-direction: row; flex-wrap: wrap; min-width: 0; border-radius: 0; }
    .wt-side .nav-mock-item { padding: 0.45rem 0.6rem; font-size: 0.85rem; }
    .wt-main { border-radius: 0 0 8px 8px; min-height: 380px; }
}


/* ==========================================================================
   Quieter pass (Nov 2026)
   Takes out the patterns that read as AI-made: stock colors (now tokens above),
   fake Mac window dots, icon cards, hover lifts, shouty labels.
   ========================================================================== */

/* Section labels in sentence case; the heading carries the page */
.section-label { text-transform: none; letter-spacing: 0; font-size: 0.95rem; }
.course-header { border-bottom: 1px solid var(--line); }
.badge-type { text-transform: none; }

/* Ledger screens: an app title bar, not a Mac window */
.window-header { gap: 8px; }
.window-mark { width: 14px; height: 14px; border-radius: 3px; background: var(--brand); flex: none; position: relative; }
.window-mark::after { content: ''; position: absolute; left: 3px; right: 3px; top: 6px; height: 2px; background: var(--amber); }
.window-title { margin-left: 0 !important; }
/* On the dark Ledger bars the mark flips so it stays visible */
.window-header:not(.mini-window .window-header) .window-mark { background: var(--amber); }
.window-header:not(.mini-window .window-header) .window-mark::after { background: var(--primary); }

/* Objectives: a numbered list, not four icon cards */
.objective-steps { margin: 0 0 1rem; padding-left: 1.6rem; display: grid; gap: 0.6rem; }
.objective-steps li { padding-left: 0.3rem; }
.objective-steps li::marker { color: var(--brand); font-weight: 700; }

/* Pressed, not lifted */
.btn-main, .btn-secondary, button { transition: transform 120ms ease, background-color 150ms ease, border-color 150ms ease; }
.btn-main:active, .btn-secondary:active, button:active { transform: scale(0.97); }

/* Headlines break evenly; paragraphs avoid a lonely last word */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
a { text-underline-offset: 3px; }
/* Title text on the dark Ledger bars needs a lighter gray to pass contrast */
.window-header:not(.mini-window .window-header) .window-title { color: #B4BCCB; }
