@font-face {
  font-family: Montserrat;
  src: url("/assets/montserrat-cyrillic.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Montserrat;
  src: url("/assets/montserrat-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #434242;
  --accent: #54b686;
  --deep: #254536;
  --tint: #ecf7f1;
  --line: #d3e2da;
  --edge: #74877d;
  --radius: 15px;
  --pad: clamp(1rem, 4vw, 1.5rem);
  --heading: Montserrat, system-ui, sans-serif;
  font: 16px/1.5 "Averta CY", system-ui, sans-serif;
  color: var(--ink);
  background: white;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; overflow-wrap: anywhere; }
.brand-inner, main { max-width: 46rem; margin-inline: auto; padding-inline: var(--pad); }
.brand-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(25%, 10rem);
  align-items: stretch;
  gap: .5rem;
  padding-block: .75rem 1.25rem;
  border-bottom: 1px solid var(--accent);
}
.brand-inner::after {
  content: "";
  background: white url("/assets/pattern.png") center / auto 180%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.brand-lockup { display: flex; align-items: center; gap: .5rem; margin-bottom: .55rem; }
.brand-mark { display: grid; place-content: center; flex: none; width: 4.75rem; height: 3rem; overflow: hidden; }
.brand-mark img { display: block; width: 13rem; height: auto; }
main { padding-block: 1.1rem 2.5rem; }
h1, h2 { font: 700 1.25rem/1.15 var(--heading); text-transform: uppercase; margin: 0; }
h1 { font-size: clamp(1.85rem, 8vw, 3.75rem); letter-spacing: -.045em; }
p { margin: .5rem 0 0; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
#notice { color: var(--deep); }
#notice:empty { margin: 0; }
#notice:not(:empty) {
  margin: 0 0 1rem;
  padding: .65rem .9rem;
  border-inline-start: 2px solid var(--accent);
  background: var(--tint);
}
article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--pad);
  margin-bottom: 1rem;
}
.live-label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 .65rem;
  color: var(--deep);
}
.live-label::before { content: ""; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); }
#lot-title { font-size: clamp(1.35rem, 5vw, 2rem); }
.bid-readout {
  margin-top: 1rem;
  padding: .85rem 1rem 1rem;
  border-top: 1px solid var(--accent);
  border-radius: 10px;
  color: var(--deep);
  background: var(--tint);
}
.bid-readout .eyebrow { margin: 0; }
.price { font: 700 clamp(2rem, 9vw, 3.5rem)/1.05 var(--heading); font-variant-numeric: tabular-nums; margin: .35rem 0 0; }
.price-compact { font-size: clamp(1rem, 5vw, 2.5rem); }
dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 4.5rem), 1fr)); gap: .75rem; margin: 1rem 0 0; }
dl div { display: flex; flex-direction: column; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: .65rem; }
dt, small { font-size: .875rem; }
dd { margin: .15rem 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
form { display: grid; gap: .6rem; }
#bid { margin-top: 1rem; }
#entry > :not([hidden]) ~ form, #import { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--accent); }
label { display: grid; gap: .3rem; min-width: 0; font-weight: 600; }
input, button { color: inherit; font: inherit; min-height: 44px; border-radius: 10px; }
input { width: 100%; min-width: 0; padding: .55rem .7rem; border: 1px solid var(--edge); background: white; }
input::file-selector-button { color: var(--deep); background: var(--tint); border: 0; border-radius: 5px; margin-inline-end: .6rem; }
button { background: white; border: 1px solid var(--edge); padding: .55rem .9rem; font-weight: 700; cursor: pointer; }
button.primary { background: var(--accent); color: #193026; border-color: var(--accent); }
button:not(:disabled):active { background: var(--tint); }
button.primary:not(:disabled):active { background: #4ba679; border-color: #4ba679; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; }
nav, .actions { display: flex; flex-wrap: wrap; gap: .5rem; }
nav { border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
nav button { border: 0; border-bottom: 2px solid transparent; border-radius: 10px 10px 0 0; }
nav button[aria-pressed="true"] { border-bottom-color: var(--accent); background: var(--tint); color: var(--deep); }
#admin h2 { border-bottom: 1px solid var(--accent); padding-bottom: .65rem; margin-bottom: .75rem; }
#advance { margin-top: .75rem; }
#lot-list, #draft-lots { padding-inline-start: 1.5rem; margin: .5rem 0; }
#lot-list li, #draft-lots li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
#lot-list li::marker, #draft-lots li::marker { color: var(--deep); font-weight: 700; }
.lot-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-bottom: .55rem; }
.lot-fields label:first-child { grid-column: 1 / -1; }
.table-scroll { overflow-x: auto; margin-bottom: .85rem; }
table { width: 100%; border-collapse: collapse; text-align: left; overflow-wrap: normal; }
th, td { border-bottom: 1px solid var(--line); padding: .55rem; }
th { background: var(--tint); color: var(--deep); }
td:first-child, #results td:nth-child(2) { min-width: 8ch; overflow-wrap: anywhere; }

@media (min-width: 36rem) {
  #bid { grid-template-columns: 1fr auto; align-items: end; }
}

@media (hover: hover) {
  button:not(:disabled):hover { border-color: var(--deep); }
}
