:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-2: #f1ede4;
  --border: #e2dbcc;
  --text: #201c14;
  --text-dim: #6f6656;
  --accent: #8a3324;
  --accent-soft: #f3e4de;
  --link: #6d3b1f;
  --radius: 4px;
  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16140f;
    --surface: #1d1a14;
    --surface-2: #24211a;
    --border: #38332740;
    --border: #3a3325;
    --text: #f1ece0;
    --text-dim: #a89e88;
    --accent: #d98a6b;
    --accent-soft: #2c2018;
    --link: #e2a37f;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--link); }
a.plain, a.unstyled { color: inherit; text-decoration: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem 5rem; }

/* ── Site header: near-black band (wordmark, search, quick links) over a white section row ── */
:root {
  --band: #15120d;
  --band-text: #f1ece0;
  --band-dim: #b8ad94;
  --band-accent: #eba98d;
}
.site-header { position: relative; z-index: 20; }
.topband { background: var(--band); color: var(--band-text); }
.topband-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.topband .brand {
  flex: none;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  color: #fff;
}
.hsearch { position: relative; flex: 1 1 auto; min-width: 0; max-width: 720px; margin: 0 auto; display: flex; }
.hsearch input {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.6rem 2.8rem 0.6rem 0.95rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: #f4f0e6;
  color: #201c14;
  -webkit-appearance: none;
  appearance: none;
}
.hsearch input::placeholder { color: #7a705c; opacity: 1; }
.hsearch input:focus { outline: 2px solid var(--band-accent); outline-offset: 1px; background: #fff; }
.hsearch button {
  position: absolute;
  right: 0.15rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  background: none;
  color: #5b5240;
  cursor: pointer;
}
.hsearch button:hover { color: var(--accent); }
.toplinks { flex: none; display: flex; align-items: center; gap: 1.25rem; }
.toplinks a { color: var(--band-text); text-decoration: none; font-size: 0.88rem; font-weight: 600; white-space: nowrap; }
.toplinks a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.toplinks a.cta-free { color: var(--band-accent); }
.topband a:focus-visible { outline: 2px solid var(--band-accent); outline-offset: 3px; }

.subnav { background: #fff; border-bottom: 1px solid var(--border); }
@media (prefers-color-scheme: dark) { .subnav { background: var(--surface); } }
.subnav-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; display: flex; align-items: stretch; gap: 0.15rem; }
.subnav a {
  display: block;
  padding: 0.7rem 0.8rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.subnav a:hover, .subnav .dd:focus-within > a { color: var(--accent); }
.subnav a.active { border-bottom-color: var(--accent); }
.subnav a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dd { position: relative; }
.dd-label::after {
  content: '';
  display: inline-block;
  margin-left: 0.4rem;
  border: 4px solid transparent;
  border-top-color: currentColor;
  border-bottom-width: 0;
  vertical-align: 0.15em;
}
.dd-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 13rem;
  padding: 0.4rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  z-index: 30;
}
.dd-panel.dd-cols { min-width: 22rem; columns: 2; column-gap: 0; }
.dd:hover .dd-panel, .dd:focus-within .dd-panel { display: block; }
.dd-panel a { padding: 0.4rem 1rem; font-weight: 500; break-inside: avoid; border-bottom: 0; }
.dd-panel a:hover { background: var(--surface-2); }
.dd-panel .dd-all { color: var(--accent); font-weight: 700; }

.notice-bar { background: var(--accent-soft); border-bottom: 1px solid var(--border); text-align: center; font-size: 0.85rem; padding: 0.4rem 1rem; color: var(--text); }
.notice-bar a { color: var(--accent); font-weight: 700; }

@media (max-width: 860px) {
  /* Row 1: wordmark and the two main links; row 2: the search box. The section row scrolls sideways. */
  .topband-inner { flex-wrap: wrap; gap: 0.6rem 1rem; padding: 0.6rem 1rem 0.7rem; }
  .topband .brand { font-size: 1.45rem; }
  .toplinks { order: 2; margin-left: auto; gap: 1rem; }
  .toplinks .hide-sm { display: none; }
  .hsearch { order: 3; flex: 1 1 100%; max-width: none; margin: 0; }
  .subnav-inner { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0 0.5rem; }
  .subnav-inner::-webkit-scrollbar { display: none; }
  .dd-panel { display: none !important; }
}

/* ── Masthead / typography ── */
header.masthead { padding: 3.5rem 0 2rem; text-align: center; }
header.masthead .kicker, .kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.75rem;
}
header.masthead h1 {
  font-family: var(--serif);
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
header.masthead p.lede {
  margin: 0 auto;
  max-width: 56ch;
  color: var(--text-dim);
  font-size: 1.05rem;
}

h1, h2, h3 { font-family: var(--serif); }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.prose h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.prose p { margin: 0 0 1rem; }
.prose { max-width: 68ch; margin: 0 auto; }
.prose ul { padding-left: 1.3rem; }

/* ── Listing grid ── */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin-top: 2rem;
}

.listing-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.listing-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.listing-card .photo {
  aspect-ratio: 4 / 3;
  background: var(--surface-2) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.8rem;
}
.listing-card .body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.listing-card .title { font-family: var(--serif); font-size: 1.2rem; line-height: 1.3; margin: 0; }
.listing-card .why { color: var(--text-dim); font-size: 0.92rem; margin: 0; flex: 1; }
.listing-card .meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.9rem; margin-top: 0.25rem; }
.listing-card .price { font-weight: 700; }
.listing-card .source-line { font-size: 0.8rem; color: var(--text-dim); display: flex; justify-content: space-between; gap: 0.5rem; }
.listing-card .cta {
  margin-top: 0.6rem;
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
}

.badge {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* ── Empty state ── */
.empty-state {
  margin: 3rem auto;
  max-width: 46ch;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
}
.empty-state h2 { color: var(--text); font-size: 1.3rem; margin: 0 0 0.6rem; }
.empty-state p { margin: 0 0 1rem; }

/* ── Forms ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 640px;
  margin: 2rem auto 0;
}
.field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 1rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text-dim); }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}
.field textarea { resize: vertical; min-height: 6rem; }
.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.hint { font-size: 0.8rem; color: var(--text-dim); margin: -0.5rem 0 1rem; }

button.primary {
  font: inherit;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}
button.primary:disabled { opacity: 0.6; cursor: default; }

.notice { border-radius: var(--radius); padding: 0.9rem 1rem; font-size: 0.9rem; margin: 1rem 0; }
.notice.info { background: var(--accent-soft); color: var(--text); }
.notice.error { background: #fdeceb; color: #7a2419; }
@media (prefers-color-scheme: dark) { .notice.error { background: #3a2019; color: #f0b3a8; } }

/* ── Detail page ── */
.detail-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.6rem; margin: 1.5rem 0; }
.detail-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }
.spec-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.spec-table td { padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.spec-table td:first-child { color: var(--text-dim); width: 40%; }

/* Tables inside article bodies (cost-to-own comparisons, sources). Scroll sideways
   inside the table on narrow screens instead of widening the page. */
.article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.92rem; }
.article-body th, .article-body td { padding: 0.45rem 0.7rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.article-body th { color: var(--text-dim); font-weight: 600; white-space: nowrap; }
.article-body td[align="right"], .article-body th[align="right"] { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.provenance {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 1.5rem 0;
}

footer.site-footer {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  padding: 3rem 1rem 2rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
footer.site-footer p { margin: 0.4rem 0; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.footer-links a { color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.footer-links a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════════════
   Front page: leases strip, listings grid, Marque Daily feed, sidebar.
   Shared with the Worker-rendered post pages (apps/marque-worker/src/page.ts).
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --good: #2f6b3b;
  --good-soft: #e3f0e4;
  --warn: #8a5a12;
  --warn-soft: #f7ecd2;
  --bad: #8a3324;
  --bad-soft: #f3e4de;
}
@media (prefers-color-scheme: dark) {
  :root {
    --good: #8fd09b;
    --good-soft: #1b2b1f;
    --warn: #e5bd6d;
    --warn-soft: #2e2512;
    --bad: #d98a6b;
    --bad-soft: #2c2018;
  }
}

.wrap-wide { max-width: 1280px; }
.home { padding-top: 1.5rem; }

.section { margin-top: 2.25rem; }
.home > .section:first-child { margin-top: 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--text);
  padding-bottom: 0.4rem;
  margin: 0 0 1rem;
}
.section-head h2 { margin: 0; font-size: 1.4rem; letter-spacing: -0.005em; }
.section-head a { font-size: 0.88rem; font-weight: 600; text-decoration: none; color: var(--accent); }
.section-sub { color: var(--text-dim); font-size: 0.88rem; margin: 0.8rem 0 0; }
.section-sub a { color: var(--accent); }

/* chips and toolbar */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chips { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.chip {
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--text-dim); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip:focus-visible, .sort-select select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sort-select { display: flex; align-items: center; gap: 0.5rem; font-size: 0.84rem; color: var(--text-dim); }
.sort-select select {
  font: inherit;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

/* leases strip */
.lease-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.lease-grid.many { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.lease-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.1rem;
}
.lease-card .lease-title { font-family: var(--serif); font-size: 1.1rem; line-height: 1.3; margin: 0; }
.lease-card .lease-big { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-top: 0.25rem; }
.lease-card .lease-big small { font-size: 0.95rem; font-weight: 600; color: var(--text-dim); letter-spacing: 0; }
.lease-card .lease-fine { font-size: 0.82rem; color: var(--text-dim); margin: 0; }
.lease-card .lease-meta { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; font-size: 0.84rem; margin-top: 0.15rem; }
.lease-card .lease-source { font-size: 0.78rem; color: var(--text-dim); margin: 0; flex: 1; }
.lease-card .cta { text-decoration: none; color: var(--accent); font-weight: 700; font-size: 0.92rem; margin-top: 0.4rem; }
.lease-card .cta:hover { text-decoration: underline; }
.grade { display: inline-block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 999px; background: var(--surface-2); color: var(--text-dim); }
.grade-excellent { background: var(--good-soft); color: var(--good); }
.grade-good { background: var(--good-soft); color: var(--good); }
.grade-fair { background: var(--warn-soft); color: var(--warn); }
.grade-poor { background: var(--bad-soft); color: var(--bad); }

/* listings: denser BaT-style cards */
.grid.dense { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; margin-top: 0; }
.listing-card .body { padding: 0.8rem 0.9rem 0.95rem; gap: 0.3rem; }
.listing-card .title { font-size: 1.02rem; }
.listing-card .photo.placeholder { font-family: var(--serif); font-size: 3rem; font-weight: 700; color: var(--border); background: var(--surface-2); }
.listing-card .price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.listing-card .price { font-weight: 800; font-size: 1.05rem; }
.listing-card .time { font-size: 0.8rem; font-weight: 700; color: var(--accent); }
.listing-card .time.ended { color: var(--text-dim); }
.listing-card .loc { font-size: 0.8rem; color: var(--text-dim); }
.empty-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  max-width: 340px;
  min-height: 170px;
  padding: 1.1rem 1.25rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 0.9rem;
}
.empty-card strong { color: var(--text); font-family: var(--serif); font-size: 1.05rem; }
.empty-card p { margin: 0; }

/* Marque Daily */
.featured-row { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-bottom: 1.5rem; }
.post-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.post-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.post-cover { aspect-ratio: 16 / 10; background: var(--surface-2) center/cover no-repeat; }
.featured-row .post-cover { aspect-ratio: 16 / 9; }
.post-cover.typo {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  background: var(--accent-soft);
  color: var(--accent);
}
.post-cover.typo .typo-kind { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; }
.post-cover.typo .typo-mark { font-family: var(--serif); font-size: 3.2rem; line-height: 1; font-weight: 700; }
.post-body { padding: 0.85rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.post-kind { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: var(--accent); margin: 0; }
.post-title { font-family: var(--serif); font-size: 1.12rem; line-height: 1.28; margin: 0; }
.featured-row .post-title { font-size: 1.4rem; }
.post-dek { color: var(--text-dim); font-size: 0.9rem; margin: 0; flex: 1; }
.post-meta { font-size: 0.78rem; color: var(--text-dim); margin: 0.2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.2rem 0.6rem; }

/* home layout with sidebar (wide screens only) */
.home-cols { display: block; }
.home-side { display: none; }
@media (min-width: 1100px) {
  .home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; align-items: start; }
  .home-side { display: block; position: sticky; top: 1rem; }
}
.side-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1.25rem; }
.side-box h3 { margin: 0 0 0.6rem; font-size: 1.05rem; }
.side-box p { margin: 0 0 0.6rem; font-size: 0.9rem; color: var(--text-dim); }
.side-box p:last-child { margin-bottom: 0; }
.side-box.callout { background: var(--accent-soft); border-color: transparent; }
.side-box.callout a.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
}
.most-read { list-style: none; counter-reset: mr; margin: 0; padding: 0; }
.most-read li { counter-increment: mr; display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.4rem; padding: 0.55rem 0; border-top: 1px solid var(--border); }
.most-read li:first-child { border-top: 0; padding-top: 0; }
.most-read li::before { content: counter(mr); font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--accent); line-height: 1.1; }
.most-read a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.92rem; line-height: 1.3; }
.most-read a:hover { color: var(--accent); }
.most-read .mr-meta { display: block; font-size: 0.76rem; color: var(--text-dim); font-weight: 400; margin-top: 0.1rem; }

/* article pages (rendered by the Worker) */
.article { max-width: 760px; padding-top: 2rem; }
.article-head .kicker { margin: 0 0 0.6rem; }
.article-head .kicker a { color: var(--accent); }
.article-head h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.8rem; }
.article-head .dek { font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; color: var(--text-dim); margin: 0 0 0.9rem; }
.article-head .byline { font-size: 0.88rem; color: var(--text-dim); margin: 0 0 1.4rem; }
.article-cover { margin: 0 0 1.75rem; }
.article-cover img { width: 100%; height: auto; display: block; border-radius: var(--radius); background: var(--surface-2); }
.article-cover figcaption { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.4rem; }
.article-body { max-width: none; margin: 0; font-size: 1.06rem; line-height: 1.7; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.article-body blockquote { margin: 1.2rem 0; padding: 0.2rem 0 0.2rem 1.1rem; border-left: 3px solid var(--accent); color: var(--text-dim); }
.article-body table { border-collapse: collapse; width: 100%; margin: 1.2rem 0; font-size: 0.95rem; }
.article-body th, .article-body td { border-bottom: 1px solid var(--border); padding: 0.45rem 0.6rem; text-align: left; }
.article-body pre, .article-body code { font-size: 0.9em; background: var(--surface-2); border-radius: 3px; }
.article-body code { padding: 0.1em 0.3em; }
.article-body pre { padding: 0.8rem 1rem; overflow-x: auto; }
.article-body pre code { background: none; padding: 0; }
.article-sources { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.article-sources h2 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.article-sources ul { margin: 0; padding-left: 1.2rem; font-size: 0.92rem; }
.article-tags { margin: 1.5rem 0 0; }
.article-note { margin-top: 1.5rem; font-size: 0.8rem; color: var(--text-dim); }

/* ── Results (completed auction sales) ── */
.sold-badge {
  display: inline-block;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  background: var(--text);
  color: var(--bg);
  vertical-align: middle;
}
.result-card .why {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin: 0.15rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.result-strip { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.result-mini {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.result-mini:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.result-mini:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.result-mini-title { font-family: var(--serif); font-size: 0.98rem; line-height: 1.28; font-weight: 700; }
.result-mini-price { font-weight: 800; font-size: 1.05rem; }
.result-mini-meta { font-size: 0.78rem; color: var(--text-dim); }
.result-facts { max-width: 34rem; }
.result-why { margin: 0 0 1.4rem; font-size: 1.05rem; }

@media (max-width: 520px) {
  .lease-card .lease-big { font-size: 1.7rem; }
  .section-head h2 { font-size: 1.25rem; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Front page, BaT-style: featured hero, latest results, story stream, right column.
   ═══════════════════════════════════════════════════════════════════════ */

.page-head h1 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0.5rem 0 0.25rem; letter-spacing: -0.01em; }
.head-count { font-family: var(--sans); font-size: 0.82rem; font-weight: 600; color: var(--text-dim); letter-spacing: 0; white-space: nowrap; }
.pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.pill.key { background: var(--text); border-color: var(--text); color: var(--bg); font-size: 0.84rem; }

/* typographic placeholder for a missing photo */
.typo { display: flex; flex-direction: column; justify-content: flex-end; gap: 0.4rem; padding: 1.25rem 1.4rem; background: var(--accent-soft); color: var(--accent); }
.typo .typo-mark { font-family: var(--serif); font-size: clamp(3.5rem, 9vw, 7rem); line-height: 0.9; font-weight: 700; }
.typo .typo-kind { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; }

/* Featured hero */
.hero { display: grid; grid-template-columns: 2fr 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; }
.hero:hover .hero-title { color: var(--accent); }
.hero:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero-photo { min-height: 400px; background: var(--surface-2) center/cover no-repeat; }
.hero-body { display: flex; flex-direction: column; gap: 0.85rem; justify-content: center; padding: 1.75rem 1.75rem 1.9rem; min-width: 0; }
.hero-title { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.35rem); line-height: 1.1; letter-spacing: -0.012em; margin: 0; overflow-wrap: anywhere; }
.hero-excerpt { margin: 0; color: var(--text-dim); font-size: 0.98rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-credit { font-size: 0.74rem; color: var(--text-dim); }
.hero-skeleton { min-height: 400px; border-style: dashed; background: var(--surface-2); opacity: 0.5; margin-top: 2.25rem; }

/* Latest results: rows on the left, the photo of the row under the pointer on the right */
.latest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 1.75rem; align-items: start; }
.latest-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.latest-list li { border-bottom: 1px solid var(--border); }
.latest-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 0.2rem 1rem;
  padding: 0.9rem 0.75rem 0.9rem 0.85rem;
  color: var(--text);
  text-decoration: none;
  border-left: 3px solid transparent;
}
.latest-row.on, .latest-row:hover, .latest-row:focus-visible { background: var(--surface); border-left-color: var(--accent); outline: none; }
.latest-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--serif); font-size: 1.05rem; font-weight: 700; }
.latest-price { font-weight: 800; font-size: 0.95rem; white-space: nowrap; }
.latest-date { color: var(--accent); font-weight: 700; font-size: 0.84rem; white-space: nowrap; min-width: 6.4rem; text-align: right; }
.latest-photo { position: sticky; top: 1rem; }
.latest-img { aspect-ratio: 4 / 3; background: var(--surface-2) center/cover no-repeat; border: 1px solid var(--border); border-radius: var(--radius); }
.latest-cap { margin: 0.5rem 0 0; font-size: 0.84rem; color: var(--text-dim); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 1rem; }
.latest-cap strong { color: var(--text); }

/* Marque Daily as a stream of stories */
.stream .section-head { margin-bottom: 0; }
.stream-entry { padding: 2.25rem 0 2.5rem; border-bottom: 1px solid var(--border); }
.stream-eyebrow { margin: 0 0 0.5rem; font-size: 0.82rem; font-weight: 600; color: var(--text-dim); letter-spacing: 0.02em; }
.stream-kind { color: var(--accent); font-weight: 800; }
.stream-title { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 1.1rem; }
.stream-title a { color: var(--text); text-decoration: none; }
.stream-title a:hover { color: var(--accent); }
.stream-cover { margin: 0 0 1.1rem; }
.stream-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); border-radius: var(--radius); }
.stream-cover figcaption { font-size: 0.76rem; color: var(--text-dim); margin-top: 0.4rem; }
.stream-dek { font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; color: var(--text-dim); margin: 0 0 0.8rem; }
.stream-by { font-size: 0.86rem; color: var(--text-dim); margin: 0; }
.stream-more { margin: 1.75rem 0 0; font-weight: 700; }
.stream-more a { color: var(--accent); text-decoration: none; font-size: 1.05rem; }
.stream-more a:hover { text-decoration: underline; }

/* The right-hand column. Under 1100px it is hidden and .home-after (the sign-up and sell boxes) shows after the stream. */
.home-cols { margin-top: 2.25rem; }
.home-cols .stream { margin-top: 0; }
.home-after { margin-top: 2rem; }
@media (min-width: 1100px) {
  .home-after { display: none; }
  .home-cols { grid-template-columns: minmax(0, 1fr) 320px; }
}
.subscribe form { display: flex; flex-direction: column; gap: 0.3rem; }
.subscribe label { font-size: 0.8rem; font-weight: 700; color: var(--text-dim); margin-top: 0.3rem; }
.subscribe label span { font-weight: 400; }
.subscribe input {
  font: inherit;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  width: 100%;
}
.subscribe button.primary { margin-top: 0.6rem; padding: 0.6rem 1rem; }
.subscribe .consent { font-size: 0.76rem; line-height: 1.4; margin: 0.5rem 0 0; }
.subscribe-done { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--good) !important; margin: 0; }
.subscribe-error { color: var(--bad) !important; font-size: 0.84rem; margin: 0.4rem 0 0; }
.mini-rows { list-style: none; margin: 0; padding: 0; }
.mini-rows li { border-top: 1px solid var(--border); }
.mini-rows li:first-child { border-top: 0; }
.mini-rows a { display: block; padding: 0.55rem 0; color: var(--text); text-decoration: none; }
.mini-rows a:hover .mini-title { color: var(--accent); }
.mini-title { display: block; font-family: var(--serif); font-weight: 700; font-size: 0.95rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-meta { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.8rem; margin-top: 0.1rem; }
.mini-meta span { color: var(--accent); font-weight: 700; }
.side-box.callout h3 { font-size: 1.15rem; }

/* /search */
.hit-list { list-style: none; margin: 0; padding: 0; }
.hit-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.15rem 1.25rem; padding: 0.65rem 0; border-bottom: 1px solid var(--border); }
.hit-title { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: var(--text); text-decoration: none; }
.hit-title:hover { color: var(--accent); }
.hit-meta { font-size: 0.84rem; color: var(--text-dim); }

/* /results filters, /sell note */
.filter-note { font-size: 0.9rem; margin: 0 0 0.9rem; color: var(--text-dim); }
button.linklike { font: inherit; font-weight: 700; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.free-note { margin: 0 0 1.25rem; font-size: 0.95rem; line-height: 1.55; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .hero-skeleton { min-height: 0; aspect-ratio: 4 / 5; }
  .hero-body { padding: 1.15rem 1.15rem 1.35rem; }
  .latest { grid-template-columns: 1fr; gap: 1rem; }
  .latest-photo { order: -1; position: static; }
  .latest-img { aspect-ratio: 16 / 9; }
  .latest-row { grid-template-columns: 1fr auto; padding-left: 0.6rem; }
  .latest-title { grid-column: 1 / -1; }
  .latest-date { text-align: right; min-width: 0; }
  .stream-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
}
.lease-card .lease-allin { font-size: 0.8rem; color: var(--text-dim); margin: 0; }
