/* mintSketch — live auction room (live.html) and shared auction pieces
 * used by admin.html. Builds on the tokens in styles.css. */

[hidden] {
  display: none !important;
}

button {
  font: inherit;
  color: inherit;
}

button:focus-visible,
.lot-card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* ── Nav + live dot ─────────────────────────────────────────────────── */

.nav-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d92d20;
  flex: none;
  box-shadow: 0 0 0 0 rgba(217, 45, 32, 0.5);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 45, 32, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(217, 45, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 45, 32, 0); }
}

/* ── Room header ────────────────────────────────────────────────────── */

.room {
  padding: 40px 0 8px;
}

.room-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: end;
}

.room-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.room-title {
  margin-top: 14px;
  font-size: clamp(3rem, 6vw, 4.8rem);
}

.room-lede {
  margin-top: 18px;
  max-width: 40ch;
  color: var(--body);
  font-size: 1.05rem;
}

.room-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.room-stats div {
  background: var(--white);
  padding: 18px 16px 20px;
}

.room-stats strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.room-stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.demo-note {
  width: min(var(--wrap), calc(100% - var(--gutter)));
  margin: 22px auto 0;
  padding: 12px 16px;
  background: #fff8e6;
  border: 1px solid #f0d58c;
  color: #6b4e00;
  font-size: 0.92rem;
}

/* ── Tabs ───────────────────────────────────────────────────────────── */

.lots-section {
  padding-top: 36px;
}

.lot-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.lot-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.lot-tab:hover {
  border-color: var(--green);
}

.lot-tab[aria-selected="true"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.lot-tab .count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.78rem;
  text-align: center;
}

.lot-tab[aria-selected="true"] .count {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* ── Lot grid + cards ───────────────────────────────────────────────── */

.lot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.lot-skeleton {
  height: 420px;
  background: linear-gradient(90deg, #ebeae5 0%, #f6f5f1 50%, #ebeae5 100%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.lot-empty {
  padding: 40px 24px;
  background: var(--white);
  border: 1px dashed var(--hair);
  color: var(--body);
  text-align: center;
}

.linkish {
  border: 0;
  background: none;
  padding: 0;
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.lot-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.lot-card:hover {
  border-color: var(--green);
  box-shadow: 0 10px 28px rgba(18, 24, 32, 0.08);
  transform: translateY(-2px);
}

.lot-card.is-closed,
.lot-card.is-sold {
  opacity: 0.86;
}

.lot-card.bumped {
  animation: bump 1.6s ease-out;
}

@keyframes bump {
  0% { box-shadow: 0 0 0 3px var(--green); }
  100% { box-shadow: 0 0 0 3px rgba(2, 85, 55, 0); }
}

.lot-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper);
  overflow: hidden;
}

.lot-img,
.dlg-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  background: var(--green);
  color: rgba(255, 255, 255, 0.85);
}

.lot-placeholder .mark {
  width: 44px;
  height: 58px;
}

.lot-placeholder em {
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 500;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--ink);
}

.lot-media .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.badge-live { color: #b42318; }
.badge-soon { color: var(--green); }
.badge-sold { background: var(--ink); color: var(--white); }
.badge-closed { color: var(--muted); }
.badge-draft { background: #eceae4; color: var(--muted); }
.badge-withdrawn { background: #eceae4; color: var(--muted); text-decoration: line-through; }

.photo-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(18, 24, 32, 0.72);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 600;
}

.lot-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 20px;
}

.lot-cat {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lot-title {
  margin: 8px 0 16px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.lot-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.price {
  display: block;
  margin-top: 2px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.lot-meta {
  text-align: right;
  font-size: 0.84rem;
  color: var(--muted);
}

.lot-meta .bids {
  display: block;
  font-weight: 500;
}

.timer {
  display: block;
  margin-top: 2px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.timer.urgent { color: #b54708; }
.timer.critical { color: #b42318; }
.timer-done { color: var(--muted); font-weight: 500; }

.lot-cta {
  margin-top: 16px;
}

.bid-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.bid-call:hover {
  background: var(--green-deep);
}

.bid-call:focus-visible {
  outline-color: var(--ink);
}

.bid-note {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}

/* ── Detail dialog ──────────────────────────────────────────────────── */

.lot-dialog {
  width: min(980px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overscroll-behavior: contain;
  padding: 0;
  border: 0;
  background: var(--white);
  color: var(--ink);
  overflow: auto;
}

.lot-dialog::backdrop {
  background: rgba(18, 24, 32, 0.6);
}

.dlg-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.dlg-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.dlg-media {
  background: var(--paper);
  padding: 16px;
}

.dlg-stage {
  aspect-ratio: 1;
  background: var(--paper);
}

.dlg-stage .dlg-img {
  object-fit: contain;
}

.dlg-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}

.thumb {
  flex: none;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
}

.thumb.on {
  border-color: var(--green);
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dlg-body {
  padding: 32px 30px 30px;
}

.dlg-body h2 {
  margin: 10px 0 14px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  max-width: none;
}

.dlg-status {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dlg-status .badge {
  background: var(--paper);
}

.dlg-status .timer {
  margin: 0;
}

.dlg-price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0;
}

.dlg-price strong {
  display: block;
  margin-top: 2px;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.dlg-price .muted-strong {
  color: var(--body);
  font-size: 1.3rem;
}

.bid-call-lg {
  min-height: 52px;
  font-size: 1.05rem;
}

.dlg-desc {
  margin-top: 22px;
  color: var(--body);
  white-space: pre-line;
}

.dlg-h3 {
  margin: 26px 0 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.bid-history {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 240px;
  overflow: auto;
  border-top: 1px solid var(--line);
}

.bid-history li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.bid-history li span {
  color: var(--muted);
}

.bid-history li strong {
  font-variant-numeric: tabular-nums;
}

.bid-history li time {
  min-width: 72px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: right;
}

.bid-history li.top strong {
  color: var(--green);
}

.bid-history li.none {
  display: block;
  color: var(--muted);
}

/* ── Toast ──────────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 30;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast.error {
  background: #b42318;
}

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (min-width: 1300px) {
  .lot-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 760px) {
  .room-grid,
  .dlg-grid {
    grid-template-columns: 1fr;
  }

  .lot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dlg-stage {
    aspect-ratio: 4 / 3;
  }

  .dlg-body {
    padding: 24px 20px 26px;
  }
}

@media (max-width: 560px) {
  .lot-grid {
    grid-template-columns: 1fr;
  }

  .room-stats strong {
    font-size: 1.3rem;
  }

  .demo-note {
    width: calc(100% - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot,
  .lot-skeleton,
  .lot-card.bumped {
    animation: none;
  }

  .lot-card,
  .toast {
    transition: none;
  }
}

/* ── Online bidding (dialog) ────────────────────────────────────────── */

.bid-box {
  display: grid;
  gap: 12px;
}

.place-bid {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--paper);
}

.call-alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  color: var(--green);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.call-alt:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.my-standing {
  margin-bottom: 12px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 0.95rem;
}

.my-standing.win {
  background: #ecfdf3;
  color: #067647;
}

.my-standing.out {
  background: #fef3f2;
  color: #b42318;
}

.lot-media .me-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.me-badge.win {
  background: #ecfdf3;
  color: #067647;
}

.me-badge.out {
  background: #fef3f2;
  color: #b42318;
}

button.bid-call {
  width: 100%;
  border: 0;
  cursor: pointer;
}

/* ── Winner ─────────────────────────────────────────────────────────── */

.won-by {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
}

.bid-note.won-by {
  display: flex;
  border-color: var(--green);
  background: #f3faf6;
}

.won-by .avatar {
  display: grid;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
}

.won-by .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Home hero: featured lot / how it works ─────────────────────────── */

.side {
  justify-content: flex-start;
  gap: 14px;
}

.side-note {
  margin-top: auto;
  padding-top: 24px;
}

.feature {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature:hover {
  border-color: var(--green);
  box-shadow: 0 10px 28px rgba(18, 24, 32, 0.08);
}

.feature-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--green);
}

.feature-media img,
.feature-media .lot-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
}

.feature-body {
  display: grid;
  gap: 10px;
  padding: 16px 18px 18px;
}

.feature-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature-title {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.feature-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.feature-price {
  display: block;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.feature-row .timer {
  margin: 0;
  font-size: 0.88rem;
}

.feature-cta {
  color: var(--green);
  font-weight: 700;
}

.side-steps {
  width: 100%;
}

.side-steps ol {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 14px 0 18px;
  display: grid;
  gap: 16px;
}

.side-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 12px;
}

.side-steps li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  color: var(--green);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding-top: 3px;
}

.side-steps strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.side-steps span {
  color: var(--body);
  font-size: 0.94rem;
}

/* Supabase is configured but unreachable. */
.offline-note {
  margin: 0;
  padding: 12px 20px;
  background: #b42318;
  color: #fff;
  font-weight: 600;
  text-align: center;
}

/* ── Small phones (iPhone SE, small Androids) ───────────────────────── */

@media (max-width: 560px) {
  .header-inner {
    gap: 6px 12px;
    padding: 10px 0 4px;
  }

  /* One menu line under the logo; swipe sideways if it ever doesn't fit. */
  .site-nav {
    flex-wrap: nowrap;
    gap: 0 18px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a,
  .site-nav button {
    flex: none;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }
}

/* Very small phones: call button shows just the phone icon. */
@media (max-width: 420px) {
  .header-call {
    padding: 5px;
    gap: 0;
    font-size: 0;
  }

  .header-call .call-icon {
    width: 36px;
    height: 36px;
  }

  .site-nav {
    gap: 0 14px;
  }

  .site-nav a {
    font-size: 0.92rem;
  }
}

/* Comfortable thumb targets for inline links. */
.text-link,
.glance a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 360px) {
  .site-nav {
    gap: 0 11px;
  }

  .site-nav a {
    font-size: 0.88rem;
  }
}

/* Admin menu has more items: two tidy lines on phones, nothing hidden. */
@media (max-width: 560px) {
  .site-nav.admin-nav {
    flex-wrap: wrap;
    overflow: visible;
    gap: 0 16px;
  }

  .site-nav.admin-nav .btn {
    min-height: 38px;
  }
}

/* Filter tabs: one swipeable row on phones instead of stacking. */
@media (max-width: 560px) {
  .lot-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) / -2);
    padding-inline: calc(var(--gutter) / 2);
    padding-bottom: 2px;
  }

  .lot-tabs::-webkit-scrollbar {
    display: none;
  }

  .lot-tab {
    flex: none;
  }
}

/* Keep toasts clear of the iPhone home indicator. */
.toast {
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
}

/* ── 404 ────────────────────────────────────────────────────────────── */

.notfound {
  min-height: 60vh;
  display: grid;
  align-content: center;
}

.nf-title {
  margin: 12px 0 18px;
  font-size: clamp(2.6rem, 7vw, 5rem);
}

.nf-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 8px;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.btn-link:hover {
  background: var(--green-deep);
}

/* ── Terms of sale (auctions.html) ─────────────────────────────────── */

.terms {
  background: var(--white);
  border-block: 1px solid var(--line);
  scroll-margin-top: var(--header);
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.term {
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  background: var(--paper);
}

.term .num {
  color: var(--green);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.term h3 {
  margin: 12px 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.term p {
  color: var(--body);
}

.term-help {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.term-help h3 {
  margin-top: 0;
}

.term-help p {
  color: rgba(255, 255, 255, 0.9);
}

.term-help .inline-link {
  color: var(--white);
}

.inline-link {
  color: var(--green);
  font-weight: 600;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .terms-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .terms-grid {
    grid-template-columns: 1fr;
  }
}

/* "By bidding you agree…" line */
.agree-note {
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.agree-note a {
  color: var(--green);
  font-weight: 600;
}

/* ── Sell with us (sell.html) ──────────────────────────────────────── */

.sell-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  max-width: 14ch;
  margin: 8px 0 18px;
}

.sell-lede {
  max-width: 58ch;
  margin-top: 0;
}

.sell-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 24px;
}

.register {
  background: var(--green);
  color: var(--white);
  scroll-margin-top: var(--header);
}

.register .kicker {
  color: rgba(255, 255, 255, 0.75);
}

.register h2 {
  color: var(--white);
}

.register .deck {
  color: rgba(255, 255, 255, 0.88);
}

.register-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px 56px;
  align-items: start;
}

.register .panel {
  width: 100%;
  color: var(--ink);
}

.register-form {
  gap: 14px;
}

.register-done h2 {
  color: var(--ink);
}

.register-done .kicker {
  color: var(--green);
}

@media (max-width: 760px) {
  .register-grid {
    grid-template-columns: 1fr;
  }
}

.register-done .btn {
  justify-self: start;
}

/* Sell page: two balanced columns so the text uses the full width. */
.sell-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 72px;
  align-items: end;
  padding-block: 24px 16px;
}

.sell-hero .sell-title {
  margin-bottom: 0;
}

.sell-hero .sell-lede {
  max-width: 54ch;
}

.sell-hero .sell-ctas {
  margin-top: 20px;
}

.sell-how-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 72px;
  align-items: end;
  margin-bottom: 28px;
}

.sell-how-head h2 {
  margin-bottom: 0;
}

.sell-how-head .deck {
  margin: 0;
  max-width: 54ch;
}

@media (max-width: 760px) {
  .sell-hero,
  .sell-how-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sell-hero {
    padding-block: 0;
  }
}

/* Sell page: tighter spacing between the top and "How it works". */
.sell-hero {
  padding-block: 8px 0;
}

.sell-how {
  padding-top: 36px;
}

@media (max-width: 760px) {
  .sell-how {
    padding-top: 28px;
  }
}

.sell-hero {
  padding-block: 8px 40px;
}

.sell-how {
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

/* ── Home hero: fill the left column, keep the whole hero on screen ─── */

.hero .copy h1 {
  font-size: clamp(3.15rem, 6.4vw, 7rem);
}

.hero .copy .lede {
  max-width: 44ch;
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 26px;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 720px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.hero-points li {
  display: grid;
  gap: 4px;
}

.hero-points strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.hero-points span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* Featured lot photo: shorter, so the hero fits one screen. */
.feature-media {
  aspect-ratio: 16 / 10;
  max-height: 34vh;
}

.feature-media img {
  object-fit: cover;
}

@media (max-width: 1100px) {
  .hero-points {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Section heads: heading on the left, description on the right. */
.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 72px;
  align-items: end;
  margin-bottom: 28px;
}

.split-head h2 {
  margin-bottom: 0;
}

.split-head .deck {
  margin: 0;
  max-width: 54ch;
}

/* Green call-to-action band: right block ends at the right edge, so the
   space is equal on both sides. */
@media (min-width: 761px) {
  .closer-grid > :last-child {
    justify-self: end;
  }
}

.inline-link.on-dark {
  color: var(--white);
}

@media (max-width: 760px) {
  .split-head {
    grid-template-columns: 1fr;
  }
}

/* ── Themed dropdown (js/ui.js replaces every <select>) ────────────── */

.ms-select {
  position: relative;
  display: inline-block;
  min-width: 200px;
  max-width: 100%;
}

.field .ms-select {
  display: block;
  width: 100%;
}

.ms-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ms-select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ms-select-btn:hover {
  border-color: var(--green);
}

.ms-select-btn:focus-visible,
.ms-select.is-open .ms-select-btn {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(2, 85, 55, 0.15);
}

.ms-select-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-select-chev {
  flex: none;
  color: var(--green);
  transition: transform 0.15s;
}

.ms-select.is-open .ms-select-chev {
  transform: rotate(180deg);
}

.ms-select-list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 220px;
  max-height: 280px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(18, 24, 32, 0.14), 0 2px 6px rgba(18, 24, 32, 0.06);
  outline: none;
}

.ms-select.drop-up .ms-select-list {
  top: auto;
  bottom: calc(100% + 6px);
}

.ms-select-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.95rem;
  cursor: pointer;
}

.ms-select-opt svg {
  flex: none;
  color: var(--green);
  visibility: hidden;
}

.ms-select-opt.is-active {
  background: var(--paper);
}

.ms-select-opt.is-selected {
  color: var(--green);
  font-weight: 700;
}

.ms-select-opt.is-selected svg {
  visibility: visible;
}

.ms-select-opt.is-disabled {
  color: var(--muted);
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .ms-select-btn,
  .ms-select-chev {
    transition: none;
  }
}

/* Sell requests: status colour on the dropdown button */
.consign-status .ms-select[data-value="new"] .ms-select-btn { border-color: #f5b700; background: #fffaeb; }
.consign-status .ms-select[data-value="contacted"] .ms-select-btn { background: #eff8ff; }
.consign-status .ms-select[data-value="received"] .ms-select-btn,
.consign-status .ms-select[data-value="listed"] .ms-select-btn { background: #f3faf6; }
.consign-status .ms-select[data-value="sold"] .ms-select-btn { background: var(--ink); border-color: var(--ink); color: var(--white); }
.consign-status .ms-select[data-value="sold"] .ms-select-chev { color: var(--white); }
.consign-status .ms-select[data-value="declined"] .ms-select-btn { background: #fef3f2; color: #b42318; }

.consign-status {
  display: grid;
  gap: 4px;
  min-width: 220px;
}
