@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/plus-jakarta-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/plus-jakarta-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/plus-jakarta-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/plus-jakarta-sans-700.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/ibm-plex-mono-600.woff2') format('woff2'); }

:root {
    --font-stack: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    --font-mono: "IBM Plex Mono", "SF Mono", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    --bg: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1c1c1c;
    --text: #f2f2f2;
    --text-muted: #888888;
    --accent: #f2f2f2;
    --accent-dim: #aaaaaa;
    --border: #555555;
    --badge-synth: #3a3a3a;
    --badge-fx: #4a4a4a;
    --badge-midi: #5a5a5a;
    --badge-overtake: #6a6a6a;
    --badge-tool: #444444;
    --badge-utility: #2c2c2c;
    --radius: 2px;
    --radius-tight: 1px;
}

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

body {
    font-family: var(--font-stack);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}

/* Global link styling — every anchor inherits these by default. Component
   styles (e.g. .nav-link, .btn) still override when needed. */
a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Focus visibility for keyboard users (mouse clicks don't trigger this) */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Skip link — hidden until focused via keyboard */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0.5rem;
    background: var(--accent);
    color: var(--bg);
    padding: 0.5rem 0.75rem;
    border-radius: 2px;
    font-weight: 600;
    text-decoration: none;
    z-index: 100;
    transition: top 0.15s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
    top: 0.5rem;
}

/* Honor prefers-reduced-motion: hide animated hero GIF, leave wordmark */
@media (prefers-reduced-motion: reduce) {
    .hero-logo-balls {
        display: none;
    }
}

/* Site nav (shared across all pages) */
.site-nav {
    border-bottom: 2px dotted var(--border);
    padding: 1rem 1.5rem;
    background: var(--bg);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-brand {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    /* 1x source (111x18); display 1:1 — no scaling */
    height: 18px;
    width: auto;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    display: block;
}

.hero-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto 1.5rem;
}

.hero-logo-balls,
.hero-logo-mark {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    display: block;
    width: auto;
}

.hero-logo-balls {
    /* asset pre-scaled 3x (384x108); display 1:1 */
    height: 108px;
}

.hero-logo-mark {
    /* asset pre-scaled 3x (333x54); display 1:1 */
    height: 54px;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 2px;
    font-size: 0.9rem;
    transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
    color: var(--text);
}

.nav-link.active {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.hero-already-installed {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Page heading (catalog/install/about top of <main>) */
.page-heading {
    margin-bottom: 1.25rem;
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--accent);
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Controls */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.filter-btn {
    background: transparent;
    border: 2px dotted var(--border);
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s ease;
}

.filter-btn:hover {
    border-color: var(--accent-dim);
    color: var(--text);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #1a1a2e;
    font-weight: 600;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

#sort-select {
    background: var(--bg-card);
    border: 2px dotted var(--border);
    color: var(--text);
    padding: 0.4rem 0.6rem;
    border-radius: 2px;
    font-size: 0.85rem;
    cursor: pointer;
}

.module-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Grid */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1rem;
}

/* Card */
.module-card {
    background: var(--bg-card);
    border: 2px dotted var(--border);
    border-radius: 3px;
    padding: 1.2rem;
    transition: background 0.15s ease, border-color 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.module-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-dim);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.module-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.module-name a {
    color: var(--text);
    text-decoration: none;
}

.module-name a:hover {
    color: var(--accent);
}

.badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 1px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.badge-sound_generator { background: var(--badge-synth); color: #fff; }
.badge-audio_fx { background: var(--badge-fx); color: #fff; }
.badge-midi_fx { background: var(--badge-midi); color: #fff; }
.badge-overtake { background: var(--badge-overtake); color: #fff; }
.badge-tool { background: var(--badge-tool); color: #fff; }
.badge-utility { background: var(--badge-utility); color: #fff; }

.module-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.module-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.module-version {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.module-dates {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.module-requires {
    font-size: 0.8rem;
    color: var(--accent-dim);
    font-style: italic;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.4rem;
}

.download-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.download-count svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Audio preview */
.audio-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.play-btn {
    background: none;
    border: 2px dotted var(--border);
    color: var(--accent);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.play-btn:hover {
    background: var(--accent);
    color: #1a1a2e;
    border-color: var(--accent);
}

.play-btn.playing {
    background: var(--accent);
    color: #1a1a2e;
    border-color: var(--accent);
}

.play-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* Footer */
footer,
.site-footer {
    border-top: 2px dotted var(--border);
    padding: 1.5rem;
    text-align: center;
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

footer a,
.site-footer a {
    color: var(--accent);
    text-decoration: none;
}

footer a:hover,
.site-footer a:hover {
    text-decoration: underline;
}

/* Hero (landing page) */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem 2.5rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.6rem;
    line-height: 1.15;
    color: var(--text);
    max-width: 22ch;
    margin: 0 auto 1rem;
}

.hero h1 .accent {
    color: var(--accent);
}

.hero-lede {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 60ch;
    margin: 0 auto 1.25rem;
    line-height: 1.6;
}

.hero-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.installer-version {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.installer-version a {
    color: var(--accent);
    text-decoration: none;
}

.installer-version a:hover {
    text-decoration: underline;
}

.installer-version code {
    font-family: var(--font-mono);
    color: var(--text);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.2rem;
    border-radius: 2px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px dotted transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
    background: var(--accent);
    color: #1a1a2e;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-dim);
    border-color: var(--accent-dim);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent-dim);
    color: var(--accent);
}

/* Generic content section */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.section + .section {
    border-top: 2px dotted var(--border);
}

.section-header {
    margin-bottom: 1.5rem;
}

/* When the section's body is prose (not a grid), center the header column too */
.section:has(> .section-prose) .section-header {
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 65ch;
}

.section-prose {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

.section-prose p + p {
    margin-top: 0.9rem;
}

.section-prose a {
    color: var(--accent);
    text-decoration: none;
}

.section-prose a:hover {
    text-decoration: underline;
}

/* "At a glance" list — pixel-art bullet markers, generous spacing */
.glance-list {
    list-style: none;
    margin: 0.6rem auto 0;
    padding: 0;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 65ch;
}

.glance-list li {
    position: relative;
    padding: 0.55rem 0 0.55rem 1.6rem;
    border-bottom: 2px dotted var(--border);
}

.glance-list li:last-child {
    border-bottom: none;
}

.glance-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 1px;
}

.glance-list a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-dim);
}

.glance-list a:hover {
    border-bottom-style: solid;
}

.glance-list b {
    font-weight: 600;
}

/* Feature grid (What Schwung adds) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.feature-card {
    background: var(--bg-card);
    border: 2px dotted var(--border);
    border-radius: 3px;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Category grid (Module ecosystem) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.category-card {
    background: var(--bg-card);
    border: 2px dotted var(--border);
    border-radius: 3px;
    padding: 1.25rem;
    text-decoration: none;
    color: var(--text);
    transition: background 0.15s ease, border-color 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.category-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-dim);
}

.category-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0;
}

.category-card .count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.category-card .arrow {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--accent);
}

/* Demos gallery */
.demos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
}

.demos-status {
    grid-column: 1 / -1;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 1rem 0;
}

.demo-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.demo-player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 3px;
    overflow: hidden;
}

.demo-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.demo-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
    line-height: 1.35;
}

/* CTA strip */
.cta-strip {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 2.5rem 1.5rem;
    border-top: 2px dotted var(--border);
    text-align: center;
}

.cta-strip h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.cta-strip .actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Callout (Ableton disclaimer on About) */
.callout {
    border: 2px dotted var(--accent-dim);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-radius: 3px;
    padding: 1rem 1.2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.callout strong {
    color: var(--accent);
}

/* Code block (install page) */
.code-block {
    position: relative;
    background: var(--bg-card);
    border: 2px dotted var(--border);
    border-radius: 2px;
    padding: 1rem 3rem 1rem 1rem;
    overflow-x: auto;
    margin: 0.6rem 0;
}

.code-block pre {
    margin: 0;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
}

.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--bg);
    border: 2px dotted var(--border);
    color: var(--text-muted);
    border-radius: 2px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.copy-btn:hover {
    color: var(--accent);
    border-color: var(--accent-dim);
}

.copy-btn.copied {
    color: var(--accent);
}

/* Install page: platform download row */
.platform-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0.5rem 0 0.4rem;
}

.platform-buttons .btn.detected {
    box-shadow: 0 0 0 2px var(--accent);
    position: relative;
}

.platform-buttons .btn.detected::after {
    content: 'detected';
    position: absolute;
    top: -0.7rem;
    right: 0.5rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    background: var(--bg);
    padding: 0 0.3rem;
    font-weight: 700;
}

/* Generic content list */
.bullet-list {
    list-style: disc;
    padding-left: 1.4rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.bullet-list li + li {
    margin-top: 0.25rem;
}

.bullet-list strong {
    color: var(--text);
}

.bullet-list a {
    color: var(--accent);
    text-decoration: none;
}

.bullet-list a:hover {
    text-decoration: underline;
}

/* FAQ items (native <details>/<summary>) */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.faq-item {
    background: var(--bg-card);
    border: 2px dotted var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.faq-item > summary {
    list-style: none;
    cursor: pointer;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: color 0.15s ease;
}

.faq-item > summary::-webkit-details-marker {
    display: none;
}

.faq-item > summary::after {
    content: '+';
    color: var(--accent-dim);
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1;
}

.faq-item[open] > summary::after {
    content: '−';
}

.faq-item > summary:hover {
    color: var(--accent);
}

.faq-body {
    padding: 0 1rem 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 70ch;
}

.faq-body p + p {
    margin-top: 0.6rem;
}

/* Custom-counter list rendering so markers always sit inside the card
   regardless of browser (Safari renders default outside-position markers
   into the parent's overflow). */
.faq-body ol,
.faq-body ul {
    list-style: none;
    margin: 0.5rem 0;
    padding-left: 2rem;
}

.faq-body ol {
    counter-reset: faqstep;
}

.faq-body ol li,
.faq-body ul li {
    position: relative;
}

.faq-body ol li + li,
.faq-body ul li + li {
    margin-top: 0.25rem;
}

.faq-body ol li {
    counter-increment: faqstep;
}

.faq-body ol li::before {
    content: counter(faqstep) ".";
    position: absolute;
    left: -1.5rem;
    color: var(--accent-dim);
    font-weight: 600;
    width: 1.25rem;
    text-align: right;
}

.faq-body ul li::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0.65em;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 1px;
}

.faq-body a {
    color: var(--accent);
    text-decoration: none;
}

.faq-body a:hover {
    text-decoration: underline;
}

.faq-body pre {
    background: var(--bg);
    border: 2px dotted var(--border);
    border-radius: 2px;
    padding: 0.6rem 0.8rem;
    margin: 0.5rem 0;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text);
}

.faq-body code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--text);
}

/* Manual page layout */
.manual-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.manual-toc {
    position: sticky;
    top: 1.25rem;
    max-height: calc(100vh - 2.5rem);
    overflow-y: auto;
    padding-right: 0.5rem;
    border-right: 2px dotted var(--border);
}

.manual-toc h2 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.manual-toc ol {
    list-style: none;
    counter-reset: tocstep;
    padding: 0;
    margin: 0;
}

.manual-toc li {
    counter-increment: tocstep;
    margin: 0;
}

.manual-toc a {
    display: block;
    padding: 0.3rem 0 0.3rem 1.6rem;
    position: relative;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1.35;
    border-bottom: 1px dotted transparent;
}

.manual-toc a::before {
    content: counter(tocstep, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.3rem;
    color: var(--accent-dim);
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.manual-toc a:hover {
    color: var(--accent);
    text-decoration: none;
}

.manual-content {
    min-width: 0;
    max-width: 70ch;
}

.manual-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.01em;
    margin: 0 0 0.5rem;
    padding-top: 0.5rem;
    scroll-margin-top: 1.5rem;
}

.manual-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.5rem 0 0.5rem;
    scroll-margin-top: 1.5rem;
}

.manual-section + .manual-section {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 2px dotted var(--border);
}

.manual-content p,
.manual-content ul,
.manual-content ol {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.manual-content p + p,
.manual-content p + ul,
.manual-content p + ol,
.manual-content ul + p,
.manual-content ol + p {
    margin-top: 0.7rem;
}

.manual-content ul,
.manual-content ol {
    padding-left: 1.4rem;
    margin: 0.6rem 0;
}

.manual-content li + li {
    margin-top: 0.3rem;
}

.manual-content ul li::marker {
    color: var(--accent-dim);
}

.manual-content ol li::marker {
    color: var(--accent-dim);
    font-family: var(--font-mono);
    font-size: 0.85em;
}

.manual-content strong {
    color: var(--text);
    font-weight: 600;
}

.manual-content code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--text);
    background: var(--bg-card);
    padding: 0.05rem 0.3rem;
    border-radius: 2px;
}

.manual-content pre {
    background: var(--bg-card);
    border: 2px dotted var(--border);
    border-radius: 2px;
    padding: 0.8rem 1rem;
    margin: 0.8rem 0;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text);
}

.manual-content pre code {
    background: transparent;
    padding: 0;
    font-size: 1em;
}

.manual-content a {
    color: var(--accent);
    border-bottom: 1px dotted var(--accent-dim);
    text-decoration: none;
}

.manual-content a:hover {
    border-bottom-style: solid;
}

/* Shortcut / parameter tables */
.shortcut-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.8rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.shortcut-table caption {
    text-align: left;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.shortcut-table th,
.shortcut-table td {
    text-align: left;
    padding: 0.55rem 0.7rem;
    border-bottom: 2px dotted var(--border);
    vertical-align: top;
}

.shortcut-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-dim);
    font-weight: 600;
    border-bottom-color: var(--accent-dim);
}

.shortcut-table tr:last-child td {
    border-bottom: none;
}

.shortcut-table td:first-child {
    color: var(--text);
    font-weight: 500;
    white-space: nowrap;
}

.shortcut-table kbd {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: 2px;
    padding: 0.1rem 0.35rem;
    color: var(--text);
    line-height: 1.3;
}

/* Notes / limitations callouts */
.note {
    border: 2px dotted var(--accent-dim);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
    padding: 0.8rem 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.note strong {
    color: var(--accent);
}

.note.warning {
    border-color: #b89c5c;
}

.note.warning strong {
    color: #d6b878;
}

/* Inline collapsible deep-dives reuse .faq-item but tighter */
.manual-content .faq-list {
    margin: 1rem 0;
}

.manual-content .faq-item > summary {
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
}

.manual-content .faq-body {
    padding: 0 0.9rem 0.9rem;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .manual-shell {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .manual-toc {
        position: static;
        max-height: none;
        border-right: none;
        border-bottom: 2px dotted var(--border);
        padding: 0 0 1rem;
    }
}

/* Responsive overrides for new sections */
@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .hero {
        padding: 2.5rem 1rem 1.5rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .feature-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }
    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .section {
        padding: 2rem 1rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .module-grid {
        grid-template-columns: 1fr 1fr;
    }
    .controls {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 500px) {
    .module-grid {
        grid-template-columns: 1fr;
    }
    header {
        padding: 1.5rem 1rem 1rem;
    }
    main {
        padding: 1rem;
    }
}
