/* ============================================
   OpenEcon.ai — Clean light theme
   Inspired by Cruip Simple Light
   ============================================ */

:root {
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-card: #ffffff;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-hover: #cbd5e1;
    --border-bootstrap: #dee2e6;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 50px -12px rgba(0, 0, 0, 0.12);
    --secondary-color: #0f766e;
    --brand-dark: #1e3a5f;
    --chrome-bg: #1a2332;
    --chrome-gradient-from: #263040;
    --chrome-gradient-to: #1e2a38;
    --border-card: #dbe5f1;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

/* ── Base ─────────────────────────────────── */

body {
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg-alt);
}

body.page-home {
    background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', 'Avenir Next', 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

/* ── Navbar (non-homepage only) ────────────── */

.navbar-brand { font-size: 1.5rem; }
.nav-link { font-weight: 600; transition: color 0.2s; }
.navbar .nav-link:hover { color: var(--accent); }
.navbar .nav-link.active { color: var(--accent); }

.navbar-home {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 30;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.navbar-home.navbar-scrolled {
    background: var(--bg) !important;
    border-bottom: 1px solid var(--border) !important;
    backdrop-filter: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.navbar-home.navbar-scrolled .text-primary {
    color: var(--brand-dark) !important;
}

.navbar-home.navbar-scrolled .nav-link {
    color: var(--text-secondary) !important;
}

.navbar-home.navbar-scrolled .nav-link:hover,
.navbar-home.navbar-scrolled .nav-link.active {
    color: var(--accent) !important;
}

.navbar-home.navbar-scrolled .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
}

.navbar-home.navbar-scrolled .navbar-toggler-icon {
    filter: none;
}

.page-home .navbar-home {
    background: transparent !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: none;
}

.page-home .navbar-home .text-primary {
    color: var(--brand-dark) !important;
}

.page-home .navbar-home .nav-link {
    color: var(--text-secondary) !important;
}

.page-home .navbar-home .nav-link:hover,
.page-home .navbar-home .nav-link.active {
    color: var(--accent) !important;
}

/* ── Hero ──────────────────────────────────── */

.hero-section {
    position: relative;
    padding: calc(66px + 3.5rem) 0 3rem;
    background: var(--bg);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text);
}

.hero-badge {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 1.25rem;
    animation: fadeIn 0.6s ease-out;
}

.hero-title {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-description {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-mockup-wrapper {
    display: block;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.03),
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 12px 30px rgba(0, 0, 0, 0.08),
        0 30px 60px -10px rgba(0, 0, 0, 0.1);
    background: var(--chrome-bg);
    animation: fadeIn 0.8s ease-out 0.25s both;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hero-mockup-wrapper:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.06),
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 40px 80px -10px rgba(0, 0, 0, 0.14);
}

.hero-mockup-chrome {
    display: flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    background: linear-gradient(180deg, var(--chrome-gradient-from) 0%, var(--chrome-gradient-to) 100%);
}

.hero-mockup-chrome .mockup-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}

.hero-mockup-chrome .mockup-dots span {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff5f57;
}
.hero-mockup-chrome .mockup-dots span:nth-child(2) { background: #ffbd2e; }
.hero-mockup-chrome .mockup-dots span:nth-child(3) { background: #28c840; }

.hero-mockup-chrome .mockup-url {
    flex: 1;
    text-align: center;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    font-family: 'Instrument Sans', sans-serif;
    letter-spacing: 0.02em;
}

.hero-mockup-caption {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.hero-demo {
    background: var(--bg);
    padding: 0.5rem 0.6rem 0.45rem;
    position: relative;
}

/* Query row */
.hero-demo-query {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.3rem;
    min-height: 1.3rem;
}

.hero-demo-prompt {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.hero-demo-input {
    font-size: 0.82rem;
    color: var(--text);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.hero-demo-cursor {
    display: inline-block;
    width: 1.5px;
    height: 0.82rem;
    background: var(--accent);
    margin-left: 1px;
    animation: cursorBlink 0.9s step-end infinite;
    transition: opacity 0.15s;
    flex-shrink: 0;
}

@keyframes cursorBlink { 50% { opacity: 0; } }

/* Processing status — overlays the result area */
.hero-demo-status {
    position: absolute;
    left: 0.6rem;
    right: 0.6rem;
    padding-top: 0.15rem;
    z-index: 2;
}
.hero-status-line {
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.85;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.hero-status-line .status-icon {
    flex-shrink: 0;
    width: 11px;
    height: 11px;
}
.hero-status-line .status-spinner {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 1.5px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: statusSpin 0.8s linear infinite;
    flex-shrink: 0;
}
@keyframes statusSpin { to { transform: rotate(360deg); } }

/* Result area */
.hero-demo-result {
    transition: opacity 0.35s ease;
    position: relative;
}

.hero-demo-chart {
    background: transparent;
    padding: 0;
}

.hero-demo-chart svg { display: block; width: 100%; height: auto; }

/* Actions row (source + export) */
.hero-demo-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.15rem;
    padding-top: 0.15rem;
    border-top: 1px solid var(--border-light);
}

.hero-demo-src {
    font-size: 0.55rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.hero-demo-export {
    display: flex;
    gap: 0.2rem;
}

.hero-export-btn {
    font-size: 0.5rem;
    font-weight: 600;
    font-family: 'Space Grotesk', monospace;
    padding: 0.1rem 0.3rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    line-height: 1.2;
}

.hero-export-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}



/* Hero CTAs */
.hero-ctas {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    animation: fadeIn 0.6s ease-out 0.15s both;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.5rem;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.25);
}

.btn-hero-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.btn-hero-ghost:hover {
    color: var(--text);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.btn-hero-ghost .arrow {
    transition: transform 0.15s;
}

.btn-hero-ghost:hover .arrow {
    transform: translateX(2px);
}

/* ── Feature Cards ─────────────────────────── */

.feature-card {
    position: relative;
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.feature-card-live::before { background: linear-gradient(90deg, #3b82f6, #10b981); }
.feature-card-oss::before { background: linear-gradient(90deg, #0f766e, #06b6d4); }
.feature-card-curated::before { background: linear-gradient(90deg, #f59e0b, #f97316); }

.feature-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.feature-card a:not(.btn) {
    color: var(--accent);
    transition: color 0.15s;
}

.feature-card a:not(.btn):hover {
    color: var(--accent-hover);
}

.landing-section-title {
    letter-spacing: -0.025em;
}

.landing-section-subtitle {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.landing-workflow .landing-card {
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.landing-workflow .landing-card .card-body {
    padding: 2rem 1.5rem;
}

.landing-workflow .landing-card h3 {
    letter-spacing: -0.01em;
}

.landing-workflow .landing-card h4.h5 {
    font-size: inherit;
    letter-spacing: -0.01em;
    text-transform: none;
}

.landing-workflow .landing-card .text-muted {
    line-height: 1.65;
}

/* ── Product-type badges ───────────────────── */

.badge-product-type {
    display: inline-block;
    align-self: flex-start;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.65rem;
    line-height: 1.4;
}

.badge-type-webapp {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.badge-type-mcp {
    background: rgba(15, 118, 110, 0.1);
    color: #0f766e;
}

.badge-type-skill {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.badge-type-repo {
    background: rgba(217, 119, 6, 0.1);
    color: #b45309;
}

.badge-type-blog {
    background: rgba(249, 115, 22, 0.1);
    color: #c2410c;
}

.letter-spacing-wide {
    letter-spacing: 0.1em;
}

.landing-projects .feature-card.card {
    display: flex;
    flex-direction: column;
}

.landing-projects .feature-card .card-body.landing-card-body {
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.landing-projects .feature-card .card-body .card-cta {
    margin-top: auto;
    padding-top: 0.5rem;
}

.landing-projects .card-cta .btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.landing-projects .card-cta .btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

.landing-projects .card-cta .btn-outline-dark {
    color: var(--text);
    border-color: var(--border);
    background-color: transparent;
}

.landing-projects .card-cta .btn-outline-dark:hover {
    background-color: var(--bg-alt);
    border-color: var(--border-hover);
    color: var(--text);
}

.landing-projects > .container > .text-center .btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.landing-projects > .container > .text-center .btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

.landing-projects > .container > .text-center .btn-outline-dark {
    color: var(--text);
    border-color: var(--border);
}

.landing-projects > .container > .text-center .btn-outline-dark:hover {
    background-color: var(--bg-alt);
    border-color: var(--border-hover);
    color: var(--text);
}

.landing-projects .feature-card .card-body code {
    background-color: rgba(0, 0, 0, 0.06);
    color: var(--text-secondary);
    border: none;
    font-size: 0.82em;
}

.landing-projects .repo-slug {
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.landing-projects .group-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1.25rem;
}

.landing-clickable-card {
    cursor: pointer;
}

.landing-clickable-card:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.5);
    outline-offset: 2px;
}

.landing-entrypoints .landing-panel {
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    height: 100%;
}

.landing-entrypoints .landing-link-list li {
    line-height: 1.58;
}

.landing-entrypoints .landing-link-list a {
    font-weight: 600;
}

/* ── Footer ────────────────────────────────── */

footer { margin-top: auto; }

.page-home footer,
.page-home-footer {
    background: var(--bg-alt) !important;
    border-top: 1px solid var(--border) !important;
    margin-top: 0 !important;
}

.page-home footer .text-muted {
    color: var(--text-muted) !important;
}

.page-home footer a {
    color: var(--text-secondary) !important;
    text-decoration: none;
    transition: color 0.15s;
}

.page-home footer a:hover {
    color: var(--text) !important;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-links a {
    font-size: 0.85rem;
    font-weight: 500;
}

/* ── Scroll Reveal ─────────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ── Keyframes ─────────────────────────────── */

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

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

/* ── Utilities (non-homepage) ──────────────── */

.hover-shadow { transition: box-shadow 0.3s ease; }
.hover-shadow:hover { box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important; }

.content-block {
    padding: 2rem;
    background: var(--bg);
    border-radius: var(--radius-lg);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

section { position: relative; }

/* ── Accessibility ─────────────────────────── */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 100;
    font-weight: 600;
    border-radius: 0 0 var(--radius-md) 0;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
    color: #fff;
}

.nav-link:focus-visible,
.btn-hero-primary:focus-visible,
.btn-hero-ghost:focus-visible,
.hero-export-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@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;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ── Responsive ────────────────────────────── */

@media (max-width: 992px) {
    .hero-section { padding: calc(66px + 2.5rem) 0 2rem; }
    .hero-description { font-size: 1.05rem; }
    .hero-mockup-wrapper { margin-top: 1.5rem; }
    .hero-mockup-caption { text-align: center; }
}

@media (max-width: 768px) {
    .hero-section { padding: calc(66px + 2rem) 0 1.5rem; }
    .hero-description { font-size: 0.95rem; }
    .landing-workflow .landing-card .card-body {
        padding: 1.5rem 1.15rem;
    }
    .hero-ctas { flex-direction: column; align-items: center; gap: 0.75rem; }
    .hero-ctas .btn-hero-primary,
    .hero-ctas .btn-hero-ghost { width: 100%; justify-content: center; text-align: center; }

    .hero-demo { padding: 0.4rem 0.5rem 0.35rem; }
    .hero-demo-input { font-size: 0.72rem; }
    .hero-demo-prompt { font-size: 0.9rem; }
    .hero-export-btn { font-size: 0.45rem; padding: 0.08rem 0.22rem; }
    .hero-demo-src { font-size: 0.48rem; }
    .hero-status-line { font-size: 0.58rem; }

    .footer-links { justify-content: center !important; margin-top: 0.5rem; }

    .content-block { padding: 1.5rem; }

    .note-content h1 { font-size: 2rem; }
    .note-content h2 { font-size: 1.5rem; }
    .note-content h3 { font-size: 1.25rem; }
    .note-content pre, .highlight { font-size: 0.875rem; }
}

@media (max-width: 576px) {
    .hero-section { padding: calc(56px + 1.5rem) 0 1rem; }
    .hero-ctas { flex-direction: column; align-items: stretch; }
}

/* ============================================
   Note Content Styling (preserved)
   ============================================ */

.note-content { line-height: 1.8; }
.note-content h1 { font-size: 2.5rem; font-weight: 700; margin-top: 2rem; margin-bottom: 1rem; }
.note-content h2 { font-size: 2rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.75rem; padding-bottom: 0.3rem; border-bottom: 1px solid var(--border-bootstrap); }
.note-content h3 { font-size: 1.5rem; font-weight: 600; margin-top: 1.25rem; margin-bottom: 0.5rem; }
.note-content p { margin-bottom: 1rem; }
.note-content ul, .note-content ol { margin-bottom: 1rem; padding-left: 2rem; }
.note-content li { margin-bottom: 0.5rem; }
.note-content a { color: var(--accent); text-decoration: none; }
.note-content a:hover { text-decoration: underline; }

.note-content pre {
    background-color: #1e1e1e; border-radius: var(--radius-md); padding: 1.5rem; overflow-x: auto;
    margin: 1.5rem 0; border: 1px solid #333; box-shadow: 0 2px 8px rgba(0,0,0,0.1); position: relative;
}
.note-content code { font-family: 'Fira Code','Monaco','Consolas','Ubuntu Mono',monospace; font-size: 0.9em; line-height: 1.6; }
.note-content p code, .note-content li code, .note-content td code { background-color: #f0f0f0; color: #d73a49; padding: 0.2em 0.4em; border-radius: var(--radius-sm); font-size: 0.9em; border: 1px solid #e1e4e8; }
.note-content pre code { background-color: transparent; padding: 0; color: #d4d4d4; border: none; display: block; font-size: 0.95em; }

.highlight { background-color: #1e1e1e; border-radius: var(--radius-md); padding: 1.5rem; overflow-x: auto; margin: 1.5rem 0; border: 1px solid #333; box-shadow: 0 2px 8px rgba(0,0,0,0.1); position: relative; }
.highlight pre { background-color: transparent; padding: 0; margin: 0; color: #d4d4d4; }

.highlight .k, .highlight .kd, .highlight .kn { color: #569cd6; font-weight: bold; }
.highlight .s, .highlight .s1, .highlight .s2 { color: #ce9178; }
.highlight .n, .highlight .nx { color: #9cdcfe; }
.highlight .nf { color: #dcdcaa; }
.highlight .nc { color: #4ec9b0; }
.highlight .mi, .highlight .mf { color: #b5cea8; }
.highlight .c, .highlight .c1, .highlight .cm { color: #6a9955; font-style: italic; }
.highlight .o { color: #d4d4d4; }
.highlight .nb { color: #4ec9b0; }
.highlight .bp { color: #569cd6; }

.note-content pre[class*="language-"]::before { content: attr(data-lang); position: absolute; top: 0; right: 0; padding: 0.25rem 0.75rem; background-color: #333; color: #d4d4d4; font-size: 0.75rem; border-bottom-left-radius: var(--radius-sm); border-top-right-radius: var(--radius-md); text-transform: uppercase; letter-spacing: 0.5px; }
.note-content pre::-webkit-scrollbar, .highlight::-webkit-scrollbar { height: 8px; }
.note-content pre::-webkit-scrollbar-track, .highlight::-webkit-scrollbar-track { background: #2d2d2d; border-radius: var(--radius-sm); }
.note-content pre::-webkit-scrollbar-thumb, .highlight::-webkit-scrollbar-thumb { background: #555; border-radius: var(--radius-sm); }
.note-content pre::-webkit-scrollbar-thumb:hover, .highlight::-webkit-scrollbar-thumb:hover { background: #666; }

.note-content table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
.note-content table th, .note-content table td { padding: 0.75rem; border: 1px solid var(--border-bootstrap); }
.note-content table thead th { background-color: #f8f9fa; font-weight: 600; }
.note-content blockquote { padding-left: 1rem; border-left: 4px solid var(--accent); margin: 1rem 0; color: var(--secondary-color); font-style: italic; }

.katex-display { overflow-x: auto; overflow-y: hidden; }
.comments-section { margin-top: 3rem; }
.comments-list .card { transition: box-shadow 0.2s; }
.comments-list .card:hover { box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1) !important; }
