/* ===== Brand: Geekheads style. Change these to restyle the whole site ===== */
:root {
  --font: 'Rubik', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-head: 'Plus Jakarta Sans', 'Rubik', sans-serif;
  --bg: #f7f8f9; --panel: #fff; --ink: #353f4f; --body: #6c757d; --muted: #6c757d; --line: #e1e3e5;
  --brand: #00a14e; --brand-hover: #0fbc49; --brand-ink: #fff; --accent: #ffba01; --bad: #dc3545; --ok: #00a14e;
  --tint: #e9f8f2; --radius: 16px; --btn-radius: 28px;
  --shadow: 0 1px 2px rgb(34 34 59 / .04), 0 6px 24px rgb(34 34 59 / .06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1d212c; --panel: #2e3648; --ink: #ecf1f4; --body: #b1b7cd; --muted: #b1b7cd; --line: #394455;
          --brand: #0fbc49; --brand-hover: #6fd792; --brand-ink: #fff; --accent: #ffba01; --bad: #ff6b7a; --ok: #6fd792; --tint: #22382f; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--body);
  font: 16px/1.6666 var(--font); }
h1, h2, h3, .brand { font-family: var(--font-head); color: var(--ink); font-weight: 700; }
/* ===== End brand ===== */
a { color: var(--brand); }
img { max-width: 100%; display: block; }
h1 { font-size: 1.6rem; line-height: 1.2; margin: .2em 0 .6em; }
h2 { font-size: 1.2rem; margin: 1.4em 0 .6em; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

.top { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; padding-block: 8px; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: 20px; }
.nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a.on { color: var(--brand); font-weight: 600; }
.badge { background: var(--accent); color: #1f1a10; border-radius: 99px; padding: 0 7px; font-size: .75rem; font-weight: 700; }
.inline { display: inline; margin: 0; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; }

.btn { display: inline-block; background: var(--brand); color: var(--brand-ink) !important; border: 2px solid transparent; border-radius: var(--btn-radius);
  padding: 12px 24px; transition: background .3s; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brand-hover); }
.btn-sm { padding: 7px 16px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--ink) !important; border: 2px solid var(--line); }
.btn-ghost:hover { background: var(--tint); border-color: var(--brand); }
.btn-bad { background: var(--bad); color: #fff !important; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.flash { margin: 16px 0; padding: 12px 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--ok); }
.flash-error { border-left-color: var(--bad); }
.flash-info { border-left-color: var(--accent); }

.hero { padding: 32px 0 8px; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.hero p { color: var(--muted); margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.chip { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); text-decoration: none; font-size: .9rem; white-space: nowrap; }
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.search { display: flex; gap: 8px; margin: 8px 0 0; }
.search input { flex: 1; min-width: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; margin: 8px 0 24px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink);
  text-decoration: none; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgb(34 34 59 / .1); }
.card h3 { color: var(--ink); }
.thumb { position: relative; aspect-ratio: 4 / 3; background: var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.nothumb { display: grid; place-items: center; height: 100%; color: var(--brand); font-weight: 600; background: var(--tint); }
.tag-sold { position: absolute; top: 10px; left: 10px; background: var(--bad); color: #fff; padding: 2px 10px; border-radius: 6px; font-weight: 700; font-size: .8rem; }
.card-body { padding: 12px 14px 14px; }
.card h3 { margin: 4px 0; font-size: 1rem; line-height: 1.3; }
.price { font-weight: 700; margin: 2px 0; color: var(--ink); }
.when { margin: 2px 0; font-weight: 600; color: var(--brand); font-size: .9rem; }
.meta { color: var(--muted); font-size: .85rem; margin: 4px 0 0; }
.cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--muted); }
.cat-free { color: var(--brand); }
.cat-garage, .cat-event { color: #1680fb; }
.cat-wanted { color: #7b5dd6; }
@media (prefers-color-scheme: dark) { .cat-garage, .cat-event { color: #3eb1ff; } .cat-wanted { color: #b9a6ff; } }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.narrow { max-width: 480px; margin: 24px auto; }
.mid { max-width: 720px; margin: 24px auto; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
.hint { color: var(--muted); font-size: .85rem; font-weight: 400; margin: 4px 0 0; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=password], input[type=number], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--tint); }
.err { color: var(--bad); font-size: .9rem; margin: 4px 0 0; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; }
.hide { display: none; }

.listing { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 24px 0; }
@media (min-width: 860px) { .listing { grid-template-columns: 1.4fr 1fr; } }
.gallery { display: grid; gap: 8px; }
.gallery img { border-radius: var(--radius); width: 100%; background: var(--line); }
.gallery .more { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.listing .big-price { font-size: 1.6rem; font-weight: 800; margin: 0 0 8px; }
.body-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.facts { list-style: none; padding: 0; margin: 12px 0; color: var(--muted); }
.facts li { margin: 4px 0; }
.facts strong { color: var(--ink); }

.thread { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.me { margin-left: auto; background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.bubble small { display: block; opacity: .7; font-size: .75rem; margin-top: 4px; }
.inbox { list-style: none; padding: 0; margin: 0; }
.inbox li a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.inbox .unread { font-weight: 700; }
.inbox .sub { color: var(--muted); font-size: .9rem; font-weight: 400; }

table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.digest { width: 100%; min-height: 360px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; }
.foot { color: var(--muted); font-size: .85rem; padding-block: 24px 40px; border-top: 1px solid var(--line); margin-top: 24px; }
.pager { display: flex; justify-content: space-between; margin: 0 0 32px; }
.mt { margin-top: 20px; }
.mt0 { margin-top: 0; }
.m0 { margin: 0; }
.between { justify-content: space-between; }
.credit { margin-top: 8px; }
.credit a { color: var(--brand); font-weight: 500; }

/* Alerts page */
.alert-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); margin: 16px 0 24px; }
.river { grid-column: 1 / -1; border-top: 5px solid var(--brand); }
.river-minor { border-top-color: var(--accent); }
.river-moderate, .river-major { border-top-color: var(--bad); }
.river-moderate .river-status strong, .river-major .river-status strong { color: var(--bad); }
.river-now { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 4px 0; }
.river-level { font-family: var(--font-head); font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 800; color: var(--ink); line-height: 1; }
.river-trend { font-weight: 600; padding: 3px 12px; border-radius: 99px; background: var(--tint); color: var(--brand); font-size: .9rem; }
.trend-rising { background: #fff4d6; color: #8a5a00; }
@media (prefers-color-scheme: dark) { .trend-rising { background: #3b3220; color: var(--accent); } }
.river-status { color: var(--ink); margin: 6px 0; }
.river-chart { display: block; margin: 12px 0 4px; width: 100%; max-width: 560px; height: auto; overflow: visible; }
.river-chart .grid { stroke: var(--line); stroke-width: 1; }
.river-chart .tick { fill: var(--muted); font-size: 10.5px; font-family: var(--font); }
.river-chart .ref { stroke: var(--bad); stroke-width: 1.5; stroke-dasharray: 5 4; }
.river-chart .ref-label { fill: var(--bad); font-size: 10.5px; font-weight: 600; font-family: var(--font); }
.river-chart .area { fill: var(--brand); opacity: .12; }
.river-chart .line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.river-chart .dot { fill: var(--brand); stroke: var(--panel); stroke-width: 1.5; }
.river-scale { list-style: none; padding: 0; margin: 8px 0 12px; display: flex; gap: 18px; flex-wrap: wrap; font-size: .9rem; color: var(--ink); }
.river-scale span { color: var(--muted); }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.link-list a { font-weight: 600; }
.link-list span { display: block; color: var(--muted); font-size: .88rem; }
.phones { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; }
.phones dt { color: var(--body); }
.phones dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.phones a { color: var(--ink); text-decoration: none; }
.phones a:hover { color: var(--brand); }
.river-minor .river-chart .line, .river-minor .river-chart .dot { stroke: #c98a00; } .river-minor .river-chart .dot { fill: #c98a00; } .river-minor .river-chart .area { fill: var(--accent); }
.river-moderate .river-chart .line, .river-major .river-chart .line { stroke: var(--bad); } .river-moderate .river-chart .dot, .river-major .river-chart .dot { fill: var(--bad); } .river-moderate .river-chart .area, .river-major .river-chart .area { fill: var(--bad); }

/* Category pills are used by the magazine theme only */
.pill { display: none; }
.btn-wa { background: #25d366 !important; color: #fff !important; }
.btn-wa:hover { background: #1ebe5b !important; }

/* 404 page */
.nf { text-align: center; max-width: 640px; margin: 48px auto 24px; }
.nf-code { font-family: var(--font-head); font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; line-height: 1; margin: 0; color: var(--brand); }
.nf h1 { margin: 8px 0 12px; }
.nf-lead { color: var(--muted); margin: 0 0 20px; }
.nf-search { margin: 0 auto 16px; max-width: 480px; }
.nf-cats { justify-content: center; margin: 0 0 24px; }
.nf-latest { margin-top: 32px; }
.center { justify-content: center; }

/* Avatars */
.avatar { border-radius: 50%; flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.nav-me { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 600px) { .nav-me span { display: none; } }
.poster { display: flex; align-items: center; gap: 10px; }
.who { display: flex; align-items: center; gap: 12px; }
.inbox li a { align-items: center; }
.inbox-av { margin-right: 12px; }
.inbox-text { flex: 1; min-width: 0; }

/* Privacy and cookie policy pages */
.legal { line-height: 1.65; }
.legal h2 { margin-top: 1.8em; font-size: 1.2rem; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: .35em 0; }
.legal code { background: rgba(0,0,0,.06); padding: .1em .4em; border-radius: 6px; }

/* Password field: show/hide, strength meter, rule checklist */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 4.5rem; }
.pw-toggle { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: .35rem .6rem; border-radius: 999px; font: inherit; font-size: .85rem; font-weight: 600; color: var(--muted, #666); cursor: pointer; }
.pw-toggle:hover { background: rgba(0,0,0,.06); }
.pw-meter { display: flex; align-items: center; gap: .6rem; margin: .5rem 0 .25rem; font-size: .85rem; font-weight: 600; }
.pw-bar { flex: 1; height: 6px; border-radius: 999px; background: rgba(0,0,0,.08); position: relative; overflow: hidden; }
.pw-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; transition: width .2s, background .2s; }
.pw-bar.s1 i { width: 25%; background: #e5484d; }
.pw-bar.s2 i { width: 50%; background: #f5a524; }
.pw-bar.s3 i { width: 75%; background: #46a758; }
.pw-bar.s4 i { width: 100%; background: #18794e; }
.pw-rules { list-style: none; padding: 0; margin: .35rem 0 .5rem; font-size: .88rem; color: var(--muted, #666); }
.pw-rules li { margin: .15rem 0; }
.pw-rules li::before { content: '○'; display: inline-block; width: 1.3em; }
.pw-rules li.ok { color: #18794e; }
.pw-rules li.ok::before { content: '✓'; font-weight: 700; }

/* Login & security */
.otp-qr { margin: .75rem 0; min-height: 10px; }
.otp-qr img { display: block; width: 200px; height: 200px; image-rendering: pixelated; border: 1px solid rgba(0,0,0,.1); border-radius: 12px; }
.otp-key { font-size: 1rem; letter-spacing: .05em; white-space: nowrap; background: rgba(0,0,0,.06); padding: .15em .45em; border-radius: 6px; }
.steps-list li { margin: .6rem 0; }
.otp-confirm input[name=code], .narrow input[name=code] { font-size: 1.4rem; letter-spacing: .3em; max-width: 12rem; }
.devices { list-style: none; padding: 0; margin: .5rem 0 1rem; }
.devices li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.badge-here { display: inline-block; font-size: .75rem; font-weight: 700; padding: .1em .55em; border-radius: 999px; background: #e6f6ec; color: #18794e; }

/* View counts */
.views { white-space: nowrap; }
.views .eye { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -0.17em; margin-right: .2em; opacity: .7; }
.nowrap { white-space: nowrap; }

/* Listing placeholders (no photo) */
.ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: #fff; overflow: hidden;
  background-color: #007aff; background-image: radial-gradient(circle at 20% 15%, rgba(255,255,255,.28) 0 18%, transparent 19%), radial-gradient(circle at 85% 90%, rgba(255,255,255,.18) 0 26%, transparent 27%), radial-gradient(circle at 92% 12%, rgba(255,255,255,.14) 0 9%, transparent 10%), linear-gradient(135deg, var(--ph-a), var(--ph-b)); }
.ph-sale   { --ph-a: #007aff; --ph-b: #5ac8fa; }
.ph-free   { --ph-a: #00a14e; --ph-b: #6fd792; }
.ph-garage { --ph-a: #ff7a00; --ph-b: #fecc00; }
.ph-event  { --ph-a: #5856d5; --ph-b: #ca9cf4; }
.ph-wanted { --ph-a: #e6006e; --ph-b: #ff7a9e; }
.ph-ico { font-size: 3.2rem; line-height: 1; filter: drop-shadow(0 4px 10px rgba(0,0,0,.18)); }
.ph-big .ph-ico { font-size: 5rem; }
.ph-mini .ph-ico { font-size: 1.5rem; }
.ph-label { font-weight: 700; font-size: 1.1rem; letter-spacing: .02em; text-shadow: 0 1px 6px rgba(0,0,0,.2); }
.ph-cal { display: flex; flex-direction: column; align-items: center; width: 5.6rem; background: #fff; color: #1c1c1e; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.ph-cal-m { align-self: stretch; text-align: center; background: var(--ph-a); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; padding: .3rem 0; }
.ph-cal-d { font-size: 2.4rem; font-weight: 800; line-height: 1.05; padding-top: .25rem; }
.ph-cal-w { font-size: .8rem; font-weight: 600; color: #6b6b70; padding-bottom: .45rem; white-space: nowrap; }
.ph-big .ph-cal { width: 8.5rem; }
.ph-big .ph-cal-d { font-size: 3.8rem; }
.ph-big .ph-cal-m, .ph-big .ph-cal-w { font-size: .95rem; }
.ph-wrap { border-radius: var(--radius); overflow: hidden; }
.mrow-img { position: relative; }

/* "Add a photo?" prompt on the post form */
.photo-prompt { margin: 1rem 0; padding: 1rem 1.1rem; border-radius: 16px; background: #fff7e6; border: 1px solid #ffd58a; }
.photo-prompt p { margin: .3rem 0; }
@media (prefers-color-scheme: dark) { .photo-prompt { background: #2c2416; border-color: #6b5320; } }
.ph-card { padding-bottom: 1.4rem; }
@media (max-width: 600px) {
  .ph-card { padding-bottom: 1.9rem; }
  .ph-card .ph-cal { width: 3.9rem; border-radius: 12px; }
  .ph-card .ph-cal-m { font-size: .62rem; padding: .18rem 0; }
  .ph-card .ph-cal-d { font-size: 1.55rem; padding-top: .1rem; }
  .ph-card .ph-cal-w { font-size: .62rem; padding-bottom: .25rem; }
  .ph-card .ph-ico { font-size: 2.2rem; }
}

/* Price drops */
.was { color: var(--muted, #8a8a8e); font-weight: 500; text-decoration-thickness: 2px; margin-right: .15em; }
.big-price .was { font-size: .7em; }
.drop-badge { display: inline-block; vertical-align: middle; font-size: .8rem; font-weight: 700; padding: .2em .65em; border-radius: 999px; background: #ffe8ec; color: #d70f3c; }
.tag-drop { position: absolute; top: 10px; left: 10px; z-index: 2; background: #ff2c54; color: #fff; font-size: .75rem; font-weight: 700; padding: .25em .7em; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
