/*
 * BidHarbor calm bidder floor, 2026-08-28.
 *
 * This is the default bidder presentation.  The established floor remains a
 * staff/development rollback door at ?view=current.  Every live-state hook,
 * control ID, bid action, card fragment, and board-loading rule remains owned
 * by watch.html.
 */

/* bidder-theme.css owns palette, body, navigation, focus and appearance. */

/* One calm navigation bar replaces the current stacked global + auction
   mastheads. All destinations remain available in the global nav. */
html.calm .mast {
  display: none;
}

/* Auction introduction: generous breathing room, no second sticky overlay. */
html.calm header.auction-intro {
  position: static;
  padding: .9rem 0 .4rem;
  transform: none !important;
  background: transparent;
  border-bottom: 0;
}

html.calm header.auction-intro .hwrap {
  max-width: 1180px;
}

html.calm header.auction-intro .kicker {
  margin-bottom: .4rem;
  color: var(--brand-gold-text);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .19em;
}

html.calm header.auction-intro h1 {
  max-width: 880px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.12;
}

html.calm header.auction-intro .hwrap > p:not(.kicker) {
  max-width: 1000px;
  margin-top: .55rem;
  color: var(--muted);
  line-height: 1.55;
}

html.calm header.auction-intro .ctlrow { margin:.5rem 0; flex-wrap:wrap; }
.lot-detail-options > summary:focus-visible { outline:3px solid var(--gold); outline-offset:2px; }
.lot-detail-options { position:relative; }
.lot-detail-options > summary { min-height:44px; padding:.6rem; cursor:pointer; font-size:.85rem; color:var(--ink); }
.lot-detail-options[open] { width:100%; }
.lot-detail-options .lot-detail-tools { padding:.5rem 0; }

html.calm header.auction-intro .ctlrow button:not(.theme-toggle) {
  min-height: 44px;
  border-color: var(--line) !important;
  color: var(--muted) !important;
  background: var(--card) !important;
  box-shadow: 0 1px 2px rgba(23, 35, 31, .04);
}

html.calm header.auction-intro .ctlrow #alerts {
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line)) !important;
  color: var(--gold) !important;
}

/* ---- Floor chrome (2026-10-19, "a neat and tidy user experience"): one sale line, Help
   beside the sale name, one controls row (search · Filters · the bidder's View control),
   the personal chips only with standing, the fee sentence once. Every control 44 px,
   icon + word, same radius as its neighbours. ---- */
/* One gutter, the board's: the calm Classic board is 1180 wide with 12 px side padding, the list-row
   boards 1400, every board 1320 from 1400 px; the chrome follows each. */
html.calm header.auction-intro .hwrap,
html.calm .floor-controls { max-width:1180px; margin:0 auto; padding:0 12px; box-sizing:border-box; --chrome-gutter:12px; }
html.calm body.cv3 header.auction-intro .hwrap,
html.calm body.cv3 .floor-controls { max-width:1400px; }
html.calm header.auction-intro h1 { max-width:none; font-size:clamp(1.4rem, 2.4vw, 1.85rem); }
html.calm .auction-status-line { color:var(--muted); font-size:.85rem; line-height:1.5; }
html.calm .auction-status-line #conn { font-size:inherit; color:inherit; }
html.calm .sale-tier { color:var(--brand-gold-text); font-weight:650; }
/* Sale dates and help controls reflow at enlarged text instead of widening
   the phone viewport. Scope to this toolbar, preserving tutorial colours. */
html.calm .auction-status-line time { white-space:normal; }
html.calm .auction-options-panel { min-width:0; }
html.calm .auction-options-panel .ctlrow > button,
html.calm .auction-options-panel .share-btn { max-width:100%; white-space:normal; overflow-wrap:break-word; }
html.calm .auction-options-panel .share-btn-label { min-width:0; }
html.calm .auction-options-panel .ctlrow > button { flex:0 1 auto; }
html.calm .auction-options-panel :focus { outline:3px solid var(--ink); outline-offset:3px; }

html.calm .auction-options > summary { border-color:var(--line); background:var(--card); color:var(--ink);
  box-shadow:0 1px 2px rgba(23, 35, 31, .04); }
html.calm .auction-options > summary:hover { border-color:var(--gold); }
html.calm .auction-options > summary:focus-visible { outline:3px solid var(--gold); outline-offset:2px; }
html.calm .auction-options[open] > summary { color:#fffdf9; background:var(--gold); border-color:var(--gold); }
html.calm:not(.light) .auction-options[open] > summary { color:#111a17; }
html.calm .auction-options-panel { border-color:var(--line); background:var(--card);
  box-shadow:0 18px 44px rgba(23, 35, 31, .16); }
html.calm .auction-options-panel .ctlrow { margin:.5rem 0 0; flex-wrap:wrap; }
/* bidder-theme.css zeroes the theme toggle's margin at higher specificity; it keeps the row's spacing here. */
html.calm .auction-options-panel .ctlrow > button.theme-toggle { margin:0 .5rem .5rem 0; }
html.calm .auction-options-panel .ctlrow button:not(.theme-toggle) { min-height:44px; border-color:var(--line) !important;
  color:var(--muted) !important; background:var(--card) !important; box-shadow:0 1px 2px rgba(23, 35, 31, .04); }
html.calm .auction-options-panel .ctlrow #alerts { border-color:color-mix(in srgb, var(--gold) 45%, var(--line)) !important;
  color:var(--gold) !important; }
html.calm .auction-options-panel .auction-return-home { margin:.4rem 0 0; padding:0; border:0; background:transparent;
  color:var(--ink); }
html.calm .auction-options-panel .auction-return-home a { color:var(--gold); }
html.calm .pw-auction-tutorial-shell { padding:.35rem 0 0; }
html.calm .pw-auction-tutorial-shell details[open] summary { margin-bottom:.6rem; }

html.calm .browse-toolbar { display:flex !important; flex-wrap:wrap !important; align-items:center !important;
  max-width:none !important; margin:0 !important; padding:.5rem 0 0 !important; }
html.calm .browse-toolbar .lot-search { flex:1 1 11rem; min-width:0; }
html.calm .browse-toolbar #lotsearch { width:100%; min-width:0; min-height:44px; box-sizing:border-box; }
html.calm .browse-toolbar input,
html.calm .browse-toolbar select { min-height:44px; border:1px solid var(--fieldline) !important; border-radius:9px !important;
  background:var(--field) !important; color:var(--ink) !important; }
html.calm .browse-toolbar input:focus,
html.calm .browse-toolbar select:focus { border-color:var(--gold) !important;
  box-shadow:0 0 0 3px color-mix(in srgb, var(--gold) 16%, transparent); }
html.calm .browse-toolbar select { height:max(44px, 2.75rem); box-sizing:border-box; }
html.calm .browse-filters-view { display:flex; align-items:center; flex:0 0 auto; min-width:0; }
html.calm .browse-filters-view > .more-filters-toggle { margin-right:8px; }
html.calm .browse-filters-view > .more-filters-toggle:last-child { margin-right:0; }
html.calm .more-filters-toggle { display:inline-flex; align-items:center; justify-content:center; min-height:44px;
  padding:.5rem .8rem; border:1px solid var(--line); border-radius:9px; color:var(--ink); background:var(--card);
  font:inherit; font-size:.86rem; font-weight:750; cursor:pointer; white-space:nowrap; }
html.calm .more-filters-toggle > span { margin-left:.35rem; }
html.calm .more-filters-toggle[data-filters-active="true"] { border-color:var(--gold); color:var(--gold); }
html.calm .more-filters-toggle[aria-expanded="true"] { color:#fffdf9; background:var(--gold); border-color:var(--gold); }
html.calm:not(.light) .more-filters-toggle[aria-expanded="true"] { color:#111a17; }
html.calm .browse-toolbar:not(.show-more) .floor-filters { display:none; }
html.calm .floor-filters { padding:.1rem 0 .15rem; }
html.calm .floor-filters select { flex:1 1 10rem; min-width:0; }
html.calm .floor-check { padding:0 .15rem; color:var(--ink) !important; }
html.calm .floor-check input { width:20px; height:20px; margin:0 .35rem 0 0; accent-color:var(--gold); }
html.calm #lotjumpform { flex-wrap:wrap; min-width:0; }
html.calm #lotjumpform input { max-width:100%; min-width:0; box-sizing:border-box; }
html.calm #lotjumpform button { min-height:44px; }
html.calm .browse-toolbar #resultcount,
html.calm .browse-toolbar #jumpstatus:not(:empty) { flex-basis:100%; color:var(--muted) !important; font-size:.8rem !important; }
html.calm .standing-toolbar { max-width:none !important; padding:.5rem 0 0 !important; }
html.calm .standing-toolbar .fchip { min-height:44px; padding:.5rem .75rem; border:1px solid var(--line); color:var(--ink);
  background:var(--card); font-weight:650; font-size:.82rem; }
html.calm .standing-toolbar .fchip .hammer-label { color:var(--muted); }
/* Pressed = fill AND weight AND a bar under the words (shape, never hue alone), like the View control. */
html.calm .standing-toolbar .fchip.active { border-color:color-mix(in srgb, var(--gold) 35%, var(--line)); color:var(--gold);
  background:var(--mint); font-weight:800; box-shadow:inset 0 -3px 0 0 currentColor; }
html.calm .floor-controls > .public-fee-notice { max-width:none; margin:.55rem 0 0; padding:0; }

@media (max-width: 640px) {
  html.calm .sale-identity { margin-right:.5rem; }
  /* The Classic phone board keeps its .5rem side padding; the list-row boards 12 px. */
  html.calm header.auction-intro .hwrap,
  html.calm .floor-controls { padding:0 .5rem; --chrome-gutter:.5rem; }
  html.calm body.cv3 header.auction-intro .hwrap,
  html.calm body.cv3 .floor-controls { padding:0 12px; --chrome-gutter:12px; }
  html.calm .browse-toolbar { padding:.45rem 0 0 !important; }
  /* Phones: the search owns a row, then Filters owns the next (with the bidder's View pair beside it
     under "Let bidders choose"), so the View control never adds a row and every floor reads alike. */
  html.calm .browse-toolbar .lot-search,
  html.calm .browse-toolbar > .more-filters-toggle,
  html.calm .browse-filters-view { flex:1 1 100%; }
  html.calm #floor-toolbar > .lot-search,
  html.calm #floor-toolbar > .more-filters-toggle,
  html.calm #floor-toolbar > .browse-filters-view { margin-right:0; }
  html.calm .browse-filters-view > .more-filters-toggle { flex:1 1 auto; }
  html.calm .standing-toolbar .fchip { padding:.5rem .6rem; }
}

html.calm .floor-announcements {
  max-width: 1180px !important;
  margin-top: .4rem !important;
}

html.calm header.auction-intro a[href^="/accounts/register/"] {
  color: #fffdf9 !important;
  background: var(--gold) !important;
  box-shadow: 0 3px 9px color-mix(in srgb, var(--gold) 18%, transparent);
}

html.calm header.auction-intro a[href^="/accounts/login/"] {
  color: var(--gold) !important;
}

html.calm .fast-floor-pager button {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--gold) 12%, transparent);
}

/* Three calm columns on a typical laptop, two on a tablet, one on a phone. */
html.calm main.auction-grid {
  max-width: 1180px;
  padding: 1rem .75rem 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

html.calm .lot {
  overflow: hidden;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 8px 26px rgba(23, 35, 31, .065);
}

html.calm .lot:hover {
  border-color: color-mix(in srgb, var(--gold) 28%, var(--line));
}

html.calm .lot.winning {
  border-width: 2px;
  border-color: var(--gold);
  background: linear-gradient(180deg, var(--mint), var(--card) 32%);
  box-shadow: 0 8px 26px color-mix(in srgb, var(--gold) 12%, transparent);
}

html.calm .lot.losing {
  border-width: 2px;
  border-color: var(--coral);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--coral) 10%, var(--card)), var(--card) 28%);
  box-shadow: 0 8px 26px color-mix(in srgb, var(--coral) 10%, transparent);
}

html.calm .lot.standing-won {
  border-width: 2px;
  border-color: var(--brand-gold-text);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--brand-gold) 14%, var(--card)), var(--card) 30%);
}

html.calm .lot.standing-lost {
  border-width: 2px;
  border-color: var(--closed);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--closed) 8%, var(--card)), var(--card) 28%);
}

html.calm .lot.standing-no-sale {
  border-width: 2px;
  border-color: var(--warn);
}

html.calm .lot[data-bought="1"] {
  border-color: #3e7cb1;
  background: linear-gradient(180deg,
    color-mix(in srgb, #3e7cb1 12%, var(--card)), var(--card) 30%);
}

html.calm .lot.sponsor {
  border-color: color-mix(in srgb, var(--brand-gold) 55%, var(--line));
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--brand-gold) 7%, var(--card)), var(--card) 35%);
  box-shadow: none;
}

html.calm .lot img[id^="img-"],
html.calm .lot video.tilevid {
  border-radius: 11px !important;
  background: var(--media) !important;
}

html.calm .lot .imgbadge {
  right: 7px !important;
  bottom: 7px !important;
  color: #f8f5ef !important;
  background: rgba(23, 35, 31, .82) !important;
  font-size: .68rem !important;
}

/* The video label is an unclassed sibling in the established card markup.
   Keep its default bytes untouched and repair only the calm presentation. */
html.calm .lot video.tilevid + span {
  color: #fffdf9 !important;
  background: rgba(17, 26, 23, .92) !important;
}

html.calm .chip {
  margin-bottom: .4rem;
  padding: .16rem .48rem;
  border-width: 1px;
  font-size: .75rem;  /* 12 px floor: state chips carry meaning (icon + word) */
  letter-spacing: .035em;
}

html.calm .lot > .chip {
  align-self: flex-start;
}

html.calm .chip.live {
  border-color: color-mix(in srgb, var(--gold) 25%, var(--mint));
  color: var(--gold);
  background: var(--mint);
}

html.calm .chip.extended,
html.calm .chip.soon {
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 10%, var(--card));
}

html.calm .chip.closed {
  color: var(--closed);
  background: color-mix(in srgb, var(--closed) 9%, var(--card));
}

html.calm .chip.sponsorchip,
html.calm .chip.standing-win {
  color: #2a2009;
  background: #e8c76b;
  border-color: #e8c76b;
}

/* Retail-box wear is a bidder decision, not decorative metadata. Keep this
   refined disclosure distinct from item condition and standing colors; the
   explicit label makes its meaning independent of hue. */
html.calm .lot .packaging-warning {
  padding: .22rem .55rem;
  border-color: var(--calm-packaging-border) !important;
  color: var(--calm-packaging) !important;
  background: color-mix(in srgb,
    var(--calm-packaging-border) 13%, var(--card)) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb,
    var(--calm-packaging-border) 9%, transparent);
  font-size: .66rem;
}

html.calm .lot h2 {
  min-height: 0;
  margin: .1rem 0 .4rem;
  font-size: 1.05rem;
  line-height: 1.34;
}

html.calm .lot h2 a {
  display: block;
  overflow-wrap: anywhere;
}

html.calm .lot h2 + p {
  margin-bottom: .45rem !important;
  color: var(--muted) !important;
  font-size: .79rem !important;
  font-weight: 600 !important;
}

html.calm .listing-gateway {
  margin: .25rem 0 .75rem;
  padding: .35rem 0;
  border-top-color: var(--line);
  color: var(--gold);
  font-size: .72rem;
}

html.calm .row {
  align-items: end;
  padding-top: .15rem;
}

html.calm .price,
html.calm .clock {
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 720;
  letter-spacing: -.02em;
}

html.calm .price small,
html.calm .clock small {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
}

/* The compact phase sits under the close clock, opposite retail, so the
   bidder sees standing in the same decision zone as the next action. */
html.calm .offer {
  align-items: flex-start;
}

html.calm .offer-actions {
  max-width: 72%;
}

html.calm .standing-phase {
  border-width: 1px;
  font-size: .75rem;
}

html.calm .standing-phase.leading {
  border-color: color-mix(in srgb, var(--calm-positive) 48%, var(--line));
  color: var(--calm-positive);
  background: var(--mint);
}

html.calm .standing-phase.outbid {
  border-color: color-mix(in srgb, var(--calm-negative) 58%, var(--line));
  color: var(--calm-negative);
  background: color-mix(in srgb, var(--coral) 9%, var(--card));
}

html.calm .standing-phase.won {
  border-color: color-mix(in srgb, var(--brand-gold) 55%, var(--line));
  color: var(--brand-gold-text);
  background: color-mix(in srgb, var(--brand-gold) 10%, var(--card));
}

html.calm .standing-phase.lost,
html.calm .standing-phase.no-sale {
  border-color: var(--line);
  color: var(--closed);
  background: color-mix(in srgb, var(--closed) 8%, var(--card));
}

/* Bid outcomes are auction-critical text. The base page's pale literals are
   correct on dark, but calm makes light the first view, so its stylesheet owns
   a theme-safe override while leaving the established response unchanged. */
html.calm .note:not(:empty),
html.calm .note > span[style*="color:#fff"] {
  color: var(--ink) !important;
}

html.calm .bid-outcome {
  border-color: var(--line);
  border-left-width: 4px;
  background: color-mix(in srgb, var(--field) 96%, var(--bg));
  box-shadow: 0 3px 10px rgba(23, 35, 31, .045);
}

html.calm .bid-outcome--leading,
html.calm .bid-outcome--protected {
  border-left-color: var(--calm-positive);
  background: color-mix(in srgb, var(--mint) 54%, var(--card));
}

html.calm .bid-outcome--outbid {
  border-left-color: var(--calm-negative);
  background: color-mix(in srgb, var(--coral) 8%, var(--card));
}

html.calm .bid-outcome--pending {
  border-left-color: var(--brand-gold-text);
}

html.calm .bid-outcome--error,
html.calm .bid-outcome--action {
  border-left-color: var(--warn);
}

html.calm .bid-outcome--won {
  border-left-color: var(--brand-gold-text);
  background: color-mix(in srgb, var(--brand-gold) 9%, var(--card));
}

html.calm.light .note a[style*="background:var(--gold)"] {
  color: #fffdf9 !important;
}

html.calm .flash {
  animation: calm-price-flash 1s ease-out !important;
}

@keyframes calm-price-flash {
  0% {
    background: var(--calm-flash);
    outline: 3px solid var(--gold);
    outline-offset: -3px;
  }
  100% {
    background: var(--card);
    outline: 0 solid transparent;
    outline-offset: 0;
  }
}

html.calm .bidbtn {
  min-height: 48px;
  margin-top: .7rem;
  border-radius: 10px;
  color: #fffdf9;
  background: var(--gold);
  font-weight: 750;
  box-shadow: 0 3px 9px color-mix(in srgb, var(--gold) 18%, transparent);
}

html.calm:not(.light) .bidbtn {
  color: #111a17;
}

html.calm .bidbtn:hover:not(:disabled) {
  filter: brightness(.93);
}

html.calm .bidbtn:disabled {
  color: var(--closed);
  background: color-mix(in srgb, var(--closed) 14%, var(--card));
  box-shadow: none;
}

html.calm .dock,
html.calm .claim {
  min-height: 44px;
  border-width: 1px;
  font-weight: 650;
}

html.calm .dock {
  border-color: var(--line);
}

html.calm .dock.on {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--mint);
}

html.calm a {
  color: var(--gold);
}

/* The gold control keeps its on-gold text: the generic link colour above
   must never paint "Sign in to bid" gold-on-gold (render evidence 2026-10-13). */
html.calm a.signin-to-bid, html.calm a.signin-to-bid:visited,
html.calm a.signin-to-bid:hover, html.calm a.signin-to-bid:focus-visible {
  color: var(--on-gold, #fffdf9);
}

html.calm .sponsortile {
  grid-column: 1 / -1;
  flex-direction: row !important;
  align-items: center;
  gap: 1rem;
  min-height: 0 !important;
  padding: .75rem 1rem !important;
  border-color: color-mix(in srgb, var(--brand-gold) 45%, var(--line)) !important;
  box-shadow: none;
}

html.calm .sponsortile img {
  max-width: 160px !important;
  max-height: 52px !important;
  margin: 0 !important;
}

html.calm .rolling-pager button {
  border: 1px solid var(--gold);
  color: #fffdf9;
  background: var(--gold);
}

html.calm:not(.light) .rolling-pager button {
  color: #111a17;
}

html.calm:not(.light) header.auction-intro a[href^="/accounts/register/"] {
  color: #111a17 !important;
}

html.calm #board-completeness span {
  border-color: var(--line) !important;
}

/* The shareable lot listing is the second half of the bidder journey. It
   shares the calm tokens and preference without changing any of its bid,
   countdown, polling, socket, or catalog-truth hooks. */
html.calm .lot-return-bar {
  position: sticky;
  top: var(--bhnav-height, 60px);
  z-index: 80;
  padding: .7rem max(1rem, calc((100vw - 900px) / 2));
  background: color-mix(in srgb, var(--card) 96%, var(--bg));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(23, 35, 31, .05);
}

html.calm .lot-return-bar > span,
html.calm .lot-detail-tools {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
}

html.calm .lot-return-bar a {
  color: var(--ink);
  font-weight: 750;
}

html.calm .lot-return-bar [data-browse-return] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .45rem .7rem;
  border: 1.5px solid currentColor;
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: .18em;
}

html.calm .lot-return-bar [data-browse-return]:is(:hover, :visited) {
  color: var(--ink);
}

html.calm .lot-return-bar [data-browse-return]:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

html.calm .lot-return-bar #soundtoggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  padding: .42rem .72rem;
  border: 1.5px solid var(--brand-gold);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}

html.calm main.lot-detail {
  width: calc(100% - 2rem);
  max-width: 900px;
  margin: 1rem auto 2rem;
  padding: clamp(.85rem, 2.5vw, 1.5rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(23, 35, 31, .08);
}

html.calm main.lot-detail h1 {
  margin-top: 1.15rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -.025em;
}

html.calm main.lot-detail .hero {
  background: var(--media);
  border: 1px solid var(--line);
}

html.calm main.lot-detail .thumbs img {
  background: var(--media);
}

html.calm main.lot-detail .desc,
html.calm main.lot-detail .note {
  color: var(--ink);
}

html.calm main.lot-detail input {
  border-color: var(--fieldline);
  background: var(--field);
  color: var(--ink);
}

html.calm main.lot-detail .secondary {
  background: var(--card);
}

html.calm:not(.light) main.lot-detail {
  box-shadow: 0 14px 36px rgba(0, 0, 0, .2);
}

/* Preserve calm three-column scanning on ordinary desktops, then recover a
   fourth column only when the viewport can keep every card comfortably wide. */
@media (min-width: 1400px) {
  html.calm .bhnav {
    padding-inline: max(1rem, calc((100vw - 1320px) / 2));
  }

  html.calm header.auction-intro .hwrap,
  html.calm .floor-controls,
  html.calm .floor-announcements,
  html.calm main.auction-grid {
    max-width: 1320px !important;
  }

  html.calm main.auction-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  html.calm .bhnav-menu[open] .bhnav-dropdown {
    position: fixed;
    top: calc(var(--bhnav-height, 49px) + .4rem);
    right: .6rem;
  }
}

@media (max-width: 640px) {
  html.calm .bhnav {
    padding: .45rem .55rem;
  }

  html.calm .bhnav a,
  html.calm .bhnav-menu summary,
  html.calm header.auction-intro .ctlrow button:not(.theme-toggle) {
    min-height: 44px;
  }

  html.calm header.auction-intro {
    padding: .65rem 0 .25rem;
  }

  html.calm header.auction-intro .kicker {
    display: none;
  }

  html.calm header.auction-intro h1 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 1.28rem;
    line-height: 1.08;
  }

  html.calm header.auction-intro p:not(.kicker) {
    margin-top: .35rem;
    line-height: 1.35;
  }

  html.calm header.auction-intro .ctlrow {
    margin-top: .45rem;
    flex-wrap: wrap;
  }

  html.calm main.auction-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: .75rem !important;
    padding: .65rem .5rem 1rem !important;
  }

  html.calm .lot {
    padding: .75rem;
    border-radius: 14px;
  }

  html.calm .sponsortile {
    flex-direction: column !important;
  }

  html.calm .lot-return-bar {
    align-items: center !important;
    padding: .65rem .6rem !important;
  }

  html.calm .lot-detail-tools {
    width: 100%;
  }

  html.calm main.lot-detail {
    width: calc(100% - .9rem);
    margin: .55rem .45rem 1.25rem;
    padding: .75rem;
    border-radius: 15px;
  }
}

html.calm .card-photo-edge { width:44px; height:48px; border-radius:10px; }
html.calm .card-photo-edge svg { width:25px; height:25px; }
html.calm .gallery-trust [hidden],
html.calm [data-gallery-compare][hidden] { display:none !important; }
.public-fee-notice { margin:.45rem 0; color:var(--muted, #58665f); font-size:.8rem; line-height:1.45; }
.public-fee-notice a { color:var(--gold, #0a6658); }
html.calm main.lot-detail { max-width:1120px; }
.detail-overview { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:1.5rem; align-items:start; }
.detail-overview > * { min-width:0; }
.detail-decision input { min-width:0; }
/* Keep item actions readable inside their column at enlarged text sizes. */
html.calm .detail-media .gallery-trust { flex-wrap:wrap; }
html.calm .detail-media .gallery-trust button { max-width:100%; min-width:0; }
html.calm .detail-media .gallery-trust .kind-count { flex-shrink:0; }
html.calm .detail-decision p:has(> #sharepill),
html.calm main.lot-detail div:has(> #qtext) { flex-wrap:wrap; }
html.calm main.lot-detail #qtext {
  min-width:0;
  max-width:100%;
  flex-basis:12rem !important;
  box-sizing:border-box;
}
.detail-heading { margin-bottom:.8rem; }
.detail-heading h1 { margin:.4rem 0; overflow-wrap:anywhere; }
.detail-heading #standingchip[data-standing="none"] { display:none; }
html.calm .card-gallery .imgbadge { max-width:calc(100% - 16px); font-size:.75rem !important; line-height:1.35; }
@media (max-width: 960px) {
  .detail-overview { display:flex; flex-direction:column; gap:.7rem; }
  .detail-overview > * { width:100%; }
  html.calm main.lot-detail .hero { height: min(36vh, 300px); aspect-ratio:auto; }
}

@media (prefers-reduced-motion: reduce) {
  html.calm .flash {
    animation: none !important;
    background: var(--calm-flash) !important;
    outline: 3px solid var(--gold);
    outline-offset: -3px;
  }
}

/* Terminal auction messages must override mobile copy display rules. */
html.calm [data-auction-open-only][hidden],
html.calm [data-guest-bid-action] [hidden] { display:none !important; }

/* The post-bid invitation inherits the same surface in either appearance. */
html.calm #alertnudge {
  background: var(--card) !important;
  color: var(--ink);
  flex-wrap: wrap;
}
