/* ===== 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=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; }
