/* Shared stylesheet: tokens, base, page shell (header, tabs, page head, footer)
   and the controls every page uses. Loaded first; css/parts.css (drawings, shop
   mark, product row, offer strip, price) and css/<page>.css follow it.
   The values are the final ones of DESIGN.md "Tokens" (the prototype's
   "plainer surfaces" overrides are already folded in). Light theme only. */

:root {
  /* surfaces and lines */
  --bg: #FBFBFD;
  --surface: #FFFFFF;
  --surface-2: #EDF1F7;
  --line: #DEE4EE;
  --line-2: #C6CFDD;

  /* text */
  --ink: #0F1A2E;
  --ink-2: #475670;
  --ink-3: #5E6C85;

  /* cobalt marks what can be clicked */
  --accent: #1B50D8;
  --accent-2: #1541B3;
  --accent-soft: #E7EEFF;
  --on-accent: #FFFFFF;

  /* status: green is the lowest price and "fits", never a link */
  --good: #0A7A49;
  --good-soft: #E0F4EA;
  --warn: #A5500C;
  --warn-soft: #FDECD9;
  --bad: #B42318;
  --bad-soft: #FDE7E4;

  /* crest red: deals, drops and the logo only */
  --warm: #C8323A;
  --warm-soft: #FCEBEC;
  --crest: #D93A3F;
  --crest-on-deep: #FF6B70;

  /* bands */
  --tint: #EEF3FA;
  --tint-2: #E2EAF6;
  --deep: #10244A;
  --on-deep: #FFFFFF;
  --band-ink: #F2F6FF;
  --band-ink-2: #B7C5E6;
  --band-line: #2C4377;
  --band-good: #7BE0B0;

  /* part drawings and thumbnail backdrop */
  --ill-dark: #24334F;
  --ill-mid: #8EA2C1;
  --ill-light: #D6DFEC;
  --ill-pale: #F2F5FA;
  --ill-brass: #C3A25C;

  /* chart grid */
  --grid: #E6EAF1;

  /* one colour per shop, by its position in SHOPS (labels.js) */
  --s1: #2A78D6; --s2: #EB6834; --s3: #1BAF7A; --s4: #EDA100; --s5: #E87BA4;
  --s6: #008300; --s7: #6250D6; --s8: #E34948; --s9: #7D7D76; --s10: #A0652D;
  --s11: #0E8F9C; --s12: #8A9A1A; --s13: #A23BC9;

  /* type */
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  /* corners: buttons, selects and search 8px, inputs and chips 6px, menus 12px */
  --r-s: 6px;
  --r-m: 8px;
  --r-l: 10px;

  /* shadows are minimal; --shadow-md is for the two objects that may have one
     (the home comparison card and the buy box), --shadow-lg for floating layers */
  --shadow: 0 1px 2px rgb(15 26 46 / .04);
  --shadow-md: 0 1px 2px rgb(15 26 46 / .05), 0 12px 32px -12px rgb(15 26 46 / .16);
  --shadow-lg: 0 14px 44px rgb(15 26 46 / .18);

  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Display face for headings, letter-spacing -.02em to -.04em (type scale of DESIGN.md). */
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.05; letter-spacing: -.03em; }
h2 { font-size: 26px; line-height: 1.2; }
h3 { font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 8px 12px; border-radius: var(--r-m);
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-2);
}
.skip:focus { left: 8px; }
.num { font-variant-numeric: tabular-nums; }
.faint { color: var(--ink-3); }

.wrap {
  max-width: 1200px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
/* overflow-x: clip keeps the 100vmax of the bands from ever scrolling the page;
   unlike hidden it leaves position: sticky alone. */
main { display: block; padding-bottom: 72px; min-height: 60vh; overflow-x: clip; }
main:focus { outline: none; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand search nav";
  align-items: center; gap: 28px; min-height: 72px;
}
.top-in.no-search { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand nav"; }
.brand {
  grid-area: brand; display: flex; align-items: center; gap: 10px; width: fit-content; color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand span { white-space: nowrap; }
.logo { display: block; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 5px; }
.brand-name { font: 700 26px/1 "Outfit", var(--font-display); letter-spacing: -.02em; }
.brand-tld { color: var(--crest); }
.brand-slogan { font: 500 12px/1.2 var(--font-body); color: var(--ink-2); }

.nav { grid-area: nav; justify-self: end; display: flex; gap: 6px; }
.nav a {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: var(--r-m);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; transition: background .15s;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--tint-2); }
.nav a[aria-current="page"] .ico { color: var(--accent); }
.badge {
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font: 700 12px/22px var(--font-body); font-variant-numeric: tabular-nums; text-align: center;
}
/* An icon's place is kept while js/art.js loads, so the bar does not shift. */
.ico-slot { display: inline-block; flex: none; }

/* ---------- search ---------- */
.search { position: relative; }
.top .search { grid-area: search; width: 100%; max-width: 640px; justify-self: center; }
.search-field {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 14px;
  background: var(--tint); border: 1px solid transparent; border-radius: var(--r-m); color: var(--ink-3);
  transition: border-color .15s, background .15s;
}
.search-field:focus-within { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--accent); }
.search .search-field input {
  flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: none; outline: none; color: var(--ink);
  font: 400 15px/1 var(--font-body);
}
.search input::placeholder { color: var(--ink-3); opacity: 1; }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd {
  padding: 4px 7px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--surface);
  font: 600 12px/1 var(--font-mono); color: var(--ink-3);
}
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; padding: 6px; overflow: auto;
  max-height: min(75vh, 520px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  box-shadow: var(--shadow-lg);
}
.sug {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 8px 10px; border-radius: var(--r-s); color: var(--ink); text-decoration: none;
}
.sug:hover, .sug[aria-selected="true"] { background: var(--accent-soft); color: var(--ink); }
.sug-text { min-width: 0; }
.sug .thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sug-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: 14px; }
.sug-meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--ink-3); }
.sug-price { font-weight: 700; font-size: 14px; white-space: nowrap; }
.sug-empty { padding: 16px 12px; font-size: 14px; color: var(--ink-2); }
.sug-all {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; padding: 12px;
  border-top: 1px solid var(--line); border-radius: 0 0 var(--r-s) var(--r-s);
  font-weight: 600; font-size: 14px; text-decoration: none; color: var(--accent);
}
.sug-all:hover { background: var(--accent-soft); color: var(--accent); }

/* ---------- category tabs ---------- */
.tabs-bar { background: var(--tint); }
.tabs { position: relative; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  position: relative; display: inline-flex; align-items: center; gap: 7px; flex: none; height: 48px; padding: 0 10px;
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 14px; white-space: nowrap;
}
.tabs a .ico { color: var(--ink-3); }
.tabs a:hover { color: var(--ink); }
/* The bar clips its children, so the focus ring is drawn inside them. */
.tabs a:focus-visible { outline-offset: -2px; }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.tabs a[aria-current="page"] .ico { color: var(--accent); }
.tabs a[aria-current="page"]::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent);
}

/* ---------- breadcrumbs and page head ---------- */
/* Both sit on a full-bleed tint band: border-image paints 100vmax to each side,
   so the content keeps the .wrap gutters. Crumbs followed by a head share one band. */
.crumbs, .page-head { border-image: linear-gradient(var(--tint), var(--tint)) fill 0 / / 0 100vmax; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 20px 0 12px; font-size: 13.5px; color: var(--ink-3); }
.crumbs:not(:has(+ .page-head)) { padding-bottom: 18px; margin-bottom: 28px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); }
.crumbs .sep { opacity: .6; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; padding: 4px 0 34px; margin-bottom: 32px; }
.page-head p { margin-top: 10px; max-width: 46em; font-size: 16px; color: var(--ink-2); }

/* ---------- bands ---------- */
/* Full-width sections; put a .wrap inside so the content keeps the gutters. */
.band { position: relative; }
.band-tint { background: var(--tint); }
.band-plain { background: var(--surface); }
.band-deep { background: var(--deep); color: var(--on-deep); }
.band-deep :focus-visible { outline-color: var(--on-deep); }

/* ---------- sections ---------- */
.section { padding-top: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head p { font-size: 14px; color: var(--ink-2); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; text-decoration: none; }
/* A box is for an object that is a unit of its own (DESIGN.md "When to use a box"). */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }

/* The compatibility filter banner (category list and configurator): a section on
   --accent-soft, --surface-2 when the filter is off; the rules are plain text. */
.compat {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; padding: 14px 18px;
  border-radius: var(--r-l); background: var(--accent-soft);
}
.compat.off { background: var(--surface-2); }
.compat-ico { flex: none; display: inline-flex; color: var(--accent); }
.compat.off .compat-ico { color: var(--ink-3); }
.compat-text { flex: 1 1 260px; min-width: 0; font-size: 14px; color: var(--ink-2); }
.compat-title, .compat-text > b { display: block; margin-bottom: 2px; font-size: 15px; font-weight: 650; color: var(--ink); }
.compat-rules { margin-top: 6px; font: 600 13.5px/1.4 var(--font-body); color: var(--ink); overflow-wrap: anywhere; }

/* ---------- buttons, chips, switch ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: var(--r-m); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font: 600 14px/1 var(--font-body); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: var(--r-s); }
.btn.on { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.btn.on:hover:not(:disabled) { border-color: var(--accent); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); border-color: transparent; color: var(--ink); }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: var(--r-s);
  background: transparent; color: var(--ink-3); cursor: pointer; transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--bad-soft); color: var(--bad); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: var(--r-s);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  font: 500 13px/1 var(--font-body); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
/* <button class="switch" role="switch" aria-checked="true"><span class="switch-track"></span>Uključen</button> */
.switch { display: inline-flex; align-items: center; gap: 10px; flex: none; padding: 6px 0; border: 0; background: none; cursor: pointer; font: 600 13.5px/1 var(--font-body); color: var(--ink); }
.switch-track { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); transition: background .15s; }
.switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface);
  box-shadow: 0 1px 3px rgb(15 26 46 / .3); transition: transform .15s;
}
.switch[aria-checked="true"] .switch-track { background: var(--accent); }
.switch[aria-checked="true"] .switch-track::after { transform: translateX(18px); }
/* − count + for parts that can be taken more than once */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-s); overflow: hidden; }
.qty button { width: 30px; height: 32px; border: 0; background: var(--surface); color: var(--ink-2); font-size: 16px; cursor: pointer; }
.qty button:hover { background: var(--surface-2); color: var(--ink); }
.qty output { min-width: 28px; text-align: center; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }

/* ---------- forms ---------- */
label { font-size: 14px; }
input:not([type]), input[type="text"], input[type="search"], input[type="number"], input[type="email"], input[type="url"], textarea, select {
  height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--surface); color: var(--ink);
  font: 500 15px/1.3 var(--font-body);
}
input[type="number"] { font-variant-numeric: tabular-nums; }
textarea { height: auto; min-height: 80px; padding: 10px 12px; }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 1; }
input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: var(--accent); }
/* The arrow is a data URI, which cannot read a token: its colour is --ink-3. */
select {
  padding-right: 36px; border-radius: var(--r-m); cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%235E6C85' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
input:disabled, select:disabled, textarea:disabled { opacity: .5; cursor: default; }

/* ---------- tables ---------- */
/* A table is a box; wrap it in .table-wrap so a wide one scrolls inside it. */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table caption { padding: 12px 16px; text-align: left; font-weight: 600; color: var(--ink-2); }
.table th, .table td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.table thead th { border-top: 0; background: var(--surface-2); font: 600 13px/1.3 var(--font-body); color: var(--ink-2); }
.table th.num, .table td.num { text-align: right; }

/* ---------- notices and states ---------- */
/* Left aligned, like every note; a notice is a plain panel, never a rail or a pill. */
.notice { padding: 16px 18px; border-radius: var(--r-m); background: var(--surface-2); color: var(--ink-2); }
.notice h2 { margin-bottom: 8px; font-size: 22px; color: var(--ink); }
.notice strong { color: var(--ink); }
.notice.card { padding: 22px 24px; background: var(--surface); }
.notice-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.notice-error { background: var(--bad-soft); }
.notice-error strong { color: var(--bad); }
.loading { padding: 56px 0; color: var(--ink-2); }
.empty { padding: 28px 0; color: var(--ink-2); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  max-width: calc(100% - 32px); padding: 13px 18px; border-radius: var(--r-l);
  background: var(--deep); color: var(--on-deep); font-size: 14px; box-shadow: var(--shadow-lg);
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.foot { background: var(--deep); color: var(--band-ink-2); font-size: 13.5px; }
.foot a { color: var(--band-ink); }
.foot :focus-visible { outline-color: var(--on-deep); }
.foot-in {
  display: grid; grid-template-columns: minmax(0, 1.5fr); grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column;
  gap: 32px 48px; padding-block: 56px 40px;
}
.foot .brand { color: var(--on-deep); margin-bottom: 16px; }
.foot .brand-tld { color: var(--crest-on-deep); }
.foot .brand-slogan { color: var(--band-ink-2); }
.foot-about p { max-width: 30em; line-height: 1.6; }
.foot-about p { margin-top: 8px; }
.foot-about p:empty { display: none; }
.foot h2 { margin-bottom: 14px; font-size: 16px; line-height: 1.2; letter-spacing: -.01em; color: var(--on-deep); }
.foot li { margin: 8px 0; }
.foot li a { text-decoration: none; }
.foot li a:hover { color: var(--on-deep); text-decoration: underline; }
.foot-credits { display: grid; gap: 8px; padding-block: 22px max(40px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--band-line); font-size: 13px; line-height: 1.55; }
.foot-credits p { max-width: 70em; }
.foot-credits a:hover { color: var(--on-deep); }

/* ---------- report dialog (js/report.js) ---------- */
/* A button that reads as a link, inside a sentence ("Prijavite grešku"). */
.link-btn {
  display: inline; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--accent-2); }
.foot .link-btn { color: var(--band-ink); }
.foot .link-btn:hover { color: var(--on-deep); }
/* A form is a box: white, 10px corners, the floating-layer shadow over a dimmed page. */
.report {
  width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: auto;
  border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
.report::backdrop { background: rgb(15 26 46 / .45); }
.report-in { padding: 22px 24px 24px; }
.report-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.report-head h2 { font-size: 24px; }
.report-about { margin-top: 6px; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.report-close { flex: none; margin: -4px -8px 0 0; color: var(--ink-2); }
.report-close:hover { background: var(--surface-2); color: var(--ink); }
.report-form { display: grid; gap: 18px; }
.report fieldset { display: grid; margin: 0; padding: 0; border: 0; min-width: 0; }
.report legend, .report-field > label { display: block; margin-bottom: 6px; padding: 0; font-weight: 600; font-size: 14px; }
.report-kind { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14.5px; cursor: pointer; }
.report-kind input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.report-field { display: grid; min-width: 0; }
.report-field select, .report-field textarea, .report-field input { width: 100%; min-width: 0; }
.report-field .report-note { margin-top: 6px; }
.report-opt { font-weight: 400; color: var(--ink-3); }
.report-note { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.report-check:empty { display: none; }
.report-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.report .loading { padding: 24px 0; }

/* ---------- breakpoints ---------- */
@media (max-width: 720px) {
  .top-in { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand nav" "search search"; gap: 10px 12px; min-height: 0; padding-block: 12px; }
  .top-in.no-search { grid-template-areas: "brand nav"; }
  .top .search { max-width: none; }
  .search kbd { display: none; }
  /* 16px stops iOS zooming into a focused field */
  input:not([type]), input[type="text"], input[type="search"], input[type="number"], input[type="email"], input[type="url"], textarea, select,
  .search .search-field input { font-size: 16px; }
  .nav { gap: 2px; }
  .nav a { height: 38px; padding: 0 10px; }
  h2 { font-size: 22px; }
  .section { padding-top: 44px; }
  .page-head { padding-bottom: 26px; margin-bottom: 24px; }
  .page-head p { font-size: 15px; }
  .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; padding-top: 44px; }
  .foot-about { grid-column: 1 / -1; }
  .report-in { padding: 18px 16px 20px; }
}
/* Below 1020px the second link would squeeze the search to nothing (and push
   into the logo on a phone): like Gotove konfiguracije and Akcije in DESIGN.md,
   "Moje konfiguracije" then leaves the header and stays in the footer's Alati. */
@media (max-width: 1020px) {
  .nav a[href="/moje-konfiguracije"] { display: none; }
}
@media (max-width: 480px) {
  .nav .ico, .nav .ico-slot { display: none; }
  .top .brand-slogan { display: none; }
}
@media (min-width: 721px) {
  .top { min-height: 73px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- pages for readers without JavaScript ---------- */
/* The prerender (collector/prerender.mjs) writes a plain version of the
   product and category pages for search engines and AI agents; html.js (a line
   in the page's head) hides it while the page's module draws its own. */
.js .ssr { display: none; }
.ssr-top { display: flex; align-items: center; gap: 24px; min-height: 64px; font-weight: 650; }
.ssr-page { padding-bottom: 48px; }
.ssr-page > * + * { margin-top: 14px; }
.ssr-page h2 { margin-top: 36px; font-size: 22px; }
.ssr-page h3 { margin-top: 20px; font-size: 16px; }
.ssr-page img { max-width: 100%; height: auto; }
.ssr-lead { color: var(--ink-2); }
.ssr-specs div { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 4px 16px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.ssr-specs dt { color: var(--ink-2); }
.ssr-specs dd { margin: 0; }
.foot .ssr { padding-block: 40px; }
.foot .ssr > * + * { margin-top: 12px; }
.foot .ssr ul { display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* ---------- guides ---------- */
/* Under a category's list (and on the home and build pages): how to choose
   the part, and on the graphics card pages the chips with their prices. The
   text is for people and search engines alike. */
.guide { margin: 64px 0 72px; padding-top: 44px; border-top: 1px solid var(--line); }
.guide h2 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.025em; }
.guide h2:not(:first-child) { margin-top: 52px; }
.guide h2 + p { max-width: 46em; margin-top: 8px; font-size: 15.5px; color: var(--ink-2); }
.guide > h3 { margin-top: 28px; font-size: 17px; }
.guide-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; margin-top: 18px; }
.guide-chips li { display: grid; gap: 2px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.guide-chips a { font-weight: 650; text-decoration: none; }
.guide-chips a:hover { text-decoration: underline; }
.guide-chips span { font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 28px 44px; margin-top: 22px; }
.guide-grid h3 { margin-bottom: 8px; font-size: 17px; }
.guide-grid p, .guide-text p { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.guide-text { max-width: 760px; margin-top: 16px; }
.guide-text > * + * { margin-top: 12px; }
@media (max-width: 640px) {
  .guide { margin: 48px 0 56px; padding-top: 32px; }
  .ssr-specs div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
.ssr-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; }
