/* Regent Auctions Brisbane
   Palette: jeweller's velvet (deep amethyst), loupe white, brass for accents, cool grey paper. */
:root {
  --ink: #151a28;
  --ink-soft: #4a5166;
  --paper: #ffffff;
  --mist: #f1f2f7;
  --line: #d9dce7;
  --amethyst: #4a2c72;
  --amethyst-deep: #1d0f38;
  --amethyst-soft: #ece6f5;
  --brass: #8f6a1f;
  --ok: #1f6b4f;
  --warn: #8a5a00;
  --danger: #a12a3a;
  --radius: 6px;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mist); color: var(--ink); font: 400 1rem/1.6 var(--sans); font-variant-numeric: tabular-nums; }
img { max-width: 100%; display: block; }
a { color: var(--amethyst); text-underline-offset: 3px; }
a:hover { color: var(--amethyst-deep); }
:focus-visible { outline: 3px solid #9b6fe0; outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: 1.6rem; margin-top: 1.6em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { background: var(--amethyst-soft); padding: .1em .4em; border-radius: 3px; font-size: .9em; }
code.path { display: block; padding: .6em .8em; overflow-x: auto; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(520px, 100% - 40px); margin: 40px auto 64px; }
.hidden { display: none !important; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }
.warn { color: var(--warn); }
.danger { color: var(--danger); }
.inline { display: inline; margin: 0; }
.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }

/* ---------- header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.bar { display: flex; align-items: center; gap: 28px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-gem { width: 34px; height: 34px; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.7rem; letter-spacing: -.02em; line-height: 1; }
.brand-sub { font-size: .8rem; color: var(--ink-soft); border-left: 1px solid var(--line); padding-left: 10px; line-height: 1.2; }
.nav { display: flex; gap: 20px; }
.nav a, .acct a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .acct a:hover { border-color: var(--line); }
.nav a[aria-current="page"] { border-color: var(--amethyst); font-weight: 600; }
.acct { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--amethyst); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn.danger { color: var(--danger); }
.acct .linkbtn { color: var(--ink); text-decoration: none; }
.acct a.btn { color: #fff; border: 1.5px solid var(--amethyst); padding: 9px 14px; }
.acct a.btn:hover { background: var(--amethyst-deep); border-color: var(--amethyst-deep); }

/* ---------- buttons ---------- */
.btn { display: inline-block; font: 600 .95rem/1 var(--sans); padding: 13px 20px; border-radius: 4px; border: 1.5px solid var(--amethyst); background: var(--amethyst); color: #fff; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--amethyst-deep); border-color: var(--amethyst-deep); color: #fff; }
.btn-small { padding: 9px 14px; font-size: .875rem; }
.btn-big { padding: 16px 26px; font-size: 1rem; }
.btn-light { background: #fff; color: var(--amethyst-deep); border-color: #fff; }
.btn-light:hover { background: var(--amethyst-soft); color: var(--amethyst-deep); border-color: var(--amethyst-soft); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--amethyst); }
.btn-ghost-dark:hover { background: var(--amethyst-soft); color: var(--amethyst-deep); border-color: var(--amethyst); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(120% 140% at 80% 40%, #3a2063 0%, var(--amethyst-deep) 60%); color: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; min-height: 460px; gap: 24px; }
.hero-copy { padding: 56px 0; max-width: 34rem; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 600; line-height: 1.04; margin-bottom: .45em; }
.lead { font-size: 1.15rem; color: #d9cdee; max-width: 30rem; margin-bottom: 1.6em; }
.hero-art { position: relative; height: 100%; min-height: 320px; }
.hero-gem { position: absolute; width: min(520px, 110%); right: -70px; top: 50%; transform: translateY(-50%) rotate(-8deg); filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }

/* ---------- blocks ---------- */
.block { padding: 44px 0 8px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.block-head h2, .block > h2 { margin-top: 0; }
.page-head { margin-bottom: 20px; }
.page-head h1 { margin-bottom: .15em; }
.crumbs { font-size: .875rem; color: var(--ink-soft); margin: 24px 0 8px; }
.empty { background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; color: var(--ink-soft); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }

.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cat { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--radius); text-decoration: none; min-height: 168px; justify-content: flex-end; border: 1px solid transparent; }
.cat .icon { width: 52px; height: 52px; margin-bottom: auto; }
.cat-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.cat-count { font-size: .875rem; color: var(--ink-soft); }
.cat:hover { border-color: currentColor; }
.cat-lab-grown-diamonds { background: #e2eef9; color: #1d4f7a; }
.cat-natural-gemstones { background: var(--amethyst-soft); color: var(--amethyst); }
.cat-gold-jewellery { background: #f4ebd3; color: #7a5a12; }
.cat-silver-jewellery { background: #e5e8ee; color: #48505f; }

.assure { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; padding: 28px 0 8px; border-top: 1px solid var(--line); }
.assure h3 { margin-bottom: .3em; }
.assure p { color: var(--ink-soft); margin: 0; }

/* ---------- lot cards ---------- */
.lot-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.lot-card:hover { border-color: var(--amethyst); }
.lot-img { display: block; aspect-ratio: 1; background: var(--mist); }
.lot-img img { width: 100%; height: 100%; object-fit: cover; }
.noimg { display: grid; place-items: center; width: 100%; height: 100%; color: var(--ink-soft); background: var(--mist); }
.noimg .icon { width: 72px; height: 72px; }
.lot-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.lot-no { font-size: .8rem; color: var(--ink-soft); margin: 0 0 2px; }
.lot-card h3 { font-size: 1.12rem; margin: 0 0 4px; }
.lot-card h3 a { color: var(--ink); text-decoration: none; }
.lot-card h3 a:hover { text-decoration: underline; }
.spec { color: var(--ink-soft); font-size: .9rem; margin: 0 0 12px; }
.spec.big { font-size: 1.05rem; }
.lot-foot { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 10px; }
.lbl { display: block; font-size: .78rem; color: var(--ink-soft); }
.price { font-size: 1.2rem; font-weight: 600; }
.price.xl { font-size: 2.2rem; font-family: var(--serif); line-height: 1.1; }
.right { text-align: right; }
.countdown { font-weight: 600; }
.countdown.big { font-size: 1.4rem; }
.countdown.urgent { color: var(--danger); }

/* ---------- browse ---------- */
.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 16px; }
.filters .grow { flex: 1 1 220px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 20px; padding: 0; }
.tabs a { padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); font-size: .9rem; }
.tabs a[aria-current="page"] { background: var(--amethyst); border-color: var(--amethyst); color: #fff; }
.tabs .count { opacity: .7; margin-left: 2px; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 32px 0; }
.pager a { min-width: 38px; text-align: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); text-decoration: none; }
.pager a[aria-current="page"] { background: var(--amethyst); color: #fff; border-color: var(--amethyst); }

/* ---------- lot page ---------- */
.lot-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 44px; align-items: start; padding-bottom: 48px; }
.gallery { position: sticky; top: 92px; }
.gallery-main { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; padding: 0; margin: 10px 0 0; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: 4px; background: var(--paper); cursor: pointer; overflow: hidden; width: 100%; aspect-ratio: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--amethyst); }
.lot-info h1 { margin-bottom: .2em; }
.lot-info h2 { font-size: 1.3rem; margin-top: 1.8em; }
.bidbox { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--brass); border-radius: var(--radius); padding: 20px; margin: 18px 0 8px; }
.bid-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 8px; }
.bidform { display: flex; gap: 12px; align-items: flex-end; margin: 14px 0 8px; }
.bidform .field { flex: 1; margin: 0; }
.youlead { color: var(--ok); font-weight: 600; margin: 8px 0; }
.notice { background: var(--amethyst-soft); border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; }
.desc p { white-space: pre-line; max-width: 62ch; }
.specs { margin: 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 11rem 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--ink-soft); }
.specs dd { margin: 0; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; margin: 20px 0; }
.wide-form { grid-template-columns: 1fr 1fr; }
.span2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: .875rem; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=search], input[type=datetime-local], input:not([type]), select, textarea {
  font: inherit; color: inherit; padding: 11px 12px; border: 1px solid #b9bed0; border-radius: 4px; background: #fff; width: 100%;
}
input[type=file] { font: inherit; }
textarea { resize: vertical; }
.check, .radio { display: flex; gap: 10px; align-items: flex-start; }
.check input, .radio input { margin-top: .35em; accent-color: var(--amethyst); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0; }
legend { padding: 0 6px; font-weight: 600; }
.choice { display: grid; gap: 12px; background: var(--paper); }
.radio span { display: flex; flex-direction: column; }
.radio small { color: var(--ink-soft); }
.flashes { padding-top: 18px; display: grid; gap: 8px; }
.flash { margin: 0; padding: 12px 14px; border-radius: var(--radius); border: 1px solid; }
.flash ul { margin: 0; padding-left: 1.1em; }
.flash-ok { background: #e4f3ec; border-color: #a9d5c0; color: #0f4a34; }
.flash-error { background: #fbe9ec; border-color: #eab5bd; color: #7d1a29; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.table th { text-align: left; font-size: .8rem; font-weight: 600; color: var(--ink-soft); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num, .num { text-align: right; white-space: nowrap; }
.table.compact td, .table.compact th { padding: 7px 10px; }
.lotcell { display: flex; align-items: center; gap: 12px; min-width: 260px; }
.lotcell img, .thumb-empty { width: 48px; height: 48px; border-radius: 4px; object-fit: cover; flex: none; background: var(--mist); }
.actions-cell { white-space: nowrap; display: flex; gap: 12px; align-items: center; }
.actions-cell form { margin: 0; }
.reject { display: flex; gap: 8px; align-items: center; }
.reject input { padding: 7px 9px; width: 170px; font-size: .85rem; }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #e4e6ee; color: var(--ink-soft); }
.badge-ok, .badge-live { background: #dcf1e6; color: var(--ok); }
.badge-warn, .badge-pending { background: #fbecd0; color: var(--warn); }
.badge-scheduled { background: #dfe9f7; color: #24558f; }
.badge-sold { background: var(--amethyst-soft); color: var(--amethyst); }
.plain { padding-left: 1.1em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 8px; }
.stats div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; }
.stats strong { font-family: var(--serif); font-size: 2rem; line-height: 1.1; }
.stats span { color: var(--ink-soft); font-size: .875rem; }

/* ---------- seller ---------- */
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h2 { margin-top: 0; font-size: 1.35rem; }
.panel.wide { grid-column: 1 / -1; }
.dropzone { position: relative; display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; border: 2px dashed #a99ac4; border-radius: var(--radius); background: #faf8fd; padding: 34px 16px; margin-bottom: 14px; cursor: pointer; }
.dropzone.over, .dropzone:focus-within { background: var(--amethyst-soft); border-color: var(--amethyst); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.progress { height: 8px; background: var(--mist); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.bar-fill { height: 100%; width: 0; background: var(--amethyst); transition: width .2s; }
.result { margin-top: 14px; padding: 14px; border-radius: var(--radius); background: #e4f3ec; border: 1px solid #a9d5c0; }
.result ul { margin: 6px 0 0; padding-left: 1.1em; }
.publish { background: var(--paper); margin-top: 20px; }
.publish-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 10px; }
.photo-grid { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; padding: 0; margin: 0 0 16px; }
.photo-grid img { width: 160px; height: 160px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.photo-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.photo-actions form { margin: 0; }
.inline-upload { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }

/* ---------- prose + footer ---------- */
.prose { max-width: 44rem; padding: 40px 0 64px; }
.prose h2 { font-size: 1.45rem; }
.prose.narrow { margin-inline: auto; }
.site-footer { margin-top: 72px; background: var(--amethyst-deep); color: #d9cdee; padding: 36px 0; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-brand { font-family: var(--serif); font-size: 1.4rem; color: #fff; margin: 0 0 4px; }
.foot .muted { color: #b7a8d3; margin: 0; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.foot a { color: #e9e0f7; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { min-height: 220px; order: -1; }
  .hero-gem { width: 300px; right: -40px; top: 60%; }
  .hero-copy { padding-top: 8px; }
  .lot-layout { grid-template-columns: 1fr; gap: 24px; }
  .gallery { position: static; }
  .upload-grid, .wide-form { grid-template-columns: 1fr; }
  .nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 8px; gap: 18px; white-space: nowrap; }
  .bar { gap: 12px; padding-block: 8px; }
  .specs div { grid-template-columns: 8rem 1fr; }
}
@media (max-width: 520px) {
  .bidform { flex-direction: column; align-items: stretch; }
  .brand-sub { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
