/* Fyndmotorn, the v7 look (brief 2026-11-20, step 1): design tokens and two themes.
   Loaded only by the preview under /forhandsvisning/ until a page type goes live. The old look (app.css) is untouched.

   Two layers: raw values (--raw-*), then semantic names that the components use. A component never names a raw value.
   Theme: the visitor's system setting decides (prefers-color-scheme); the switch in the menu overrides it on this device
   (data-theme="light" | "dark" on <html>, set by v7_theme.js before the first paint).
   The dark values exist twice below (system setting, manual choice): tests/v7.test.mjs fails if they differ.
   Shape: large radii, no shadows, no gradients. Every text/background pair is checked against 4.5:1
   (scripts/v7_contrast.mjs, tests/v7.test.mjs). */

@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400 800;font-display:swap;src:url(assets/fonts/plus-jakarta-sans-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400 800;font-display:swap;src:url(assets/fonts/plus-jakarta-sans-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root{
 /* ---- raw values ---- */
 --raw-white:#FFFFFF;--raw-paper:#F4F4F8;--raw-lilac:#F1EEFF;--raw-line:#E6E6EE;
 --raw-ink:#1B1B2F;--raw-ink-deep:#10102A;--raw-muted:#4A4A63;
 --raw-violet:#5B3DF0;--raw-violet-dim:#8E78F7;--raw-violet-soft:#E4DEFF;
 --raw-yellow:#FFD43B;--raw-mint:#0FA98E;--raw-amber:#FFB703;--raw-coral:#FF5A5F;
 --raw-night:#12121C;--raw-night-surface:#1E1E2E;--raw-night-raised:#26263A;--raw-night-line:#2A2A3D;
 --raw-night-text:#F4F4FA;--raw-night-muted:#B9B9CC;--raw-night-violet:#A996FF;--raw-night-violet-hover:#C9BEFF;

 /* ---- semantic, light ---- */
 --ground:var(--raw-white);--surface:var(--raw-paper);--surface-brand:var(--raw-lilac);--raised:var(--raw-white);--line:var(--raw-line);
 --text:var(--raw-ink);--text-muted:var(--raw-muted);
 --brand:var(--raw-violet);--brand-hover:var(--raw-ink);
 --action:var(--raw-ink);--on-action:var(--raw-white);
 --focus:var(--raw-violet);
 /* The ink accent as a block (a category tile, a swatch). Ink on the dark ground is almost invisible, so in dark the block
    is a light tile with dark content instead (owner 2026-11-20). Text ON ink elsewhere keeps --ink / --on-ink. */
 --accent-ink:var(--raw-ink);--on-accent-ink:var(--raw-white);

 /* ---- semantic, the same in both themes ---- */
 --brand-block:var(--raw-violet);--on-brand-block:var(--raw-white);--on-brand-block-soft:var(--raw-violet-soft);
 --budget:var(--raw-yellow);
 --track:var(--raw-yellow);--on-track:var(--raw-ink);--pin-lit:var(--raw-yellow);--pin-dim:var(--raw-violet-dim);
 --block-button:var(--raw-white);--on-block-button:var(--raw-ink);
 --knob-fill:var(--raw-white);--knob-edge:var(--raw-ink);
 /* the white card beside the line on a wide screen: the same in both themes, like the block it sits on */
 --on-block-muted:var(--raw-muted);--block-line:var(--raw-line);--block-action:var(--raw-ink);--on-block-action:var(--raw-white);
 --yellow:var(--raw-yellow);--mint:var(--raw-mint);--amber:var(--raw-amber);--coral:var(--raw-coral);--violet:var(--raw-violet);--ink:var(--raw-ink);
 --on-yellow:var(--raw-ink-deep);--on-mint:var(--raw-ink-deep);--on-amber:var(--raw-ink-deep);--on-coral:var(--raw-ink-deep);
 --on-violet:var(--raw-white);--on-ink:var(--raw-white);
 /* price bands of gaming PCs (owner 2026-11-20): under 3 000 mint, 3 000-4 999 yellow, 5 000-7 999 amber,
    8 000-11 999 coral, 12 000 and up violet. The band is always written out on the tile; colour is never the only signal. */
 --band-1:var(--mint);--on-band-1:var(--on-mint);
 --band-2:var(--yellow);--on-band-2:var(--on-yellow);
 --band-3:var(--amber);--on-band-3:var(--on-amber);
 --band-4:var(--coral);--on-band-4:var(--on-coral);
 --band-5:var(--violet);--on-band-5:var(--on-violet);

 /* ---- shape, type, layout ---- */
 --radius-tile:22px;--radius-block:28px;--radius-pill:999px;
 --font:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',Arial,sans-serif;
 --wrap:1240px;--gutter:16px;--touch:44px;
 color-scheme:light;
}
@media (prefers-color-scheme:dark){
 :root:not([data-theme=light]){
  --ground:var(--raw-night);--surface:var(--raw-night-surface);--surface-brand:var(--raw-night-raised);--raised:var(--raw-night-raised);--line:var(--raw-night-line);
  --text:var(--raw-night-text);--text-muted:var(--raw-night-muted);
  --brand:var(--raw-night-violet);--brand-hover:var(--raw-night-violet-hover);
  --action:var(--raw-night-text);--on-action:var(--raw-night);
  --focus:var(--raw-night-violet);
  --accent-ink:var(--raw-night-text);--on-accent-ink:var(--raw-ink-deep);
  color-scheme:dark;
 }
}
:root[data-theme=dark]{
  --ground:var(--raw-night);--surface:var(--raw-night-surface);--surface-brand:var(--raw-night-raised);--raised:var(--raw-night-raised);--line:var(--raw-night-line);
  --text:var(--raw-night-text);--text-muted:var(--raw-night-muted);
  --brand:var(--raw-night-violet);--brand-hover:var(--raw-night-violet-hover);
  --action:var(--raw-night-text);--on-action:var(--raw-night);
  --focus:var(--raw-night-violet);
  --accent-ink:var(--raw-night-text);--on-accent-ink:var(--raw-ink-deep);
  color-scheme:dark;
}

/* ---- base ---- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--ground);color:var(--text);font-family:var(--font);font-size:16px;line-height:1.5;font-weight:400}
h1,h2,h3,p{margin:0}
h1,h2,h3{font-weight:800;letter-spacing:-.02em;line-height:1.15}
h1{font-size:28px}h2{font-size:22px}h3{font-size:18px}
a{color:var(--brand);text-underline-offset:3px}
a:hover{color:var(--brand-hover)}
.num{font-variant-numeric:tabular-nums}
.muted{color:var(--text-muted)}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.t-violet :focus-visible,.priceline :focus-visible{outline-color:var(--on-brand-block)}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--gutter)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---- header ---- */
.t-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px}
.t-wordmark{display:flex;align-items:center;min-height:var(--touch);font-weight:800;font-size:24px;letter-spacing:-.03em;color:var(--brand);text-decoration:none}

/* ---- buttons, inputs, chips: fully rounded, at least 44 px ---- */
.t-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 20px;border:0;border-radius:var(--radius-pill);
 background:var(--action);color:var(--on-action);font:inherit;font-weight:800;font-size:16px;text-decoration:none;cursor:pointer}
.t-btn:hover{color:var(--on-action)}
.t-btn.quiet{min-height:var(--touch);padding:0 16px;background:var(--surface);color:var(--text);font-weight:700;font-size:14px}
.t-btn.soft{min-height:var(--touch);padding:0 18px;background:var(--surface-brand);color:var(--brand);font-weight:700;font-size:15px}
.t-btn.on-block{background:var(--block-button);color:var(--on-block-button)}
.t-btn[aria-pressed=true]{background:var(--action);color:var(--on-action)}
.t-search{display:flex;align-items:center;gap:10px;height:52px;padding:0 16px;border-radius:var(--radius-pill);background:var(--surface);color:var(--text)}
.t-search input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;font:inherit;color:var(--text)}
.t-search input::placeholder{color:var(--text-muted);opacity:1}
.t-search:focus-within{outline:3px solid var(--focus);outline-offset:2px}
.t-chip{display:inline-flex;align-items:center;min-height:var(--touch);padding:0 16px;border-radius:var(--radius-pill);background:var(--surface);color:var(--text);font-weight:700;font-size:14px}

/* ---- colour blocks ---- */
.t-block{border-radius:var(--radius-block);padding:20px 16px}
.t-violet{background:var(--brand-block);color:var(--on-brand-block)}
.t-violet .soft-text{color:var(--on-brand-block-soft)}
.t-trust{background:var(--surface-brand);color:var(--text)}
/* The range ("3 090–34 999 kr") is longer than one price, so on a phone it is set at 34 px to stay on one line. Still
   large text for the yellow on violet (WCAG: bold from 18.66 px). */
.t-budget{font-weight:800;font-size:34px;line-height:40px;letter-spacing:-.03em;color:var(--budget);font-variant-numeric:tabular-nums;white-space:nowrap}
.t-track{position:relative;height:40px;border-radius:var(--radius-pill);background:var(--track);color:var(--on-track);font-size:11px;font-weight:800}
.t-track span{position:absolute;top:13px}.t-track .lab-first{left:12px}.t-track .lab-mid{left:48%}
/* The marks are SVG rectangles: the CSP allows no inline styles, and a place given as an attribute is not a style. */
.t-pins{display:block;margin-bottom:4px;overflow:visible}
.t-pins rect{fill:var(--pin-dim)}
.t-pins rect.lit{fill:var(--pin-lit)}
.t-stack{display:flex;flex-direction:column;gap:8px}
.t-question{font-weight:800;font-size:24px;line-height:28px;letter-spacing:-.02em}
.t-display{font-weight:800;font-size:44px;line-height:48px;letter-spacing:-.03em}
.t-small{font-size:13px}.t-h-small{font-size:16px}
.w500{font-weight:500}.w600{font-weight:600}.w700{font-weight:700}.w800{font-weight:800}

/* ---- the tile's colour block: the band written out, then the headline ---- */
.t-tileblock{display:flex;flex-direction:column;justify-content:flex-end;gap:2px;height:120px;padding:14px;border-radius:var(--radius-tile)}
.t-tileblock .band{font-size:12px;font-weight:700}
.t-tileblock .headline{font-weight:800;font-size:22px;line-height:25px;letter-spacing:-.02em}
.band-1{background:var(--band-1);color:var(--on-band-1)}
.band-2{background:var(--band-2);color:var(--on-band-2)}
.band-3{background:var(--band-3);color:var(--on-band-3)}
.band-4{background:var(--band-4);color:var(--on-band-4)}
.band-5{background:var(--band-5);color:var(--on-band-5)}
.c-ink{background:var(--accent-ink);color:var(--on-accent-ink)}
.t-price{font-weight:800;font-size:18px;white-space:nowrap;font-variant-numeric:tabular-nums}
.t-line{font-size:13px;color:var(--text-muted)}

/* ---- the price line (step 2) ----
   The handle is the native range input laid over the yellow track, so dragging, a tap anywhere on the line and the arrow
   keys all work by themselves. Its thumb is a 44 px white knob with a dark edge against the yellow (no shadow: the look
   has none). The marks sit in a rail inset by half a knob on each side, so a mark and the knob's centre line up. */
.priceline{--knob:44px}
.pl-controls{display:flex;flex-direction:column}
.pl-controls[hidden],.pl-nojs[hidden]{display:none}
/* the small price line of a category page: the same knobs and button in a lower block; on a phone no marks */
.pl-compact{padding-top:14px;padding-bottom:14px;gap:8px}
.pl-compact .t-question{font-size:17px;line-height:22px;letter-spacing:-.01em}
.pl-compact .t-budget{font-size:26px;line-height:30px}
.pl-compact .pl-pins{display:none}
.pl-compact .pl-steps{margin-top:2px}
.type-choice .t-chip{gap:6px}
.type-choice .t-chip .muted{font-weight:400}
.pl-rail{padding:0 calc(var(--knob)/2)}
.pl-track{position:relative;height:var(--knob);border-radius:var(--radius-pill);background:var(--track)}
/* The price labels stand UNDER the line, so the knob never covers one (owner 2026-11-20). */
.pl-labels{display:block;margin-top:4px;overflow:visible}
.pl-labels text{fill:var(--on-brand-block);font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}
/* Two range inputs lie over the same line. The inputs themselves let a tap through to the line (which moves the nearer
   knob); only their knobs take the finger. The knob used last lies on top. */
.pl-range{position:absolute;inset:0;width:100%;height:var(--knob);margin:0;padding:0;background:transparent;-webkit-appearance:none;appearance:none;pointer-events:none;touch-action:pan-y}
.pl-range.on-top{z-index:2}
.pl-track{cursor:pointer;touch-action:pan-y}
.pl-range::-webkit-slider-runnable-track{height:var(--knob);background:transparent;border:0}
.pl-range::-moz-range-track{height:var(--knob);background:transparent;border:0}
.pl-range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:var(--knob);height:var(--knob);border-radius:50%;background:var(--knob-fill);border:4px solid var(--knob-edge);cursor:grab;pointer-events:auto}
.pl-range::-moz-range-thumb{width:var(--knob);height:var(--knob);box-sizing:border-box;border-radius:50%;background:var(--knob-fill);border:4px solid var(--knob-edge);cursor:grab;pointer-events:auto}
.pl-range:active::-webkit-slider-thumb{cursor:grabbing}
.pl-range:focus-visible{outline:3px solid var(--on-brand-block);outline-offset:3px;border-radius:var(--radius-pill)}
.pl-steps{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:6px}
.pl-step{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--touch);height:var(--touch);padding:0;border:0;border-radius:50%;background:var(--block-button);color:var(--on-block-button);cursor:pointer}
.pl-steps .soft-text{text-align:center}
.pl-nojs{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.pl-nojs ul{display:flex;flex-wrap:wrap;gap:4px 14px;margin:0;padding:0;list-style:none}
.pl-nojs a{color:var(--on-brand-block);min-height:var(--touch);display:inline-flex;align-items:center;font-weight:700}
/* the plain list of step 2 (the tile of step 3 replaces it) */
.pl-list{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none}
.pl-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:center;padding:12px 14px;border-radius:var(--radius-tile);background:var(--surface)}
.pl-chip{grid-column:1/-1;justify-self:start;padding:2px 10px;border-radius:var(--radius-pill);font-size:12px;font-weight:700}
.pl-row-main{display:flex;flex-direction:column;gap:2px;min-height:var(--touch);justify-content:center;color:var(--text);text-decoration:none}
.pl-row-main b{font-weight:800;font-size:18px}
.pl-row .t-price{text-align:right;white-space:normal}
.pl-row .t-price .t-line{display:block;font-weight:400}

/* ---- the start page (steps 2 and 3) ---- */
.home{display:flex;flex-direction:column;gap:20px;padding-top:12px;padding-bottom:32px}
.t-head{position:relative}
.t-head-search,.t-head-links{display:none}
/* the theme button in the header: a round button, the icon of the theme one press leads to */
.t-theme{flex:none;width:var(--touch);min-height:var(--touch);padding:0;margin-left:auto}
.t-theme[hidden]{display:none}
.t-theme[data-now=dark] .i-moon,.t-theme:not([data-now=dark]) .i-sun{display:none}
.t-menu{position:static}
.t-menu summary{list-style:none;cursor:pointer}
.t-menu summary::-webkit-details-marker{display:none}
.t-menu-panel{position:absolute;right:0;top:calc(100% + 4px);z-index:20;display:flex;flex-direction:column;gap:10px;width:min(320px,100%);padding:16px;border-radius:var(--radius-tile);background:var(--surface);border:1px solid var(--line)}
.t-menu-panel ul{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
.t-menu-panel li a{display:flex;align-items:center;min-height:var(--touch);font-weight:700;color:var(--text);text-decoration:none}
.t-search svg{flex:none}
/* search results (point 4): the form, the filters and the sort choice */
.search-form{display:flex;flex-direction:column;gap:12px}
.search-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end}
.search-filters label{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:14px;font-weight:700}
.search-filters .wide{grid-column:1/-1}
.t-field{width:100%;min-width:0;height:var(--touch);padding:0 14px;border:0;border-radius:14px;background:var(--surface);color:var(--text);font:inherit;font-weight:400}
.t-field:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.sorts{display:flex;flex-wrap:wrap;gap:8px}
.sorts .t-chip{text-decoration:none}
.sorts .t-chip[aria-current=true]{background:var(--action);color:var(--on-action)}
/* hits that are not fit for a list: a neutral block, a plain label, folded at the bottom of a search */
.band-none{background:var(--surface);color:var(--text)}
.tile-flag{align-self:flex-start;padding:2px 8px;border-radius:8px;background:var(--text);color:var(--ground);font-size:12px;line-height:18px;font-weight:700}
.others{display:flex;flex-direction:column;gap:12px}
.others>summary{list-style:none;cursor:pointer;height:auto;min-height:var(--touch);padding-block:8px;text-align:left;justify-content:flex-start}
.others>summary::-webkit-details-marker{display:none}
.others>summary::after{content:'+';margin-left:auto;padding-left:12px;font-size:20px}
.others[open]>summary::after{content:'–'}
.others[open]>summary{margin-bottom:12px}
/* the listing page (design brief step 4) */
.tile-more{display:flex;align-items:center;min-height:var(--touch);font-size:14px;font-weight:700}
.hero-block{position:relative}
.hero-block .t-tileblock{height:auto;min-height:150px;justify-content:flex-end;gap:6px;padding-right:60px}
.hero-block .band{position:absolute;top:14px;left:14px;right:60px;line-height:1.3}
.hero-block h1.headline{margin:0;font-size:28px;line-height:1.1}
.hero-specs{font-weight:700}
.listing-title{font-weight:700}
.listing-price .amount{margin:0;font-size:34px;line-height:1.1;font-weight:800;letter-spacing:-.02em}
.listing-price .amount small{display:block;font-size:14px;font-weight:700;letter-spacing:0;color:var(--text-muted)}
.chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0}
.chips .tile-flag{align-self:center}
.facts{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);gap:8px 16px;margin:0}
.facts dt{color:var(--text-muted)}
.facts dd{margin:0;text-align:right;font-weight:700;overflow-wrap:anywhere}
.facts .sum{padding-top:10px;border-top:2px solid var(--surface);color:var(--text);font-weight:800}
.facts .unknown{color:var(--text-muted);font-weight:700}
.rank-block{display:flex;flex-direction:column;gap:10px}
.rank-text{margin:0;font-size:20px;font-weight:800}
.rank-pins{margin-bottom:0}
.rank-ends{display:flex;justify-content:space-between;gap:12px;margin:0}
.rank-block a{color:var(--on-brand-block)}
.description{white-space:pre-line;overflow-wrap:anywhere}
/* a source's discount code: on a tile, on the listing page and in today's own code line */
.tile-code{color:var(--text);font-weight:700}
/* "okänt" on Så räknar vi priset: the same dashed label as before the switch */
.unknown-pill{display:inline-flex;align-items:center;gap:4px;margin-right:4px;padding:1px 8px;border:1.5px dashed var(--text-muted);border-radius:8px;color:var(--text-muted);font-size:13px;font-weight:700;line-height:1.5;white-space:nowrap}
.code-box,.rc-code{margin:0;padding:12px 14px;border-radius:var(--radius-tile);background:var(--surface-brand);color:var(--text);font-size:14px}
/* info pages: the text of today's pages in the new frame */
.prose{max-width:70ch;display:flex;flex-direction:column;gap:14px;overflow-wrap:anywhere}
.prose>*,.prose article>*,.prose section>*,.prose div>*{margin-block:0}
.prose article,.prose section,.prose div{display:flex;flex-direction:column;gap:14px}
.prose h1{font-size:32px;line-height:1.1}
.prose h2{margin-top:14px;font-size:22px}
.prose h3{margin-top:6px;font-size:18px}
.prose ul,.prose ol{display:flex;flex-direction:column;gap:8px;padding-left:22px}
.prose dl{display:flex;flex-direction:column;gap:8px;margin:0}
.prose dt{font-weight:800}
.prose dd{margin:0}
.prose table{border-collapse:collapse;width:100%}
.prose th,.prose td{padding:8px;text-align:left;vertical-align:top;border-bottom:1px solid var(--surface)}
.prose .lead{font-size:18px}
.prose [hidden]{display:none}
/* Bevakningar and the button "Bevaka sökningen" */
.watch-line{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0}
.t-btn[aria-pressed=true][data-watch-search]{background:var(--action);color:var(--on-action)}
.watch-rows{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none}
.watch-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:12px 16px;border-radius:var(--radius-tile);background:var(--surface)}
.watch-open{flex:1 1 200px;display:flex;align-items:center;min-height:var(--touch);font-weight:800;color:var(--text)}
.watch-state{font-weight:700;color:var(--text-muted)}
.watch-row .t-btn.quiet{background:var(--ground)}
/* today's model, landing, budget and student pages in the new frame: their own blocks, restyled */
.v7-page{gap:20px}
.v7-page .page-hero,.v7-page .page-body,.v7-page .site-wrap{display:flex;flex-direction:column;gap:14px;min-width:0}
.v7-page .page-body{gap:20px}
.v7-page h1{font-size:32px;line-height:1.1}
.v7-page h2{margin-top:10px;font-size:22px}
.v7-page h3{font-size:17px}
.v7-page p,.v7-page ul,.v7-page ol,.v7-page dl,.v7-page h1,.v7-page h2,.v7-page h3{margin-block:0}
.v7-page p,.v7-page li{max-width:70ch;overflow-wrap:anywhere}
.v7-page .crumb{font-size:14px;font-weight:700;color:var(--text-muted)}
.v7-page .page-stats,.v7-page .span-stats{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.v7-page .page-stats li,.v7-page .span-stats li{display:flex;flex-direction:column;gap:2px;padding:10px 14px;border-radius:var(--radius-tile);background:var(--surface);max-width:none}
.v7-page .page-stats b,.v7-page .span-stats b{font-size:18px;font-weight:800}
.v7-page .page-stats span,.v7-page .span-stats span{font-size:13px;color:var(--text-muted)}
.v7-page .page-cheapest,.v7-page .span-box,.v7-page .guide,.v7-page .faq,.v7-page .model-watch{display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:var(--radius-tile);background:var(--surface)}
.v7-page .page-note{font-size:14px;color:var(--text-muted)}
.v7-page .model-links,.v7-page .guide-list{display:flex;flex-direction:column;gap:6px;padding-left:20px}
.v7-page .card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}
.v7-page .page-more,.v7-page .model-watch-button{display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;min-height:var(--touch);padding:0 18px;border:0;border-radius:var(--radius-pill);background:var(--surface-brand);color:var(--brand);font:inherit;font-weight:700;font-size:15px;text-decoration:none;cursor:pointer}
.v7-page .model-watch-button[aria-pressed=true]{background:var(--action);color:var(--on-action)}
/* "Samma produkt hos flera säljare" on a model page (same.mjs), in the new look's blocks */
.v7-page .same-section{display:flex;flex-direction:column;gap:12px}
.v7-page .same-group{display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:var(--radius-tile);background:var(--surface)}
.v7-page .same-group h3{margin:0;font-size:16px;font-weight:800;color:var(--text)}
.v7-page .same-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
/* one column on a phone: the name, then seller and condition, then the price with its note; nothing is kept on one line,
   so a long price note never widens the page (seen 21 Nov: 430 px at 380) */
.v7-page .same-row{display:flex;flex-direction:column;gap:2px;padding:4px 12px 10px;border-radius:12px;background:var(--ground);min-width:0}
.v7-page .same-row a{display:flex;align-items:center;min-height:var(--touch);font-weight:700;color:var(--text);overflow-wrap:anywhere}
.v7-page .same-meta{font-size:14px;color:var(--text-muted);overflow-wrap:anywhere}
.v7-page .same-price{font-weight:800;color:var(--text);overflow-wrap:anywhere}
.v7-page .same-price small{font-weight:400;color:var(--text-muted)}
.v7-page .same-badge{display:inline-block;margin:4px 0 0;padding:2px 8px;border-radius:var(--radius-pill);background:var(--surface-brand);color:var(--brand);font-size:12px;font-weight:700;white-space:normal}
.v7-page .same-note{margin:0;font-size:14px;color:var(--text-muted)}
.v7-page table{border-collapse:collapse;width:100%}
.v7-page th,.v7-page td{padding:8px;text-align:left;vertical-align:top;border-bottom:1px solid var(--ground)}
.v7-page [hidden]{display:none}
/* links to our own pages that today's page has and the new page lacks */
.see-also{padding:8px 0 0;font-size:14px}
.see-also .wrap{display:flex;flex-direction:column;gap:8px}
.see-also h2{font-size:16px;margin:0}
.see-also ul{display:flex;flex-wrap:wrap;gap:0 16px;margin:0;padding:0;list-style:none}
.see-also li a{display:flex;align-items:center;min-height:var(--touch);color:var(--text)}
/* the footer */
.t-foot{margin-top:24px;padding:28px 0 36px;border-top:1px solid var(--surface);font-size:14px;color:var(--text-muted)}
.t-foot .wrap{display:flex;flex-direction:column;gap:12px}
.t-foot p{margin:0;max-width:70ch}
.t-foot ul{display:flex;flex-wrap:wrap;gap:0 18px;margin:0;padding:0;list-style:none}
.t-foot li a{display:flex;align-items:center;min-height:var(--touch);font-weight:700;color:var(--text)}
.t-foot-h{margin:8px 0 0;font-weight:800;color:var(--text)}

/* accents for a block or an icon tile: the class sets the pair, the component decides where it goes */
.acc-violet{--acc:var(--violet);--on-acc:var(--on-violet)}.acc-coral{--acc:var(--coral);--on-acc:var(--on-coral)}
.acc-mint{--acc:var(--mint);--on-acc:var(--on-mint)}.acc-amber{--acc:var(--amber);--on-acc:var(--on-amber)}
.acc-ink{--acc:var(--accent-ink);--on-acc:var(--on-accent-ink)}.acc-yellow{--acc:var(--yellow);--on-acc:var(--on-yellow)}

/* category row: icon tiles that scroll sideways on a phone */
.cat-row{margin:0 calc(-1*var(--gutter))}
.cat-row ul{display:flex;gap:12px;margin:0;padding:4px var(--gutter);list-style:none;overflow-x:auto;scrollbar-width:none}
.cat-row ul::-webkit-scrollbar{display:none}
.cat{display:flex;flex-direction:column;align-items:center;gap:6px;width:92px;color:var(--text);text-decoration:none;font-size:12px;font-weight:700;line-height:1.25;text-align:center}
.cat:hover{color:var(--text)}
.cat-icon{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:var(--radius-tile);background:var(--acc);color:var(--on-acc)}
.cat-label{overflow-wrap:break-word;hyphens:manual}
.cat-all{--acc:var(--surface);--on-acc:var(--text)}
/* the small category row at the top of an inner page: the same tiles and colours, 44 px icons, scrolls sideways */
.cat-strip{max-width:var(--wrap);margin:10px auto 0}
.cat-strip ul{display:flex;gap:4px;margin:0;padding:4px var(--gutter);list-style:none;overflow-x:auto;scrollbar-width:none}
.cat-strip ul::-webkit-scrollbar{display:none}
.cs{display:flex;flex-direction:column;align-items:center;gap:4px;flex:none;width:86px;min-height:var(--touch);padding:6px 2px;border:2px solid transparent;border-radius:16px;color:var(--text);text-decoration:none;font-size:11px;font-weight:700;line-height:1.25;text-align:center}
.cs:hover{color:var(--text)}
.cs-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:14px;background:var(--acc);color:var(--on-acc)}
.cs-label{overflow-wrap:break-word;hyphens:manual}
.cs[aria-current]{border-color:var(--text);background:var(--surface)}

/* the price line block: one column on a phone, the line and a card side by side on a wide screen */
.priceline{display:flex;flex-direction:column;gap:12px}
.pl-card{display:flex;flex-direction:column;gap:6px}
.pl-near-title,.pl-near{display:none}
/* The text may wrap to two lines on a phone (owner 2026-11-20): never lower than a touch target, and the whole pill is the link. */
.pl-cta{min-height:52px;padding:8px 20px;line-height:1.25;white-space:normal;background:var(--block-button);color:var(--on-block-button);text-align:center}
.pl-cta:hover{color:var(--on-block-button)}
.near-row{display:flex;align-items:center;gap:14px;padding:10px 0;border-top:1px solid var(--block-line);color:var(--on-block-button);text-decoration:none}
.near-row{min-height:64px}
.near-bar{flex:none;width:14px;height:44px;border-radius:7px}
.near-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.near-main b{font-weight:800;font-size:18px}
.near-main span{font-size:13px;color:var(--on-block-muted)}
.near-main .near-gpu{font-size:15px;font-weight:700;color:var(--on-block-button)}

/* the tile */
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px}
.section-more{display:none}
.home-picks{display:flex;flex-direction:column;gap:12px}
.explain{max-width:62ch;font-size:14px;line-height:20px;color:var(--text-muted)}
.tile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}
.tile{position:relative;min-width:0}
.tile-link{display:flex;flex-direction:column;gap:8px;color:var(--text);text-decoration:none}
.tile-link:hover{color:var(--text)}
.tile-link .headline{overflow-wrap:anywhere}
.tile-facts{display:flex;flex-direction:column;gap:2px;min-width:0;padding:0 4px;overflow-wrap:anywhere}
.tile-facts .t-price{white-space:normal}
.tile-kind{font-size:12px;font-weight:700;color:var(--text-muted)}
/* The graphics card: the second largest text on the tile after the price, in the text colour; RAM, source and shipping
   stay small and grey (owner 2026-11-20). */
.tile-gpu{font-size:15px;line-height:20px;font-weight:700;color:var(--text)}
/* a listing's own title as the dark line: at most three lines */
.tile-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;font-weight:600}
.auctions{display:flex;flex-direction:column;gap:12px}
.tile-ends{font-weight:700;color:var(--text)}
.tile-link .headline{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
.pager{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.cat-count{font-weight:400;opacity:.85}
.cat-index ul{flex-wrap:wrap;overflow:visible}
.tile-save{position:absolute;top:8px;right:8px;display:flex;align-items:center;justify-content:center;width:var(--touch);height:var(--touch);padding:0;border:0;border-radius:50%;background:var(--ground);color:var(--text);cursor:pointer}
/* In a tile the small label stands at the top, clear of the heart, and the headline at the bottom; the block grows with them. */
.tile .t-tileblock{height:auto;min-height:120px;justify-content:space-between;gap:10px}
.tile .t-tileblock .band{margin-right:44px;line-height:1.3}
.tile-save[aria-pressed=true] svg{fill:currentColor}
.tile-save[aria-pressed=true]{color:var(--brand)}

/* trust block */
.trust{display:grid;gap:16px}
.trust div{display:flex;flex-direction:column;gap:4px}
.trust p{font-size:14px;line-height:20px}

/* bottom navigation on a phone */
.t-bottom{position:fixed;left:0;right:0;bottom:0;z-index:10;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));height:68px;padding-bottom:env(safe-area-inset-bottom);background:var(--ground);border-top:1px solid var(--line)}
.t-bottom a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--text-muted);font-size:12px;font-weight:700;text-decoration:none}
.t-bottom a[aria-current=page]{color:var(--brand)}
body{padding-bottom:calc(68px + env(safe-area-inset-bottom))}

/* ---- the preview page of step 1 (/forhandsvisning/stil) ---- */
.pv{display:flex;flex-direction:column;gap:28px;padding-top:20px;padding-bottom:48px}
.pv section{display:flex;flex-direction:column;gap:12px}
.pv-note{padding:12px 16px;border-radius:var(--radius-tile);background:var(--surface);font-size:14px}
.pv-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.pv-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}
.pv-swatches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.pv-swatch{display:flex;flex-direction:column;justify-content:flex-end;min-height:84px;padding:12px;border-radius:var(--radius-tile);font-size:13px;font-weight:700;border:1px solid var(--line)}
.pv-swatch b{font-size:15px}
.pv-type p{overflow-wrap:anywhere}
.s-ground{background:var(--ground);color:var(--text)}.s-surface{background:var(--surface);color:var(--text)}
.s-surface-brand{background:var(--surface-brand);color:var(--brand)}.s-raised{background:var(--raised);color:var(--text-muted)}
.s-action{background:var(--action);color:var(--on-action)}.s-brand-block{background:var(--brand-block);color:var(--on-brand-block)}
@media (min-width:900px){
 :root{--gutter:24px}
 body{padding-bottom:0}
 .t-bottom,.home-search,.home-all{display:none}
 .t-head{gap:24px;padding-top:20px}
 .t-head-search{display:block;flex:1 1 320px}
 .t-head-links{display:flex;align-items:center;gap:8px}
 .t-head-links a:not(.t-btn){display:flex;align-items:center;min-height:var(--touch);padding:0 14px;color:var(--text);font-weight:700;font-size:15px;text-decoration:none}
 .home{gap:32px;padding-bottom:40px}
 /* on a wide screen the price line comes first, then the categories (brief, desktop order) */
 .cat-row{order:2;margin:0}.home-picks{order:3}.trust{order:4}.home .pv-note{order:5}
 .cat-row ul{display:grid;grid-template-columns:repeat(auto-fill,minmax(232px,1fr));gap:16px;padding:0;overflow:visible}
 .cat{flex-direction:row;justify-content:flex-start;gap:16px;width:auto;min-height:80px;padding:0 24px;border-radius:var(--radius-block);background:var(--acc);color:var(--on-acc);font-size:17px;font-weight:800;text-align:left}
 .cat:hover{color:var(--on-acc)}
 .cat-icon{width:auto;height:auto;background:transparent;color:inherit}
 .priceline{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:40px;align-items:start}
 /* only the start page reorders its parts; on a category page the line stays where it is written, above the tiles */
 .home .priceline{order:1}
 /* a category page lays its sections out as columns (.pv section); its price line is still the two-column block */
 .pv section.priceline{display:grid;gap:40px}
 .pv section.priceline.pl-compact{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:32px;padding:18px 28px}
 .pl-compact .t-question{font-size:20px;line-height:24px}.pl-compact .t-budget{font-size:34px;line-height:38px}
 .pl-compact .pl-pins{display:block}
 .pl-compact .pl-card{padding:0;background:transparent}.pl-compact .pl-cta{margin-top:0}
 .pv{padding-top:32px}
 .pl-nojs{grid-column:1/-1}
 .pl-card{gap:6px;padding:24px;border-radius:var(--radius-block);background:var(--block-button);color:var(--on-block-button)}
 .pl-near-title{display:block;margin-bottom:6px;font-size:22px}
 .pl-near{display:block;min-height:192px}
 .pl-cta{margin-top:10px;background:var(--block-action);color:var(--on-block-action)}
 .pl-cta:hover{color:var(--on-block-action)}
 .t-pins rect{width:6px}
 .pl-labels text{font-size:13px}
 .section-more{display:flex;align-items:center;min-height:var(--touch);font-weight:700}
 .tile-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 20px}
 .tile-save{top:12px;right:12px}
 .tile .t-tileblock{min-height:170px}
 .tile-facts{padding:0 6px}
 .tile-facts .t-price{font-size:21px}
 .tile-facts .t-line{font-size:14px}
 .tile-gpu{font-size:17px;line-height:22px}
 .trust{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
 .trust p{font-size:15px;line-height:22px}
 h1{font-size:44px}h2{font-size:30px}
 .t-wordmark{font-size:28px}
 .pv-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:24px 20px}
 .pv-swatches{grid-template-columns:repeat(6,minmax(0,1fr))}
 .t-tileblock{height:170px;padding:18px;border-radius:var(--radius-block)}
 .t-tileblock .headline{font-size:28px;line-height:31px}
 .t-block{padding:40px;border-radius:36px}
 .t-budget{font-size:60px;line-height:66px}
 .t-question{font-size:44px;line-height:48px;letter-spacing:-.03em}
 .t-h-small{font-size:19px}
}
@media (prefers-reduced-motion:no-preference){.t-btn,.t-chip{transition:background-color .12s,color .12s}}

@media (min-width:900px){
 .search-filters{grid-template-columns:1.6fr 1.2fr 1fr 1fr auto}
 .search-filters .wide{grid-column:auto}
}

@media (min-width:900px){
 .listing-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 48px}
 .listing-hero,.listing-price{max-width:720px}
 .hero-block h1.headline{font-size:40px}
}

@media (min-width:900px){
 .v7-page .card-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 20px}
 .v7-page h1{font-size:44px}
}
