/* Stress My GPU theme v3 — light only, blue. */
:root {
	color-scheme: light;
	--bg: #f5f8ff;
	--paper: #ffffff;
	--tint: #eef3fc;
	--line: #e1e7f3;
	--ink: #0b1220;
	--muted: #5b6475;
	--brand: #0b5cff;
	--brand-dark: #0847c4;
	--brand-soft: #eaf1ff;
	--radius: 14px;
	--shadow: 0 10px 30px -22px rgba(11, 18, 32, 0.45);
	--sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--display: 'Arial Black', 'Segoe UI Black', Inter, system-ui, sans-serif;
	--maxw: 1280px;
	--gut: max(1rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
	--head-h: 64px;
}
@media (min-width: 1600px) { :root { --maxw: 1400px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 1rem + env(safe-area-inset-top, 0px)); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(11, 92, 255, 0.15); }
html.nav-locked { overflow: hidden; }
[id] { scroll-margin-top: calc(var(--head-h) + 1rem + env(safe-area-inset-top, 0px)); }
body { margin: 0; overflow-x: clip; font: 400 clamp(1rem, 0.96rem + 0.12vw, 1.0625rem)/1.6 var(--sans); overflow-wrap: break-word; color: var(--ink); background: var(--bg); }
img, svg, video { max-width: 100%; height: auto; }
canvas { max-width: 100%; touch-action: manipulation; }
button, a, summary, input, select { touch-action: manipulation; }
table { max-width: 100%; }
pre, code { overflow-wrap: anywhere; }
pre { overflow-x: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
h1, h2, h3 { font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.4vw, 2.15rem); }
h3 { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2 * var(--gut), var(--maxw)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gut), 780px); margin-inline: auto; }
.screen-reader-text, .smgpu-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; padding: 0.6rem 1rem; background: #fff; color: var(--ink); }
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand__name { font: italic 900 clamp(1.1rem, 0.9rem + 1vw, 1.45rem)/1 var(--display); letter-spacing: -0.01em; text-transform: uppercase; white-space: nowrap; }
.brand--footer { color: #fff; }
.primary-nav { display: flex; align-items: center; gap: 1.25rem; flex: 1; justify-content: flex-end; }
.primary-nav .menu { display: flex; gap: clamp(0.9rem, 1.6vw, 1.6rem); padding: 0; margin: 0 auto; list-style: none; align-items: center; }
.primary-nav .menu > li { position: relative; display: flex; align-items: center; }
.primary-nav .menu > li.menu__home { display: none; }
.primary-nav a:not(.btn) { display: flex; align-items: center; min-height: 44px; padding: 0.4rem 0; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; border-bottom: 3px solid transparent; }
.primary-nav .menu > li > a { min-height: var(--head-h); padding-block: 0; }
.primary-nav a:not(.btn):hover, .primary-nav a[aria-current] { color: var(--brand); border-bottom-color: var(--brand); }

/* Dropdowns: CSS-only on desktop (hover and keyboard focus); nav.js adds tap support. */
.has-sub > a::after { content: ''; display: inline-block; margin-left: 0.4rem; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.nav-js .has-sub > a::after { display: none; }
.sub-toggle { display: inline-grid; place-items: center; flex: none; width: 28px; height: 44px; margin-left: 2px; padding: 0; color: var(--ink); background: none; border: 0; border-radius: 8px; cursor: pointer; }
.sub-toggle::before { content: ''; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform 0.15s; }
.sub-toggle[aria-expanded='true']::before { transform: translateY(2px) rotate(225deg); }
.sub { position: absolute; left: -1rem; top: 100%; z-index: 2; min-width: 250px; max-height: calc(100vh - var(--head-h) - 1.5rem); max-height: calc(100dvh - var(--head-h) - 1.5rem); overflow-y: auto; padding: 0.5rem; margin: 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 40px -20px rgba(11, 18, 32, 0.4); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s; }
.sub ul { padding: 0; margin: 0; list-style: none; }
.sub a:not(.btn) { min-height: 44px; padding: 0.55rem 0.75rem; border: 0; border-radius: 8px; font-weight: 500; }
.sub a:not(.btn):hover { background: var(--brand-soft); border: 0; }
.sub a[aria-current] { background: var(--brand-soft); }
.sub__all a:not(.btn) { margin-top: 0.25rem; font-weight: 700; color: var(--brand); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; }
.sub--mega { display: grid; grid-template-columns: repeat(2, minmax(13rem, 1fr)); gap: 0.25rem 1.25rem; min-width: 33rem; padding: 1rem 1.1rem; left: 50%; margin-left: -16.5rem; }
.sub--mega .sub__group:first-child { grid-row: span 2; }
.sub__h { display: block; padding: 0.25rem 0.75rem 0.35rem; font: 800 0.72rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (hover: hover) { .has-sub:hover > .sub { opacity: 1; visibility: visible; transform: none; } }
.has-sub:focus-within > .sub, .has-sub.is-open > .sub { opacity: 1; visibility: visible; transform: none; }
@supports selector(:has(*)) {
	/* Tapping the chevron focuses it; only keyboard focus should hold the menu open, so a second tap can close it. */
	.has-sub:focus-within > .sub { opacity: 0; visibility: hidden; transform: translateY(6px); }
	.has-sub:has(:focus-visible) > .sub, .has-sub.is-open > .sub, .has-sub:hover > .sub { opacity: 1; visibility: visible; transform: none; }
}
@media (hover: none) { @supports selector(:has(*)) { .has-sub:hover:not(.is-open):not(:has(:focus-visible)) > .sub { opacity: 0; visibility: hidden; transform: translateY(6px); } } }

.nav-search input { width: clamp(9rem, 14vw, 14rem); min-height: 44px; padding: 0.6rem 0.9rem 0.6rem 2.4rem; font: inherit; font-size: 1rem; color: var(--ink); background: #f1f5fd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6475' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 0.8rem center; border: 1px solid var(--line); border-radius: 10px; }
.nav-toggle { display: none; flex: none; width: 48px; height: 48px; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; margin: auto; background: var(--ink); content: ''; position: relative; transition: transform 0.15s, top 0.15s, opacity 0.15s; }
.nav-toggle__bars::before { top: -6px; position: absolute; }
.nav-toggle__bars::after { top: 6px; position: absolute; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.4rem; font: 700 0.98rem var(--sans); text-align: center; text-decoration: none; border: 1px solid transparent; border-radius: 10px; cursor: pointer; transition: background 0.15s, box-shadow 0.15s, border-color 0.15s; }
.btn { min-height: 44px; }
.btn--sm { padding: 0.65rem 1.1rem; font-size: 0.92rem; white-space: nowrap; }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn--primary { color: #fff; background: var(--brand); box-shadow: 0 10px 22px -12px rgba(11, 92, 255, 0.9); }
.btn--primary:hover { color: #fff; background: var(--brand-dark); }
.btn--ghost { color: var(--brand); background: #fff; border-color: var(--brand); }
.btn--ghost:hover { color: #fff; background: var(--brand); }
.btn--light { color: var(--brand-dark); background: #fff; }
.btn--light:hover { background: var(--brand-soft); color: var(--brand-dark); }
.chip { display: inline-block; padding: 0.35rem 0.9rem; margin: 0 0 1rem; font: 700 0.76rem var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); background: #fff; border: 1px solid #b9d0ff; border-radius: 999px; }
.chip--sm { padding: 0.15rem 0.6rem; margin: 0 0 0 0.5rem; font-size: 0.68rem; vertical-align: middle; background: var(--brand-soft); border-color: transparent; }

/* Hero */
.hero { padding: clamp(2rem, 5vw, 4rem) 0 2rem; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 0.95fr 1.1fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.hero h1 { margin: 0 0 1.25rem; font: 900 clamp(1.9rem, 0.9rem + 5.2vw, 4.4rem)/1.02 var(--display); overflow-wrap: normal; letter-spacing: -0.03em; text-transform: uppercase; }
.hero h1 span, .hero h1 em { display: block; font-style: normal; }
.hero h1 em { color: var(--brand); }
.lede { font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem); color: #2c3547; max-width: 56ch; }
.hero__cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin: 1.75rem 0 0; }
.hero__visual { position: relative; display: grid; align-items: center; min-height: 430px; }
.hero__gpu { position: absolute; right: -24%; top: 50%; width: 96%; transform: translateY(-50%) rotate(-4deg); z-index: 0; filter: drop-shadow(0 30px 40px rgba(11, 92, 255, 0.3)); }
.hero__panel { position: relative; z-index: 1; width: min(100%, 370px); justify-self: start; }

/* Features */
.features { margin-top: 0.5rem; }
.features__in { display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.feat { display: flex; gap: 0.9rem; align-items: center; padding: 1.4rem 1.3rem; border-left: 1px solid var(--line); }
.feat:first-child { border-left: 0; }
.feat strong { display: block; font-size: 1rem; }
.feat span:not(.feat__ico) { font-size: 0.85rem; color: var(--muted); line-height: 1.4; display: block; }
.feat__ico { display: grid; flex: none; place-items: center; width: 48px; height: 48px; font-size: 1.35rem; color: var(--brand); background: var(--brand-soft); border-radius: 50%; }

/* Sections */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--tint { background: var(--tint); border-block: 1px solid var(--line); }
.section__head { max-width: 62ch; margin-bottom: 1.75rem; }
.section__head--row { display: flex; justify-content: space-between; align-items: end; gap: 1rem; max-width: none; flex-wrap: wrap; }
.section__head p:last-child { color: var(--muted); margin-bottom: 0; }
.eyebrow { margin: 0 0 0.4rem; font: 800 0.78rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.eyebrow a { color: inherit; }
.section__head h2 { font-family: var(--display); text-transform: none; font-weight: 900; }
.popular { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin: 1.5rem 0 0; font-size: 0.92rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.axes { padding-left: 1.1rem; margin: 1rem 0; }
.axes li { margin-bottom: 0.3rem; }
.link-arrow { font-weight: 700; }
.link-arrow::after { content: ' \2192'; }

/* Verdict sample */
.verdict-sample { padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.verdict-sample__tag { margin: 0 0 0.75rem; font: 800 0.72rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.verdict-sample__top { display: flex; gap: 1rem; align-items: flex-start; }
.verdict-sample__top h3 { margin: 0 0 0.2rem; }
.verdict-sample__top p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.verdict-sample__tier { display: grid; flex: none; place-items: center; width: 56px; height: 56px; color: #fff; background: #3a6ea5; border-radius: 12px; font: 800 1.8rem var(--sans); }
.bars { margin: 1.25rem 0; }
.bars div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem; align-items: center; margin-bottom: 0.5rem; }
.bars dt { font-size: 0.88rem; }
.bars dd { display: flex; align-items: center; gap: 0.6rem; margin: 0; }
.bar { flex: 1; height: 8px; overflow: hidden; background: #e6ecf7; border-radius: 4px; }
.bar i { display: block; height: 100%; background: var(--brand); }
.bars b { min-width: 2ch; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.verdict-sample__adv { padding: 0.75rem 1rem; margin: 0; font-size: 0.9rem; background: #fff7e0; border-left: 3px solid #d99a00; border-radius: 4px; }

/* Steps / tiles */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; padding: 0; margin: 0; list-style: none; counter-reset: s; }
.steps li { padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; counter-increment: s; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 0.75rem; color: #fff; background: var(--brand); border-radius: 50%; font-weight: 800; }
.steps p { margin: 0; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1.25rem; }
.tile { display: flex; flex-direction: column; padding: 1.4rem; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); transition: border-color 0.15s, transform 0.15s; }
.tile:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--ink); }
.tile h2, .tile h3 { font-size: 1.1rem; }
.tile p { flex: 1; color: var(--muted); font-size: 0.93rem; }
.meta { font-size: 0.82rem; font-weight: 700; color: var(--brand); }

/* FAQ */
.faq details { padding: 1rem 1.25rem; margin-bottom: 0.6rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 0.75rem 0 0; color: var(--muted); }

/* CTA */
.cta { padding: 3rem 0; color: #fff; background: var(--brand); }
.cta__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta h2 { margin: 0; font-family: var(--display); }

/* Test page */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 1rem 0 0.75rem; font-size: 0.88rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.test-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.25rem; }
.test-head h1 { margin: 0 0 0.25rem; font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-family: var(--display); font-weight: 900; }
.test-head__thumb { flex: none; width: 96px; height: 54px; object-fit: cover; border-radius: 10px; }
.test-head__desc { margin: 0; color: var(--muted); max-width: 90ch; }
.test-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.test-nav { padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); position: sticky; top: 86px; }
.test-nav h2 { font-size: 1.05rem; }
.test-nav ul { padding: 0; margin: 0; list-style: none; }
.test-nav a { display: flex; gap: 0.6rem; align-items: center; padding: 0.45rem; color: var(--ink); text-decoration: none; font-size: 0.9rem; font-weight: 600; border-radius: 10px; }
.test-nav a:hover { background: var(--brand-soft); }
.test-nav .is-current a { color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px #b9d0ff; }
.test-nav img { flex: none; width: 56px; height: 32px; object-fit: cover; border-radius: 6px; }
.test-prose { padding: 2.5rem 0 1rem; }

/* Pages */
.page-head { padding: clamp(1.75rem, 4vw, 3rem) 0 1.25rem; background: #fff; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.page-head h1 { margin: 0; font-family: var(--display); font-weight: 900; }
.page-head .lede { margin: 0.75rem 0 0; }
.prose { padding-bottom: 2rem; }
.prose h2 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
.prose th, .prose td { padding: 0.55rem 0.75rem; text-align: left; border-bottom: 1px solid var(--line); }
.prose blockquote { padding: 0.5rem 1rem; margin: 1rem 0; border-left: 3px solid var(--brand); background: var(--tint); }
.callout { padding: 1.25rem 1.5rem; margin-bottom: 3rem; background: var(--brand-soft); border: 1px solid #c3d6ff; border-radius: 14px; }
.callout h2 { font-size: 1.15rem; }
.callout ul { padding-left: 1.2rem; margin: 0 0 0.75rem; }
.pager { margin-top: 2rem; }
.pager .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pager .page-numbers { padding: 0.4rem 0.8rem; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: #fff; }
.pager .current { color: #fff; background: var(--brand); border-color: var(--brand); }
.smgpu-guides { padding-left: 1.2rem; }
.smgpu-guides li { margin-bottom: 0.9rem; }
.smgpu-guides span, .smgpu-also { color: var(--muted); font-size: 0.88rem; }
.article > .wrap:has(.smgpu-runner) { margin-bottom: 1.5rem; }

/* Footer */
.site-footer { margin-top: 3rem; padding-top: 3rem; background: #0b1220; color: #b6bfd1; }
.site-footer a { color: #e7ecf7; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid ul, .site-footer .menu { padding: 0; margin: 0; list-style: none; display: block; }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-h { margin: 0 0 0.75rem; font: 800 0.8rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: #fff; }
.footer-about { max-width: 38ch; font-size: 0.92rem; }
.footer-legal { padding-block: 1.5rem; margin-top: 2rem; font-size: 0.8rem; border-top: 1px solid #1f2a40; }
.footer-legal p { margin: 0; max-width: 90ch; }
.search-form { display: flex; gap: 0.5rem; }
.search-field { flex: 1; padding: 0.6rem 0.8rem; font: inherit; border: 1px solid var(--line); border-radius: 8px; }
.search-submit { padding: 0.6rem 1rem; font: inherit; color: #fff; background: var(--brand); border: 0; border-radius: 8px; cursor: pointer; }

/* ---------------------------------------------------------------- responsive layer */
.footer-list--cols { columns: 2; column-gap: 1.25rem; }
.footer-list--cols li { break-inside: avoid; }
.site-footer { padding-bottom: env(safe-area-inset-bottom, 0px); }
.site-footer a { display: inline-block; padding: 0.3rem 0; }
@media (max-width: 1023px) { .site-footer a { display: inline-flex; align-items: center; min-height: 44px; } }
.footer-grid { grid-template-columns: 1.3fr 1fr 1.5fr 1fr; }
.footer-grid li { margin-bottom: 0.1rem; }
.prose table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose img, .prose video, .prose iframe { max-width: 100%; height: auto; }
.faq summary, .test-nav a, .crumbs a { min-height: 44px; }
.faq summary { display: flex; align-items: center; padding-block: 0.25rem; }
.crumbs a { display: inline-flex; align-items: center; }
.crumbs { align-items: center; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.search-field { min-width: 0; min-height: 44px; font-size: 1rem; }
.search-submit { min-height: 44px; }
.tile { min-width: 0; }
.popular a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.15rem; }
.link-arrow { display: inline-flex; align-items: center; min-height: 44px; }
.eyebrow a { display: inline-flex; align-items: center; min-height: 44px; }
.page-head .lede, .test-head__desc { max-width: 75ch; }
.feat { border-left: 0; border-top: 1px solid var(--line); }
.feat:nth-child(-n+2) { border-top: 0; }
@media (min-width: 521px) and (max-width: 1099px) { .features__in { grid-template-columns: repeat(2, 1fr); } .feat:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .features__in { grid-template-columns: repeat(5, 1fr); } .feat { border-top: 0; border-left: 1px solid var(--line); } .feat:first-child { border-left: 0; } }
.hero__visual { min-height: clamp(340px, 34vw, 480px); }

/* Tablet and below */
@media (max-width: 1099px) {
	.test-layout { grid-template-columns: 1fr; }
	.test-nav { display: none; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	.hero__in, .split { grid-template-columns: 1fr; }
	.hero__visual { min-height: 0; display: block; }
	.hero__gpu { position: static; display: block; width: min(70%, 380px); margin: 0 auto -2.5rem; transform: rotate(-4deg); }
	.hero__panel { width: 100%; justify-self: stretch; }
	.steps { grid-template-columns: 1fr; }
	.hero__cta .btn { flex: 1 1 14rem; }
	.cta__in { flex-direction: column; align-items: flex-start; }
	.cta .btn { width: 100%; }
}

/* Mobile navigation: drawer with accordion groups */
@media (max-width: 1023px) {
	.nav-toggle { display: block; }
	.primary-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0.75rem; max-height: calc(100vh - var(--head-h) - env(safe-area-inset-top, 0px)); max-height: calc(100dvh - var(--head-h) - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain; padding: 0.5rem max(1rem, env(safe-area-inset-right, 0px)) calc(1.25rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px)); background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -28px rgba(11, 18, 32, 0.5); }
	.primary-nav.is-open { display: flex; justify-content: flex-start; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
	.primary-nav .menu > li { display: flex; flex-wrap: wrap; align-items: stretch; border-bottom: 1px solid var(--line); }
	.primary-nav .menu > li.menu__home { display: flex; }
	.primary-nav .menu > li > a { flex: 1; min-height: 52px; padding: 0.5rem 0; border-bottom: 0; }
	.primary-nav .menu > li > a[aria-current] { border-bottom: 0; }
	.primary-nav a[aria-current] { box-shadow: inset 3px 0 0 var(--brand); padding-left: 0.75rem; }
	.has-sub > a::after { display: none; }
	.sub-toggle { width: 52px; height: 52px; margin: 0; }
	.sub, .sub--mega { position: static; display: none; flex: 0 0 100%; min-width: 0; max-height: none; margin: 0 0 0.5rem; padding: 0 0 0 0.5rem; background: transparent; border: 0; border-left: 2px solid var(--line); border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; overflow: visible; transition: none; }
	.has-sub.is-open > .sub { display: block; }
	.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; }
	.nav-js .has-sub:not(.is-open) > .sub { display: none; }
	.sub--mega .sub__group { margin-bottom: 0.5rem; }
	.sub__all a:not(.btn) { margin-top: 0; border-top: 0; }
	/* No-JS fallback: show every sub menu flat. */
	.primary-nav:not(.nav-js) .sub { display: block; }
	.nav-search input { width: 100%; }
	.primary-nav .btn { width: 100%; }
}

/* Laptop widths: keep the desktop menu from crowding */
@media (min-width: 1024px) and (max-width: 1279px) {
	.nav-search { display: none; }
	.primary-nav { gap: 0.9rem; }
	.primary-nav .menu { gap: 1rem; }
	.primary-nav a:not(.btn) { font-size: 0.9rem; }
	.btn--sm { padding-inline: 0.85rem; }
}
@media (min-width: 1024px) { .sub--mega { left: auto; right: -6rem; margin-left: 0; } }

@media (max-width: 640px) {
	.test-head { align-items: flex-start; }
	.test-head__thumb { width: 72px; height: 41px; }
	.chip--sm { display: inline-block; margin: 0.25rem 0 0; }
	.bars div { grid-template-columns: 6rem 1fr; }
	.verdict-sample { padding: 1.1rem; }
	.callout { padding: 1rem; margin-bottom: 2rem; }
	.section__head--row .btn { width: 100%; }
	.crumbs { gap: 0.1rem 0.4rem; }
}
@media (max-width: 520px) {
	.footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
	.features__in { grid-template-columns: 1fr; }
	.feat { border-top: 1px solid var(--line); }
	.feat:first-child { border-top: 0; }
	.feat:nth-child(2) { border-top: 1px solid var(--line); }
	.hero__cta .btn { flex-basis: 100%; }
	.site-header__in { gap: 0.5rem; }
}
@media (max-width: 380px) { .brand__svg { width: 32px; height: 32px; } .brand { gap: 0.4rem; } }

/* Short landscape phones: keep the header compact and the drawer scrollable */
@media (max-height: 480px) and (orientation: landscape) {
	:root { --head-h: 56px; }
	.hero { padding-top: 1.25rem; }
	.hero__visual { display: none; }
	.site-footer { margin-top: 2rem; padding-top: 2rem; }
}

/* Very wide screens: backgrounds keep going, content stays centred */
@media (min-width: 1920px) {
	body { font-size: 1.0625rem; }
	.hero { padding-block: 5rem 3rem; }
}

/* Focus, motion and input modes */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; border-radius: 6px; }
.site-footer :focus-visible { outline-color: #8ab4ff; }
.cta :focus-visible { outline-color: #fff; }
.nav-search input:focus-visible { outline-offset: 0; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.tile:hover, .smgpu-card:hover { transform: none; }
}
@media (forced-colors: active) { .btn, .nav-toggle, .sub-toggle { border: 1px solid ButtonText; } }

.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Print */
@media print {
	.site-header, .site-footer, .nav-toggle, .skip-link, .hero__visual, .cta, .test-nav, .smgpu-controls, .smgpu-hud, .smgpu-stage, .smgpu-side, .nav-search { display: none !important; }
	html, body { background: #fff !important; color: #000 !important; font-size: 11pt; }
	.wrap, .wrap--narrow { width: 100% !important; }
	.page-head { background: none; border: 0; padding: 0 0 0.5rem; }
	a { color: #000; text-decoration: underline; }
	.prose a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 0.85em; word-break: break-all; }
	.tile, .verdict-sample, .callout { box-shadow: none; break-inside: avoid; }
	.section, .site-main { padding-block: 0.5rem; }
}

/* Tool and landing pages: the prose column widens for tools/runners, text stays readable */
.wrap--narrow.prose:has(.smgpu-tool), .wrap--narrow.prose:has(.smgpu-runner) { width: min(100% - 2 * var(--gut), 1100px); }
.prose:has(.smgpu-tool) > :where(p, ul, ol, h2, h3, h4, blockquote, details, .faq), .prose:has(.smgpu-runner) > :where(p, ul, ol, h2, h3, h4, blockquote, details, .faq) { max-width: 780px; }
.prose .smgpu-tool, .prose .smgpu-runner { margin-block: 1.25rem; }

/* ---- Tool and test help sections: About, How to read, FAQ (rendered by the plugin) ---- */
.smgpu-info { margin: 2.25rem 0 0; padding: 1.25rem 1.25rem 0.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.smgpu-info > h2 { margin-top: 0; font-size: clamp(1.25rem, 1.05rem + 1vw, 1.7rem); }
.smgpu-info h3 { margin: 1.1rem 0 0.4rem; }
.smgpu-info--faq { padding-bottom: 1.25rem; }
.smgpu-faq { display: grid; gap: 0.6rem; }
.smgpu-faq__item { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.smgpu-faq__item[open] { background: var(--brand-soft); border-color: #bcd2ff; }
.smgpu-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; padding: 0.7rem 1rem; font-weight: 700; line-height: 1.35; cursor: pointer; list-style: none; border-radius: 12px; }
.smgpu-faq__item summary::-webkit-details-marker { display: none; }
.smgpu-faq__item summary::after { content: ''; flex: none; width: 9px; height: 9px; border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.15s; }
.smgpu-faq__item[open] summary::after { transform: rotate(225deg); }
.smgpu-faq__item p { margin: 0; padding: 0 1rem 1rem; color: #1e2a44; }
ul.smgpu-also { padding-left: 1.3rem; }

/* ---- Comments (feedback under tools and tests) ---- */
.smgpu-comments { margin: 2.5rem 0 3rem; padding: 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.smgpu-comments__title { margin-top: 0; font-size: clamp(1.25rem, 1.05rem + 1vw, 1.7rem); }
.smgpu-comments__lead, .smgpu-comments__note, .smgpu-hint { color: var(--muted); }
.smgpu-comments__count { margin-top: 1.5rem; font-size: 1.05rem; }
.smgpu-comments__list, .smgpu-comments__list .children { margin: 0; padding: 0; list-style: none; }
.smgpu-comments__list .children { margin: 0.75rem 0 0 0.75rem; padding-left: 0.75rem; border-left: 3px solid var(--line); }
.smgpu-comment { margin: 0 0 0.9rem; }
.smgpu-comment__body { padding: 0.9rem 1rem; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.smgpu-comment__meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.smgpu-comment__avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; background: var(--tint); }
.smgpu-comment__author { display: block; font-weight: 800; }
.smgpu-comment__date { color: var(--muted); font-size: 0.88rem; }
.smgpu-comment__wait { padding: 0.5rem 0.75rem; color: #7a4b00; background: #fff6e0; border-radius: 8px; font-size: 0.92rem; }
.smgpu-comment__text p:last-child { margin-bottom: 0; }
.smgpu-comment__reply a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.5rem; font-weight: 700; }
.comment-reply-title { margin-top: 1.5rem; font-size: 1.15rem; }
.comment-reply-title small a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 0.5rem; font-size: 0.9rem; }
.smgpu-comments form p { margin: 0 0 1rem; }
.smgpu-comments label { display: block; margin-bottom: 0.3rem; font-weight: 700; }
.smgpu-comments input[type='text'], .smgpu-comments input[type='email'], .smgpu-comments textarea { display: block; width: 100%; min-height: 44px; padding: 0.65rem 0.8rem; font: inherit; color: var(--ink); background: #fff; border: 1px solid #c9d5ee; border-radius: 10px; }
.smgpu-comments textarea { min-height: 8rem; resize: vertical; }
.smgpu-comments .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 0.6rem; }
.smgpu-comments .comment-form-cookies-consent input { flex: none; width: 24px; height: 24px; margin-top: 0.1rem; }
.smgpu-comments .comment-form-cookies-consent label { margin: 0; font-weight: 500; }
.smgpu-comments .form-submit .submit { width: 100%; }
.smgpu-req { color: #b00020; }
.smgpu-hint { display: block; margin-top: 0.3rem; font-size: 0.9rem; }
.smgpu-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 640px) {
	.smgpu-comments { padding: 1.75rem; }
	.smgpu-comments .form-submit .submit { width: auto; }
	.smgpu-comments__list .children { margin-left: 1.5rem; padding-left: 1rem; }
}
