/* motherboarddeals.co.uk -- the one stylesheet. Light and dark are a designed pair driven by
   custom properties; the header keeps the dark slate ground in both. No framework, no web fonts. */
:root {
  color-scheme: light dark;
  --bg: #f4f6f9; --panel: #ffffff; --ink: #151b28; --muted: #566074; --line: #dde2ea; --line-soft: #ebeef3;
  --accent: #0f7a47; --accent-ink: #ffffff; --accent-soft: #e3f4ea; --link: #0b5f9e;
  --warn-bg: #fff4e0; --warn-ink: #7a4a00; --bad-bg: #fdecea; --bad-ink: #8a1c1c;
  --head-bg: #0e1117; --head-ink: #e6e9f0; --head-muted: #9aa3b5; --head-line: #26304a; --brand: #4fd18b;
  --chart-line: #0f7a47; --focus: #0b5f9e;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1117; --panel: #161b26; --ink: #e6e9f0; --muted: #9aa3b5; --line: #26304a; --line-soft: #1d2433;
    --accent: #4fd18b; --accent-ink: #08130d; --accent-soft: #15301f; --link: #8ec5ff;
    --warn-bg: #33270f; --warn-ink: #ffd58a; --bad-bg: #3a1618; --bad-ink: #ffb4b4;
    --chart-line: #4fd18b; --focus: #8ec5ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 18px; padding-bottom: 40px; }
main.narrow { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--panel); color: var(--ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.muted { color: var(--muted); }

/* header */
.site-head { background: var(--head-bg); color: var(--head-ink); border-bottom: 1px solid var(--head-line); }
.head-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { color: var(--head-ink); text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; white-space: nowrap; }
.brand span { color: var(--brand); } .brand small { color: var(--head-muted); font-weight: 400; font-size: .8em; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; }
.nav a { color: var(--head-ink); text-decoration: none; font-size: .9rem; padding: 6px 10px; border-radius: 6px; }
.nav a:hover { background: #1c2333; }
.nav a[aria-current] { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 6px 6px 0 0; }
.site-head :focus-visible { outline-color: #8ec5ff; }

/* type */
h1 { font-size: clamp(1.45rem, 2.2vw + 1rem, 2rem); line-height: 1.2; letter-spacing: -.015em; margin: 8px 0 10px; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 34px 0 10px; }
h3 { font-size: 1.02rem; margin: 20px 0 8px; }
h2 a, h3 a { color: inherit; }
p { margin: 0 0 14px; }
.lead { font-size: 1.06rem; color: var(--muted); }   /* full width, like the rest of the page (Seb, 20 Sep 2026) */
.narrow .lead, .prose .lead { max-width: 74ch; }
.narrow .prose { max-width: 74ch; } .prose li { margin-bottom: 6px; }   /* list pages run full width; only article / trust pages keep a reading measure */
.meta { color: var(--muted); font-size: .86rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; font-size: .84rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--line); }
.crumbs a { color: var(--muted); }
.note { background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--radius); padding: 10px 14px; font-size: .92rem; }
.empty { background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; color: var(--muted); }
ul.plain { padding-left: 20px; }

/* chips, pills, pager */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
.chip, .pills a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); text-decoration: none; font-size: .88rem; }
.chip:hover, .pills a:hover { border-color: var(--accent); }
.chip[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.n { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip[aria-current] .n { color: inherit; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.browse-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 28px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; font-variant-numeric: tabular-nums; }
.pager a, .pager span { min-width: 38px; text-align: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); text-decoration: none; font-size: .9rem; }
.pager span[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.pager .gap { border: 0; background: none; min-width: 0; }

/* tables: they scroll inside their own container, the page never does */
.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--panel); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td small, .spec, .asof { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; }
td.board { min-width: 250px; } .board-in { display: flex; gap: 10px; align-items: flex-start; }
td.board a { font-weight: 600; text-decoration: none; } td.board a:hover { text-decoration: underline; }
.thumb { flex: 0 0 auto; width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 6px; border: 1px solid var(--line-soft); }
.thumb-none { display: inline-block; background: var(--line-soft); }
.save { color: var(--accent); font-weight: 700; white-space: nowrap; }
.cond { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); font-size: .78rem; white-space: nowrap; }
td.act { text-align: right; }
.buy { display: inline-block; white-space: nowrap; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--accent); color: var(--accent); text-decoration: none; font-weight: 600; font-size: .86rem; }
.buy:hover { background: var(--accent); color: var(--accent-ink); }
.buy-big { background: var(--accent); color: var(--accent-ink); font-size: 1.02rem; padding: 12px 22px; }
.buy-big:hover { filter: brightness(1.08); }
table.specs th { width: 38%; color: var(--muted); font-weight: 500; }

/* cards (home strips) */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.card .thumb { width: 96px; height: 96px; align-self: center; margin-bottom: 4px; }
.card-t { font-weight: 600; text-decoration: none; font-size: .93rem; line-height: 1.35; } .card-t:hover { text-decoration: underline; }
.card-p { margin: 4px 0 0; font-variant-numeric: tabular-nums; } .card-p b { font-size: 1.12rem; margin-right: 6px; }
.more { margin: 10px 0 0; font-size: .92rem; }

/* one-row slider (home Warehouse strip): a scroll-snapping list; site.js un-hides the arrows */
.slider { position: relative; }
.cards-row { display: flex; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth; padding: 2px 2px 10px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.cards-row > .card { flex: 0 0 204px; scroll-snap-align: start; }
.cards-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sl-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.sl-btn:hover { border-color: var(--accent); color: var(--accent); }
.sl-btn:disabled { opacity: .35; cursor: default; }
.sl-prev { left: -10px; } .sl-next { right: -10px; }
.rrp { margin-bottom: 2px; }
@media (max-width: 720px) { .cards-row > .card { flex-basis: 164px; } .sl-btn { display: none; } }
@media (prefers-reduced-motion: reduce) { .cards-row { scroll-behavior: auto; } }

/* board page */
.hero { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 8px; }
.hero-img { background: #fff; color: #333; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: center; }
.hero-img img { max-height: 280px; width: auto; }
.price-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.price { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 4px; }
.was { color: var(--muted); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.wh-box { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.wh-box h2 { margin: 0 0 4px; font-size: 1rem; }
.cta { margin: 16px 0 6px; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 10px 0 0; padding: 0; list-style: none; font-size: .9rem; }
.stats b { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; } .stats span { color: var(--muted); font-size: .8rem; }
.chart-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 12px 8px; overflow-x: auto; }
.chart { display: block; width: 100%; min-width: 480px; max-width: 720px; height: auto; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-tick { fill: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.ch-line { fill: none; stroke: var(--chart-line); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-end { fill: var(--chart-line); stroke: var(--panel); stroke-width: 2; }
.ch-hit { fill: transparent; } .ch-hit:hover { fill: var(--chart-line); fill-opacity: .25; }
details { margin-top: 10px; } summary { cursor: pointer; color: var(--link); font-size: .9rem; }

/* guides: /guides/<slug> runs on the full-width main; the TEXT keeps a reading measure, tables and the live block do not */
.article > p, .article > h2, .article > h3, .article > ul, .article > ol,
.faq > p, .faq > h3, .faq > ul, .faq > ol, .related > h2, .guide-cta { max-width: 74ch; }
.article { font-size: 1.02rem; line-height: 1.65; }
.article h2 { margin-top: 38px; padding-top: 4px; }
.article h3 { font-size: 1.06rem; margin: 24px 0 8px; }
.article ul, .article ol { margin: 0 0 16px; padding-left: 24px; }
.article li { margin-bottom: 7px; } .article li::marker { color: var(--muted); }
.article > .table-wrap { max-width: 920px; margin: 4px 0 18px; font-size: .94rem; line-height: 1.5; }
.article > .table-wrap th, .article > .table-wrap td { min-width: 110px; }
.article > .table-wrap td:first-child, .article > .table-wrap tbody th { font-weight: 600; color: var(--ink); }
.article .lead { color: var(--ink); font-size: 1.1rem; }
.live { margin: 22px 0 30px; padding: 4px 16px 14px; background: var(--accent-soft); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); font-size: 1rem; line-height: 1.55; }
.live h2 { margin-top: 12px; padding-top: 0; font-size: 1.15rem; } .live h3 { margin-top: 20px; }
.live .more { margin: 10px 0 4px; font-weight: 600; } .live .empty { background: var(--panel); margin-bottom: 8px; }
.faq { margin-top: 12px; }
.faq h3 { margin: 22px 0 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 1.04rem; }
.faq h2 + h3 { border-top: 0; padding-top: 0; }
.guide-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 30px 0 0; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); font-size: .92rem; }
.cta-link { display: inline-block; padding: 10px 18px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.cta-link:hover { filter: brightness(1.08); }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 920px; }
.guide-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; max-width: none; }
.guide-list li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.guide-list a { display: block; font-weight: 600; text-decoration: none; margin-bottom: 3px; } .guide-list a:hover { text-decoration: underline; }
.guide-list span { display: block; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.guide-group h2 { margin-top: 30px; }
.guide-line { font-size: .94rem; margin: -4px 0 12px; } .guide-line strong { color: var(--muted); font-weight: 600; }
@media (max-width: 720px) {
  .article { font-size: 1rem; } .live { padding: 2px 12px 12px; margin-left: -4px; margin-right: -4px; }
  .guide-grid { grid-template-columns: 1fr; } .cta-link { width: 100%; text-align: center; }
}

/* forms */
.form { max-width: 560px; } .frow { margin-bottom: 14px; }
.frow label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.frow input, .frow textarea { width: 100%; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.frow input:focus-visible, .frow textarea:focus-visible { outline-offset: 0; border-color: var(--focus); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button.buy-big { border: 0; cursor: pointer; font-weight: 600; border-radius: 8px; font-family: inherit; }
.msg { border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; font-size: .94rem; }
.msg.ok { background: var(--accent-soft); color: var(--ink); border: 1px solid var(--accent); }
.msg.bad { background: var(--bad-bg); color: var(--bad-ink); } .msg ul { margin: 6px 0 0; padding-left: 20px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: .84rem; padding: 22px 0 28px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.foot-nav a { color: var(--ink); }
.foot-aff { max-width: 92ch; } .foot-co { margin: 0; }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero-img img { max-height: 200px; }
  .nav { margin-left: 0; width: 100%; }
  .nav a { padding: 6px 8px; font-size: .86rem; }
  th, td { padding: 8px 10px; }
  td.board { min-width: 210px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (prefers-reduced-motion: no-preference) { .buy, .chip, .pills a { transition: background-color .12s, border-color .12s, color .12s; } }
@media print { .site-head, .site-foot, .chips, .pager, .buy { display: none; } body { background: #fff; color: #000; } }

/* alert forms (board pages, /warehouse, /alerts) */
.alert-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 10px 0; max-width: 720px; }
.alert-box h3 { margin: 0 0 6px; font-size: 1rem; }
.alert-box .frow { margin-bottom: 10px; }
.fset { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 0 0 14px; }
.fset legend { padding: 0 6px; color: var(--muted); font-size: .9rem; }
.frow select { width: 100%; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
.chk { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; }
.chk input { margin-top: 3px; }
button.buy { cursor: pointer; font: inherit; }
form.inline { display: inline; }

/* price badges + the stated-spec line in board lists */
.pill { display: inline-block; vertical-align: middle; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; line-height: 1.5; white-space: nowrap; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent); }
.pill-30-day-low { background: transparent; }
.price-row .pill { font-size: .8rem; padding: 2px 10px; align-self: center; }
.hints { max-width: 62ch; } .why { max-width: 74ch; color: var(--ink); margin-top: 3px; }
.rank { display: inline-block; min-width: 2.1em; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.price-stats { margin: 10px 0 2px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.bullets { margin: 0 0 10px; padding-left: 22px; max-width: 92ch; font-size: .95rem; } .bullets li { margin-bottom: 6px; }

/* compare: a tick box per row inside the table's GET form + a bar that stays in view */
.cmp { display: block; margin-top: 8px; font-size: .78rem; color: var(--muted); white-space: nowrap; cursor: pointer; }
.cmp input { vertical-align: -2px; margin: 0 3px 0 0; }
.cmp-form { margin: 0; }
.cmp-bar { position: sticky; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; padding: 8px 12px; background: var(--panel); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.cmp-form .table-wrap { border-radius: var(--radius) var(--radius) 0 0; }
.cmp-bar .meta { margin: 0; } .cmp-go[disabled] { opacity: .45; cursor: default; }
.cmp-go.is-ready { background: var(--accent); color: var(--accent-ink); }
table.compare { table-layout: fixed; width: auto; min-width: 100%; }
table.compare th, table.compare td { width: 220px; min-width: 180px; overflow-wrap: anywhere; }
table.compare .cmp-label { position: sticky; left: 0; z-index: 2; width: 170px; min-width: 130px; background: var(--panel); color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .86rem; white-space: normal; border-right: 1px solid var(--line); }
table.compare thead th { white-space: normal; text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--ink); vertical-align: bottom; }
.cmp-board .thumb { display: block; width: 96px; height: 96px; margin: 0 0 8px; } .cmp-board a { font-weight: 600; text-decoration: none; } .cmp-board a:hover { text-decoration: underline; }
table.compare tr.diff td, table.compare tr.diff th { background: var(--accent-soft); } table.compare tr.diff th { color: var(--ink); font-weight: 600; }
table.compare tfoot td, table.compare tfoot th { border-top: 1px solid var(--line); border-bottom: 0; }
.cmp-remove { margin: 10px 0; }

/* /boards: the filter panel -- a grid of fieldsets inside <details> (site.js closes it on a small screen) */
.finder { margin: 6px 0 4px; }
.filters { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 14px 8px; }
.filters > summary { font-weight: 700; font-size: 1rem; color: var(--ink); padding: 8px 0; }
.f-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 14px; }
.f-grid .fset { margin: 0; min-width: 0; } .f-grid .frow { margin-bottom: 8px; } .f-grid .frow label { font-size: .82rem; font-weight: 600; }
.f-grid .frow input, .f-grid .frow select { padding: 7px 9px; font-size: .92rem; background: var(--bg); }
.f-grid .chk { margin: 6px 0; } .f-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.f-note { margin: 10px 0 2px; }
.f-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 10px 0 0; }
.f-actions label { font-weight: 600; font-size: .9rem; } .f-actions select { padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; }
.f-actions .buy-big { padding: 9px 18px; font-size: .95rem; }
.f-count { margin: 12px 0 8px; font-size: .92rem; } .f-count strong { color: var(--ink); }
.chip-x span[aria-hidden] { font-weight: 700; } .chip-clear { border-style: dashed; color: var(--muted); }
@media (max-width: 720px) {
  .hints { max-width: 58vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* one line: rows stay short */
  .why { max-width: 64vw; }
  .f-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .f-grid .fset { padding: 6px 10px; }
  .f-actions .buy-big { flex: 1 1 auto; }
  table.compare th, table.compare td { width: 170px; min-width: 150px; } table.compare .cmp-label { width: 112px; min-width: 104px; font-size: .8rem; }
  .cmp-hint { display: none; }
}
@media (max-width: 440px) { .f-grid { grid-template-columns: 1fr; } }
@media print { .finder, .cmp, .cmp-bar { display: none; } }

