/* Trochos design system ("Πλέγμα"): black bar, red accent, pill shapes, Inter Tight for numbers and titles. */
:root {
  --bg: #FFFFFF;
  --surf: #FFFFFF;
  --ink: #0A0A0A;
  --muted: #5A5852;
  --hair: #E2E1DC;
  --acc: #E4300F;
  --onacc: #FFFFFF;
  --ph: #EFEEEA;
  --card: #EFEEEA;
  --fieldbg: #F4F3EF;
  --blk: #0A0A0A;
  --onblk: #F4F3EF;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --text: "Inter", system-ui, sans-serif;
  --pad: 40px;
  /* Shapes: buttons, fields and chips are pills; boxes, cards and photos get --round. See "Shapes" at the end. */
  --pill: 999px;
  --round: 24px;
  --round-sm: 14px;
  --good: #1F6B35;
  --good-bg: #E3F1E6;
  --bad: #B42318;
  --bad-bg: #FBE6E2;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.45 var(--text); min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; border-radius: 0; }
#app { flex: 1; display: flex; flex-direction: column; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }

/* ---------- Type helpers ---------- */
.label { font: 600 11px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -.04em; }
/* Very tight tracking on big titles swallows spaces; give words their room back */
h1, h2, .vtitle, .buy .p, .row-price, .card-price { word-spacing: .12em; }
.muted { color: var(--muted); }
.tabular { font-variant-numeric: tabular-nums; }
.link { font: 600 14px/1 var(--text); color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; }
.link-acc { color: var(--acc); font: 500 14px/1 var(--text); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.drop { font: 700 14px/1.4 var(--text); color: var(--acc); display: flex; gap: 6px; align-items: center; margin-top: 6px; white-space: nowrap; }
.drop s { color: var(--muted); font-weight: 400; }
.badge { display: inline-block; font: 700 10px/1 var(--text); letter-spacing: .12em; border: 1px solid var(--ink); padding: 3px 5px; text-transform: uppercase; }
/* Logo: two masks (letters + orange "o"), 5300×724. Rules from the design: 26px high in the header,
   20px on phones, only black/white with the orange, space around it at least the height of the "O". */
.logo { position: relative; display: block; height: 26px; aspect-ratio: 5300 / 724; color: var(--ink); --logo-o: var(--acc); }
.logo i { position: absolute; inset: 0; display: block; }
.logo-letters { background: currentColor; -webkit-mask: url(/img/logo-letters.svg) center / contain no-repeat; mask: url(/img/logo-letters.svg) center / contain no-repeat; }
.logo-o { background: var(--logo-o); -webkit-mask: url(/img/logo-o.svg) center / contain no-repeat; mask: url(/img/logo-o.svg) center / contain no-repeat; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none; background: var(--acc); color: var(--onacc); font: 700 14px/1 var(--text); padding: 12px 18px; }
.btn-big { height: 56px; padding: 0 32px; font: 800 17px/1 var(--display); }
.btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn:disabled { background: var(--hair); color: var(--muted); cursor: not-allowed; }

/* ---------- Header and footer ---------- */
.topbar { background: var(--blk); color: var(--onblk); height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad) 0 24px; position: relative; z-index: 20; }
.topbar .left { display: flex; align-items: center; gap: 52px; height: 100%; }
.brand { display: flex; align-items: center; text-decoration: none; padding: 8px 0; }
/* On the black bar: light letters and the brighter orange made for dark backgrounds */
.topbar .logo { color: var(--onblk); --logo-o: #FF5A36; }
.mainnav { display: flex; gap: 28px; align-self: stretch; }
.mainnav a { font: 600 14px/64px var(--text); color: var(--onblk); text-decoration: none; height: 64px; border-bottom: 3px solid transparent; }
.mainnav a.active { border-bottom-color: var(--acc); }
.topbar .right { display: flex; align-items: center; gap: 24px; }
.topbar .right a.plain, .topbar .right button.plain { font: 600 14px/1 var(--text); color: var(--onblk); text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; }
.menu-btn { display: none; background: none; border: 0; color: var(--onblk); cursor: pointer; font: 600 14px/1 var(--text); align-items: center; gap: 8px; }
.drawer { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 50; display: none; }
.drawer.open { display: block; }
.drawer nav { position: absolute; right: 0; top: 0; bottom: 0; width: min(86vw, 340px); background: var(--blk); color: var(--onblk); padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.drawer nav a, .drawer nav button { color: var(--onblk); text-decoration: none; font: 700 22px/1 var(--display); padding: 14px 0; border: 0; border-bottom: 1px solid #2E2D2A; background: none; text-align: left; cursor: pointer; }
.footer { margin-top: auto; background: var(--blk); color: var(--onblk); padding: 32px var(--pad); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 400 14px/1.4 var(--text); }
.footer nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer a { color: var(--onblk); }
.tabbar { display: none; }

/* ---------- Home: hero and the smart search box ---------- */
.hero { background: var(--blk); color: var(--onblk); padding: 56px var(--pad) 64px; position: relative; }
.hero.photo::before { content: ""; position: absolute; inset: 0; background: var(--hero-img) center 60% / cover; opacity: .5; }
.hero > * { position: relative; }
.hero h1 { margin: 0 0 32px; text-align: center; font: 800 64px/1 var(--display); letter-spacing: -.04em; }
.sbox { max-width: 1040px; margin: 0 auto; background: var(--surf); color: var(--ink); border-top: 4px solid var(--acc); }
.sbox-field { margin: 20px 20px 0; display: flex; align-items: center; gap: 14px; height: 68px; padding: 0 12px 0 20px; background: var(--fieldbg); border: 2px solid var(--ink); }
.sbox-field input { flex: 1; min-width: 0; border: 0; background: transparent; font: 600 22px/1.2 var(--display); padding: 0; outline: 0; }
.sbox-field .thinking { font: 500 13px/1 var(--text); color: var(--muted); white-space: nowrap; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; cursor: pointer; color: var(--ink); padding: 0; flex: none; }
.icon-btn.listening { color: var(--acc); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.cells { position: relative; margin: 16px 20px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--ink); }
.cell { position: relative; padding: 16px 20px; min-width: 0; }
.cell + .cell { border-left: 1px solid var(--ink); }
.cell-btn { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; margin-top: 8px; padding: 0; border: 0; background: transparent; font: 600 20px/1.2 var(--display); text-align: left; cursor: pointer; }
.cell-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell .x { position: absolute; top: 2px; right: 2px; }
.cell.open::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--acc); }
.cell.filled .cell-btn { color: var(--ink); }
.sbox-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px 20px; }
.chips { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--ink); padding: 0 2px 0 10px; height: 36px; font: 600 14px/1 var(--text); background: var(--surf); }
.chip button { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; cursor: pointer; padding: 0; }
.cta { flex: none; background: var(--acc); color: var(--onacc); text-decoration: none; height: 64px; padding: 0 32px; display: flex; align-items: center; gap: 14px; font: 800 20px/1 var(--display); border: 0; cursor: pointer; }

/* Dropdown list (make, model, price, place) */
.listbox { position: absolute; z-index: 30; top: calc(100% + 4px); left: -1px; width: 340px; max-height: 440px; overflow: auto; background: var(--surf); color: var(--ink); border: 1px solid var(--ink); box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.listbox .find { display: flex; align-items: center; gap: 10px; margin: 12px; padding: 0 12px; height: 48px; border: 2px solid var(--ink); }
.listbox .find input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 600 17px/1 var(--text); padding: 0; }
.listbox .group { padding: 14px 16px 8px; }
.opt { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 44px; padding: 0 16px; border: 0; border-top: 1px solid var(--hair); background: transparent; font: 500 16px/1 var(--text); text-align: left; cursor: pointer; }
.opt:hover, .opt:focus-visible { background: var(--fieldbg); outline: 0; }
.opt .on { color: var(--acc); display: inline-flex; margin-left: 8px; }
.opt .n { color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 56px var(--pad) 48px; }
.section-mark { width: 32px; height: 4px; background: var(--acc); margin-bottom: 14px; }
.section h2 { margin: 0 0 24px; font: 800 36px/1 var(--display); letter-spacing: -.03em; }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; justify-content: flex-end; height: 250px; background: var(--card); text-decoration: none; position: relative; overflow: hidden; }
.tile svg { position: absolute; left: 18px; top: 30px; width: calc(100% - 36px); max-width: 330px; }
.tile .t { position: relative; padding: 0 18px 4px; font: 700 18px/1.2 var(--display); letter-spacing: -.01em; }
.tile .n { position: relative; padding: 0 18px 18px; font: 500 13px/1.2 var(--text); color: var(--muted); }
.tile:hover .t { text-decoration: underline; }
.head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 14px; }
.head-row h2 { margin: 0; font: 800 28px/1 var(--display); letter-spacing: -.02em; }

/* ---------- Listing rows (home + results) ---------- */
.rows-head, .row { display: grid; grid-template-columns: 170px minmax(0, 2.4fr) .8fr .6fr .9fr 1.4fr 1.3fr; gap: 22px; align-items: center; }
.rows-head { padding: 14px 0; border-bottom: 1px solid var(--ink); }
.rows-head.strong { border-top: 2px solid var(--ink); }
.rows-head .r { text-align: right; }
.row { padding: 16px 0; border-bottom: 1px solid var(--hair); text-decoration: none; color: var(--ink); }
.row:hover .row-title { text-decoration: underline; }
.thumb { height: 110px; background: var(--ph); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 88%; }
.row-title { font: 800 22px/1.15 var(--display); letter-spacing: -.02em; }
.row-sub { font: 400 14px/1.4 var(--text); color: var(--muted); }
.reason { font: 500 14px/1.4 var(--text); margin-top: 6px; color: var(--ink); }
.reason::before { content: "AI · "; color: var(--acc); font-weight: 700; }
.big-num { font: 800 24px/1 var(--display); font-variant-numeric: tabular-nums; }
.mid-num { font: 600 22px/1 var(--display); }
.row-price { font: 800 32px/1 var(--display); letter-spacing: -.03em; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-place { font: 500 15px/1.4 var(--text); }
.row-place .sub { color: var(--muted); font-size: 14px; }

/* Card (mobile lists, similar cars, preview) */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.card { text-decoration: none; color: var(--ink); display: block; min-width: 0; }
.card .thumb { height: 210px; }
.card-price { font: 800 28px/1 var(--display); letter-spacing: -.03em; margin-top: 14px; font-variant-numeric: tabular-nums; }
.card-title { font: 700 17px/1.2 var(--display); margin-top: 6px; }
.card-title span { font-weight: 400; color: var(--muted); }
.card-meta { font: 400 14px/1.4 var(--text); margin-top: 3px; }
.card-place { font: 400 13px/1.4 var(--text); color: var(--muted); }

/* ---------- Results page ---------- */
.qbar { padding: 20px var(--pad); border-bottom: 1px solid var(--hair); display: flex; gap: 12px; background: var(--bg); }
.qbar .q { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 24px; border: 2px solid var(--ink); background: var(--surf); }
.qbar input { flex: 1; min-width: 0; border: 0; background: transparent; font: 600 20px/1.2 var(--display); padding: 0; outline: 0; }
.qbar .go { flex: none; height: 60px; padding: 0 32px; font: 800 18px/1 var(--display); }
.results { display: flex; flex: 1; min-width: 0; }
.filters { width: 312px; flex: none; padding: 28px 28px 48px var(--pad); border-right: 1px solid var(--hair); }
.filters-head { display: flex; justify-content: space-between; align-items: baseline; }
.filters-head h2 { margin: 0; font: 800 22px/1.1 var(--display); letter-spacing: -.02em; }
.understood { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.u-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--hair); }
.u-row:first-child { border-top: 0; }
.u-row .v { font: 600 17px/1.2 var(--display); margin-top: 5px; }
.fgroup { border-top: 1px solid var(--hair); padding: 18px 0 16px; }
.fgroup-body { margin-top: 12px; }
.check { display: flex; align-items: center; gap: 12px; padding: 7px 0; font: 500 15px/1.2 var(--text); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { width: 18px; height: 18px; border: 2px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.check .box svg, .feat .box svg { visibility: hidden; }
.check input:checked + .box svg, .feat input:checked + .box svg { visibility: visible; }
.check input:checked + .box { background: var(--ink); color: var(--bg); }
.check input:focus-visible + .box { outline: 3px solid var(--acc); outline-offset: 2px; }
.check .t { flex: 1; }
.check .n { font: 400 13px/1 var(--text); color: var(--muted); font-variant-numeric: tabular-nums; }
.check.zero { color: var(--muted); }
.range { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); }
.range label { padding: 10px 12px; display: block; }
.range label + label { border-left: 2px solid var(--ink); }
.range input { display: block; width: 100%; border: 0; background: transparent; padding: 0; margin-top: 6px; font: 600 18px/1 var(--display); outline: 0; }
.field-find { display: block; width: 100%; border: 2px solid var(--ink); padding: 10px 12px; margin-bottom: 10px; background: var(--surf); font: 400 15px/1 var(--text); }
.results-main { flex: 1; min-width: 0; padding: 28px var(--pad) 56px 36px; }
.results-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.results-top h1 { margin: 0; font: 800 64px/.95 var(--display); letter-spacing: -.045em; }
.sortbar { display: flex; gap: 8px 24px; align-items: baseline; margin-top: 22px; flex-wrap: wrap; }
.sortbar button { background: none; border: 0; padding: 0 0 3px; cursor: pointer; font: 500 15px/1 var(--text); color: var(--muted); border-bottom: 2px solid transparent; }
.sortbar button.on { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.notice { margin-top: 20px; background: var(--blk); color: var(--onblk); padding: 14px 20px; font: 500 15px/1.4 var(--text); }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; gap: 16px; flex-wrap: wrap; }
.pages { display: flex; gap: 6px; }
.pages button, .pages span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; font: 700 15px/1 var(--text); border: 1px solid var(--ink); background: transparent; cursor: pointer; padding: 0 8px; }
.pages .on { background: var(--ink); color: var(--bg); }
.mobile-only { display: none !important; }
.empty { padding: 56px 0; text-align: center; }
.empty h2 { font: 800 30px/1.1 var(--display); letter-spacing: -.03em; margin: 0 0 10px; }
.loading { opacity: .45; transition: opacity .15s; }

/* ---------- Vehicle page ---------- */
.crumbs { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px var(--pad); border-bottom: 1px solid var(--hair); font: 500 14px/1.3 var(--text); }
.crumbs a { display: inline-flex; gap: 8px; align-items: center; }
.stage { background: var(--ph); height: 600px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.stage img { width: 100%; height: 100%; object-fit: contain; background: #1A1A19; }
.stage svg { width: min(70%, 900px); }
.stage.no-photo { height: 420px; }
.thumbs-row { padding: 16px var(--pad) 0; display: flex; gap: 6px; overflow-x: auto; }
.thumbs-row button { flex: 1 0 110px; height: 96px; background: var(--ph); padding: 0; border: 0; cursor: pointer; overflow: hidden; }
.thumbs-row button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs-row button.on { outline: 3px solid var(--acc); outline-offset: -3px; }
.photo-cap { padding: 12px var(--pad) 0; font: 500 14px/1.3 var(--text); color: var(--muted); }
.vgrid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 80px; padding: 56px var(--pad) 24px; align-items: start; }
.vtitle { margin: 0; font: 800 80px/.95 var(--display); letter-spacing: -.05em; }
.vsub { font: 500 26px/1.3 var(--display); letter-spacing: -.01em; margin-top: 10px; color: var(--muted); }
.stats { display: flex; margin-top: 40px; padding: 28px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); overflow-x: auto; }
.stats > div { padding: 0 24px; }
.stats > div:first-child { padding-left: 0; }
.stats > div + div { border-left: 1px solid var(--ink); }
.stats .v { font: 800 34px/1 var(--display); letter-spacing: -.03em; margin-top: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vsec { margin: 64px 0 16px; font: 800 34px/1 var(--display); letter-spacing: -.03em; }
.specs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; border-bottom: 1px solid var(--hair); }
.spec { display: grid; grid-template-columns: 170px 1fr; padding: 13px 0; border-top: 1px solid var(--hair); font: 400 16px/1.3 var(--text); }
.spec span:first-child { color: var(--muted); }
.spec span:last-child { font-weight: 600; }
.equip { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 40px; border-bottom: 1px solid var(--hair); }
.equip div { display: flex; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--hair); font: 500 15px/1.3 var(--text); }
.equip svg { color: var(--acc); flex: none; }
.vdesc { margin: 0; font: 400 18px/1.65 var(--text); max-width: 720px; white-space: pre-line; }
.chart { max-width: 720px; }
.chart svg { width: 100%; height: 140px; display: block; }
.chart-legend { display: flex; justify-content: space-between; font: 500 14px/1.4 var(--text); margin-top: 8px; gap: 12px; }
.buy { position: sticky; top: 24px; border-top: 4px solid var(--acc); padding-top: 24px; }
.buy .p { font: 800 64px/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.buy-actions { display: grid; gap: 10px; margin-top: 28px; }
.buy-actions .btn { justify-content: space-between; padding: 20px 24px; font: 800 20px/1 var(--display); }
.buy-actions .btn small { font: 500 14px/1 var(--text); }
.buy-links { display: grid; grid-template-columns: 1fr 1fr; margin-top: 14px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.buy-links button, .buy-links a { padding: 14px 0; font: 600 14px/1 var(--text); text-align: center; text-decoration: none; background: none; border: 0; cursor: pointer; }
.buy-links > * + * { border-left: 1px solid var(--ink); }
.seller-name { font: 800 24px/1.2 var(--display); letter-spacing: -.02em; margin-top: 12px; }
.fine { margin-top: 32px; border-top: 1px solid var(--hair); padding-top: 16px; font: 400 13px/1.6 var(--text); color: var(--muted); }
.callbar { display: none; }

/* ---------- Post a listing ---------- */
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--pad); }
.page-head { padding: 40px 0 32px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font: 800 64px/1 var(--display); letter-spacing: -.045em; }
.page-head p { margin: 14px 0 0; font: 400 18px/1.5 var(--text); color: var(--muted); }
.post { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-bottom: 80px; }
.post main { flex: 999 1 640px; min-width: 0; }
.post aside { flex: 1 1 360px; max-width: 400px; min-width: 0; }
.post aside .sticky { position: sticky; top: 24px; }
.step { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 24px; border-top: 2px solid var(--ink); padding: 28px 0 44px; scroll-margin-top: 16px; }
.step-n { font: 800 28px/1 var(--display); letter-spacing: -.03em; color: var(--muted); font-variant-numeric: tabular-nums; }
.step h2 { margin: 0; font: 800 30px/1.05 var(--display); letter-spacing: -.035em; }
.step-body { margin-top: 22px; }
.fl { display: block; font: 600 14px/1.3 var(--text); margin-bottom: 8px; }
.input { display: flex; align-items: center; height: 52px; border: 1px solid var(--ink); background: var(--surf); width: 100%; }
.input input, .input select { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 16px; font: 500 16px/1 var(--text); }
.input .unit { font: 500 16px/1 var(--text); color: var(--muted); padding-right: 16px; }
.input.bad { border: 2px solid var(--acc); }
textarea.input { height: auto; min-height: 140px; padding: 14px 16px; font: 400 16px/1.5 var(--text); resize: vertical; outline: 0; display: block; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.radios { display: flex; gap: 8px 28px; flex-wrap: wrap; }
.radio { display: flex; gap: 10px; align-items: center; min-height: 44px; font: 500 15px/1.3 var(--text); cursor: pointer; }
.radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio .dot { width: 20px; height: 20px; border: 2px solid var(--ink); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.radio input:checked + .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.radio input:focus-visible + .dot { outline: 3px solid var(--acc); outline-offset: 2px; }
.warn { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; color: var(--acc); font: 600 14px/1.45 var(--text); }
.warn .sq { flex: none; width: 20px; height: 20px; background: var(--acc); color: var(--onacc); display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.warn .acts { display: flex; gap: 24px; margin-top: 10px; flex-wrap: wrap; }
.warn .acts button, .warn .acts a { color: var(--ink); }
.hint { margin-top: 8px; font: 400 14px/1.45 var(--text); color: var(--muted); }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.feat { display: flex; align-items: center; gap: 10px; border: 1px solid var(--hair); background: var(--surf); padding: 12px 14px; cursor: pointer; font: 500 15px/1.3 var(--text); min-height: 52px; }
.feat input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.feat .box { width: 18px; height: 18px; border: 2px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.feat:has(input:checked) { border: 2px solid var(--ink); padding: 11px 13px; }
.feat input:checked + .box { background: var(--ink); color: var(--bg); }
.feat input:focus-visible + .box { outline: 3px solid var(--acc); outline-offset: 2px; }
.upload { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 2px dashed var(--ink); padding: 20px; background: var(--surf); cursor: pointer; font: 700 17px/1.2 var(--display); }
.upload input { display: none; }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.slot { position: relative; }
.slot .img { aspect-ratio: 4 / 3; background: var(--ph); display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--hair); }
.slot .img img { width: 100%; height: 100%; object-fit: cover; }
.slot .img.empty-slot { background: var(--surf); border-style: dashed; color: var(--muted); flex-direction: column; gap: 4px; font: 500 13px/1 var(--text); }
.slot .cap { font: 500 13px/1.3 var(--text); margin-top: 6px; display: flex; gap: 6px; align-items: baseline; }
.slot .cap b { font: 800 13px/1 var(--display); }
.slot .main-tag { position: absolute; left: 6px; top: 6px; background: var(--ink); color: var(--bg); font: 700 11px/1 var(--text); padding: 4px 6px; }
.slot .rm { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; background: var(--surf); border: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.preview { background: var(--surf); border: 1px solid var(--hair); }
.preview .thumb { height: 210px; }
.preview-body { padding: 16px 18px 18px; }
.checks { margin-top: 32px; border-top: 2px solid var(--ink); padding-top: 16px; }
.checks-head { display: flex; justify-content: space-between; align-items: baseline; }
.checks-head h2 { margin: 0; font: 800 24px/1 var(--display); letter-spacing: -.03em; }
.check-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--hair); text-decoration: none; font: 700 14px/1.3 var(--text); color: var(--acc); }
.check-item.ok { color: var(--ink); font-weight: 500; }
.check-item .sq { flex: none; width: 20px; height: 20px; background: var(--acc); color: var(--onacc); display: inline-flex; align-items: center; justify-content: center; }
.check-item.ok .sq { background: var(--ink); color: var(--bg); }
.check-item .t { flex: 1; }
.check-item .s { color: var(--muted); font-weight: 500; }
.more { margin-top: 20px; }
.more summary { cursor: pointer; font: 600 14px/1 var(--text); border-bottom: 1px solid var(--ink); padding-bottom: 3px; width: fit-content; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.msg { padding: 12px 16px; border: 2px solid var(--ink); background: var(--surf); font: 500 15px/1.4 var(--text); margin-top: 16px; }
.msg.err { border-color: var(--acc); color: var(--acc); }

/* ---------- Account pages ---------- */
.narrow { max-width: 560px; margin: 0 auto; padding: 56px var(--pad) 80px; width: 100%; }
.narrow h1 { margin: 0 0 12px; font: 800 48px/1 var(--display); letter-spacing: -.04em; }
.mine-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.mine-row .thumb { height: 80px; }
.mine-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.mine-actions select { height: 40px; border: 1px solid var(--ink); background: var(--surf); padding: 0 10px; }

/* ---------- Tablet ---------- */
@media (max-width: 1180px) {
  :root { --pad: 28px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rows-head, .row { grid-template-columns: 140px minmax(0, 2fr) .8fr .6fr 1.2fr 1.2fr; }
  .rows-head .c-fuel, .row .c-fuel { display: none; }
  .vgrid { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
  .vtitle { font-size: 64px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  :root { --pad: 16px; }
  .topbar { height: 60px; padding: 0 16px; }
  .logo { height: 20px; }
  .mainnav, .topbar .right > :not(.menu-btn) { display: none; }
  .menu-btn { display: inline-flex; }
  .tabbar { display: grid; grid-template-columns: repeat(3, 1fr); position: sticky; bottom: 0; z-index: 15; background: var(--surf); border-top: 1px solid var(--ink); }
  .tabbar a { padding: 12px 0 14px; text-align: center; font: 600 12px/1 var(--text); text-decoration: none; color: var(--muted); }
  .tabbar a.active { color: var(--ink); box-shadow: inset 0 3px 0 var(--acc); }
  .footer { padding: 24px 16px 32px; flex-direction: column; }

  .hero { padding: 32px 16px 24px; }
  .hero h1 { font-size: 38px; margin-bottom: 20px; text-align: left; }
  .sbox-field { margin: 12px 12px 0; height: 60px; padding: 0 6px 0 14px; }
  .sbox-field input { font-size: 18px; }
  .cells { margin: 12px 12px 0; grid-template-columns: 1fr 1fr; }
  .cell { padding: 12px 14px; }
  .cell + .cell { border-left: 0; }
  .cell:nth-child(2n) { border-left: 1px solid var(--ink); }
  .cell:nth-child(n+3) { border-top: 1px solid var(--ink); }
  .cell-btn { font-size: 17px; }
  .sbox-foot { flex-direction: column; align-items: stretch; padding: 12px; }
  .cta { justify-content: space-between; height: 58px; font-size: 18px; }
  .listbox { position: fixed; inset: auto 0 0 0; width: auto; max-height: 75vh; border: 0; border-top: 4px solid var(--acc); }

  .section { padding: 36px 16px 32px; }
  .section h2 { font-size: 28px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { height: 170px; }
  .tile svg { left: 10px; top: 16px; width: calc(100% - 20px); }
  .tile .t { font-size: 16px; padding: 0 12px 2px; }
  .tile .n { padding: 0 12px 12px; }
  .rows-head { display: none; }
  .row { grid-template-columns: 124px minmax(0, 1fr); gap: 4px 14px; align-items: start; }
  .row .thumb { grid-row: span 4; height: 96px; }
  .row .c-km, .row .c-year, .row .c-fuel, .row .c-place { display: none; }
  .row .row-price { order: -1; text-align: left; font-size: 24px; grid-column: 2; }
  .row .c-name { grid-column: 2; }
  .row .row-title { font-size: 17px; }
  .row .m-meta { display: block !important; grid-column: 2; font: 400 13px/1.4 var(--text); color: var(--muted); }

  .qbar input { font-size: 17px; }
  .results { flex-direction: column; }
  .filters { display: none; width: 100%; padding: 16px; border-right: 0; }
  .filters.sheet { display: block; position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow: auto; padding-bottom: 96px; }
  .sheet-close { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; padding: 12px 16px; background: var(--bg); border-top: 1px solid var(--ink); }
  .sheet-close .btn { width: 100%; height: 52px; font: 800 17px/1 var(--display); }
  .mobile-only { display: flex !important; }
  .m-tools { gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--ink); }
  .m-tools button, .m-tools select { height: 44px; border: 2px solid var(--ink); background: var(--surf); font: 700 15px/1 var(--text); padding: 0 12px; }
  .m-tools button { flex: 0 0 auto; white-space: nowrap; }
  .m-tools select { flex: 1; min-width: 0; }
  .results-main { padding: 16px 16px 40px; }
  .results-top h1 { font-size: 40px; }
  .results-top .view { display: none; }
  .sortbar { display: none; }

  .crumbs { padding: 12px 16px; }
  .crumbs .path { display: none; }
  .stage { height: 270px; }
  .thumbs-row { padding: 8px 16px 0; }
  .thumbs-row button { flex: 0 0 84px; height: 64px; }
  .vgrid { grid-template-columns: 1fr; gap: 24px; padding: 20px 16px; }
  .vgrid .buy { order: -1; position: static; border-top: 0; padding-top: 0; }
  .buy .p { font-size: 44px; }
  .buy-actions { display: none; }
  .vtitle { font-size: 44px; }
  .vsub { font-size: 18px; }
  .stats { flex-wrap: wrap; padding: 0; margin-top: 24px; border-bottom: 0; }
  .stats > div { flex: 1 0 50%; padding: 14px 0 !important; border-left: 0 !important; border-bottom: 1px solid var(--hair); }
  .stats .v { font-size: 26px; margin-top: 8px; }
  .vsec { margin-top: 40px; font-size: 26px; }
  .specs { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 140px 1fr; font-size: 15px; }
  .equip { grid-template-columns: 1fr; }
  .callbar { display: grid; grid-template-columns: 1fr auto; gap: 8px; position: sticky; bottom: 0; z-index: 16; padding: 10px 16px; background: var(--surf); border-top: 1px solid var(--ink); }
  .callbar .btn { height: 52px; font: 800 17px/1 var(--display); }
  .callbar .btn-outline { width: 52px; padding: 0; }
  .cards { grid-template-columns: 1fr 1fr; gap: 16px; }
  .card .thumb { height: 120px; }
  .card-price { font-size: 22px; }

  .page-head h1 { font-size: 40px; }
  .post { gap: 32px; }
  .step { grid-template-columns: 1fr; padding: 22px 0 32px; }
  .step-n { font-size: 15px; margin-bottom: 6px; }
  .step h2 { font-size: 24px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post aside { max-width: none; }
  .mine-row { grid-template-columns: 80px minmax(0, 1fr); }
  .mine-actions { grid-column: 1 / -1; }
  .narrow h1 { font-size: 36px; }
}

/* ---------- Shapes ----------
   Everything long and thin is a pill; boxes, cards and photos are rounded; small icon buttons are circles.
   Change --pill / --round / --round-sm at the top to tune the whole site. */

/* Pills */
.btn, .cta, .chip, .badge, .input, .sbox-field, .listbox .find, .field-find, .upload, .feat,
.m-tools button, .m-tools select, .mine-actions select, .mine-actions input, .pages button, .pages span,
.slot .main-tag, .qbar .q, .qbar .go, .range, .buy-links, .sortbar button { border-radius: var(--pill); }
.input input, .input select { padding: 0 22px; }
.input .unit { padding-right: 22px; }
.range { overflow: hidden; }
.range label { padding: 10px 22px; }
.upload { padding: 18px 28px; }
.feat { padding: 12px 20px; }
.feat:has(input:checked) { padding: 11px 19px; }
.mine-actions input { padding: 0 14px !important; }

/* Circles */
.icon-btn, .chip button, .slot .rm, .warn .sq, .check-item .sq, .pages button, .pages span { border-radius: 50%; }
.pages button, .pages span { min-width: 40px; }
.check .box, .feat .box { border-radius: 6px; }

/* Rounded boxes, cards and photos */
.sbox, .tile, .listbox, .preview, .notice, .msg, .stage { border-radius: var(--round); overflow: hidden; }
.thumb, .slot .img, .thumbs-row button, textarea.input, .cells { border-radius: var(--round-sm); }
.listbox { overflow: auto; }
.cells { overflow: visible; }
.opt { margin: 0 8px; width: calc(100% - 16px); border-radius: 10px; border-top-color: transparent; }
.opt + .opt { box-shadow: 0 -1px 0 var(--hair); }

/* Home search box: a rounded white card instead of the red top rule */
.sbox { border-top: 0; overflow: visible; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
/* Generous white space around the pill bar, and a corner radius that follows its curve
   (box radius ≈ bar radius + padding), so the edges never feel cut off. */
.sbox { padding: 28px 28px 24px; border-radius: 52px; }
.sbox-field { margin: 0; padding: 0 10px 0 24px; }
.cells { margin: 16px 0 0; }
.sbox-foot { padding: 22px 4px 0 8px; }
.cell.open::after { left: 20px; right: 20px; border-radius: var(--pill); }
.cells { border-radius: var(--pill); }
.cell { padding-left: 28px; padding-right: 28px; }

/* Sort options as pill toggles */
.sortbar button { border: 1px solid var(--hair); padding: 9px 16px; color: var(--ink); }
.sortbar button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Vehicle page */
.stage { margin: 16px var(--pad) 0; }
.buy-links { border: 1px solid var(--ink); overflow: hidden; }
.buy-actions .btn { padding: 20px 28px; }

/* Phone */
@media (max-width: 760px) {
  .qbar { padding: 12px 16px; }
  .qbar .q { height: 52px; padding: 0 18px; }
  .qbar .go { height: 52px; padding: 0 18px; font-size: 15px; }
  .stage { margin: 12px 16px 0; }
  .cells { border-radius: var(--round); }
  .sbox { padding: 16px 16px 18px; border-radius: 38px; }
  .sbox-field { margin: 0; }
  .cells { margin: 12px 0 0; }
  .sbox-foot { padding: 14px 0 0; }
  .cell { padding-left: 18px; padding-right: 14px; }
  .listbox { border-radius: var(--round) var(--round) 0 0; }
  .drawer nav { border-radius: var(--round) 0 0 var(--round); }
  .cta { padding: 0 28px; }
}

/* ---------- Listing insights: tags ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tags-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font: 600 12px/1 var(--text); padding: 6px 10px; border-radius: var(--pill); background: var(--card); color: var(--ink); white-space: nowrap; }
.tag.good { background: var(--good-bg); color: var(--good); }
.tag.high { background: var(--bad-bg); color: var(--bad); }
.tag.verified { background: var(--ink); color: var(--bg); }
.tag.complete { background: transparent; box-shadow: inset 0 0 0 1px var(--ink); }

/* Rows are articles: the title link covers the whole row, the compare box sits above it */
.row { position: relative; }
.row .row-title { color: var(--ink); text-decoration: none; display: block; }
.row .row-title::after { content: ""; position: absolute; inset: 0; }
.row:hover .row-title { text-decoration: underline; }
.row .tags-row, .row .cmp { position: relative; z-index: 1; }
.rows-head.with-compare, .row.with-compare { grid-template-columns: 34px 170px minmax(0, 2.4fr) .8fr .6fr .9fr 1.4fr 1.3fr; }
.cmp { display: flex; align-items: center; justify-content: center; cursor: pointer; align-self: start; padding-top: 4px; }
.cmp input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cmp .box { width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: var(--surf); }
.cmp .box svg { visibility: hidden; }
.cmp input:checked + .box { background: var(--ink); color: var(--bg); }
.cmp input:checked + .box svg { visibility: visible; }
.cmp input:focus-visible + .box { outline: 3px solid var(--acc); outline-offset: 2px; }

/* Compare bar (bottom of the screen while cars are picked) */
#compare-bar { position: sticky; bottom: 16px; z-index: 18; }
.compare-bar { margin: 0 var(--pad) 16px; background: var(--blk); color: var(--onblk); border-radius: var(--pill); padding: 10px 10px 10px 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25); font: 500 15px/1.3 var(--text); }
.compare-bar .names { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.compare-bar .acts { display: flex; align-items: center; gap: 20px; flex: none; }
.compare-bar .link { color: var(--onblk); }

/* Compare page */
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 720px; }
.cmp-scroll { overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
.cmp-table th, .cmp-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-top: 1px solid var(--hair); font: 400 16px/1.35 var(--text); }
.cmp-table th { width: 200px; color: var(--muted); font-weight: 500; position: sticky; left: 0; background: var(--bg); z-index: 1; }
.cmp-table thead td { border-top: 0; padding-bottom: 20px; }
.cmp-table td.best { font-weight: 700; }
.cmp-table td.best { font-weight: 700; }
.best-name { display: block; font: 700 12px/1.3 var(--text); color: var(--acc); margin-top: 4px; }
.strengths { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--hair); }
.strengths ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font: 600 14px/1.3 var(--text); }
.strengths li::before { content: "+ "; color: var(--acc); font-weight: 800; }
.add-car { min-width: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 140px; border: 2px dashed var(--hair); border-radius: var(--round-sm); text-decoration: none; font: 700 15px/1 var(--text); color: var(--muted); }
.add-car:hover { border-color: var(--ink); color: var(--ink); }
.cmp-table .group th, .cmp-table .group td { padding-top: 36px; border-top: 2px solid var(--ink); font: 800 22px/1 var(--display); color: var(--ink); }
.cmp-car .thumb { height: 140px; }
.cmp-car .rm { margin-top: 10px; }

/* Vehicle page: price evaluation and history */
.eval { margin-top: 16px; padding: 16px 20px; border-radius: var(--round-sm); background: var(--card); font: 500 14px/1.45 var(--text); }
.eval.good { background: var(--good-bg); }
.eval.high { background: var(--bad-bg); }
.eval b { display: block; font: 800 18px/1.2 var(--display); margin-bottom: 4px; }
.eval.good b { color: var(--good); }
.eval.high b { color: var(--bad); }
.meter { height: 8px; border-radius: var(--pill); background: var(--hair); overflow: hidden; margin-top: 8px; }
.meter span { display: block; height: 100%; background: var(--ink); border-radius: var(--pill); }
.composer { margin-top: 12px; display: grid; gap: 10px; }
.composer textarea { width: 100%; min-height: 110px; border: 2px solid var(--ink); border-radius: var(--round-sm); padding: 12px 16px; font: 400 15px/1.45 var(--text); resize: vertical; background: var(--surf); }

/* Account: tabs, saved searches, messages */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tabs a { text-decoration: none; padding: 10px 18px; border-radius: var(--pill); border: 1px solid var(--hair); font: 600 15px/1 var(--text); display: inline-flex; gap: 8px; align-items: center; }
.tabs a.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.count { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--pill); background: var(--acc); color: var(--onacc); font: 700 12px/20px var(--text); justify-content: center; }
.topbar .count { margin-left: 6px; }
.saved-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--hair); flex-wrap: wrap; }
.saved-row .t { font: 800 22px/1.15 var(--display); letter-spacing: -.02em; }
.inbox { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 24px; min-height: 520px; padding-bottom: 80px; }
.convs { border-top: 2px solid var(--ink); }
.conv { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: var(--round-sm); text-decoration: none; color: var(--ink); margin-top: 6px; }
.conv:hover { background: var(--card); }
.conv.on { background: var(--surf); box-shadow: inset 0 0 0 2px var(--ink); }
.conv .thumb { height: 54px; border-radius: 10px; }
.conv .who { font: 700 15px/1.2 var(--text); }
.conv .last { font: 400 14px/1.3 var(--text); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread { background: var(--surf); border-radius: var(--round); display: flex; flex-direction: column; min-height: 520px; max-height: 72vh; }
.thread-head { padding: 18px 24px; border-bottom: 1px solid var(--hair); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.thread-body { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 75%; padding: 10px 16px; border-radius: 20px; background: var(--card); font: 400 15px/1.45 var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.mine { align-self: flex-end; background: var(--ink); color: var(--bg); }
.bubble small { display: block; font-size: 11px; opacity: .6; margin-top: 4px; }
.thread-form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--hair); }
.thread-form textarea { flex: 1; min-height: 48px; max-height: 160px; border: 2px solid var(--ink); border-radius: 24px; padding: 12px 18px; font: 400 15px/1.4 var(--text); resize: none; }

@media (max-width: 1180px) {
  .rows-head.with-compare, .row.with-compare { grid-template-columns: 34px 140px minmax(0, 2fr) .8fr .6fr 1.2fr 1.2fr; }
  .inbox { grid-template-columns: 300px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .rows-head.with-compare, .row.with-compare { grid-template-columns: 124px minmax(0, 1fr); }
  .row.with-compare .cmp { position: absolute; left: 6px; top: 22px; z-index: 2; padding: 0; }
  .row .tags-row { grid-column: 2; }
  #compare-bar { bottom: 60px; }
  .compare-bar { margin: 0 12px 12px; padding: 8px 8px 8px 18px; }
  .compare-bar .list, .compare-bar .link { display: none; }
  .inbox { grid-template-columns: 1fr; }
  .inbox.has-thread .convs-col { display: none; }
  .inbox:not(.has-thread) .thread { display: none; }
  .thread { min-height: 60vh; max-height: none; border-radius: var(--round-sm); }
  .bubble { max-width: 88%; }
}

/* Full-screen photos */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,10,.96); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: calc(100vw - 160px); max-height: calc(100vh - 120px); object-fit: contain; border-radius: var(--round-sm); }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.24); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; font: 600 14px/1 var(--text); }
@media (max-width: 760px) {
  .lightbox img { max-width: 100vw; max-height: calc(100vh - 140px); border-radius: 0; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}


/* ---------- Οδηγοί (guides) ---------- */
.g-hero { background: var(--blk); color: var(--onblk); padding: 32px 0 56px; }
.g-crumbs { display: flex; gap: 10px; align-items: center; font: 500 14px/1 var(--text); color: #C9C6BD; }
.g-crumbs a { color: #C9C6BD; }
.g-crumbs [aria-current] { color: var(--onblk); font-weight: 700; }
.g-hero h1 { margin: 36px 0 0; font: 800 min(9vw, 120px)/.92 var(--display); letter-spacing: -.045em; text-transform: uppercase; }
.g-hero p { margin: 28px 0 0; max-width: 640px; font: 400 21px/1.4 var(--text); color: #C9C6BD; }
.g-article-hero h1 { text-transform: none; font-size: min(7vw, 80px); line-height: .98; max-width: 1100px; margin-top: 20px; }
.g-kicker-line { display: inline-flex; align-items: center; gap: 12px; color: var(--onblk); text-decoration: none; font: 700 13px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; }
.g-kicker-line span { width: 28px; height: 4px; background: var(--acc); border-radius: var(--pill); }
.g-main { padding-top: 56px; padding-bottom: 96px; }
.g-h2 { margin: 0 0 28px; font: 800 48px/1 var(--display); letter-spacing: -.04em; }
.g-section { padding-top: 88px; }
.g-cover { display: flex; align-items: flex-end; aspect-ratio: 4 / 3; border-radius: var(--round); padding: 20px; font: 800 22px/1 var(--display); letter-spacing: -.02em; }
.g-cover.big { aspect-ratio: auto; height: 100%; min-height: 420px; font-size: 44px; padding: 32px; }
.g-cover.wide { aspect-ratio: 21 / 7; font-size: 40px; padding: 32px; }
.g-lead { display: grid; grid-template-columns: 5fr 7fr; gap: 16px; }
.g-lead-text { background: var(--fieldbg); border-radius: var(--round); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 420px; }
.g-kicker { font: 700 13px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; }
.g-lead h2 { margin: 0; font: 800 48px/1.02 var(--display); letter-spacing: -.035em; }
.g-lead h2 a { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 7px; }
.g-lead-art { display: block; }
.g-date { font: 500 14px/1.3 var(--text); }
.g-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.g-card a { display: block; text-decoration: none; }
.g-card h3 { margin: 18px 0 0; font: 700 24px/1.15 var(--display); letter-spacing: -.02em; }
.g-card a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.g-card .g-date { margin-top: 10px; }
.g-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.g-tile { min-height: 220px; border-radius: var(--round); padding: 24px; text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.g-tile-top { display: flex; justify-content: space-between; font: 700 14px/1 var(--text); letter-spacing: .14em; }
.g-tile-label { margin-top: auto; font: 800 32px/1.02 var(--display); letter-spacing: -.03em; }
.g-tile-n { font: 600 14px/1 var(--text); opacity: .8; }
.g-tile:hover .g-tile-label { text-decoration: underline; }
.g-count { font: 600 15px/1 var(--text); color: var(--muted); padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--hair); }
.g-more { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hair); }
.g-more .link { font: 700 17px/1 var(--text); background: none; border: 0; padding: 0; cursor: pointer; }
.g-byline { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; font: 500 15px/1.3 var(--text); color: var(--muted); flex-wrap: wrap; }
.g-body { max-width: 760px; margin: 0 auto; padding-top: 48px; }
.g-glance { background: var(--blk); color: var(--onblk); border-radius: var(--round); border-top: 6px solid var(--acc); padding: 28px 32px 24px; }
.g-glance h2 { margin: 0; font: 800 26px/1 var(--display); letter-spacing: -.02em; }
.g-glance .g-list li { border: 0; padding: 8px 0; font-size: 17px; font-weight: 500; }
.g-list { margin: 18px 0 0; padding: 0; list-style: none; }
.g-list li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--hair); font: 400 19px/1.5 var(--text); }
.g-sec .g-list { border-bottom: 1px solid var(--hair); }
.g-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--acc); margin-top: .55em; }
.g-sec { padding-top: 64px; }
.g-num { font: 800 52px/1 var(--display); letter-spacing: -.04em; color: var(--acc); margin-bottom: 14px; }
.g-sec h2 { margin: 0; font: 800 40px/1.08 var(--display); letter-spacing: -.035em; }
.g-sec p { margin: 18px 0 0; font: 400 19px/1.65 var(--text); }
.g-steps { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.g-steps li { display: flex; gap: 16px; align-items: flex-start; font: 400 19px/1.5 var(--text); }
.g-step-n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font: 800 16px/1 var(--display); }
.g-table-wrap { margin-top: 24px; overflow-x: auto; }
.g-table { width: 100%; border-collapse: collapse; }
.g-table thead th { text-align: left; font: 700 12px/1.2 var(--text); letter-spacing: .12em; text-transform: uppercase; padding: 0 14px 12px 0; border-bottom: 2px solid var(--ink); }
.g-table tbody th, .g-table td { text-align: left; vertical-align: top; padding: 14px 14px 14px 0; border-bottom: 1px solid var(--hair); font: 400 16px/1.4 var(--text); }
.g-table tbody th { font-weight: 700; }
.g-sources { margin-top: 64px; padding-top: 24px; border-top: 2px solid var(--ink); }
.g-sources h2 { margin: 0; font: 800 22px/1 var(--display); }
.g-sources ol { margin: 14px 0 0; padding-left: 20px; color: var(--muted); font: 400 15px/1.6 var(--text); }
@media (max-width: 1180px) {
  .g-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .g-hero { padding: 24px 0 40px; }
  .g-hero h1 { font-size: 48px; margin-top: 24px; }
  .g-article-hero h1 { font-size: 36px; }
  .g-hero p { font-size: 18px; }
  .g-main { padding-top: 32px; padding-bottom: 64px; }
  .g-h2 { font-size: 34px; }
  .g-section { padding-top: 56px; }
  .g-lead { grid-template-columns: 1fr; }
  .g-lead-text { min-height: 0; padding: 28px; }
  .g-lead h2 { font-size: 32px; }
  .g-lead-art { display: none; }
  .g-grid { grid-template-columns: 1fr; gap: 28px; }
  .g-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .g-tile { min-height: 150px; padding: 18px; }
  .g-tile-label { font-size: 19px; overflow-wrap: anywhere; }
  .g-cover.wide { aspect-ratio: 16 / 9; font-size: 26px; padding: 20px; }
  .g-sec h2 { font-size: 30px; }
  .g-sec p, .g-list li, .g-steps li { font-size: 17px; }
  .g-glance { padding: 24px; }
}

/* ---------- Home hero, design 4γ-γ: light, with peach on the sides ----------
   White in the middle, warming to peach at both edges, fading to white at the bottom
   so it flows into the page. The search card is warm white with a soft peach shadow. */
.hero {
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 72%, #FFFFFF 100%),
    linear-gradient(90deg, #F5B189 0%, #F1CDB9 9%, #F2E7E0 24%, #FFFFFF 50%, #F2E7E0 76%, #F1CDB9 91%, #F5B189 100%);
  color: var(--ink);
  padding-bottom: 42px;
}
.hero.photo::before { display: none; }
.hero .sbox { background: #FCF9F5; box-shadow: 0 16px 64px rgba(180, 120, 90, .20); }
.hero .sbox-field { border: 1px solid var(--hair); }
.hero .cells { border-color: var(--hair); }
.hero .cell + .cell, .hero .cell:nth-child(2n) { border-left-color: var(--hair); }
.hero .cell:nth-child(n+3) { border-top-color: var(--hair); }
@media (max-width: 760px) {
  /* Narrower screen: keep the peach to the very edges so the middle stays white */
  .hero {
    background:
      linear-gradient(180deg, rgba(255,255,255,0) 72%, #FFFFFF 100%),
      linear-gradient(90deg, #F5B189 0%, #F1CDB9 6%, #F2E7E0 16%, #FFFFFF 50%, #F2E7E0 84%, #F1CDB9 94%, #F5B189 100%);
  }
}

/* Legal pages */
.legal { max-width: 720px; }
.legal h2 { margin: 32px 0 8px; font: 800 22px/1.2 var(--display); letter-spacing: -.02em; }
.legal p { margin: 0 0 12px; line-height: 1.6; }
