/* =========================================================================
   Cars for Collectors - design system
   Anthracite / warm off-white / racing green. Editorial, quiet, precise.
   ========================================================================= */

@font-face {
  font-family: "Playfair Display";
  src: url("/static/fonts/playfair-display-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/static/fonts/playfair-display-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/static/fonts/playfair-display-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/static/fonts/playfair-display-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --ink: #14161a;
  --ink-2: #1e2228;
  --ink-3: #33383f;
  --paper: #f4efe6;
  --paper-2: #fbf8f2;
  --paper-3: #efe8db;
  --green: #17513a;
  --green-2: #1f6a4c;
  --green-soft: #dbe7df;
  --gold: #a9812f;
  --red: #8d2f2f;
  --line: rgba(20, 22, 26, .13);
  --line-soft: rgba(20, 22, 26, .07);
  --muted: #6d6a63;
  --radius: 2px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 1px 2px rgba(20, 22, 26, .06), 0 8px 24px -16px rgba(20, 22, 26, .3);
  --shadow-md: 0 2px 6px rgba(20, 22, 26, .07), 0 24px 48px -32px rgba(20, 22, 26, .45);
  --maxw: 1300px;
  --gutter: clamp(1.15rem, 4vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -.012em; margin: 0 0 .5em; line-height: 1.12; }
h1 { font-size: clamp(2.1rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; margin: 0 auto; }
.wide { max-width: 1500px; }

.eyebrow, .label {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.eyebrow--green { color: var(--green); }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.nowrap { white-space: nowrap; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --------------------------------------------------------------- preview bar */
.previewbar {
  background: var(--ink);
  color: #efeae1;
  font-size: .78rem;
  letter-spacing: .02em;
}
.previewbar .container {
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
  min-height: 38px; padding-top: .35rem; padding-bottom: .35rem;
}
.previewbar__left { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.previewbar__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); display: inline-block; }
.previewbar__right { display: flex; align-items: center; gap: 1rem; }
.previewbar a { color: #efeae1; border-bottom: 1px solid rgba(255,255,255,.35); }
.previewbar a:hover { color: #fff; border-color: #fff; }
.modechip {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  border: 1px solid rgba(255,255,255,.4); padding: .1rem .45rem; border-radius: 1px;
}
.modechip--demo { background: rgba(169,129,47,.22); border-color: rgba(169,129,47,.8); }

/* ------------------------------------------------------------------- header */
.siteheader {
  position: sticky; top: 0; z-index: 60;
  background: rgba(244, 239, 230, .93);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.siteheader__inner {
  display: flex; align-items: center; gap: 2rem; min-height: 76px;
}
.wordmark { display: flex; align-items: center; gap: .65rem; flex: 0 1 auto; min-width: 0; }
.wordmark__mark { width: 34px; height: 34px; flex: 0 0 34px; }
.wordmark__text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.wordmark__name {
  font-family: var(--serif); font-size: 1.12rem; letter-spacing: .01em; font-weight: 500;
}
.wordmark__sub {
  font-size: .56rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: .32rem;
}
.mainnav { display: flex; align-items: center; gap: 1.55rem; margin-left: auto; }
.mainnav a {
  font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 600;
  padding: .35rem 0; border-bottom: 1px solid transparent;
}
.mainnav a:hover { border-color: var(--green); }
.mainnav a.is-active { border-color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: .7rem; margin-left:.4rem; }
.header-actions .btn { white-space: nowrap; }
.header-actions form { margin: 0; }
.langsw {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  border: 1px solid var(--line); padding: .34rem .55rem; background: transparent; color: var(--ink);
}
.langsw:hover { border-color: var(--ink); color: var(--ink); }
.burger {
  display: none; background: transparent; border: 1px solid var(--line); padding: .45rem .6rem;
  font: inherit; font-size: .8rem; cursor: pointer; letter-spacing: .08em; text-transform: uppercase;
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; padding: .85rem 1.5rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; transition: all .18s ease; text-align: center;
  background: var(--green); color: #fdfbf7;
}
.btn:hover { background: var(--green-2); color: #fff; }
.btn--dark { background: var(--ink); color: var(--paper-2); }
.btn--dark:hover { background: var(--ink-3); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper-2); }
.btn--light { background: rgba(255,255,255,.9); color: var(--ink); border-color: rgba(255,255,255,.6); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--sm { padding: .55rem .95rem; font-size: .72rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; }
.btn--link {
  background: none; border: 0; padding: 0; color: var(--green); text-transform: none;
  letter-spacing: 0; font-size: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.linkarrow { font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.linkarrow::after { content: " →"; }

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative; min-height: clamp(500px, 68vh, 700px); display: flex; align-items: flex-end;
  background: var(--ink-2); color: #f7f3ec; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transform: scale(1.02); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,12,15,.55) 0%, rgba(10,12,15,.15) 32%, rgba(10,12,15,.86) 100%);
}
.hero .container { position: relative; z-index: 2; padding-bottom: clamp(1.6rem, 4vw, 3.2rem); padding-top: clamp(3rem, 8vw, 5.5rem); }
.hero__inner { max-width: 900px; }
.hero__eyebrow { color: rgba(247,243,236,.85); }
.hero__title { color: #fdfaf4; margin: .7rem 0 1rem; }
.hero__title em { font-style: italic; color: #e8dcc2; }
.hero__lede { font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 42ch; color: rgba(247,243,236,.92); }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.9rem; }
.hero__stats {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px;
  margin-top: clamp(2rem, 4vw, 3.4rem); border-top: 1px solid rgba(247,243,236,.28);
}
.hero__stat { padding: 1.1rem 1.2rem 0 0; }
.hero__stat .label { color: rgba(247,243,236,.82); }
.hero__stat .val { font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.6rem); margin-top: .3rem; color: #fdfaf4; }
.hero__stat .sub { font-size: .78rem; color: rgba(247,243,236,.85); }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 1.4rem; z-index: 2;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(247,243,236,.7);
}

/* ---------------------------------------------------------------- comin soon strip */
.comingstrip { background: var(--ink); color: #efeae1; padding: clamp(1.6rem, 3vw, 2.4rem) 0; }
.comingstrip .container { display: flex; align-items: flex-end; padding-top: 1.2rem; padding-bottom: 1.2rem; gap: 2rem; flex-wrap: wrap; justify-content: space-between; }
.comingstrip__actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.comingstrip__head { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem); color: #fdfaf4; }
.comingstrip__text { max-width: 60ch; color: rgba(239,234,225,.85); font-size: .95rem; }
.comingstrip__badge {
  border: 1px solid rgba(239,234,225,.4); padding: .5rem .8rem; font-size: .7rem;
  letter-spacing: .16em; text-transform: uppercase;
}

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(2.6rem, 5.2vw, 4.6rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3.4rem) 0; }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #f0ebe2; }
.section--ink h2, .section--ink h3 { color: #fdfaf4; }
.sectionhead {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.6rem); border-bottom: 1px solid var(--line); padding-bottom: 1rem;
}
.section--ink .sectionhead { border-color: rgba(240,235,226,.22); }
.sectionhead__title { margin: 0; }
.sectionhead__sub { color: var(--muted); font-size: .92rem; margin-top: .4rem; }
.section--ink .sectionhead__sub { color: rgba(240,235,226,.72); }

/* --------------------------------------------------------------------- cards */
.grid { display: grid; gap: clamp(1.1rem, 2.2vw, 2rem); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.lotcard { position: relative; display: flex; flex-direction: column; background: transparent; }
.lotcard__media {
  position: relative; overflow: hidden; background: var(--paper-3); aspect-ratio: 4 / 3;
}
.lotcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.lotcard:hover .lotcard__media img { transform: scale(1.045); }
.lotcard__media--wide { aspect-ratio: 16 / 10; }
.lotcard__flags { position: absolute; top: .6rem; left: .6rem; display: flex; gap: .28rem; flex-wrap: wrap; z-index: 2; max-width: calc(100% - 1.2rem); }
.flag {
  font-size: .58rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 700;
  padding: .22rem .45rem; background: rgba(20,22,26,.82); color: #f3eee5; backdrop-filter: blur(3px);
}
.flag--demo { background: rgba(169,129,47,.92); color: #17140c; }
.flag--live { background: var(--green); color: #f4f1e9; }
.flag--ended { background: rgba(20,22,26,.6); }
.flag--upcoming { background: rgba(20,22,26,.72); }
.flag--sealed { background: rgba(20,22,26,.85); color: #e5d7b4; }
.lotcard__body { padding: .95rem 0 0; display: flex; flex-direction: column; gap: .3rem; }
.lotcard__make { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.lotcard__title { font-family: var(--serif); font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.2; margin: 0; }
.lotcard__meta { font-size: .82rem; color: #57544e; }
.lotcard__foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-top: .55rem; padding-top: .55rem; border-top: 1px solid var(--line-soft);
}
.lotcard__price { font-family: var(--serif); font-size: 1.12rem; }
.lotcard__price small { font-family: var(--sans); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; }
.lotcard__timer { font-size: .82rem; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.lotcard__timer.is-urgent { color: var(--red); font-weight: 600; }

/* --------------------------------------------------------------- model pillars */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line); }
.pillar { background: var(--paper-2); padding: clamp(1.3rem, 2.4vw, 2rem); }
.pillar__num { font-size: .7rem; letter-spacing: .18em; color: var(--green); font-weight: 700; }
.pillar h3 { margin: .7rem 0 .5rem; font-size: 1.18rem; }
.pillar p { font-size: .9rem; color: var(--muted); }

/* ---------------------------------------------------------------- circles teaser */
.ciracle { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.ciracle__media { position: relative; }
.ciracle__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.ciracle__quote {
  position: absolute; left: -1px; bottom: -1px; background: var(--paper-2); padding: 1.2rem 1.5rem;
  max-width: 78%; border-top: 1px solid var(--line); border-right: 1px solid var(--line);
}
.ciracle__quote p { font-family: var(--serif); font-size: 1.05rem; font-style: italic; margin: 0; }
.ciracle__quote span { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: .5rem; font-family: var(--sans); font-style: normal; }
.connection-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.connection-list li { display: flex; gap: .8rem; padding: .85rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.connection-list .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-top: .5rem; flex: 0 0 7px; }
.connection-list em { color: var(--muted); font-style: normal; display: block; font-size: .84rem; }

/* ---------------------------------------------------------------- journal */
.journalcard { display: flex; flex-direction: column; }
.journalcard img { aspect-ratio: 16 / 10; object-fit: cover; }
.journalcard__kick { margin-top: .9rem; }
.journalcard h3 { margin: .4rem 0; }
.journalcard p { font-size: .9rem; color: var(--muted); }

/* ------------------------------------------------------------------ fee table */
.feetable { width: 100%; border-collapse: collapse; font-size: .92rem; }
.feetable th, .feetable td { text-align: left; padding: .85rem .6rem; border-bottom: 1px solid var(--line); }
.feetable th { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.feetable td.num, .feetable th.num { text-align: right; font-variant-numeric: tabular-nums; }
.bigrow { font-family: var(--serif); font-size: 1.15rem; }

/* ------------------------------------------------------------- calculator */
.calcwrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.calccard { background: var(--paper-2); border: 1px solid var(--line); padding: clamp(1.3rem, 3vw, 2.2rem); }
.calccard--dark { background: var(--ink); color: #f0ebe2; border-color: var(--ink); }
.calccard--dark h3, .calccard--dark .label { color: #fdfaf4; }
.calcrow { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line-soft); font-size: .95rem; }
.calccard--dark .calcrow { border-color: rgba(240,235,226,.16); }
.calcrow .num { font-variant-numeric: tabular-nums; font-weight: 600; }
.calcrow--total { border-bottom: 0; border-top: 1px solid var(--ink); margin-top: .4rem; padding-top: .9rem; font-family: var(--serif); font-size: 1.15rem; }
.calccard--dark .calcrow--total { border-top-color: rgba(240,235,226,.4); }
.field { display: block; margin-bottom: 1rem; }
.field--bare { margin-top: .2rem; }
.field > span { display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: #4d4a45; margin-bottom: .4rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; font-family: var(--sans); font-size: .95rem; padding: .7rem .8rem;
  border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: var(--radius);
  appearance: none;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(23,81,58,.35); outline-offset: 0; border-color: var(--green); }
textarea { min-height: 120px; resize: vertical; }
.calccard--dark input { background: rgba(255,255,255,.06); color: #fdfaf4; border-color: rgba(240,235,226,.3); }
.inputbig { font-family: var(--serif); font-size: 1.65rem !important; padding: .78rem .9rem !important; line-height: 1.25 !important; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .7rem; }
.chip {
  font-size: .74rem; letter-spacing: .06em; padding: .3rem .6rem; border: 1px solid var(--line);
  background: transparent; cursor: pointer; font-family: var(--sans); color: var(--ink);
}
.chip:hover, .chip.is-active { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }
.quote-out { font-size: .8rem; color: var(--muted); margin-top: .5rem; }
.notice--tight { padding: .7rem .9rem; font-size: .85rem; }
.notice {
  border-left: 3px solid var(--green); background: rgba(23,81,58,.06); padding: .9rem 1.1rem;
  font-size: .88rem; margin: 1.2rem 0;
}
.notice--warn { border-color: var(--gold); background: rgba(169,129,47,.1); }
.notice--demo { border-color: var(--ink); background: rgba(20,22,26,.05); }
.notice--err { border-color: var(--red); background: rgba(141,47,47,.08); }

/* ----------------------------------------------------------------- browse */
.browsehead { background: var(--ink); color: #f0ebe2; padding: clamp(2rem, 4vw, 3.4rem) 0 clamp(1.6rem, 3vw, 2.4rem); }
.browsehead h1 { color: #fdfaf4; margin-bottom: .4rem; }
.browsehead p { color: rgba(240,235,226,.75); max-width: 60ch; }
.filterbar {
  background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 1rem 0;
  position: sticky; top: 76px; z-index: 40;
}
.filterbar__row { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.searchbox { flex: 1 1 260px; display: flex; gap: .5rem; }
.searchbox input { background: #fff; }
.filtertoggle { display: none; }
.filterpanel { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; margin-top: 1rem; }
.filterpanel .field { margin-bottom: .2rem; }
.filterpanel__actions { grid-column: 1 / -1; display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.resultmeta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0 .4rem; flex-wrap: wrap; }
.resultmeta .count { font-family: var(--serif); font-size: 1.1rem; }

/* -------------------------------------------------------------------- lot */
.lothead { padding: clamp(1.4rem, 3vw, 2.4rem) 0 1rem; }
.breadcrumbs { font-size: .76rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.breadcrumbs a:hover { color: var(--green); }
.lothead h1 { margin: .6rem 0 .35rem; font-size: clamp(1.9rem, 3.6vw, 3rem); }
.lothead__sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 1.7vw, 1.35rem); color: #57544e; }
.lotbody { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(360px, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.gallery__main { position: relative; background: var(--ink-2); }
.gallery__main { background: #e9e3d7; }
.gallery__main img { width: 100%; height: auto; max-height: 68vh; object-fit: contain; display: block; }
.gallery__main img[src=''] { min-height: 320px; }
.gallery__thumbs { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.gallery__thumb { border: 1px solid transparent; padding: 0; background: none; cursor: pointer; width: 96px; }
.gallery__thumb img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gallery__thumb.is-active { border-color: var(--ink); }
.gallery__count { position: absolute; right: .7rem; bottom: .7rem; background: rgba(20,22,26,.75); color: #f0ebe2; font-size: .7rem; letter-spacing: .1em; padding: .2rem .5rem; }
.creditline { font-size: .68rem; color: var(--muted); margin-top: .5rem; }
.bidpanel { position: sticky; top: 150px; background: var(--paper-2); border: 1px solid var(--line); padding: clamp(1.1rem, 2.4vw, 1.8rem); box-shadow: var(--shadow-sm); }
.bidpanel__price { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; }
.bidpanel__pricelabel { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.bidpanel__timer { display: flex; align-items: baseline; gap: .5rem; margin: .9rem 0; font-variant-numeric: tabular-nums; }
.bidpanel__timer .t { font-size: 1.35rem; font-weight: 600; }
.bidpanel__timer .l { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bidpanel__meta { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); padding: .7rem 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.bidform { margin-top: 1rem; }
.bidform__hint { font-size: .76rem; color: var(--muted); margin-top: .45rem; }
.reserveflag { display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.reserveflag--met { color: var(--green); }
.reserveflag--not { color: var(--gold); }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--line); }
.specs div { padding: .7rem 0; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.specs span:first-child { color: var(--muted); }
.specs span:last-child { font-weight: 500; text-align: right; }
.docs { list-style: none; padding: 0; margin: 0; }
.docs li { padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
.docs .tag { font-size: .64rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; padding: .15rem .4rem; border: 1px solid var(--line); }
.tag--documented { border-color: var(--green); color: var(--green); }
.tag--seller_statement { border-color: var(--gold); color: var(--gold); }
.tag--open_question { border-color: var(--red); color: var(--red); }
.docs strong { display: block; margin: .45rem 0 .2rem; font-weight: 600; }
.docs p { font-size: .88rem; color: var(--muted); }
.bidtable { width: 100%; border-collapse: collapse; font-size: .88rem; }
.bidtable th { text-align: left; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: .6rem .5rem; border-bottom: 1px solid var(--line); }
.bidtable td { padding: .6rem .5rem; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.bidtable tr.ismine td { background: rgba(23,81,58,.06); font-weight: 600; }
.bidtable td.rej { color: var(--red); font-size: .8rem; }
.qaitem { padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
.qaitem .q { font-weight: 600; }
.qaitem .a { font-size: .9rem; color: var(--ink-3); margin-top: .4rem; padding-left: 1rem; border-left: 2px solid var(--green-soft); }
.sellerbox { border: 1px solid var(--line); padding: 1.1rem; background: #fff; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper-2); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1rem; }
.endorse { border: 1px solid var(--line); background: #fff; padding: 1rem; }
.endorse__kind { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green); font-weight: 700; }
.endorse p { font-size: .9rem; margin: .4rem 0 0; }
.endorse .who { font-size: .78rem; color: var(--muted); margin-top: .5rem; }
.tabnav { display: flex; gap: 1.2rem; border-bottom: 1px solid var(--line); margin: 2.5rem 0 1.2rem; flex-wrap: wrap; }
.tabnav a { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: .6rem 0; color: var(--muted); }
.tabnav a:hover { color: var(--ink); }
.block { margin-bottom: clamp(2rem, 4vw, 3rem); }
.block h2 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
.prose { font-size: .97rem; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.1rem; }
.prose li { margin-bottom: .4rem; }

/* ------------------------------------------------------------------ status track */
.track { display: flex; gap: 0; list-style: none; padding: 0; margin: 1.5rem 0; flex-wrap: wrap; }
.track li { flex: 1 1 150px; position: relative; padding-top: 2rem; font-size: .82rem; color: var(--muted); }
.track li::before {
  content: ""; position: absolute; top: .55rem; left: 0; right: 0; height: 2px; background: var(--line);
}
.track li::after {
  content: ""; position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--line);
}
.track li.done { color: var(--ink); }
.track li.done::before { background: var(--green); }
.track li.done::after { background: var(--green); border-color: var(--green); }
.track li.current::after { background: var(--paper); border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,81,58,.15); }
.track li.current { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------------ tables */
.datatable { width: 100%; border-collapse: collapse; font-size: .88rem; background: var(--paper-2); }
.datatable th { text-align: left; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: .7rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.datatable td { padding: .65rem .6rem; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.datatable tr:hover td { background: rgba(23,81,58,.04); }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); }

.badge { display: inline-block; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: .18rem .45rem; border: 1px solid var(--line); }
.badge--live { border-color: var(--green); color: var(--green); }
.badge--upcoming { border-color: var(--gold); color: var(--gold); }
.badge--ended, .badge--sold { border-color: var(--muted); color: var(--muted); }
.badge--review { border-color: var(--red); color: var(--red); }
.badge--ok { border-color: var(--green); color: var(--green); }

/* ---------------------------------------------------------------- account/admin */
.layout-aside { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.sidenav { position: sticky; top: 150px; }
.sidenav a { display: block; padding: .55rem 0; font-size: .85rem; border-bottom: 1px solid var(--line-soft); }
.sidenav a:hover, .sidenav a.is-active { color: var(--green); font-weight: 600; }
.pagehead { padding: clamp(1.8rem, 4vw, 3rem) 0 1.2rem; border-bottom: 1px solid var(--line); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.pagehead h1 { margin-bottom: .3rem; }
.pagehead p { color: var(--muted); max-width: 70ch; }
.statgrid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line); margin-bottom: 2rem; }
.stat { background: var(--paper-2); padding: 1.1rem; }
.stat .n { font-family: var(--serif); font-size: 1.9rem; display: block; }
.stat .l { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------------------------------------------- forms */
.formgrid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.formgrid .full { grid-column: 1 / -1; }
.checkline { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; }
.checkline input { width: auto; margin-top: .28rem; }

/* -------------------------------------------------------------------- foot */
.sitefooter { background: var(--ink); color: rgba(240,235,226,.78); padding: clamp(2.6rem, 5vw, 4rem) 0 1.4rem; font-size: .88rem; }
.sitefooter h4 { color: #fdfaf4; font-family: var(--sans); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .9rem; }
.sitefooter a { color: rgba(240,235,226,.78); }
.sitefooter a:hover { color: #fff; }
.footgrid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); }
.footlist { list-style: none; padding: 0; margin: 0; }
.footlist li { margin-bottom: .45rem; }
.footbottom { border-top: 1px solid rgba(240,235,226,.16); margin-top: 2.4rem; padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .76rem; color: rgba(240,235,226,.55); }
.modefoot { display: flex; gap: .6rem; align-items: center; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

/* ------------------------------------------------------------------- toast */
#toast {
  position: fixed; left: 50%; bottom: 1.4rem; transform: translate(-50%, 140%);
  background: var(--ink); color: var(--paper-2); padding: .8rem 1.2rem; font-size: .88rem;
  z-index: 200; transition: transform .3s cubic-bezier(.2,.7,.2,1); max-width: min(92vw, 520px);
  box-shadow: var(--shadow-md);
}
#toast.show { transform: translate(-50%, 0); }
#toast.is-error { background: var(--red); }

/* ------------------------------------------------------------------ dialog */
dialog { border: 0; padding: 0; max-width: min(92vw, 480px); background: var(--paper-2); color: var(--ink); box-shadow: var(--shadow-md); }
dialog::backdrop { background: rgba(12,14,17,.6); }
.dialog__inner { padding: 1.6rem; }
.dialog__title { font-family: var(--serif); font-size: 1.4rem; margin-bottom: .6rem; }

/* ---------------------------------------------------------------- utilities */
.stack > * + * { margin-top: 1rem; }
.flexrow { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.spacer { flex: 1; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skeleton { background: linear-gradient(90deg, var(--paper-3), var(--paper-2), var(--paper-3)); background-size: 200% 100%; animation: sk 1.4s infinite; }
@keyframes sk { 0% { background-position: 0 0 } 100% { background-position: -200% 0 } }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pillars { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .lotbody { grid-template-columns: 1fr; }
  .bidpanel { position: static; }
  .footgrid { grid-template-columns: 1fr 1fr; }
  .filterpanel { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .statgrid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .layout-aside { grid-template-columns: 1fr; }
  .sidenav { position: static; display: flex; gap: 1rem; flex-wrap: wrap; }
  .sidenav a { border: 0; }
}

@media (max-width: 820px) {
  .mainnav { display: none; }
  .wordmark__sub { display: none; }
  .wordmark__name { font-size: 1.02rem; }
  .wordmark__mark { width: 30px; height: 30px; flex: 0 0 30px; }
  .header-actions { gap: .45rem; margin-left: auto; }
  .header-actions .btn { padding: .5rem .7rem; font-size: .68rem; letter-spacing: .06em; }
  .burger { padding: .5rem .55rem; font-size: .7rem; }
  .lotcard__media { aspect-ratio: 3 / 2; }
  .hero__media img { object-position: center 42%; }
  .mainnav.is-open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.4rem;
    gap: .2rem; align-items: flex-start;
  }
  .mainnav.is-open a { width: 100%; padding: .7rem 0; border-bottom: 1px solid var(--line-soft); }
  .burger { display: inline-block; }
  .siteheader { position: sticky; }
  .siteheader__inner { min-height: 64px; gap: 1rem; }
  .filterbar { position: static; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .ciracle { grid-template-columns: 1fr; }
  .calcwrap { grid-template-columns: 1fr; }
  .hero { min-height: 82vh; }
  .hero__stats { grid-template-columns: 1fr; gap: 0; }
  .hero__stat { padding: .9rem 0; border-bottom: 1px solid rgba(247,243,236,.18); }
  .hero__scroll { display: none; }
  .sectionhead { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .formgrid { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .comingstrip .container { flex-direction: column; align-items: flex-start; }
  .previewbar .container { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .track li { flex: 1 1 100%; padding: .6rem 0 .6rem 1.6rem; }
  .track li::before { top: 0; bottom: 0; left: .32rem; right: auto; width: 2px; height: auto; }
  .track li::after { top: .85rem; left: 0; }
}

@media (max-width: 560px) {
  .filterpanel { grid-template-columns: 1fr; }
  .container { padding-left: 1.15rem; padding-right: 1.15rem; }
  .comingstrip .container { align-items: flex-start; gap: 1rem; }
  .comingstrip__actions { width: 100%; }
  .previewbar { font-size: .72rem; }
  .previewbar__long { display: none; }
  .previewbar__short { display: inline !important; }
  .previewbar__right { gap: .55rem; flex-wrap: wrap; }
  .previewbar .modechip:nth-of-type(2) { display: none; }
}

@media (max-width: 520px) {
  .footgrid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
  .gallery__thumb { width: 72px; }
  .btn { width: 100%; }
  .hero__cta .btn { width: 100%; }
  .bidpanel { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* --------------------------------------------------------------- print (invoice) */
@media print {
  .previewbar, .siteheader, .sitefooter, .btn, .no-print { display: none !important; }
  body { background: #fff; }
  .samplemark { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
}

/* ------------------------------------------------------------- fee caps */
.capbox {
  border: 1px solid var(--line);
  background: #fff;
  padding: 1rem 1.1rem;
  margin-bottom: 1.6rem;
}
.capbox__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.capbox__label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #4d4a45; margin: 0 0 .25rem; font-weight: 600; }
.capbox__value { font-family: var(--serif); font-size: 1.12rem; margin: 0; }
.capbox__value span { color: var(--muted); }
.capbox__value--muted { color: #57544e; }
.capbox__value strong { color: var(--green); }
.rule-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .12rem .4rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  vertical-align: middle;
  margin-left: .35rem;
  opacity: .85;
}
.rule-tag--min { color: #a9812f; }
.rule-tag--pct { color: #6f6b64; }
.rule-tag--cap { color: #17513a; border-width: 2px; }
@media (max-width: 560px) { .capbox__grid { grid-template-columns: 1fr; } }
