/* ============================================================
   Notes / Docs Layout — minimal, docs-style, sidebar-driven
   ============================================================ */

:root {
    --notes-bg: #fafafa;
    --notes-surface: #ffffff;
    --notes-border: rgba(15,23,42,0.08);
    --notes-border-strong: rgba(15,23,42,0.14);
    --notes-text: #0f172a;
    --notes-text-secondary: #475569;
    --notes-text-muted: #94a3b8;
    --notes-accent: #DC2626;
    --notes-accent-soft: rgba(220,38,38,0.08);
    --notes-sidebar-width: 320px;
    --notes-header-height: 64px;
    --notes-radius: 10px;
    --notes-radius-lg: 14px;
}

/* Notes pages match the main site — light theme only, regardless of OS dark mode */

body.notes-body {
    background: var(--notes-bg);
    color: var(--notes-text);
    color-scheme: light;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.notes-body * { box-sizing: border-box; }

/* ===== Top header — minimal, no main site nav ===== */
.notes-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--notes-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 16px;
    background: var(--notes-surface);
    border-bottom: 1px solid var(--notes-border);
    backdrop-filter: blur(12px);
}

/* Subject tabs in the top header (injected by JS) */
.notes-subject-tabs {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    margin: 0 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.notes-subject-tabs::-webkit-scrollbar { display: none; }
.notes-subject-tab {
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--notes-text-secondary);
    text-decoration: none;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.005em;
}
.notes-subject-tab:hover {
    color: var(--notes-text);
    background: var(--notes-accent-soft);
}
.notes-subject-tab.active {
    color: var(--notes-accent);
    background: var(--notes-accent-soft);
}
.notes-subject-tab.active::after {
    content: '';
    display: block;
    height: 2px;
    background: var(--notes-accent);
    border-radius: 2px;
    margin: 4px -14px -10px;
}
.notes-header-left { display: flex; align-items: center; gap: 12px; }
.notes-header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--notes-text);
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.01em;
}
.notes-header-logo img { height: 32px; width: auto; }
.notes-header-logo .badge {
    background: var(--notes-accent-soft);
    color: var(--notes-accent);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 100px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.notes-header-right { display: flex; align-items: center; gap: 8px; }
.notes-header-link {
    color: var(--notes-text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}
.notes-header-link:hover { background: var(--notes-accent-soft); color: var(--notes-accent); }
.notes-mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--notes-border-strong);
    border-radius: 8px;
    width: 40px; height: 40px;
    cursor: pointer;
    color: var(--notes-text);
}
.notes-mobile-toggle svg { width: 20px; height: 20px; }

/* ===== Layout: sidebar + content ===== */
.notes-layout {
    display: grid;
    grid-template-columns: var(--notes-sidebar-width) 1fr;
    min-height: calc(100vh - var(--notes-header-height));
}
.notes-layout.no-sidebar {
    grid-template-columns: 1fr;
}
.notes-layout.no-sidebar .notes-sidebar { display: none; }
.notes-layout.no-sidebar .notes-main { max-width: 1100px; }

/* ===== Sidebar ===== */
.notes-sidebar {
    position: sticky;
    top: var(--notes-header-height);
    height: calc(100vh - var(--notes-header-height));
    overflow-y: auto;
    border-right: 1px solid var(--notes-border);
    background: var(--notes-surface);
    padding: 16px 0 32px;
    scrollbar-width: thin;
    scrollbar-color: var(--notes-border-strong) transparent;
}
.notes-sidebar::-webkit-scrollbar { width: 6px; }
.notes-sidebar::-webkit-scrollbar-thumb { background: var(--notes-border-strong); border-radius: 3px; }

.sidebar-search {
    padding: 0 20px 12px;
    border-bottom: 1px solid var(--notes-border);
    margin-bottom: 12px;
}
.sidebar-search input {
    width: 100%;
    padding: 9px 12px 9px 36px;
    background: var(--notes-bg);
    border: 1px solid var(--notes-border);
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--notes-text);
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'><circle cx='11' cy='11' r='8'/><path d='M21 21l-4.35-4.35'/></svg>");
    background-repeat: no-repeat;
    background-position: 12px center;
}
.sidebar-search input:focus { outline: none; border-color: var(--notes-accent); }

.sidebar-section-title {
    padding: 4px 20px 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--notes-text-muted);
}

.subject-section { margin-bottom: 4px; }
.subject-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 20px;
    background: none;
    border: none;
    color: var(--notes-text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    border-radius: 0;
    transition: background 0.12s;
}
.subject-toggle:hover { background: var(--notes-accent-soft); }
.subject-toggle .chevron {
    width: 14px; height: 14px;
    transition: transform 0.2s;
    color: var(--notes-text-muted);
}
.subject-section.open .subject-toggle .chevron { transform: rotate(90deg); }
.subject-toggle .count {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--notes-text-muted);
    background: var(--notes-bg);
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: auto;
}
.subject-toggle .subject-icon {
    width: 18px; height: 18px;
    flex-shrink: 0;
    color: var(--notes-accent);
}

.topic-list {
    display: none;
    padding: 4px 0 8px;
}
.subject-section.open .topic-list { display: block; }

.topic-item { margin: 0; }
.topic-toggle, .topic-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 20px 8px 44px;
    background: none;
    border: none;
    color: var(--notes-text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.topic-toggle:hover, .topic-link:hover {
    color: var(--notes-text);
    background: rgba(15,23,42,0.03);
}
.topic-toggle .chevron {
    width: 12px; height: 12px;
    transition: transform 0.2s;
    color: var(--notes-text-muted);
    flex-shrink: 0;
}
.topic-item.open .topic-toggle .chevron { transform: rotate(90deg); }
.topic-link.active, .topic-toggle.active {
    color: var(--notes-accent);
    background: var(--notes-accent-soft);
    border-left-color: var(--notes-accent);
    font-weight: 600;
}

.subtopic-list {
    display: none;
    padding: 2px 0 6px;
}
.topic-item.open .subtopic-list { display: block; }

.subtopic-link {
    display: block;
    padding: 6px 20px 6px 64px;
    color: var(--notes-text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    line-height: 1.5;
    border-left: 2px solid transparent;
    transition: color 0.12s, border-color 0.12s, background 0.12s;
}
.subtopic-link:hover {
    color: var(--notes-text);
    background: rgba(15,23,42,0.03);
}
.subtopic-link.active {
    color: var(--notes-accent);
    border-left-color: var(--notes-accent);
    background: var(--notes-accent-soft);
    font-weight: 600;
}

/* ===== Main content ===== */
.notes-main {
    padding: 48px 56px 96px;
    max-width: 920px;
    margin: 0 auto;
    width: 100%;
}
.notes-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--notes-text-muted);
    margin-bottom: 20px;
}
.notes-breadcrumb a { color: var(--notes-text-secondary); text-decoration: none; }
.notes-breadcrumb a:hover { color: var(--notes-accent); }
.notes-breadcrumb svg { width: 12px; height: 12px; opacity: 0.5; }

.notes-main h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0 0 12px;
    color: var(--notes-text);
}
.notes-main .lede {
    font-size: 1.1rem;
    color: var(--notes-text-secondary);
    line-height: 1.7;
    margin: 0 0 32px;
    max-width: 720px;
}

.notes-main h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 56px 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--notes-border);
    scroll-margin-top: calc(var(--notes-header-height) + 24px);
}
.notes-main h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--notes-text);
    scroll-margin-top: calc(var(--notes-header-height) + 24px);
}
.notes-main p {
    color: var(--notes-text-secondary);
    margin: 0 0 16px;
    font-size: 0.98rem;
    line-height: 1.75;
}
.notes-main ul, .notes-main ol {
    color: var(--notes-text-secondary);
    padding-left: 24px;
    margin: 0 0 20px;
    line-height: 1.85;
}
.notes-main li { margin-bottom: 6px; font-size: 0.98rem; }
.notes-main strong { color: var(--notes-text); font-weight: 700; }
.notes-main a { color: var(--notes-accent); text-decoration: underline; text-underline-offset: 3px; }

/* Concept cards */
.concept-card {
    background: var(--notes-surface);
    border: 1px solid var(--notes-border);
    border-radius: var(--notes-radius-lg);
    padding: 24px 28px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.concept-card.accent { border-left: 4px solid var(--notes-accent); }
.concept-card .concept-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 8px;
    color: var(--notes-text);
}

/* Definitions */
.def-list { margin: 16px 0 24px; padding: 0; list-style: none; }
.def-list dt {
    font-weight: 700;
    color: var(--notes-text);
    margin-top: 14px;
    font-size: 0.96rem;
}
.def-list dd {
    margin: 4px 0 0;
    padding-left: 0;
    color: var(--notes-text-secondary);
    font-size: 0.94rem;
    line-height: 1.7;
}

/* Callouts */
.callout {
    border-radius: var(--notes-radius);
    padding: 16px 20px;
    margin: 20px 0;
    display: flex;
    gap: 12px;
    font-size: 0.94rem;
    line-height: 1.65;
}
.callout svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; }
.callout.tip { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); color: #166534; }
.callout.warn { background: rgba(234,179,8,0.08); border: 1px solid rgba(234,179,8,0.2); color: #854d0e; }
.callout.info { background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2); color: #1e3a8a; }
.callout.exam { background: var(--notes-accent-soft); border: 1px solid rgba(220,38,38,0.2); color: #991B1B; }
.callout strong { color: inherit; }

/* MCQ block */
.mcq-block {
    background: var(--notes-surface);
    border: 1px solid var(--notes-border);
    border-radius: var(--notes-radius-lg);
    padding: 20px 24px;
    margin: 16px 0;
}
.mcq-q {
    font-weight: 600;
    color: var(--notes-text);
    margin: 0 0 12px;
    font-size: 0.96rem;
    line-height: 1.6;
}
.mcq-q .mcq-num {
    color: var(--notes-accent);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    margin-right: 8px;
}
.mcq-options {
    display: grid;
    gap: 6px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}
.mcq-options li {
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--notes-bg);
    border: 1px solid var(--notes-border);
    font-size: 0.92rem;
    color: var(--notes-text-secondary);
    margin: 0;
}
.mcq-options li.correct {
    background: rgba(34,197,94,0.08);
    border-color: rgba(34,197,94,0.3);
    color: var(--notes-text);
    font-weight: 600;
}
.mcq-options li.correct::before {
    content: '✓ ';
    color: #16a34a;
    font-weight: 800;
    margin-right: 4px;
}
.mcq-explanation {
    font-size: 0.88rem;
    color: var(--notes-text-secondary);
    background: var(--notes-bg);
    border-left: 3px solid var(--notes-accent);
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    line-height: 1.65;
    margin: 0;
}

/* Subject grid (index page) */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 32px 0;
}
.subject-card {
    background: var(--notes-surface);
    border: 1px solid var(--notes-border);
    border-radius: var(--notes-radius-lg);
    padding: 28px;
    text-decoration: none;
    color: var(--notes-text);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: block;
    position: relative;
    overflow: hidden;
}
.subject-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--notes-accent), #991B1B);
    opacity: 0;
    transition: opacity 0.2s;
}
.subject-card:hover {
    transform: translateY(-3px);
    border-color: var(--notes-accent);
    box-shadow: 0 8px 24px rgba(220,38,38,0.08);
}
.subject-card:hover::before { opacity: 1; }
.subject-card .subj-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -0.015em;
}
.subject-card .subj-meta {
    color: var(--notes-text-muted);
    font-size: 0.85rem;
    margin: 0 0 14px;
}
.subject-card .subj-arrow {
    color: var(--notes-accent);
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}
.subject-card:hover .subj-arrow { gap: 8px; }

/* Mobile */
@media (max-width: 900px) {
    .notes-mobile-toggle { display: flex; align-items: center; justify-content: center; }
    .notes-layout { grid-template-columns: 1fr; }
    .notes-subject-tabs { gap: 0; }
    .notes-subject-tab { padding: 6px 10px; font-size: 0.82rem; }
    .notes-header-link { padding: 6px 10px; font-size: 0.82rem; }
    .notes-header { padding: 0 12px; }
    .notes-sidebar {
        position: fixed;
        top: var(--notes-header-height);
        left: 0;
        width: 280px;
        max-width: 85vw;
        z-index: 40;
        transform: translateX(-100%);
        transition: transform 0.25s;
        box-shadow: 4px 0 24px rgba(0,0,0,0.1);
    }
    .notes-sidebar.open { transform: translateX(0); }
    .notes-main { padding: 32px 20px 64px; }
    .notes-main h1 { font-size: 1.8rem; }
    .notes-main h2 { font-size: 1.3rem; }
    .sidebar-overlay {
        position: fixed;
        inset: var(--notes-header-height) 0 0 0;
        background: rgba(0,0,0,0.4);
        z-index: 35;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s;
    }
    .sidebar-overlay.visible { opacity: 1; pointer-events: auto; }
}
/* ============================================================
   Latest-gen UI enhancements (2026 refresh) — loaded after notes.css
   - Reading progress bar
   - Floating ToC (right-side scroll spy)
   - Comparison tables
   - Heading anchor links
   - Subtle reveal animations
   - Glassmorphism header
   ============================================================ */

/* ---------- Reading progress bar (top of viewport) ---------- */
.notes-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: transparent;
    z-index: 100;
    pointer-events: none;
}
.notes-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--notes-accent), #f97316, var(--notes-accent));
    background-size: 200% 100%;
    animation: notes-progress-shimmer 3s linear infinite;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 12px rgba(220,38,38,0.4);
}
@keyframes notes-progress-shimmer {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* ---------- Glassmorphism on the header ---------- */
.notes-header {
    background: rgba(255,255,255,0.78) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

/* ---------- Heading anchor links ---------- */
.notes-main h2,
.notes-main h3 {
    position: relative;
}
.notes-main h2 .heading-anchor,
.notes-main h3 .heading-anchor {
    position: absolute;
    left: -28px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    text-decoration: none;
    color: var(--notes-text-muted);
    font-weight: 400;
    font-size: 1.2rem;
    transition: opacity 0.15s, color 0.15s;
    line-height: 1;
}
.notes-main h2:hover .heading-anchor,
.notes-main h3:hover .heading-anchor,
.notes-main h2 .heading-anchor:focus,
.notes-main h3 .heading-anchor:focus { opacity: 1; }
.notes-main h2 .heading-anchor:hover,
.notes-main h3 .heading-anchor:hover { color: var(--notes-accent); }

/* ---------- Floating ToC (right-side scroll spy, desktop) ---------- */
.notes-toc {
    position: fixed;
    top: calc(var(--notes-header-height) + 32px);
    right: 24px;
    width: 240px;
    max-height: calc(100vh - var(--notes-header-height) - 64px);
    overflow-y: auto;
    padding: 18px 18px 24px;
    background: var(--notes-surface);
    border: 1px solid var(--notes-border);
    border-radius: var(--notes-radius-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    z-index: 30;
    scrollbar-width: thin;
    scrollbar-color: var(--notes-border-strong) transparent;
}
.notes-toc::-webkit-scrollbar { width: 4px; }
.notes-toc::-webkit-scrollbar-thumb { background: var(--notes-border-strong); border-radius: 2px; }
.notes-toc-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--notes-text-muted);
    margin: 0 0 12px;
}
.notes-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 1px solid var(--notes-border);
}
.notes-toc-list li { margin: 0; }
.notes-toc-list a {
    display: block;
    padding: 6px 12px;
    margin-left: -1px;
    border-left: 2px solid transparent;
    color: var(--notes-text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    line-height: 1.45;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.notes-toc-list a:hover { color: var(--notes-text); }
.notes-toc-list a.toc-active {
    color: var(--notes-accent);
    border-left-color: var(--notes-accent);
    font-weight: 600;
}
.notes-toc-list a.toc-h3 { padding-left: 24px; font-size: 0.78rem; }
@media (max-width: 1320px) { .notes-toc { display: none; } }

/* ---------- Comparison tables ---------- */
.compare-table-wrap {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: var(--notes-radius-lg);
    border: 1px solid var(--notes-border);
    background: var(--notes-surface);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
table.compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    line-height: 1.55;
}
table.compare caption {
    caption-side: top;
    text-align: left;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--notes-text);
    padding: 16px 20px 8px;
    font-size: 1.02rem;
}
table.compare thead th {
    background: var(--notes-bg);
    color: var(--notes-text);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--notes-border);
    white-space: nowrap;
    position: sticky;
    top: 0;
}
table.compare tbody td,
table.compare tbody th {
    padding: 12px 16px;
    border-bottom: 1px solid var(--notes-border);
    color: var(--notes-text-secondary);
    vertical-align: top;
}
table.compare tbody th {
    color: var(--notes-text);
    font-weight: 700;
    background: var(--notes-bg);
    text-align: left;
    white-space: nowrap;
    width: 1%;
}
table.compare tbody tr:last-child td,
table.compare tbody tr:last-child th { border-bottom: none; }
table.compare tbody tr:hover td,
table.compare tbody tr:hover th { background: var(--notes-accent-soft); }
table.compare strong { color: var(--notes-text); }

/* ---------- Refined concept cards ---------- */
.concept-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.concept-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border-color: var(--notes-border-strong);
}
.concept-card.accent {
    background: linear-gradient(135deg, var(--notes-surface), var(--notes-accent-soft) 200%);
}

/* ---------- MCQ block polish ---------- */
.mcq-block {
    transition: box-shadow 0.18s ease;
}
.mcq-block:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.mcq-options li { transition: background 0.15s, border-color 0.15s; }
.mcq-options li:hover { border-color: var(--notes-border-strong); }
.mcq-options li.correct { box-shadow: 0 0 0 1px rgba(34,197,94,0.15); }

/* ---------- Subtle reveal-on-scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- H1 underline accent ---------- */
.notes-main h1 {
    position: relative;
    padding-bottom: 6px;
}
.notes-main h1::after {
    content: '';
    position: absolute;
    left: 0; bottom: -8px;
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--notes-accent), #f97316);
}
.notes-main .lede { padding-top: 20px; }

/* ---------- Subject tab refinement ---------- */
.notes-subject-tab { letter-spacing: -0.005em; transition: background 0.18s, color 0.18s; }
.notes-subject-tab:hover { transform: translateY(-1px); }

/* ---------- Print styles ---------- */
@media print {
    .notes-header, .notes-sidebar, .notes-toc, .notes-progress, .sidebar-overlay { display: none !important; }
    .notes-layout { display: block; }
    .notes-main { max-width: 100%; padding: 0; }
    body.notes-body { background: white; color: black; }
}
