/* ============================================================
   VESTIGE — VESTORA (the saleroom) and accounts, 20 Nov 2026
   Loaded after saleroom.css. Theme tokens only, logical properties,
   mobile first, and no pure white anywhere.
   ============================================================ */

.vs-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.vs-name{letter-spacing:.06em}
html[dir="rtl"] .vs-name{letter-spacing:0}

/* ---------------------------------------------- reserve badge: one meaning, one colour
   "No reserve price" green · "Reserve price not met" red · "Reserve price met" green.
   (The base .resbadge is amber and saleroom.css loads after this file, so these are written two classes deep to win.) */
.resbadge.resbadge--s-none,.resbadge.resbadge--s-met{background:var(--sr-ok-bg);color:var(--sr-ok-fg);border-color:var(--sr-ok-bd)}
.resbadge.resbadge--s-not_met{background:var(--sr-warn-bg);color:var(--sr-warn-fg);border-color:var(--sr-warn-bd)}

/* ---------------------------------------------- the listing */
.vs-filter{display:grid;gap:.6rem;grid-template-columns:1fr;margin:0 0 1rem}
.vs-filter label{margin:0;display:block}
.vs-filter input[type=search],.vs-filter select{
  display:block;width:100%;min-height:3rem;margin:0;
  background:var(--obsidian-deep);color:var(--parchment);border:1px solid var(--filigree);
  padding:.65rem .8rem;font-family:var(--serif-body);font-size:1rem;letter-spacing:0;text-transform:none;
  color-scheme:dark;border-radius:0}
.theme-light .vs-filter input[type=search],.theme-light .vs-filter select{color-scheme:light}
.vs-filter input:focus,.vs-filter select:focus{outline:none;border-color:var(--gold-soft)}
.vs-filter__go{justify-content:center;min-height:3rem}
.vs-filter__reset{align-self:center;color:var(--gold-soft);text-decoration:underline;text-underline-offset:3px;font-size:.98rem}
@media (min-width:760px){
  .vs-filter{grid-template-columns:minmax(0,1.6fr) minmax(0,1.2fr) minmax(0,1fr) auto auto;align-items:stretch}
}
.vs-follow{margin:0 0 1rem}
.vs-tabs{display:flex;gap:.4rem;flex-wrap:wrap;margin:0 0 1.6rem;border-bottom:1px solid var(--filigree);padding-bottom:.9rem}
.vs-tab{display:inline-flex;align-items:center;gap:.5rem;min-height:2.75rem;padding:.5rem 1rem;border:1px solid var(--filigree);
  font-family:var(--serif-ui);font-size:.62rem;letter-spacing:.18em;text-transform:uppercase;color:var(--gold-soft);text-decoration:none;
  transition:border-color .25s ease,background-color .25s ease,color .25s ease}
.vs-tab:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
@media (hover:hover) and (pointer:fine){.vs-tab:hover{border-color:var(--gold)}}
.vs-tab.is-on{background:var(--gold);border-color:var(--gold);color:var(--obsidian)}
.vs-tab__n{font-family:var(--serif-body);letter-spacing:0;font-size:.9rem;opacity:.85}
.lotcard__est{font-size:.9rem;color:var(--parchment-dim)}
.lotcard__est bdi{color:var(--parchment)}

/* ---------------------------------------------- the lot page */
.bidlog__auto{font-style:normal;font-size:.78rem;color:var(--muted);letter-spacing:.06em;text-transform:uppercase;margin-inline-start:.35rem}
.bidlog__list b{white-space:nowrap}
.vs-h{font-family:var(--serif-ui);font-size:.64rem;letter-spacing:.22em;text-transform:uppercase;color:var(--brass);font-weight:500;margin:0 0 .7rem}
.vs-facts{margin:1.2rem 0 .6rem;display:grid;gap:.1rem;border-top:1px solid var(--filigree)}
.vs-facts>div{display:grid;grid-template-columns:minmax(5.5rem,.32fr) 1fr;gap:.2rem 1rem;padding:.7rem 0;border-bottom:1px solid var(--filigree)}
.vs-facts dt{font-family:var(--serif-ui);font-size:.6rem;letter-spacing:.2em;text-transform:uppercase;color:var(--brass);padding-top:.25rem}
.vs-facts dd{margin:0;color:var(--parchment)}
@media (max-width:480px){.vs-facts>div{grid-template-columns:1fr}}
.vs-share{margin:.6rem 0 1.4rem}
.vs-condition{margin:1.6rem 0;padding:1.1rem 1.2rem;border:1px solid var(--filigree);background:rgba(var(--surface-rgb),.5)}
.vs-condition p{margin:0 0 .7rem;color:var(--parchment-dim)}
.vs-condition p:last-child{margin-bottom:0}

.vs-max{margin:.8rem 0 0;border-top:1px solid var(--filigree);padding-top:.7rem}
.vs-max summary{cursor:pointer;color:var(--gold-soft);min-height:2.75rem;display:flex;align-items:center;list-style:none}
.vs-max summary::-webkit-details-marker{display:none}
.vs-max summary::before{content:"+";display:inline-block;inline-size:1.2rem;color:var(--gold)}
.vs-max[open] summary::before{content:"–"}
.vs-max summary:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.vs-max__l{display:block;margin:.4rem 0 .4rem;font-family:var(--serif-ui);font-size:.58rem;letter-spacing:.2em;text-transform:uppercase;color:var(--brass)}
.vs-max__row input{min-height:3rem}
.vs-max__help{margin:.5rem 0 0;color:var(--muted);font-size:.94rem;line-height:1.6}

.bidconfirm__sure{margin:0 0 .6rem;padding:.7rem .8rem;border:1px solid var(--sr-warn-bd);background:var(--sr-warn-bg);color:var(--sr-warn-fg);
  font-size:1.02rem;line-height:1.5}
.bidconfirm__sure[hidden]{display:none}
.bidconfirm__btns .btn{min-height:3rem;justify-content:center}

.vs-offer,.vs-second{margin:1.2rem 0 0;padding:1rem 0 0;border-top:1px solid var(--filigree)}
.vs-offer__f textarea{display:block;width:100%;margin-top:.5rem;background:var(--obsidian-deep);color:var(--parchment);
  border:1px solid var(--filigree);padding:.65rem .8rem;font-family:var(--serif-body);font-size:1rem}
.vs-second__btns{display:flex;gap:.6rem;flex-wrap:wrap}
.vs-second__btns form{margin:0}
.vs-second__btns .btn{min-height:3rem}
.vs-due a{margin-inline-start:.4rem}

/* ---------------------------------------------- "Ending soon" on the front page */
.es{padding-block:clamp(2rem,5vh,3.5rem)}
.es__head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.5rem 1.4rem;margin-bottom:1.2rem}
.es__title{font-family:var(--serif-display);font-weight:400;font-size:clamp(1.6rem,1.2rem + 1.4vw,2.3rem);margin:0;color:var(--parchment)}
.es__all{color:var(--gold-soft);text-decoration:underline;text-underline-offset:3px}
.es__track{display:flex;gap:.9rem;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:.8rem;margin-inline:calc(var(--gutter) * -1);
  padding-inline:var(--gutter);scroll-padding-inline:var(--gutter);-webkit-overflow-scrolling:touch}
.es__track>.lotcard{flex:0 0 min(72vw,260px);scroll-snap-align:start}
@media (min-width:900px){
  .es__track{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));overflow:visible;margin-inline:0;padding-inline:0}
  .es__track>.lotcard{flex:none}
}

/* ---------------------------------------------- accounts */
.acct-phone{margin-bottom:1.1rem}
.acct-phone__l{display:block;font-family:var(--serif-ui);font-size:.58rem;letter-spacing:.2em;text-transform:uppercase;color:var(--brass)}
.acct-phone__row{display:grid;grid-template-columns:minmax(0,44%) minmax(0,1fr);gap:.5rem;margin-top:.5rem}
.acct-phone__row select,.acct-phone__row input{margin:0 !important;min-height:3rem;color-scheme:dark}
.theme-light .acct-phone__row select{color-scheme:light}
.acct-phone__h,.acct-hint{display:block;margin:.5rem 0 1.1rem;color:var(--muted);font-size:.94rem;line-height:1.6;
  font-family:var(--serif-body);letter-spacing:0;text-transform:none}
@media (max-width:420px){.acct-phone__row{grid-template-columns:1fr}}
.pubform select{color-scheme:dark;min-height:3rem}
.theme-light .pubform select{color-scheme:light}
.pubform input[type=file]{display:block;width:100%;margin-top:.5rem;padding:.6rem;background:var(--obsidian-deep);color:var(--parchment-dim);
  border:1px dashed var(--filigree-lit);font-family:var(--serif-body);font-size:1rem;letter-spacing:0;text-transform:none;min-height:3rem}
.pubform input[type=file]::file-selector-button{margin-inline-end:.8rem;padding:.5rem .9rem;background:var(--surface-2);color:var(--gold-pale);
  border:1px solid var(--filigree-lit);font-family:var(--serif-body);font-size:.95rem;cursor:pointer}
.pubform input[type=text],.pubform input[type=email],.pubform input[type=tel],.pubform input[type=password],.pubform input[type=number]{min-height:3rem}
.acct-code{font-family:var(--serif-display) !important;font-size:1.8rem !important;letter-spacing:.35em !important;text-align:center;max-width:15rem}
.acct-check{min-height:2.75rem;align-items:center !important}
.acct-resend{margin-top:1.2rem;display:flex;flex-wrap:wrap;gap:.5rem 1rem;align-items:center}
.acct-resend a{color:var(--gold-soft);text-decoration:underline;text-underline-offset:3px}
.acct-google{margin:1.6rem 0 0;max-width:62ch}
.acct-google__btn{display:flex;justify-content:flex-start;min-height:44px;color-scheme:dark}
.acct-google__or{display:flex;align-items:center;gap:1rem;margin:1.2rem 0 0;color:var(--muted)}
.acct-google__or::before,.acct-google__or::after{content:"";flex:1;border-top:1px solid var(--filigree)}
.acct-state{padding:.8rem 1rem;border:1px solid var(--filigree-lit);margin:1rem 0;color:var(--parchment)}
.acct-state--ok{border-color:var(--sr-ok-bd);background:var(--sr-ok-bg);color:var(--sr-ok-fg)}
.acct-state--bad{border-color:var(--sr-warn-bd);background:var(--sr-warn-bg);color:var(--sr-warn-fg)}
.acct-note--warn{border-inline-start:2px solid var(--sr-warn-bd);padding-inline-start:.8rem;color:var(--parchment-dim)}
.acct-note a,.acct-hint a,.acct-links a{color:var(--gold-soft);text-decoration:underline;text-underline-offset:3px}
.acct-tag.is-bad{color:var(--sr-warn-fg);border-color:var(--sr-warn-bd);background:var(--sr-warn-bg)}
.acct-list--actions li{padding:.6rem 0;border-bottom:1px solid var(--filigree)}
.acct-list--actions .acct-offer>a{display:grid;grid-template-columns:auto 1fr auto;gap:.3rem 1rem;align-items:baseline;color:var(--parchment-dim);text-decoration:none}
.acct-list__v small{color:var(--muted)}
.vs-terms{max-height:22rem;overflow:auto;border:1px solid var(--filigree);padding:1rem 1.2rem;margin:1rem 0 1.4rem;background:rgba(var(--surface-rgb),.5)}
.vs-terms:focus-visible{outline:2px solid var(--gold);outline-offset:2px}

/* orders */
.acct-orders{list-style:none;margin:0;padding:0;border-top:1px solid var(--filigree)}
.acct-order{padding:.9rem 0;border-bottom:1px solid var(--filigree)}
.acct-order__top{display:flex;justify-content:space-between;align-items:center;gap:.8rem;flex-wrap:wrap}
.acct-order__top a{color:var(--gold-pale);text-decoration:none}
.acct-order__meta{margin:.4rem 0 0;color:var(--muted);font-size:.96rem}
.acct-order__meta b{color:var(--parchment);font-weight:400}
.acct-tag--os{color:var(--parchment-dim)}
.acct-tag--os.st-paid,.acct-tag--os.st-delivered,.acct-tag--os.st-shipped,.acct-tag--os.st-preparing{color:var(--gold);border-color:var(--gold)}
.acct-tag--os.st-under_review{color:var(--sr-warn-fg);border-color:var(--sr-warn-bd);background:var(--sr-warn-bg)}
.acct-tag--os.st-cancelled{opacity:.7}
.acct-order .acct-tag{grid-column:auto}
.vs-problem{margin-top:.7rem}
.vs-problem summary{cursor:pointer;color:var(--gold-soft);min-height:2.75rem;display:flex;align-items:center;text-decoration:underline;text-underline-offset:3px}
.vs-problem summary:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.vs-problem form{margin-top:.6rem;padding:1rem;border:1px solid var(--filigree);background:rgba(var(--surface-rgb),.5)}

/* follow + phone verification */
.acct-chips{list-style:none;margin:.6rem 0 1rem;padding:0;display:flex;flex-wrap:wrap;gap:.5rem}
.acct-chips form{display:inline-flex;align-items:center;gap:.4rem;border:1px solid var(--filigree-lit);padding:.2rem .3rem .2rem .8rem;margin:0}
.acct-chips span{color:var(--parchment)}
.acct-chip__x{background:none;border:0;color:var(--gold-soft);font-size:1.3rem;line-height:1;min-width:2.75rem;min-height:2.75rem;cursor:pointer}
.acct-follow{display:flex;gap:.6rem;flex-wrap:wrap;align-items:flex-end}
.acct-follow label{flex:1 1 14rem;margin:0}
.acct-follow button{margin:0}
.acct-phoneverify__row{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center}
.acct-phoneverify__row .acct-code{font-size:1.3rem !important;max-width:9rem;margin:0 !important;min-height:2.75rem}
.acct-phoneverify .btn{margin:0}
.acct-tabs{overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}
.acct-tabs a{white-space:nowrap;min-height:2.75rem;display:inline-flex;align-items:center}
@media (min-width:640px){.acct-tabs{flex-wrap:wrap;overflow:visible}}

/* ---------------------------------------------- phones: every control is a thumb's size */
@media (max-width:640px){
  .vs-tabs{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:.9rem}
  .vs-tab{white-space:nowrap}
  .bidquick__b{min-height:3.25rem}
  .bidform__row input{font-size:1.4rem}
  .btn{min-height:2.75rem}
}

/* ============================================================
   ARABIC
   1. Body text. Amiri sets smaller on the line than the Latin faces at the
      same size, so paragraphs, lists, labels and fields — everything that takes
      its size from the page — read smaller than in English and French. The page
      size is raised for Arabic only; anything with a size of its own (the
      headings, the buttons, the tracked small caps already raised in site-x.css)
      is untouched.
   2. The small header: on a phone the AR / FR / EN switch is smaller, so the
      switch, the account icon and the menu button all fit beside the name.
   ============================================================ */
html[dir="rtl"] body{font-size:clamp(1.14rem,1.06rem + .3vw,1.27rem);line-height:1.95}
html[dir="rtl"] input,html[dir="rtl"] select,html[dir="rtl"] textarea{font-size:1.1rem}
html[dir="rtl"] .pubform input[type=text],html[dir="rtl"] .pubform input[type=email],html[dir="rtl"] .pubform input[type=tel],
html[dir="rtl"] .pubform input[type=password],html[dir="rtl"] .pubform input[type=number],html[dir="rtl"] .pubform textarea,
html[dir="rtl"] .pubform select{font-family:var(--arabic);font-size:1.1rem}
html[dir="rtl"] .pubform input[dir=ltr]{font-family:var(--serif-body)}

/* tracked small capitals break Arabic's joined letters: no tracking, no capitals, Arabic face, a readable size */
html[dir="rtl"] .pubform label,html[dir="rtl"] .acct-phone__l,html[dir="rtl"] .vs-h,html[dir="rtl"] .vs-facts dt,
html[dir="rtl"] .vs-tab,html[dir="rtl"] .vs-max__l,html[dir="rtl"] .acct-h3,html[dir="rtl"] .acct-tabs a,
html[dir="rtl"] .acct-tag,html[dir="rtl"] .acct-list__no,html[dir="rtl"] .lotcard__badge,html[dir="rtl"] .lotcard__meta,
html[dir="rtl"] .bidbox__k,html[dir="rtl"] .bidbox__phase,html[dir="rtl"] .bidform__l,html[dir="rtl"] .bidbox__est,
html[dir="rtl"] .lotstrip dt,html[dir="rtl"] .lotstrip__k,html[dir="rtl"] .bidlog__h,html[dir="rtl"] .srbox__eyebrow,
html[dir="rtl"] .sr-band__n,html[dir="rtl"] .bidlog__auto{letter-spacing:0;text-transform:none;font-family:var(--arabic)}
html[dir="rtl"] .pubform label,html[dir="rtl"] .acct-phone__l,html[dir="rtl"] .vs-max__l{font-size:1.02rem}
html[dir="rtl"] .vs-h,html[dir="rtl"] .vs-facts dt,html[dir="rtl"] .acct-h3,html[dir="rtl"] .bidlog__h,html[dir="rtl"] .bidbox__k,
html[dir="rtl"] .bidform__l,html[dir="rtl"] .lotstrip dt,html[dir="rtl"] .lotstrip__k{font-size:1rem}
html[dir="rtl"] .vs-tab,html[dir="rtl"] .acct-tabs a{font-size:1rem}
html[dir="rtl"] .acct-tag,html[dir="rtl"] .lotcard__badge,html[dir="rtl"] .bidbox__phase,html[dir="rtl"] .acct-list__no,
html[dir="rtl"] .lotcard__meta{font-size:.88rem}
html[dir="rtl"] .resbadge{letter-spacing:0;text-transform:none;font-family:var(--arabic);font-size:.92rem;font-weight:700}
html[dir="rtl"] .lotcard .resbadge{font-size:.86rem}
html[dir="rtl"] .bidbox__top .resbadge{font-size:.98rem}
html[dir="rtl"] .bidbox__note,html[dir="rtl"] .acct-note,html[dir="rtl"] .acct-hint,html[dir="rtl"] .vs-max__help,
html[dir="rtl"] .acct-phone__h,html[dir="rtl"] .bidbox__msg,html[dir="rtl"] .bidlog__list li,html[dir="rtl"] .lotcard__est,
html[dir="rtl"] .lotcard__sale,html[dir="rtl"] .acct-order__meta{font-size:1.08rem}
html[dir="rtl"] .bidbox__est{font-size:1.1rem}
html[dir="rtl"] .acct-code{letter-spacing:.3em !important}

@media (max-width:760px){
  html[dir="rtl"] .nav-right{gap:.45rem}
  html[dir="rtl"] .lang a,html[dir="rtl"] .lang button{font-size:.7rem;min-width:1.65rem;padding:.4rem .36rem;letter-spacing:0}
  html[dir="rtl"] .lang a[hreflang="ar"]{font-size:.78rem}
  html[dir="rtl"] .hdr-icon{width:2rem;height:2rem}
  html[dir="rtl"] .hdr-icon svg{width:.95rem;height:.95rem}
  html[dir="rtl"] .navtoggle{padding:.65rem .7rem}
}
@media (max-width:400px){
  html[dir="rtl"] .nav{padding-inline:.8rem}
  html[dir="rtl"] .brandmark .wordmark b{font-size:.74rem}
}
/* 25 Nov 2026: the bidder's own private maximum, kept on screen */
.vs-max__mine{margin:.8rem 0 0;color:var(--gold-soft);font-size:.98rem;line-height:1.55}
.vs-max__mine.is-passed{color:var(--muted)}
