/* Vision LLM benchmark (November 2026). Builds on global/style.css tokens, so it follows light/dark mode. */

.bench-meta {
    margin-top: 14px;
    font-size: 0.9rem;
    color: var(--text-low);
}

.bench {
    max-width: 1200px;
    margin: 0 auto;
}

.bench section {
    padding: 0;
    margin: 0 0 56px;
}

.bench h2 {
    margin-bottom: 16px;
}

.bench h3 {
    margin: 28px 0 12px;
}

.bench h4 {
    margin: 22px 0 8px;
    color: var(--text-high);
    font-size: 1.05rem;
    line-height: 1.4;
}

.bench p,
.bench li {
    color: var(--text-med);
    line-height: 1.7;
}

.bench p {
    margin-bottom: 12px;
}

.bench ul {
    padding-left: 22px;
    margin: 12px 0;
}

.bench li {
    margin-bottom: 8px;
}

.bench code {
    font-size: 0.88em;
    padding: 1px 5px;
    border-radius: 5px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-high);
    overflow-wrap: anywhere;
}

.bench a {
    color: var(--accent-teal);
}

.bench-disclosure {
    padding: 14px 18px;
    margin-bottom: 40px !important;
    border-left: 3px solid var(--accent-teal);
    background: var(--bg-surface);
    border-radius: 0 12px 12px 0;
    font-size: 0.95rem;
}

.bench p,
.bench li,
.bench h4 {
    max-width: 920px;
}

/* Tables */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-surface);
    margin: 12px 0 16px;
    -webkit-overflow-scrolling: touch;
}

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

.bench th,
.bench td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    color: var(--text-med);
    white-space: nowrap;
}

.bench thead th {
    color: var(--text-high);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
    white-space: normal;
    vertical-align: bottom;
}

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

.bench tbody tr:hover td {
    background: rgba(127, 127, 127, 0.06);
}

.bench .num {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.bench table.lead td {
    font-variant-numeric: tabular-nums;
}

.model-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.model-cell strong {
    color: var(--text-high);
}

.model-tag {
    align-self: flex-start;
}

.dim {
    color: var(--text-low);
    font-size: 0.85em;
}

.highlight-score {
    color: var(--text-high);
}

.grade {
    display: inline-block;
    min-width: 26px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-high);
}

/* Heatmap: single hue, opacity encodes score; text stays in text ink */
.bench td.heat {
    text-align: center;
    font-weight: 600;
    color: var(--text-high);
    background: rgba(0, 150, 170, var(--a, 0));
    border-left: 2px solid var(--bg-main);
    font-variant-numeric: tabular-nums;
}

.notes {
    max-width: 920px;
    font-size: 0.88rem;
}

.notes ul {
    margin-top: 4px;
}

/* Chart */
.chart-box {
    position: relative;
    height: 480px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-surface);
    margin: 16px 0 8px;
}

/* Photos */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.photo-grid figure {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-surface);
}

.photo-grid img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.photo-grid figcaption {
    padding: 10px 12px 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-med);
}

.photo-grid figcaption strong {
    display: block;
    color: var(--text-high);
    font-weight: 600;
    margin-bottom: 2px;
}

.photo-grid figcaption span {
    color: var(--text-low);
}

/* Call to action */
.bench-cta {
    max-width: 920px;
    padding: 28px;
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent-teal);
    border-radius: 16px;
    background: var(--bg-surface);
}

.bench-cta .hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

@media (max-width: 640px) {
    .chart-box {
        height: 400px;
        padding: 8px;
    }

    .bench-cta {
        padding: 20px;
    }
}
