.mr-settings { display: flex; flex-wrap: wrap; gap: .15rem .65rem; margin-block: .3rem; }
.mr-settings span { display: inline-block; }
/* Editorial layout for a single hardware profile, shared with the CMS preview. */
.gpu-profile {
    --gp-line: #d3e1e5;
    --gp-paper: #fff;
    --gp-soft: #edf4f4;
    --gp-accent: #116571;
    --gp-note: #4a6571;
}
.gpu-profile-symbols { position: absolute; overflow: hidden; pointer-events: none; }
.gpu-profile .gp-icon {
    display: inline-block;
    width: 1.15rem;
    height: 1.15rem;
    flex: none;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.gpu-profile-head > :only-child, .gpu-profile-columns > :only-child { grid-column: 1 / -1; }
.gpu-profile-copy h1 { line-height: 1.24; letter-spacing: -.035em; }
.gpu-profile-copy .gpu-category { color: var(--gp-accent); }
.gpu-profile-copy .gpu-actions { gap: .6rem; margin-block-start: 1.25rem; }
.gpu-profile-copy .gpu-action { border-radius: .55rem; min-height: 44px; }
.gpu-profile-copy .gpu-action .gp-icon { width: 1rem; height: 1rem; }
.gpu-profile-image .gpu-photo-trigger img {
    border: 1px solid var(--gp-line);
    border-radius: .75rem;
    background: var(--gp-paper);
}
.gpu-profile-image:has(figcaption) .gpu-photo-trigger { position: relative; }
.gpu-profile .gpu-profile-image .gpu-photo-expand {
    inset: .65rem auto auto .65rem;
    inline-size: 2.35rem;
    block-size: 2.35rem;
    color: var(--gpu-ink);
    box-shadow: 0 2px 7px #12344317;
}
.gpu-profile-image figcaption { padding: .5rem .1rem 0; line-height: 1.8; }
.gpu-profile .gpu-stats {
    padding: 0;
    border: 1px solid var(--gp-line);
    border-radius: .85rem;
    overflow: hidden;
    gap: 0;
    margin-block: clamp(1.6rem, 3vw, 2.4rem) 0 !important;
}
.gpu-profile .gpu-stats > div { min-width: 0; padding: 1rem clamp(.8rem, 2vw, 1.5rem); }
.gpu-profile .gpu-stats dt { display: flex; gap: .5rem; align-items: center; color: var(--gp-note); }
.gpu-profile .gpu-stats dt svg { color: var(--gp-accent); }
.gpu-profile .gpu-stats dd { line-height: 1.7; font-variant-numeric: tabular-nums; }
.gp-spec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .1rem 1.5rem;
    margin-block: 1.1rem 1.5rem;
    padding-block-end: .4rem;
    border-block-end: 1px solid var(--gp-line);
}
.gp-jumps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .15rem 1.35rem;
    margin-inline-start: auto;
}
.gpu-profile .gp-jumps a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: .15rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--gp-note);
    text-decoration: none;
}
.gp-jumps a:is(:hover, :focus-visible) { color: var(--gp-accent); text-decoration: underline; }
.gpu-profile .gp-heading {
    display: flex;
    gap: .65rem;
    align-items: center;
    min-width: 0;
    scroll-margin-block-start: 6rem;
    line-height: 1.55;
}
.gp-heading > .gp-icon { color: var(--gp-accent); width: 1.25rem; height: 1.25rem; }
.gpu-profile .gpu-profile-columns { gap: clamp(1.2rem, 2.8vw, 2.2rem); }
.gpu-spec-section { min-width: 0; }
.gpu-profile .gpu-detail-table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--gp-line);
    border-radius: .7rem;
}
.gpu-detail-table .gpu-group th { background: var(--gp-soft); color: #1b5660; }
.gpu-detail-table :is(th, td) { padding-inline: clamp(.7rem, 1.5vw, 1.25rem); }
.gpu-detail-table tbody:last-child tr:last-child > * { border-bottom: 0; }
.gpu-profile .gpu-guidance > section {
    border-color: var(--gp-line);
    border-radius: .7rem;
    background: var(--gp-paper);
}
.gpu-guidance > section:first-child { border-block-start: 3px solid #78a8aa; }
.gpu-guidance .gp-heading { font-size: 1.04rem; margin-block-end: .7rem; }
.gpu-profile .gp-part-label { padding-block-start: .7rem; margin-block-start: .85rem; border-top: 1px solid var(--gp-line); }
.gpu-guidance .gpu-part { margin-top: .22rem; text-align: left; font-variant-numeric: tabular-nums; line-height: 1.65; }
.gpu-compute-sources .gp-icon, .gpu-market .gp-icon { width: .87rem; height: .87rem; vertical-align: -.1em; }
.gpu-profile .gpu-knowledge { margin-block-start: clamp(2.5rem, 5vw, 4rem); }
.gpu-knowledge .gp-heading > span { min-width: 0; }
.gpu-knowledge .gp-heading bdi { font-size: .88em; font-weight: 600; }
.gpu-knowledge .gpu-resources {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--gp-line);
    border-radius: .8rem;
    background: var(--gp-paper);
}
.gpu-resources > li + li { border-block-start: 1px solid var(--gp-line); }
.gpu-knowledge .gpu-resource {
    min-width: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
}
.gpu-profile a.gp-source-link {
    display: grid;
    grid-template-columns: 2.6rem minmax(0, 1fr) minmax(6.8rem, 12%) 1.25rem;
    gap: 1.1rem;
    align-items: center;
    min-block-size: 7.25rem;
    padding: .95rem clamp(.95rem, 2vw, 1.5rem);
    color: var(--gpu-ink);
    text-decoration: none;
    transition: background-color .16s;
}
.gpu-resources > li:first-child .gp-source-link { border-start-start-radius: .75rem; border-start-end-radius: .75rem; }
.gpu-resources > li:last-child .gp-source-link { border-end-start-radius: .75rem; border-end-end-radius: .75rem; }
.gpu-profile .gp-source-link:is(:hover, :focus-visible) { background: #f3f8f8; }
.gpu-profile .gp-source-link:focus-visible, .gp-benchmark-details summary:focus-visible { outline-offset: -3px; }
.gp-source-symbol {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    color: var(--gp-accent);
    background: var(--gp-soft);
    border-radius: .65rem;
}
.gp-source-symbol .gp-icon { width: 1.4rem; height: 1.4rem; }
.gp-source-copy { min-width: 0; }
.gpu-resource .gpu-resource-meta { color: var(--gp-note); gap: .5rem; font-size: .76rem; line-height: 1.6; }
.gpu-resource-meta span:first-child { font-weight: 650; color: var(--gp-accent); }
.gpu-resource .gp-source-copy h3 {
    margin: .16rem 0 .12rem;
    font-size: 1.02rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.gp-source-link:is(:hover, :focus-visible) h3 { text-decoration: underline; text-underline-offset: .22em; }
.gpu-profile .gp-source-copy > p { font-size: .88rem; line-height: 1.8; text-align: start; }
.gp-source-info { color: var(--gp-note); font-size: .78rem; line-height: 1.7; }
.gp-source-info > bdi { display: block; font-weight: 650; color: #334f59; }
.gp-source-info > div { display: flex; flex-wrap: wrap; column-gap: .55rem; }
.gp-source-out { color: var(--gp-accent); }
.gp-benchmark-details { margin: -.35rem 5.2rem .65rem 1.25rem; }
.gp-benchmark-details summary { width: fit-content; max-width: 100%; padding: .35rem .2rem; cursor: pointer; color: var(--gp-accent); font-size: .84rem; font-weight: 600; }
.gp-benchmark-details summary:focus-visible { outline: 2px solid var(--gp-accent); }
.gp-benchmark-details .gpu-bench { margin-block-start: .3rem !important; }
.gp-benchmark-details .gpu-bench > div { display: grid; grid-template-columns: minmax(7rem, 24%) minmax(0, 1fr); align-items: baseline; gap: .5rem; }
.gp-benchmark-details .gpu-bench dd { overflow-wrap: anywhere; }

@media (max-width: 820px) {
    .gp-source-link .gp-source-info { text-align: start; }
    .gpu-profile .gpu-guidance { align-items: start; }
}
@media (max-width: 680px) {
    .gpu-profile a.gp-source-link {
        grid-template-columns: 2.1rem minmax(0, 1fr) 1rem;
        gap: .35rem .7rem;
        align-items: start;
        padding: 1rem .85rem;
    }
    .gp-source-symbol { width: 2.1rem; height: 2.1rem; }
    .gp-source-symbol .gp-icon { width: 1.15rem; height: 1.15rem; }
    .gp-source-info { grid-column: 2; grid-row: 2; display: flex; flex-wrap: wrap; gap: .2rem .65rem; }
    .gp-source-out { grid-column: 3; grid-row: 1; margin-top: .4rem; }
    .gp-benchmark-details { margin: -.3rem 3.65rem .65rem .85rem; }
    .gp-benchmark-details .gpu-bench > div { grid-template-columns: 1fr; gap: .05rem; margin-block: .5rem; }
}
@media (max-width: 600px) {
    .gpu-profile .gpu-stats > div { padding: .85rem .7rem; }
    .gpu-profile .gpu-stats > div:nth-child(n + 3) { border-block-start: 1px solid var(--gp-line); }
    .gpu-profile .gpu-stats dt { font-size: .77rem; gap: .35rem; }
    .gpu-profile .gpu-stats dd { font-size: .98rem; }
    .gpu-profile .gpu-stats .gp-icon { width: 1rem; height: 1rem; }
    .gp-spec-header { margin-block: 1rem 1.1rem; }
    .gp-jumps { gap: .1rem .85rem; }
}
@media (prefers-reduced-motion: reduce) {
    .gpu-profile a.gp-source-link { transition: none; }
}
.gpu-profile tr[id^="model-result-"], .gpu-profile h3[id^="gp-source-"] { scroll-margin-top: 7rem; }
.gpu-profile tr[id^="model-result-"]:target { background: #e2f2ef; }
.gpu-profile tr[id^="model-result-"] :is(td,th) { overflow-wrap: anywhere; }
.gpu-profile tr[id^="model-result-"] small { display: block; }
