/* Charte octavie.be : vert sauge, brique, pêche, crème — Caudex / Lato / Montserrat */
:root {
  --sage: #687f73;
  --sage-dark: #546960;
  --sage-soft: #e7ede9;
  --brick: #a63f27;
  --brick-dark: #8c3420;
  --peach: #deb08c;
  --cream: #fff2e8;
  --brown: #967459;
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --panel: #ffffff;
  --line: #e8e1da;
  --text: #343434;
  --muted: #6f6a66;
  --ok: #3f7d5c;
  --danger: #b3261e;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(52, 52, 52, .08);
  --serif: 'Caudex', Georgia, 'Times New Roman', serif;
  --body: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --caps: 'Montserrat', 'Lato', system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

a { color: var(--brick); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; color: var(--text); }

.eyebrow {
  font-family: var(--caps);
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 12px;
}

/* ---------- Buttons & forms ---------- */

.btn, button {
  font-family: var(--caps);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  background: var(--brick);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s, color .15s, border-color .15s, transform .05s;
}
.btn:hover, button:hover { background: var(--brick-dark); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: not-allowed; }
button:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }

.btn-sage { background: var(--sage); }
.btn-sage:hover { background: var(--sage-dark); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-small { padding: 8px 16px; font-size: 12px; }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid #ecc9c5; }
.btn-danger:hover { background: #fbeeec; }
.btn-follow { background: var(--cream); color: var(--brown); border: 1px solid #f0dccb; }
.btn-follow:hover { background: #fbe6d6; }
.btn-follow[aria-pressed="true"] { background: var(--sage-soft); color: var(--sage-dark); border-color: #cfdcd4; }

label { display: block; font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
input, textarea, select {
  display: block;
  width: 100%;
  margin-top: 6px;
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: #fff;
  border: 1px solid #d9d2cb;
  border-radius: 10px;
  padding: 11px 13px;
}
textarea { resize: vertical; min-height: 110px; }
input[type="checkbox"] { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--sage); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.help { font-weight: 400; font-size: 13px; color: var(--muted); display: block; margin-top: 4px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.form-error { color: var(--danger); font-size: 14px; min-height: 1.2em; margin: 4px 0 10px; }

/* ---------- Header ---------- */

.topbar {
  background: var(--sage);
  color: #fff;
  font-family: var(--caps);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 10px clamp(16px, 4vw, 48px);
  display: flex;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar span { white-space: nowrap; }
.topbar .contact { display: flex; gap: 8px 24px; flex-wrap: wrap; }
@media (max-width: 720px) { .topbar .contact span:not(:first-child) { display: none; } }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.brand img { height: 42px; width: auto; }
.brand-sub { font-family: var(--caps); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--sage); padding-left: 14px; border-left: 1px solid var(--line); }
.account { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); text-align: right; }
.account strong { color: var(--text); }
.icon-btn { padding: 9px 12px; }
@media (max-width: 640px) {
  .account .hello, .brand-sub { display: none; }
}

/* ---------- Hero ---------- */

.hero-wrap { padding: 12px; }
.hero {
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(222, 176, 140, .95), rgba(222, 176, 140, .85)), var(--peach);
  color: #fff;
  padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 60px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 0 0 40px rgba(255, 255, 255, .06), 0 0 0 80px rgba(255, 255, 255, .04);
}
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; align-items: center; }
.hero:has(.hero-auction[hidden]) { grid-template-columns: 1fr; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; } }
.hero-text { position: relative; z-index: 1; }
.hero-auction { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
.hero-auction .see-more { align-self: center; }
.card.featured { box-shadow: 0 24px 60px rgba(90, 50, 20, .25); border: 0; color: var(--text); }
.card.featured .card-media { aspect-ratio: 16 / 9; }
.card.featured .card-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card.featured .badge { background: var(--brick); }
.card.featured .price { font-size: 38px; }

/* /enchere/… pages show a single auction */
body:not([data-auction-id=""]) .home-only { display: none !important; }
body[data-auction-id=""] .single-only { display: none !important; }
body:not([data-auction-id=""]) .grid { grid-template-columns: minmax(0, 640px); justify-content: center; padding-top: 8px; }
.back-link { max-width: 640px; margin: 24px auto 12px; padding: 0 16px; font-family: var(--caps); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.back-link a { text-decoration: none; color: var(--sage); }

.card-link { display: block; height: 100%; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--brick); }
.card-actions { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 14px; }
.card-actions .history { margin-top: 0; flex: 1; }
.card-actions .history[hidden] + .share-btn { margin-left: auto; }
.share-btn { font-size: 14px; white-space: nowrap; }
#list-section { scroll-margin-top: 90px; }

.hero .eyebrow { color: #fff; }
.hero h1 { color: #fff; font-size: clamp(36px, 6vw, 64px); max-width: 760px; }
.hero p.lead { font-size: 18px; max-width: 620px; margin: 16px 0 26px; font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.hero .btn-light { background: #fff; color: var(--brick); }
.hero .btn-light:hover { background: var(--cream); }
.hero .btn-light[aria-pressed="true"] { background: var(--sage); color: #fff; }

.rules { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; padding: 22px 16px 6px; font-family: var(--caps); font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--sage); letter-spacing: .04em; }
.rules span::before { content: '•'; color: var(--peach); margin-right: 8px; }

.section-title { text-align: center; padding: 34px 16px 18px; }
.section-title h2 { font-size: clamp(30px, 4vw, 42px); }

/* ---------- Auction cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 28px;
  padding: 8px clamp(16px, 4vw, 48px) 64px;
  max-width: 1320px;
  margin: 0 auto;
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--cream); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--sage);
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--caps);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.card.ended .badge { background: var(--brown); }
.card .btn-follow { position: absolute; top: 12px; right: 12px; padding: 8px 14px; font-size: 11px; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }

.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: clamp(26px, 3vw, 32px); }
.card-desc { color: var(--muted); white-space: pre-line; margin: 8px 0 18px; font-size: 15px; }

.price-box {
  background: var(--cream);
  border-radius: 14px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: auto;
}
.price-box .label { display: block; font-family: var(--caps); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brown); }
.price { font-family: var(--serif); font-weight: 700; font-size: 42px; line-height: 1.05; display: block; margin: 4px 0; color: var(--brick); }
.leader { font-size: 14px; color: var(--muted); }
.leader b { color: var(--text); }
.timer { text-align: right; border-left: 1px solid #f0dccb; padding-left: 14px; }
.timer strong { display: block; font-family: var(--caps); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 4px 0 2px; color: var(--text); }
.timer .end-date { font-size: 12px; color: var(--muted); }
.timer.urgent strong { color: var(--brick); }

.status-line { margin: 12px 0 0; border-radius: 10px; padding: 10px 14px; font-size: 14px; font-weight: 700; background: var(--bg-soft); color: var(--muted); }
.status-line.leading { background: var(--sage-soft); color: var(--sage-dark); }
.status-line.won { background: #fbe9e4; color: var(--brick); }
.status-line .btn { margin-top: 10px; }
.status-line .link-btn { display: inline; margin-left: 4px; }

.bid-form { display: flex; gap: 10px; margin-top: 14px; align-items: stretch; }
.bid-input { position: relative; flex: 1; margin: 0; }
.bid-input input { margin: 0; height: 100%; padding-right: 34px; font-size: 18px; font-weight: 700; }
.bid-input span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }

.value-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.value-line s { font-family: var(--serif); font-size: 20px; color: var(--text); text-decoration-color: var(--brick); text-decoration-thickness: 2px; }
.price .saving { font-size: 13px; vertical-align: middle; position: relative; top: -4px; }
.saving { background: var(--brick); color: #fff; font-family: var(--caps); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.buy-now { margin: 14px 0 0; padding: 14px; border: 1px dashed #cfdcd4; border-radius: 12px; background: var(--sage-soft); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 14px; color: var(--sage-dark); }
.buy-now-label { font-weight: 700; }
.buy-now-btn { width: 100%; }
.buy-now small { color: var(--muted); font-size: 12px; }

.history { margin-top: 14px; font-size: 14px; color: var(--muted); }
.history summary { cursor: pointer; font-weight: 700; color: var(--sage); }
.history ol { list-style: none; padding: 0; margin: 10px 0 0; }
.history li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.history li:first-child { color: var(--text); font-weight: 700; }
.history time { font-size: 12px; }

.link-btn { background: none; padding: 0; color: var(--brick); text-transform: none; letter-spacing: 0; font-family: var(--body); font-size: inherit; font-weight: 700; text-decoration: underline; border-radius: 0; }
.link-btn:hover { background: none; color: var(--brick-dark); }

.empty { text-align: center; color: var(--muted); padding: 20px 16px 80px; max-width: 560px; margin: 0 auto; }
.empty h2 { margin-bottom: 8px; }

footer { background: var(--sage); color: #fff; padding: 40px 16px; text-align: center; font-size: 14px; }
footer img { height: 40px; width: auto; margin: 0 auto 12px; filter: brightness(0) invert(1); }
footer a { color: #fff; }

/* ---------- Dialog ---------- */

dialog {
  background: #fff;
  color: var(--text);
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
}
dialog::backdrop { background: rgba(52, 52, 52, .55); }
.dialog-inner { padding: 26px; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }
.dialog-head h2 { font-size: 30px; }
.close { background: none; color: var(--muted); font-size: 26px; padding: 2px 10px; }
.close:hover { background: var(--bg-soft); }
.tabs { display: flex; gap: 6px; background: var(--bg-soft); padding: 4px; border-radius: 999px; margin-bottom: 20px; }
.tabs button { flex: 1; background: transparent; color: var(--muted); padding: 10px 12px; font-size: 12px; }
.tabs button:hover { background: #ececec; }
.tabs button[aria-selected="true"] { background: var(--sage); color: #fff; }
.notice { background: var(--cream); border-left: 3px solid var(--peach); padding: 10px 14px; border-radius: 8px; font-size: 14px; margin: 0 0 16px; }
.notice ol { margin: 6px 0 0; padding-left: 20px; }

.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.switch-row p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, calc(100% + 40px));
  visibility: hidden;
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  max-width: calc(100vw - 32px);
  transition: transform .25s, visibility .25s;
  z-index: 100;
  box-shadow: var(--shadow);
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast.error { background: var(--danger); }

/* ---------- Simple pages ---------- */

.simple-page { min-height: 100dvh; display: grid; place-items: center; padding: 16px; background: var(--cream); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 520px; width: 100%; box-shadow: var(--shadow); }
.simple-page h1 { font-size: 36px; margin-bottom: 12px; }
.simple-page img.logo { height: 44px; width: auto; margin-bottom: 18px; }

/* ---------- Admin ---------- */

body.admin { background: var(--bg-soft); }
.admin-main { max-width: 1180px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 64px; }
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-nav button { background: #fff; color: var(--muted); border: 1px solid var(--line); }
.admin-nav button:hover { background: var(--cream); }
.admin-nav button[aria-selected="true"] { background: var(--sage); color: #fff; border-color: var(--sage); }
.admin-section h2 { font-size: 34px; margin-bottom: 16px; }
.admin-section .panel { max-width: none; }
.warn { background: var(--cream); border: 1px solid #f0dccb; color: #6b4d35; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 12px; }

.admin-auction { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.admin-auction:first-child { padding-top: 0; }
.admin-auction:last-child { border-bottom: 0; padding-bottom: 0; }
.admin-auction img, .admin-auction .noimg { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--cream); }
.admin-auction h3 { font-size: 24px; }
.meta { color: var(--muted); font-size: 14px; margin: 4px 0 10px; font-family: var(--body); }
.pill { display: inline-block; font-family: var(--caps); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.pill.active { background: var(--sage-soft); color: var(--sage-dark); }
.pill.ended { background: var(--cream); color: var(--brown); }
.pill.cancelled { background: #fbeeec; color: var(--danger); }
.pill.paid { background: #e3f1e8; color: var(--ok); }
.winner-box { background: var(--cream); border-radius: 12px; padding: 14px; font-size: 14px; margin: 8px 0; }
.winner-box p { margin: 2px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.inline-form input { margin: 0; flex: 1; min-width: 200px; }
@media (max-width: 600px) { .admin-auction { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-family: var(--caps); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tfoot td { font-weight: 700; border-top: 2px solid var(--line); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.kpi span { display: block; color: var(--muted); font-family: var(--caps); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.kpi strong { display: block; font-family: var(--serif); font-weight: 700; font-size: 32px; margin-top: 6px; }
.kpi.accent strong { color: var(--brick); }

.bars { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 90px; gap: 12px; align-items: center; font-size: 14px; }
.bar-track { background: var(--bg-soft); border-radius: 6px; height: 22px; position: relative; overflow: hidden; }
.bar-fill { position: absolute; inset: 0 auto 0 0; background: var(--peach); border-radius: 6px; }
.bar-paid { position: absolute; inset: 0 auto 0 0; background: var(--sage); border-radius: 6px; }
.bar-row .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.legend { display: flex; gap: 18px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
@media (max-width: 520px) { .bar-row { grid-template-columns: 90px 1fr 70px; } }

.share-panel { scroll-margin-top: 100px; background: var(--sage-soft); border-radius: 12px; padding: 18px; margin-bottom: 20px; }
.share-panel h3 { font-size: 22px; margin-bottom: 10px; }
.share-panel textarea { min-height: 170px; font-size: 14px; background: #fff; }

/* Hero: the featured auction must fit on screen with its bid form and buy-now button. */
.hero { padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 52px); }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); }
.hero p.lead { margin: 14px 0 22px; }
.hero-auction { gap: 10px; }
.card.featured .card-media { aspect-ratio: auto; height: clamp(120px, 18vh, 170px); }
.card.featured .card-body { padding: 14px 18px 16px; }
.card.featured .card-title { font-size: 22px; line-height: 1.15; }
.card.featured .card-desc { font-size: 13px; margin: 4px 0 8px; -webkit-line-clamp: 2; line-height: 1.45; }
.card.featured .value-line { margin-bottom: 6px; }
.card.featured .value-line s { font-size: 17px; }
.card.featured .price-box { padding: 10px 14px; }
.card.featured .price { font-size: 30px; margin: 2px 0; }
.card.featured .timer strong { font-size: 18px; }
.card.featured .leader, .card.featured .timer .end-date { font-size: 12px; }
.card.featured .bid-form { margin-top: 10px; }
.card.featured .bid-input input { font-size: 16px; padding-top: 9px; padding-bottom: 9px; }
.card.featured .bid-form button { padding: 10px 18px; }
.card.featured .buy-now { margin-top: 8px; padding: 0; border: 0; background: none; gap: 4px; }
.card.featured .buy-now-label { display: none; }
.card.featured .buy-now-btn { padding: 10px 18px; }
.card.featured .buy-now small { font-size: 11px; }
.card.featured .status-line { padding: 6px 10px; font-size: 12px; margin-top: 8px; }
.card.featured .card-actions { display: none; }
.hero-auction .see-more { padding: 9px 18px; font-size: 12px; }

/* Mobile: the latest auction comes right after the title, so bidding needs no scrolling. */
@media (max-width: 960px) {
  .hero { gap: 14px; }
  .hero-text { display: contents; }
  .hero-text .eyebrow { display: none; }
  .hero-text h1 { order: 1; }
  .hero-auction { order: 2; }
  .hero-text .lead { order: 3; margin: 6px 0 0; }
  .hero-text .hero-actions { order: 4; }
}
@media (max-width: 640px) {
  .topbar { display: none; }
  .site-header { padding-top: 10px; padding-bottom: 10px; }
  .brand img { height: 36px; }
  .hero-wrap { padding: 8px; }
  .hero { padding: 18px 14px 22px; }
  .hero h1 { font-size: 27px; }
  .hero-auction .card.featured .card-media { height: 120px; }
}
.saving { white-space: nowrap; }
.price { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.price .saving { top: 0; }
.status-line.lost { background: var(--cream); color: var(--brown); font-weight: 400; }
.status-line.lost a { font-weight: 700; }
.history li.mine { color: var(--sage-dark); font-weight: 700; }

/* iPhone: no automatic zoom. Safari zooms on any field under 16px, and on double tap. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { touch-action: manipulation; }
input, select, textarea { font-size: 16px !important; }

/* Outbid: impossible to miss */
.status-line.outbid { background: #fbe9e4; color: var(--brick); font-weight: 400; border: 1px solid #f0c4b8; }
.status-line.outbid .btn { margin-top: 8px; }
.card.outbid { border-color: var(--brick); box-shadow: 0 0 0 2px rgba(166, 63, 39, .25), var(--shadow); }
.card.outbid .leader { color: var(--brick); font-weight: 700; }
.card.leading { border-color: var(--sage); box-shadow: 0 0 0 2px rgba(104, 127, 115, .25), var(--shadow); }
.card.leading .leader { color: var(--sage-dark); font-weight: 700; }
