/* Shared Editorial Upgrade for AI Leaderboards (Writing, Image, TTS, Video, Vision)
 * Loaded after tts-leaderboard.css and llm-agent-index.css.
 * Brings unified warm charcoal dark / warm paper light visual polish, fixes dark-mode
 * bar cell glare, fixes monochrome vendor icons, and styles minimalist FAQ + table controls. */

/* Unify dark/light tokens across the 5 AI boards (bd-wr, bd-img, bd-tts, bd-vid, bd-vis) */
.lx4.tx {
    --x-surface: var(--la-bg);
    --x-soft: var(--la-well);
    --x-head: var(--la-well);
    --x-line: var(--la-hair);
    --x-text: var(--la-ink);
    --x-muted: var(--la-sub);
    --x-accent: var(--la-blue);
}

/* Fix monochrome vendor icons in dark mode across all AI boards (including Anthropic!) */
html[data-theme="dark"] .lx4 img.lx-ic.tx-mono,
html[data-theme="dark"] .lx4 img.lx-ic[src*="/anthropic.svg"],
html[data-theme="dark"] .lx4 img.lx-ic[src*="/openai.svg"],
html[data-theme="dark"] .lx4 img.lx-ic[src*="/xai.svg"],
html[data-theme="dark"] .lx4 img.lx-ic[src*="/elevenlabs.svg"],
html[data-theme="dark"] .lx4 img.lx-ic[src*="/fishaudio.svg"],
html[data-theme="dark"] .lx4 img.lx-ic[src*="/bfl.svg"],
html[data-theme="dark"] .lx4 img.lx-ic[src*="/runway.svg"],
html[data-theme="dark"] .lx4 img.lx-ic[src*="/luma.svg"],
html[data-theme="dark"] .lx4 img.lx-ic[src*="/recraft.svg"],
html[data-theme="dark"] .lx4 img.lx-ic[src*="/reve.svg"],
html[data-theme="dark"] .lx4 img.lx-ic[src*="/krea.svg"],
html[data-theme="dark"] .lx4 img.lx-ic[src*="/ideogram.svg"],
html[data-theme="dark"] .lx4 img.lx-ic[src*="/moonshot.svg"],
html[data-theme="dark"] .lx4 img.lx-ic[src*="/ibm.svg"],
html[data-theme="dark"] .lx4 img.lx-ic[src*="/inception.svg"] {
    filter: invert(1) brightness(1.12);
}

/* Editorial framing for the main board table section */
.lx4.tx #lx-board.lx-bd {
    margin: 22px 0 28px;
    padding: 22px 24px 20px;
    border: 1px solid var(--la-hair);
    border-radius: 16px;
    background: var(--la-bg);
}
@media (max-width: 768px) {
    .lx4.tx #lx-board.lx-bd { padding: 16px 14px; border-radius: 12px; }
}
.lx4.tx #lx-board .lx-bdh {
    margin-bottom: 12px;
}
.lx4.tx #lx-board .lx-bh {
    font-family: var(--la-serif);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -.01em;
}

/* Clean table container & refined editorial borders */
.lx4.tx .tx-tw {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}
.lx4.tx .tx-tbl {
    border-collapse: collapse;
    background: transparent !important;
}
.lx4.tx .tx-tbl thead th {
    background: var(--la-well) !important;
    border-color: var(--la-hair) !important;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 9px 10px;
}
.lx4.tx .tx-tbl thead th,
.lx4.tx .tx-tbl thead th a {
    color: var(--la-sub) !important;
}
.lx4.tx .tx-tbl thead th.is-s a {
    color: var(--la-blue) !important;
}
.lx4.tx .tx-tbl tbody tr {
    border-bottom: 1px solid var(--la-hair) !important;
    transition: background .12s;
}
.lx4.tx .tx-tbl tbody tr:hover {
    background: rgba(26, 124, 232, .045) !important;
}
html[data-theme="dark"] .lx4.tx .tx-tbl tbody tr:hover {
    background: rgba(255, 255, 255, .04) !important;
}
.lx4.tx .tx-tbl tbody td {
    padding: 10px 10px;
    border-color: var(--la-hair) !important;
    background-color: transparent !important;
}

/* CRITICAL FIX: Replace glaring bright-white --p bar fill on dark mode with sleek subtle bottom cobalt progress bar! */
.lx4.tx .tx-tbl td[style*="--p"] {
    background-image: linear-gradient(90deg, rgba(26, 124, 232, .22) 0%, rgba(26, 124, 232, .22) var(--p, 0%), rgba(28, 27, 24, .05) var(--p, 0%)) !important;
    background-size: 100% 3px !important;
    background-position: left bottom !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
}
html[data-theme="dark"] .lx4.tx .tx-tbl td[style*="--p"] {
    background-image: linear-gradient(90deg, rgba(39, 148, 255, .68) 0%, rgba(39, 148, 255, .68) var(--p, 0%), rgba(255, 255, 255, .05) var(--p, 0%)) !important;
    background-size: 100% 3px !important;
    background-position: left bottom !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
}

/* Crisp Gold / Silver / Bronze medal badges matching llm-leaderboard.php */
.lx4.tx .tx-tbl tbody td.c-rk b.lx-rk,
.lx4.tx .lx-rk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 5px;
    font-size: .75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
html[data-theme="dark"] .lx4.tx .tx-tbl tbody td.c-rk b.lx-rk.g1,
.lx4.tx .tx-tbl tbody td.c-rk b.lx-rk.g1,
.lx4.tx .lx-rk.g1 { background: #e6b830 !important; color: #181611 !important; border: 0 !important; }
html[data-theme="dark"] .lx4.tx .tx-tbl tbody td.c-rk b.lx-rk.g2,
.lx4.tx .tx-tbl tbody td.c-rk b.lx-rk.g2,
.lx4.tx .lx-rk.g2 { background: #cfd5df !important; color: #181611 !important; border: 0 !important; }
html[data-theme="dark"] .lx4.tx .tx-tbl tbody td.c-rk b.lx-rk.g3,
.lx4.tx .tx-tbl tbody td.c-rk b.lx-rk.g3,
.lx4.tx .lx-rk.g3 { background: #d68d5c !important; color: #181611 !important; border: 0 !important; }

/* Hide rows cleanly when collapsed or filtered out */
.lx4.tx tr.ab-hidden { display: none !important; }

/* Refined secondary sections (AA-only new models, method, week changes) */
.lx4.tx .lx-sec {
    margin: 24px 0;
    padding: 22px 24px 20px;
    border: 1px solid var(--la-hair);
    border-radius: 16px;
    background: var(--la-bg);
}
@media (max-width: 768px) {
    .lx4.tx .lx-sec { padding: 16px 14px; border-radius: 12px; }
}
.lx4.tx .lx-sec > .lx-h,
.lx4.tx .lx-sec > .lx-bdh .lx-h {
    font-family: var(--la-serif);
    font-size: 1.3rem;
    font-weight: 500;
    margin-top: 0;
}

/* Minimalist thin-divider Accordion FAQ (matching Screenshot 4 & llm-leaderboard.php) */
.lx4.tx #tx-faq details.lx-qa {
    border: 0 !important;
    border-top: 1px solid var(--la-hair) !important;
    border-radius: 0 !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}
.lx4.tx #tx-faq details.lx-qa:last-of-type {
    border-bottom: 1px solid var(--la-hair) !important;
}
.lx4.tx #tx-faq details.lx-qa summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 2px;
    list-style: none;
    cursor: pointer;
    font-size: .9375rem;
    font-weight: 500;
    color: var(--la-ink) !important;
}
.lx4.tx #tx-faq details.lx-qa summary::-webkit-details-marker { display: none; }
.lx4.tx #tx-faq details.lx-qa summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--la-sub);
    border-bottom: 1.5px solid var(--la-sub);
    transform: rotate(45deg);
    transition: transform .18s ease;
    flex: none;
    margin-right: 4px;
}
.lx4.tx #tx-faq details.lx-qa[open] summary::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}
.lx4.tx #tx-faq details.lx-qa p {
    padding: 0 2px 16px;
    margin: 0;
    font-size: .875rem;
    line-height: 1.65;
    color: var(--la-sub) !important;
}

/* Segmented tab bar refinement */
.lx4.tx .tx-flt .lx-seg {
    background: var(--la-well);
    border: 1px solid var(--la-hair);
    border-radius: 10px;
}
.lx4.tx .lx-wk {
    border-color: var(--la-hair);
    background: var(--la-bg);
    border-radius: 14px;
}
.lx4.tx .lx-week { margin: 18px 0 22px; }

/* ============================================================================
 * Unified Editorial Tokens & Layout for ALL 8 Tabs of llm-leaderboard.php
 * Matches Agent Arena Index + 5 Sister AI Leaderboards in Light & Dark Modes
 * ============================================================================ */
.lx4.bd-llm {
    --x-surface: var(--la-bg);
    --x-soft: var(--la-well);
    --x-head: var(--la-well);
    --x-line: var(--la-hair);
    --x-text: var(--la-ink);
    --x-muted: var(--la-sub);
    --x-accent: var(--la-blue);
    --x-accent-soft: var(--la-blue-soft);
}
html[data-theme="dark"] .lx4.bd-llm {
    --x-surface: var(--la-bg);
    --x-soft: var(--la-well);
    --x-head: var(--la-well);
    --x-line: var(--la-hair);
    --x-text: var(--la-ink);
    --x-muted: var(--la-sub);
    --x-accent: var(--la-blue);
    --x-accent-soft: var(--la-blue-soft);
}

/* Hero & Unified 8-Tab Switcher */
.lx4.bd-llm .lx-hero h1 {
    font-family: var(--la-serif);
    font-weight: 500;
    letter-spacing: -.012em;
}
.lx4.bd-llm .lx-chip {
    background: var(--la-bg);
    border-color: var(--la-hair);
    color: var(--la-sub);
}
.lx4.bd-llm .lx-chip.is-link {
    background: var(--la-blue-soft);
    border-color: transparent;
    color: var(--la-blue);
}
.lx4.bd-llm .la-nav {
    margin: 14px 0 18px;
}
.lx4.bd-llm .la-nav .lx-seg {
    background: var(--la-well);
    border: 1px solid var(--la-hair);
    border-radius: 11px;
    padding: 4px;
}
.lx4.bd-llm .la-nav a.lx-tab {
    color: var(--la-sub);
    border-radius: 8px;
}
.lx4.bd-llm .la-nav a.lx-tab.is-on {
    background: var(--la-bg) !important;
    color: var(--la-ink) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
    font-weight: 600;
}

/* Monochrome Vendor SVG Inversion in Dark Mode (table, A-Z index, chart bubbles) */
html[data-theme="dark"] .lx4.bd-llm img.lx-ic[src*="anthropic.svg"],
html[data-theme="dark"] .lx4.bd-llm img.lx-ic[src*="openai.svg"],
html[data-theme="dark"] .lx4.bd-llm img.lx-ic[src*="xai.svg"],
html[data-theme="dark"] .lx4.bd-llm img.lx-ic[src*="moonshot.svg"],
html[data-theme="dark"] .lx4.bd-llm img.lx-ic[src*="ibm.svg"],
html[data-theme="dark"] .lx4.bd-llm img.lx-ic[src*="inception.svg"],
html[data-theme="dark"] .lx4.bd-llm img.lx-ic[src*="xiaomi.svg"],
html[data-theme="dark"] .lx4.bd-llm image.llm-point-icon[href*="anthropic.svg"],
html[data-theme="dark"] .lx4.bd-llm image.llm-point-icon[href*="openai.svg"],
html[data-theme="dark"] .lx4.bd-llm image.llm-point-icon[href*="xai.svg"],
html[data-theme="dark"] .lx4.bd-llm image.llm-point-icon[href*="moonshot.svg"],
html[data-theme="dark"] .lx4.bd-llm image.llm-point-icon[href*="ibm.svg"],
html[data-theme="dark"] .lx4.bd-llm image.llm-point-icon[href*="inception.svg"],
html[data-theme="dark"] .lx4.bd-llm image.llm-point-icon[href*="xiaomi.svg"] {
    filter: invert(1) brightness(1.15);
}

/* Toolbar & Complete Leaderboard Card on text/open/code/cheap/new */
.lx4.bd-llm .lx-tb {
    margin: 0 0 14px;
}
.lx4.bd-llm .la-chart-stage .lx-tb {
    margin: 18px 0 6px;
}
.lx4.bd-llm .lx-q input,
.lx4.bd-llm label.lx-sel,
.lx4.bd-llm .lx-ib,
.lx4.bd-llm .lx-fbtn {
    background: var(--la-bg) !important;
    border-color: var(--la-hair) !important;
    color: var(--la-ink) !important;
}
html[data-theme="dark"] .lx4.bd-llm .lx-sel select option {
    background: #252420;
    color: #f2efe8;
}
.lx4.bd-llm .lx-grp {
    background: var(--la-well);
    border: 1px solid var(--la-hair);
}
html[data-theme="dark"] .lx4.bd-llm a.lx-gb.is-active {
    background: var(--la-bg) !important;
    color: var(--la-ink) !important;
}

.lx4.bd-llm #lx-board.lx-bd {
    margin: 0 0 24px;
    padding: 22px 24px 20px;
    border: 1px solid var(--la-hair);
    border-radius: 16px;
    background: var(--la-bg);
}
@media (max-width: 768px) {
    .lx4.bd-llm #lx-board.lx-bd { padding: 16px 14px; border-radius: 12px; }
}
.lx4.bd-llm #lx-board .lx-bdh {
    margin-top: 0;
}
.lx4.bd-llm #lx-board .lx-bh,
.lx4.bd-llm .la-stage > .lx-h,
.lx4.bd-llm .lx-wk .lx-h {
    font-family: var(--la-serif);
    font-weight: 500;
}
.lx4.bd-llm .lx-tbl th {
    background: var(--la-well) !important;
    color: var(--la-sub) !important;
    border-color: var(--la-hair) !important;
}
.lx4.bd-llm .lx-tbl td {
    border-color: var(--la-hair) !important;
}
.lx4.bd-llm .lx-tbl tbody tr:hover td {
    background: rgba(26, 124, 232, .045) !important;
}
html[data-theme="dark"] .lx4.bd-llm .lx-tbl tbody tr:hover td {
    background: rgba(255, 255, 255, .035) !important;
}
.lx4.bd-llm .lx-tbl td.c-ar.is-p,
.lx4.bd-llm .lx-tbl td.c-ag.is-p,
.lx4.bd-llm .lx-tbl td.c-in.is-p,
.lx4.bd-llm .lx-tbl td.c-co.is-p {
    background: var(--la-blue-soft) !important;
}
/* Ensure #1/#2/#3 Gold/Silver/Bronze badges always keep dark readable ink in both light & dark modes */
html[data-theme="dark"] .lx4.bd-llm .lx-rk.t.g1,
.lx4.bd-llm .lx-rk.t.g1 { background: #e6b830 !important; color: #181611 !important; border: 0 !important; }
html[data-theme="dark"] .lx4.bd-llm .lx-rk.t.g2,
.lx4.bd-llm .lx-rk.t.g2 { background: #cfd5df !important; color: #181611 !important; border: 0 !important; }
html[data-theme="dark"] .lx4.bd-llm .lx-rk.t.g3,
.lx4.bd-llm .lx-rk.t.g3 { background: #d68d5c !important; color: #181611 !important; border: 0 !important; }

/* View-all button unified with Agent Index .la-morebtn */
.lx4.bd-llm .lx-more {
    margin: 14px 0 0;
}
.lx4.bd-llm .lx-more a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 18px;
    border: 1px solid var(--la-hair-strong);
    border-radius: 10px;
    background: transparent;
    color: var(--la-sub);
    font-size: .875rem;
    font-weight: 500;
    text-align: center;
    transition: border-color .15s, color .15s, background .15s;
}
.lx4.bd-llm .lx-more a:hover {
    border-color: var(--la-blue);
    color: var(--la-ink);
    background: var(--la-well);
}

/* Week cards + secondary sections */
.lx4.bd-llm .lx-week {
    margin: 0 0 24px;
    gap: 16px;
}
.lx4.bd-llm .lx-wk {
    border: 1px solid var(--la-hair);
    border-radius: 16px;
    background: var(--la-bg);
}

/* Pareto & Speed Chart Views seamlessly styled inside .la-chart-stage */
.lx4.bd-llm .la-chart-stage .llm-results-meta {
    margin: 10px 0 4px;
    color: var(--la-sub);
    font-size: .8125rem;
}
.lx4.bd-llm .la-chart-stage .llm-pareto {
    margin: 10px 0 0 !important;
    padding: 12px 0 0 !important;
    border: 0 !important;
    border-top: 1px solid var(--la-hair) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.lx4.bd-llm .llm-pareto-scroll {
    background: transparent !important;
}
.lx4.bd-llm .llm-pareto-grid {
    stroke: var(--la-hair) !important;
}
.lx4.bd-llm .llm-pareto-tick,
.lx4.bd-llm .llm-pareto-axis {
    fill: var(--la-dim) !important;
}
.lx4.bd-llm .llm-pareto-line {
    stroke: var(--la-blue) !important;
}
.lx4.bd-llm .llm-point-bg,
.lx4.bd-llm .llm-pareto-pt > circle {
    fill: var(--la-bg) !important;
    stroke: var(--la-hair-strong) !important;
}
.lx4.bd-llm .llm-pareto-pt.is-front .llm-point-bg,
.lx4.bd-llm .llm-pareto-pt.is-front > circle {
    stroke: var(--la-blue) !important;
}
.lx4.bd-llm .llm-pareto-pt.is-selected .llm-point-bg,
.lx4.bd-llm .llm-pareto-pt.is-selected > circle {
    stroke: var(--la-blue-hi) !important;
}
.lx4.bd-llm .llm-point-letter {
    fill: var(--la-ink) !important;
}
.lx4.bd-llm .llm-pareto-label {
    fill: var(--la-sub) !important;
}
.lx4.bd-llm .llm-pareto-label.is-forced {
    fill: var(--la-ink) !important;
}
.lx4.bd-llm .llm-chart-heading h2 {
    font-family: var(--la-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--la-ink) !important;
}
.lx4.bd-llm .llm-pareto-legend {
    color: var(--la-sub) !important;
}
.lx4.bd-llm .llm-pareto-legend i {
    background: var(--la-bg) !important;
    border-color: var(--la-hair-strong) !important;
}
.lx4.bd-llm .llm-pareto-legend .is-front i,
.lx4.bd-llm .llm-front-tag {
    background: var(--la-blue-soft) !important;
    border-color: var(--la-blue) !important;
    color: var(--la-blue) !important;
}
.lx4.bd-llm .llm-chart-note,
.lx4.bd-llm .llm-chart-detail,
.lx4.bd-llm .llm-chart-list-details {
    background: var(--la-well) !important;
    border-color: var(--la-hair) !important;
    color: var(--la-ink) !important;
}
.lx4.bd-llm .llm-chart-note p,
.lx4.bd-llm .llm-pareto-note,
.lx4.bd-llm .llm-pareto-mval {
    color: var(--la-sub) !important;
}
.lx4.bd-llm .llm-pareto-name {
    color: var(--la-ink) !important;
}
.lx4.bd-llm .llm-pareto-row:hover,
.lx4.bd-llm .llm-chart-select:hover {
    background: rgba(39, 148, 255, .08) !important;
}
.lx4.bd-llm .la-stage .lx-sum {
    background: var(--la-well) !important;
    border-color: var(--la-hair) !important;
    color: var(--la-ink) !important;
}
.lx4.bd-llm .la-stage .lx-src li,
.lx4.bd-llm .la-stage .lx-idxg {
    border-color: var(--la-hair) !important;
    background: var(--la-well) !important;
}
.lx4.bd-llm .la-stage .lx-ucard {
    border-color: var(--la-hair) !important;
    background: var(--la-well) !important;
}

/* ============================================================================
 * Editorial Upgrade for Sources, GEO TL;DR, Methodology Steps & FAQ (All 6 AI Boards)
 * ============================================================================ */

/* Section Header Row (.ab-sec-head): Serif H2 + Subtle Pill */
.lx4 .ab-sec-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
    margin: 0 0 16px;
}
.lx4 .ab-sec-head h2,
.lx4 .ab-sec-head .lx-h,
.lx4 .ab-sec-head .la-title {
    margin: 0 !important;
    font-family: var(--la-serif);
    font-size: 1.375rem;
    font-weight: 500;
    letter-spacing: -.012em;
    color: var(--la-ink);
}
.lx4 .ab-sec-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border: 1px solid var(--la-hair);
    border-radius: 999px;
    background: var(--la-well);
    color: var(--la-sub);
    font-size: .75rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* GEO Answer-First TL;DR Callout (.ab-tldr) */
.lx4 .ab-tldr {
    margin: 0 0 18px;
    padding: 15px 18px 16px;
    border: 1px solid var(--la-hair);
    border-left: 3px solid var(--la-blue);
    border-radius: 12px;
    background: var(--la-well);
}
.lx4 .ab-tldr-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    margin-bottom: 6px;
}
.lx4 .ab-tldr-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--la-blue);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.lx4 .ab-tldr-kicker i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.lx4 .ab-tldr-upd {
    color: var(--la-dim);
    font-size: .75rem;
    font-variant-numeric: tabular-nums;
}
.lx4 .ab-tldr-body {
    margin: 0;
    max-width: 82ch;
    color: var(--la-ink);
    font-size: .925rem;
    line-height: 1.76;
}

/* 2-Column Attribution Source Cards (Zero Outbound Links) */
.lx4 :is(#llm-sources, #tx-method) .lx-src.lx-srcc {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    max-width: none;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}
.lx4 :is(#llm-sources, #tx-method) .lx-src.lx-srcc > li,
html[data-theme="dark"] .lx4 :is(#llm-sources, #tx-method) .lx-src.lx-srcc > li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 !important;
    padding: 14px 16px !important;
    border: 1px solid var(--la-hair) !important;
    border-radius: 12px !important;
    background: var(--la-well) !important;
    box-shadow: none !important;
}
.lx4 :is(#llm-sources, #tx-method) .lx-src.lx-srcc > li.ab-src-wide {
    grid-column: 1 / -1;
}
.lx4 .ab-src-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.lx4 .ab-src-name,
html[data-theme="dark"] .lx4 .ab-src-name {
    color: var(--la-ink) !important;
    font-size: .9rem;
    font-weight: 600;
}
.lx4 .ab-src-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--la-pill);
    color: var(--la-sub);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .01em;
}
.lx4 :is(#llm-sources, #tx-method) .lx-srcc > li > div {
    min-width: 0;
    flex: 1;
}
.lx4 :is(#llm-sources, #tx-method) .lx-srcc p,
html[data-theme="dark"] .lx4 :is(#llm-sources, #tx-method) .lx-srcc p {
    margin: 5px 0 0;
    color: var(--la-sub) !important;
    font-size: .825rem;
    line-height: 1.65;
}
.lx4 .ab-cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}
.lx4 .ab-cat-chips li {
    padding: 3px 9px;
    border: 1px solid var(--la-hair);
    border-radius: 8px;
    background: var(--la-bg);
    color: var(--la-sub);
    font-size: .75rem;
    line-height: 1.45;
}

/* Editorial Methodology Steps (01, 02, 03...) */
.lx4 :is(#llm-sources, #tx-method) .lx-h3 {
    margin: 4px 0 12px;
    color: var(--la-ink);
    font-family: var(--la-serif);
    font-size: 1.0625rem;
    font-weight: 500;
}
.lx4 :is(#llm-sources, #tx-method) ol.lx-steps {
    display: grid;
    gap: 10px;
    max-width: none;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: lxs;
}
.lx4 :is(#llm-sources, #tx-method) ol.lx-steps li,
html[data-theme="dark"] .lx4 :is(#llm-sources, #tx-method) ol.lx-steps li {
    position: relative;
    margin: 0 !important;
    padding: 13px 16px 13px 54px !important;
    border: 1px solid var(--la-hair) !important;
    border-radius: 12px !important;
    background: var(--la-well) !important;
    color: var(--la-sub) !important;
    box-shadow: none !important;
    transform: none !important;
    font-size: .875rem;
    line-height: 1.75;
    counter-increment: lxs;
}
.lx4 :is(#llm-sources, #tx-method) ol.lx-steps li:hover,
html[data-theme="dark"] .lx4 :is(#llm-sources, #tx-method) ol.lx-steps li:hover {
    border-color: var(--la-hair-strong) !important;
    transform: none !important;
    box-shadow: none !important;
}
.lx4 :is(#llm-sources, #tx-method) ol.lx-steps li::before,
html[data-theme="dark"] .lx4 :is(#llm-sources, #tx-method) ol.lx-steps li::before {
    content: counter(lxs, decimal-leading-zero);
    position: absolute;
    top: 13px;
    left: 15px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 24px;
    border-radius: 7px;
    background: var(--la-blue-soft) !important;
    color: var(--la-blue) !important;
    font-size: .75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.lx4 :is(#llm-sources, #tx-method) ol.lx-steps li strong {
    color: var(--la-ink);
    font-weight: 600;
}
.lx4 .ab-api-pill {
    display: inline-block;
    padding: 1px 8px;
    border: 1px solid var(--la-hair-strong);
    border-radius: 6px;
    background: var(--la-bg);
    color: var(--la-blue) !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .78rem;
    text-decoration: none !important;
}
.lx4 .ab-api-pill:hover {
    border-color: var(--la-blue);
    background: var(--la-blue-soft);
}
@media (max-width: 640px) {
    .lx4 :is(#llm-sources, #tx-method) ol.lx-steps li,
    html[data-theme="dark"] .lx4 :is(#llm-sources, #tx-method) ol.lx-steps li {
        padding: 12px 12px 12px 46px !important;
    }
    .lx4 :is(#llm-sources, #tx-method) ol.lx-steps li::before,
    html[data-theme="dark"] .lx4 :is(#llm-sources, #tx-method) ol.lx-steps li::before {
        left: 11px;
    }
}

/* Unified Minimalist Hairline Accordion FAQ across ALL 6 AI Leaderboards */
.lx4 #tx-faq details.lx-qa,
html[data-theme="dark"] .lx4 #tx-faq details.lx-qa {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-top: 1px solid var(--la-hair) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.lx4 #tx-faq details.lx-qa:last-of-type,
html[data-theme="dark"] .lx4 #tx-faq details.lx-qa:last-of-type {
    border-bottom: 1px solid var(--la-hair) !important;
}
.lx4 #tx-faq details.lx-qa summary,
html[data-theme="dark"] .lx4 #tx-faq details.lx-qa summary {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 4px !important;
    border-bottom: 0 !important;
    background: transparent !important;
    color: var(--la-ink) !important;
    font-size: .95rem !important;
    font-weight: 500 !important;
    line-height: 1.5;
    cursor: pointer;
}
.lx4 #tx-faq details.lx-qa summary::before {
    display: none !important;
    content: none !important;
}
.lx4 #tx-faq details.lx-qa summary::after {
    position: static !important;
    margin: 0 4px 0 0 !important;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--la-sub);
    border-bottom: 1.5px solid var(--la-sub);
    transform: rotate(45deg);
    transition: transform .18s ease;
    flex: none;
}
.lx4 #tx-faq details.lx-qa[open] summary::after {
    transform: rotate(-135deg);
    margin-top: 4px !important;
}
.lx4 #tx-faq details.lx-qa summary:hover,
.lx4 .la-faq-stage .la-qa summary:hover {
    background: transparent !important;
    color: var(--la-blue) !important;
}
.lx4 #tx-faq details.lx-qa > p,
html[data-theme="dark"] .lx4 #tx-faq details.lx-qa > p {
    max-width: 78ch;
    margin: 0 !important;
    padding: 0 4px 18px !important;
    background: transparent !important;
    color: var(--la-sub) !important;
    font-size: .9rem !important;
    line-height: 1.78 !important;
}
.lx4 #tx-faq details.lx-qa .bx-m,
html[data-theme="dark"] .lx4 #tx-faq details.lx-qa .bx-m {
    color: var(--la-ink) !important;
    font-weight: 600;
}
.lx4 #tx-faq details.lx-qa .bx-num,
html[data-theme="dark"] .lx4 #tx-faq details.lx-qa .bx-num {
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    color: var(--la-blue) !important;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.lx4 .la-faq-stage .la-qa .la-qa-body {
    max-width: 78ch;
    font-size: .9rem;
    line-height: 1.78;
}
.lx4 .la-faq-stage .la-qa .la-qa-body a {
    color: var(--la-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}
