/* mymultitool: app UI. Tokens first, then shell, finder, items, tool page, compare, content. See /styleguide/ and PRODUCT.md. */
@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 {
  /* Neutral app surfaces; orange only for actions and selection; green/red/grey for UK carry status */
  --canvas: #fafafa; --panel: #f4f4f2; --surface: #fff; --hover: #f6f6f4;
  --ink: #161616; --ink-2: #3b3d40; --muted: #5f6268; --faint: #a8a9a4;
  --line: #e7e7e3; --line-2: #d6d6d1;
  --accent: #ff5a1f; --accent-ink: #b33f0e; --accent-soft: #fff0ea;
  --ok: #1c6a39; --ok-bg: #e6f3ea; --no: #a3281a; --no-bg: #fbe9e6; --unk: #5f6268; --unk-bg: #eeeeeb; --warn: #9a5208; --warn-bg: #fbf0e2;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 6px; --r: 8px; --r-lg: 12px;
  --bar-h: 56px; --rail-w: 252px; --tabs-h: 0px;
  --shadow-pop: 0 12px 32px -8px rgba(22,22,22,.22);
  --ease: cubic-bezier(.22,1,.36,1);
  --z-sticky: 10; --z-bar: 20; --z-tray: 30; --z-scrim: 40; --z-sheet: 50;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 12px); }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 14px/1.5 var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; padding-bottom: var(--tabs-h); }
a { color: inherit; text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: 24px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
h2 { font-size: 15px; font-weight: 600; line-height: 1.3; }
p { margin: 0; }
.icon { width: 16px; height: 16px; flex: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.na { color: var(--faint); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Buttons and controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--hover); border-color: var(--faint); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #000; }
.btn .n, .tabs .n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; }
.btn .n:empty, .tabs .n:empty { display: none; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: var(--r); background: transparent; cursor: pointer; }
.icon-btn:hover { background: var(--hover); }
.link-btn { border: 0; background: none; padding: 0 4px; font-size: 13px; font-weight: 500; color: var(--accent-ink); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.seg { display: inline-flex; padding: 2px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
.seg button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.select select { appearance: none; height: 34px; padding: 0 30px 0 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161616' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 10px center / 12px no-repeat; font-size: 13px; font-weight: 500; cursor: pointer; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13px; cursor: pointer; }
.switch input { appearance: none; flex: none; width: 30px; height: 18px; margin: 0; border-radius: 9px; background: var(--line-2); position: relative; cursor: pointer; transition: background .2s var(--ease); }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; 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(12px); }
.check { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; cursor: pointer; }
.check input { appearance: none; flex: none; width: 16px; height: 16px; margin: 0; border: 1.5px solid var(--line-2); border-radius: 4px; background: #fff; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.check .cnt { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; margin: 6px 0 0; accent-color: var(--ink); }
.swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.swatch { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); cursor: pointer; }
.swatch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.swatch:has(input:checked) { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ink); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
span.swatch { width: 14px; height: 14px; cursor: default; }

/* Status: UK carry dot + text (never colour alone), tags */
.uk { --c: var(--ok); display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); white-space: nowrap; }
.uk.no { --c: var(--warn); } .uk.unk { --c: var(--unk); }
/* Shield outline in the status colour (also used on its own in the UK carry guide). */
.uk-i { --c: var(--ok); width: 17px; height: 17px; fill: none; stroke: var(--c); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.uk-i.no { --c: var(--warn); } .uk-i.unk { --c: var(--unk); }
.uk.long { gap: 6px; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--c); }
.uk.long.unk { color: var(--unk); }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: var(--r-sm); background: var(--panel); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.tag .icon { width: 13px; height: 13px; }
.tag.old { background: #f4ecdb; color: #6e4c16; }
.tag.excl { background: var(--accent-soft); color: var(--accent-ink); }
.cchip .excl, .i-excl { color: var(--accent-ink); font-weight: 500; }
.cchip .excl { font-size: 11px; }

/* App shell */
.preview-bar { background: var(--ink); color: #fff; text-align: center; font-size: 12px; font-weight: 500; padding: 5px 12px; }
.bar { position: sticky; top: 0; z-index: var(--z-bar); height: var(--bar-h); display: flex; align-items: center; gap: 20px; padding: 0 20px; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.5) blur(10px); -webkit-backdrop-filter: saturate(1.5) blur(10px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; flex: none; color: var(--ink); text-decoration: none; }
.logo-icon { width: 34px; height: auto; }
.logo-wordmark { width: 132px; height: auto; }
.search { position: relative; flex: 1; max-width: 560px; }
.search .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 36px; padding: 0 36px 0 34px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--canvas); font-size: 14px; transition: border-color .15s, box-shadow .15s, background .15s; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 500 11px var(--font); padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 5px; background: #fff; color: var(--muted); }
.search input:focus ~ kbd, .search input:not(:placeholder-shown) ~ kbd { display: none; }
.bar-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.bar-nav > a:not(.btn) { padding: 8px 10px; border-radius: var(--r); font-size: 13px; font-weight: 500; text-decoration: none; color: var(--ink-2); }
.bar-nav > a:not(.btn):hover, .bar-nav > a[aria-current="page"]:not(.btn) { background: var(--hover); color: var(--ink); }
.bar-nav .btn[aria-current="page"] { background: var(--panel); }
.tabs { display: none; }
.foot { padding: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.foot p { max-width: 110ch; }
.foot strong { color: var(--ink-2); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-weight: 500; }
.foot-links a { color: var(--ink-2); text-decoration: none; } .foot-links a:hover { text-decoration: underline; }

/* Finder: intro band, rail + results */
.intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; padding: 14px 20px 12px; background: var(--surface) url(/assets/img/topo.svg) right -40px top -110px / 680px auto no-repeat; border-bottom: 1px solid var(--line); }
.intro h1 { font-size: clamp(26px, 2.4vw, 34px); font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; line-height: 1; }
.intro h1 em { font-style: normal; color: var(--accent); }
.intro-text p { margin-top: 6px; max-width: 96ch; color: var(--muted); }
.intro-text p strong { color: var(--ink); font-weight: 600; }
/* Two columns: title, intro and quick picks on the left; the maker's note on the right. */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); grid-template-areas: "text hello" "quick hello"; align-items: start; gap: 8px 32px; }
.intro-text { grid-area: text; } .quick { grid-area: quick; } .hello { grid-area: hello; align-self: center; }
/* Personal note from the site's maker: small, beside the intro rather than a banner. */
.hello { display: flex; align-items: center; gap: 12px; max-width: 430px; padding: 8px 14px 8px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.hello img { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.hello strong { color: var(--ink); font-weight: 600; }
.hello a { color: var(--accent-ink); font-weight: 500; white-space: nowrap; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 500; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.quick button:hover { border-color: var(--ink); }
.quick button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.quick .icon { width: 14px; height: 14px; }
.finder { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); align-items: start; }
.rail { position: sticky; top: var(--bar-h); height: calc(100vh - var(--bar-h)); display: flex; flex-direction: column; background: var(--panel); border-right: 1px solid var(--line); }
.rail-body { overflow-y: auto; overscroll-behavior: contain; padding-bottom: 24px; }
.fgroup { margin: 0; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); min-width: 0; }
.flabel { display: flex; justify-content: space-between; align-items: baseline; width: 100%; padding: 0; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.flabel output { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.sublabel { display: block; margin: 8px 0 2px; font-size: 11px; font-weight: 600; color: var(--muted); }
.sheet-head, .sheet-foot { display: none; }
.results { min-width: 0; }
.toolbar { position: sticky; top: var(--bar-h); z-index: var(--z-sticky); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 52px; padding: 9px 20px; background: rgba(250,250,250,.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.count { font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 4px; }
.active { display: flex; flex-wrap: wrap; gap: 6px; }
.active button { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 6px 0 10px; border: 0; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 500; cursor: pointer; }
.active button:hover { background: #ffe1d4; }
.active button .icon { width: 12px; height: 12px; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.empty { padding: 64px 20px; text-align: center; color: var(--muted); }
.empty p { margin-bottom: 14px; } .empty strong { color: var(--ink); }
.more { height: 1px; }

/* Items: one template, two views (.view-list / .view-grid on the container) */
.items { list-style: none; margin: 0; padding: 0; }
.item { position: relative; }
.item-link { color: inherit; text-decoration: none; }
.i-thumb { display: grid; place-items: center; background: #fff; overflow: hidden; }
.i-thumb img { width: 100%; height: 100%; object-fit: contain; }
.i-name b { font-weight: 600; } .i-name small { display: block; font-size: 12px; color: var(--muted); }
.i-var { display: block; font-size: 12px; color: var(--ink-2); }
.i-disc { color: #6e4c16; }
.cmp { position: absolute; display: grid; place-items: center; border: 1px solid var(--line-2); background: #fff; cursor: pointer; color: var(--ink-2); transition: background .15s, border-color .15s, color .15s, opacity .15s; }
.cmp:hover { border-color: var(--ink); color: var(--ink); }
.cmp[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* List view: spec rows under sortable column headers */
.list-head, .view-list .item-link { display: grid; grid-template-columns: 44px minmax(200px, 2.2fr) minmax(104px, 1fr) 92px 68px 80px 68px 112px 76px; align-items: center; column-gap: 14px; padding: 0 20px 0 52px; }
.list-head { position: sticky; top: calc(var(--bar-h) + 52px); z-index: var(--z-sticky); height: 34px; background: var(--canvas); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--muted); }
.list-head > :first-child { grid-column: 2; }
.list-head button { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.list-head .i-num, .view-list .i-num { text-align: right; font-variant-numeric: tabular-nums; }
.list-head button:hover { color: var(--ink); }
.list-head .on { color: var(--ink); font-weight: 600; }
.list-head .on::after { content: " ↓"; }
.results:has(.view-grid) .list-head { display: none; }
.view-list .item { background: var(--surface); border-bottom: 1px solid var(--line); transition: background .12s; }
.view-list .item-link { min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
.view-list .item:hover { background: var(--hover); }
.view-list .i-thumb { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r); }
.view-list .i-thumb img { width: 88%; height: 88%; }
.view-list .i-type { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view-list .i-type small { display: block; font-size: 12px; color: var(--muted); }
.view-list .i-pr { color: var(--muted); }
.view-list .i-meta { display: none; }
.view-list .cmp { left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 5px; }
.view-list .cmp .icon { width: 12px; height: 12px; }
.view-list .item-link:hover .i-name b { text-decoration: underline; }

/* Grid view: compact photo tiles */
.view-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 18px 14px; padding: 18px 20px 28px; }
.view-grid .item-link { position: relative; display: flex; flex-direction: column; gap: 3px; }
.view-grid .i-thumb { aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 6px; transition: border-color .2s, box-shadow .2s; }
.view-grid .i-thumb img { width: 88%; height: 88%; transition: transform .35s var(--ease); }
.view-grid .item-link:hover .i-thumb { border-color: var(--line-2); box-shadow: var(--shadow-pop); }
.view-grid .item-link:hover .i-thumb img { transform: scale(1.04); }
.view-grid .i-name b { font-size: 13px; line-height: 1.3; }
.view-grid .i-name small { display: none; }
.view-grid .i-meta { font-size: 12px; color: var(--muted); }
.view-grid .i-type, .view-grid .i-num { display: none; }
.view-grid .i-uk { position: absolute; left: 8px; top: 8px; }
.view-grid .i-uk .uk { padding: 2px 3px 2px 7px; border-radius: 10px; background: rgba(255,255,255,.94); }
.view-grid .cmp { right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 7px; opacity: 0; }
.view-grid .item:hover .cmp, .view-grid .cmp:focus-visible, .view-grid .cmp[aria-pressed="true"] { opacity: 1; }
@media (hover: none) { .view-grid .cmp { opacity: 1; } }

/* Pages (tool, brands, compare, content) */
.page { max-width: 1240px; margin: 0 auto; padding: 16px 24px 48px; }
.page-head { padding: 12px 0 20px; }
.page-head .sub, .tool .sub { margin-top: 4px; color: var(--muted); }
.page-head .sub a { color: var(--accent-ink); font-weight: 500; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 500; color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs .icon { width: 14px; height: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; }
.panel h2 { margin-bottom: 10px; }
.panel-note { margin: -4px 0 10px; font-size: 13px; color: var(--muted); }
.panel-note a { color: var(--accent-ink); font-weight: 500; }

/* Tool detail */
.tool { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 24px; }
.gallery { position: sticky; top: calc(var(--bar-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: 7%; 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: 12px; bottom: 12px; padding: 2px 8px; border-radius: var(--r-sm); background: var(--panel); font-size: 11px; font-weight: 500; color: var(--ink-2); }
.g-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.g-thumbs button { flex: none; width: 64px; height: 64px; padding: 5px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; }
.g-thumbs button[aria-current="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.g-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.tool-info { padding-top: 4px; }
.tool h1 { font-size: 28px; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 16px; }
.status .uk { height: 24px; padding: 0 8px; border-radius: var(--r-sm); }
.status .uk.ok { background: var(--ok-bg); } .status .uk.no { background: var(--warn-bg); } .status .uk.unk { background: var(--unk-bg); }
.kv { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.kv div { padding: 10px 14px; border-left: 1px solid var(--line); } .kv div:first-child { border-left: 0; }
.kv dt { font-size: 12px; color: var(--muted); }
.kv dd { margin: 2px 0 0; font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.colours { margin-bottom: 16px; }
.colours > div:not(.cgroup) { display: flex; flex-wrap: wrap; gap: 6px; }
.cchip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 12px; font-weight: 500; text-decoration: none; }
a.cchip:hover { border-color: var(--ink); }
.cchip[aria-current="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.colours.grouped { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.cgroup > div { display: flex; flex-wrap: wrap; gap: 6px; }
.clabel { display: block; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
summary.clabel { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 0; cursor: pointer; list-style: none; border-radius: 4px; }
summary.clabel::-webkit-details-marker { display: none; }
summary.clabel::before { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform .15s ease-out; }
details[open] > summary.clabel { margin-bottom: 6px; }
details[open] > summary.clabel::before { transform: rotate(45deg); }
summary.clabel:hover { color: var(--ink); }
summary.clabel:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Prints and multicolour designs: a colour wheel rather than one flat hue. */
.swatch.sw-multicolour { background: conic-gradient(#e2412f, #f2b233, #3fa34d, #2f7fd6, #8a4fc9, #e2412f); }
/* Alox: the ribbed aluminium scales, so it reads apart from plain steel. */
.swatch.sw-alox { background: repeating-linear-gradient(180deg, #d3d7db 0 2px, #9da3a9 2px 3.5px); }
@media (prefers-reduced-motion: reduce) { summary.clabel::before { transition: none; } }
.actions { display: flex; gap: 8px; margin-bottom: 18px; }
.cmp-btn[aria-pressed="true"] { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.desc { max-width: 68ch; color: var(--ink-2); text-wrap: pretty; }
.uknote { margin-top: 14px; max-width: 68ch; font-size: 12px; color: var(--muted); }
.uknote a { color: var(--accent-ink); font-weight: 500; }
.tool-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 0 16px 6px 0; }
.table td { padding: 8px 16px 8px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table th.num, .table td.num { text-align: right; }
.table a { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: var(--accent-ink); text-decoration: none; }
.table a:hover { text-decoration: underline; }
.table .icon { width: 13px; height: 13px; }
.panel > p a { color: var(--accent-ink); font-weight: 500; }
.low { margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: var(--ok-bg); color: var(--ok); font-size: 11px; font-weight: 600; }
.panel p + p, .panel table + p { margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tags li { padding: 4px 9px; border-radius: var(--r-sm); background: var(--panel); font-size: 12px; font-weight: 500; }
.dl { margin: 0; }
.dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.dl div:first-child { border-top: 0; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; font-weight: 500; text-align: right; }
.timeline { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; }
.timeline h2 { margin-bottom: 10px; }
.tl-axis { display: flex; justify-content: space-between; margin: 0 110px 4px 170px; font-size: 11px; font-weight: 500; color: var(--muted); }
.tl-row { display: grid; grid-template-columns: 170px 1fr 110px; align-items: center; padding: 4px 0; font-size: 13px; }
.tl-row a, .tl-row strong { padding-right: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-row a { color: var(--ink-2); text-decoration: none; } .tl-row a:hover { text-decoration: underline; }
.tl-bar { width: 100%; height: 16px; background: var(--panel); border-radius: 4px; }
.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: 12px; font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.related { margin-top: 28px; }
.related h2 { margin-bottom: 4px; }
.related .view-grid { padding: 12px 0 0; }
.sources { margin-top: 24px; font-size: 12px; color: var(--muted); }
.sources summary { cursor: pointer; font-weight: 500; color: var(--ink-2); }
.sources ul { margin: 8px 0 0; padding-left: 18px; } .sources a { word-break: break-all; }

/* Brands */
.brandlist { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.brandlist li + li { border-top: 1px solid var(--line); }
.brandlist a { display: flex; align-items: center; gap: 16px; padding: 14px 18px; text-decoration: none; }
.brandlist a:hover { background: var(--hover); }
.brandlist b { font-size: 15px; } .brandlist small { display: block; color: var(--muted); font-size: 12px; }
.brandlist .cnt { margin-left: auto; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.brandlist .icon { color: var(--faint); }
.page > .view-grid { padding-left: 0; padding-right: 0; }

/* Compare */
.compare { padding-bottom: 32px; }
.compare .empty .btn { margin-top: 12px; }
.c-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.c-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 500; }
.dot { width: 8px; height: 8px; 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: 180px repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.c-row:first-child { border-top: 0; }
.c-label { padding: 10px 16px; font-size: 13px; color: var(--muted); }
.c-cell { padding: 10px 16px; font-size: 13px; font-weight: 500; border-left: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.c-cell.best { position: relative; color: var(--accent-ink); font-weight: 650; }
.c-cell.best::before { content: ""; position: absolute; left: 6px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--accent); }
.c-heads { position: sticky; top: var(--bar-h); z-index: 2; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.c-head { position: relative; padding: 14px 16px; border-left: 1px solid var(--line); }
.c-head a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.c-head img { width: 100%; max-width: 120px; aspect-ratio: 1; object-fit: contain; margin-bottom: 6px; }
.c-head .eyebrow { font-size: 12px; color: var(--muted); }
.c-head strong { font-size: 14px; font-weight: 650; }
.c-remove { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 7px; background: var(--panel); 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: 1.5px dashed var(--line-2); border-radius: var(--r); color: var(--muted); font-weight: 500; font-size: 13px; text-decoration: none; }
.c-add:hover { border-color: var(--ink); color: var(--ink); }
.c-section { background: var(--canvas); }
.c-section .c-label { grid-column: 1 / -1; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.c-table .has { color: var(--ok); } .c-table .hasnt { color: var(--faint); }
.c-table .swatches { gap: 5px; }
.diff-only .c-row.same { display: none; }

/* Compare tray */
.tray { position: fixed; z-index: var(--z-tray); left: 50%; bottom: calc(16px + var(--tabs-h)); transform: translateX(-50%); width: min(720px, calc(100% - 24px)); background: var(--ink); color: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-pop); animation: tray-in .25s var(--ease); }
.tray-inner { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; }
.slots { display: flex; gap: 8px; flex: 1; min-width: 0; }
.slot { position: relative; display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; padding: 5px 28px 5px 5px; border-radius: var(--r); background: rgba(255,255,255,.08); font-size: 13px; font-weight: 500; }
.slot img { width: 34px; height: 34px; border-radius: 6px; 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: 22px; height: 22px; 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: 5px; border: 1px dashed rgba(255,255,255,.3); background: none; color: rgba(255,255,255,.65); min-height: 44px; }
.slot.empty .icon { width: 13px; height: 13px; }
.tray-actions { display: flex; gap: 8px; flex: none; }
.tray .btn { height: 36px; }
.tray .reset { border-radius: var(--r); border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; padding: 0 12px; font-size: 13px; font-weight: 500; cursor: pointer; }
.tray .btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.tray .btn.accent:hover { background: #e94d14; }
.tray-msg { position: absolute; left: 0; right: 0; bottom: 100%; margin: 0 0 8px; text-align: center; font-size: 13px; font-weight: 600; 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: 88px; }

/* Content pages */
.prose { max-width: 70ch; font-size: 15px; line-height: 1.65; }
.prose p { margin: 0 0 14px; text-wrap: pretty; }
.prose h2 { font-size: 19px; margin: 36px 0 10px; }
.prose h3 { font-size: 15px; margin: 20px 0 6px; }
/* About page contents: a compact row of section links. */
.toc ul { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 18px 0 0; list-style: none; }
.toc li { margin: 0; }
.toc a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 13px; text-decoration: none; color: var(--ink-2); }
.toc a:hover { border-color: var(--ink); color: var(--ink); }
.prose ul { padding-left: 1.2em; margin: 0 0 14px; } .prose li { margin-bottom: 6px; }
.prose li .icon, .prose li .uk-i { display: inline-block; vertical-align: -3px; }
.prose a { color: var(--accent-ink); font-weight: 500; }

/* Phone and tablet */
@media (max-width: 900px) {
  :root { --tabs-h: 60px; --bar-h: 104px; }
  .bar { height: auto; flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .search { order: 3; flex: 1 0 100%; max-width: none; }
  .search kbd { display: none; }
  .bar-nav { display: none; }
  .logo-wordmark { width: 112px; } .logo-icon { width: 30px; }
  .tabs { position: fixed; z-index: var(--z-bar); left: 0; right: 0; bottom: 0; height: calc(var(--tabs-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: flex; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .tabs a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--muted); text-decoration: none; }
  .tabs a[aria-current="page"] { color: var(--ink); }
  .tabs .icon { width: 20px; height: 20px; }
  .tabs .n { position: absolute; top: 6px; left: calc(50% + 6px); }
  .intro { padding: 16px 14px 12px; } .intro h1 { font-size: 22px; } .intro-text p { font-size: 13px; }
  .intro { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "hello" "quick"; }
  /* Phones: the maker's note stands in for the intro paragraph, so the header stays the same height. */
  .intro-text p { display: none; }
  .hello { max-width: none; font-size: 12.5px; }
  .hello img { width: 40px; height: 40px; }
  .quick { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 0 14px; scrollbar-width: none; }
  .quick::-webkit-scrollbar { display: none; }
  .quick button { flex: none; }
  .finder { grid-template-columns: 1fr; }
  .rail { position: fixed; z-index: var(--z-sheet); inset: auto 0 0 0; top: auto; height: auto; max-height: 86vh; border: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--surface); box-shadow: 0 -20px 60px rgba(0,0,0,.25); transform: translateY(105%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s; }
  .rail.open { transform: none; visibility: visible; }
  .sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .sheet-head h2 { font-size: 17px; }
  .sheet-foot { display: flex; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .sheet-foot .btn { height: 42px; } .sheet-foot .primary { flex: 1; }
  .scrim { position: fixed; inset: 0; z-index: var(--z-scrim); background: rgba(22,22,22,.4); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .scrim.open { opacity: 1; pointer-events: auto; }
  .toolbar { padding: 8px 14px; }
  .tb-right .seg span { display: none; }
  .list-head { display: none; }
  .view-list .item-link { grid-template-columns: 52px minmax(0, 1fr) auto; padding: 10px 14px 10px 48px; column-gap: 12px; }
  .view-list .i-thumb { width: 52px; height: 52px; grid-row: 1 / span 2; }
  .view-list .i-type, .view-list .i-num { display: none; }
  .view-list .i-meta { display: block; grid-column: 2; font-size: 12px; color: var(--muted); }
  .view-list .i-name small { display: none; }
  .view-list .i-uk { grid-column: 3; grid-row: 1 / span 2; }
  .view-list .cmp { left: 14px; }
  .view-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; padding: 14px; }
  .page { padding: 12px 14px 32px; }
  .tool { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .gallery { position: static; }
  .tool h1 { font-size: 24px; }
  /* Colourways: one swipeable row per group instead of a tall wall of chips. */
  .colours > div:not(.cgroup), .cgroup > div { position: relative; flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 2px 14px; scroll-padding-inline: 14px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .colours > div:not(.cgroup)::-webkit-scrollbar, .cgroup > div::-webkit-scrollbar { display: none; }
  .cchip { flex: none; }
  .kv { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kv div:nth-child(odd) { border-left: 0; } .kv div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .kv div:last-child:nth-child(odd) { grid-column: span 2; }
  .tool-sections { grid-template-columns: 1fr; }
  .tl-axis { margin: 0 0 4px; }
  .tl-row { grid-template-columns: 1fr auto; row-gap: 3px; }
  .tl-row .tl-bar { grid-column: 1 / -1; grid-row: 2; }
  .tl-years { padding-left: 0; text-align: right; }
  .c-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .c-row > .c-label { grid-column: 1 / -1; padding: 8px 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: 8px 12px; }
  .tray-inner { padding: 6px; gap: 6px; }
  .slot { flex: 0 0 auto; padding: 4px; } .slot span { display: none; } .slot img { width: 38px; height: 38px; }
  .slot button { right: -6px; top: -6px; transform: none; width: 20px; height: 20px; background: var(--accent); }
  .slot.empty { width: 46px; min-height: 46px; } .slot.empty span { display: none; }
  .tray .reset { display: none; }
  .tray-actions { flex: 1; } .tray-actions .btn { flex: 1; }
  .foot { padding: 16px 14px; }
}
@media (max-width: 420px) { .logo-wordmark { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Style guide */
.sg .panel { margin-bottom: 16px; }
.sg-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sg-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.sg-swatches div { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 12px; }
.sg-swatches i { display: block; height: 48px; background: var(--c); border-bottom: 1px solid var(--line); }
.sg-swatches span { display: block; padding: 6px 8px; } .sg-swatches code { display: block; color: var(--muted); }
.sg-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.sg-logos > div { display: grid; place-items: center; min-height: 160px; padding: 20px; 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: 120px; width: auto; }
.sg-type > * + * { margin-top: 10px; }
.tok-canvas { --c: var(--canvas); } .tok-panel { --c: var(--panel); } .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-ok { --c: var(--ok); } .tok-no { --c: var(--no); }

/* Holding ("coming soon") page: self-contained, keeps its own display style */
body.holding { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; justify-items: center; background: #f6f5f1 url(/assets/img/topo.svg) right -80px top -60px / 900px auto no-repeat; padding: 0; }
.holding-main { width: 100%; max-width: 760px; padding: 72px 24px; text-align: center; }
.holding-logo { width: min(320px, 70vw); height: auto; margin: 0 auto 32px; color: var(--ink); }
.holding .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); }
.holding h1 { margin: 12px 0 16px; font-size: clamp(2.4rem, 6.5vw, 4.5rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; line-height: .95; }
.holding h1 em { font-style: normal; color: var(--accent); }
.holding .lede { margin: 0 auto 32px; 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 24px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.holding-stats div { background: var(--surface); padding: 16px 12px; }
.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: 14px; margin-bottom: 24px; }
.holding a { color: var(--accent-ink); font-weight: 600; }
.holding .small { font-size: 13px; }
@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; } }
.aff { display: inline-grid; place-items: center; min-width: 16px; height: 16px; margin-left: 4px; padding: 0 4px; border-radius: 4px; background: #fff4d6; color: #7a5600; font-size: 11px; font-weight: 700; vertical-align: 1px; cursor: help; }
.aff.on { background: var(--panel); color: var(--ink-2); font-weight: 500; }
.h1-var { font-weight: 500; color: var(--muted); }
