/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark theme — near-black, near-white */
    --bg-primary: #0e0e0e;
    --bg-secondary: #0e0e0e;
    --bg-tertiary: #1a1a1a;
    --text-primary: #f5f5f5;
    --text-secondary: #8a8a8a;
    --accent-primary: #f5f5f5;
    --accent-secondary: #8a8a8a;
    --border-color: #1f1f1f;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;

    --chart-bar: #f5f5f5;
    --chart-bar-baseline-1: #6b6b6b;
    --chart-bar-baseline-2: #404040;

    --tag-bg: transparent;
    --tag-border: var(--text-secondary);
    --tag-color: var(--text-secondary);

    --rank-1-bg: transparent; --rank-1-text: var(--text-primary);
    --rank-2-bg: transparent; --rank-2-text: var(--text-primary);
    --rank-3-bg: transparent; --rank-3-text: var(--text-primary);
}

[data-theme="light"] {
    /* Light theme — near-white, near-black */
    --bg-primary: #fafafa;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f0f0f0;
    --text-primary: #1a1a1a;
    --text-secondary: #6b6b6b;
    --border-color: #e5e5e5;
    --accent-primary: #1a1a1a;
    --accent-secondary: #6b6b6b;

    --chart-bar: #1a1a1a;
    --chart-bar-baseline-1: #6b6b6b;
    --chart-bar-baseline-2: #c8c8c8;

    --tag-bg: transparent;
    --tag-border: var(--text-secondary);
    --tag-color: var(--text-secondary);

    --rank-1-bg: transparent; --rank-1-text: var(--text-primary);
    --rank-2-bg: transparent; --rank-2-text: var(--text-primary);
    --rank-3-bg: transparent; --rank-3-text: var(--text-primary);
}

body {
    font-family: 'Helvetica Neue', 'Helvetica', 'Arial', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.55;
    transition: var(--transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.navbar {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.logo-accent {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

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

.nav-github {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: var(--transition);
}

.nav-github:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background-color: var(--bg-tertiary);
}

.theme-icon {
    display: none;
    width: 20px;
    height: 20px;
}

.theme-icon-sun {
    display: block;
}

[data-theme="light"] .theme-icon-sun {
    display: none;
}

[data-theme="light"] .theme-icon-moon {
    display: block;
}

.hero {
    padding: 4rem 0 3.5rem;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.title-main {
    color: var(--text-primary);
    display: inline-block;
}

.title-accent {
    color: var(--accent-primary);
    display: inline-block;
}


.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    white-space: nowrap;
    letter-spacing: 0.02em;
    margin-top: 0.5rem;
}

.hero-description {
    max-width: 650px;
    margin: 0 auto 2rem;
}

.hero-description p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.btn-wrapper {
    position: relative;
    display: inline-flex;
    align-items: stretch;
}

.tooltip {
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tooltip::before {
    content: '';
    position: absolute;
    top: -0.25rem;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--bg-tertiary);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}

.btn-wrapper:hover .tooltip,
.btn-wrapper .btn:focus + .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-weight: 500;
    text-decoration: none;
}

.btn-icon {
    width: 14px;
    height: 14px;
}

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

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

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

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

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.section-description a {
    color: var(--accent-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.section-description a:hover {
    color: var(--accent-secondary);
}

.section-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 3rem 0 1.5rem 0;
    text-align: center;
    color: var(--text-primary);
}

/* Changelog */
.changelog {
    margin: 1rem 0;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.changelog summary {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-primary);
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.changelog summary::-webkit-details-marker {
    display: none;
}

.changelog summary::after {
    content: '+';
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.changelog[open] summary::after {
    content: '-';
}

.changelog-content {
    overflow: hidden;
    opacity: 0;
    max-height: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, max-height 0.2s ease, transform 0.2s ease;
}

.changelog-content.open {
    opacity: 1;
    max-height: 200px;
    transform: translateY(0);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.changelog-content::-webkit-scrollbar {
    width: 4px;
}

.changelog-content::-webkit-scrollbar-track {
    background: transparent;
}

.changelog-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.changelog-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

.changelog-entry {
    margin-top: 0.5rem;
}

.changelog-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.changelog-list {
    margin: 0;
    padding-left: 1.2rem;
    list-style-type: disc;
}

.changelog-list li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.changelog-list li strong {
    color: var(--text-primary);
}

/* Leaderboard */
.leaderboard {
    background-color: var(--bg-secondary);
}

.chart-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: flex-end;
}

.chart-view-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.chart-view-select {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.5rem 2rem 0.5rem 1rem;
    font-family: inherit;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23aca595' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.chart-view-select:hover {
    border-color: var(--accent-primary);
}

.chart-view-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(193, 125, 90, 0.1);
}

.leaderboard-chart {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    overflow-x: auto;
}

.leaderboard-chart-wrapper {
    width: 100%;
}

.chart-footnote {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
    text-align: left;
    width: 100%;
}

.chart-footnote a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.chart-footnote a:hover {
    color: var(--accent-primary);
}

.leaderboard-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: flex-end;
}

.model-select-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.custom-dropdown {
    position: relative;
    min-width: 200px;
}

.dropdown-selected {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.5rem 2rem 0.5rem 1rem;
    font-family: inherit;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    user-select: none;
}

.dropdown-selected::after {
    content: '';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-secondary);
    transition: var(--transition);
}

.dropdown-selected:hover {
    border-color: var(--accent-primary);
}

.custom-dropdown.open .dropdown-selected::after {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-dropdown.open .dropdown-options {
    max-height: 300px;
    opacity: 1;
    overflow-y: auto;
}

.dropdown-option {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background-color: var(--bg-secondary);
}

.dropdown-option.active {
    background-color: var(--bg-tertiary);
    color: var(--accent-primary);
    font-weight: 500;
}

.leaderboard-table {
    overflow-x: auto;
    border-radius: 0.5rem;
}

/* Mobile table toggle notice - hidden on desktop */
.mobile-table-notice {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background-color: var(--bg-tertiary);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.toggle-table-btn {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-table-btn:hover {
    background: var(--accent-secondary);
}

.toggle-table-btn .hide-text {
    display: none;
}

.mobile-table-notice.show-full .toggle-table-btn .show-text {
    display: none;
}

.mobile-table-notice.show-full .toggle-table-btn .hide-text {
    display: inline;
}

.mobile-table-notice.show-full span:first-child {
    display: none;
}

.leaderboard-footnote {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
    font-style: italic;
}

.leaderboard-footnote.table-footnote {
    text-align: left;
    font-style: normal;
    margin-top: 0.75rem;
}

/* Benchmark dropdown - hidden on desktop, shown on mobile */
.benchmark-select-container {
    display: none !important;
}

/* Standard deviation display in table */
.std-value {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 0.2rem;
}

/* Scaffold label in method column */
.scaffold-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 0.15rem;
}

.effort-tag {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--tag-color);
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    border-radius: 3px;
    padding: 0 0.3rem;
    margin-left: 0.35rem;
    vertical-align: middle;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    min-width: 1000px;
}

thead {
    background-color: var(--bg-tertiary);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

td {
    font-size: 0.875rem;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

/* Heatmap cells - scores */
tbody td[style*="background-color"] {
    font-weight: 500;
    position: relative;
}

tbody tr {
    transition: var(--transition);
}

tbody tr:hover {
    background-color: var(--bg-secondary);
}

tbody tr:hover td[style*="background-color"] {
    filter: brightness(1.1);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Benchmark table — column-specific tuning on top of .findings-table */
.task-version {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.1rem 0.35rem;
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    border-radius: 0.2rem;
    text-transform: uppercase;
    vertical-align: middle;
}

.benchmarks-table td:nth-child(1) {
    /* Benchmark name — primary identifier, nowrap */
    white-space: nowrap;
    font-weight: 500;
}

.benchmarks-table td:nth-child(2) {
    /* Category */
    white-space: nowrap;
    color: var(--text-secondary);
}

.benchmarks-table td:nth-child(3) {
    /* Weight — numeric, right-align for visual scan */
    text-align: right;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* About Section */
.about {
    background-color: var(--bg-secondary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content > p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    text-align: center;
}

.setup-info {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 3rem;
}

.setup-info h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.setup-info ul {
    list-style: none;
    padding: 0;
}

.setup-info li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.setup-info strong {
    color: var(--accent-primary);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Team Section */
.team {
    padding: 4rem 0;
    background-color: var(--bg-secondary);
}

.team-inline {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1rem;
    font-size: 1.1rem;
    line-height: 2.2;
}

.team-inline a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.team-inline a.team-lead {
    font-size: 1.2rem;
    font-weight: 700;
}

.team-inline a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.team-inline sup {
    color: var(--text-secondary);
    font-size: 0.6rem;
    font-weight: 400;
}

.team-affiliations {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.8;
}

.team-equal-contrib {
    font-style: italic;
}

.team-star {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.85rem;
}

.team-affiliations sup {
    font-size: 0.6rem;
}

/* Citation Section */
.citation {
    padding: 4rem 0;
    background-color: var(--bg-primary);
}

.citation-box {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 2rem;
    position: relative;
}

.citation-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--text-primary);
    margin: 0;
    overflow-x: auto;
    white-space: pre;
    line-height: 1.6;
}

.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

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

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

/* Rank Badge */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
}

.rank-1 {
    background: var(--rank-1-bg);
    color: var(--rank-1-text);
}

.rank-2 {
    background: var(--rank-2-bg);
    color: var(--rank-2-text);
}

.rank-3 {
    background: var(--rank-3-bg);
    color: var(--rank-3-text);
}

.rank-other {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 968px) {
    .container {
        padding: 0 1.5rem;
    }

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

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    table {
        font-size: 0.8rem;
    }

    th, td {
        padding: 0.75rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 2.5rem 0 2rem;
    }

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

    .hero-subtitle {
        font-size: 1rem;
        white-space: normal;
        letter-spacing: 0.01em;
        margin-top: 0.25rem;
        padding: 0 1rem;
    }

    .hero-description {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
        padding: 0 1.5rem;
    }

    .hero-description p {
        font-size: 0.9rem;
        line-height: 1.8;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .hero-buttons .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        white-space: nowrap;
        justify-content: center;
    }

    .hero-buttons .btn-wrapper {
        display: inline-flex;
    }

    .hero-buttons .btn-wrapper .btn {
        width: auto;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 0.95rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a:last-of-type {
        border-bottom: none;
    }

    .nav-right {
        gap: 0.5rem;
    }

    .logo {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-description {
        font-size: 0.9rem;
    }

    .leaderboard-chart {
        padding: 1rem;
    }

    .changelog {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .changelog-content {
        text-align: left;
        align-self: flex-start;
    }

    /* Show benchmark dropdown on mobile */
    .benchmark-select-container.leaderboard-controls {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .benchmark-select-container .custom-dropdown {
        min-width: 150px;
    }

    /* Mobile table: show toggle, hide benchmark columns */
    .mobile-table-notice {
        display: flex;
    }

    .benchmark-col {
        display: none;
    }

    /* More padding on Avg column (3rd column) */
    td:nth-child(3),
    th:nth-child(3) {
        padding-left: 1rem;
    }

    /* When showing full table on mobile */
    .leaderboard-table.show-full table {
        min-width: 1000px;
    }

    .leaderboard-table.show-full .benchmark-col {
        display: table-cell;
    }

    /* Hide table footnote in summary view since it references hidden columns */
    .table-footnote {
        display: none;
    }

    .mobile-table-notice.show-full ~ .table-footnote {
        display: block;
    }

    .chart-footnote {
        text-align: center !important;
        padding: 0 0.5rem;
        margin-left: auto;
        margin-right: auto;
        font-size: 0.55rem;
    }

    .about-content > p {
        font-size: 0.95rem;
        line-height: 1.7;
        text-align: center;
    }

    .setup-info {
        padding: 1.5rem;
    }

    .setup-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
        text-align: center;
    }

    .setup-info li {
        font-size: 0.875rem;
        padding: 0.4rem 0;
        line-height: 1.5;
        text-align: left;
    }

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

    table {
        font-size: 0.75rem;
        min-width: auto;
    }

    th, td {
        padding: 0.5rem;
    }

    th {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

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

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-description p {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    table {
        font-size: 0.7rem;
        min-width: auto;
    }

    .leaderboard-table.show-full table {
        min-width: 900px;
    }

    th, td {
        padding: 0.4rem;
    }
}

/* Time Spent Section */
.time-spent {
    background-color: var(--bg-primary);
    padding: 4rem 0;
}

.time-toggle-wrapper {
    text-align: right;
    margin-bottom: 0.75rem;
}

.toggle-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-primary);
    background: transparent;
    border: 1px solid var(--accent-primary);
    border-radius: 0.35rem;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Process Flow Section */
.process-flow {
    background-color: var(--bg-secondary);
    padding: 4rem 0;
}

.pipeline-diagram {
    width: 100%;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow-x: auto;
}

.pipeline-svg {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.pipeline-desktop {
    min-width: 900px;
}

.pipeline-mobile {
    display: none;
    max-width: 320px;
}

@media (max-width: 768px) {
    .pipeline-diagram {
        padding: 1rem;
        overflow-x: visible;
    }

    .pipeline-desktop {
        display: none;
    }

    .pipeline-mobile {
        display: block;
        min-width: auto;
        max-width: 100%;
    }
}

/* Observations Section */
.observations {
    padding: 4rem 0;
}

/* Findings tables — dense reference-style tables used in the
   observations section. Overrides the leaderboard's global
   `table { min-width: 1000px }` and `td { white-space: nowrap }`
   so prose rows wrap naturally on narrow viewports. */
.findings-table-wrap {
    margin: 0.25rem 0 2rem;
    overflow-x: auto;
}

.findings-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.85rem;
    overflow: hidden;
}

.findings-table thead {
    background: var(--bg-tertiary);
}

.findings-table th {
    text-align: left;
    padding: 0.55rem 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.findings-table td {
    padding: 0.65rem 0.9rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    line-height: 1.55;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    white-space: normal;
}

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

.findings-table tbody tr:hover {
    background: var(--bg-secondary);
}

/* Identifier columns stay tight so prose columns (tactic/evidence)
   get the room. */
.findings-table-incidents td:nth-child(1) {
    white-space: nowrap;
    font-weight: 500;
}

.findings-table-incidents td:nth-child(2) {
    white-space: nowrap;
    color: var(--text-secondary);
}

.findings-table-incidents td:nth-child(4) {
    color: var(--text-secondary);
}

.findings-empty {
    color: var(--text-secondary);
}

.findings-code {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--accent-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.45rem;
    border-radius: 0.25rem;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.5;
}

.findings-lead {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0.5rem 0 1.25rem;
}

.findings-meta {
    color: var(--text-secondary);
    font-size: 0.78em;
    font-weight: 400;
    margin-left: 0.3rem;
}

@media (max-width: 768px) {
    .findings-table {
        font-size: 0.78rem;
    }
    .findings-table th,
    .findings-table td {
        padding: 0.5rem 0.6rem;
    }
    .findings-code {
        font-size: 0.7rem;
    }
}

.observation-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.observation-block p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.observation-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.observation-block li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.observation-block li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

.observation-block code {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
}

.observation-block a {
    color: var(--accent-primary);
    text-decoration: underline;
    transition: var(--transition);
}

.observation-block a:hover {
    color: var(--accent-secondary);
}

.observation-block blockquote {
    border-left: 3px solid var(--accent-primary);
    margin: 1rem 0;
    padding: 0.75rem 1.25rem;
    background: var(--bg-tertiary);
    border-radius: 0 0.25rem 0.25rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.observation-block blockquote code {
    font-style: normal;
    font-size: 0.85em;
    background: var(--bg-secondary);
    padding: 0.15em 0.4em;
    border-radius: 0.2rem;
}

.observation-block blockquote strong {
    color: var(--text-primary);
    font-style: normal;
}

.trace-entry blockquote {
    margin: 0.4rem 0 0;
    border-left: none;
    background: none;
    padding: 0;
}

.agent-trace {
    margin: 1rem 0;
    border-left: 3px solid var(--border-color);
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.trace-entry {
    background: var(--bg-tertiary);
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
    position: relative;
}

.trace-entry.trace-violation {
    border-left: 3px solid var(--danger);
    background: color-mix(in srgb, var(--danger) 5%, var(--bg-tertiary));
}

.trace-time {
    font-weight: 700;
    color: var(--text-primary);
    margin-right: 0.75rem;
}

.trace-hours {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.trace-text {
    margin-top: 0.4rem;
    font-style: italic;
    color: var(--text-secondary);
}

.trace-action {
    margin-top: 0.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--danger);
    font-weight: 600;
}

.trace-gap {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    padding: 0.25rem 0;
    text-align: center;
}

.takeaways-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.takeaway-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
}

.takeaway-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-weight: 700;
    border-radius: 50%;
    font-size: 0.9rem;
}

.takeaway-item p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    padding-top: 0.25rem;
}

.takeaway-item strong {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .observations {
        padding: 3rem 0;
    }

    .observation-block {
        padding: 1.25rem;
    }

    .takeaway-item {
        padding: 1rem;
    }

    .team-inline {
        font-size: 1rem;
    }
}

/* Focus rings — keyboard-only, applied uniformly across interactive
   elements so tab-navigation never lands on something with no visible
   focus indicator. :focus-visible (vs :focus) skips mouse clicks, so
   pointer users don't see rings flash. */
:where(.btn, .copy-btn, .theme-toggle, .toggle-btn, .toggle-table-btn,
       .nav-github, .nav-links a, .dropdown-selected, .hamburger,
       a.team-lead, .changelog summary, details > summary):focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.dropdown-option:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: -2px;
}

/* ──────────────────────────────────────────────────────────────────
   RevengeBench additions: pipeline, arenas, carousel, protocol
   ────────────────────────────────────────────────────────────────── */

/* Leaderboard arena-column shorthand (mirrors .benchmark-col styling) */
th.arena-col,
td.arena-col {
    text-align: center;
    font-variant-numeric: tabular-nums;
    padding: 8px 10px;
}
td.rank-cell {
    font-weight: 700;
    color: var(--accent-primary);
    text-align: center;
    width: 56px;
}
td.model-cell {
    font-weight: 600;
    color: var(--text-primary);
}
td.avg-cell {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* ─── Pipeline 3-column ────────────────────────────────────────── */
.pipeline {
    padding: 80px 0;
    background: var(--bg-primary);
}
.pipeline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}
.pipeline-stage {
    padding: 32px 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.pipeline-stage-title {
    font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}
.pipeline-stage-text {
    color: var(--text-primary);
    line-height: 1.55;
    margin: 0;
    font-size: 16px;
}

/* Stage accent palette — light theme */
[data-theme="light"] .pipeline-observation { background: #e8f1e4; }
[data-theme="light"] .pipeline-observation .pipeline-stage-title { color: #3a6e2a; }
[data-theme="light"] .pipeline-observation .pipeline-stage-text  { color: #2a4a1f; }

[data-theme="light"] .pipeline-interaction { background: #e1ecf4; }
[data-theme="light"] .pipeline-interaction .pipeline-stage-title { color: #1f5480; }
[data-theme="light"] .pipeline-interaction .pipeline-stage-text  { color: #19384f; }

[data-theme="light"] .pipeline-evaluation  { background: #f5e9d5; }
[data-theme="light"] .pipeline-evaluation .pipeline-stage-title  { color: #a66b16; }
[data-theme="light"] .pipeline-evaluation .pipeline-stage-text   { color: #6a4310; }

/* Stage accent palette — dark theme */
[data-theme="dark"] .pipeline-observation { background: rgba(58, 110, 42, 0.18); }
[data-theme="dark"] .pipeline-observation .pipeline-stage-title { color: #8fc77c; }
[data-theme="dark"] .pipeline-interaction { background: rgba(31, 84, 128, 0.22); }
[data-theme="dark"] .pipeline-interaction .pipeline-stage-title { color: #7ab1d6; }
[data-theme="dark"] .pipeline-evaluation  { background: rgba(166, 107, 22, 0.18); }
[data-theme="dark"] .pipeline-evaluation .pipeline-stage-title  { color: #e0b46e; }

@media (max-width: 768px) {
    .pipeline-grid { grid-template-columns: 1fr; }
    .pipeline-stage-title { font-size: 24px; }
}

/* ─── Arenas ───────────────────────────────────────────────────── */
.arenas {
    padding: 80px 0;
    background: var(--bg-secondary);
}
.arena-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-top: 32px;
}
.arena-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.arena-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}
.arena-thumb {
    height: 160px;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.arena-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.arena-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.arena-name {
    font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}
.arena-lang {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--accent-primary);
    padding: 2px 8px;
    border: 1px solid var(--accent-primary);
    border-radius: 4px;
}
.arena-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
}
@media (max-width: 1024px) {
    .arena-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .arena-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
    .arena-grid { grid-template-columns: 1fr; }
}

/* ─── Protocol ─────────────────────────────────────────────────── */
.protocol {
    padding: 80px 0;
    background: var(--bg-primary);
}
.protocol-content {
    max-width: 820px;
    margin: 0 auto;
    color: var(--text-primary);
    line-height: 1.65;
}
.protocol-content > p:first-of-type {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 24px 0 32px;
}
.protocol-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.protocol-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}
.protocol-list li:last-child {
    border-bottom: none;
}
.protocol-list strong {
    color: var(--accent-primary);
    margin-right: 4px;
}
.protocol-metric {
    display: block;
    margin: 12px 0;
    text-align: center;
}

/* ─── Findings carousel ────────────────────────────────────────── */
.findings {
    padding: 80px 0;
    background: var(--bg-secondary);
}
.findings-carousel {
    position: relative;
    margin-top: 32px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 48px;
}
.finding-slide {
    display: none;
}
.finding-slide.active {
    display: block;
}
.finding-title {
    font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-primary);
    margin: 0 0 16px;
}
.finding-body {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 24px;
}
.finding-body ul {
    margin: 12px 0 0;
    padding-left: 20px;
}
.finding-body li {
    margin-bottom: 6px;
}
.finding-figure {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}
.finding-figure img {
    width: 100%;
    height: auto;
    display: block;
}
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.carousel-prev:hover,
.carousel-next:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
}
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.15s ease;
}
.carousel-dot.active {
    background: var(--accent-primary);
}
@media (max-width: 640px) {
    .findings-carousel { padding: 24px 16px; }
    .carousel-prev, .carousel-next { display: none; }
}

/* ─── KaTeX color follows theme ─────────────────────────────────── */
.katex { color: var(--text-primary); }

/* ─── Per-arena tab bar ────────────────────────────────────────── */
.arena-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin: 16px 0 12px;
    border-bottom: 1px solid var(--border-color);
}
.arena-tab {
    flex: 1 1 0;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.arena-tab:hover {
    color: var(--text-primary);
}
.arena-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}
@media (max-width: 640px) {
    .arena-tab { padding: 8px 12px; font-size: 12px; }
}

/* Make chart wrappers expand to fit dynamically-set height */
.leaderboard-chart-wrapper {
    position: relative;
    min-height: 400px;
}

* {
    border-radius: 0;
}
.carousel-dot,
.hamburger-line,
.theme-toggle,
.nav-github {
    border-radius: 0;
}
.theme-toggle, .nav-github { border: none; padding: 0.5rem; }
.carousel-dot { border-radius: 50%; }

body {
    letter-spacing: -0.005em;
}

/* Navbar — bottom hairline only, no fill, no border-radius */
.navbar {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

/* Hero */
.hero { text-align: left; padding: 6rem 0 4rem; }
.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    font-size: 1.3rem;
    white-space: nowrap;
    max-width: none;
    margin: 1rem 0 1rem 0;
    color: var(--text-secondary);
    letter-spacing: 0;
}
.hero-description {
    max-width: 720px;
    margin: 0;
}
.hero-description p { font-size: 1rem; color: var(--text-secondary); }
.hero-buttons {
    justify-content: flex-start;
    margin-top: 2.5rem;
}

/* Buttons */
.btn {
    border-radius: 0;
    padding: 0.65rem 1.1rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    border: 1px solid var(--text-primary);
    background: transparent;
    color: var(--text-primary);
}
.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}
.btn-primary:hover { background: transparent; color: var(--text-primary); }
.btn-secondary { background: transparent; color: var(--text-primary); }
.btn-secondary:hover { background: var(--text-primary); color: var(--bg-primary); }

/* Sections */
section {
    background: var(--bg-primary) !important;
    border-top: 1px solid var(--border-color);
    padding: 5rem 0;
}
.hero, .navbar { border-top: none; }
.container { max-width: 1240px; }

/* Section titles */
.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin: 0 0 2rem;
    text-align: left;
    color: var(--text-primary);
}
.section-subtitle {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin: 4rem 0 1rem;
    text-align: left;
}
.section-description {
    text-align: left;
    max-width: 720px;
    color: var(--text-secondary);
    margin: 0 0 2.5rem;
}

/* ─── Leaderboard ─── */
.leaderboard-chart {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 2.5rem;
}
.leaderboard-controls {
    border: none;
    padding: 0;
    margin: 0.5rem 0 1.5rem;
    background: transparent;
}
.leaderboard-table { border-radius: 0; overflow-x: auto; }
.leaderboard-table table {
    border-collapse: collapse;
    width: 100%;
    border: none;
    border-radius: 0;
    background: transparent;
    min-width: 0;
}
.leaderboard-table thead { background: transparent; }
.leaderboard-table tbody tr:hover { background: transparent; }
.leaderboard-table tbody tr:last-child td { border-bottom: 1px solid var(--border-color); }
.leaderboard-table th {
    border-top: 1px solid var(--text-primary);
    border-bottom: 1px solid var(--text-primary);
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    text-align: left;
    padding: 0.85rem 0.75rem;
}
.leaderboard-table td {
    border: none;
    border-bottom: 1px solid var(--border-color);
    background: transparent !important;
    padding: 0.75rem;
    text-align: left;
    font-variant-numeric: tabular-nums;
}
.leaderboard-table th.arena-col,
.leaderboard-table td.arena-col,
.leaderboard-table th:nth-child(3),
.leaderboard-table td.avg-cell,
.leaderboard-table td.rank-cell {
    text-align: right;
}
.leaderboard-table th.arena-col { text-align: right; }
.leaderboard-table td.rank-cell {
    color: var(--text-secondary);
    font-weight: 400;
    width: 48px;
}
.leaderboard-table td.model-cell { font-weight: 600; }
.leaderboard-table td.avg-cell strong { font-weight: 700; }

/* Dropdown */
.custom-dropdown { border: 1px solid var(--border-color); min-width: 280px; }
.dropdown-selected { background: transparent; padding: 0.55rem 2.25rem 0.55rem 0.95rem; font-size: 0.95rem; }
.dropdown-options { border: 1px solid var(--border-color); border-top: none; }
.dropdown-option { padding: 0.5rem 0.85rem; }
.dropdown-option:hover { background: var(--bg-tertiary); }
.dropdown-option.active { background: var(--text-primary); color: var(--bg-primary); }

/* Arena tabs */
.arena-tabs { border-bottom: 1px solid var(--border-color); }
.arena-tab {
    color: var(--text-secondary);
    font-family: inherit;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    padding: 0.9rem 0.5rem;
}
.arena-tab:hover { color: var(--text-primary); }
.arena-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

/* ─── Pipeline ─── */
.pipeline-grid {
    border: none;
    gap: 2.5rem;
}
.pipeline-stage {
    background: transparent !important;
    border: none !important;
    padding: 0;
    position: relative;
    display: block;
}
.pipeline-stage::before {
    content: attr(data-step);
    display: block;
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1;
    color: var(--text-secondary);
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}
.pipeline-stage-title {
    color: var(--text-primary) !important;
    font-size: 1.5rem !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
}
.pipeline-stage-text {
    color: var(--text-primary) !important;
    font-size: 0.95rem;
    line-height: 1.6;
}
@media (max-width: 768px) {
    .pipeline-stage { border: none !important; }
}

/* ─── Arenas ─── */
.arena-grid { gap: 2rem; }
.arena-card {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}
.arena-card:hover { transform: none; box-shadow: none; border: none; }
.arena-card:hover .arena-name { text-decoration: underline; text-underline-offset: 4px; }
.arena-thumb {
    height: 180px;
    background: var(--bg-tertiary);
    margin-bottom: 1rem;
}
.arena-meta { display: block; margin-bottom: 0.35rem; }
.arena-name {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    display: inline;
}
.arena-lang {
    border: none;
    padding: 0;
    margin-left: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: none;
}
.arena-lang::before { content: '· '; }
.arena-desc { color: var(--text-secondary); font-size: 0.9rem; }

/* ─── Protocol ─── */
.protocol-content > p:first-of-type { margin-top: 0; }
.protocol-list li { padding: 0.5rem 0; border-bottom: none; }
.protocol-list li + li { margin-top: 0.5rem; }
.protocol-list strong { color: var(--text-primary); margin-right: 0; }

/* ─── Findings carousel ─── */
.findings-carousel {
    background: transparent;
    border: none;
    padding: 0;
}
.finding-title {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}
.finding-figure { background: transparent; padding: 0; margin-top: 2rem; }
.carousel-prev, .carousel-next {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    font-size: 18px;
}
.carousel-prev:hover, .carousel-next:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}
.carousel-dot { background: var(--border-color); }
.carousel-dot.active { background: var(--text-primary); }

/* ─── Team ─── */
.team-inline { text-align: left; font-size: 1.05rem; line-height: 1.9; }
.team-inline a { color: var(--text-primary); font-weight: 600; }
.team-inline a.team-lead { font-size: 1.05rem; font-weight: 700; }
.team-inline a:hover { color: var(--text-primary); text-decoration: underline; text-underline-offset: 4px; }
.team-inline sup { color: var(--text-secondary); }
.team-affiliations { text-align: left; color: var(--text-secondary); margin-top: -0.5rem; font-size: 1rem; line-height: 1.55; }

/* ─── Citation ─── */
.citation-box {
    background: var(--bg-tertiary);
    border: none;
    padding: 1.5rem;
}
.citation-text {
    color: var(--text-primary);
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
    font-size: 0.8rem;
}
.copy-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.copy-btn:hover { background: var(--text-primary); color: var(--bg-primary); border-color: var(--text-primary); }

.nav-links a { color: var(--text-secondary); font-size: 1rem; }
.logo { font-size: 1.4rem; }
.nav-links a:hover { color: var(--text-primary); }
.logo { font-weight: 600; letter-spacing: -0.01em; }
.logo-accent { color: var(--text-primary); }

.title-accent { color: var(--text-primary); }

.theme-toggle { border: 1px solid var(--border-color) !important; }
.nav-github { color: var(--text-secondary); }
.nav-github:hover { color: var(--text-primary); background: transparent; }

.team-inline,
.team-affiliations,
.citation .section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    width: 100%;
}
.citation-box {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    width: 100%;
}

.protocol-content { margin-left: 0; margin-right: 0; max-width: none; }
.arenas .section-description,
.protocol .section-description { max-width: none; }
.protocol-metric { text-align: left; }

.citation-text { padding-right: 0; }

.citation-text { white-space: pre; overflow-x: auto; word-break: normal; }


.dropdown-selected { border: none; border-radius: 0; }
.dropdown-options { border-radius: 0; }

html { font-size: 19px; }

.protocol-content > p:first-of-type {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 2.5rem;
    max-width: none;
}

.pipeline-stage-text { color: var(--text-secondary) !important; }
.protocol-list li { color: var(--text-secondary); }
.protocol-list strong { color: var(--text-primary); }
.finding-body,
.finding-body p,
.finding-body ul,
.finding-body li { color: var(--text-secondary); }
.finding-body strong { color: var(--text-primary); }

.leaderboard .leaderboard-chart { margin-bottom: 6rem; }
.leaderboard .leaderboard-table { margin-bottom: 6rem; }
.leaderboard .leaderboard-controls { margin: 0 0 1.5rem; }
.leaderboard .arena-tabs { margin: 0 0 1.5rem; }
.leaderboard .leaderboard-chart:last-of-type { margin-bottom: 0; }

.team-affiliation-logo {
    display: block;
    margin-top: 1.25rem;
}
.team-affiliation-logo img {
    height: 100px;
    width: auto;
    display: block;
    transition: opacity 0.2s ease;
}
.team-affiliation-logo:hover img { opacity: 0.75; }
[data-theme="dark"] .team-affiliation-logo img { filter: invert(1); }

.findings-carousel .carousel-prev,
.findings-carousel .carousel-next {
    position: static;
    transform: none;
}
.findings-carousel .carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0;
}
.findings-carousel .carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.team-affiliation-logos {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}
.team-affiliation-logos .team-affiliation-logo {
    display: block;
    margin-top: 0;
}
.team-affiliation-logos .team-affiliation-logo img {
    height: 70px;
    width: auto;
    display: block;
}

.hero .hero-description { max-width: 800px; margin: 0 0 2rem 0; }
.hero .hero-description p { max-width: 800px; }

.hero-title-row {
    position: relative;
    margin-bottom: 1rem;
}
.hero-title-row .hero-title { margin-bottom: 0; }
.hero-logo {
    position: absolute;
    top: 0;
    right: 0;
    height: clamp(5rem, 13vw, 11rem);
    width: auto;
    display: block;
}
@media (max-width: 640px) {
    .hero-logo { position: static; height: 5rem; margin-top: 1rem; }
}

[data-theme="dark"] .hero-logo { filter: invert(1); }

.findings-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0 0 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}
.findings-nav-item {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-secondary);
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    font-family: inherit;
    transition: color 0.15s ease;
}
.findings-nav-item:hover { color: var(--text-primary); }
.findings-nav-item.active { color: var(--text-primary); }
.findings-nav-num {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: inherit;
    opacity: 0.55;
}
.findings-nav-item.active .findings-nav-num { opacity: 1; }
.findings-nav-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: inherit;
}

.findings-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin: 0 0 2rem;
    border-bottom: 1px solid var(--border-color);
}
.findings-tab {
    flex: 1 1 0;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.9rem 0.5rem;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.findings-tab:hover { color: var(--text-primary); }
.findings-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}
@media (max-width: 640px) {
    .findings-tab { padding: 0.7rem 0.4rem; font-size: 0.7rem; }
}
