/* Prism base theme — per-site colours come from site.config (CSS vars injected in layout). */
:root{--accent:#2a6df4;--accent-d:#1b4fbf;--ink:#1a2230;--muted:#697586;--line:#e7e9ee;--bg:#f7f8fa;--card:#fff;--page-bg:#f7f8fa}
*{box-sizing:border-box}html,body{margin:0;padding:0}
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:var(--ink);background:var(--bg);line-height:1.55}
img{max-width:100%;height:auto;display:block}
a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.wrap{max-width:1080px;margin:0 auto;padding:0 20px}
.band{padding:30px 0}
.not-found{min-height:56vh;padding-top:44px;padding-bottom:60px;box-sizing:border-box}
.not-found .tiles{margin-bottom:8px}
h1{font-size:30px;margin:.2em 0 .4em}h2{font-size:22px;margin:1.2em 0 .5em}
.lede{font-size:19px;color:var(--muted);margin:.2em 0 1em}
.muted{color:var(--muted)}
/* header */
.site-head{background:var(--card);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.site-head .wrap{display:flex;align-items:center;justify-content:space-between;height:62px}
.brand{font-weight:800;font-size:21px;color:var(--ink)}
.nav{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.nav a{color:var(--ink);font-weight:600;font-size:15px}
.nav .acct{color:var(--accent)}
/* hero */
.hero{background:linear-gradient(180deg,var(--card),var(--bg));border-bottom:1px solid var(--line);padding:40px 0}
/* tiles + grid */
.tiles{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:22px}
.tile{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:14px 18px;font-weight:700;color:var(--ink)}
.tile:hover{border-color:var(--accent);text-decoration:none}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px}
.card{background:var(--card);border:1px solid var(--line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.card:hover{border-color:var(--accent);text-decoration:none}
.card img{aspect-ratio:1;object-fit:contain;background:#fff;padding:10px}
.card-b{padding:10px 12px;display:flex;flex-direction:column;gap:4px;border-top:1px solid var(--line)}
.card-b .t{font-weight:600;font-size:14px;color:var(--ink);line-height:1.3}
.card-b .p{color:var(--accent-d);font-weight:800}
.card-rating{display:flex;align-items:center;gap:1px;font-size:13px;color:#f5a623;line-height:1;margin:1px 0}
/* our own editorial rating on the card - a distinct navy pill (vs the yellow customer stars) so it reads as OUR score, and is visible when sorting by it */
.rex-badge{display:inline-flex;align-items:baseline;gap:1px;width:fit-content;background:#123049;color:#fff;font-size:11px;font-weight:800;letter-spacing:.01em;padding:2px 8px;border-radius:999px;margin:3px 0 1px}
.rex-badge .rb-max{font-weight:600;opacity:.65;font-size:.85em}
.card-rating .off{color:var(--line)}
/* reserve the rating row's height on cards with no customer score so prices + buttons line up across a row */
.card-rating-empty{display:block;height:13px}
.card-rating .cr-num{font-weight:800;color:var(--ink);font-size:12px;margin-left:4px}
.card-rating em{font-style:normal;color:var(--muted);font-size:11px;margin-left:3px}
/* retailer stockist-logo row on cards (falls back to the .stores text when a product has none) */
.rlogos{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:3px}
.rlogos img{width:22px;height:22px;border-radius:5px;border:1px solid var(--line);background:#fff;object-fit:contain;padding:1px;box-sizing:border-box;flex:none}
.rlogos .more{font-size:11px;font-weight:700;color:var(--muted)}
/* product */
.product .p-head{display:grid;grid-template-columns:280px 1fr;gap:26px;align-items:start}
.p-hero{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;object-fit:contain;aspect-ratio:1}
.lowprice{font-size:18px}
.p-rating{font-size:16px;margin:.5em 0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.p-rating .stars{color:#f5a623;letter-spacing:1px;font-size:19px}
.review-summary{background:var(--card);border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:10px;padding:14px 16px;margin:10px 0 16px;max-width:760px}
.review-summary strong{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:6px}
.review-summary p{margin:0}
.reviews-tbl{max-width:520px}
table.prices,table.specs{width:100%;border-collapse:collapse;background:var(--card);border:1px solid var(--line);border-radius:10px;overflow:hidden}
table.prices th,table.prices td,table.specs th,table.specs td{padding:9px 14px;border-bottom:1px solid var(--line);text-align:left}
table.prices th{background:#f0f3f8;font-size:13px}
.prices .was{color:var(--muted);font-weight:400;margin-left:6px}
/* keep the retailer cell a normal table-cell (flex on a <td> misaligns its bottom border vs the sibling
   cells); lay logo + stacked name/checked out with inline-block instead. */
.prices td.rt{vertical-align:top}
.prices .rt-top{display:flex;align-items:center;gap:8px;min-width:0}
.prices td.rt .rlogo{width:24px;height:24px;border-radius:5px;border:1px solid var(--line);background:#fff;object-fit:contain;padding:1px;box-sizing:border-box;flex:none}
.prices .rname{font-weight:600;line-height:1.2;min-width:0;word-break:normal;overflow-wrap:normal}
/* best-price badge + checked-time drop to their own flush-left lines under the logo+name row */
.prices td.rt .best-tag{display:inline-block;margin:4px 0 2px 0}
.prices .checked{display:block;font-size:11px;color:var(--muted);line-height:1.2;margin-top:3px;white-space:nowrap}
.prices td.rt .mp{margin-top:4px}
/* the current price is one atomic unit - never let it wrap mid-number */
table.prices td:nth-child(2){white-space:nowrap}
/* zebra: subtle theme-agnostic tint on alternate rows (tightens the read now that each retailer is one row) */
table.prices tbody tr:nth-child(even){background:rgba(0,0,0,.025)}
.prices .mp{font-size:11px;background:#fdecc8;color:#8a5a00;padding:1px 6px;border-radius:6px}
/* in the retailer cell, the marketplace pill sits on its own tight line under the name (block +
   fit-content so it hugs the text), between the name and the checked caption */
.prices td.rt .mp{display:block;width:fit-content;margin:3px 0 5px}
.prices .pulled td{font-size:12px;color:var(--muted);padding:4px 14px;border-bottom:1px solid var(--line)}
/* variant selector - same-line models (screen size / platform / ...) */
.variant-sel{margin:18px 0 26px}
.variant-sel-head{font-weight:700;font-size:15px;margin-bottom:8px}
.variant-sel-row{display:flex;gap:10px;overflow-x:auto;padding-bottom:6px;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.variant-card{position:relative;flex:0 0 auto;min-width:92px;text-align:center;padding:10px 14px;border:1.5px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink)!important;text-decoration:none;line-height:1.25;transition:border-color .12s}
.variant-card:hover{border-color:var(--accent);text-decoration:none}
.variant-card.current{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,var(--card));box-shadow:inset 0 0 0 1px var(--accent)}
.variant-card.hot{border-color:#e8703a;box-shadow:inset 0 0 0 1px #e8703a}
.variant-hot{position:absolute;top:3px;right:5px;font-size:13px;line-height:1;pointer-events:none}
.variant-val{display:block;font-weight:800;font-size:17px}
.variant-price{display:block;color:var(--muted);font-size:13px;margin-top:2px}
.btn{display:inline-block;background:var(--accent);color:#fff!important;padding:8px 16px;border-radius:8px;font-weight:700;font-size:14px}
.btn:hover{background:var(--accent-d);text-decoration:none}.btn.sm{padding:5px 12px;font-size:13px}
.specs th{width:40%;background:#f7f9fc}
/* sparkline */
.sparkline{display:flex;align-items:flex-end;gap:3px;height:80px;padding:8px;background:var(--card);border:1px solid var(--line);border-radius:10px;max-width:420px}
.sparkline .bar{flex:1;background:var(--accent);border-radius:2px 2px 0 0;min-height:3px}
/* inline price widget */
.price-widget{border:1px solid var(--line);border-radius:12px;overflow:hidden;margin:18px 0;background:var(--card)}
.pw-head{background:#f0f3f8;padding:10px 14px;font-weight:700}
.pw-foot{padding:6px 14px;font-size:12px;color:var(--muted)}
/* prose */
.prose{max-width:1070px}.prose .body{font-size:17px}.byline{color:var(--muted)}
.authorbio{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:16px;margin-top:26px}
/* ads */
.ad-slot{background:#eef0f4;border:1px dashed #c7ccd6;border-radius:10px;min-height:90px;display:flex;align-items:center;justify-content:center;color:var(--muted);margin:16px 0}
.ad-label{font-size:12px;letter-spacing:.08em;text-transform:uppercase}
/* footer */
.site-foot{background:#141a24;color:#aeb8c6;padding:26px 0;margin-top:30px;font-size:14px}
.site-foot a{color:#8fb6ff}
@media(max-width:720px){.product .p-head{grid-template-columns:1fr}.p-hero{max-width:none;width:100%}}

/* --- buyer's guide: ranked pick list (shared engine) --- */
.bg-guide{display:flex;flex-direction:column;gap:14px;margin:18px 0}
.bg-pick{display:grid;grid-template-columns:132px 1fr auto;gap:16px;align-items:center;background:var(--card,#fff);border:1px solid var(--line);border-radius:14px;padding:14px 18px}
/* Unranked lists (facet/search pages) omit the rank badge, so the desktop grid must drop its rank column
   too - otherwise the thumb + body auto-flow one column left and squish. Desktop-scoped so mobile (which
   places bg-* explicitly) is untouched. */
@media(max-width:640px){.bg-pick.norank{grid-template-columns:1fr}.bg-pick.norank>*{grid-column:1}}
/* rank badge overlays the top-left of the thumbnail (both desktop + mobile) so it never takes its own column */
.bg-thumb{display:block;position:relative}
.bg-rank{position:absolute;top:6px;left:6px;z-index:2;width:30px;height:30px;border-radius:50%;background:var(--accent);color:#fff;font-weight:800;font-size:15px;display:flex;align-items:center;justify-content:center}
.bg-thumb img{width:132px;height:100px;object-fit:contain;background:#fff}
.bg-body{display:flex;flex-direction:column;gap:5px;min-width:0}
.bg-title{font-weight:700;font-size:16px;color:var(--ink);line-height:1.25}
.bg-title:hover{text-decoration:none;color:var(--accent-d)}
.bg-brand{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.5px}
.bg-brand .bg-sub2{text-transform:none;letter-spacing:0}
.bg-theme-link,.theme-link{font-weight:700;text-decoration:none;color:var(--accent)}
.bg-theme-link:hover,.theme-link:hover{text-decoration:underline}
.bg-ppp{display:block;margin-top:3px;font-size:12px;font-weight:600;color:var(--muted)}
a.badge,.badge{text-decoration:none}
a.badge{cursor:pointer}
a.badge:hover{filter:brightness(.96)}
.bg-rating{display:flex;align-items:center;gap:6px;font-size:13px;color:#f5a623}
.bg-rating .off{color:var(--line)}
.bg-rating em{font-style:normal;color:var(--muted)}
/* OUR TV Rex rating on a card (Rex heads, partial-filled) - sits above the customer stars */
.bg-rex{display:inline-flex;align-items:center;gap:5px;font-size:13px}
.bg-rex-lbl{font-weight:700;color:var(--ink)}
.bg-heads{display:inline-flex;align-items:center;gap:2px}
.bg-head{position:relative;display:block;width:15px;height:15px;flex:none}
.bg-head-b{display:block;width:15px;height:15px;border-radius:3px;opacity:.2}
.bg-head-f{position:absolute;top:0;left:0;height:15px;overflow:hidden}
.bg-head-f img{display:block;width:15px;max-width:none;height:15px;border-radius:3px}
.bg-rex strong{color:var(--ink)}
.bg-rex-of{color:var(--muted);font-size:.9em}
.bg-specs{list-style:none;display:flex;flex-wrap:wrap;gap:6px 8px;margin:2px 0 0;padding:0}
.bg-specs li{font-size:12px;color:var(--ink);background:var(--bg,#f2f4f8);border:1px solid var(--line);border-radius:6px;padding:2px 8px}
.bg-specs li span{color:var(--muted)}
.bg-buy{display:flex;flex-direction:column;align-items:flex-end;gap:4px;text-align:right}
.bg-price{font-size:22px;font-weight:800;color:var(--accent-d)}
.bg-stores{font-size:12px;color:var(--muted)}
.bg-buy .rlogos{margin-top:2px}
.bg-cta{margin-top:4px;background:var(--accent);color:#fff;font-weight:700;font-size:13px;padding:8px 16px;border-radius:9px;white-space:nowrap}
.bg-cta:hover{background:var(--accent-d);text-decoration:none}
@media(max-width:640px){
  /* prices table: keep all 4 columns (incl. the buy button) on-screen on a phone */
  table.prices{table-layout:fixed;width:100%}
  table.prices th,table.prices td{padding:8px 6px;font-size:13px;word-break:break-word}
  table.prices th{font-size:11px}
  table.prices th:nth-child(1),table.prices td:nth-child(1){width:38%}
  table.prices th:nth-child(2),table.prices td:nth-child(2){width:22%}
  table.prices th:nth-child(3),table.prices td:nth-child(3){width:20%}
  table.prices th:nth-child(4),table.prices td:nth-child(4){width:20%;text-align:center}
  /* keep the retailer logo + name on ONE line on the narrowest phones (375px): smaller logo, tighter gap */
  .prices td.rt .rlogo{width:20px;height:20px}
  .prices .rt-top{gap:6px}
  .prices .was{display:block;margin:2px 0 0 0}
  /* a status pill like "Out of stock" is nowrap by default and blew out of its narrow phone cell,
     overlapping the View button. Let it wrap to two lines + shrink so it stays inside its column. */
  .prices .stk{white-space:normal;padding:2px 7px;font-size:11px;line-height:1.15;text-align:center;max-width:100%}
  .prices .btn{padding:5px 10px;font-size:12px;white-space:nowrap;word-break:normal}
  .prices .pulled td{padding:3px 7px;font-size:11px;width:auto}
  /* single-column card on mobile: the TV image spans the FULL card width, everything stacks below it,
     and the rank badge overlays the image's top-left corner instead of taking a side column */
  .bg-pick{grid-template-columns:1fr;row-gap:8px;align-items:start;position:relative}
  .bg-rank{position:absolute;top:10px;left:10px;grid-row:auto;width:30px;height:30px;font-size:15px;z-index:2}
  .bg-thumb{grid-column:1/-1}
  .bg-thumb img{width:100%;max-width:none;height:auto;max-height:240px}
  /* placeholder tracks the full-width image box so a no-photo card isn't narrower than its neighbours */
  .bg-thumb .card-noimg{width:100%;max-width:none;height:200px}
  .bg-body{grid-column:1/-1;min-width:0}
  .bg-buy{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;align-items:baseline;justify-content:flex-start;text-align:left;gap:6px 14px;margin-top:2px}
  .bg-price{font-size:20px}
  /* Compare button always its OWN full-width row - otherwise it floats beside the logos and lands on
     either side depending on how many retailer logos wrap (inconsistent). Full-width = always consistent. */
  .bg-cta{flex-basis:100%;text-align:center;margin-top:8px}
}

/* --- price watch box (product page) --- */
.watch-box{margin:16px 0 4px;padding:12px 16px;background:var(--bg,#f2f4f8);border:1px solid var(--line);border-radius:12px}
.watch-form{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.watch-label{display:flex;flex-direction:column;line-height:1.25;margin-right:2px}
.watch-form strong{font-size:15px}
.watch-form .muted{font-size:12px;margin:0}
.watch-form input{padding:9px 11px;border:1px solid #d4d9e0;border-radius:8px;font-size:14px}
.watch-form input[type=email]{flex:2 1 180px;max-width:340px}
.watch-form input[type=number]{flex:1 1 160px}
.watch-form button{background:var(--accent);color:#fff;border:none;border-radius:8px;padding:9px 16px;font-family:inherit;font-weight:700;font-size:14px;cursor:pointer}
.watch-form button:hover{background:var(--accent-d)}
.watch-flash{padding:8px 12px;border-radius:8px;font-size:13px;margin:0 0 10px}
.watch-flash.ok{background:#e9f7ef;border:1px solid #b7e2c8;color:#1c7a44}
.watch-flash.err{background:#fdecec;border:1px solid #f5c2c2;color:#a12626}
.watchlist{list-style:none;padding:0;margin:8px 0}
.watchlist li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px;text-align:left}
.watchlist form{margin:0}
.watchlist button{background:none;border:none;color:#a12626;cursor:pointer;font-size:13px}
/* --- search + faceted browse --- */
.search-bar{display:flex;gap:8px;max-width:560px;margin:0 0 18px}
.search-bar input{flex:1;padding:11px 14px;border:1px solid var(--line);border-radius:10px;font-size:15px;outline:none}
.search-bar input:focus{border-color:var(--accent)}
.search-bar button{background:var(--accent);color:#fff;border:none;border-radius:10px;padding:11px 20px;font-weight:700;cursor:pointer}
.search-bar button:hover{background:var(--accent-d)}
.breadcrumbs{font-size:13px;margin:0 0 14px;color:var(--muted,#78706a)}
.breadcrumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:6px;padding:0;margin:0}
.breadcrumbs li{display:flex;align-items:center;gap:6px}
.breadcrumbs li:not(:last-child)::after{content:'\203A';opacity:.55}
.breadcrumbs a{color:inherit;text-decoration:none}
.breadcrumbs a:hover{text-decoration:underline;color:var(--accent,#333)}
.breadcrumbs [aria-current]{color:var(--ink,#222);font-weight:600}
.search-layout{display:grid;grid-template-columns:210px 1fr;gap:24px;margin-top:14px}
.search-layout.no-facets{grid-template-columns:1fr}
/* min-width:0 lets the results column shrink below its content's min-content, so a wide child
   (the nowrap sort strip, a table, a long word) scrolls inside itself instead of blowing the whole
   grid past the viewport - which on mobile stretched the stacked filter rail off-screen. */
.search-results{min-width:0}
.facets{align-self:start;position:sticky;top:78px;min-width:0}
.facets strong{display:block;font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:10px}
/* the "Filters" collapse button is desktop-hidden (rail always open); it only appears on mobile */
.facet-toggle-btn{display:none}
/* scroll-margin so a #fg deep-link (filter tap reload) lands the group just below the 62px sticky header */
.facet-group{margin-bottom:16px;scroll-margin-top:72px}
.facet-label{display:block;font-weight:700;font-size:14px;margin-bottom:6px}
.facet-group ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.facet-group li a{display:inline-block;font-size:13px;padding:4px 10px;border:1px solid var(--line);border-radius:16px;color:var(--ink);background:var(--card)}
.facet-group li a:hover{border-color:var(--accent);text-decoration:none}
.facet-group li a.on{background:var(--accent);color:#fff;border-color:var(--accent)}
/* read-only "already filtered for this page" group, pinned to the top of the refine rail */
.facet-locked{background:rgba(0,0,0,.02);border:1px solid var(--line);border-radius:10px;padding:11px 12px;margin-bottom:18px}
.facet-locked-h{display:block;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--ink);margin-bottom:9px}
.facet-locked ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.locked-chip{display:flex;flex-direction:column;gap:2px}
.lc-tag{align-self:flex-start;font-size:12px;font-weight:700;color:var(--ink);background:var(--card,#fff);border:1px solid var(--line);border-radius:16px;padding:3px 11px 3px 23px;position:relative;cursor:default}
.lc-tag::before{content:"\2713";position:absolute;left:9px;top:50%;transform:translateY(-50%);color:var(--accent);font-weight:900;font-size:11px}
.lc-why{font-size:11px;color:var(--muted);line-height:1.35}
/* --- active-filters bar (always visible, built from APPLIED params, survives 0 results so a user is
   never trapped by a filter combo that matches nothing). Built on the theme vars so each site adopts its
   own palette; strongly-coloured themes add their own overrides in their sheet. --- */
.active-filters{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.active-filters .af-label{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin-right:2px}
.active-filters .af-chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.af-chip{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:600;line-height:1;padding:5px 10px;border-radius:16px;border:1px solid var(--accent);background:var(--accent);color:#fff;cursor:pointer}
.af-chip:hover{background:var(--accent-d);border-color:var(--accent-d);text-decoration:none}
.af-chip .af-x{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;border-radius:50%;background:rgba(255,255,255,.28);font-size:13px;font-weight:700;line-height:1}
.af-chip:hover .af-x{background:rgba(255,255,255,.42)}
/* Clear all reads as a lighter, secondary action (outline, not filled) so it's distinct from the removable chips */
.af-chip.af-clear{background:var(--card);color:var(--ink);border:1px solid var(--line);font-weight:700}
.af-chip.af-clear:hover{border-color:var(--accent);color:var(--accent-d);background:var(--card)}
/* header search box */
.head-search{display:flex;gap:6px;margin-left:auto}
.head-search input{padding:7px 11px;border:1px solid var(--line);border-radius:8px;font-size:14px;width:180px;outline:none}
.head-search input:focus{border-color:var(--accent)}
.head-search button{background:var(--accent);color:#fff;border:none;border-radius:8px;padding:7px 12px;cursor:pointer;font-size:14px}
@media(max-width:720px){.search-layout{grid-template-columns:1fr}.facets{position:static}.head-search{display:none}
  /* mobile: collapse the filter rail behind a "Filters" button so the first result isn't buried under the
     whole filter stack. CSS-only checkbox toggle; the scroll-to-#fg script re-opens it after a filter tap. */
  .facet-toggle-btn{display:flex;align-items:center;gap:8px;width:100%;padding:9px 14px;margin-bottom:4px;font-weight:700;font-size:14px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink);cursor:pointer}
  .facet-toggle-btn::after{content:'\25be';margin-left:auto;font-size:12px}
  .facet-toggle:checked ~ .facet-toggle-btn::after{content:'\25b4'}
  .facet-body{display:none}
  .facet-toggle:checked ~ .facet-body{display:block;margin-top:8px}}

/* --- facet content pages: dynamic facts + editorial + our-pick + FAQ --- */
.cheapest-now{background:var(--card);border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:10px;padding:12px 16px;margin:2px 0 14px;font-size:15px;max-width:820px}
.cheapest-now p{margin:0}
.cheapest-now .cn-price{color:var(--accent-d);font-size:17px}
.cheapest-now .asof{display:inline-block;color:var(--muted);font-size:12px;margin-left:6px}
.facet-editorial{max-width:820px;margin:0 0 16px;font-size:16px;color:var(--ink)}
.facet-editorial.below{margin:22px 0 8px}
.facet-editorial p{margin:.5em 0}
.our-pick{display:flex;gap:14px;align-items:flex-start;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin:18px 0 4px}
.our-pick .op-tag{flex:0 0 auto;background:var(--accent);color:#fff;font-weight:800;font-size:12px;letter-spacing:.04em;text-transform:uppercase;padding:5px 11px;border-radius:20px;margin-top:2px}
.our-pick .op-name{font-weight:800;font-size:16px;color:var(--ink)}
.our-pick .op-why{color:var(--muted);font-size:14px;margin-top:3px}
.faq{max-width:820px;margin:24px 0 4px}
.faq h2{font-size:19px;margin:0 0 10px}
.faq details{border:1px solid var(--line);border-radius:10px;background:var(--card);padding:0 14px;margin-bottom:8px}
.faq summary{cursor:pointer;font-weight:700;font-size:15px;padding:11px 0;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary::before{content:'+';color:var(--accent-d);font-weight:800;margin-right:9px}
.faq details[open] summary::before{content:'\2013'}
.faq details p{margin:0 0 12px;color:var(--ink);font-size:14px}

/* an element that is BOTH a full-width .band and the centered .wrap (e.g. the product article)
   must keep the wrap's side padding - .band's `padding:x 0` shorthand would otherwise zero it,
   flushing the title/price/body to the edge (glaring inside the themed shell). */
.wrap.band{padding-left:20px;padding-right:20px}

/* sort controls above the product list */
.sort-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 14px;font-size:13px;scroll-margin-top:72px}
/* the pills sit on ONE line beneath the "Sort" header; if the row is wider than the column (narrow
   laptops, phones) it scrolls sideways rather than wrapping to a second line. */
.sort-opts{width:100%;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:7px;overflow-x:visible;padding-bottom:2px}
.sort-opts a{white-space:nowrap;flex:none}
/* on mobile the pills WRAP onto rows instead of a sideways-scrolling strip (placed AFTER the base rule
   so it wins - a media query earlier in the file would be overridden by the later base declaration). */
@media(max-width:720px){.sort-opts{flex-wrap:wrap;overflow-x:visible}}
/* "Sort" is a full-width header (own line, above the pills) styled like the sidebar "Refine" header, so the
   sort pills all sit on one line beneath it instead of the label crowding them. */
.sort-bar span{display:block;width:100%;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.05em;font-size:13px;margin:0 0 8px}
.sort-bar a{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;padding:5px 11px;font-size:12px;border:1px solid var(--line);border-radius:16px;color:var(--ink);background:var(--card)}
.sort-bar a:hover{border-color:var(--accent);text-decoration:none}
.sort-bar a.on{background:var(--accent);color:#fff;border-color:var(--accent)}
/* two-way sort chips: the active one shows a small up/down triangle for the current direction.
   inline-flex + nowrap keeps the label + arrow on ONE line (they were wrapping = "broken" look). */
/* arrow sits inline + vertically centred with the label; inherits the chip's colour (white on active) */
.sort-bar a .sort-arrow{display:inline-flex;align-items:center;color:inherit}
.sort-bar a .sort-arrow svg{display:block}
.sort-bar a.on .sort-arrow{color:#fff}

/* pagination control (search / category / size listings) */
.pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;margin:22px 0 4px}
.pager .pg-nums{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px}
.pager .pg-num,.pager .pg-step{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 12px;border:1px solid var(--line);border-radius:9px;color:var(--ink);background:var(--card);font-weight:700;font-size:14px}
.pager .pg-num:hover,.pager .pg-step:hover{border-color:var(--accent);text-decoration:none}
.pager .pg-num.on{background:var(--accent);color:#fff;border-color:var(--accent)}
.pager .pg-gap{padding:0 2px;color:var(--muted)}

/* tables inside article bodies (e.g. OS/spec comparison tables in content) */
.prose .body table{width:100%;border-collapse:collapse;margin:18px 0;font-size:15px;background:var(--card);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.prose .body th,.prose .body td{padding:10px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.prose .body thead th{background:#eef2f8;font-weight:700;font-size:13px;letter-spacing:.02em}
.prose .body tbody tr:last-child td{border-bottom:0}
.prose .body tbody tr:nth-child(even) td{background:var(--bg,#f7f8fa)}
.prose .body table{table-layout:auto}
/* facet callout + intro now live inside the results column - fill it, don't float narrow */
.search-results .cheapest-now,.search-results .facet-editorial{max-width:none}
.search-results .cheapest-now{margin-top:0}
/* placeholder shown in a product card when we have no photo - keeps the card the same size */
.card-noimg{display:flex;align-items:center;justify-content:center;height:150px;margin:14px;background:#f1f3f6;border:1px dashed var(--line);border-radius:10px;color:#cdd4dc}
/* list-row thumbnail placeholder matches the 132x100 thumb size */
.bg-thumb .card-noimg{width:132px;height:100px;margin:0;border-radius:8px}
.bg-thumb .card-noimg svg{width:40px;height:31px}
.bg-save{display:inline-block;background:var(--accent,#e8792b);color:#fff;font-size:11px;font-weight:800;padding:2px 9px;border-radius:20px;margin:2px 0}
.how-priced{font-size:12px;font-weight:600;color:var(--muted);margin-left:8px;text-decoration:underline}
/* long product descriptions clamp behind a Show more (keeps the price table high on the page) */
.product-desc.clamp{max-height:190px;overflow:hidden;position:relative}
.product-desc.clamp:not(.open){-webkit-mask-image:linear-gradient(#000 78%,transparent);mask-image:linear-gradient(#000 78%,transparent)}
.product-desc.open{max-height:none}
.desc-toggle{margin:6px 0 2px;background:none;border:0;color:var(--accent);font-weight:700;cursor:pointer;padding:4px 0;font-size:14px}
.desc-toggle:hover{text-decoration:underline}
/* trust/feature badges (e.g. Great for Gaming) */
.badges{margin:8px 0 2px;display:flex;flex-wrap:wrap;gap:6px}
.badge{display:inline-flex;align-items:center;gap:6px;padding:5px 13px;border-radius:999px;font-size:13px;font-weight:700;line-height:1;cursor:default}
.badge-gaming{background:#166a3f;color:#fff}
/* both badges lead with a same-size icon slot so their text left-edges align (fire emoji vs the gaming dot) */
.badge-ico{display:inline-flex;align-items:center;justify-content:center;width:15px;flex:none;line-height:1;font-size:12px}
.badge-dot::before{content:"";width:9px;height:9px;border-radius:2px;background:#7ee2a8;box-shadow:0 0 0 2px rgba(126,226,168,.35)}
.badge-deal{background:#d6362b;color:#fff}
.badge-value{background:#0f766e;color:#fff}
.badge-retiring{background:#f5c518;color:var(--ink)}
.model-code{margin:2px 0 4px;font-weight:700;font-size:13px;letter-spacing:.05em;color:#5a6472;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
/* price-table best-price emphasis + out-of-stock demotion (row stays clickable) */
.prices tr.best{background:#f3fbf6}
.prices tr.best td{border-top:2px solid #bfe8cd}
.best-tag{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;font-size:11px;font-weight:800;color:#0f5132;background:#c7f0d6;text-transform:uppercase;letter-spacing:.02em;vertical-align:middle;white-space:nowrap}
.save-note{display:block;font-size:11px;font-weight:700;color:#166a3f;margin-top:2px;white-space:normal;line-height:1.25}
/* the no-price "-" sits centered in the Stock cell (item: dash centered, not left) */
.stk-dash{display:block;text-align:center;color:#9aa}
/* review-count separator dot: shown inline on desktop, hidden on mobile where the count wraps to its own line */
.rev-sep{color:inherit}
.prices tr.oos td{color:#93a0ac}
.prices tr.oos .rlogo{opacity:.55}
.prices tr.oos .rname{color:#8a94a2}
.prices tr.oos .btn{background:#e4e7ec;color:#5b6673;box-shadow:none}
.prices tr.oos .btn:hover{background:#d7dbe2;color:#3f4855}
.btn-best{box-shadow:0 0 0 3px rgba(22,106,63,.18)}
.lowprice-jump{color:inherit;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}
.lowprice-jump:hover{text-decoration-style:solid}
#prices{scroll-margin-top:74px}
/* search: matching guides surfaced with product results */
.search-guides{margin-top:26px;border-top:1px solid var(--line);padding-top:18px}
.search-guides h2{font-size:18px;margin:0 0 12px}
.guide-hits{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.guide-hits a{display:block;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--card,#fff);text-decoration:none}
.guide-hits a:hover{border-color:var(--accent);text-decoration:none}
.guide-hits strong{display:block;color:var(--ink);font-size:15px}
.guide-hits span{display:block;color:var(--muted);font-size:13px;margin-top:2px}
/* guides-hub 'Start here' flagship cards */
.start-here{margin-bottom:26px}
.start-here .sh-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px;margin-top:12px}
.sh-card{display:block;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--card,#fff);text-decoration:none}
.sh-card:hover{border-color:var(--accent);box-shadow:0 4px 14px rgba(0,0,0,.06);text-decoration:none}
.sh-card strong{display:block;color:var(--ink);font-size:15px;margin-bottom:4px}
.sh-card span{color:var(--muted);font-size:13px}

/* "Check on eBay" note under the product price table (used/near-new angle) - editorial line */
.ebay-a{max-width:760px;margin:14px 0 4px;font-size:14px;line-height:1.55;color:var(--muted)}
.ebay-a-link{font-weight:700;white-space:nowrap}

/* availability state pills (product_detail Stock column) */
.stk{display:inline-block;font-size:12px;font-weight:600;padding:2px 9px;border-radius:20px;background:#eef1f6;color:#3a4256;white-space:nowrap}
.stk-is{background:#e4f6ea;color:#1c7a3e}
.stk-pre{background:#fdf0d8;color:#9a6a10}
.stk-soon{background:#e5eefb;color:#2a5fa8}
.stk-oos{background:#eef1f6;color:#6b7280}
.stk-disc{background:#f3e6e6;color:#a15252}
.facet-viewall{display:inline-block;margin-top:10px;font-size:13px;font-weight:600;color:var(--accent,#e8791f)}
.facet-viewall:hover{text-decoration:underline}
/* related facet pages block (interlinking): a compact chip row under facet listings */
.related-facets{margin:28px 0 8px}
.related-facets h2{font-size:1.05rem;margin:0 0 10px}
.related-facets ul{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px}
.related-facets li a{display:inline-block;padding:6px 12px;border:1px solid var(--line,#e2e2e2);border-radius:999px;font-size:.85rem;text-decoration:none;color:inherit;background:#fff}
.related-facets li a:hover{border-color:var(--accent,#888)}
/* Minifigures-included section (BrickTurtle) - simple name list */
.minifigs{margin:22px 0}
.mf-list{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px 10px}
.mf-list li{font-size:13px;color:var(--bt-ink,#17224a);background:#fff2d1;border:1px solid #e6ddc4;border-radius:6px;padding:3px 9px}
.mf-qty{font-weight:700;color:var(--ink,#333)}
/* Article inline tokens: product image pair (comparison articles) + live spec */
.art-imgs{display:flex;gap:14px;flex-wrap:wrap;margin:16px 0}
/* each image sits in a fixed-height white card, centred + object-fit:contain, so a tall and a wide set
   render the SAME height and read as an even pair (the tall one shrinks to fit). */
.art-imgs .art-img-link{flex:1 1 240px;min-width:0;display:flex;align-items:center;justify-content:center;
  height:300px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px;box-sizing:border-box}
.art-img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;background:transparent;border:0;border-radius:0}
@media (max-width:640px){.art-imgs .art-img-link{height:220px}}
.live-spec{font-weight:600;color:inherit}
