/* ── Base page ─────────────────────────────────────────────────── */
.ai-benchmarks-page {
    background:
        radial-gradient(circle at 12% 8%, rgba(14, 165, 233, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.92));
    color: #0f172a;
    padding-bottom: 5rem;
}

.ai-benchmarks-page .container {
    max-width: 1180px;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.ai-benchmark-hero {
    padding: clamp(2.5rem, 6vw, 5.5rem) 0 2rem;
}

.ai-benchmark-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.8fr);
    gap: clamp(1.2rem, 3vw, 2rem);
    align-items: end;
}

.ai-benchmark-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #0078b8;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ai-benchmark-kicker::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 0 18px rgba(14, 165, 233, 0.32);
}

.ai-benchmark-hero h1 {
    max-width: 100%;
    margin: 0.9rem 0 1rem;
    color: #06111f;
    font-size: clamp(2rem, 4.2vw, 3.6rem);
    line-height: 1.02;
    font-weight: 950;
    overflow-wrap: break-word;
}

.ai-benchmark-hero p {
    max-width: 690px;
    margin: 0;
    color: #475569;
    font-size: clamp(1rem, 1.5vw, 1.16rem);
    line-height: 1.75;
}

.ai-benchmark-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.25rem;
}

.ai-benchmark-meta span {
    padding: 0.48rem 0.72rem;
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #334155;
    font-size: 0.82rem;
    font-weight: 800;
}

.ai-benchmark-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.ai-benchmark-summary span {
    min-height: 106px;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.ai-benchmark-summary strong {
    display: block;
    color: #06111f;
    font-size: 2rem;
    line-height: 1;
}

.ai-benchmark-summary small {
    display: block;
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

/* ── Board section ─────────────────────────────────────────────── */
.ai-benchmark-board-section {
    padding: 1.25rem 0 0;
}

/* ── Scorebar (inline explainer) ───────────────────────────────── */
.ai-benchmark-scorebar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem 0.7rem;
    margin-bottom: 1rem;
    padding: 0.65rem 0.95rem;
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: 14px;
    background: rgba(236, 254, 255, 0.55);
    color: #334155;
    font-size: 0.85rem;
    line-height: 1.55;
}

.ai-benchmark-scorebar svg {
    flex-shrink: 0;
    color: #0369a1;
}

.ai-benchmark-scorebar strong {
    color: #06111f;
    font-weight: 850;
}

.ai-benchmark-scorebar-more {
    margin-left: auto;
    color: #0369a1;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.ai-benchmark-scorebar-more:hover {
    text-decoration: underline;
}

/* ── Leader card ───────────────────────────────────────────────── */
.ai-benchmark-leader {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: clamp(1rem, 2.5vw, 1.45rem);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 22px;
    background:
        radial-gradient(circle at 85% 20%, rgba(34, 211, 238, 0.1), transparent 30%),
        rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.065);
}

.ai-benchmark-leader h2 {
    margin: 0.45rem 0 0.3rem;
    color: #06111f;
    font-size: clamp(1.55rem, 3vw, 2.6rem);
    font-weight: 950;
}

.ai-benchmark-leader p {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 700;
}

.ai-benchmark-leader-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.ai-benchmark-leader-score {
    display: grid;
    place-items: center;
    width: 112px;
    aspect-ratio: 1;
    border-radius: 24px;
    background: linear-gradient(135deg, #0f172a, #0369a1);
    color: #fff;
}

.ai-benchmark-leader-score.score-high {
    background: linear-gradient(135deg, #0f172a, #0284c7);
}

.ai-benchmark-leader-score.score-mid {
    background: linear-gradient(135deg, #1e293b, #0369a1);
}

.ai-benchmark-leader-score strong {
    font-size: 2.4rem;
    line-height: 0.95;
}

.ai-benchmark-leader-score small {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.7rem;
}

/* ── Badges ────────────────────────────────────────────────────── */
.abadge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.52rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.abadge--oss {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.abadge--china {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

.abadge--europe {
    background: rgba(99, 102, 241, 0.12);
    color: #4338ca;
}

.abadge--type {
    background: rgba(14, 165, 233, 0.1);
    color: #0369a1;
}

/* ── Top performers chart ──────────────────────────────────────── */
.ai-benchmark-chart {
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.35rem 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.08), transparent 40%),
        rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.055);
}

.ai-benchmark-chart-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.ai-benchmark-chart-head h3 {
    margin: 0.35rem 0 0;
    color: #06111f;
    font-size: 1.2rem;
    font-weight: 900;
}

.ai-benchmark-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.legend-dot {
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    margin-right: 0.3rem;
    border-radius: 999px;
    vertical-align: middle;
}

.legend-dot--us      { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.legend-dot--europe  { background: linear-gradient(135deg, #818cf8, #4f46e5); }
.legend-dot--china   { background: linear-gradient(135deg, #fb7185, #dc2626); }

.ai-benchmark-chart-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
}

.chart-row {
    display: grid;
    grid-template-columns: 2.5rem minmax(120px, 1.5fr) minmax(0, 4fr) 2.5rem;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.45rem;
    border-radius: 10px;
    transition: background 0.15s;
}

.chart-row:hover {
    background: rgba(241, 245, 249, 0.6);
}

.chart-rank {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.chart-name strong {
    display: block;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.25;
}

.chart-name small {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    margin-top: 0.08rem;
}

.chart-bar-wrap {
    height: 0.85rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
    overflow: hidden;
}

.chart-bar {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    transition: width 0.4s ease;
}

.chart-row--europe .chart-bar {
    background: linear-gradient(90deg, #818cf8, #4f46e5);
}

.chart-row--china-asia .chart-bar {
    background: linear-gradient(90deg, #fb7185, #dc2626);
}

.chart-value {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 900;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
    .chart-row {
        grid-template-columns: 2rem minmax(0, 1.6fr) minmax(0, 2.4fr) 2.2rem;
        gap: 0.4rem;
        font-size: 0.85rem;
    }
    .chart-name strong { font-size: 0.82rem; }
}

/* ── HLE leaderboard ───────────────────────────────────────────── */
.ai-benchmark-hle {
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.35rem 1.1rem;
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(168, 85, 247, 0.06), transparent 40%),
        rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.055);
}

.ai-benchmark-hle .ai-benchmark-kicker {
    color: #7c3aed;
}

.ai-benchmark-hle .ai-benchmark-kicker::before {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.35);
}

.ai-benchmark-hle .chart-bar {
    background: linear-gradient(90deg, #a855f7, #6366f1);
}

.ai-benchmark-hle .chart-row--china-asia .chart-bar {
    background: linear-gradient(90deg, #f472b6, #be185d);
}

.ai-benchmark-hle .chart-value small {
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.7rem;
}

.hle-blurb {
    margin: 0.5rem 0 0;
    max-width: 640px;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.55;
    font-weight: 500;
}

.hle-badge {
    align-self: flex-start;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.12);
    color: #6d28d9;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── Radar chart ───────────────────────────────────────────────── */
.ai-benchmark-radar {
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.35rem 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.055);
}

.ai-benchmark-radar-grid {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
}

.radar-svg {
    width: 100%;
    max-width: 360px;
    height: auto;
}

.radar-legend {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radar-legend li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.radar-dot {
    flex-shrink: 0;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 4px;
}

.radar-legend strong {
    display: block;
    color: #06111f;
    font-size: 0.92rem;
    font-weight: 850;
    line-height: 1.2;
}

.radar-legend small {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

@media (max-width: 720px) {
    .ai-benchmark-radar-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .radar-legend {
        width: 100%;
    }
}

/* ── Provider portfolio ────────────────────────────────────────── */
.ai-benchmark-providers {
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.35rem 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.05);
}

.provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.85rem;
    margin-top: 0.25rem;
}

.provider-card {
    position: relative;
    padding: 0.9rem 1rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.provider-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #06b6d4, #2563eb);
}

.provider-card--europe::before {
    background: linear-gradient(90deg, #818cf8, #4f46e5);
}

.provider-card--china-asia::before {
    background: linear-gradient(90deg, #fb7185, #dc2626);
}

.provider-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    border-color: rgba(14, 165, 233, 0.3);
}

.provider-card-head h4 {
    margin: 0;
    color: #06111f;
    font-size: 1rem;
    font-weight: 900;
}

.provider-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.35rem;
}

.provider-stats {
    margin: 0.75rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.provider-stats div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.2);
}

.provider-stats div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.provider-stats dt {
    margin: 0;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

.provider-stats dd {
    margin: 0;
    min-width: 0;
    text-align: right;
}

.provider-stats dd strong {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 800;
    vertical-align: middle;
}

.provider-score {
    display: inline-grid;
    place-items: center;
    min-width: 2.1rem;
    height: 1.55rem;
    margin-left: 0.4rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
    font-size: 0.78rem;
    font-weight: 900;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
}

.provider-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.provider-avg strong {
    color: #06111f;
    font-size: 0.95rem;
    font-weight: 900;
}

.provider-bar-wrap {
    margin-top: 0.55rem;
    height: 0.4rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    overflow: hidden;
}

.provider-bar {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    transition: width 0.4s ease;
}

.provider-card--europe .provider-bar {
    background: linear-gradient(90deg, #818cf8, #4f46e5);
}

.provider-card--china-asia .provider-bar {
    background: linear-gradient(90deg, #fb7185, #dc2626);
}

/* ── Release timeline ──────────────────────────────────────────── */
.ai-benchmark-timeline {
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.35rem 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 100%, rgba(34, 197, 94, 0.06), transparent 40%),
        rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.055);
}

.timeline-year {
    background: rgba(34, 197, 94, 0.13);
    color: #15803d;
}

.timeline-wrap {
    position: relative;
    margin-top: 1rem;
    padding-top: 1.6rem;
}

.timeline-axis {
    position: absolute;
    top: 0;
    left: 7rem;
    right: 0.4rem;
    height: 1.2rem;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.3);
}

.timeline-month {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.timeline-tracks {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.timeline-track {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    align-items: center;
    gap: 0.6rem;
}

.timeline-label {
    color: #334155;
    font-size: 0.82rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 0.4rem;
    text-align: right;
    border-right: 1px solid rgba(148, 163, 184, 0.2);
}

.timeline-line {
    position: relative;
    height: 1.7rem;
    background:
        linear-gradient(to right, rgba(14, 165, 233, 0.06), rgba(14, 165, 233, 0.06)) center / 100% 2px no-repeat;
    border-radius: 999px;
}

.timeline-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 4px 10px rgba(14, 165, 233, 0.25);
    cursor: help;
    transition: transform 0.15s, box-shadow 0.15s;
}

.timeline-dot:hover {
    transform: translate(-50%, -50%) scale(1.4);
    z-index: 5;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.15), 0 8px 16px rgba(14, 165, 233, 0.4);
}

.timeline-dot--sm { width: 0.65rem; height: 0.65rem; }
.timeline-dot--md { width: 0.85rem; height: 0.85rem; }
.timeline-dot--lg { width: 1.05rem; height: 1.05rem; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12), 0 6px 14px rgba(14, 165, 233, 0.35); }

.timeline-track--europe .timeline-dot {
    background: linear-gradient(135deg, #818cf8, #4f46e5);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 4px 10px rgba(99, 102, 241, 0.3);
}

.timeline-track--china-asia .timeline-dot {
    background: linear-gradient(135deg, #fb7185, #dc2626);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 4px 10px rgba(220, 38, 38, 0.3);
}

@media (max-width: 720px) {
    .timeline-axis { left: 5rem; }
    .timeline-track { grid-template-columns: 5rem minmax(0, 1fr); }
    .timeline-label { font-size: 0.74rem; }
    .timeline-month { font-size: 0.62rem; }
}

@media (max-width: 500px) {
    .timeline-month:nth-child(even) { display: none; }
}

/* ── Filter bar ────────────────────────────────────────────────── */
.ai-benchmark-filterbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
}

.ai-benchmark-fgroup {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem 0.45rem;
    min-width: 0;
}

.ai-benchmark-fgroup + .ai-benchmark-fgroup {
    padding-left: 1rem;
    border-left: 1px solid rgba(148, 163, 184, 0.18);
    margin-left: auto;
}

.ai-benchmark-flabel {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #94a3b8;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ai-benchmark-flabel svg {
    color: #94a3b8;
}

.ai-benchmark-tabs,
.ai-benchmark-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    min-width: 0;
}

.ai-benchmark-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.6rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.55);
    color: #475569;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.14s, color 0.14s, border-color 0.14s, box-shadow 0.14s;
}

.ai-benchmark-tab:hover {
    background: rgba(14, 165, 233, 0.08);
    color: #0369a1;
    border-color: rgba(14, 165, 233, 0.25);
}

.ai-benchmark-tab.is-active {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    border-color: #0369a1;
    color: #fff;
    box-shadow: 0 4px 12px rgba(3, 105, 161, 0.25);
}

.tab-dot {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.tab-dot--us    { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.tab-dot--china { background: linear-gradient(135deg, #fb7185, #dc2626); }

.tab-count {
    display: inline-grid;
    place-items: center;
    min-width: 1.4rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.13);
    color: #0369a1;
    font-size: 0.7rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.ai-benchmark-tab.is-active .tab-count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.ai-benchmark-pill {
    padding: 0.24rem 0.65rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.55);
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.14s, color 0.14s, border-color 0.14s, box-shadow 0.14s;
}

.ai-benchmark-pill:hover {
    background: rgba(14, 165, 233, 0.08);
    color: #0369a1;
    border-color: rgba(14, 165, 233, 0.25);
}

.ai-benchmark-pill.is-active {
    background: linear-gradient(135deg, #0f172a, #0369a1);
    border-color: #0369a1;
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
}

/* ── Table ─────────────────────────────────────────────────────── */
.ai-benchmark-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.055);
}

.ai-benchmark-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.ai-benchmark-table th,
.ai-benchmark-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    text-align: left;
    vertical-align: middle;
}

.ai-benchmark-table th {
    color: #475569;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background: rgba(248, 250, 252, 0.9);
    white-space: nowrap;
    cursor: default;
}

.ai-benchmark-table th[title] {
    border-bottom: 1px dashed rgba(14, 165, 233, 0.3);
    cursor: help;
}

.ai-benchmark-table td {
    color: #0f172a;
    font-weight: 750;
}

.ai-benchmark-table tr:last-child td {
    border-bottom: 0;
}

.ai-benchmark-table tbody tr:hover td {
    background: rgba(241, 245, 249, 0.5);
}

/* first-col: model name */
.ai-benchmark-table td:first-child strong {
    display: block;
    font-size: 0.95rem;
}

.model-sub {
    display: block;
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 650;
}

.model-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.35rem;
}

/* score pill */
.score-pill {
    display: inline-grid;
    place-items: center;
    min-width: 2.55rem;
    min-height: 2.1rem;
    padding: 0 0.4rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 900;
}

.score-pill.score-high {
    background: rgba(14, 165, 233, 0.13);
    color: #0369a1;
}

.score-pill.score-mid {
    background: rgba(148, 163, 184, 0.14);
    color: #334155;
}

.score-pill.score-low {
    background: rgba(148, 163, 184, 0.1);
    color: #64748b;
}

.score-num {
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
}

.modality-tag {
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.source-label {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: default;
    border-bottom: 1px dashed rgba(100, 116, 139, 0.3);
}

/* ── Empty / no-results ────────────────────────────────────────── */
.ai-benchmark-empty,
.ai-benchmark-table-empty {
    margin-top: 1rem;
    padding: 1.2rem 1.3rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    color: #475569;
    line-height: 1.65;
}

.ai-benchmark-empty strong {
    display: block;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.ai-benchmark-table-empty {
    text-align: center;
    font-size: 0.9rem;
}

.link-btn {
    background: none;
    border: none;
    padding: 0;
    color: #0369a1;
    font-weight: 800;
    cursor: pointer;
    text-decoration: underline;
}

/* ── Media sections (image / video) ───────────────────────────── */
.ai-benchmark-media-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.ai-benchmark-media-header {
    margin-bottom: 1rem;
}

.ai-benchmark-media-header h3 {
    margin: 0.4rem 0 0.3rem;
    color: #06111f;
    font-size: 1.35rem;
    font-weight: 900;
}

.ai-benchmark-media-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 650;
}

.ai-benchmark-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.75rem;
}

.ai-benchmark-media-card {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045);
    transition: box-shadow 0.15s, transform 0.15s;
}

.ai-benchmark-media-card:hover {
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.media-card-top {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-bottom: 0.5rem;
}

.media-card-top strong {
    color: #06111f;
    font-size: 0.95rem;
}

.media-card-provider {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.media-card-note {
    margin: 0.5rem 0 0;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.5;
}

/* ── Methodology ───────────────────────────────────────────────── */
.ai-benchmark-methodology {
    margin-top: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    overflow: hidden;
}

.ai-benchmark-methodology summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 850;
    list-style: none;
    user-select: none;
}

.ai-benchmark-methodology summary::-webkit-details-marker {
    display: none;
}

.ai-benchmark-methodology summary:hover {
    color: #0369a1;
}

.method-chevron {
    flex-shrink: 0;
    color: #94a3b8;
    transition: transform 0.2s;
}

.ai-benchmark-methodology[open] .method-chevron {
    transform: rotate(180deg);
}

.methodology-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    padding: 0 1.25rem 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.methodology-body h4 {
    margin: 0 0 0.75rem;
    color: #06111f;
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.formula-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
}

.formula-grid span {
    display: flex;
    gap: 0.5rem;
    font-size: 0.84rem;
    color: #334155;
    line-height: 1.5;
}

.formula-grid strong {
    min-width: 2.8rem;
    color: #0369a1;
    font-weight: 900;
}

.formula-note {
    margin: 0.9rem 0 0;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.6;
}

.methodology-sources ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.methodology-sources li {
    font-size: 0.84rem;
    color: #334155;
    line-height: 1.55;
    padding-left: 0.85rem;
    border-left: 2px solid rgba(14, 165, 233, 0.3);
}

.methodology-sources li strong {
    color: #0f172a;
}

.methodology-sources p {
    margin: 0.75rem 0 0;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.6;
}

/* ── Reading note ──────────────────────────────────────────────── */
.ai-benchmark-note {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    color: #475569;
    font-size: 0.86rem;
    line-height: 1.65;
}

.ai-benchmark-note strong {
    color: #0f172a;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .ai-benchmark-hero-grid,
    .ai-benchmark-leader {
        grid-template-columns: 1fr;
    }

    .ai-benchmark-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-benchmark-leader-score {
        width: 100%;
        max-width: 180px;
        aspect-ratio: 1.55;
        justify-self: start;
    }

    .methodology-body {
        grid-template-columns: 1fr;
    }

    .ai-benchmark-filterbar {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
}

@media (max-width: 560px) {
    .ai-benchmark-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-benchmark-summary span {
        min-height: 88px;
    }

    .ai-benchmark-tabs {
        flex-wrap: wrap;
    }

    .ai-benchmark-media-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 380px) {
    .ai-benchmark-media-grid {
        grid-template-columns: 1fr;
    }
}
