/* Bricknumber, look A ("Price tag"): white, Space Grotesk headings, Inter text, one yellow.
   Class names other pages use are listed in README.md ("CSS building blocks"). */
:root {
  --bg: #ffffff;
  --ink: #161616;
  --ink-2: #4a4a4a;
  --muted: #6b6b6b;
  --line: #ececec;
  --line-2: #dcdcdc;
  --soft: #f5f5f3;
  --chip: #f2f2f2;
  --accent: #FFD43B;
  --accent-hover: #ffcb05;
  --up: #0a7a3d;
  --down: #b42318;
  --r: 12px;
  --r-l: 16px;
  --r-s: 8px;
  --head: 'Space Grotesk', system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 64px;
  color-scheme: light;
}
@media (max-width: 1100px) { :root { --gutter: 32px; } }
@media (max-width: 640px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 var(--body); min-height: 100vh; display: flex; flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: #000; }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.5px; }
h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -1px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
/* .wrap.narrow and .wrap.prose start at the same left edge as everything else; their children are capped instead (see Shell block). */
.section { padding-top: 48px; }
.section:last-child { padding-bottom: 64px; }
.lead { font-size: 18px; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.up { color: var(--up); font-weight: 600; }
.down { color: var(--down); font-weight: 600; }

/* ---- Header ---- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-row { display: flex; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: -0.5px; white-space: nowrap; }
.logo-mark { display: inline-block; width: 26px; height: 18px; background: var(--accent); border-radius: 4px; flex: none; }
.search { position: relative; flex: 1 1 auto; max-width: 420px; margin-left: auto; }
.search-box { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--muted); background: #fff; }
.search-box:focus-within { border-color: var(--ink); }
.search-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-s); background: #fff; color: var(--ink); cursor: pointer; }
.search-open .search-toggle { border-color: var(--ink); }
.search-box input { border: 0; outline: 0; font: inherit; font-size: 15px; flex: 1; min-width: 0; color: var(--ink); background: transparent; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.nav > a { text-decoration: none; white-space: nowrap; }
.nav > a:hover, .nav > a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-s); font-size: 14px; font-weight: 600; white-space: nowrap; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after { content: ' ▾'; color: var(--muted); }
.lang-switch ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 8px 24px rgba(0,0,0,.08); min-width: 160px; }
.lang-switch li a { display: block; padding: 8px 12px; border-radius: var(--r-s); text-decoration: none; }
.lang-switch li a:hover { background: var(--soft); }
.lang-switch li a[aria-current] { font-weight: 700; background: var(--chip); }

@media (max-width: 900px) {
  .header-row { flex-wrap: wrap; gap: 12px 16px; }
  .search { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; display: none; }
  .search-open .search { display: block; }
  .search-toggle { display: inline-flex; flex: none; }
  .nav { margin-left: 0; gap: 16px; }
  /* logo … [language][search]: the language switch sits in the top row beside the search icon */
  .lang-switch { margin-left: auto; flex: none; }
}
@media (max-width: 640px) {
  .header-row { padding-top: 12px; padding-bottom: 4px; }
  .logo { font-size: 20px; }
  .nav { order: 4; flex-basis: 100%; margin-left: 0; overflow-x: auto; gap: 18px; font-size: 14px; padding-bottom: 2px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav > a { padding: 8px 0; }
  .nav > a:last-child { padding-right: 24px; }
  /* a fade at the right edge says "more this way"; the page script adds .nav-end once scrolled to the end */
  .nav:not(.nav-end) { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
}

/* ---- Footer ---- */
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 12px; color: var(--muted); }
.site-footer p { margin: 0 0 8px; max-width: 900px; }
.site-footer a { color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.footer-brand .logo-mark { width: 18px; height: 12px; border-radius: 3px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px !important; font-size: 13px; }
.footer-nav { margin: 16px 0 20px !important; font-size: 14px; font-weight: 500; }
.footer-nav a { color: var(--ink); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-affiliate { font-size: 13px; color: var(--ink-2); }
.footer-langs { gap: 8px 16px; }
.footer-langs a { text-decoration: none; }
.footer-langs a:hover { text-decoration: underline; }
.footer-langs a[aria-current] { color: var(--ink); font-weight: 600; }

/* ---- Breadcrumbs ---- */
.crumbs { padding-top: 20px; font-size: 14px; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: '›'; margin-right: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: 600 15px var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { background: #000; color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--soft); color: var(--ink); }
.btn-buy {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 56px; padding: 8px 20px; border-radius: var(--r); border: 0;
  background: var(--accent); color: var(--ink); font: 700 17px var(--body); text-decoration: none; cursor: pointer;
}
.btn-buy:hover { background: var(--accent-hover); color: var(--ink); }

/* ---- Set page top ---- */
.set-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; padding-top: 24px; }
.set-media { display: flex; flex-direction: column; gap: 16px; }
.set-pic { aspect-ratio: 4 / 3; background: var(--soft); border-radius: var(--r-l); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--muted); font-size: 15px; }
.set-pic img { width: 100%; height: 100%; object-fit: contain; padding: 24px; mix-blend-mode: multiply; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 6px 10px; background: var(--chip); border-radius: 6px; font-size: 13px; line-height: 1.3; color: var(--ink-2); text-decoration: none; }
.chips li:not(.chip) { display: flex; }
a.chip:hover { background: var(--line); }
.set-info { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.set-num { font-size: 15px; color: var(--muted); font-weight: 500; margin: 0; }
.set-info h1 { margin: 4px 0 0; }
.value { display: flex; flex-direction: column; gap: 4px; }
.value-label { font-size: 14px; color: var(--muted); }
.value-big { font-family: var(--head); font-size: clamp(48px, 9vw, 72px); font-weight: 700; letter-spacing: -2px; line-height: 1; font-variant-numeric: tabular-nums; }
.value-none { font-family: var(--head); font-size: 28px; font-weight: 500; color: var(--ink-2); line-height: 1.2; }
.value-line { font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 18px; }
.value-source { font-size: 12px; color: var(--muted); }
.quiet-links { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 14px; }
.quiet-links a { display: inline-flex; align-items: center; min-height: 44px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fact { padding: 16px; border: 1px solid var(--line); border-radius: var(--r); }
.fact-label { font-size: 13px; color: var(--muted); }
.fact-value { font-size: 20px; font-weight: 600; margin-top: 4px; }
@media (max-width: 860px) {
  .set-top { grid-template-columns: 1fr; gap: 24px; padding-top: 16px; }
  .set-info { order: -1; gap: 16px; }
}

/* Two columns of boxes under the top (On eBay now | Value over time) */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* ---- Listing rows (On eBay now, search results) ---- */
.list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); list-style: none; margin: 0; padding: 0; overflow: hidden; }
.list > * + * { border-top: 1px solid var(--line); }
.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; font-size: 15px; text-decoration: none; color: var(--ink); min-height: 56px; }
a.list-row:hover { background: var(--soft); }
.list-row img { width: 48px; height: 48px; object-fit: contain; flex: none; border-radius: 6px; background: var(--soft); }
.list-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.list-row .sub { display: block; font-size: 13px; color: var(--muted); }
.list-row .price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.list-empty { padding: 18px; color: var(--muted); font-size: 15px; }

/* ---- Set tiles (home, themes, most valuable) ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.cards > li { display: flex; min-width: 0; }
.card { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); background: #fff; position: relative; }
a.card:hover { border-color: var(--line-2); box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.card-pic { aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.card-pic img { width: 100%; height: 100%; object-fit: contain; padding: 12px; mix-blend-mode: multiply; }
.card-body { flex: 1 1 auto; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.card-num { font-size: 13px; color: var(--muted); }
.card-name { font-weight: 600; font-size: 15px; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-value { font-family: var(--head); font-weight: 700; font-size: 20px; margin-top: auto; padding-top: 6px; font-variant-numeric: tabular-nums; }
.card-rank { position: absolute; top: 10px; left: 10px; z-index: 1; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 6px; background: var(--accent); color: var(--ink); border: 1.5px solid var(--ink); font: 700 14px var(--head); display: flex; align-items: center; justify-content: center; }
@media (max-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .card-value { font-size: 18px; } }

/* Section head with a "see all" link */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: 14px; white-space: nowrap; }

/* Theme list (link grid) */
.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.links-grid a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.links-grid a:hover { text-decoration: underline; }
.links-grid .n { color: var(--muted); font-size: 14px; white-space: nowrap; }

/* ---- Tables ---- */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th, table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data th { font-size: 13px; font-weight: 600; color: var(--muted); background: #fafafa; white-space: nowrap; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data .swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(0,0,0,.15); vertical-align: -2px; margin-right: 8px; }

/* Details list (key/value) */
.details { display: grid; grid-template-columns: max-content 1fr; gap: 0 24px; margin: 0; border: 1px solid var(--line); border-radius: var(--r); padding: 4px 18px; }
.details dt, .details dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); font-size: 14px; }
.details dt:nth-last-of-type(1), .details dd:last-of-type { border-bottom: 0; }

/* ---- Chart ---- */
.chart { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart .line-used { fill: none; stroke: #9a9a9a; stroke-width: 2; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.chart .area { fill: var(--accent); opacity: .25; }
.chart .grid { stroke: var(--line); vector-effect: non-scaling-stroke; }
.chart text { font: 12px var(--body); fill: var(--muted); }
.chart-legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---- FAQ ---- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--head); font-size: 20px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 0 16px; color: var(--ink-2); }

/* ---- Home hero and the big search ---- */
.hero { padding: 56px 0 8px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); letter-spacing: -1.5px; }
.search-big { position: relative; display: flex; gap: 8px; margin-top: 24px; }
.search-big input { flex: 1; min-width: 0; height: 56px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: var(--r); font: 17px var(--body); color: var(--ink); background: #fff; }
.search-big input:focus { outline: none; border-color: var(--ink); }
.search-big .btn { min-height: 56px; border-radius: var(--r); padding: 0 24px; }
@media (max-width: 480px) { .search-big { flex-direction: column; } .search-big input, .search-big .search-field { flex: none; width: 100%; } }

/* Search suggestions under a search box */
.suggest { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 8px 24px rgba(0,0,0,.08); overflow: hidden; }
.suggest a { display: flex; gap: 12px; align-items: center; padding: 10px 14px; text-decoration: none; }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--soft); }

/* ---- Pager ---- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 10px; text-decoration: none; font-weight: 500; }
.pager [aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---- Notes and prose ---- */
.note { padding: 14px 16px; background: var(--soft); border-radius: var(--r); font-size: 14px; color: var(--ink-2); }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }

/* ---- Shell (ux 2026-11-26) ---- */
/* One left edge: narrow and prose sections keep the full .wrap (same gutter as header, crumbs and lists)
   and cap their children's width instead of centring a narrower column. */
.wrap.narrow, .wrap.prose { max-width: 1280px; }
.prose > *, .narrow > * { max-width: 720px; }
.section > p { max-width: 68ch; }

/* Spacing between blocks */
.section h2:not(:first-child) { margin-top: 40px; }
.chips:not(:last-child) { margin-bottom: 16px; }
.section :is(.cards, .list, .table-box, .links-grid, .chips, ul, ol, table, dl) + p { margin-top: 12px; }

/* 404: links under the big search */
.error-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin-top: 16px; font-size: 15px; font-weight: 500; }
.error-links a { text-underline-offset: 4px; }

/* Breadcrumbs: one shared 40px gap to the page's first block (h1, set top, list); the block adds none of its own. */
.crumbs { padding-bottom: 0; margin-bottom: 40px; }
main > .crumbs + * { padding-top: 0; margin-top: 0; }

/* The cookie box and the set page's sticky buy bar share the bottom of the screen: while the box is up, no bar. */
body:has(.bnc) .buybar { display: none; }

/* Phones: breadcrumbs as one "‹ parent" link, never two lines with a lone "›" */
@media (max-width: 640px) {
  .crumbs li { display: none; }
  .crumbs li:nth-last-child(2), .crumbs li:only-child { display: block; }
  .crumbs li:nth-last-child(2)::before { content: '‹'; margin-right: 6px; }
}

/* Touch screens: every small link answers over at least 44px */
@media (pointer: coarse) {
  .crumbs { padding-top: 8px; margin-bottom: 28px; }
  .crumbs a, .nav > a, .footer-links a, .section-head a, .error-links a { display: inline-block; padding-top: 12px; padding-bottom: 12px; }
  .footer-links { row-gap: 0; }
  .section-head { margin-bottom: 8px; }
  /* Chips: links and plain labels share one height and alignment, so a row of mixed chips lines up. */
  .chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; }
  /* Source links inside the credits sentence: taller lines plus inline padding give ~44px to tap without
     turning the sentence into a list. */
  .footer-credits { line-height: 2.2; }
  .footer-credits a { padding: 14px 0; }
  .lang-switch summary { min-height: 44px; }
  .lang-switch li a { padding: 12px; }
}

/* ---- Part page (ux 2026-11-26) ---- */
/* Top: its own grid (independent of the set page's .set-top). Desktop: picture left, the rest right.
   Phones: name with a small picture beside it, then button, links and note, then answer and rank. */
.part-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto 1fr;
  grid-template-areas: "pic head" "pic buy" "pic about" "pic ."; column-gap: 56px; row-gap: 22px; padding-top: 24px; }
.part-head { grid-area: head; } .part-pic { grid-area: pic; } .part-buy { grid-area: buy; } .part-about { grid-area: about; }
.part-head h1 { margin: 4px 0 0; }
.part-pic .set-pic { order: 0; }
.part-pic-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.part-about { display: flex; flex-direction: column; gap: 10px; }
.part-about p { margin: 0; }
.part-rank { font-size: 14px; color: var(--ink-2); }
.part-buy { display: flex; flex-direction: column; gap: 12px; }
.part-buy .small { margin: 0; }
.part-buy .quiet-links a { display: inline-flex; align-items: center; min-height: 44px; }
.part-buy .quiet-links { gap: 0 20px; margin: -6px 0; }
.part-all { margin: 16px 0 0; }
table.part-colours tr:target td { background: #fff6d1; }
table.part-colours tr { scroll-margin-top: 80px; }
/* Swatch and colour name stay together when the name wraps. */
table.part-colours td:first-child { position: relative; padding-left: 40px; }
table.part-colours td:first-child .swatch { position: absolute; left: 16px; top: 50%; margin: -7px 0 0; }
.section-sub { margin: -8px 0 16px; }
table.part-colours td.buy, table.part-colours th.buy { text-align: right; white-space: nowrap; }
table.part-colours td.buy a { font-weight: 600; }
table.part-colours td:nth-child(2) { font-size: 14px; color: var(--ink-2); }
.more-colours { margin-top: 12px; }
.more-colours > summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 10px; font-weight: 600; font-size: 15px; list-style: none; }
.more-colours > summary::-webkit-details-marker { display: none; }
.more-colours > summary::after { content: '▾'; color: var(--muted); margin-left: 8px; }
.more-colours[open] > summary { margin-bottom: 12px; }
.more-colours[open] > summary::after { content: '▴'; }
@media (max-width: 860px) {
  /* Picture first on phones (how people recognise a part), kept short so the name and button follow quickly. */
  .part-top { grid-template-columns: minmax(0, 1fr) 120px; grid-template-rows: auto;
    grid-template-areas: "head pic" "buy buy" "about about"; column-gap: 16px; row-gap: 18px; padding-top: 16px; align-items: start; }
  .part-top .set-pic { aspect-ratio: auto; width: 120px; height: 120px; border-radius: var(--r); font-size: 12px; text-align: center; }
  .part-top .set-pic img { padding: 8px; }
  .part-pic-note { font-size: 11px; line-height: 1.3; margin-top: 4px; }
  .part-about .lead { font-size: 16px; }
}
@media (max-width: 640px) {
  /* All four colour columns fit a phone, so the eBay link is never scrolled out of sight. */
  table.part-colours { font-size: 14px; }
  table.part-colours th, table.part-colours td { padding: 10px 8px; }
  table.part-colours th { white-space: normal; hyphens: auto; }
  table.part-colours th:first-child { padding-left: 12px; }
  table.part-colours td:first-child { padding-left: 32px; }
  table.part-colours td:first-child .swatch { left: 10px; }
  table.part-colours th:last-child, table.part-colours td:last-child { padding-right: 12px; }
  table.part-colours td:nth-child(2) { font-size: 12px; word-break: break-word; }
}

/* ---- Search & home (ux 2026-11-26) ---- */
/* Chrome's own blue clear button, redrawn in ink */
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; cursor: pointer;
  background: 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 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 14px no-repeat; }
/* The big search's input sits in its own box so suggestions hang under the input, not the stacked button */
.search-big .search-field { position: relative; display: flex; flex: 1 1 0%; min-width: 0; }
.search-big .search-field input { flex: 1 1 auto; width: 100%; min-width: 0; }
.search-big .btn { flex: none; }
.search-field .suggest { top: calc(100% + 4px); }
.suggest .sg-row img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.suggest .sg-text { flex: 1; min-width: 0; }
.suggest .sg-sub { display: block; }
.suggest .sg-price { margin-left: auto; padding-left: 8px; white-space: nowrap; }
.suggest .sg-theme { background: var(--soft); }
.suggest .sg-go, .list-row .price[aria-hidden] { font-size: 20px; line-height: 1; color: var(--muted); }
.suggest .sg-all { justify-content: center; font-weight: 600; border-top: 1px solid var(--line); min-height: 44px; }
.suggest .sg-none { margin: 0; padding: 14px; font-size: 14px; color: var(--ink-2); }
.tag-retiring { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; color: var(--ink-2); font-size: 11px; font-weight: 600; line-height: 18px; white-space: nowrap; vertical-align: 1px; }
.list-row .price-none { margin-left: auto; padding-left: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.list-row.row-theme { background: var(--soft); }
.find-brick-note { margin: 12px 0; }
.find-brick-note a { display: inline-flex; align-items: center; min-height: 44px; }
.theme-chips { margin: 8px 0 4px; }
.theme-chips .chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; font-size: 14px; }
.h-small { font-size: 18px; margin: 24px 0 8px; }
/* Home hero: links under the search in one column; the live example is the clearest, the others quieter */
.home-hooks { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 14px; }
.home-example, .home-hook { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 4px; min-height: 44px; text-decoration: none; color: var(--ink); }
.home-example { padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: #fff; font-size: 16px; }
.home-example:hover { border-color: var(--ink); }
.home-example b { font-weight: 600; }
.home-hook { font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.home-worth { margin: 8px 0 0; font-size: 14px; }
.home-worth a { display: inline-flex; align-items: center; min-height: 44px; }
/* Home tiles: 12 in full rows (4 across from 1100px, 3 below), 6 on phones with "See all" in the head */
@media (min-width: 1100px) { .home-grid .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 641px) and (max-width: 1099px) { .home-grid .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .home-grid .cards > li:nth-child(n+7) { display: none; }
  .home-hero { padding-top: 20px; }
  .home-hero h1 { font-size: 32px; letter-spacing: -0.8px; margin-bottom: 8px; }
  .home-hero .lead { font-size: 16px; margin-bottom: 0; }
  .home-hero .search-big { margin-top: 16px; }
}

/* ---- Set page (ux 2026-11-26) ---- */
/* Desktop: the markup puts .set-info first (reading order); the grid puts the picture column on the left. */
.set-main > .set-media { grid-column: 1; grid-row: 1; }
.set-main > .set-info { grid-column: 2; grid-row: 1; }
/* Value row: the big number with the retirement chip beside it (a quiet outline: yellow is the buy button's). */
.value-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.retire-flag { display: inline-block; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--ink); background: #fff; color: var(--ink); font: 600 13px var(--body); line-height: 1.4; }
/* The partner disclosure right under the buy button. */
.buy-note { margin: -14px 0 0; font-size: 12px; color: var(--muted); }
.value-line .up { color: var(--up); font-weight: 600; }
.value-line .down { color: var(--down); font-weight: 600; }
/* The deal line under the buy button (only from real listing data). */
.deal { margin: -10px 0 0; font-size: 14px; font-weight: 600; color: var(--up); }
.deal a { color: inherit; text-decoration: none; }
.deal a:hover { text-decoration: underline; }
/* Head: kicker + h1, and a small picture beside it on phones only. */
.set-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.set-thumb { display: none; flex: none; width: 128px; height: 96px; border-radius: var(--r-s); background: var(--soft); overflow: hidden; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; text-align: center; }
.set-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; mix-blend-mode: multiply; }
.facts-line { display: none; margin: 0; font-size: 14px; color: var(--ink-2); flex-wrap: wrap; gap: 2px 14px; }
.set-market h2 { margin: 8px 0 12px; font-size: 22px; }
.set-chart .chart { max-width: none; }
.chart-start { margin: 0; }
/* Chart: the SVG stretches to the box; axis labels are HTML on top of the grid lines. */
.chart-plot { position: relative; height: 220px; margin-top: 18px; }
.chart-y { position: absolute; left: 0; transform: translateY(-100%); padding-bottom: 2px; font-size: 13px; color: var(--muted); background: linear-gradient(to right, #fff 70%, rgba(255,255,255,0)); padding-right: 10px; font-variant-numeric: tabular-nums; }
.chart-x { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 6px; }
.card-pic.no-pic { font-size: 13px; color: var(--muted); }
/* Sticky buy bar (phones, after the button has scrolled away). */
.buybar { position: fixed; z-index: 40; left: 8px; right: 8px; bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 8px 6px 14px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.buybar[hidden] { display: none; }
.buybar-value { font: 700 18px var(--head); white-space: nowrap; font-variant-numeric: tabular-nums; }
.buybar .btn-buy { flex: 1; min-width: 0; min-height: 44px; font-size: 14px; padding: 6px 10px; }
.buybar-close { flex: none; width: 36px; height: 44px; border: 0; background: none; font-size: 22px; color: var(--muted); cursor: pointer; }
.buybar-note { flex-basis: 100%; margin: 0; font-size: 11px; color: var(--muted); }
body.has-buybar { padding-bottom: 92px; }
@media (max-width: 860px) {
  /* One column in reading order: head, answer, value, button, links, facts line, listings, then the picture.
     Only the set page (.set-main); the part page shares .set-top. */
  .set-main { display: flex; flex-direction: column; gap: 16px; }
  .set-main > .set-media, .set-main > .set-info { display: contents; }
  .set-main .set-head { order: 1; } .set-main .answer { order: 2; } .set-main .value { order: 3; } .set-main #buy { order: 4; }
  .set-main .buy-note { order: 5; margin: -10px 0 0; } .set-main .deal { order: 6; margin: -6px 0 0; }
  .set-main .quiet-links { order: 7; } .set-main .facts-line { order: 8; display: flex; } .set-main .set-market { order: 9; }
  .set-main .set-pic { display: none; } .set-main .chips { order: 11; } .set-main .facts { display: none; }
  .set-main .set-thumb { display: flex; }
  .set-main .btn-alt { order: 7; margin-top: 0; } .set-main .btn-alt + .buy-note { order: 8; }
  .set-market h2 { margin-top: 8px; }
  .chart-plot { height: 180px; }
}

/* ---- Lists & tiles (ux 2026-11-26) ---- */
/* No picture (none in the catalogue, or the picture failed to load): a grey tile with the set number. */
.card-pic .nopic-num, .card-pic .nopic-t { display: none; }
.card-pic.nopic { flex-direction: column; gap: 2px; }
.card-pic.nopic .nopic-num { display: block; font: 700 22px var(--head); color: #b5b5b5; letter-spacing: -0.5px; }
.card-pic.nopic .nopic-t { display: block; font-size: 12px; color: var(--muted); }
/* One honest badge at most (retiring within ~6 months, or retired within the last year). */
.card-badge { position: absolute; top: 10px; right: 10px; z-index: 1; padding: 3px 8px; border-radius: 6px; font: 600 12px var(--body); line-height: 1.4; background: #fff; color: var(--ink); border: 1.5px solid var(--ink); white-space: nowrap; }
.card-badge-retired { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.card-gain { font-size: 12px; min-height: 1.4em; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-gain.up, .row-gain.up { color: var(--up); }
.card-gain.down, .row-gain.down { color: var(--down); }
.list-row .price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.row-shop { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.row-gain { font-size: 13px; font-weight: 600; }
.list-row .price .pv { white-space: nowrap; }
.list-more { margin-top: 16px; }
.sub-h { font-family: var(--body); font-size: 16px; font-weight: 600; letter-spacing: 0; margin: 28px 0 10px; }
.theme-links { margin: -4px 0 0; font-size: 15px; }
.theme-chips { margin-bottom: 24px; }
.theme-chips .chip { min-height: 44px; }
.sub-h + .theme-chips, h1 + .lead + .theme-links + .sub-h { margin-top: 12px; }
.lead + .cards, .theme-links + .cards, .theme-chips + .cards { margin-top: 24px; }
.list-showing { margin-top: 24px; margin-bottom: 0; }
.list-source { margin-top: 20px; }
.list-source p { margin: 0; }
.list-h { margin: 36px 0 14px; }
/* Unpriced sets: compact names in columns. */
.name-list { list-style: none; margin: 0; padding: 0; columns: 3 240px; column-gap: 24px; font-size: 14px; }
.name-list li { break-inside: avoid; }
.name-list a { display: block; padding: 6px 0; border-bottom: 1px solid var(--line); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.name-list a:hover { text-decoration: underline; }
.name-list .nl-num { color: var(--muted); font-variant-numeric: tabular-nums; }
/* Popular themes */
/* Six across on a wide screen (24 tiles, 12 popular themes and the strip of 6 fill whole rows). */
.theme-cards, .tiles-6 .cards { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
@media (max-width: 640px) { .theme-cards, .tiles-6 .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.theme-card .card-name { font-size: 16px; }
.theme-top { margin-top: auto; padding-top: 6px; font: 700 16px var(--head); font-variant-numeric: tabular-nums; }
/* A–Z letter jumps: phones only (the desktop grid fits on a few screens). */
.letter-jump { display: none; }
.links-grid li { scroll-margin-top: 16px; }
@media (max-width: 640px) {
  .letter-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
  .letter-jump a { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: var(--r-s); text-decoration: none; font-weight: 600; font-size: 14px; }
  .card-badge { top: 8px; right: 8px; font-size: 11px; padding: 2px 6px; }
  .name-list { columns: 1; }
}
/* Retiring soon */
.nowrap { white-space: nowrap; }
.ret-top { font-size: 16px; padding: 14px 16px; background: var(--soft); border-radius: var(--r); margin: 8px 0 8px; }
.ret-top p { margin: 0; }
.ret-top p + p { margin-top: 6px; }
.ret-top .ret-next { font-weight: 600; color: var(--ink); }
.ret-top .ret-gain { font-size: 14px; color: var(--ink-2); }
.ret-top .ret-gain a { white-space: nowrap; }
.ret-group { margin-top: 36px; scroll-margin-top: 16px; }
.ret-h { font-size: 20px; margin-bottom: 12px; }
.show-all { margin-top: 10px; }
.show-all summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 10px; font-weight: 600; font-size: 15px; list-style: none; }
.show-all summary::-webkit-details-marker { display: none; }
.show-all[open] summary { margin-bottom: 10px; }
/* Find a brick: colour swatch for an element, small thumbnails for popular parts */
.swatch-tile { width: 48px; height: 48px; flex: none; border-radius: 6px; border: 1px solid rgba(0,0,0,.12); }
.part-grid a { align-items: center; justify-content: flex-start; gap: 10px; }
.part-grid img, .part-grid .pt-none { width: 40px; height: 40px; flex: none; object-fit: contain; border-radius: 6px; background: var(--soft); }
.part-grid .pt-name { flex: 1; min-width: 0; }
.list + h2 { margin-top: 36px; }

/* ux 2026-11-26 (2): pictures link to eBay; part page figures */
a.set-pic, a.set-thumb { text-decoration: none; cursor: pointer; }
a.set-pic { display: flex; transition: transform .15s ease; }
@media (hover: hover) { a.set-pic:hover { transform: scale(1.01); } }
.set-head { align-items: flex-start; gap: 16px; }
.part-stats { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.part-stats li { background: var(--soft); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.part-stats b { font: 700 24px/1.1 var(--head); }
.part-stats span { font-size: 13px; color: var(--muted); line-height: 1.3; }
.part-buy .buy-note { margin: 8px 0 0; }
/* Phones: the picture full width under the name (a long name is not squeezed; the picture is big enough to see) */
@media (max-width: 860px) {
  .set-main .set-head { flex-direction: column; gap: 14px; }
  .set-main .set-thumb { width: 100%; height: 190px; border-radius: var(--r-l); }
  .set-main .set-thumb img { padding: 12px; }
}

/* Nordic pages: eBay as a second, outlined button under Tradera's */
.btn-alt { display: flex; justify-content: center; width: 100%; margin-top: 14px; min-height: 48px; font-weight: 600; }

/* Retirement year pages (/retiring/<year>) and the year chips on /retiring-soon. */
.year-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 20px 0 12px; }
@media (max-width: 640px) { .year-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .year-facts .fact { padding: 12px; } .year-facts .fact-value { font-size: 18px; } }
.year-note { margin: 8px 0 0; }
.year-chips .chip { min-height: 40px; padding: 0 14px; font-size: 14px; font-variant-numeric: tabular-nums; }
.year-chips .chip[aria-current] { background: var(--ink); color: #fff; }
.year-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 8px; }
.year-jump .chips { margin: 0; }
.year-page .ret-h .muted { font-weight: 400; font-size: 0.8em; }
.year-page .faq { margin-top: 8px; }
.theme-links-sep { color: var(--muted); }
/* Theme × year pages and "Do retired LEGO® sets go up in value?" (growth plan items 2 and 5): the year pages' look.
   Gain figures: only the figure is coloured (.up green, .down red). Rank badges are solid yellow. */
.year-more { margin: 12px 0 0; font-size: 15px; }
.year-note + .theme-links, .year-note + .year-more { margin-top: 14px; }
.year-chips + .theme-links { margin-top: 16px; }
.year-more a { font-weight: 600; }
.fact-value .up, .fact-value .down { font-weight: inherit; }
.ret-gain .up, .ret-gain .down { white-space: nowrap; }
.year-page > .ret-group { margin-top: 20px; }
.gain-page h2 { margin-top: 44px; }
.gain-page .note { margin: 16px 0 0; }
.gain-page .table-box { margin: 14px 0 0; }
.gain-table td.num .up, .gain-table td.num .down, .gain-themes .up, .gain-themes .down { white-space: nowrap; }
.gain-themes td { vertical-align: top; }
.gain-split { gap: 24px; margin-top: 4px; }
.gain-split .sub-h { margin-top: 12px; }
.rank-list { counter-reset: none; }
.rank-n { flex: none; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 6px; background: var(--accent); color: var(--ink); font: 700 14px var(--head); display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.rank-list .price { font-size: 16px; }
.gain-caveats { padding-left: 1.2em; }
.gain-caveats li + li { margin-top: 8px; }
@media (max-width: 640px) {
  .gain-table th, .gain-table td { padding: 10px 10px; font-size: 14px; }
  table.data.gain-table th { white-space: normal; }
}

/* ---- My collection (2026-11-26) ---- */
/* Set page: a quiet outlined "Add to my collection" under the buy button (yellow stays the buy button's). */
.collect { display: flex; flex-direction: column; gap: 10px; }
.collect[hidden], .collect-form[hidden], .collect-done[hidden] { display: none; }
.collect-open { width: 100%; min-height: 48px; }
.collect-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); }
.collect-form .field { flex: 1 1 160px; }
.collect-done { margin: 0; font-size: 14px; color: var(--ink-2); }
.collect-done a { font-weight: 600; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; margin: 0; gap: 2px; min-width: 0; }
.seg legend { font-size: 13px; color: var(--muted); padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.field input, .coll-add input, .coll-add select, .coll-link { min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; font: 16px var(--body); color: var(--ink); background: #fff; min-width: 0; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-hover); color: var(--ink); }
.link-btn { appearance: none; border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 860px) { .set-main .collect { order: 9; } }

/* /my-collection and /c/<code> */
.coll-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.coll-top h1 { margin: 0; }
.coll-add { display: flex; gap: 8px; flex: 0 1 520px; }
.coll-add[hidden] { display: none; }
.coll-add input { flex: 1 1 auto; }
.coll-msg { flex-basis: 100%; margin: 0; color: var(--ink-2); }
.coll-empty { margin-top: 24px; }
.coll .coll-total { margin-top: 28px; }
.coll-notes { color: var(--ink-2); }
.coll-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 18px; }
.coll-tools[hidden], .coll-partner[hidden], .coll-link[hidden] { display: none; }
.coll-share-note { margin: 0; flex-basis: 100%; }
.coll-link { flex-basis: 100%; font-size: 14px; }
.coll-retiring { margin-top: 32px; }
.coll-retiring .h-small { margin-top: 0; }
#coll-tiles .cards, .coll-shared .cards { margin-top: 32px; }
.coll-partner { margin-top: 14px; }
.coll-local { margin-top: 32px; }
.coll-start { margin-top: 20px; max-width: 420px; }
.coll-none { font: 500 14px var(--body); color: var(--muted); }
.card-item { flex-direction: column; }
.card-item .card { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.card-acts { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px 12px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r) var(--r); font-size: 13px; }
.card-cond { color: var(--muted); }
.card-btns { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.card-btns a { font-weight: 600; }
.card-qty { position: absolute; top: 10px; left: 10px; z-index: 1; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 6px; background: #fff; color: var(--ink); border: 1.5px solid var(--ink); font: 700 14px var(--head); display: flex; align-items: center; justify-content: center; }
.coll-dialog { border: 0; border-radius: var(--r-l); padding: 22px; width: min(420px, calc(100% - 32px)); box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.coll-dialog::backdrop { background: rgba(0,0,0,.35); }
.coll-dialog form { display: flex; flex-direction: column; gap: 16px; }
.coll-dialog .h-small { margin: 0; }
.coll-dialog .seg { align-self: flex-start; flex-wrap: wrap; }
.coll-dialog-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.coll-remove { margin-left: auto; color: var(--down); }
@media (max-width: 640px) {
  .coll-add { flex: 1 1 100%; flex-wrap: wrap; }
  .coll-add input { flex: 1 1 100%; }
  .coll-add select, .coll-add .btn { flex: 1 1 0; }
  .card-acts { padding: 8px 10px 10px; }
  .card-qty { top: 8px; left: 8px; }
}

/* Rising page (/rising) and market reports (/market/<YYYY-MM>): fact boxes that are links, the period under a heading. */
a.fact-link { display: block; color: inherit; text-decoration: none; }
a.fact-link:hover { border-color: var(--ink); }
.fact-sub { margin-top: 2px; font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fact-link .fact-sub { text-decoration: underline; text-underline-offset: 3px; }
.mv-facts { max-width: 960px; }
.mv-keys { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; }
@media (max-width: 900px) { .mv-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.movers-page .lead, .mv-text, .mv-method, .mv-note { max-width: 760px; }
.mv-note { margin: 16px 0 0; }
.mv-period { margin: -8px 0 14px; }
.mv-facts + .mv-period { margin: 0; }
.mv-text { margin: 0 0 16px; color: var(--ink-2); }
.mv-method { margin: 36px 0 0; }
.mv-block { scroll-margin-top: 16px; }
.card-gain .muted { font-weight: 400; }
@media (max-width: 640px) { .fact-sub { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } }

/* ---- Accessibility and speed pass (2026-11-26) ---- */
/* The hidden attribute always hides: a display rule elsewhere (the touch rule on footer links) had put the empty
   "Cookie settings" link back in the tab order. */
[hidden] { display: none !important; }
/* Skip link: the first Tab stop on every page, seen only while it has focus. */
.skip { position: absolute; left: 8px; top: 8px; z-index: 100; padding: 12px 16px; border-radius: var(--r-s); background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; color: #fff; }
/* Theme page sub-headings are h2 (were h3 straight under the h1); same look and spacing as before. */
.section h2.sub-h { margin-top: 28px; }
/* Focus you can see: search fields get a second line of ink, and links inside clipped boxes (lists, suggestions,
   the phone's sideways menu) draw their outline inside the box instead of losing it at the edge. */
.search-box:focus-within, .search-big input:focus-visible { box-shadow: 0 0 0 1px var(--ink); }
a.list-row:focus-visible, .suggest a:focus-visible, .lang-switch li a:focus-visible, .name-list a:focus-visible { outline-offset: -3px; }
@media (max-width: 640px) { .nav > a:focus-visible { outline-offset: -3px; } }
/* Touch screens: the last small targets. The logo and links alone in a table cell or on their own line answer over a
   taller area without moving anything (padding taken back by the margin, or padding on an inline link, which
   takes no room). */
@media (pointer: coarse) {
  .logo { padding: 7px 0; margin: -7px 0; }
  table.data td > a:only-child { display: inline-block; padding: 10px 0; margin: -10px 0; }
  .ret-top a.ret-next { display: inline-block; padding: 6px 0; margin: -6px 0; }
  .theme-links a { padding: 8px 0; }
}
/* Part page: the partner note under the colour table sat on top of "Show all colours" (the buy button's -14px pull). */
.more-colours + .buy-note { margin-top: 10px; }
/* Less motion when the reader asks for it. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  a.set-pic:hover { transform: none; }
}
