﻿/* 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-meta-link {
    padding: 0.48rem 0.72rem;
    border: 1px solid rgba(14, 165, 233, 0.22);
    border-radius: 999px;
    background: #0369a1;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: none;
}

.ai-benchmark-meta-link:hover {
    color: #ffffff;
    background: #075985;
}

.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;
}

/* Index 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;
}

/* Company radar */
.ai-company-radar {
    scroll-margin-top: 92px;
    margin-bottom: 1.25rem;
    padding: clamp(1rem, 2.4vw, 1.35rem);
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.12), transparent 34%),
        rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.ai-company-radar-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
}

.ai-company-radar h2 {
    margin: 0.45rem 0 0.35rem;
    color: #06111f;
    font-size: clamp(1.45rem, 2.6vw, 2.25rem);
    font-weight: 950;
}

.ai-company-radar p {
    max-width: 760px;
    margin: 0;
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.65;
}

.ai-company-radar-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(82px, 1fr));
    gap: 0.5rem;
}

.ai-company-radar-stats span {
    padding: 0.75rem;
    border: 1px solid rgba(14, 165, 233, 0.16);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.78);
    text-align: center;
}

.ai-company-radar-stats strong {
    display: block;
    color: #06111f;
    font-size: 1.45rem;
    line-height: 1;
}

.ai-company-radar-stats small {
    display: block;
    margin-top: 0.24rem;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ai-company-region-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1rem;
}

.ai-company-region-tabs button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 38px;
    padding: 0.52rem 0.74rem;
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: 999px;
    color: #475569;
    background: rgba(255, 255, 255, 0.82);
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
    cursor: pointer;
}

.ai-company-region-tabs button:hover,
.ai-company-region-tabs button.is-active {
    border-color: rgba(14, 165, 233, 0.42);
    color: #0369a1;
    background: #e0f2fe;
}

.ai-company-region-tabs span {
    display: inline-grid;
    place-items: center;
    min-width: 1.45rem;
    height: 1.45rem;
    padding: 0 0.32rem;
    border-radius: 999px;
    color: #075985;
    background: rgba(255, 255, 255, 0.78);
    font-size: 0.68rem;
}

.ai-company-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: start;
}

.ai-company-card {
    display: grid;
    align-content: start;
    gap: 0.78rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}

.ai-company-card-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
}

.ai-company-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #e0f2fe;
    color: #075985;
    font-size: 0.82rem;
    font-weight: 950;
    overflow: hidden;
}

.ai-company-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-company-card h3 {
    margin: 0;
    color: #06111f;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 900;
}

.ai-company-card-top div > span {
    display: block;
    margin-top: 0.16rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.ai-company-type {
    padding: 0.3rem 0.5rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ai-company-type--public {
    background: #dbeafe;
    color: #1d4ed8;
}

.ai-company-type--private {
    background: #fef3c7;
    color: #92400e;
}

.ai-company-card p {
    margin: 0;
    color: #475569;
    font-size: 0.84rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.ai-company-market-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(120px, 1fr);
    gap: 0.65rem;
    align-items: center;
    min-width: 0;
    padding: 0.74rem;
    border: 1px solid rgba(14, 165, 233, 0.14);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.14), transparent 42%),
        #f8fafc;
}

.ai-company-market-panel span,
.ai-company-market-panel small {
    display: block;
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ai-company-market-panel strong {
    display: block;
    margin: 0.18rem 0;
    color: #06111f;
    font-size: 1.14rem;
    font-weight: 950;
    line-height: 1.1;
}

.ai-company-market-panel small {
    text-transform: none;
}

.ai-company-market-panel .is-up,
.ai-company-sparkline.is-up {
    color: #047857;
}

.ai-company-market-panel .is-down,
.ai-company-sparkline.is-down {
    color: #b91c1c;
}

.ai-company-market-panel .is-flat,
.ai-company-sparkline.is-flat {
    color: #0369a1;
}

.ai-company-sparkline {
    width: 100%;
    height: 52px;
    color: #0369a1;
    overflow: visible;
}

.ai-company-sparkline polyline {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    filter: drop-shadow(0 6px 10px rgba(14, 165, 233, 0.22));
}

.ai-company-sparkline-empty {
    display: grid;
    place-items: center;
    min-height: 52px;
    border: 1px dashed rgba(148, 163, 184, 0.32);
    border-radius: 14px;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 850;
}

.ai-company-market-panel.is-manual-panel {
    background: #f8fafc;
}

.ai-company-data-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.ai-company-data-strip span {
    min-width: 0;
    padding: 0.58rem 0.62rem;
    border: 1px solid rgba(14, 165, 233, 0.13);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(240, 249, 255, 0.9), rgba(248, 250, 252, 0.85));
}

.ai-company-data-strip strong {
    display: block;
    overflow: hidden;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 950;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-company-data-strip small {
    display: block;
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.63rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ai-company-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.ai-company-metrics span {
    min-width: 0;
    padding: 0.58rem;
    border-radius: 14px;
    background: #f8fafc;
    text-align: center;
}

.ai-company-metrics strong {
    display: block;
    color: #06111f;
    font-size: 0.94rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.ai-company-metrics small {
    display: block;
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ai-company-metrics .is-up strong,
.ai-company-metrics .is-positive strong {
    color: #047857;
}

.ai-company-metrics .is-down strong,
.ai-company-metrics .is-negative strong {
    color: #b91c1c;
}

.ai-company-metrics .is-neutral strong,
.ai-company-metrics .is-manual strong {
    color: #0369a1;
}

.ai-company-metrics .is-pending strong {
    color: #475569;
}

.ai-company-news {
    padding: 0.7rem;
    border-left: 3px solid #38bdf8;
    border-radius: 13px;
    background: #f8fafc;
}

.ai-company-news span {
    display: block;
    margin-bottom: 0.24rem;
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ai-company-news a,
.ai-company-news strong {
    color: #0f172a;
    font-size: 0.82rem;
    line-height: 1.45;
    font-weight: 800;
    text-decoration: none;
}

.ai-company-news a:hover {
    color: #0369a1;
}

.ai-company-source {
    display: flex;
    flex-wrap: wrap;
    gap: 0.34rem;
    align-items: center;
}

.ai-company-source span,
.ai-company-source a {
    max-width: 100%;
    padding: 0.28rem 0.46rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    color: #475569;
    background: #ffffff;
    font-size: 0.64rem;
    font-weight: 850;
    line-height: 1.15;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.ai-company-source a {
    color: #0369a1;
}

.ai-company-source .is-fresh {
    color: #047857;
    border-color: rgba(4, 120, 87, 0.18);
    background: #ecfdf5;
}

.ai-company-source .is-stale {
    color: #92400e;
    border-color: rgba(146, 64, 14, 0.18);
    background: #fffbeb;
}

.ai-company-source .is-manual {
    color: #475569;
    background: #f8fafc;
}

.ai-company-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: min(100%, 340px);
    min-height: 44px;
    margin: 1rem auto 0;
    padding: 0.68rem 1rem;
    border: 1px solid rgba(14, 165, 233, 0.28);
    border-radius: 999px;
    color: #0369a1;
    background: rgba(224, 242, 254, 0.78);
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.ai-company-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(14, 165, 233, 0.48);
    background: #e0f2fe;
}

.ai-company-toggle[hidden] {
    display: none;
}

.ai-company-toggle i {
    transition: transform 0.18s ease;
}

.ai-company-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* 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;
}

.source-status {
    display: block;
    width: max-content;
    margin-top: 0.35rem;
    padding: 0.12rem 0.42rem;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.source-status--backed {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.source-status--estimate {
    background: rgba(100, 116, 139, 0.14);
    color: #334155;
}

/* 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; }
}

/* Two-column lists grid */
.ai-benchmark-lists-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 0;
}

@media (min-width: 980px) {
    .ai-benchmark-lists-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    .ai-benchmark-lists-grid > section {
        margin-bottom: 1.25rem;
    }
    /* compact chart rows when side-by-side */
    .ai-benchmark-lists-grid .chart-row {
        grid-template-columns: 2.2rem minmax(80px, 1.5fr) minmax(0, 3fr) 2.6rem;
        gap: 0.5rem;
        padding: 0.3rem 0.4rem;
    }
    .ai-benchmark-lists-grid .chart-name strong {
        font-size: 0.85rem;
    }
    .ai-benchmark-lists-grid .chart-name small {
        font-size: 0.68rem;
    }
    .ai-benchmark-lists-grid .ai-benchmark-chart-head h3 {
        font-size: 1.05rem;
    }
    .ai-benchmark-lists-grid .hle-blurb {
        font-size: 0.78rem;
    }
}

/* 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;
}

/* 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);
}

.source-label--link {
    color: #0369a1;
    cursor: pointer;
    text-decoration: none;
}

.source-label--link:hover {
    color: #0284c7;
    border-bottom-color: currentColor;
}

/* Empty and 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 */
.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,
    .ai-company-radar-head,
    .ai-company-grid {
        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;
    }

    .ai-company-market-panel {
        grid-template-columns: minmax(0, 1fr) minmax(140px, 0.8fr);
    }

    .methodology-body {
        grid-template-columns: 1fr;
    }

    .ai-benchmark-filterbar {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .ai-benchmark-fgroup,
    .ai-benchmark-fgroup + .ai-benchmark-fgroup {
        width: 100%;
        padding-left: 0;
        margin-left: 0;
        border-left: 0;
    }

    .ai-benchmark-tabs,
    .ai-benchmark-pills {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.15rem;
        scrollbar-width: thin;
    }

    .ai-benchmark-tab,
    .ai-benchmark-pill {
        flex: 0 0 auto;
    }
}

@media (max-width: 560px) {
    .ai-benchmark-hero .container {
        width: 100%;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .ai-benchmark-hero {
        padding: 1.45rem 0 1rem;
        overflow-x: hidden;
    }

    .ai-benchmark-hero-grid {
        gap: 1rem;
        min-width: 0;
    }

    .ai-benchmark-hero-copy,
    .ai-benchmark-summary {
        min-width: 0;
    }

    .ai-benchmark-hero h1 {
        max-width: 100%;
        font-size: clamp(1.85rem, 9.5vw, 2.35rem);
        line-height: 1.08;
        overflow-wrap: anywhere;
    }

    .ai-benchmark-hero p {
        max-width: 100%;
        font-size: 0.98rem;
        line-height: 1.58;
        overflow-wrap: anywhere;
    }

    .ai-benchmark-kicker {
        max-width: 100%;
        align-items: flex-start;
        font-size: 0.72rem;
        line-height: 1.35;
        white-space: normal;
    }

    .ai-benchmark-meta {
        gap: 0.45rem;
    }

    .ai-benchmark-meta span {
        max-width: 100%;
        overflow-wrap: anywhere;
        border-radius: 14px;
    }

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

    .ai-benchmark-summary span {
        min-height: 88px;
        min-width: 0;
        padding: 0.8rem;
        border-radius: 15px;
    }

    .ai-benchmark-summary strong {
        font-size: 1.65rem;
    }

    .ai-benchmark-scorebar,
    .ai-benchmark-filterbar {
        border-radius: 16px;
    }

    .ai-benchmark-scorebar-more {
        width: 100%;
        margin-left: 1.65rem;
    }

    .ai-company-radar {
        padding: 0.9rem;
        border-radius: 18px;
    }

    .ai-company-radar-stats,
    .ai-company-data-strip {
        grid-template-columns: 1fr;
    }

    .ai-company-market-panel {
        grid-template-columns: 1fr;
        padding: 0.68rem;
    }

    .ai-company-sparkline,
    .ai-company-sparkline-empty {
        min-height: 46px;
    }

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

    .ai-benchmark-chart,
    .ai-benchmark-hle,
    .ai-benchmark-providers,
    .ai-benchmark-timeline,
    .ai-benchmark-table-wrap,
    .ai-benchmark-methodology,
    .ai-benchmark-note {
        border-radius: 18px;
    }

    .ai-benchmark-chart,
    .ai-benchmark-hle,
    .ai-benchmark-providers,
    .ai-benchmark-timeline {
        padding: 1rem;
    }

    .ai-benchmark-table-wrap {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }

    .ai-benchmark-table th,
    .ai-benchmark-table td {
        padding: 0.75rem 0.85rem;
    }

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

    .ai-company-radar-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

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

    .ai-company-radar-stats,
    .ai-company-metrics {
        grid-template-columns: 1fr;
    }
}

/* Dark mode */
[data-theme="dark"] .ai-benchmarks-page,
.dark-mode .ai-benchmarks-page {
    background:
        radial-gradient(circle at 12% 6%, rgba(56, 189, 248, 0.14), transparent 30%),
        radial-gradient(circle at 92% 18%, rgba(34, 211, 238, 0.08), transparent 26%),
        linear-gradient(180deg, #071323, #0a1728 42%, #081322);
    color: #dbeafe;
}

[data-theme="dark"] .ai-benchmark-hero h1,
[data-theme="dark"] .ai-benchmark-leader h2,
[data-theme="dark"] .ai-benchmark-chart-head h3,
[data-theme="dark"] .provider-card-head h4,
[data-theme="dark"] .media-card-top strong,
[data-theme="dark"] .methodology-body h4,
[data-theme="dark"] .ai-benchmark-empty strong,
[data-theme="dark"] .ai-benchmark-note strong,
.dark-mode .ai-benchmark-hero h1,
.dark-mode .ai-benchmark-leader h2,
.dark-mode .ai-benchmark-chart-head h3,
.dark-mode .provider-card-head h4,
.dark-mode .media-card-top strong,
.dark-mode .methodology-body h4,
.dark-mode .ai-benchmark-empty strong,
.dark-mode .ai-benchmark-note strong {
    color: #f0f7ff;
}

[data-theme="dark"] .ai-benchmark-hero p,
[data-theme="dark"] .ai-benchmark-leader p,
[data-theme="dark"] .hle-blurb,
[data-theme="dark"] .model-sub,
[data-theme="dark"] .score-num,
[data-theme="dark"] .modality-tag,
[data-theme="dark"] .media-card-provider,
[data-theme="dark"] .media-card-note,
[data-theme="dark"] .formula-note,
[data-theme="dark"] .methodology-sources p,
[data-theme="dark"] .ai-benchmark-note,
.dark-mode .ai-benchmark-hero p,
.dark-mode .ai-benchmark-leader p,
.dark-mode .hle-blurb,
.dark-mode .model-sub,
.dark-mode .score-num,
.dark-mode .modality-tag,
.dark-mode .media-card-provider,
.dark-mode .media-card-note,
.dark-mode .formula-note,
.dark-mode .methodology-sources p,
.dark-mode .ai-benchmark-note {
    color: #a9bed6;
}

[data-theme="dark"] .ai-benchmark-meta span,
[data-theme="dark"] .ai-benchmark-summary span,
[data-theme="dark"] .ai-benchmark-scorebar,
[data-theme="dark"] .ai-benchmark-leader,
[data-theme="dark"] .ai-benchmark-chart,
[data-theme="dark"] .ai-benchmark-hle,
[data-theme="dark"] .ai-benchmark-providers,
[data-theme="dark"] .ai-benchmark-timeline,
[data-theme="dark"] .ai-benchmark-filterbar,
[data-theme="dark"] .ai-benchmark-table-wrap,
[data-theme="dark"] .ai-benchmark-empty,
[data-theme="dark"] .ai-benchmark-table-empty,
[data-theme="dark"] .ai-benchmark-media-card,
[data-theme="dark"] .ai-benchmark-methodology,
[data-theme="dark"] .ai-benchmark-note,
[data-theme="dark"] .ai-company-radar,
[data-theme="dark"] .ai-company-card,
.dark-mode .ai-benchmark-meta span,
.dark-mode .ai-benchmark-summary span,
.dark-mode .ai-benchmark-scorebar,
.dark-mode .ai-benchmark-leader,
.dark-mode .ai-benchmark-chart,
.dark-mode .ai-benchmark-hle,
.dark-mode .ai-benchmark-providers,
.dark-mode .ai-benchmark-timeline,
.dark-mode .ai-benchmark-filterbar,
.dark-mode .ai-benchmark-table-wrap,
.dark-mode .ai-benchmark-empty,
.dark-mode .ai-benchmark-table-empty,
.dark-mode .ai-benchmark-media-card,
.dark-mode .ai-benchmark-methodology,
.dark-mode .ai-benchmark-note,
.dark-mode .ai-company-radar,
.dark-mode .ai-company-card {
    border-color: rgba(125, 211, 252, 0.16);
    background: rgba(15, 34, 56, 0.72);
    box-shadow: 0 18px 44px rgba(2, 8, 23, 0.22);
}

[data-theme="dark"] .ai-benchmark-leader,
.dark-mode .ai-benchmark-leader {
    background:
        radial-gradient(circle at 85% 18%, rgba(56, 189, 248, 0.16), transparent 34%),
        rgba(15, 34, 56, 0.78);
}

[data-theme="dark"] .ai-benchmark-table th,
.dark-mode .ai-benchmark-table th {
    background: rgba(10, 24, 42, 0.88);
    color: #bdd7f0;
}

[data-theme="dark"] .ai-benchmark-table td,
.dark-mode .ai-benchmark-table td {
    color: #dbeafe;
    border-bottom-color: rgba(125, 211, 252, 0.12);
}

[data-theme="dark"] .ai-benchmark-table tbody tr:hover td,
.dark-mode .ai-benchmark-table tbody tr:hover td {
    background: rgba(56, 189, 248, 0.08);
}

[data-theme="dark"] .ai-benchmark-tab,
[data-theme="dark"] .ai-benchmark-pill,
.dark-mode .ai-benchmark-tab,
.dark-mode .ai-benchmark-pill {
    background: rgba(13, 28, 47, 0.82);
    border-color: rgba(125, 211, 252, 0.16);
    color: #c3d4e8;
}

[data-theme="dark"] .ai-benchmark-tab.is-active,
[data-theme="dark"] .ai-benchmark-pill.is-active,
.dark-mode .ai-benchmark-tab.is-active,
.dark-mode .ai-benchmark-pill.is-active {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    border-color: rgba(125, 211, 252, 0.45);
    color: #f8fbff;
}

[data-theme="dark"] .score-pill.score-high,
.dark-mode .score-pill.score-high {
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
}

[data-theme="dark"] .score-pill.score-mid,
.dark-mode .score-pill.score-mid {
    background: rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
}

[data-theme="dark"] .source-label,
.dark-mode .source-label {
    color: #93c5fd;
    border-bottom-color: rgba(147, 197, 253, 0.32);
}

[data-theme="dark"] .formula-grid span,
.dark-mode .formula-grid span {
    color: #c3d4e8;
}

[data-theme="dark"] .ai-company-radar h2,
[data-theme="dark"] .ai-company-card h3,
[data-theme="dark"] .ai-company-market-panel strong,
[data-theme="dark"] .ai-company-metrics strong,
[data-theme="dark"] .ai-company-data-strip strong,
.dark-mode .ai-company-radar h2,
.dark-mode .ai-company-card h3,
.dark-mode .ai-company-market-panel strong,
.dark-mode .ai-company-metrics strong,
.dark-mode .ai-company-data-strip strong {
    color: #f0f7ff;
}

[data-theme="dark"] .ai-company-radar p,
[data-theme="dark"] .ai-company-card p,
[data-theme="dark"] .ai-company-card-top div > span,
[data-theme="dark"] .ai-company-market-panel span,
[data-theme="dark"] .ai-company-market-panel small,
[data-theme="dark"] .ai-company-metrics small,
[data-theme="dark"] .ai-company-data-strip small,
[data-theme="dark"] .ai-company-source span,
.dark-mode .ai-company-radar p,
.dark-mode .ai-company-card p,
.dark-mode .ai-company-card-top div > span,
.dark-mode .ai-company-market-panel span,
.dark-mode .ai-company-market-panel small,
.dark-mode .ai-company-metrics small,
.dark-mode .ai-company-data-strip small,
.dark-mode .ai-company-source span {
    color: #a9bed6;
}

[data-theme="dark"] .ai-company-metrics span,
[data-theme="dark"] .ai-company-market-panel,
[data-theme="dark"] .ai-company-data-strip span,
[data-theme="dark"] .ai-company-region-tabs button,
[data-theme="dark"] .ai-company-sparkline-empty,
[data-theme="dark"] .ai-company-news,
[data-theme="dark"] .ai-company-source span,
[data-theme="dark"] .ai-company-source a,
.dark-mode .ai-company-metrics span,
.dark-mode .ai-company-market-panel,
.dark-mode .ai-company-data-strip span,
.dark-mode .ai-company-region-tabs button,
.dark-mode .ai-company-sparkline-empty,
.dark-mode .ai-company-news,
.dark-mode .ai-company-source span,
.dark-mode .ai-company-source a {
    border-color: rgba(125, 211, 252, 0.14);
    background: rgba(10, 24, 42, 0.72);
}
