:root {
    --ink: #e6eff5;
    --muted: #b2c2d0;
    --primary: #58b0ce;
    --primary-dark: #2b8fb0;
    --accent: #ffd166;
    --container-max: 1380px;
    --surface: #0f1724;
    --surface-muted: #131d2c;
    --surface-strong: #162235;
    --cta-surface: #1b2940;
    --border: #2d4056;
    --border-muted: #2f4259;
    --page-bg: radial-gradient(65% 50% at 20% 20%, rgba(33, 53, 80, 0.6), transparent 70%),
        radial-gradient(70% 60% at 75% 0%, rgba(52, 77, 110, 0.65), transparent 70%),
        radial-gradient(60% 60% at 30% 80%, rgba(26, 41, 64, 0.6), transparent 70%),
        #0b1220;
    --shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
    --card-shadow: 0 8px 0 rgba(0, 0, 0, 0.28);
    --shadow-contrast: 0 6px 0 rgba(0, 0, 0, 0.32);
    --inner-highlight: inset 0 0 0 2px rgba(136, 171, 207, 0.4);
    --radius-lg: 18px;
    --radius: 12px;
    --yt-red: #ff0033;
    --fb-blue: #0866ff;
    --gh-dark: #24292f;
    --manufacturer-scroll-height: 300px;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--page-bg);
    color: var(--ink);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 0;
}

section {
    padding: 28px 0 32px;
}

section + section {
    margin-top: 16px;
}

img {
    max-width: 100%;
    display: block;
}

html {
    scroll-behavior: smooth;
}

.link,
a:not(.btn) {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    text-decoration-color: rgba(88, 176, 206, 0.6);
    transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

a:not(.btn):hover,
.link:hover {
    color: var(--primary);
    text-decoration-color: currentColor;
}

a:not(.btn):focus-visible,
.link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.surface {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 28px;
}

.section-title {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.section-description {
    color: var(--muted);
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    text-align: center;
}



.site-header {
    padding: 14px 0 8px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 36px;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    box-shadow: var(--shadow-contrast);
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.nav-toggle-bar {
    width: 20px;
    height: 2px;
    background: var(--ink);
    display: block;
}

.site-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 0;
    margin: 0;
}

.site-nav a {
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

@media (max-width: 768px) {
    .site-header {
        padding: 10px 0;
    }

    .site-nav {
        justify-content: space-between;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav ul {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
        margin-top: 8px;
    }

    .site-nav.is-open ul {
        display: flex;
    }
}

.hero-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hero */
.hero {
    padding: 40px 0 64px;
    position: relative;
}

.hero-frame {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 26px;
    box-shadow: var(--shadow);
    padding: 32px;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
    text-align: center;
}

.hero-subtitle {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-description {
    color: var(--muted);
    margin-bottom: 1.2rem;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.25rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    background: var(--surface);
    color: var(--ink);
    border: 2px solid var(--accent);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
    box-shadow: var(--shadow-contrast);
}

.pill-soon {
    background: var(--surface);
    border-style: dashed;
    color: var(--primary-dark);
}

.hero-cta {
    background: var(--cta-surface);
    border: 2px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    box-shadow: var(--shadow);
    margin-top: 10px;
}

.cta-label {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    text-decoration: none;
    border-radius: 16px;
    padding: 12px 16px;
    font-weight: 800;
    border: 2px solid var(--border);
    box-shadow: 0 8px 0 rgba(13, 42, 58, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn .brand-icon,
.inline-icon {
    height: 22px;
    width: 22px;
    object-fit: contain;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.1));
}

.inline-fa {
    margin-right: 4px;
    vertical-align: middle;
}

.btn .fa-brands,
.btn .fa-solid {
    font-size: 1.2rem;
    margin-right: 6px;
    vertical-align: middle;
}

/* YouTube brand icon: show in YouTube red (not inside brand-background buttons) */
.btn .fa-youtube,
.inline-fa.fa-youtube { color: var(--yt-red); }

/* GitHub brand icon: use current text color */
.btn .fa-github { color: currentColor; }

/* Brand-background badge for FA icons inside buttons — matches sidebar icon style at button size */
.btn-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 6px;
    margin-right: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}

.btn-icon-badge .fa-brands,
.btn-icon-badge .fa-solid {
    font-size: 1rem;
    color: white;
    margin-right: 0;
}

.btn-icon-badge.social-email { background: #ffffff; }
.btn-icon-badge.social-email .fa-solid { color: #1a1a1a; }
.btn-icon-badge.social-github { background: var(--gh-dark); }
.btn-icon-badge.social-youtube { background: var(--yt-red); }
.btn-icon-badge.social-facebook { background: var(--fb-blue); }

.icon-accent {
    filter: brightness(0) saturate(100%) invert(86%) sepia(38%) saturate(710%) hue-rotate(355deg) brightness(104%) contrast(101%);
}

.brand-icon.github {
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.1));
}

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

.btn-secondary {
    background: var(--accent);
    color: var(--ink);
}

.btn-cta {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--surface-strong);
}

.btn-link {
    color: var(--primary-dark);
    border-color: var(--primary-dark);
    background: var(--surface-strong);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 0 rgba(13, 42, 58, 0.2);
}

.hero-logo-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 10px 0 26px;
    margin-bottom: 14px;
}

.hero-logo-banner .hero-title {
    font-size: 2.4rem;
    margin: 0;
    text-align: center;
}

.hero-logo-large {
    height: 210px;
    width: auto;
    filter: drop-shadow(0 8px 0 rgba(13, 42, 58, 0.2));
}

.hero-logo-tagline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding: 10px 16px;
    border-radius: 18px;
    border: 2px solid var(--border);
    background: radial-gradient(circle at 20% 20%, var(--surface-strong) 0%, var(--surface) 40%, var(--surface-strong) 100%);
    box-shadow: 0 10px 0 rgba(13, 42, 58, 0.15);
}

.hero-tagline-emphasis {
    color: var(--primary-dark);
    letter-spacing: 7px;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.hero-image-frame {
    background: var(--surface-strong);
    border: 2px solid var(--border);
    border-radius: 22px;
    padding: 18px;
    box-shadow: var(--inner-highlight);
}

.hero-image {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 700 / 749;
}

/* Cards and grids */
.features-grid,
.products-grid,
.machines-grid,
.services-grid,
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}

.features-section .features-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}


.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.feature-header h3 {
    font-size: 1.2rem;
}

.about-media {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.video-frame {
    position: relative;
    width: 100%;
    max-width: 920px;
    aspect-ratio: 16 / 9;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--surface-strong);
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.about .features-grid {
    margin-top: 18px;
}

.feature-card,
.product-card,
.machine-card,
.service-item,
.resource-card {
    background: var(--surface-muted);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--card-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.resource-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feature-card:hover,
.product-card:hover,
.machine-card:hover,
.service-item:hover,
.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 0 rgba(13, 42, 58, 0.14);
}

.feature-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    align-items: center;
}

.feature-icon {
    height: 72px;
    width: 72px;
    display: inline-grid;
    place-items: center;
    background: transparent;
    border: none;
    border-radius: 12px;
    box-shadow: none;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.feature-body {
    display: contents;
}

.feature-body h3 {
    grid-column: 2;
    align-self: center;
}

.feature-body p {
    grid-column: 1 / span 2;
}

.feature-body h3,
.machine-info h3,
.service-item h3,
.resource-card h3 {
    margin-bottom: 4px;
}

.product-card.highlight {
    background: linear-gradient(135deg, rgba(255, 226, 93, 0.16), var(--surface-muted));
}

.product-media {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.product-illustration {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 700 / 749;
}

.product-illustration-alt {
    aspect-ratio: 700 / 722;
}

.pill-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
    padding: 0;
}

.pill-list .pill {
    box-shadow: none;
}

.machine-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.machine-icon {
    height: 48px;
    width: 48px;
    display: inline-grid;
    place-items: center;
    background: var(--surface-strong);
    border: 2px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-contrast);
    font-size: 1.2rem;
}

.resource-card p {
    margin-bottom: 0.5rem;
}

.resource-card .btn {
    margin-top: auto;
    align-self: center;
}

.service-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.audience-header {
    max-width: 760px;
    margin: 0 auto 10px;
    text-align: center;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 20px;
    align-items: stretch;
}

.audience-card {
    display: grid;
    grid-template-rows: auto auto 1fr;
    justify-items: center;
    gap: 14px;
    padding: 18px;
    border: 2px solid rgba(12, 111, 139, 0.3);
    border-radius: calc(var(--radius) * 1.05);
    background: linear-gradient(170deg, rgba(12, 111, 139, 0.08), var(--surface-muted) 55%, var(--surface-strong));
    box-shadow: var(--shadow), 0 12px 30px rgba(13, 42, 58, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    text-align: center;
}

.audience-icon {
    height: 105px;
    width: 105px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 24px;
    font-size: 2.1rem;
    color: var(--primary-dark);
    box-shadow: none;
    margin: 0 auto 2px;
}

.audience-title {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 1.2rem;
    text-align: center;
}

.audience-list {
    width: 100%;
    list-style: disc;
    padding: 0 0 0 20px;
    margin: 0;
    display: grid;
    gap: 10px;
    color: var(--muted);
    text-align: left;
}

.audience-list strong {
    color: var(--primary-dark);
    font-weight: 900;
}

@supports (grid-template-columns: subgrid) {
    .audience-card {
        grid-template-columns: subgrid;
    }

    .audience-card > * {
        grid-column: 1 / -1;
    }

    .audience-list {
        grid-template-columns: subgrid;
    }
}


.ownership-header {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.ownership-title {
    font-size: 2.3rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.ownership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.ownership-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    padding: 14px;
    border: 2px dashed var(--border-muted);
    border-radius: var(--radius);
    background: var(--surface-muted);
}

.ownership-card h3 {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.ownership-highlight {
    color: var(--primary-dark);
    font-weight: 800;
    letter-spacing: 1px;
}

.ownership-icon {
    height: 44px;
    width: 44px;
    display: grid;
    place-items: center;
    background: var(--surface-strong);
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1.2rem;
    box-shadow: var(--shadow-contrast);
}

/* Trinkets section */
.trinkets-header {
    max-width: 760px;
    margin: 0 auto 14px;
    text-align: center;
}

.trinkets-content {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.trinkets-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--muted);
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.08), var(--surface-muted));
    border: 2px solid rgba(255, 209, 102, 0.3);
    border-radius: var(--radius);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Buy card */
.buy-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
    text-align: center;
}

.buy-list {
    list-style: disc;
    margin-left: 18px;
    color: var(--muted);
}

.buy-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

/* Contact */
.contact-item {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 2px dashed var(--border-muted);
    border-radius: var(--radius);
    background: var(--surface-muted);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 12px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    box-shadow: 0 10px 0 rgba(13, 42, 58, 0.25);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-link {
    color: var(--primary-dark);
    font-weight: 700;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px 40px;
    color: var(--muted);
}

.footer .section-title {
    margin-bottom: 1rem;
}

.footer .contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.footer-nav a {
    font-weight: 600;
}

/* Legal and other housekeeping links: present, but not competing with the rest */
.footer-nav a.footer-nav-muted {
    font-weight: 400;
    opacity: 0.7;
}

/* FAQ */
.faq-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}

.faq-item {
    padding: 16px 18px;
    background: var(--surface-muted);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.faq-question {
    margin-bottom: 8px;
}

.faq-answer {
    color: var(--muted);
    margin: 0;
    padding-left: 14px;
    border-left: 3px solid var(--border-muted);
}

/* Compatible titles */
.support-list .support-list-header {
    text-align: center;
    margin-bottom: 18px;
}


.support-search {
    margin: 10px auto 18px;
    max-width: 760px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.advanced-search-link {
    white-space: nowrap;
    font-size: 0.85rem;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), var(--surface));
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 12px 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), var(--shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    width: 100%;
}

.search-input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(12, 111, 139, 0.15), var(--shadow-contrast);
    background: linear-gradient(135deg, rgba(88, 176, 206, 0.14), var(--surface-strong));
}

.search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--ink);
}

.search-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.search-input-wrap input {
    flex: 1;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-size: 1rem;
    outline: none;
    font-weight: 700;
    padding: 10px 4px;
    box-shadow: none;
    transition: color 0.18s ease;
}

.search-input-wrap input:focus {
    box-shadow: inset 0 1px 0 rgba(13, 42, 58, 0.12);
}

.search-input-wrap input::placeholder {
    color: var(--muted);
}

.support-carousel {
    margin: 12px 0 24px;
}

.carousel-window {
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(135deg, var(--surface), var(--surface-muted));
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.title-carousel {
    --carousel-item-height: 44px;
    --carousel-item-gap: 10px;
    display: flex;
    min-width: 100%;
    width: max-content;
    max-width: 100%;
}

.carousel-group {
    display: inline-flex;
    align-items: center;
    gap: var(--carousel-item-gap);
    padding: 14px 18px;
    padding-right: var(--carousel-item-gap);
    min-width: 100%;
    width: max-content;
    animation: carousel-scroll var(--carousel-duration, 24s) linear infinite;
    will-change: transform;
    white-space: nowrap;
    flex-shrink: 0;
}

.title-carousel--secondary .carousel-group {
    padding-top: 0;
}

.carousel-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--surface-strong), var(--surface));
    border: 1px solid var(--border-muted);
    box-shadow: var(--shadow-contrast);
    color: var(--ink);
    font-weight: 800;
    font-size: 1.05rem;
    white-space: nowrap;
    min-height: var(--carousel-item-height);
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.16s ease;
}

.carousel-window:hover .carousel-group,
.carousel-window:focus-within .carousel-group {
    animation-play-state: paused;
}

.carousel-item:hover {
    transform: translateY(-1px);
    background: var(--surface-strong);
}

.carousel-item:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@keyframes carousel-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .carousel-group {
        animation: none;
    }
}

.support-results {
    display: grid;
    gap: 18px;
}

.support-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    background: var(--surface-muted);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.support-card.support-empty,
.support-card.support-error {
    background: var(--surface);
    border-style: dashed;
    color: var(--muted);
}

.support-card.support-error h3 {
    color: var(--primary);
}

.support-card h3 {
    margin: 0;
    font-size: 1.1rem;
}

.support-meta {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px 16px;
}

.support-meta-item {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.support-meta-item dt {
    font-weight: 800;
    color: var(--ink);
}

.support-meta-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.support-meta-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.15));
}

.support-meta-item dd {
    margin: 0;
    font-weight: 600;
    color: var(--muted);
    word-break: break-word;
}

.support-meta-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.support-meta-item dd a {
    word-break: normal;
}

.support-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--surface-strong), var(--surface-muted));
    border: 1px solid var(--border-muted);
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: var(--shadow-contrast);
}

.badge.video {
    color: var(--primary);
    border-color: var(--primary);
}

.badge.midnight {
    color: #9b51e0;
    border-color: #9b51e0;
}

.support-card.placeholder {
    animation: pulse 1.2s ease-in-out infinite;
    min-height: 120px;
}

.support-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-muted);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.support-table th,
.support-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.support-table th {
    background: var(--surface);
    font-weight: 800;
    color: var(--ink);
}

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

.support-table td {
    color: var(--muted);
    font-weight: 600;
}

.support-card a.support-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.support-card a.support-link--mpu {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 2px solid var(--accent);
    background: var(--surface-strong);
    color: var(--accent);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
}

.support-card a.support-link--mpu:hover,
.support-card a.support-link--mpu:focus-visible {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 0 rgba(13, 42, 58, 0.2);
}

.support-card a.support-link:hover,
.support-card a.support-link:focus-visible {
    text-decoration: underline;
}

.support-link--video {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.support-link-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
}

.skeleton {
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(180, 216, 231, 0.4), rgba(180, 216, 231, 0.7), rgba(180, 216, 231, 0.4));
    background-size: 200% 100%;
    animation: shimmer 1.3s infinite;
}

.skeleton.title {
    height: 22px;
    width: 80%;
}

.skeleton.meta {
    height: 16px;
    width: 60%;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.65; }
    100% { opacity: 1; }
}

/* Live scores iframe - full width on mobile */
@media (max-width: 1024px) {
    .live-scores-container {
        max-width: none;
        padding: 0;
    }
}

/* Format sections */
.format-container {
    display: flex;
    align-items: stretch;
    gap: 2rem;
}

.format-image {
    flex: 0 0 auto;
    width: 280px;
    height: auto;
    object-fit: contain;
    align-self: stretch;
}

.format-content {
    flex: 1;
    min-width: 300px;
}

.format-content-first {
    order: 1;
}

.format-image-second {
    order: 2;
}

/* Responsive */
@media (max-width: 900px) {
    .audience-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .features-section .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .features-section .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    section {
        padding: 22px 0 40px;
    }

    .video-frame {
        max-width: none;
    }

    .contact-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-frame {
        padding: 26px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .audience-grid {
        grid-template-columns: 1fr;
    }

    .surface .features-grid,
    .surface .products-grid,
    .surface .machines-grid,
    .surface .services-grid,
    .surface .resources-grid,
    .surface .audience-grid {
        margin-bottom: 16px;
    }

    .support-meta-item--features {
        grid-column: 1 / -1;
    }

    .support-search {
        flex-wrap: wrap;
    }

    .advanced-search-link {
        width: 100%;
        text-align: center;
    }

    /* Format sections on mobile - image always on top */
    .format-container {
        flex-direction: column;
    }

    .format-image {
        order: -1;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .format-content {
        order: 1;
        min-width: 100%;
    }

    .format-content-first {
        order: 1;
    }

    .format-image-second {
        order: -1;
    }
}

@media (max-width: 480px) {
    
    section {
        padding: 24px 0 46px;
    }

    section + section {
        margin-top: 18px;
    }

    .audience-card {
        padding: 14px;
        gap: 10px;
        text-align: left;
    }

    .audience-title {
        flex-direction: row;
        justify-content: flex-start;
        gap: 8px;
        font-size: 1.05rem;
        text-align: left;
    }

    .audience-icon {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
        margin: 0;
    }

    .audience-list {
        gap: 8px;
        padding-left: 18px;
    }

    .theme-toggle {
        padding: 8px 10px;
    }

    .hero-logo-tagline {
        flex-wrap: wrap;
        letter-spacing: 2px;
        max-width: 100%;
        text-align: center;
    }

    .hero-tagline-emphasis {
        letter-spacing: 4px;
    }

    .title-carousel {
        min-width: 0;
        width: 100%;
    }
}

/* Trinket images styling */
.trinket-image {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    border-radius: 8px;
}

/* Trinkets grid layout - keeps all trinkets in a single horizontal row */
.trinkets-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    max-width: 100%;
    justify-items: center;
}

/* Partner link styling */
.partner-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    transition: text-decoration 0.2s ease;
}

.partner-link:hover {
    text-decoration: underline;
}

/* Compatibility Search Page Styles */
.compatibility-filters {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--surface-strong);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 250px;
}

.filter-group--full {
    flex: 1 1 100%;
}

.filter-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
}

.filter-select {
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--ink);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-select:hover {
    border-color: var(--primary);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(88, 176, 206, 0.2);
}

.feature-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.feature-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.feature-checkbox-label:hover {
    border-color: var(--primary);
    background: var(--surface-muted);
}

.feature-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
}

.feature-checkbox-label span {
    font-size: 0.9rem;
    color: var(--ink);
}

.coming-soon-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.15rem 0.5rem;
    background: var(--accent);
    color: var(--surface);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.results-summary {
    padding: 0.75rem 1rem;
    background: var(--surface-muted);
    border-radius: var(--radius);
    border: 2px solid var(--border-muted);
    font-weight: 600;
    color: var(--muted);
    text-align: center;
    margin-bottom: 1.5rem;
}

.compatibility-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: var(--surface);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    transition: background 0.2s ease;
}

.feature-badge:hover {
    background: var(--primary-dark);
}

.feature-badge--coming-soon {
    background: var(--accent);
    color: var(--surface);
}

.feature-badge--coming-soon:hover {
    background: #e6b84d;
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .compatibility-results {
        grid-template-columns: 1fr;
    }
    
    .feature-checkboxes {
        flex-direction: column;
    }
}

/* ── Site-wide Sidebar Navigation ── */
.sidebar-page {
    background: var(--page-bg);
    min-height: 100vh;
    padding: 0;
}

.sidebar-layout {
    display: flex;
    min-height: 100vh;
    max-width: none;
    margin: 0;
}

.site-sidebar {
    width: 260px;
    background: var(--surface-strong);
    border-right: 2px solid var(--border);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    flex-direction: column;
}

.site-sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-nav {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-nav a {
    display: block;
    padding: 0.6rem 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    text-decoration: none;
    border-radius: var(--radius);
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a:focus-visible {
    background: var(--surface);
    color: var(--accent);
    text-decoration: none;
}

.sidebar-nav a[aria-current="page"] {
    background: var(--surface);
    color: var(--accent);
    font-weight: 700;
}

.sidebar-nav .nav-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.sidebar-socials {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.sidebar-socials-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 0 0 0.75rem 0;
}

.sidebar-socials-links {
    display: flex;
    justify-content: space-evenly;
    gap: 0.5rem;
}

.sidebar-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius);
    background: var(--surface);
    font-size: 1.1rem;
    transition: opacity 0.2s ease;
}

a.sidebar-social-link {
    text-decoration: none;
}

.sidebar-social-link:hover {
    opacity: 0.8;
}

.sidebar-social-link .fa-solid,
.sidebar-social-link .fa-brands {
    font-size: 1.4rem;
    color: white;
}

/* Brand backgrounds — transparent icon parts show the brand color */
.social-github { background: var(--gh-dark); }
.social-youtube { background: var(--yt-red); }
.social-facebook { background: var(--fb-blue); }

/* Email: white background, dark icon so it contrasts with the page */
.social-email { background: #ffffff; }
.social-email .fa-solid { color: #1a1a1a; }

.sidebar-main {
    flex: 1;
    overflow-y: auto;
}

.sidebar-page .hero-logo-banner {
    margin-top: 0;
}

@media (max-width: 1024px) {
    .site-sidebar {
        position: fixed;
        left: -260px;
        width: 260px;
        height: 100vh;
        top: 0;
        z-index: 1000;
        border-right: 2px solid var(--border);
        transition: left 0.3s ease;
        box-shadow: none;
    }

    .site-sidebar.open {
        left: 0;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    }

    .sidebar-page .sidebar-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background: var(--accent);
        color: #0b1220;
        border: none;
        border-radius: var(--radius);
        padding: 0.75rem;
        cursor: pointer;
        box-shadow: var(--shadow);
        transition: all 0.3s ease;
    }

    .sidebar-page .sidebar-toggle.open {
        left: calc(260px + 8px);
    }

    .sidebar-page .sidebar-toggle:hover {
        background: #e6b84d;
        transform: scale(1.05);
    }

    .sidebar-page .sidebar-overlay.show {
        display: block;
        opacity: 1;
    }
}

/* Compatibility Page - Focused, Clean Design */
.compatibility-page {
    background: var(--page-bg);
    min-height: 100vh;
    padding: 0;
}

/* Hide mobile-only elements on desktop */
.sidebar-toggle,
.sidebar-overlay,
.table-row-expand {
    display: none;
}

/* Sidebar toggle icon states */
.sidebar-toggle .sidebar-icon-close {
    display: none;
}
.sidebar-toggle.open .sidebar-icon-open {
    display: none;
}
.sidebar-toggle.open .sidebar-icon-close {
    display: block;
}

.compatibility-section {
    padding: 0;
    min-height: 100vh;
}

.compatibility-container {
    max-width: 1400px;
    margin: 0 auto;
}

.compatibility-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease;
}

.compatibility-logo {
    width: 180px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 12px rgba(88, 176, 206, 0.3));
    transition: transform 0.3s ease;
}

.compatibility-logo:hover {
    transform: scale(1.05);
}

.compatibility-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.compatibility-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Filters - Improved Layout */
.compatibility-filters {
    background: var(--surface-strong);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    padding: 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.filter-group--search {
    margin-bottom: 1.5rem;
}

.filter-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--ink);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-select:hover {
    border-color: var(--primary);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(88, 176, 206, 0.2);
}

/* Year Range Slider */
.year-slider-container {
    position: relative;
    height: 40px;
    margin-top: 0.5rem;
}

.year-slider {
    position: absolute;
    width: 100%;
    height: 6px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.year-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 3px solid var(--surface-strong);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.year-slider::-webkit-slider-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.year-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 3px solid var(--surface-strong);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.year-slider::-moz-range-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.year-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
}

.year-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
}

/* Styled Checkboxes */
.feature-checkboxes-styled {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.styled-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem 1.25rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    position: relative;
}

.styled-checkbox:hover {
    border-color: var(--primary);
    background: var(--surface-muted);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.styled-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 24px;
    width: 24px;
    background-color: var(--surface-muted);
    border: 2px solid var(--border);
    border-radius: 6px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.styled-checkbox input[type="checkbox"]:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.styled-checkbox input[type="checkbox"]:checked ~ .checkmark:after {
    display: block;
}

.checkbox-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
}

.coming-soon-badge-inline {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.2rem 0.5rem;
    background: var(--accent);
    color: var(--surface);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Results Summary */
.results-summary {
    text-align: center;
    padding: 1rem;
    background: var(--surface-strong);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--muted);
    animation: fadeInUp 0.6s ease 0.2s both;
}

.result-count {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
}

/* Table Layout */
.compatibility-table {
    animation: fadeInUp 0.6s ease 0.3s both;
}

.results-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--border);
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 0.7fr 0.8fr 1.5fr 0.8fr;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--surface-strong);
    border-bottom: 2px solid var(--border);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    text-align: left;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 0.7fr 0.8fr 1.5fr 0.8fr;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-muted);
    transition: all 0.2s ease;
    align-items: center;
}

.table-row:hover {
    background: var(--surface-muted);
    transform: translateX(4px);
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    font-size: 0.95rem;
    color: var(--ink);
}

.table-cell--title strong {
    font-weight: 600;
    color: var(--ink);
}

.table-cell--year,
.table-cell--mpu {
    font-weight: 500;
}

.table-badge {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    background: var(--primary);
    color: #ffffff;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
    transition: all 0.2s ease;
}

.table-badge:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    color: #ffffff;
}

a.table-badge {
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.table-badge--coming-soon {
    background: var(--accent);
}

.rom-chips {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.rom-chip {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    background: var(--surface-alt, #2a2a3a);
    color: var(--text-secondary, #aaa);
    border: 1px solid var(--border, #333);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 500;
    font-family: 'Space Grotesk', monospace;
    line-height: 1.4;
    white-space: nowrap;
}

a.buy-link,
a.buy-link:link,
a.buy-link:visited,
a.buy-link:hover,
a.buy-link:active,
a.buy-link:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--accent);
    color: #0b1220;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

a.buy-link:hover {
    background: #e6b84d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 209, 102, 0.3);
}

.table-empty {
    padding: 3rem;
    text-align: center;
    color: var(--muted);
    font-size: 1.1rem;
}

.text-muted {
    color: var(--muted);
}

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

/* Loading skeleton */
.table-loading {
    padding: 2rem;
}

.skeleton-row {
    height: 60px;
    background: linear-gradient(
        90deg,
        var(--surface-muted) 25%,
        var(--surface-strong) 50%,
        var(--surface-muted) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .table-header,
    .table-row {
        grid-template-columns: 2fr 1fr 0.6fr 0.7fr 1.2fr 0.8fr;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .compatibility-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .filter-controls {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        display: none;
    }
    
    .table-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1.5rem 1rem;
    }
    
    .table-cell::before {
        content: attr(data-label);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.75rem;
        color: var(--muted);
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .compatibility-header h1 {
        font-size: 1.75rem;
    }
    
    .compatibility-subtitle {
        font-size: 1rem;
    }
}

/* Reset Filters Button */
.filter-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border);
}

.btn-reset,
.btn-reset-inline {
    padding: 0.75rem 2rem;
    background: var(--surface-muted);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--ink);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover,
.btn-reset-inline:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--surface);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(88, 176, 206, 0.3);
}

.btn-reset-inline {
    margin-top: 1.5rem;
    background: var(--primary);
    border-color: var(--primary);
    color: var(--surface);
}

.btn-reset-inline:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Multi-select styling */
.filter-select[multiple] {
    min-height: 150px;
    padding: 0.5rem;
}

.filter-select[multiple] option {
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 2px;
    cursor: pointer;
}

.filter-select[multiple] option:hover {
    background: var(--surface-muted);
}

.filter-select[multiple] option:checked {
    background: var(--primary);
    color: var(--surface);
}

.filter-select[multiple] option[disabled] {
    color: var(--border);
    font-weight: 700;
    text-align: center;
    cursor: default;
    background: transparent;
}

/* Empty state improvements */
.table-empty {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--surface-muted);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border);
}

.table-empty h3 {
    color: var(--ink);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.table-empty p {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* PC Part Picker Style Layout */
.compatibility-layout {
    display: flex;
    min-height: 100vh;
    max-width: none;
    margin: 0;
}

/* Left Sidebar */
.compatibility-sidebar {
    width: 320px;
    background: var(--surface-strong);
    border-right: 2px solid var(--border);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
    /* Hide scrollbar for cleaner appearance */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.compatibility-sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-header {
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 2px solid var(--border);
    background: var(--surface);
}

.sidebar-logo {
    width: 140px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.sidebar-filters {
    padding: 1.5rem;
}

.filter-section {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 1px solid var(--border);
}

.filter-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-section--search {
    padding-bottom: 1rem;
}

.filter-section--reset {
    padding-top: 1rem;
}

.filter-section-label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.filter-select-sidebar {
    width: 100%;
    min-height: 120px;
    padding: 0.5rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--ink);
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
}

.filter-select-sidebar option {
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 2px;
    cursor: pointer;
}

.filter-select-sidebar option:hover {
    background: var(--surface-muted);
}

.filter-select-sidebar option:checked {
    background: var(--primary);
    color: var(--surface);
}

.filter-select-sidebar option[disabled] {
    color: var(--border);
    font-weight: 700;
    text-align: center;
    cursor: default;
    background: transparent;
}

.feature-checkboxes-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1rem;
    overflow: hidden;
    max-height: 1000px;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, padding-bottom 0.3s ease-in-out;
    opacity: 1;
}

.btn-reset-sidebar {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset-sidebar:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--surface);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(88, 176, 206, 0.3);
}

/* Main Content Area */
.compatibility-main {
    flex: 1;
    padding: 2rem 2rem;
    background: var(--page-bg);
    overflow-y: auto;
}

.main-header {
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease;
}

.main-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.main-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 700px;
}

.compatibility-table-main {
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .compatibility-layout {
        flex-direction: row;
        position: relative;
    }
    
    /* Mobile Sidebar Toggle */
    .sidebar-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background: var(--accent);
        color: #0b1220;
        border: none;
        border-radius: var(--radius);
        padding: 0.75rem;
        cursor: pointer;
        box-shadow: var(--shadow);
        transition: all 0.3s ease;
    }
    
    .sidebar-toggle.open {
        left: calc(320px + 8px);
    }
    
    .sidebar-toggle:hover {
        background: #e6b84d;
        transform: scale(1.05);
    }
    
    .sidebar-toggle-icon {
        width: 24px;
        height: 24px;
        display: block;
    }
    
    .compatibility-sidebar {
        position: fixed;
        left: -320px;
        width: 320px;
        height: 100vh;
        top: 0;
        z-index: 1000;
        border-right: 2px solid var(--border);
        transition: left 0.3s ease;
        box-shadow: none;
    }
    
    .compatibility-sidebar.open {
        left: 0;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .sidebar-overlay.show {
        display: block;
        opacity: 1;
    }
    
    .compatibility-main {
        width: 100%;
        padding: 4.5rem 1.5rem 2rem;
    }
    
    .main-header h1 {
        font-size: 2rem;
    }
    
    /* Simplified Mobile Results */
    .table-row {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .table-cell {
        width: 100% !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .table-cell::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--muted);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-style: normal;
    }
    
    .table-cell--title::before {
        content: '';
    }
    
    .table-cell--title strong {
        font-size: 1.1rem;
        width: 100%;
    }
    
    .table-cell--features {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .table-cell--features::before {
        margin-bottom: 0.25rem;
    }
    
    /* Show only first 2 features on mobile with ... */
    .table-cell--features .table-badge:nth-child(n+3) {
        display: none;
    }
    
    /* Only show ellipsis if there are actually more than 2 features */
    .table-row.has-many-features .table-cell--features::after {
        content: '...';
        color: var(--muted);
        font-size: 1.2rem;
        margin-left: 0.5rem;
    }
    
    /* Expandable row details button */
    .table-row-expand {
        display: block;
        width: 100%;
        margin-top: 0.5rem;
        padding: 0.5rem;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        color: var(--primary);
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        text-align: center;
        transition: all 0.2s ease;
    }
    
    .table-row-expand:hover {
        background: var(--surface-muted);
        border-color: var(--primary);
    }
    
    .table-row.expanded .table-cell--features .table-badge:nth-child(n+3) {
        display: inline-block;
    }
    
    .table-row.expanded .table-cell--features::after {
        content: '';
    }
}

@media (max-width: 768px) {
    .compatibility-main {
        padding: 4.5rem 1rem 1.5rem;
    }
    
    .main-header h1 {
        font-size: 1.75rem;
    }
    
    .main-subtitle {
        font-size: 1rem;
    }
    
    .sidebar-filters {
        padding: 1rem;
    }
}

/* Collapsible Filter Headers */
.filter-collapse-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    padding: 1rem 0;
    margin-bottom: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.filter-collapse-header:hover {
    opacity: 0.8;
}

.filter-collapse-header .filter-section-label {
    transition: font-size 0.3s ease, font-weight 0.3s ease;
}

/* Collapsed state: slightly larger title */
.filter-collapse-header[aria-expanded="false"] .filter-section-label {
    font-size: 1.02rem;
    font-weight: 600;
}

.collapse-icon {
    font-size: 0.9rem;
    color: var(--primary);
    transition: transform 0.3s ease-in-out;
    display: inline-flex;
    align-items: center;
}

/* Checkbox Containers with smooth animation */
.filter-checkbox-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1rem;
    overflow: hidden;
    max-height: 1000px;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, padding-bottom 0.3s ease-in-out;
    opacity: 1;
}

.filter-checkbox-container[style*="display: none"] {
    max-height: 0;
    opacity: 0;
    padding-bottom: 0;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none; /* Removed border */
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-checkbox-label:hover {
    background: var(--surface-muted);
}

.filter-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
    appearance: none;
    -webkit-appearance: none;
    background: var(--surface-strong);
    border: 2px solid var(--border);
    border-radius: 3px;
    position: relative;
    flex-shrink: 0;
}

.filter-checkbox-label input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.filter-checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #0b1220;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-checkbox-label span {
    font-size: 0.95rem;
    color: var(--ink);
    flex: 1;
}

.filter-divider {
    text-align: center;
    color: var(--border);
    font-weight: 700;
    padding: 0.25rem 0;
    user-select: none;
}

/* Uncommon Manufacturers Section */
.uncommon-manufacturers-section {
    margin-top: 0.75rem;
}

.uncommon-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0.5rem 0;
    cursor: pointer;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s ease;
}

.uncommon-header:hover {
    opacity: 0.8;
}

.uncommon-icon {
    font-size: 0.75rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.uncommon-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
    padding-bottom: 1rem;
    overflow: hidden;
    max-height: 1000px;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 1;
}

/* Year Range Slider with Visual Highlight */
label[for="yearRange"].filter-section-label {
    padding-top: 1rem;
}

.year-range-slider-wrapper {
    position: relative;
    padding: 0.5rem 0 1rem;
}

.year-range-track {
    position: relative;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    margin: 1.5rem 0 1rem;
}

.year-range-highlight {
    position: absolute;
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.2s ease;
}

.year-range-slider {
    position: absolute;
    width: 100%;
    height: 6px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    top: 1.5rem;
    left: 0;
    margin: 0;
}

.year-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 3px solid var(--surface-strong);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    margin-top: -7px;
}

.year-range-slider::-webkit-slider-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.15);
}

.year-range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 3px solid var(--surface-strong);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.year-range-slider::-moz-range-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.15);
}

.year-range-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: transparent;
}

.year-range-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    background: transparent;
}

.year-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
}

/* Buy button with cart icon */
a.buy-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: #0b1220;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

a.buy-link span {
    color: #0b1220;
    text-decoration: none;
}

.buy-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0);
    flex-shrink: 0;
}

a.buy-link:hover {
    background: #e6b84d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 209, 102, 0.3);
    color: #0b1220;
    text-decoration: none;
}

a.buy-link:visited,
a.buy-link:active,
a.buy-link:focus {
    color: #0b1220;
    text-decoration: none;
}

/* Indented nav sub-items (Home sub-sections) */
.sidebar-nav a.nav-indent {
    padding-left: 2rem;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--muted);
}

.sidebar-nav a.nav-indent:hover,
.sidebar-nav a.nav-indent:focus-visible {
    color: var(--accent);
}

/* Filter Accordion (compatibility page) */
.filter-accordion {
    background: var(--surface-strong);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    overflow: hidden;
}

.filter-accordion-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface-strong);
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.filter-accordion-toggle:hover {
    background: var(--surface-muted);
}

.filter-accordion-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-accordion-label i {
    color: var(--primary);
    font-size: 0.9rem;
}

.filter-accordion-icon {
    font-size: 0.85rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.filter-accordion-toggle[aria-expanded="false"] .filter-accordion-icon {
    transform: rotate(180deg);
}

.filter-accordion-panel {
    overflow: hidden;
    max-height: 2000px;
    opacity: 1;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
}

.filter-accordion-panel.collapsed {
    max-height: 0;
    opacity: 0;
}

.filter-accordion-content {
    padding: 0 1.5rem 1.5rem;
}

/* Three-column filter layout */
.filter-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 1.5rem;
    border-bottom: 1px solid var(--border);
}

.filter-column {
    border-bottom: none;
}

/* Scrollable manufacturer list */
.filter-checkbox-container--manufacturer {
    max-height: var(--manufacturer-scroll-height);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--surface-strong);
}

.filter-checkbox-container--manufacturer::-webkit-scrollbar {
    width: 6px;
}

.filter-checkbox-container--manufacturer::-webkit-scrollbar-track {
    background: var(--surface-strong);
    border-radius: 3px;
}

.filter-checkbox-container--manufacturer::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* Filter action buttons row */
.filter-section--actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-bottom: none;
}

.filter-section--actions .btn-reset-sidebar {
    flex: 1;
}

.btn-collapse-filters {
    padding: 0.75rem 1.5rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-collapse-filters:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--surface);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(88, 176, 206, 0.3);
}

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

    .filter-column {
        border-bottom: 1px solid var(--border);
    }

    .filter-column:last-child {
        border-bottom: none;
    }
}

/* Compatibility page uses sidebar-layout now, not the old sidebar-specific layout */
.compatibility-page .compatibility-section {
    padding: 0;
    min-height: auto;
}

.compatibility-page .compatibility-main {
    padding: 2rem;
    background: var(--page-bg);
}

@media (max-width: 1024px) {
    .compatibility-page .compatibility-main {
        padding: 4.5rem 1.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .compatibility-page .compatibility-main {
        padding: 4.5rem 1rem 1.5rem;
    }

    .filter-accordion-content {
        padding: 0 1rem 1rem;
    }
}

/* Long-form document pages (privacy policy, terms, etc.) */
.legal-doc {
    max-width: 780px;
    margin: 0 auto;
    text-align: left;
}

.legal-doc h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.legal-doc h2 {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-align: left;
    margin-top: 2.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.legal-doc h2:first-of-type {
    margin-top: 2rem;
}

.legal-doc p {
    margin-top: 1rem;
    color: var(--muted);
}

.legal-doc .legal-meta {
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.legal-doc .legal-lead {
    border-left: 4px solid var(--accent);
    padding-left: 1.25rem;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: var(--ink);
}

.legal-doc ul {
    margin: 1rem 0 0 1.5rem;
    color: var(--muted);
}

.legal-doc li {
    margin-bottom: 0.4rem;
}

.legal-doc strong {
    color: var(--ink);
}

/* Index of legal documents */
.legal-index {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}

.legal-index li {
    margin-bottom: 1.25rem;
}

.legal-index a {
    font-weight: 700;
    font-size: 1.1rem;
}

.legal-index-summary {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
}

@media (max-width: 768px) {
    .legal-doc h1 {
        font-size: 1.8rem;
    }

    .legal-doc h2 {
        font-size: 1.25rem;
        margin-top: 2rem;
    }
}
