/* Benchmarks section (pctv-benchmarks). Built on the theme's colour variables, so light and dark follow the
   site's scheme; nothing here sets a colour of its own except the vendor dots. */

.pb-tabs {
    border-bottom: 1px solid var(--nc-border);
    background: var(--nc-surface-1);
}

.pb-tabs__inner {
    display: flex;
    gap: var(--nc-space-1);
    overflow-x: auto;
    scrollbar-width: none;
}

.pb-tabs__inner::-webkit-scrollbar { display: none; }

.pb-tab {
    flex: 0 0 auto;
    padding: 0.8rem 0.9rem;
    border-bottom: 2px solid transparent;
    color: var(--nc-text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
}

.pb-tab:hover { color: var(--nc-text-strong); }

.pb-tab.is-active {
    border-bottom-color: var(--nc-accent);
    color: var(--nc-text-strong);
}

.pb-body {
    display: grid;
    /* One column that never grows past the page: a wide table scrolls inside its wrapper instead. */
    grid-template-columns: minmax(0, 1fr);
    gap: var(--nc-space-4);
    padding-top: var(--nc-space-4);
    padding-bottom: var(--nc-space-6);
}

.pb-section > h2,
.pb-section h2 {
    margin: 0 0 var(--nc-space-2);
    font-size: 1.25rem;
}

.pb-muted { color: var(--nc-text-muted); }
.pb-strong { font-weight: 800; color: var(--nc-text-strong); }

.nc-page-hero .nc-masthead__aside p.pb-hero-stat { color: var(--nc-text-secondary); font-size: 0.95rem; line-height: 1.75; }
.pb-hero-stat strong { color: var(--nc-text-strong); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.nc-page-hero .nc-masthead__aside p.pb-hero-score { margin: 0.1rem 0 0; color: var(--nc-text-strong); font-size: 2.6rem; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.nc-page-hero .nc-masthead__aside p.pb-hero-sub { color: var(--nc-text-secondary); font-size: 0.92rem; }

/* Filters */
.pb-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--nc-space-2);
    align-items: center;
}

.pb-filters__seg { min-width: 18rem; }

/* Buttons: the site's .nc-button and .nc-button--secondary; only the delete action adds a colour. */
.nc-button.pb-danger { border-color: var(--nc-danger); background: transparent; color: var(--nc-danger); }
.nc-button.pb-danger:hover { background: color-mix(in srgb, var(--nc-danger) 12%, transparent); color: var(--nc-danger); }

/* Tables */
.pb-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-md);
    background: var(--nc-surface-1);
}

.pb-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.pb-table th,
.pb-table td {
    padding: 0.6rem 0.8rem;
    border: 0;
    border-bottom: 1px solid var(--nc-border);
    text-align: left;
    vertical-align: middle;
}

.pb-table thead th {
    background: var(--nc-surface-2);
    color: var(--nc-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pb-table tbody tr:last-child td { border-bottom: 0; }
.pb-table tbody tr:hover td { background: var(--nc-surface-2); }
.pb-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pb-rank { color: var(--nc-text-muted); width: 2.5rem; }
.pb-table a { text-decoration: none; }
.pb-score-link { font-weight: 700; }

.pb-gpu-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--nc-text-strong);
    font-weight: 600;
}

.pb-vendor {
    flex: 0 0 auto;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background: var(--nc-text-muted);
}

.pb-vendor--nvidia { background: var(--nc-nvidia, #76b900); }
.pb-vendor--amd { background: var(--nc-amd, #ed1c24); }
.pb-vendor--intel { background: #0071c5; }
.pb-vendor--apple { background: var(--nc-text-secondary); }

.pb-range-col { width: 34%; min-width: 200px; }

/* Relative performance: bar filled to the card's typical score against the fastest card, with the spread
   between most runs (10th to 90th percentile) as a lighter band and the percentage beside it. */
.pb-rel { display: flex; gap: 0.6rem; align-items: center; }
.pb-rel__pct { flex: 0 0 3.2rem; color: var(--nc-text-secondary); font-size: 0.85rem; font-variant-numeric: tabular-nums; text-align: right; }
.pb-rowbar { display: none; }

.pb-range {
    position: relative;
    display: block;
    flex: 1 1 auto;
    height: 0.75rem;
    overflow: hidden;
    border-radius: 3px;
    background: var(--nc-surface-3, var(--nc-surface-2));
}

.pb-range__fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    border-radius: 3px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--nc-accent) 70%, transparent), var(--nc-accent));
}

.pb-range__band {
    position: absolute;
    top: 0;
    bottom: 0;
    background: color-mix(in srgb, var(--nc-accent) 30%, transparent);
}

.pb-range--amd .pb-range__fill { background: linear-gradient(90deg, color-mix(in srgb, var(--nc-amd, #ed1c24) 65%, transparent), var(--nc-amd, #ed1c24)); }
.pb-range--amd .pb-range__band { background: color-mix(in srgb, var(--nc-amd, #ed1c24) 28%, transparent); }
.pb-range--nvidia .pb-range__fill { background: linear-gradient(90deg, color-mix(in srgb, var(--nc-nvidia, #76b900) 65%, transparent), var(--nc-nvidia, #76b900)); }
.pb-range--nvidia .pb-range__band { background: color-mix(in srgb, var(--nc-nvidia, #76b900) 28%, transparent); }
.pb-range--intel .pb-range__fill { background: linear-gradient(90deg, rgba(0, 113, 197, 0.65), #0071c5); }
.pb-range--intel .pb-range__band { background: rgba(0, 113, 197, 0.28); }

.pb-gpu-meta { display: none; color: var(--nc-text-muted); font-size: 0.8rem; font-weight: 400; }
.pb-clock { color: var(--nc-text-muted); font-size: 0.85rem; white-space: nowrap; }

.pb-badge {
    display: inline-block;
    padding: 0.05rem 0.4rem;
    border: 1px solid var(--nc-border);
    border-radius: 999px;
    color: var(--nc-text-muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.pb-badge--oc {
    border-color: color-mix(in srgb, var(--nc-warning, #e0a63b) 60%, var(--nc-border));
    color: var(--nc-warning, #b7791f);
}

/* Stat tiles */
.pb-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: var(--nc-space-2);
}

.pb-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: var(--nc-space-3);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-md);
    background: var(--nc-surface-1);
    color: inherit;
    text-decoration: none;
}

.pb-stat--link:hover { background: var(--nc-surface-2); }
.pb-stat__label { color: var(--nc-text-muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.pb-stat__value { color: var(--nc-text-strong); font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.pb-stat__note { color: var(--nc-text-secondary); font-size: 0.88rem; }

/* Histogram */
.pb-hist-wrap {
    margin: 0;
    padding: var(--nc-space-3);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-md);
    background: var(--nc-surface-1);
}

.pb-hist { display: block; width: 100%; height: 170px; overflow: visible; }
.pb-hist__ticks { display: flex; justify-content: space-between; margin-top: 0.3rem; color: var(--nc-text-muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.pb-hist__bar { fill: color-mix(in srgb, var(--nc-accent) 55%, transparent); }
.pb-hist__bar:hover { fill: var(--nc-accent); }
.pb-hist__median { stroke: var(--nc-text-strong); stroke-width: 2; stroke-dasharray: 5 4; }
.pb-hist__mark { stroke: var(--nc-warning, #e0a63b); stroke-width: 3; }
.pb-hist__axis { fill: var(--nc-text-muted); font-size: 12px; }
.pb-hist__legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; margin: var(--nc-space-2) 0 0; color: var(--nc-text-secondary); font-size: 0.88rem; }
.pb-key { display: inline-block; width: 1.4rem; height: 0; margin-right: 0.35rem; vertical-align: middle; }
.pb-key--median { border-top: 2px dashed var(--nc-text-strong); }
.pb-key--mark { border-top: 3px solid var(--nc-warning, #e0a63b); }

/* Neighbours */
.pb-near {
    margin: 0 0 var(--nc-space-2);
    padding: 0;
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-md);
    background: var(--nc-surface-1);
    list-style-position: inside;
}

.pb-near li {
    display: grid;
    grid-template-columns: 1fr auto 6rem;
    gap: var(--nc-space-2);
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-bottom: 1px solid var(--nc-border);
}

.pb-near li:last-child { border-bottom: 0; }
.pb-near li.is-current { background: color-mix(in srgb, var(--nc-accent) 10%, var(--nc-surface-1)); font-weight: 700; }
.pb-near__score { font-variant-numeric: tabular-nums; font-weight: 700; }
.pb-near__diff { color: var(--nc-text-muted); text-align: right; font-variant-numeric: tabular-nums; }

/* Chips, notes, empty states, CTA */
.pb-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.pb-chips a { display: inline-block; padding: 0.3rem 0.7rem; border: 1px solid var(--nc-border); border-radius: 999px; color: var(--nc-text); font-size: 0.88rem; text-decoration: none; }
.pb-chips a:hover { background: var(--nc-surface-2); }
.pb-notes ul { margin: 0; padding-left: 1.2rem; color: var(--nc-text-secondary); }
.pb-notes li + li { margin-top: 0.35rem; }

.pb-empty,
.pb-note {
    padding: var(--nc-space-3) var(--nc-space-4);
    border: 1px dashed var(--nc-border-strong, var(--nc-border));
    border-radius: var(--nc-radius-md);
    background: var(--nc-surface-1);
}

.pb-empty p { margin: 0 0 0.5rem; }
.pb-empty p:last-child { margin-bottom: 0; }
.pb-note { border-style: solid; border-left: 3px solid var(--nc-warning, #e0a63b); color: var(--nc-text-secondary); }

.pb-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--nc-space-3);
    align-items: center;
    justify-content: space-between;
    padding: var(--nc-space-4);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-md);
    background: linear-gradient(90deg, color-mix(in srgb, #48c48c 12%, var(--nc-surface-1)), var(--nc-surface-1));
}

.pb-cta p { margin: 0; color: var(--nc-text-secondary); }
.pb-cta__actions { display: flex; flex-wrap: wrap; gap: var(--nc-space-2); }

/* Result page */
.pb-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: var(--nc-space-3);
    align-items: stretch;
}

.pb-result__score {
    padding: var(--nc-space-4);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-md);
    background: linear-gradient(160deg, color-mix(in srgb, var(--nc-accent) 12%, var(--nc-surface-1)), var(--nc-surface-1));
}

.pb-result__score strong { display: block; color: var(--nc-text-strong); font-size: 3.4rem; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pb-result__rank { margin: var(--nc-space-2) 0 0.2rem; color: var(--nc-text-strong); font-weight: 700; font-size: 1.05rem; }

.pb-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-md);
    background: var(--nc-border);
}

.pb-facts > div { padding: 0.75rem 1rem; background: var(--nc-surface-1); }
.pb-facts dt { color: var(--nc-text-muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.pb-facts dd { margin: 0.15rem 0 0; color: var(--nc-text-strong); font-weight: 600; }

.pb-share { display: flex; flex-wrap: wrap; gap: var(--nc-space-2); }
.pb-manage__form { display: grid; gap: var(--nc-space-2); }
.pb-manage__form fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.pb-manage__form legend { margin-bottom: 0.3rem; font-weight: 700; }
.pb-manage__actions { display: flex; flex-wrap: wrap; gap: var(--nc-space-2); align-items: center; }

/* Save form inside the GPU test's result block */
.pb-save,
.pb-saved {
    display: grid;
    gap: var(--nc-space-2);
    margin-top: var(--nc-space-3);
    padding: var(--nc-space-3);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-md);
    background: var(--nc-surface-2);
}

.pb-save__title { margin: 0; font-size: 1.05rem; }
.pb-save__check { display: flex; gap: 0.5rem; align-items: flex-start; }
.pb-save__check input { margin-top: 0.3rem; }
.pb-save__options { display: grid; gap: var(--nc-space-2); padding-left: 1.6rem; }
.pb-save__options fieldset { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0; padding: 0; border: 0; }
.pb-save__options legend { margin-bottom: 0.3rem; font-weight: 600; }
.pb-save__actions { display: flex; flex-wrap: wrap; gap: var(--nc-space-2); }
.pb-save__status { margin: 0; color: var(--nc-text-secondary); }
.pb-saved p { margin: 0; }
.pb-saved__title { color: var(--nc-success, #2f9e5b); }

/* GPU Wiki panel */
.pb-wiki__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--nc-space-2); margin-bottom: var(--nc-space-2); }
.pb-wiki__stats strong { display: block; color: var(--nc-text-strong); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.pb-wiki__links { display: flex; flex-wrap: wrap; gap: var(--nc-space-3); margin: 0; }

/* Hub additions */
.pb-hub-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--nc-space-2); }

@media (max-width: 760px) {
    .pb-hide-sm { display: none; }
    .pb-ranking .pb-gpu-link { font-size: 0.95rem; }
    .pb-rowbar { display: block; margin-top: 0.35rem; }
    .pb-rowbar .pb-range { height: 0.45rem; }
    .pb-gpu-meta { display: block; margin-top: 0.15rem; }
    .pb-ranking td:first-child, .pb-ranking th:first-child { padding-right: 0.2rem; width: 1.8rem; }
    .pb-filters { gap: 0.5rem; }
    .pb-filters__seg { width: 100%; min-width: 0; }
    .pb-result { grid-template-columns: 1fr; }
    .pb-result__score strong { font-size: 2.6rem; }
    .pb-facts { grid-template-columns: 1fr; }
    .pb-hub-stats { grid-template-columns: 1fr; }
    .pb-near li { grid-template-columns: 1fr auto 4.5rem; }
    .pb-table th, .pb-table td { padding: 0.55rem 0.6rem; }
    .pb-stat__value { font-size: 1.45rem; }
}

.pb-clock--oc { color: var(--nc-warning, #b7791f); font-weight: 700; }

/* Hub: fastest cards with bars */
.pb-top {
    margin: 0 0 var(--nc-space-2);
    padding: 0;
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-md);
    background: var(--nc-surface-1);
    list-style: none;
    counter-reset: pb-top;
}

.pb-top li {
    display: grid;
    grid-template-columns: 1.6rem minmax(9rem, 14rem) 1fr 4.5rem;
    gap: var(--nc-space-2);
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-bottom: 1px solid var(--nc-border);
    counter-increment: pb-top;
}

.pb-top li::before { content: counter(pb-top); color: var(--nc-text-muted); font-variant-numeric: tabular-nums; }
.pb-top li:last-child { border-bottom: 0; }
.pb-top__name { color: var(--nc-text-strong); font-weight: 600; text-decoration: none; }
.pb-top__score { text-align: right; font-weight: 800; color: var(--nc-text-strong); font-variant-numeric: tabular-nums; }
.pb-range--apple .pb-range__fill { background: linear-gradient(90deg, color-mix(in srgb, var(--nc-text-secondary) 55%, transparent), var(--nc-text-secondary)); }
.pb-range--apple .pb-range__band { background: color-mix(in srgb, var(--nc-text-secondary) 25%, transparent); }

@media (max-width: 760px) {
    .pb-top li { grid-template-columns: 1.4rem 1fr 4rem; row-gap: 0.3rem; }
    .pb-top__bar { grid-column: 2 / 4; grid-row: 2; }
}

.pb-saved__rank { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.9rem; align-items: center; }
.pb-saved__rank strong { grid-row: span 2; color: var(--nc-text-strong); font-size: 2.6rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.pb-saved__rank > span:first-of-type { color: var(--nc-text-strong); font-weight: 600; }
.pb-saved__bar { display: block; height: 0.5rem; overflow: hidden; border-radius: 999px; background: var(--nc-surface-3, var(--nc-border)); }
.pb-saved__bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #48c48c, var(--nc-accent)); }

/* Podium: the first three places on a ranked table get gold, silver and bronze rank marks. */
.pb-table tbody tr:nth-child(-n+3) .pb-rank { font-weight: 800; }
.pb-table tbody tr:nth-child(1) .pb-rank { color: #d4a72c; }
.pb-table tbody tr:nth-child(2) .pb-rank { color: #9aa7b8; }
.pb-table tbody tr:nth-child(3) .pb-rank { color: #b9773e; }
html[data-theme="light"] .pb-table tbody tr:nth-child(1) .pb-rank { color: #a07a0e; }
html[data-theme="light"] .pb-table tbody tr:nth-child(2) .pb-rank { color: #6b7686; }
html[data-theme="light"] .pb-table tbody tr:nth-child(3) .pb-rank { color: #93531f; }

/* Hero: fastest card so far */
.nc-page-hero .pb-hero-top {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.8rem;
    align-items: baseline;
    margin: 0.15rem 0 0.25rem;
    color: var(--nc-text-strong);
    text-decoration: none;
}
.pb-hero-top__name { display: inline-flex; gap: 0.45rem; align-items: center; font-size: 1.15rem; font-weight: 700; }
.pb-hero-top__score { font-size: 2rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.nc-page-hero .pb-hero-top:hover .pb-hero-top__name { color: var(--nc-link); }

/* Questions: always open, two columns on wide screens (owner, 2026-11-30: no expanding and collapsing). */
.pb-faq {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--nc-space-3);
    margin: 0;
}
.pb-faq__item {
    padding: var(--nc-space-3);
    border: 1px solid var(--nc-border);
    border-left: 3px solid #48c48c;
    border-radius: var(--nc-radius-md);
    background: var(--nc-surface-1);
}
.pb-faq dt { margin: 0 0 0.35rem; color: var(--nc-text-strong); font-weight: 700; }
.pb-faq dd { margin: 0; color: var(--nc-text-secondary); line-height: 1.6; }
html[data-theme="light"] .pb-faq__item { border-left-color: #14a06a; }
@media (max-width: 760px) { .pb-faq { grid-template-columns: 1fr; } }

/* Results: podium cards for the three fastest cards */
.pb-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--nc-space-2); }
.pb-podium__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: var(--nc-space-3) var(--nc-space-4);
    overflow: hidden;
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-md);
    background: var(--nc-surface-1);
    color: inherit;
    text-decoration: none;
}
.pb-podium__card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--pb-medal); }
.pb-podium__card--1 { --pb-medal: #d4a72c; background: linear-gradient(160deg, color-mix(in srgb, #d4a72c 12%, var(--nc-surface-1)), var(--nc-surface-1) 60%); }
.pb-podium__card--2 { --pb-medal: #9aa7b8; }
.pb-podium__card--3 { --pb-medal: #b9773e; }
.pb-podium__card:hover { border-color: var(--pb-medal); }
.pb-podium__place { color: var(--pb-medal); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.pb-podium__name { display: inline-flex; gap: 0.45rem; align-items: center; color: var(--nc-text-strong); font-weight: 700; font-size: 1.05rem; }
.pb-podium__score { color: var(--nc-text-strong); font-size: 2rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pb-podium__meta { color: var(--nc-text-muted); font-size: 0.85rem; }
html[data-theme="light"] .pb-podium__card--1 { --pb-medal: #a07a0e; }
html[data-theme="light"] .pb-podium__card--2 { --pb-medal: #6b7686; }
html[data-theme="light"] .pb-podium__card--3 { --pb-medal: #93531f; }

/* Results: heading row with the speed / value switch (links, so each order has its own address) */
.pb-table-head { display: flex; flex-wrap: wrap; gap: var(--nc-space-2); align-items: center; justify-content: space-between; margin-bottom: calc(-1 * var(--nc-space-2)); }
.pb-table-head h2 { margin: 0; font-size: 1.15rem; }
.pb-sort { display: inline-flex; gap: 0.25rem; padding: 3px; border: 1px solid var(--nc-border); border-radius: 999px; background: var(--nc-surface-1); }
.pb-sort__opt { min-height: 28px; padding: 0.3rem 0.85rem; border-radius: 999px; color: var(--nc-text-secondary); font-size: 0.88rem; font-weight: 800; text-decoration: none; }
.pb-sort__opt:hover { color: var(--nc-text-strong); }
.pb-sort__opt.is-active { background: var(--nc-surface-3, var(--nc-surface-2)); color: var(--nc-text-strong); box-shadow: inset 0 0 0 1px var(--nc-border-strong, var(--nc-border)); }
.pb-value { font-weight: 700; text-decoration: none; }

@media (max-width: 760px) {
    .pb-podium { grid-template-columns: 1fr; }
    .pb-podium__card { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; padding: 0.7rem 0.9rem; }
    .pb-podium__score { margin-left: auto; font-size: 1.4rem; }
    .pb-podium__meta { flex-basis: 100%; }
}

/* Phones show one number column: the score when ranked by speed, score per $100 when ranked by value. */
@media (max-width: 760px) {
    .pb-ranking--score .pb-col-value,
    .pb-ranking--value .pb-col-score { display: none; }
    .pb-table-head { margin-bottom: 0; }
    .pb-sort { width: 100%; }
    .pb-sort__opt { flex: 1 1 0; text-align: center; }
}

/* Charts (includes/charts.php): the Market Watch drawing style on the site's tokens. The mark and source
   line classes come from Market Watch's chart helpers; they are styled here too, because market-watch.css
   does not load on the Benchmarks pages. */
.pb-chart-wrap {
    margin: 0;
    padding: var(--nc-space-3);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-md);
    background: var(--nc-surface-1);
    color: var(--nc-text-muted);
}
.pb-chart { display: block; width: 100%; height: auto; overflow: visible; }
.pb-chart__grid { stroke: var(--nc-border); stroke-width: 1; }
.pb-chart__label { fill: var(--nc-text-muted); font-size: var(--pb-fs, 13px); font-variant-numeric: tabular-nums; }
.pb-chart__grid--v { stroke-dasharray: 2 4; }
.pb-chart__axis { fill: var(--nc-text-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.pb-chart__bar { fill: color-mix(in srgb, var(--nc-link-hover, #69aefb) 70%, transparent); }
.pb-chart__bar:hover { fill: var(--nc-link-hover, #69aefb); }
.pb-chart__bar.is-mark { fill: var(--nc-warning, #e0a63b); }
.pb-chart__median { stroke: var(--nc-text-strong); stroke-width: 1.6; stroke-dasharray: 5 4; }
.pb-chart__mark { stroke: var(--nc-warning, #e0a63b); stroke-width: 2.4; }
.pb-chart__tag { fill: var(--nc-text-strong); font-size: var(--pb-fs, 13px); font-weight: 700; }
.pb-chart__tag--mark { fill: var(--nc-warning, #b7791f); }
.pb-chart__line { fill: none; stroke: var(--nc-link-hover, #69aefb); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.pb-chart__area { fill: var(--nc-link-hover, #69aefb); opacity: 0.1; }
.pb-chart__vertex { fill: var(--nc-surface-1); stroke: var(--nc-link-hover, #69aefb); stroke-width: 2; }
.pb-chart__dot { stroke: var(--nc-surface-1); stroke-width: 2; fill: var(--nc-text-secondary); }
.pb-chart__dot.pb-dot--nvidia { fill: var(--nc-nvidia, #76b900); }
.pb-chart__dot.pb-dot--amd { fill: var(--nc-amd, #ed1c24); }
.pb-chart__dot.pb-dot--intel { fill: #0071c5; }
.pb-chart a:hover .pb-chart__dot { stroke: var(--nc-text-strong); }
.pb-chart__point { fill: var(--nc-text-secondary); font-size: var(--pb-fs, 13px); font-weight: 600; }
.pb-chart a:hover .pb-chart__point { fill: var(--nc-text-strong); }
.pb-chart__caption { margin-top: 0.2rem; color: var(--nc-text-muted); font-size: 0.8rem; text-align: center; }
.pb-chart .ncmw-chart-wm { fill: currentColor; opacity: 0.16; pointer-events: none; user-select: none; }
.pb-chart .ncmw-chart-wm text { fill: currentColor; font-weight: 800; }
html[data-theme="light"] .pb-chart .ncmw-chart-wm { opacity: 0.11; }
.pb-chart text.ncmw-chart-source { fill: var(--nc-text-muted); font-size: 11px; letter-spacing: 0.01em; }

/* Horizontal bars (by browser) */
.pb-hbars { display: grid; gap: 0.5rem; padding: var(--nc-space-3); border: 1px solid var(--nc-border); border-radius: var(--nc-radius-md); background: var(--nc-surface-1); }
.pb-hbars__row { display: grid; grid-template-columns: 7rem 1fr 4.5rem 9rem; gap: var(--nc-space-2); align-items: center; }
.pb-hbars__label { color: var(--nc-text-strong); font-weight: 600; }
.pb-hbars__track { height: 0.7rem; overflow: hidden; border-radius: 3px; background: var(--nc-surface-3, var(--nc-surface-2)); }
.pb-hbars__fill { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, color-mix(in srgb, var(--nc-accent) 70%, transparent), var(--nc-accent)); }
.pb-hbars__fill.pb-range--nvidia { background: linear-gradient(90deg, color-mix(in srgb, var(--nc-nvidia, #76b900) 65%, transparent), var(--nc-nvidia, #76b900)); }
.pb-hbars__fill.pb-range--amd { background: linear-gradient(90deg, color-mix(in srgb, var(--nc-amd, #ed1c24) 65%, transparent), var(--nc-amd, #ed1c24)); }
.pb-hbars__value { text-align: right; font-weight: 800; color: var(--nc-text-strong); font-variant-numeric: tabular-nums; }
.pb-hbars__note { color: var(--nc-text-muted); font-size: 0.85rem; text-align: right; }

/* Reported clocks */
.pb-save__clocks { display: flex; flex-wrap: wrap; gap: var(--nc-space-2); align-items: flex-end; }
.pb-save__clocks label { display: grid; gap: 0.2rem; font-size: 0.88rem; font-weight: 600; color: var(--nc-text-secondary); }
.pb-save__clocks input { width: 10rem; min-height: 2.25rem; padding: 0.3rem 0.6rem; border: 1px solid var(--nc-border); border-radius: var(--nc-radius-sm); background: var(--nc-surface-1); color: var(--nc-text-strong); }
.pb-save__clocks p { flex-basis: 100%; margin: 0; font-size: 0.85rem; }
.pb-dd-sub { display: block; margin-top: 0.15rem; color: var(--nc-text-muted); font-size: 0.85rem; font-weight: 400; }

@media (max-width: 760px) {
    .pb-chart-wrap { padding: var(--nc-space-2); }
    .pb-chart-pair__wide { display: none; }
    .pb-chart-pair__narrow { display: block; }
    .pb-hbars__row { grid-template-columns: 5.5rem 1fr 4rem; }
    .pb-hbars__note { display: none; }
}

@media (min-width: 761px) { .pb-chart-pair__narrow { display: none; } }
.pb-faq__item:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Sortable headers: the label is a plain button in the header's own style; the active column turns link
   coloured with an arrow, like Market Watch's sortable price table. */
.pb-table thead .pb-sort-btn {
    display: inline-flex;
    gap: 0.3rem;
    align-items: center;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    /* Blocksy styles every button white on accent; the header keeps its own muted label colour. */
    color: var(--nc-text-muted) !important;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}
.pb-table thead th.pb-num .pb-sort-btn { flex-direction: row-reverse; }
.pb-table thead .pb-sort-btn:hover,
.pb-table thead .pb-sort-btn:focus-visible { color: var(--nc-link-hover, #91caff) !important; }
.pb-sort-btn__arrow { width: 0.7em; opacity: 0.35; font-size: 0.9em; }
.pb-sort-btn__arrow::before { content: "↕"; }
.pb-table thead th[aria-sort="descending"] .pb-sort-btn,
.pb-table thead th[aria-sort="ascending"] .pb-sort-btn { color: var(--nc-link-hover, #91caff) !important; font-weight: 900; }
html[data-theme="light"] .pb-table thead th[aria-sort="descending"] .pb-sort-btn,
html[data-theme="light"] .pb-table thead th[aria-sort="ascending"] .pb-sort-btn,
html[data-theme="light"] .pb-table thead .pb-sort-btn:hover { color: var(--nc-link, #0b63c9) !important; }
.pb-table thead th[aria-sort="descending"] .pb-sort-btn__arrow,
.pb-table thead th[aria-sort="ascending"] .pb-sort-btn__arrow { opacity: 1; }
.pb-table thead th[aria-sort="descending"] .pb-sort-btn__arrow::before { content: "↓"; }
.pb-table thead th[aria-sort="ascending"] .pb-sort-btn__arrow::before { content: "↑"; }

/* Secondary and danger buttons that are <button> elements: the theme's site-wide button rule would paint them
   filled, so they get the .nc-button--secondary look back here. */
/* !important: the theme's rule chains thirteen :not() classes, which outranks any plain class selector. */
body.nc-site button.nc-button.nc-button--secondary {
    border-color: rgba(232, 239, 234, 0.34) !important;
    background: var(--nc-surface-2) !important;
    color: var(--nc-text-strong) !important;
}
body.nc-site button.nc-button.nc-button--secondary:hover { background: var(--nc-surface-3, var(--nc-surface-2)) !important; border-color: var(--nc-accent) !important; }
html[data-theme="light"] body.nc-site button.nc-button.nc-button--secondary { border-color: var(--nc-border-strong) !important; }
body.nc-site button.nc-button.pb-danger { border-color: var(--nc-danger) !important; background: transparent !important; color: var(--nc-danger) !important; }

/* Result page: the share image preview */
.pb-sharecard { margin: 0; max-width: 560px; }
.pb-sharecard img { display: block; width: 100%; height: auto; border: 1px solid var(--nc-border); border-radius: var(--nc-radius-md); }
.pb-sharecard figcaption { margin-top: 0.4rem; color: var(--nc-text-muted); font-size: 0.88rem; }

/* Members: an initials badge in a colour of their own (hue from the name) */
.pb-member { display: inline-flex; gap: 0.55rem; align-items: center; }
.pb-initials {
    display: inline-grid;
    width: 1.75rem;
    height: 1.75rem;
    place-items: center;
    border-radius: 999px;
    background: hsl(var(--pb-hue) 45% 32%);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
html[data-theme="light"] .pb-initials { background: hsl(var(--pb-hue) 50% 42%); }

/* Phones: on the leaderboard the card name moves under the member's name instead of taking its own column. */
.pb-gpu-meta--member { padding-left: 2.3rem; white-space: nowrap; }

/* Strength profile on the GPU page (test method 0.3): one row per test, bar against the fastest card. */
.pb-profile { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.pb-profile__row {
    display: grid;
    grid-template-columns: minmax(9rem, 12rem) minmax(0, 1fr) 3.5rem minmax(8rem, 15rem);
    align-items: center;
    gap: 0.9rem;
}
.pb-profile__label { font-weight: 600; white-space: nowrap; }
.pb-profile__bar { height: 0.85rem; }
.pb-profile__pct { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.pb-profile__value { font-size: 0.85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pb-tag {
    display: inline-block;
    margin-left: 0.25rem;
    padding: 0.05rem 0.35rem;
    border: 1px solid var(--nc-border);
    border-radius: 999px;
    color: var(--nc-text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    vertical-align: 0.1em;
}
.pb-extra { margin: 1rem 0 0; }
@media (max-width: 760px) {
    .pb-profile__row { grid-template-columns: minmax(0, 1fr) 3.2rem; gap: 0.25rem 0.75rem; }
    .pb-profile__label { grid-column: 1; }
    .pb-profile__pct { grid-column: 2; grid-row: 1; }
    .pb-profile__bar { grid-column: 1 / -1; }
    .pb-profile__value { grid-column: 1 / -1; }
}
.pb-result__full { margin: 0.35rem 0 0; font-size: 0.95rem; }
.pb-tests__extra td { color: var(--nc-text-muted); }
/* With one column per test the ranking is wide: the bar column gives way so card names stay on one line. */
@media (min-width: 761px) {
    .pb-ranking .pb-gpu-link { white-space: nowrap; }
    .pb-ranking:has(.pb-col-test) .pb-range-col { width: auto; min-width: 140px; }
    .pb-col-test { width: 4.5rem; }
}
.pb-table-note { margin: 0.6rem 0 0; font-size: 0.88rem; }
/* Filled <button class="nc-button"> (Save result, Save changes) in the light scheme: the theme's global button
   rule outranks theme-light.css's white text for filled buttons, so the dark ink stayed on the deep blue. */
html[data-theme="light"] body.nc-site :is(.pb-save, .pb-body, .pb-saved) button.nc-button:not(.nc-button--secondary),
html[data-theme="light"] body.nc-site :is(.pb-save, .pb-body, .pb-saved) button.nc-button:not(.nc-button--secondary):hover {
    color: #fff !important;
}

/* Home page teaser (owner, 2026-12-01): invitation on the left, fastest cards on the right. */
.pb-teaser { margin-bottom: 2rem; }
.pb-teaser__card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr);
    gap: 1.75rem;
    padding: 1.5rem 1.6rem;
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-md, 12px);
    background:
        radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--nc-accent) 12%, transparent), transparent 60%),
        var(--nc-surface-1);
}
.pb-teaser__kicker { margin: 0 0 0.35rem; color: var(--nc-link); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.pb-teaser__title { margin: 0 0 0.6rem; font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.2; }
.pb-teaser__lead { margin: 0 0 1.1rem; color: var(--nc-text-secondary, var(--nc-text-muted)); }
.pb-teaser__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pb-teaser__go { display: inline-flex; align-items: center; gap: 0.45rem; }
.pb-teaser__go svg { width: 1rem; height: 1rem; }
.pb-teaser__facts { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin: 1rem 0 0; padding: 0; list-style: none; color: var(--nc-text-muted); font-size: 0.82rem; }
.pb-teaser__facts li::before { content: "✓"; margin-right: 0.35rem; color: var(--nc-link); font-weight: 700; }
.pb-teaser__board { padding-left: 1.5rem; border-left: 1px solid var(--nc-border); }
.pb-teaser__board-title { margin: 0 0 0.6rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nc-text-muted); }
.pb-teaser__board-title span { margin-left: 0.3rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.pb-teaser__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.15rem; }
.pb-teaser__row {
    display: grid;
    grid-template-columns: 1.1rem minmax(0, 1fr) auto;
    grid-template-areas: "rank name score" ". bar bar";
    gap: 0.2rem 0.6rem;
    align-items: center;
    padding: 0.35rem 0.4rem;
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
}
.pb-teaser__row:hover { background: var(--nc-surface-2); }
.pb-teaser__rank { grid-area: rank; color: var(--nc-text-muted); font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pb-teaser__name { grid-area: name; overflow: hidden; font-size: 0.9rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.pb-teaser__score { grid-area: score; font-size: 0.9rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pb-teaser__bar { grid-area: bar; height: 0.4rem; }
.pb-teaser__more { margin: 0.6rem 0 0; font-size: 0.85rem; font-weight: 600; }
@media (max-width: 760px) {
    .pb-teaser__card { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.2rem; }
    .pb-teaser__board { padding: 1.1rem 0 0; border-left: 0; border-top: 1px solid var(--nc-border); }
}
.pb-teaser__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.pb-teaser__clock {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.65rem 0.28rem 0.5rem;
    border-radius: 999px;
    background: var(--nc-accent);
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}
.pb-teaser__clock svg { width: 1rem; height: 1rem; }
:root[data-theme="dark"] .pb-teaser__clock { color: #0b1207; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pb-teaser__clock { color: #0b1207; } }
.pb-teaser__actions { align-items: center; gap: 0.6rem 1.1rem; }
.pb-teaser__link { font-weight: 700; text-decoration: none; }
.pb-teaser__link:hover { text-decoration: underline; }
/* Saved panel: one sentence where the run sits for this card (no percentage since 2026-12-01). */
.pb-saved__rank { display: block; }
.pb-saved__rank strong { display: block; font-size: 1.15rem; line-height: 1.35; }

/* Before any card has a typical score the teaser has no board: the invitation takes the whole card. */
.pb-teaser__card--solo { grid-template-columns: minmax(0, 1fr); }
.pb-teaser__card--solo .pb-teaser__lead { max-width: 46rem; }
