/* Let's Clarify That — tech-magazine theme (inspired by Gearbox): white pages, black accents,
   Inter for reading, Bebas Neue for labels and headings, one blue accent, 20px rounded panels. */
:root {
  --bg: #ffffff;
  --bg-2: #f8f9fa;
  --bg-3: #e9ecef;
  --surface: #ffffff;
  --ink: #000000;
  --text: #000000;
  --text-2: #343a40;
  --muted: #818181;
  --line: #e9ecef;
  --line-2: #dee2e6;
  --accent: #007aff;
  --accent-hover: #004eff;
  --accent-soft: #e8f2ff;
  --ok: #2f9e4f;
  --ok-soft: #e9f6ec;
  --warn: #d98a00;
  --warn-soft: #fff5e0;
  --bad: #e32c26;
  --bad-soft: #fdeceb;
  --panel: #000000;
  --panel-text: #ffffff;
  --radius: 20px;
  --radius-s: 5px;
  --display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --w: 1240px;
  --w-narrow: 800px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f0f10;
  --bg-2: #1a1b1e;
  --bg-3: #26282c;
  --surface: #151618;
  --ink: #ffffff;
  --text: #ffffff;
  --text-2: #ced4da;
  --muted: #8f949b;
  --line: #26282c;
  --line-2: #33363b;
  --accent-soft: rgba(0, 122, 255, .16);
  --ok-soft: rgba(47, 158, 79, .16);
  --warn-soft: rgba(217, 138, 0, .16);
  --bad-soft: rgba(227, 44, 38, .16);
  --panel: #000000;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--surface); padding: 8px 14px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--w-narrow); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -.01em; }

/* labels: small uppercase gray "subheading" above a Bebas title, as in the reference theme */
.kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 500 12px var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kp-ico { width: 18px; height: 18px; display: inline-grid; place-items: center; color: var(--ink); }
.kp-ico svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- top bar + header */
.topbar { background: #000; color: #fff; font-size: 13px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.tb-text { color: rgba(255, 255, 255, .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-tools { display: flex; align-items: center; gap: 18px; flex: none; }
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: rgba(255, 255, 255, .8); cursor: pointer; padding: 4px 0; font-size: 13px; }
.tt-track { width: 30px; height: 16px; border-radius: 99px; background: rgba(255, 255, 255, .25); position: relative; }
.tt-dot { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .2s; }
:root[data-theme="dark"] .tt-dot { transform: translateX(14px); }
:root[data-theme="dark"] .tt-track { background: var(--accent); }
.lang-switch { color: #fff; text-decoration: none; font: 400 15px var(--display); letter-spacing: .05em; text-transform: uppercase; }
.lang-switch:hover { color: var(--accent); }
@media (max-width: 640px) { .tt-label { display: none; } .tb-text { font-size: 12px; } }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo img { border-radius: 8px; }
.logo-text { font: 400 30px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.logo-text b { font-weight: 400; color: #fff; background: var(--accent); padding: 0 6px; margin: 0 2px; border-radius: 4px; }
.site-nav { display: flex; align-items: center; flex: 1; gap: 16px; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; color: var(--ink); text-decoration: none; font: 400 20px/1 var(--display); letter-spacing: .025em; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.nav-link:hover, .has-sub.open > .nav-link { color: var(--accent); }
.ni { width: 18px; height: 18px; display: inline-grid; color: var(--accent); }
.chev { width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .5; }
.has-sub { position: relative; }
.sub { display: none; position: absolute; top: calc(100% + 12px); left: 0; min-width: 240px; list-style: none; margin: 0; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 40px rgba(0, 0, 0, .12); }
.has-sub.open > .sub { display: block; }
.sub a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.sub a:hover { background: var(--bg-2); color: var(--accent); }
.mi { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--bg-2); color: var(--ink); }
.mi svg { width: 17px; height: 17px; }
.hsearch { position: relative; display: flex; align-items: center; width: 300px; }
.hsearch input { width: 100%; padding: 10px 12px 10px 36px; border: 1px solid var(--line-2); border-radius: 5px; background: var(--bg); font-size: 14px; }
.hsearch input:focus { outline: none; border-color: var(--accent); }
.si { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--ink); pointer-events: none; display: grid; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 22px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; transition: .2s; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -7px; } .nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 1060px) { .hsearch { width: 220px; } }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 14px 20px 20px; box-shadow: 0 20px 40px rgba(0, 0, 0, .1); max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .site-nav.open { display: flex; }
  html.nav-open, html.nav-open body { overflow: hidden; }
  .nav-list { flex-direction: column; }
  .nav-link { width: 100%; justify-content: flex-start; padding: 12px 4px; font-size: 24px; }
  .sub-toggle { justify-content: space-between; }
  .sub { position: static; box-shadow: none; border: 0; padding: 0 0 8px; }
  .nav-tools { margin: 10px 0 0; }
  .hsearch { width: auto; flex: 1; }
}

/* ---------------------------------------------------------------- search results dropdown */
.sresults { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 40px rgba(0, 0, 0, .14); padding: 6px; max-height: 420px; overflow: auto; text-align: left; }
.sresults a { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 9px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.sresults a:hover { background: var(--bg-2); }
.sresults .sr-meta { grid-column: 2; font-size: 12px; color: var(--muted); }
.sresults .sr-t { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.sresults .empty { padding: 12px; color: var(--muted); font-size: 14.5px; }

/* ---------------------------------------------------------------- buttons, pills, labels */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 30px; border-radius: 5px; border: 0; background: var(--accent); color: #fff; font: 400 17px/1 var(--display); letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: background .15s; white-space: nowrap; }
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: var(--bg-3); color: var(--ink); }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); }
.btn-ok { background: var(--ok); }
.btn-ok:hover { background: #237d3d; }
.code-pill { display: inline-block; font: 700 13.5px var(--mono); padding: 4px 9px; border-radius: 5px; background: #000; color: #fff; white-space: nowrap; }
:root[data-theme="dark"] .code-pill { background: #fff; color: #000; }
.code-pill.sm { font-size: 12px; padding: 3px 7px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.chip { font-size: 13px; color: var(--muted); }
.chip.mono { font-family: var(--mono); color: var(--text-2); }
.sev { font: 400 16px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.sev::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sev-user { color: var(--ok); }
.sev-mixed { color: var(--warn); }
.sev-service { color: var(--bad); }

/* ---------------------------------------------------------------- breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 22px auto 0; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- search box */
.finder { position: relative; display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 5px; padding: 5px 5px 5px 44px; max-width: 660px; }
.finder:focus-within { border-color: var(--accent); }
.finder .si { left: 16px; width: 20px; height: 20px; }
.finder input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font: 500 16.5px var(--font); padding: 11px 4px; }
.finder-big input { font-size: 18px; padding: 13px 4px; }
.search-page { margin-bottom: 30px; }
.search-out { margin-top: 18px; }

/* ---------------------------------------------------------------- home */
.home-hero { padding: 26px 0 0; }
.home-hero .hh-grid { background: #000; color: #fff; border-radius: var(--radius); padding: 56px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; position: relative; overflow: visible; max-width: calc(var(--w) - 48px); }
.home-hero .hh-grid::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); background: radial-gradient(600px 360px at 90% 0%, rgba(0, 122, 255, .35), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(0, 122, 255, .15), transparent 60%); pointer-events: none; }
.hh-text, .hh-visual { position: relative; }
.eyebrow { margin: 0; font: 500 12px var(--font); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.home-hero h1 { color: #fff; font: 400 clamp(44px, 5.6vw, 76px)/1 var(--display); letter-spacing: .01em; margin: 12px 0 18px; }
.home-hero h1 em { font-style: normal; color: var(--accent); }
.home-hero .lead { color: rgba(255, 255, 255, .78); font-size: 17px; max-width: 600px; margin: 0 0 26px; }
.home-hero .finder { background: #fff; border-color: #fff; }
.home-hero .finder input { color: #000; }
.home-hero .finder .si { color: #000; }
.hh-or { display: flex; align-items: center; gap: 12px; max-width: 660px; margin: 16px 0; color: rgba(255, 255, 255, .5); font-size: 13px; }
.hh-or::before, .hh-or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .16); }
.btn-shot { background: rgba(255, 255, 255, .1); }
.btn-shot:hover { background: rgba(255, 255, 255, .2); }
.hh-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 24px 0 0; color: rgba(255, 255, 255, .7); font-size: 14px; }
.hh-points li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 7px; }
.hh-visual { display: grid; gap: 14px; justify-items: center; }
.err-window { width: 100%; max-width: 420px; background: #f8f9fa; color: #000; border-radius: 14px; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); overflow: hidden; }
.ew-bar { display: flex; gap: 6px; padding: 10px 12px; background: #e9ecef; }
.ew-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ced4da; }
.ew-bar i:first-child { background: #ff5f57; }
.ew-title { font-weight: 700; font-size: 17px; margin: 16px 18px 6px; }
.ew-text { margin: 0 18px 10px; font-size: 14px; color: #495057; }
.ew-code { margin: 0 18px 18px; font: 600 14px var(--mono); }
.ew-code mark { background: rgba(0, 122, 255, .14); color: var(--accent); padding: 2px 4px; border-radius: 4px; outline: 2px dashed var(--accent); outline-offset: 2px; }
.ew-arrow { font-size: 26px; color: var(--accent); line-height: 1; }
.ew-result { display: flex; align-items: center; gap: 10px; background: #fff; color: #000; padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; max-width: 420px; }
.ew-result .code-pill { background: #000; color: #fff; }
@media (max-width: 960px) { .home-hero .hh-grid { grid-template-columns: 1fr; padding: 36px 24px; } .hh-visual { display: none; } }
@media (max-width: 640px) { .home-hero .wrap { padding: 0 12px; } }

.section { padding: 64px 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: 26px; }
.section-head .kicker { margin-bottom: 4px; }
.section-head h2 { font: 400 clamp(30px, 3vw, 40px)/1.05 var(--display); letter-spacing: .01em; margin: 0 0 8px; }
.section-head p { color: var(--muted); margin: 0; font-size: 16px; }

.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.pcard { background: var(--bg-2); border-radius: var(--radius); overflow: hidden; }
.section-alt .pcard { background: var(--surface); }
.pc-head { display: grid; grid-template-columns: auto 1fr; gap: 0 14px; align-items: center; padding: 22px 22px 14px; text-decoration: none; color: var(--ink); }
.pc-head:hover { color: var(--accent); }
.pc-ico { grid-row: span 2; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #000; color: #fff; }
.pc-ico svg { width: 26px; height: 26px; }
.pcard[data-p="windows"] .pc-ico { background: var(--accent); }
.pc-name { font: 400 28px/1 var(--display); letter-spacing: .02em; }
.pc-n { font-size: 13px; color: var(--muted); }
.pcard ul { list-style: none; margin: 0; padding: 4px 12px 16px; }
.pcard li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-top: 1px solid var(--line-2); }
.pcard li a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.pcard li a:hover { color: var(--accent); }
.pcard li span { font: 400 16px var(--display); color: var(--muted); }

.shot-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: center; }
.shot-feature h2 { font: 400 clamp(32px, 3.4vw, 44px)/1.05 var(--display); margin: 0 0 12px; letter-spacing: .01em; }
.shot-feature p { color: var(--text-2); }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li { padding-left: 28px; position: relative; margin: 9px 0; color: var(--text-2); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 900; font-size: 11px; display: grid; place-items: center; }
.steps3 { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps3 li { counter-increment: s; background: var(--surface); border-radius: var(--radius); padding: 18px 20px 18px 82px; position: relative; display: grid; gap: 2px; }
.steps3 li::before { content: "0" counter(s); position: absolute; left: 22px; top: 50%; transform: translateY(-50%); font: 400 40px/1 var(--display); color: var(--accent); }
.steps3 b { font-size: 16px; color: var(--ink); }
.steps3 span { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .shot-feature { grid-template-columns: 1fr; } }

.popular { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.popular a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--bg-2); border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.35; transition: background .15s; }
.popular a:hover { background: var(--bg-3); color: var(--ink); }

/* ---------------------------------------------------------------- list & platform pages */
.list-hero { padding-top: 16px; padding-bottom: 28px; }
.list-hero h1, .page-head h1 { font: 400 clamp(38px, 4.6vw, 60px)/1 var(--display); letter-spacing: .01em; margin: 4px 0 14px; }
.list-hero .lead, .page-head .lead { font-size: 17px; color: var(--text-2); max-width: 820px; margin: 0 0 22px; }
.list-body { padding-bottom: 60px; }
.table-wrap { background: var(--bg-2); border-radius: var(--radius); overflow-x: auto; margin-bottom: 30px; padding: 6px 10px; }
table.codes { width: 100%; border-collapse: collapse; font-size: 15px; }
table.codes th { text-align: left; font: 400 16px var(--display); letter-spacing: .05em; color: var(--muted); padding: 14px 14px 10px; }
table.codes td { padding: 13px 14px; border-top: 1px solid var(--line-2); vertical-align: middle; }
table.codes td a { color: var(--ink); text-decoration: none; font-weight: 600; }
table.codes td a:hover { color: var(--accent); }
table.codes td:first-child, table.codes td:last-child { width: 1%; }
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-bottom: 30px; }
.gcard { display: flex; flex-direction: column; gap: 8px; padding: 26px; background: var(--bg-2); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: background .15s; }
.gcard:hover { background: var(--bg-3); color: var(--ink); }
.gc-n { font: 400 16px var(--display); letter-spacing: .05em; color: var(--accent); }
.gc-title { font: 400 30px/1.05 var(--display); letter-spacing: .01em; }
.gc-text { color: var(--text-2); font-size: 15px; flex: 1; }
.gc-codes { font: 600 13px var(--mono); color: var(--muted); }
.list-sources { margin-top: 34px; }

/* ---------------------------------------------------------------- code page */
.code-hero { padding-top: 16px; padding-bottom: 28px; }
.code-hero .kicker { margin-bottom: 12px; }
.lcd { display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 14px; padding: 18px 26px; border-radius: var(--radius); background: #000; margin: 0 0 20px; }
.lcd::before { content: ""; width: 6px; align-self: stretch; border-radius: 3px; background: var(--accent); }
.lcd span { font: 800 clamp(28px, 5vw, 48px)/1.1 var(--mono); color: #fff; letter-spacing: .02em; word-break: break-all; }
.lcd.big span { font-size: 76px; }
.code-hero h1 { font: 700 clamp(26px, 3.2vw, 38px)/1.2 var(--font); letter-spacing: -.02em; margin: 0 0 14px; max-width: 900px; }
.answer { margin-top: 22px; background: var(--bg-2); border-radius: var(--radius); padding: 22px 26px; max-width: 900px; }
.answer-label { margin: 0 0 6px; font: 400 17px var(--display); letter-spacing: .05em; color: var(--accent); }
.answer p:last-child { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; padding-bottom: 56px; }
@media (max-width: 1020px) { .layout { grid-template-columns: 1fr; } }
.side { position: sticky; top: 90px; display: grid; gap: 20px; }
@media (max-width: 1020px) { .side { position: static; } }
.side-mod { background: var(--bg-2); border-radius: var(--radius); padding: 22px 20px 14px; }
.mod-title { margin: 0 0 12px; font: 400 22px/1.1 var(--display); letter-spacing: .02em; color: var(--ink); }
.other-codes { list-style: none; margin: 0; padding: 0; }
.other-codes a { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.3; font-weight: 500; }
.other-codes li:first-child a { border-top: 0; }
.other-codes a:hover { color: var(--accent); }
.more { font: 400 17px var(--display); letter-spacing: .04em; text-decoration: none; }

.shot-cta { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; background: #000; color: rgba(255, 255, 255, .75); border-radius: var(--radius); padding: 24px; margin: 0 0 26px; }
.shot-cta .sc-ico { grid-row: span 2; width: 48px; height: 48px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.shot-cta .sc-ico svg { width: 26px; height: 26px; }
.shot-cta .sc-title { color: #fff; font: 400 24px/1.1 var(--display); letter-spacing: .02em; margin: 0; }
.shot-cta p { margin: 0; font-size: 14px; }
.shot-cta .btn { grid-column: 1 / -1; margin-top: 12px; justify-self: start; }
.list-body .shot-cta, .content-page .shot-cta { grid-template-columns: auto 1fr auto; }
.list-body .shot-cta .btn, .content-page .shot-cta .btn { grid-column: auto; grid-row: span 2; margin: 0; }
@media (max-width: 640px) { .list-body .shot-cta, .content-page .shot-cta { grid-template-columns: auto 1fr; } .list-body .shot-cta .btn, .content-page .shot-cta .btn { grid-column: 1 / -1; grid-row: auto; margin-top: 12px; } }

/* ---------------------------------------------------------------- prose */
.article { min-width: 0; }
.content-page { padding-top: 16px; padding-bottom: 64px; }
.prose { font-size: 17px; line-height: 1.75; color: var(--text-2); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font: 400 32px/1.1 var(--display); letter-spacing: .01em; margin: 44px 0 14px; color: var(--ink); }
.prose h3 { font: 700 19px/1.3 var(--font); margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); }
.prose code, .prose kbd { font: .86em var(--mono); background: var(--bg-2); border: 1px solid var(--line-2); padding: 1px 6px; border-radius: 4px; color: var(--ink); }
.prose kbd { border-bottom-width: 2px; }
.byline { color: var(--muted); font-size: 13px; margin: 0; }
.callout, .notice { border-radius: 14px; padding: 18px 22px; margin: 0 0 22px; font-size: 15.5px; }
.callout p:last-child { margin: 0; }
.callout strong:first-child { display: block; margin-bottom: 4px; font: 400 19px var(--display); letter-spacing: .04em; color: var(--ink); }
.callout-warn { background: var(--warn-soft); }
.notice-ok { background: var(--ok-soft); color: var(--ink); }
.notice-err { background: var(--bad-soft); color: var(--ink); }
.notice-info { background: var(--accent-soft); color: var(--ink); }
ol.causes { padding-left: 0; list-style: none; counter-reset: cz; }
ol.causes li { counter-increment: cz; position: relative; padding-left: 42px; margin: 10px 0; }
ol.causes li::before { content: "0" counter(cz); position: absolute; left: 0; top: -2px; font: 400 26px/1 var(--display); color: var(--accent); }
ol.checklist { list-style: none; padding: 0; counter-reset: c; }
ol.checklist li { counter-increment: c; margin: 0 0 10px; }
ol.checklist label { display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: start; padding: 16px 18px; background: var(--bg-2); border-radius: 14px; cursor: pointer; }
ol.checklist label::before { content: counter(c); font: 400 22px/1 var(--display); color: #fff; background: #000; border-radius: 6px; width: 30px; height: 30px; display: grid; place-items: center; order: -1; }
:root[data-theme="dark"] ol.checklist label::before { background: var(--accent); }
ol.checklist input { width: 20px; height: 20px; margin: 5px 0 0; accent-color: var(--ok); }
ol.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
ol.checklist label:has(input:checked) { background: var(--ok-soft); }
.fixed { background: var(--accent-soft); border-radius: 14px; padding: 20px 22px; margin: 8px 0 12px; }
.fixed-q { margin: 0 0 12px; font: 400 22px var(--display); letter-spacing: .03em; color: var(--ink); }
.fixed-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.fixed-msg { margin: 14px 0 0; font-weight: 600; color: var(--ink); }
.sources { padding-left: 20px; font-size: 14.5px; }
.faq h3 { margin-top: 24px; }

/* ---------------------------------------------------------------- screenshot tool */
.shot-tool { background: var(--bg-2); border-radius: var(--radius); padding: 22px; margin: 0 0 38px; font-size: 16px; color: var(--ink); }
.st-drop { display: grid; place-items: center; text-align: center; gap: 10px; min-height: 240px; padding: 30px 20px; border: 2px dashed var(--line-2); border-radius: 16px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.st-drop.over, .st-drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.st-drop svg { width: 56px; height: 56px; color: var(--accent); }
.st-drop b { color: var(--ink); font: 400 26px/1.1 var(--display); letter-spacing: .02em; }
.st-badge { display: inline-block; font: 400 14px var(--display); letter-spacing: .08em; background: var(--accent); color: #fff; padding: 3px 9px; border-radius: 4px; }
.st-tips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; list-style: none; padding: 0; margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.st-privacy { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; margin: 14px 2px 0; }
.st-privacy::before { content: "🔒"; }
.st-work { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; }
@media (max-width: 860px) { .st-work { grid-template-columns: 1fr; } }
.st-canvas-wrap { position: relative; background: var(--bg-3); border-radius: 14px; overflow: hidden; touch-action: none; }
.st-canvas-wrap canvas { display: block; width: 100%; height: auto; cursor: crosshair; }
.st-sel { position: absolute; border: 2px solid var(--accent); background: rgba(0, 122, 255, .12); pointer-events: none; display: none; }
.st-panel { display: flex; flex-direction: column; gap: 12px; }
.st-hint { margin: 0; color: var(--muted); font-size: 14px; }
.st-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.st-status { margin: 0; font-weight: 600; color: var(--ink); }
.st-bar { height: 4px; background: var(--bg-3); border-radius: 2px; overflow: hidden; }
.st-bar b { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.st-matches { display: grid; gap: 10px; }
.st-match { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; padding: 14px; border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.st-match:hover { border-color: var(--accent); color: var(--ink); }
.st-match .lcd-mini { grid-row: span 2; font: 800 16px var(--mono); background: #000; color: #fff; padding: 10px 12px; border-radius: 10px; }
.st-match b { font-size: 15px; line-height: 1.3; }
.st-match small { color: var(--accent); font: 400 15px var(--display); letter-spacing: .04em; }
.st-raw { font: 12px/1.5 var(--mono); color: var(--muted); background: var(--surface); border-radius: 10px; padding: 10px 12px; max-height: 140px; overflow: auto; white-space: pre-wrap; margin: 0; }
.st-raw-wrap summary { cursor: pointer; font-size: 13.5px; color: var(--muted); }
.st-enhanced { width: 100%; border-radius: 10px; }

/* ---------------------------------------------------------------- contact form */
.cform { margin: 26px 0 40px; padding: 30px; background: var(--bg-2); border-radius: var(--radius); }
.cform-head h2 { margin: 0 0 6px !important; }
.cform-head p { margin: 0 0 20px; color: var(--text-2); font-size: 15px; }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.cf { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cf-wide { grid-column: 1 / -1; }
.cf > span { font: 400 16px var(--display); letter-spacing: .05em; color: var(--ink); }
.cf input, .cf select, .cf textarea { width: 100%; font-size: 15px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 5px; padding: 12px 14px; }
.cf input:focus, .cf select:focus, .cf textarea:focus { outline: none; border-color: var(--accent); }
.cf textarea { resize: vertical; min-height: 150px; }
.cf-count { align-self: flex-end; color: var(--muted); font-size: 12px; }
.cf-consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 22px; font-size: 14px; color: var(--text-2); }
.cf-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.cform-status { margin: 0 0 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .cgrid { grid-template-columns: 1fr; } .cform { padding: 22px 16px; } }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--bg-2); color: var(--text-2); padding: 56px 0 28px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.site-footer .logo { color: var(--ink); }
.footer-brand p { max-width: 400px; }
.footer-langs a { color: var(--ink); font-weight: 600; }
.fh { font: 400 22px var(--display); letter-spacing: .03em; color: var(--ink); margin: 4px 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer ul a { color: var(--text-2); text-decoration: none; }
.site-footer ul a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line-2); margin-top: 34px; padding-top: 18px; font-size: 12.5px; color: var(--muted); }
.footer-bottom p { margin: 0 0 6px; }

/* ---------------------------------------------------------------- language banner, root, 404 */
.lang-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; background: #000; color: #fff; border-radius: 12px; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); font-size: 14.5px; }
.lang-banner p { margin: 0; flex: 1; }
.lang-banner a { color: #fff; background: var(--accent); font: 400 16px var(--display); letter-spacing: .04em; padding: 8px 14px; border-radius: 5px; text-decoration: none; }
.lang-banner button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 22px; line-height: 1; opacity: .7; padding: 4px 6px; }
.t-root { min-height: 100vh; display: grid; place-items: center; background: #000; color: #fff; }
.root-choose { text-align: center; padding: 40px 20px; max-width: 760px; }
.root-choose img { display: inline-block; }
.root-choose h1 .logo-text { font-size: 52px; color: #fff; }
.choose-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 26px; text-align: left; }
.choose { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius); background: #1a1b1e; color: #fff; text-decoration: none; font-size: 14px; }
.choose b { font: 400 30px var(--display); letter-spacing: .02em; }
.choose span { color: #adb5bd; }
.choose:hover { background: var(--accent); color: #fff; }
.choose:hover span { color: #fff; }
.choose-grid h2 { color: #fff; font: 400 28px var(--display); margin: 0 0 6px; }
.choose-grid p { color: #adb5bd; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .site-header, .site-footer, .side, .shot-cta, .lang-banner { display: none !important; } }
.home-hero .hh-grid { width: calc(100% - 48px); margin: 0 auto; }
@media (max-width: 640px) { .home-hero .hh-grid { width: calc(100% - 24px); } }
/* product names keep their own casing (macOS, iPhone) — use Inter, not the all-caps display face */
.pc-name { font: 800 22px/1.15 var(--font); letter-spacing: -.02em; }

/* header tools (top bar removed) */
.theme-toggle { width: 40px; height: 40px; display: grid; place-items: center; background: var(--bg-2); border: 0; border-radius: 5px; color: var(--ink); cursor: pointer; padding: 0; }
.theme-toggle:hover { color: var(--accent); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
.nav-tools .lang-switch { color: var(--ink); font-size: 18px; padding: 8px 10px; border-radius: 5px; background: var(--bg-2); }
.nav-tools .lang-switch:hover { color: var(--accent); }
.hsearch { width: 230px; }
.header-in { gap: 18px; }
@media (max-width: 1180px) { .hsearch { width: 170px; } .nav-link { padding: 8px 6px; font-size: 19px; } }
@media (max-width: 900px) { .hsearch { width: auto; } }
@media (max-width: 1024px) and (min-width: 901px) { .hsearch { display: none; } }

/* ---------------------------------------------------------------- mega menu (device / platform / brand) */
.has-mega { position: static; }
.header-in { position: relative; }
.sub.mega { left: 0; right: 0; min-width: 0; padding: 22px; grid-template-columns: 1fr 1fr 1.5fr; gap: 26px; }
.has-mega.open > .sub.mega { display: grid; }
.mm-title { margin: 0 0 8px; padding: 0 10px; font: 400 17px/1 var(--display); letter-spacing: .04em; color: var(--muted); }
.mm-col ul { list-style: none; margin: 0; padding: 0; }
.mm-col:last-child ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 6px; }
.mm-more { display: inline-block !important; margin-top: 6px; font: 400 16px/1 var(--display) !important; letter-spacing: .03em; color: var(--accent) !important; }
@media (max-width: 900px) {
  .sub.mega { padding: 0 0 10px; grid-template-columns: 1fr; gap: 14px; }
  .mm-col:last-child ul { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------- device-type cards */
.ccards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.ccard { display: grid; gap: 4px; padding: 24px; background: var(--bg-2); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: background .15s, transform .15s; }
.section-alt .ccard { background: var(--surface); }
.ccard:hover { background: var(--bg-3); color: var(--ink); transform: translateY(-2px); }
.cc-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #000; color: #fff; margin-bottom: 10px; }
.ccard[data-c="wearable"] .cc-ico { background: var(--accent); }
.cc-ico svg { width: 26px; height: 26px; }
.cc-name { font: 400 28px/1 var(--display); letter-spacing: .02em; }
.cc-n { font-size: 13px; color: var(--muted); }
.cc-brands { font-size: 14px; font-weight: 600; color: var(--text-2); margin-top: 6px; }

/* ---------------------------------------------------------------- brand chips + initials */
.bchips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.bchips a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; background: var(--bg-2); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px; }
.section-alt .bchips a { background: var(--surface); }
.bchips a:hover { color: var(--accent); }
.bc-n { font: 400 15px var(--display); color: var(--muted); letter-spacing: .03em; }
.initial { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: #000; color: #fff; font: 400 20px/1 var(--display); }
.pc-ico .initial { width: auto; height: auto; background: none; font-size: 30px; }
.list-h2 { font: 400 clamp(26px, 2.6vw, 34px)/1.05 var(--display); letter-spacing: .01em; margin: 10px 0 18px; }

/* ---------------------------------------------------------------- footer with five columns */
.footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* long message-style codes (Garmin, Polar) and other long codes must wrap on phones */
.code-pill { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.layout > * { min-width: 0; }
.lcd.lcd-msg span { font-family: var(--font); font-size: clamp(22px, 3.4vw, 34px); word-break: normal; overflow-wrap: anywhere; letter-spacing: 0; }
.hh-grid > * { min-width: 0; }
.home-hero h1 { overflow-wrap: break-word; }
.btn-shot { white-space: normal; max-width: 100%; text-align: left; line-height: 1.2; }

/* problem guides (symptom pages without a code) */
.issue-badge { display: inline-block; font: 400 14px/1 var(--display); letter-spacing: .04em; padding: 5px 8px; border-radius: 5px; background: var(--accent); color: #fff; }
.gc-issues { font-family: var(--font); font-size: 13.5px; }
.t-code .code-hero h1 { max-width: 900px; }
