/* mymultitool design system. Tokens first, then base, layout, components, pages. See /styleguide/. */
/* Web copy is Inter. Montserrat is the logo face only; the logo ships as outlined SVG, so it is not loaded. */
@font-face {
  font-family: "Inter";
  src: url(/assets/fonts/inter-latin-var.woff2) format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
}

:root {
  /* Colour */
  --bg: #f6f5f1; --bg-2: #eeece5; --surface: #fff;
  --ink: #141414; --ink-2: #34352f; --muted: #686a62; --line: #e2dfd6; --line-2: #cbc8bd;
  --accent: #ff5a1f; --accent-ink: #b33f0e; --accent-soft: #ffe7dd;
  --olive: #4a5228; --olive-soft: #e8eadb;
  --ok: #1c6a39; --ok-bg: #e1f1e5; --no: #a3281a; --no-bg: #fbe4e0;
  --unk: #5c5e57; --unk-bg: #eae9e3; --old: #7a5418; --old-bg: #f4ecdb;
  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: .75rem; --fs-sm: .875rem; --fs-md: 1rem; --fs-lg: 1.25rem; --fs-xl: 1.75rem;
  --fs-display: clamp(2.4rem, 6.5vw, 4.75rem);
  /* Space, shape, motion */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --r-sm: 8px; --r: 14px; --r-lg: 22px; --pill: 999px;
  --shadow-1: 0 1px 2px rgba(20,20,20,.06); --shadow-2: 0 18px 36px -14px rgba(20,20,20,.22);
  --ease: cubic-bezier(.2,.7,.2,1);
  --header-h: 64px; --gutter: clamp(16px, 4vw, 32px); --maxw: 1360px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-md)/1.6 var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-weight: 800; text-transform: uppercase; line-height: 1; letter-spacing: -.01em; margin: 0 0 .45em; }
h1 { font-size: var(--fs-display); letter-spacing: -.03em; line-height: .95; }
h2 { font-size: var(--fs-lg); letter-spacing: .02em; }
h3 { font-size: var(--fs-md); letter-spacing: .02em; }
p { margin: 0 0 var(--s4); }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); }
.muted { color: var(--muted); } .small { font-size: var(--fs-sm); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.top { position: sticky; top: 0; z-index: 30; height: var(--header-h); background: rgba(246,245,241,.88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.logo { display: flex; align-items: center; gap: 12px; flex: none; text-decoration: none; color: var(--ink); }
.logo-icon { width: 44px; height: auto; }
.logo-wordmark { width: 196px; height: auto; }
.nav { display: flex; gap: var(--s2); }
.nav a { font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; text-decoration: none; padding: 8px 12px; border-radius: var(--pill); }
.nav a:hover { background: var(--bg-2); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }

/* Hero */
.hero { position: relative; padding: clamp(32px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); background: url(/assets/img/topo.svg) right -40px top -30px / 760px auto no-repeat; }
.hero h1 { max-width: 12ch; margin-top: var(--s3); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { max-width: 52ch; color: var(--ink-2); font-size: 1.05rem; }
.search { position: relative; max-width: 680px; margin-top: var(--s5); }
.search .icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; font-size: 1.05rem; font-weight: 500; padding: 17px 20px 17px 54px; border: 2px solid var(--ink); border-radius: var(--pill); background: var(--surface); box-shadow: var(--shadow-1); }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent); }
.quick { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.quick button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--pill); padding: 8px 14px; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.quick button:hover { border-color: var(--ink); }
.quick button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Finder layout */
.finder { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: var(--s6); align-items: start; padding-bottom: var(--s8); }
.filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.sheet-head, .sheet-foot { display: none; }
.filters-body { overflow: auto; padding: var(--s5) var(--s5) var(--s4); overscroll-behavior: contain; }
fieldset { border: 0; padding: 0; margin: 0 0 var(--s5); min-width: 0; }
legend { display: flex; justify-content: space-between; align-items: baseline; width: 100%; padding: 0; margin-bottom: var(--s3); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
legend output { font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.toggles { display: grid; gap: 2px; padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 8px 0; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.switch span { display: flex; align-items: center; gap: 8px; }
.switch input { appearance: none; flex: none; width: 40px; height: 24px; margin: 0; border-radius: var(--pill); background: var(--line-2); position: relative; cursor: pointer; transition: background .2s var(--ease); }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { transform: translateX(16px); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: var(--pill); font-size: .8125rem; font-weight: 600; cursor: pointer; background: var(--surface); transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--ink); }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.group-label { width: 100%; margin: var(--s2) 0 2px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
input[type=range] { width: 100%; accent-color: var(--ink); margin: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); cursor: pointer; flex: none; }
.swatch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.swatch:has(input:checked) { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.swatch:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 4px; }
span.swatch { width: 18px; height: 18px; cursor: default; }
.reset { width: 100%; padding: 10px; border: 1px solid var(--line-2); background: none; border-radius: var(--pill); font-weight: 700; font-size: var(--fs-sm); cursor: pointer; }
.reset:hover { border-color: var(--ink); }

/* Results */
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.count { font-weight: 800; font-size: var(--fs-lg); text-transform: uppercase; letter-spacing: .02em; }
.active { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 100%; order: 3; }
.active:empty { display: none; }
.active button { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px 5px 12px; border: 0; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent-ink); font-size: .8125rem; font-weight: 700; cursor: pointer; }
.active button .icon { width: 14px; height: 14px; }
.select { position: relative; }
.select select { appearance: none; padding: 9px 36px 9px 14px; border: 1px solid var(--line-2); border-radius: var(--pill); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 14px no-repeat; font-size: var(--fs-sm); font-weight: 700; cursor: pointer; }
.open-filters { display: none; }
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: var(--s4); }
.empty { padding: var(--s8) var(--s5); text-align: center; color: var(--muted); border: 2px dashed var(--line-2); border-radius: var(--r-lg); }

/* Card */
.card > a { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card > a:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.card-img { position: relative; aspect-ratio: 1; background: #fff; padding: 8%; }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s var(--ease); }
.card > a:hover .card-img img { transform: scale(1.04); }
.card-img .badge { position: absolute; left: 12px; top: 12px; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: var(--s4) var(--s4) var(--s5); border-top: 1px solid var(--line); flex: 1; }
.card-body h3 { font-size: 1.15rem; margin: 0; }
.specline { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: auto; padding-top: 4px; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.specline span { display: inline-flex; align-items: center; gap: 4px; }
.specline .icon { width: 15px; height: 15px; }
.price-from { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.price-from strong { color: var(--ink); font-size: 1rem; font-weight: 800; }

/* Badge */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 7px; border-radius: var(--pill); font-size: .75rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.badge .icon { width: 15px; height: 15px; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.no { background: var(--no-bg); color: var(--no); }
.badge.unk { background: var(--unk-bg); color: var(--unk); }
.badge.old { background: var(--old-bg); color: var(--old); padding-left: 10px; white-space: normal; }
.badge.neutral { background: var(--bg-2); color: var(--ink-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border: 2px solid var(--ink); border-radius: var(--pill); background: var(--ink); color: #fff; font-size: var(--fs-sm); font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn.accent:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn .icon { width: 16px; height: 16px; }

/* Product page */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: var(--s5) 0 0; font-size: var(--fs-sm); color: var(--muted); }
.crumbs a { text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: var(--s5) 0 var(--s7); align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.g-track::-webkit-scrollbar { display: none; }
.g-slide { position: relative; flex: 0 0 100%; aspect-ratio: 1; margin: 0; padding: 8%; display: grid; place-items: center; scroll-snap-align: center; }
.g-slide img { width: 100%; height: 100%; object-fit: contain; }
.g-slide figcaption { position: absolute; left: 14px; bottom: 14px; padding: 4px 10px; border-radius: var(--pill); background: var(--bg-2); font-size: .75rem; font-weight: 700; }
.g-thumbs { display: flex; gap: var(--s2); margin-top: var(--s3); overflow-x: auto; }
.g-thumbs button { flex: none; width: 72px; height: 72px; padding: 6px; border: 2px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; }
.g-thumbs button[aria-current="true"] { border-color: var(--ink); }
.g-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.summary h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: var(--s2) 0 var(--s2); }
.sku { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); margin-bottom: var(--s4); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s5); }
.keyspecs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0 0 var(--s5); background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.keyspecs div { background: var(--surface); padding: 14px; }
.keyspecs dt { display: flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.keyspecs dt .icon { width: 14px; height: 14px; }
.keyspecs dd { margin: 6px 0 0; font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.desc { max-width: 62ch; color: var(--ink-2); }
.ukpanel { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s4); margin: var(--s5) 0; border-radius: var(--r); font-size: var(--fs-sm); }
.ukpanel .icon { width: 28px; height: 28px; }
.ukpanel strong { display: block; font-size: var(--fs-md); margin-bottom: 2px; }
.ukpanel p { margin: 0; }
.ukpanel.ok { background: var(--ok-bg); color: var(--ok); } .ukpanel.no { background: var(--no-bg); color: var(--no); } .ukpanel.unk { background: var(--unk-bg); color: var(--unk); }
.prices { margin-top: var(--s6); }
.offer { display: grid; grid-template-columns: 1fr auto auto; gap: var(--s4); align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: var(--s2); }
.offer.best { border: 2px solid var(--ink); }
.offer .who { font-weight: 700; }
.offer .who small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; }
.offer .amount { font-size: 1.3rem; font-weight: 800; }
.offer .tag { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 4px; background: var(--accent); color: var(--ink); font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s6); padding: var(--s7) 0; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th { text-align: left; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 8px 8px 0; }
td { padding: 10px 8px 10px 0; border-top: 1px solid var(--line); }
.toolchips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.toolchips li { padding: 6px 12px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); font-size: .8125rem; font-weight: 600; }
dl.table { margin: 0; }
dl.table div { display: flex; justify-content: space-between; gap: var(--s3); padding: 10px 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
dl.table dt { color: var(--muted); } dl.table dd { margin: 0; font-weight: 700; text-align: right; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sources { padding: var(--s5) 0 var(--s7); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
.sources ul { padding-left: 18px; margin: 0; } .sources a { word-break: break-all; }

.colourchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 var(--s4); }
.colourchips .label { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.cchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface); font-size: .8125rem; font-weight: 600; }
.cchip .swatch { width: 16px; height: 16px; }
.timeline { padding: var(--s6) 0; border-top: 1px solid var(--line); }
.tl-axis { display: flex; justify-content: space-between; margin-left: 180px; margin-right: 120px; font-size: .75rem; font-weight: 700; color: var(--muted); }
.tl-row { display: grid; grid-template-columns: 180px 1fr 120px; align-items: center; gap: 0; padding: 6px 0; font-size: var(--fs-sm); }
.tl-row a, .tl-row strong { font-weight: 700; padding-right: var(--s3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-row a { color: var(--ink-2); }
.tl-bar { width: 100%; height: 22px; background: var(--bg-2); border-radius: 6px; }
.tl-bar line { stroke: var(--line-2); stroke-width: .3; vector-effect: non-scaling-stroke; }
.tl-bar rect { fill: var(--ink-2); }
.tl-row.is-current .tl-bar rect { fill: var(--accent); }
.tl-row.open-end .tl-bar rect { opacity: .35; }
.tl-years { padding-left: var(--s3); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.tl-row.is-current .tl-years { color: var(--ink); }
.related { padding: var(--s6) 0; border-top: 1px solid var(--line); }
.related .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
details.sources summary { cursor: pointer; font-weight: 700; color: var(--ink-2); }
details.sources ul { margin-top: var(--s3); }

/* Brands */
.brandlist { list-style: none; padding: 0; margin: 0 0 var(--s8); display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s4); }
.brandlist a { display: flex; flex-direction: column; gap: 6px; padding: var(--s5); min-height: 150px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.brandlist a:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.brandlist strong { font-size: 1.6rem; font-weight: 800; text-transform: uppercase; }
.brandlist span { color: var(--muted); font-size: var(--fs-sm); }
.brandlist .go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent-ink); }

/* Footer */
.foot { margin-top: var(--s7); background: var(--ink); color: #c9c7bf; }
.foot .wrap { display: grid; grid-template-columns: 220px 1fr; gap: var(--s7); padding-top: var(--s7); padding-bottom: var(--s7); }
.foot .logo-full { width: 200px; color: #fff; }
.foot p { font-size: var(--fs-sm); max-width: 72ch; }
.foot strong { color: #fff; }
.foot a { color: #fff; }

/* Compare: card button, header link, tray */
.card { position: relative; }
.cmp { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px 5px 7px; border: 1px solid var(--line-2); border-radius: var(--pill); background: rgba(255,255,255,.92); font-size: .75rem; font-weight: 700; cursor: pointer; opacity: 0; transition: opacity .2s, background .15s, border-color .15s; }
.cmp .icon { width: 14px; height: 14px; }
.card:hover .cmp, .cmp:focus-visible, .cmp[aria-pressed="true"] { opacity: 1; }
.cmp:hover { border-color: var(--ink); }
.cmp[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (hover: none) { .cmp { opacity: 1; } }
.cmp-btn { margin: -8px 0 var(--s5); }
.cmp-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.nav-compare { display: inline-flex; align-items: center; gap: 6px; }
.nav-compare .icon { width: 16px; height: 16px; }
.nav-compare .n:empty { display: none; }
.nav-compare .n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--pill); background: var(--accent); color: var(--ink); font-size: .7rem; letter-spacing: 0; display: inline-grid; place-items: center; }
.more { height: 1px; }
.tray { position: fixed; z-index: 25; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(760px, calc(100% - 24px)); background: var(--ink); color: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-2); animation: tray-in .3s var(--ease); }
.tray-inner { display: flex; align-items: center; gap: var(--s3); padding: 10px 10px 10px 14px; }
.slots { display: flex; gap: var(--s2); flex: 1; min-width: 0; }
.slot { position: relative; display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; padding: 6px 28px 6px 6px; border-radius: var(--r); background: rgba(255,255,255,.08); font-size: .8125rem; font-weight: 600; }
.slot img { width: 36px; height: 36px; border-radius: 8px; background: #fff; object-fit: contain; flex: none; }
.slot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; }
.slot button:hover { background: rgba(255,255,255,.15); }
.slot.empty { justify-content: center; padding-right: 6px; border: 1px dashed rgba(255,255,255,.3); background: none; color: rgba(255,255,255,.6); min-height: 48px; }
.slot.empty .icon { width: 14px; height: 14px; }
.tray-actions { display: flex; gap: var(--s2); flex: none; }
.tray .reset { width: auto; color: #fff; border-color: rgba(255,255,255,.3); padding: 10px 14px; }
.tray-msg { position: absolute; left: 0; right: 0; bottom: 100%; margin: 0 0 8px; text-align: center; font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.tray-msg:empty { display: none; }
.tray.shake { animation: shake .4s; }
@keyframes tray-in { from { transform: translate(-50%, 120%); } }
@keyframes shake { 25% { transform: translateX(calc(-50% - 6px)); } 75% { transform: translateX(calc(-50% + 6px)); } }
body.has-tray main { padding-bottom: 96px; }

/* Compare page */
.hero-sm { padding-bottom: var(--s4); }
.hero-sm h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.compare { padding-bottom: var(--s8); }
.compare .empty .btn { margin-top: var(--s3); }
.c-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.c-bar .switch { gap: var(--s3); }
.c-legend { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; }
.c-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: clip; }
.c-row { display: grid; grid-template-columns: 200px repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.c-row:first-child { border-top: 0; }
.c-label { padding: 12px 16px; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.c-cell { padding: 12px 16px; font-size: var(--fs-sm); font-weight: 700; border-left: 1px solid var(--line); }
.c-cell.best { position: relative; color: var(--accent-ink); }
.c-cell.best::before { content: ""; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); }
.c-heads { position: sticky; top: var(--header-h); z-index: 2; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.c-head { position: relative; padding: 16px; border-left: 1px solid var(--line); }
.c-head a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.c-head img { width: 100%; max-width: 140px; aspect-ratio: 1; object-fit: contain; margin-bottom: 6px; }
.c-head strong { font-size: 1rem; font-weight: 800; text-transform: uppercase; line-height: 1.1; }
.c-remove { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bg-2); cursor: pointer; }
.c-remove:hover { background: var(--ink); color: #fff; }
.c-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; margin: 12px; border: 2px dashed var(--line-2); border-radius: var(--r); color: var(--muted); font-weight: 700; font-size: var(--fs-sm); text-decoration: none; }
.c-add:hover { border-color: var(--ink); color: var(--ink); }
.c-section { background: var(--bg); }
.c-section .c-label { grid-column: 1 / -1; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.c-table .has { color: var(--ok); } .c-table .hasnt { color: var(--line-2); }
.c-table .swatches { gap: 6px; }
.diff-only .c-row.same { display: none; }

/* Mobile: filters become an app-style bottom sheet */
@media (max-width: 900px) {
  .finder { grid-template-columns: 1fr; }
  .open-filters { display: inline-flex; position: fixed; z-index: 20; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); box-shadow: var(--shadow-2); }
  .open-filters .n:empty { display: none; }
  .open-filters .n { min-width: 20px; height: 20px; border-radius: var(--pill); background: var(--accent); color: var(--ink); font-size: .75rem; display: inline-grid; place-items: center; padding: 0 5px; }
  .filters { position: fixed; z-index: 40; inset: auto 0 0 0; top: auto; max-height: 86vh; border-radius: var(--r-lg) var(--r-lg) 0 0; border: 0; box-shadow: 0 -20px 60px rgba(0,0,0,.25); transform: translateY(105%); transition: transform .32s var(--ease); visibility: hidden; }
  .filters.open { transform: none; visibility: visible; }
  .sheet-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); }
  .sheet-head h2 { margin: 0; }
  .sheet-head button { border: 0; background: var(--bg-2); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
  .sheet-foot { display: flex; gap: var(--s2); padding: var(--s3) var(--s5) max(var(--s3), env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .sheet-foot .reset { width: auto; flex: 0 0 auto; padding: 11px 18px; }
  .sheet-foot .btn { flex: 1; }
  .filters-body .reset { display: none; }
  .scrim { position: fixed; inset: 0; z-index: 35; background: rgba(20,20,20,.4); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .scrim.open { opacity: 1; pointer-events: auto; }
  .product { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .keyspecs { grid-template-columns: repeat(2, 1fr); }
  .foot .wrap { grid-template-columns: 1fr; gap: var(--s5); }
}
@media (max-width: 900px) {
  body.has-tray .open-filters { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 80px); }
  .c-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .c-row > .c-label { grid-column: 1 / -1; padding: 10px 12px 0; }
  .c-heads > .c-label { display: none; }
  .c-cell { border-left: 0; padding: 4px 12px 10px; }
  .c-cell + .c-cell { border-left: 1px solid var(--line); }
  .c-head { padding: 12px; } .c-head:first-of-type { border-left: 0; }
  .c-section .c-label { padding: 10px 12px; }
}
@media (max-width: 560px) {
  .tl-axis { margin: 0 0 4px; }
  .tl-row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .tl-row .tl-bar { grid-column: 1 / -1; grid-row: 2; }
  .tl-years { padding-left: 0; text-align: right; }
  .g-thumbs button { width: 60px; height: 60px; }
  .nav-compare .label { display: none; }
  .tray-inner { padding: 8px; gap: 8px; }
  .slots { gap: 6px; }
  .slot { flex: 0 0 auto; padding: 4px; } .slot span { display: none; } .slot img { width: 40px; height: 40px; }
  .slot button { right: -6px; top: -6px; transform: none; width: 20px; height: 20px; background: var(--accent); color: var(--ink); }
  .slot button .icon { width: 12px; height: 12px; }
  .slot.empty { width: 48px; min-height: 48px; }
  .tray .reset { display: none; }
  .tray-actions { flex: 1; } .tray-actions .btn { flex: 1; padding: 11px 12px; }
  .c-head .eyebrow { font-size: .62rem; letter-spacing: .06em; }
  .c-head strong { font-size: .85rem; overflow-wrap: anywhere; }
  .c-label, .c-cell { font-size: .8125rem; }
  .c-cell.best::before { left: 3px; }
  .logo-wordmark { width: 128px; } .logo-icon { width: 38px; }
  .nav a { padding: 8px 10px; letter-spacing: .06em; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
  .card-body { padding: var(--s3) var(--s3) var(--s4); }
  .card-body h3 { font-size: 1rem; }
  .card-img .badge span { display: none; }
  .card-img .badge { padding: 5px; }
  .offer { grid-template-columns: 1fr auto; }
  .offer .btn { grid-column: 1 / -1; }
}
@media (max-width: 400px) { .logo-wordmark { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* Style guide */
.sg section { padding: var(--s6) 0; border-top: 1px solid var(--line); }
.sg-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3); }
.sg-swatches div { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); font-size: var(--fs-xs); }
.sg-swatches i { display: block; height: 64px; background: var(--c); }
.sg-swatches span { display: block; padding: 8px 10px; }
.sg-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.sg-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s4); }
.sg-logos > div { display: grid; place-items: center; min-height: 200px; padding: var(--s5); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.sg-logos .dark { background: var(--ink); color: #fff; }
.sg-logos .orange { background: var(--accent); color: var(--ink); }
.sg-logos svg { max-height: 150px; width: auto; }
.sg-type > * { margin-bottom: var(--s3); }
.sg-grid { max-width: 260px; }
.tok-bg { --c: var(--bg); } .tok-bg-2 { --c: var(--bg-2); } .tok-surface { --c: var(--surface); } .tok-ink { --c: var(--ink); } .tok-ink-2 { --c: var(--ink-2); }
.tok-muted { --c: var(--muted); } .tok-line { --c: var(--line); } .tok-accent { --c: var(--accent); } .tok-accent-ink { --c: var(--accent-ink); } .tok-accent-soft { --c: var(--accent-soft); }
.tok-olive { --c: var(--olive); } .tok-ok { --c: var(--ok); } .tok-no { --c: var(--no); } .tok-old { --c: var(--old); }
.preview-bar { background: var(--ink); color: #fff; text-align: center; font-size: .75rem; font-weight: 600; padding: 6px 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: var(--s4); font-size: var(--fs-sm); font-weight: 600; }
.foot-links a { text-decoration: none; } .foot-links a:hover { text-decoration: underline; }
.prose { max-width: 70ch; padding-bottom: var(--s8); font-size: 1.05rem; }
.prose h2 { margin-top: var(--s6); }
.prose ul { padding-left: 1.2em; } .prose li { margin-bottom: var(--s2); }
.prose li .icon { display: inline-block; vertical-align: -3px; }
.prose a { color: var(--accent-ink); font-weight: 600; }
/* Holding ("coming soon") page */
body.holding { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; justify-items: center; background: var(--bg) url(/assets/img/topo.svg) right -80px top -60px / 900px auto no-repeat; }
.holding-main { width: 100%; max-width: 760px; padding: var(--s8) var(--gutter); text-align: center; }
@media (max-width: 560px) { .holding-stats dd { font-size: 1.4rem; } .holding-stats dt { font-size: .62rem; letter-spacing: .08em; } .holding-brands { font-size: .72rem; } }
.holding-logo { width: min(320px, 70vw); height: auto; margin: 0 auto var(--s6); color: var(--ink); }
.holding h1 { margin: var(--s3) 0 var(--s4); }
.holding h1 em { font-style: normal; color: var(--accent); }
.holding .lede { margin: 0 auto var(--s6); max-width: 54ch; color: var(--ink-2); font-size: 1.1rem; }
.holding-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; max-width: 520px; margin: 0 auto var(--s5); background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.holding-stats div { background: var(--surface); padding: var(--s4) var(--s3); }
.holding-stats dt { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.holding-stats dd { margin: 4px 0 0; font-size: 1.8rem; font-weight: 800; }
.holding-brands { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: var(--fs-sm); margin-bottom: var(--s5); }
.holding a { color: var(--accent-ink); font-weight: 600; }
