/* ===== CSS Variables ===== */
:root {
    --primary-color: #0078d4;
    --primary-hover: #106ebe;
    --secondary-color: #6b7280;
    --background-color: #ffffff;
    --surface-color: #f9fafb;
    --surface-hover: #f3f4f6;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --radius-lg: 12px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.25rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* ===== Hero Section ===== */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}

.hero-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--surface-color);
    border-color: var(--secondary-color);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* ===== Section Styles ===== */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
}

/* ===== Features Section ===== */
.features {
    background: var(--background-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===== Screenshots Section ===== */
.screenshots {
    background: var(--surface-color);
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.screenshot-placeholder {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 500;
    border: 2px dashed var(--border-color);
}

.screenshot-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    background: var(--background-color);
    cursor: pointer;
}

.screenshot-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    padding: 24px;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    animation: lightbox-in 0.2s ease;
}

@keyframes lightbox-in {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

.screenshot-caption {
    padding: 12px 16px;
    text-align: center;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
}

/* ===== Download Section ===== */
.download {
    background: var(--background-color);
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto 48px;
}

.download-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.2s;
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.download-card-store {
    border-color: var(--primary-color);
    border-width: 2px;
}

.download-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.download-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.download-card > p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.store-btn {
    display: inline-flex;
    align-items: center;
}

.store-coming-soon {
    color: var(--primary-color);
    font-weight: 500;
}

.requirements-section {
    max-width: 500px;
    margin: 0 auto 32px;
    text-align: center;
}

.requirements-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.requirements {
    list-style: none;
    text-align: left;
    display: inline-block;
}

.requirements li {
    padding: 6px 0;
    color: var(--text-secondary);
}

.version-note {
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.version-note a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.sideload-instructions {
    max-width: 600px;
    margin: 0 auto;
    background: var(--surface-color);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.sideload-instructions summary {
    padding: 16px 24px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
}

.sideload-instructions summary:hover {
    background: var(--surface-hover);
}

.sideload-instructions ol {
    padding: 0 24px 24px 48px;
    color: var(--text-secondary);
}

.sideload-instructions li {
    padding: 8px 0;
}

/* ===== Footer ===== */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo-text {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-brand p {
    margin-top: 12px;
    color: #9ca3af;
    font-size: 0.95rem;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.coming-soon-tag {
    background: #374151;
    color: #9ca3af;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 4px;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.875rem;
}

.disclaimer {
    margin-top: 8px;
    font-size: 0.75rem !important;
    color: #6b7280 !important;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .download-options {
        grid-template-columns: 1fr;
    }

    .download-card {
        padding: 32px 24px;
    }

    .sideload-instructions ol {
        padding-left: 32px;
    }

    .doc-grid-2,
    .doc-grid-3 {
        grid-template-columns: 1fr;
    }

    .doc-diagram pre {
        font-size: 0.6rem;
    }

    .doc-table-wrapper {
        margin-left: -24px;
        margin-right: -24px;
        padding: 0 24px;
    }
}

/* ===== Documentation Pages ===== */

/* Smaller hero for subpages */
.hero-sm {
    padding: 120px 0 60px;
}

/* Active nav link */
.nav-active {
    color: var(--primary-color) !important;
}

/* Doc layout */
.doc-section {
    padding: 60px 0;
}

.doc-section-alt {
    background: var(--surface-color);
}

.doc-container {
    max-width: 900px;
    margin: 0 auto;
}

.doc-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.doc-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.doc-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.doc-section p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

/* TOC */
.doc-toc-section {
    padding: 40px 0;
    background: var(--surface-color);
}

.doc-toc {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
}

.doc-toc h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.doc-toc ol {
    list-style: decimal;
    padding-left: 20px;
    columns: 2;
    column-gap: 32px;
}

.doc-toc li {
    padding: 4px 0;
}

.doc-toc a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
}

.doc-toc a:hover {
    text-decoration: underline;
}

/* Code blocks */
.doc-code {
    margin: 16px 0 24px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.doc-code-header {
    background: #1e293b;
    color: #94a3b8;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Copy-to-clipboard button injected by js/copy-code.js */
.doc-code-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-right: 8px;
}

.doc-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #cbd5e1;
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    font-family: inherit;
}

.doc-copy-btn:hover {
    background: #334155;
    color: #f1f5f9;
    border-color: #475569;
}

.doc-copy-btn:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

.doc-copy-btn-ok,
.doc-copy-btn-ok:hover {
    background: #14532d;
    color: #bbf7d0;
    border-color: #166534;
}

.doc-copy-icon {
    flex-shrink: 0;
}

.doc-code pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 16px 20px;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

.doc-code code {
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
}

.doc-code-scroll pre {
    max-height: 500px;
    overflow-y: auto;
}

/* Inline code */
.doc-table code,
.doc-section p code,
.doc-section li code {
    background: #f1f5f9;
    color: #0f172a;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
}

/* Architecture diagram */
.doc-diagram {
    margin: 24px 0;
    overflow-x: auto;
}

.doc-diagram pre {
    background: #0f172a;
    color: #94a3b8;
    padding: 24px;
    border-radius: var(--radius-lg);
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    white-space: pre;
    overflow-x: auto;
}

/* Callouts */
.doc-callout {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin: 20px 0;
    border-left: 4px solid;
}

.doc-callout-info {
    background: #eff6ff;
    border-color: var(--primary-color);
    color: #1e40af;
}

.doc-callout-warn {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

.doc-callout strong {
    display: block;
    margin-bottom: 4px;
}

/* Tables */
.doc-table-wrapper {
    overflow-x: auto;
    margin: 16px 0 24px;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.doc-table thead {
    background: #f1f5f9;
}

.doc-table th {
    text-align: left;
    padding: 10px 16px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.doc-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    vertical-align: top;
}

.doc-table tr:hover {
    background: var(--surface-hover);
}

/* Lists */
.doc-list {
    padding-left: 20px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.doc-list li {
    padding: 4px 0;
    line-height: 1.6;
}

.doc-list-numbered {
    list-style: decimal;
}

/* Grid layouts */
.doc-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.doc-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0;
}

/* Cards */
.doc-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
}

.doc-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.doc-card-sm {
    padding: 16px 20px;
}

.doc-card-sm h4 {
    margin-bottom: 6px;
    font-size: 1rem;
}

.doc-card-sm p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ── Tabs ─────────────────────────────────────────── */
.doc-tabs {
    margin: 20px 0;
}

.doc-tab-buttons {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 0;
}

.doc-tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.doc-tab-btn:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
}

.doc-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.doc-tab-btn.disabled {
    opacity: 0.5;
    cursor: default;
}

.doc-tab-btn .tab-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--border-color);
    color: var(--text-secondary);
    margin-left: 8px;
    vertical-align: middle;
}

.doc-tab-panel {
    display: none;
    padding-top: 24px;
}

.doc-tab-panel.active {
    display: block;
}

/* ── Enterprise hub step cards ────────────────────── */
.enterprise-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.step-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: block;
}

.step-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 120, 212, 0.12);
    transform: translateY(-2px);
}

.step-card .step-number {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.step-card h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
    color: var(--text-primary);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ── Breadcrumb ───────────────────────────────────── */
.breadcrumb {
    padding: 12px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .sep {
    margin: 0 8px;
    opacity: 0.5;
}

/* ── Page navigation (prev/next) ──────────────────── */
.page-nav {
    display: flex;
    justify-content: space-between;
    margin: 48px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.page-nav a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    max-width: 45%;
}

.page-nav a:hover {
    border-color: var(--primary-color);
    background: var(--surface-hover);
}

.page-nav .nav-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.page-nav .nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.page-nav .next {
    text-align: right;
    margin-left: auto;
}

/* ── Screenshot placeholder ───────────────────────── */
.screenshot-placeholder {
    background: var(--surface-color);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    color: var(--text-secondary);
    margin: 20px 0;
    font-size: 0.9rem;
}

.screenshot-placeholder .ph-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

/* ── Tab button wrapping on mobile ────────────────── */
.doc-tab-buttons {
    flex-wrap: wrap;
}

/* ===== What's New (home page) ===== */
.whats-new {
    padding: 64px 0 56px;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
}

.whats-new-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.whats-new-head h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.whats-new-head a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.whats-new-head a:hover {
    text-decoration: underline;
}

.whats-new-sub {
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 760px;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
}

.spotlight-card {
    display: flex;
    flex-direction: column;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.spotlight-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.spotlight-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--surface-hover);
    color: var(--text-secondary);
}

.tag-new {
    background: #e0f2fe;
    color: #0369a1;
}

.tag-preview {
    background: #fef3c7;
    color: #92400e;
}

.tag-version {
    background: #ede9fe;
    color: #5b21b6;
}

.spotlight-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.spotlight-card > p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 18px;
}

.spotlight-points {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.spotlight-points li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.spotlight-points li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.spotlight-cta {
    margin-top: auto;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.92rem;
}

/* Compact release strip */
.release-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.release-item {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-color);
    border-radius: var(--radius);
    padding: 16px 18px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.release-item:hover {
    background: var(--surface-hover);
}

.release-item .rel-ver {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.release-item .rel-desc {
    display: block;
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ===== Two-column doc layout with left sidebar ===== */
.doc-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.doc-sidebar {
    position: sticky;
    top: 96px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 20px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.doc-sidebar h4 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin: 20px 0 8px;
}

.doc-sidebar h4:first-child {
    margin-top: 0;
}

.doc-sidebar ul {
    list-style: none;
    margin: 0 0 4px;
    padding: 0;
}

.doc-sidebar li {
    margin: 0;
}

.doc-sidebar a {
    display: block;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 0.88rem;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.4;
    transition: background 0.15s, color 0.15s;
}

.doc-sidebar a:hover {
    background: var(--surface-hover);
    color: var(--primary-color);
}

.doc-sidebar a.current {
    background: #e8f2fc;
    color: var(--primary-color);
    font-weight: 600;
}

.doc-sidebar .sub {
    padding-left: 8px;
    border-left: 1px solid var(--border-color);
    margin-left: 10px;
}

.doc-sidebar .sub a {
    font-size: 0.83rem;
    color: var(--text-secondary);
    padding: 5px 10px;
}

.doc-main > section:first-child {
    padding-top: 0;
}

.doc-main .doc-container {
    max-width: 100%;
    padding: 0;
}

.doc-main .doc-section {
    padding: 32px 0;
    border-bottom: 1px solid var(--border-color);
}

.doc-main .doc-section:last-child {
    border-bottom: none;
}

.doc-main .doc-section-alt {
    background: transparent;
}

/* ===== Plain-language cards ===== */
.plain-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.plain-card .pc-icon {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 10px;
}

.plain-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px !important;
    color: var(--text-primary);
}

.plain-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 0 !important;
}

.plain-card a.pc-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.plain-card a.pc-link:hover {
    text-decoration: underline;
}

/* Verdict legend */
.verdict-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.verdict {
    border-radius: var(--radius);
    padding: 18px;
    border: 1px solid var(--border-color);
}

.verdict .v-title {
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.verdict p {
    margin: 0 !important;
    font-size: 0.88rem;
}

.verdict-green {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.verdict-yellow {
    background: #fffbeb;
    border-color: #fde68a;
}

.verdict-red {
    background: #fef2f2;
    border-color: #fecaca;
}

/* ===== Download card (ADMX etc.) ===== */
.dl-card {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 20px 0;
}

.dl-card .dl-icon {
    font-size: 2.2rem;
}

.dl-card .dl-body {
    flex: 1 1 260px;
}

.dl-card .dl-body strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.dl-card .dl-body span {
    font-size: 0.87rem;
    color: var(--text-secondary);
}

/* ===== Responsive additions ===== */
@media (max-width: 980px) {
    .doc-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .doc-sidebar {
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .spotlight-grid {
        grid-template-columns: 1fr;
    }

    .whats-new-head h2 {
        font-size: 1.6rem;
    }
}
