/* 
 * CAMEO Project Page Styles
 * Semantic CSS Architecture
 */

:root {
    /* Typography */
    --font-primary: 'Wanted Sans Variable', 'Wanted Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: monospace;

    /* Caption Font Size Configuration */
    --caption-font-size: 1rem;

    /* Colors - Brand */
    --color-primary: #22869A;
    /* Teal 600 */
    --color-primary-light: #2dd4bf;
    /* Teal 400 */
    --color-primary-dark: #22869A;
    /* Teal 700 */
    --color-cat3d: #8fdcd4;

    /* Colors - Grayscale */
    --color-bg: #ffffff;
    --color-bg-alt: rgb(251, 255, 254);
    /* Slate 50 */
    --color-text-main: #1e293b;
    /* Slate 800 */
    --color-text-muted: #64748b;
    /* Slate 500 */
    --color-text-light: #94a3b8;
    /* Slate 400 */
    --color-border: #e2e8f0;
    /* Slate 200 */
    --color-border-light: #f1f5f9;
    /* Slate 100 */

    /* Layout */
    --container-width: 68rem;
    --header-height: 4rem;
    --sidebar-width: 160px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 14.5px;
    /* Global Scale */
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    padding-left: var(--sidebar-width);
}

img,
object {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography Defaults */
h1,
h2,
h3,
h4 {
    color: #0f172a;
    /* Slate 900 */
    font-weight: 700;
    line-height: 1.2;
}


p {
    margin-top: 0.8rem;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--color-text-main);
    text-align: left;
    line-height: 1.625;
}

/* Layout Components */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    width: 100%;
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
}

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

.section-title {
    font-size: 2.5rem;
    /* 3xl */
    color: var(--color-primary-dark);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-border);
    display: block;
    width: fit-content;
}

/* Navigation Sidebar */
.sidebar {
    position: fixed;
    top: 50%;
    left: 2rem;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 6px;
    width: 3px;
    background: #e2e8f0;
    z-index: 0;
}

.sidebar::after {
    content: '';
    position: absolute;
    left: 6px;
    width: 3px;
    background: linear-gradient(to bottom, transparent, var(--color-primary), var(--color-primary), transparent);
    z-index: 1;
    transition: all 0.3s ease;
    top: var(--active-position, 0);
    height: 100px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #cbd5e1;
    /* Slate 300 */
    transition: all 0.3s ease;
    border: 2px solid var(--color-bg);
    box-sizing: content-box;
    position: relative;
    z-index: 2;
}

.sidebar-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
}

.sidebar-item:hover .sidebar-dot,
.sidebar-item.active .sidebar-dot {
    background-color: var(--color-primary);
    transform: scale(1.3);
}

.sidebar-item:hover .sidebar-label,
.sidebar-item.active .sidebar-label {
    color: var(--color-primary);
    font-weight: 700;
}

@media (max-width: 1280px) {
    body {
        padding-left: 0;
    }

    .sidebar {
        /* Reset fixed positioning */
        position: sticky;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        height: auto;

        /* Top bar layout */
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        padding: 1rem;

        /* Visuals */
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);

        /* Scrolling for small screens */
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;

        /* Ensure it stays on top */
        z-index: 1000;

        /* Hide scrollbar */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

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

    /* Hide vertical track decorations */
    .sidebar::before,
    .sidebar::after {
        display: none;
    }

    /* Hide dots in top bar mode */
    .sidebar-dot {
        display: none;
    }

    .sidebar-item {
        gap: 0;
        padding: 0.5rem;
    }

    .sidebar-label {
        font-size: 0.95rem;
    }
}

@media (max-width: 640px) {
    .sidebar {
        justify-content: flex-start;
        padding: 1rem 1.5rem;
        gap: 1rem;
    }
}

/* Hero Section */
.hero-section {
    padding-top: 4rem;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-container {
    max-width: 64rem;
    /* max-w-5xl */
    margin: 0 auto 3rem auto;
}

.hero-title {
    font-size: 2.25rem;
    /* 4xl */
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.hero-title .gradient-text {
    background: linear-gradient(to right, var(--color-primary), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-video-icon {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
    margin-left: -0.5rem;
    margin-right: -1.0rem;
    margin-top: -0.6rem;
    display: inline-block;
    vertical-align: middle;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }

    /* md:text-6xl */
}

.hero-status {
    font-size: 1.25rem;
    color: var(--color-primary-dark);
    font-weight: 600;
    margin-bottom: 1.5rem;
    justify-content: center;
    display: flex;

}

.hero-authors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 1.5rem;
    row-gap: 0.5rem;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-authors span {
    color: #334155;
    /* Slate 700 */
    font-weight: 500;
    white-space: nowrap;
}

.hero-affiliations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    font-size: 1rem;
}

.hero-notes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    color: var(--color-text-light);
    font-size: 0.875rem;
    font-style: italic;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    background-color: #1e293b;
    /* Slate 800 */
    color: white;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #334155;
    /* Slate 700 */
}

.btn.btn-outline {
    background-color: white;
    color: var(--color-text-main);
    border: 1px solid #cbd5e1;
    /* Slate 300 */
}

.btn.btn-outline:hover {
    background-color: var(--color-bg-alt);
}

/* Teaser & TL;DR */
.teaser-container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.tldr-box {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto 0rem auto;
    background-color: var(--color-bg-alt);
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    padding: 2rem;
}

.tldr-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .tldr-content {
        flex-direction: row;
        align-items: center;
    }
}

.tldr-label {
    background-color: var(--color-primary);
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.tldr-text {
    font-size: 1.25rem;
    color: var(--color-text-main);
    font-weight: 500;
    line-height: 1.625;
    margin-bottom: 0px !important;
    margin-top: 0px !important;
    text-align: center;
}

.tldr-highlight {
    color: var(--color-primary);
    font-weight: 800;
}

/* Comparison Section */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    margin: 2.5rem 0rem 0rem 0rem;
}

@media (min-width: 768px) {
    .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.comparison-item {
    position: relative;
}

.comparison-label {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10;
}

/* Image Comparison Component */
.img-comp-container {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 0.75rem;
    width: 100%;
}

.img-comp-img {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
}

.img-comp-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.img-comp-slider {
    position: absolute;
    z-index: 9;
    cursor: ew-resize;
    width: 30px;
    height: 30px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-comp-slider::before {
    content: '\f337';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color-primary);
}

.img-comp-badge {
    position: absolute;
    bottom: 1rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    border-radius: 0.25rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.img-comp-badge.cameo {
    right: 1rem;
    background-color: #F8FEFB;
    color: #20879A;
    border: 2px solid #20879A;
    font-weight: 700;
}

.img-comp-badge.baseline {
    left: 1rem;
    background-color: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--color-text-muted);
}

/* Abstract Section */
.abstract-text {
    font-size: 1.25rem;
    color: var(--color-text-main);
    text-align: left;
    line-height: 1.625;
}

/* Analysis Section */
.analysis-image-container {
    width: 100%;
    background-color: var(--color-bg);
    border-radius: 0.5rem;
    border: 1px solid var(--color-primary);
    padding: 0rem 0.5rem 0.5rem 0.5rem;

}

.analysis-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 0.5rem;
    background-color: var(--color-bg);
}

.analysis-content {
    font-size: 1.25rem;
    color: var(--color-text-main);
    line-height: 1.625;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.analysis-charts-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    margin-bottom: 0.75rem;
    background-color: var(--color-bg);
    border-radius: 0.5rem;
    border: 1px solid var(--color-primary);
    padding: 0.25rem;
}



/* Analysis subsections */
#analysis>.container>div {
    margin-bottom: 4rem;
}

#analysis>.container>div:last-child {
    margin-bottom: 0;
}

.analysis-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.analysis-subtitle.highlight {
    color: var(--color-primary-dark);
}

/* CAMEO Section */
.cameo-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}



.cameo-visual img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.cameo-description {
    font-size: 1.25rem;
    color: var(--color-text-main);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

/* Results Section */
.results-block {
    margin-bottom: 6rem;
}

.results-block:last-child {
    margin-bottom: 0;
}

/* Carousel Component */
.carousel-container {
    position: relative;
    width: 100%;
}

.carousel-viewport {
    overflow: hidden;
    border-radius: 0.75rem;
    background-color: white;
    transition: height 0.3s ease;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: flex-start;
}


.carousel-slide {
    width: 100%;
    flex-shrink: 0;
    position: relative;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--color-bg-alt);
    border-radius: 50%;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.carousel-nav-btn:hover {
    color: var(--color-bg-alt);
    background-color: var(--color-primary);
}

.carousel-nav-btn.prev {
    left: -1rem;
}

.carousel-nav-btn.next {
    right: -1rem;
}

@media (min-width: 768px) {
    .carousel-nav-btn.prev {
        left: -3rem;
    }

    .carousel-nav-btn.next {
        right: -3rem;
    }
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background-color: var(--color-primary);
    width: 1.2rem;
    border-radius: 0.4rem;
}

/* Chart Cards */
.chart-card {
    background-color: white;
    border: 1px solid var(--color-border-light);
    border-radius: 0.75rem;
    padding: 1rem;
    width: 100%;
}

.chart-card-title {
    text-align: center;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.chart-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .chart-grid.cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-grid.cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.results-slide-content {
    padding: 1rem;
    width: 100%;
}

.results-slide-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 1rem;
    text-align: center;
}

.results-caption {
    width: 100%;
    color: #334155;
    margin-top: 0.5rem;
}

.results-caption p {
    text-align: center;
    font-size: var(--caption-font-size);
    line-height: 1.625;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .results-caption p {
        font-size: 1rem;
    }
}

.results-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    font-size: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.bg-cat3d {
    background-color: var(--color-cat3d);
}

.bg-cameo {
    background-color: var(--color-primary);
}

.chart-text {
    font-size: 27px;
    font-weight: bold;
    fill: #64748b;
    /* Slate 500 */
}

/* Qualitative Image Card */
.qual-card {
    position: relative;
    height: 600px;
    width: 100%;
}

.qual-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qual-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    color: white;
    padding: 1.5rem;
    backdrop-filter: blur(4px);
}

.qual-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-primary-light);
}

.qual-desc {
    font-size: 1rem;
    line-height: 1.625;
    color: var(--color-border);
}

@media (min-width: 768px) {
    .qual-desc {
        font-size: 1.125rem;
    }
}

/* Citation Section */
.citation-section {
    padding: 8rem 0;
    border-top: 1px solid var(--color-border);
    margin-top: 2rem;
}

.citation-block {
    background-color: var(--color-bg-alt);
    color: var(--color-text-muted);
    padding: 1rem;
    border-radius: 0.25rem;
    border: 1px solid var(--color-border);
    overflow-x: auto;
    position: relative;
    text-align: left;
}

.citation-block:hover .citation-copy-btn {
    opacity: 1;
}

.citation-copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: white;
    border: 1px solid #cbd5e1;
    color: var(--color-text-muted);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    transition: opacity 0.2s;
    opacity: 0;
    cursor: pointer;
}

.citation-code {
    font-family: var(--font-mono);
    font-size: 1.0rem;
    line-height: 1.625;
}

/* Footer */
.footer {
    background-color: white;
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
    margin-top: 2rem;
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* Chart SVG Styles */
.chart-svg {
    overflow: visible;
}

.chart-point {
    transition: all 0.2s ease;
    cursor: pointer;
}

.chart-point:hover {
    r: 9;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@media (max-width: 768px) {
    p {
        font-size: 1rem;
    }

    :root {
        --caption-font-size: 0.875rem;
    }
}

/* Qualitative Grid Layout */
.qual-grid {
    --qual-gap: 0.5rem;
    display: grid;
    grid-template-columns: calc(20% - 0.8 * var(--qual-gap)) calc(40% - 0.6 * var(--qual-gap)) calc(40% - 0.6 * var(--qual-gap));
    gap: var(--qual-gap);
    width: 100%;
    margin-bottom: 0.5rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .qual-grid {
        --qual-gap: 0.75rem;
    }
}

.qual-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
    min-height: 0;
}

/* Mobile: Refs span full width - REMOVED to enforce 3-column layout */
/* .qual-col:first-child {
    grid-column: 1 / -1;
} */

@media (min-width: 768px) {
    .qual-col:first-child {
        grid-column: auto;
    }
}

.qual-header {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.1rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.qual-ref-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    justify-content: space-between;
    height: 100%;
    min-height: 0;
}

.qual-ref-img {
    width: 100%;
    /* aspect-ratio: 1 / 1; REMOVED to allow filling height */
    flex: 1;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    height: 0;
    min-height: 0;
}

.qual-main-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Ensure comparison container fits the grid */
.qual-col .img-comp-container {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0;
}

/* Qualitative Pair Layout */
.qual-pair-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
}

@media (min-width: 1280px) {
    .qual-pair-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Generated View Border */
.qual-col:last-child .img-comp-container,
.qual-col:last-child .qual-main-img {
    border: 2p x solid #28ced1;
    box-sizing: border-box;
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Ablation Studies */
.ablation-container {
    width: 100%;
}

.ablation-intro {
    margin-bottom: 2rem;
    text-align: left;
}

.ablation-grid {
    display: flex;
    flex-wrap: nowrap;
    /* Force single row on desktop */
    gap: 0.75rem;
    /* Reduce gap to fit */
    justify-content: space-between;
    overflow-x: auto;
    /* Allow scroll on very small screens if needed */
}

.ablation-item {
    flex: 1;
    /* Distribute space equally */
    min-width: 0;
    /* Allow shrinking */
    background: white;
    padding: 0.75rem;
    /* Reduce padding slightly */
    border-radius: 0.5rem;
    border: 1px solid var(--color-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ablation-text-block {
    margin-bottom: 2rem;
    text-align: left;
}

.ablation-text-block p {
    margin-bottom: 1rem;
}

@media (max-width: 1024px) {
    .ablation-grid {
        flex-wrap: wrap;
        /* Wrap on smaller screens */
    }

    .ablation-item {
        flex: 1 1 100%;
        /* Full width on mobile */
    }
}

.table-caption {
    font-size: 0.85rem;
    color: var(--color-text-main);
    margin-bottom: 0.75rem;
    text-align: left;
    line-height: 1.4;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.results-table th,
.results-table td {
    padding: 0.35rem 0.2rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border-light);
}

.results-table td:first-child {
    text-align: left;
    white-space: nowrap;
    padding-left: 0.5rem;
}

.results-table th:first-child {
    text-align: left;
    padding-left: 0.5rem;
}

.results-table th {
    font-weight: 600;
    color: var(--color-text-main);
    border-bottom: 1px solid var(--color-text-main);
}

.results-table .highlight-row {
    background-color: #f0fdfa;
    /* Teal 50 */
    font-weight: 600;
}

.results-table .highlight-row td {
    color: var(--color-primary-dark);
}

.results-table .separator-row td {
    border-bottom: 1px solid var(--color-border);
    height: 1px;
    padding: 0;
}

/* Ablation Split Layout */
.ablation-split-container {
    display: flex;
    gap: 2rem;
    align-items: center;
    /* Center vertically */
    text-align: left;
}

.ablation-table-col {
    flex: 1;
    /* Equal width */
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.ablation-qual-col {
    flex: 1;
    /* Equal width */
    min-width: 0;
}

.ablation-qual-col .qual-pair-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Adjust table styles for tighter space */
.ablation-table-col .ablation-item {
    padding: 0.75rem;
    font-size: 0.8rem;
}

.ablation-table-col .results-table th,
.ablation-table-col .results-table td {
    padding: 0.25rem;
}

@media (max-width: 1024px) {
    .ablation-split-container {
        flex-direction: column;
    }

    .ablation-table-col,
    .ablation-qual-col {
        flex: 1 1 100%;
        width: 100%;
    }
}