/*
  BuyMe: "Drop night". Dark by default; <html data-theme="light"> switches the whole
  site to the light version (the choice is a cookie, see theme.jsp, so no script is needed).
  Every colour below is a token, so the two themes differ only in the values.
*/

:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --surface: #151517;
  --art: #1d1d20;
  --line: #2a2a2e;
  --line-2: #3a3a40;
  --field: #71717a;        /* borders of inputs, which have to be easy to see */
  --row: #1f1f22;
  --text: #f4f4f2;
  --muted: #a1a1a8;
  --accent: #d4ff3a;       /* lime used as a fill: banner, "closing soon" chip */
  --on-accent: #0b0b0c;
  --accent-text: #d4ff3a;  /* lime used as text: hover, links, labels */
  --price: #d4ff3a;
  --mark: transparent;     /* highlighter behind big prices (light theme only) */
  --btn: #d4ff3a;
  --btn-ink: #0b0b0c;
  --soon-line: #d4ff3a;
  --ghost: #2e2e33;        /* big faint item numbers */
  --wall-op: .15;          /* how strong the item photos behind the home page headline are */
  --wall-mix: normal;
  --bad: #ff7a6b;
  --display: "Barlow Condensed", "Bahnschrift", "Roboto Condensed", "Arial Narrow", "Avenir Next Condensed", Impact, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f3ee;
  --surface: #ffffff;
  --art: #e9e8e0;
  --line: #d9d7cc;
  --line-2: #9d9b8e;
  --field: #77756b;
  --row: #ecebe4;
  --text: #121211;
  --muted: #5c5c54;
  --accent: #b8e600;       /* the neon, a shade deeper so it holds up on the light page */
  --on-accent: #121211;
  --accent-text: #3d5c00;
  --price: #121211;
  --mark: #b8e600;
  --btn: #121211;
  --btn-ink: #d4ff3a;
  --soon-line: #121211;
  --ghost: #d6d4c6;
  --wall-op: .12;          /* low enough that the grey text on top keeps its contrast */
  --wall-mix: multiply;    /* the photos' white tiles melt into the page, only the items show */
  --bad: #b3261e;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.5 var(--body);
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
::placeholder { color: var(--muted); opacity: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.cn, .title, .sec, .label, .brand, .links a, .links button, .pill, .t, .btn, .go, .ghost, .q, th {
  font-family: var(--display);
  text-transform: uppercase;
}
.title { font-weight: 800; font-size: clamp(52px, 9vw, 112px); line-height: .9; letter-spacing: -.01em; overflow-wrap: anywhere; }
.title.sm { font-size: clamp(40px, 6vw, 64px); margin-bottom: 28px; }
.sec { font-weight: 800; font-size: 28px; line-height: 1.1; letter-spacing: .04em; margin-bottom: 12px; }
.label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 15px; line-height: 1.2; letter-spacing: .12em; color: var(--muted); }
.hint { font-size: 14px; color: var(--muted); margin-top: 6px; }
.muted { color: var(--muted); }
.flush { margin: 0 !important; }
main a:not([class]) { text-decoration: underline; text-underline-offset: 3px; }
main a:not([class]):hover { color: var(--accent-text); }

/* ---------- top bar ---------- */
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; padding: 10px 16px; background: var(--btn); color: var(--btn-ink); font-weight: 700; }
.skip:focus { left: 8px; }
.top { border-bottom: 1px solid var(--line); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 32px; line-height: 1; letter-spacing: .04em; }
.brand .sq { width: 16px; height: 16px; background: var(--accent); border: 2px solid var(--soon-line); display: block; }
.links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.links a, .links button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px;
  border: 1px solid transparent; background: none; color: var(--text); cursor: pointer;
  font-weight: 700; font-size: 17px; line-height: 1; letter-spacing: .08em;
}
.links a:hover, .links a[aria-current], .links button:hover { color: var(--accent-text); }
.links .out { border-color: var(--text); margin-left: 8px; }
.links .out:hover { border-color: var(--accent-text); }
.links .who { padding: 0 6px 0 14px; color: var(--muted); font: 600 15px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.links .sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 8px; }
.theme { margin: 0; }
.theme button { border-color: var(--line-2); }
.theme svg { width: 18px; height: 18px; flex: none; }

/* ---------- page ---------- */
.page { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 36px 32px 72px; }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot .wrap { justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.banner { margin-bottom: 28px; padding: 8px 16px; background: var(--accent); color: var(--on-accent); text-align: center; font: 700 18px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.crumbs { margin-bottom: 28px; font: 600 16px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--text); }
.crumbs a:hover { color: var(--accent-text); }

/* ---------- controls ---------- */
.btn, .go, .ghost, .q {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 0;
  cursor: pointer; font-weight: 800; letter-spacing: .1em; text-align: center;
}
.btn { min-height: 48px; padding: 0 24px; border: 0; background: var(--btn); color: var(--btn-ink); font-size: 20px; line-height: 1; }
.btn.ghost, .ghost { border: 1px solid var(--text); background: transparent; color: var(--text); }
.btn.wide, .go, .ghost { width: 100%; }
.go { min-height: 64px; border: 0; background: var(--btn); color: var(--btn-ink); font-size: 28px; line-height: 1; }
.ghost { min-height: 52px; font-weight: 700; font-size: 20px; line-height: 1; }
.btn:hover, .go:hover { opacity: .88; }
.ghost:hover, .btn.ghost:hover { border-color: var(--accent-text); color: var(--accent-text); }
.btn.danger { background: transparent; border: 1px solid var(--bad); color: var(--bad); min-height: 40px; padding: 0 14px; font-size: 16px; }
.btn.danger:hover { background: var(--bad); color: var(--bg); opacity: 1; }
.q { min-height: 52px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-weight: 700; font-size: 20px; letter-spacing: .06em; }
.q:hover { border-color: var(--accent-text); color: var(--accent-text); }

.in, .fld input, .fld select, .tools select {
  width: 100%; height: 52px; padding: 0 14px; border: 1px solid var(--field); border-radius: 0;
  background: transparent; color: var(--text); font: inherit; font-size: 18px;
}
.fld select, .tools select { background: var(--bg); }
.fld label, .tools label { font: 600 15px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
.inp { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 14px; border: 1px solid var(--field); color: var(--muted); font-size: 18px; }
.inp input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 20px; }
.inp:focus-within { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.fld .inp { margin: 0; }

.form { display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.box { background: var(--surface); border: 1px solid var(--line); padding: 22px; }
.stack { display: grid; gap: 18px; }
.msg { padding: 12px 16px; border: 1px solid var(--line-2); border-left: 6px solid var(--accent-text); background: var(--surface); margin-bottom: 18px; }
.msg.err { border-left-color: var(--bad); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.alt { margin-top: 14px; color: var(--muted); }

.auth { max-width: 460px; margin: 12px auto 0; display: grid; gap: 22px; }
.notice { max-width: 720px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--accent-text); }
.notice.err { border-left-color: var(--bad); }
.notice .title { margin-bottom: 8px; }
.head .title.sm, .auth .title.sm { margin-bottom: 0; }

/* ---------- items grid ---------- */
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.tools .s { width: 260px; }
.tools .o { min-width: 190px; }
.pill { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--line-2); color: var(--text); font-weight: 700; font-size: 18px; line-height: 1; letter-spacing: .08em; }
.pill:hover { border-color: var(--accent-text); color: var(--accent-text); }
.pill[aria-current] { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }

/* the items page: a search bar with a category dropdown (a <details>, so no script) and quick picks under it */
.bar { align-items: stretch; }
.bar .s { flex: 1 1 240px; width: auto; }
.bar .o { flex: none; width: 200px; min-width: 0; }
.bar .btn { min-height: 52px; }
.catpick { position: relative; flex: 1 1 100%; min-width: 0; }
.catpick summary { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border: 1px solid var(--field); background: var(--surface); list-style: none; cursor: pointer; }
.catpick summary::-webkit-details-marker { display: none; }
.catpick[open] summary { border-color: var(--accent-text); }
.catpick .stack { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; margin-right: auto; }
.catpick .label { margin: 0; font-size: 12px; line-height: 1; }
.catpick .cur { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 20px/1.05 var(--display); letter-spacing: .04em; text-transform: uppercase; background: linear-gradient(transparent 58%, var(--mark) 58%); }
.catpick summary .n { font: 600 18px/1 var(--display); color: var(--accent-text); }
.catpick summary::after { content: ""; flex: none; width: 9px; height: 9px; margin: -4px 4px 0 2px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.catpick[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.catpick summary:focus-visible { outline-offset: 2px; }
.pop { padding: 6px 0 14px; border: 1px solid var(--line); border-top: 0; background: var(--surface); }
.pop a, .chips a { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--display); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
main .pop a, main .chips a { text-decoration: none; }
.pop a { min-height: 40px; padding: 0 12px; border-left: 3px solid transparent; font-size: 18px; line-height: 1.1; }
.pop > a { min-height: 44px; margin: 0 14px; font-size: 20px; letter-spacing: .06em; }
.pop a:focus-visible { outline-offset: -2px; }
.pop a:hover, .chips a:hover { color: var(--accent-text); }
.pop a[aria-current] { border-left-color: var(--soon-line); background: var(--row); }
.pop a[aria-current] span:first-child { background: linear-gradient(transparent 58%, var(--mark) 58%); }
.pop .n, .chips .n { font-weight: 600; color: var(--muted); }
.pop a[aria-current] .n { color: var(--accent-text); }
.pop .zero, .chips .zero { color: var(--muted); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 28px; padding: 10px 14px 0; }
.col { min-width: 0; }
.pop .grp { display: flex; align-items: center; min-height: 42px; margin: 0; padding: 0 12px; border-bottom: 1px solid var(--line); font: 600 14px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 14px 0 26px; }
.chips a { display: inline-flex; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-2); font-size: 17px; line-height: 1; letter-spacing: .08em; }
.chips a:hover { border-color: var(--accent-text); }
.chips a[aria-current] { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.chips a[aria-current] .n { color: inherit; }
@media (min-width: 960px) {
  .catpick { flex: none; width: 300px; }
  .pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 5; width: 880px; max-width: calc(100vw - 64px); border: 1px solid var(--field); box-shadow: 0 24px 48px rgb(0 0 0 / .45); }
}
@media (max-width: 720px) {
  .bar .o { width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips a { flex: none; }
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.card:hover, .card:focus-visible { border-color: var(--accent-text); }
.card.is-ended { opacity: .78; }
.ph { position: relative; height: 190px; overflow: hidden; background: var(--art); }
.ph .itemno, .art .big { position: absolute; left: 14px; bottom: -14px; font: 800 132px/1 var(--display); color: var(--ghost); user-select: none; }
.ph .cat, .art .cat { position: absolute; left: 14px; top: 12px; font: 600 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ph .t { position: absolute; right: 12px; top: 12px; }
.t { display: inline-block; padding: 6px 10px; border: 1px solid var(--text); background: var(--bg); color: var(--text); font-weight: 700; font-size: 15px; line-height: 1; letter-spacing: .08em; }
.t.soon { background: var(--accent); border-color: var(--soon-line); color: var(--on-accent); }
.t.end { border-color: var(--line-2); color: var(--muted); }
.cb { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 18px; }
.nm { font: 700 30px/1.05 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.sub { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); overflow-wrap: anywhere; }
.pr { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.plabel { font: 600 14px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.price { display: inline-block; font: 800 56px/1 var(--display); color: var(--price); background: linear-gradient(transparent 58%, var(--mark) 58%); }
.bidn { font: 600 16px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- item page ---------- */
.item { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; align-items: start; margin-bottom: 36px; }
.art { position: sticky; top: 24px; aspect-ratio: 1 / 1; overflow: hidden; background: var(--art); border: 1px solid var(--line); }
.art .cat { left: 20px; top: 18px; font-size: 16px; letter-spacing: .12em; }
.art .big { left: 14px; bottom: -34px; font-size: 360px; }
.info { display: grid; gap: 18px; min-width: 0; }
.meta { margin-top: 10px; font: 600 18px/1.3 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pricebox { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end; }
.bigprice { display: inline-block; margin-bottom: 8px; font: 800 clamp(72px, 10vw, 112px)/.9 var(--display); color: var(--price); background: linear-gradient(transparent 60%, var(--mark) 60%); }
.bidcount { display: block; font: 600 16px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.closes { text-align: right; }
.units { display: flex; gap: 8px; justify-content: flex-end; }
.unit { min-width: 70px; padding: 8px 12px; border: 1px solid var(--soon-line); text-align: center; }
.unit b { display: block; font: 800 44px/1 var(--display); }
.unit span { font: 600 13px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.unit.done { border-color: var(--line-2); font: 800 32px/1 var(--display); text-transform: uppercase; color: var(--muted); }
.you { display: inline-block; margin-top: 8px; }
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.verdict { font: 800 clamp(32px, 4vw, 44px)/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; align-items: start; }
.line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--row); }
.line:last-child { border-bottom: 0; }
.line .nm { font-size: 24px; }
.line .muted { text-align: right; }
.line:hover .nm { color: var(--accent-text); }
.alertline { font: 600 16px/1.3 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }

/* ---------- tables and lists ---------- */
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 8px 14px 8px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 600; font-size: 15px; line-height: 1.2; letter-spacing: .12em; color: var(--muted); white-space: nowrap; }
td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--row); vertical-align: top; overflow-wrap: break-word; }
tr:last-child td { border-bottom: 0; }
td.num { font: 700 22px/1.2 var(--display); }
td.top { font: 800 24px/1.2 var(--display); color: var(--price); }
.section { margin-bottom: 44px; }
.section > .sec { margin-bottom: 16px; }
.alerts, .qa { list-style: none; padding: 0; display: grid; gap: 12px; }
.alerts li, .qa li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); }
.qa li { align-items: flex-start; flex-direction: column; gap: 6px; }
.qa .q-text { font: 700 24px/1.15 var(--display); text-transform: uppercase; }
.qa .who { font-size: 14px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tile { display: block; padding: 20px; background: var(--surface); border: 1px solid var(--line); font: 700 24px/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.tile:hover { border-color: var(--accent-text); color: var(--accent-text); }
.tile small { display: block; margin-top: 6px; font: 400 15px/1.3 var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); }
.ok-text { color: var(--accent-text); }
.bad-text { color: var(--bad); }

@media (prefers-reduced-motion: no-preference) {
  .card, .pill, .pop a, .chips a, .q, .btn, .go, .ghost, .tile, .links a, .links button { transition: border-color .15s, color .15s, opacity .15s, background-color .15s; }
}

@media (max-width: 900px) {
  .item, .pair { grid-template-columns: minmax(0, 1fr); }
  .art { position: relative; top: 0; aspect-ratio: 4 / 3; }
  .art .big { font-size: 220px; bottom: -22px; }
}

@media (max-width: 480px) {
  .theme .lbl, .links .who { display: none; }
  .theme button { padding: 0 12px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 12px 16px; }
  .page { padding: 24px 16px 56px; }
  .links { width: 100%; margin-left: 0; gap: 2px; }
  .links a, .links button { min-height: 44px; padding: 0 10px; font-size: 16px; letter-spacing: .06em; }
  .links .out { margin-left: 0; }
  .links .sep { display: none; }
  .q { font-size: 17px; letter-spacing: .02em; padding: 0 4px; }
  td, th { padding-right: 8px; }
  .tools, .tools .s, .tools .o { width: 100%; }
  .tools .btn { width: 100%; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .pricebox { grid-template-columns: minmax(0, 1fr); }
  .closes, .units { text-align: left; justify-content: flex-start; }
  .foot .wrap { flex-direction: column; align-items: flex-start; gap: 4px; }
  .notice { padding: 20px; }
}

/* ---------- inline forms (rep console) ---------- */
.inline { display: flex; gap: 10px; width: 100%; margin-top: 4px; }
.inline .in { flex: 1; min-width: 0; }
.tools.section { margin-bottom: 28px; }
@media (max-width: 720px) { .inline { flex-direction: column; } }

/* ---------- product photos ---------- */
.has-photo { background: #fff; }
.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.art.has-photo .photo { padding: 40px; }
.tag { position: absolute; left: 14px; bottom: 12px; padding: 4px 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: 700 14px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.has-photo .cat { padding: 4px 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); }
.title.mid { font-size: clamp(40px, 5.5vw, 72px); line-height: .95; }
.title.long { font-size: clamp(30px, 4.2vw, 52px); line-height: 1; }
.cb { flex: 1; }
.pr { margin-top: auto; }
.line .nm { flex: 1 1 220px; min-width: 0; }
.line .muted { flex: none; white-space: nowrap; }
.bullets { margin: 14px 0 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--muted); }
.bullets li::marker { color: var(--accent-text); }
.sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nm { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- paging and footer ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.pager .gap { align-self: center; color: var(--muted); padding: 0 4px; }
.center { text-align: center; }
.foot a { text-decoration: underline; text-underline-offset: 3px; }
.foot a:hover { color: var(--accent-text); }
.foot .wrap > span:last-child { max-width: 640px; text-align: right; }
@media (max-width: 720px) { .foot .wrap > span:last-child { text-align: left; } .photo { padding: 12px; } }

/* cards in a row beside other things (similar items under an item): narrower, no category label, a swipeable row on a phone */
.similar { margin-top: 44px; }
.similar > .sec { margin-bottom: 16px; }
.similar .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.similar .cat { display: none; }
.similar .nm { font-size: 26px; }
.similar .price { font-size: 48px; }
@media (max-width: 720px) {
  .similar .grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; }
  .similar .card { scroll-snap-align: start; }
}

/* ---------- home page (index.jsp): a wide page, so its bands can run edge to edge ---------- */
.page.wide { max-width: none; padding: 0 0 72px; }
.hold { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
/* the wall behind the headline: item photos in four strips that slide sideways (img/wall.webp holds them all, see tools/build-wall.py) */
.stage { position: relative; overflow: hidden; }
.wall { position: absolute; inset: 0; overflow: hidden; opacity: var(--wall-op); mix-blend-mode: var(--wall-mix); pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 76%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 76%, transparent); }
.rows { position: absolute; left: -140px; right: -140px; top: -50px; bottom: -50px; display: flex; flex-direction: column; justify-content: center; gap: 12px; transform: rotate(-4deg); }
.lane { flex: none; width: 5832px; height: 150px; background: url("../img/wall.webp") 0 0 / 1944px 648px repeat-x; }
.lane:nth-child(2) { background-position: 0 -162px; }
.lane:nth-child(3) { background-position: 0 -324px; }
.lane:nth-child(4) { background-position: 0 -486px; }
.hero { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px 56px; padding-top: 56px; padding-bottom: 56px; }
.going { flex: 1 1 560px; min-width: 0; font: 800 clamp(88px, 14vw, 176px)/.82 var(--display); letter-spacing: -.02em; text-transform: uppercase; }
.going span { display: block; }
.going .gone { display: inline-block; color: var(--price); background: linear-gradient(transparent 58%, var(--mark) 58%); }
.hero-side { flex: 1 1 340px; min-width: 0; max-width: 440px; display: flex; flex-direction: column; gap: 22px; }
.lede { font-size: 20px; color: var(--muted); }
.hero-search { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-search .in { flex: 1 1 200px; width: auto; height: 56px; padding: 0 16px; font-size: 18px; }
.hero-search .btn { min-height: 56px; padding: 0 30px; font-size: 22px; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.hero-links a { font: 700 19px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.b-out { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--text); }
.b-out:hover { border-color: var(--accent-text); color: var(--accent-text); }
.b-text { color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; }
.ticker { padding: 14px 0; overflow: hidden; white-space: nowrap; background: var(--accent); color: var(--on-accent); font: 800 24px/1.3 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.tk { display: flex; width: max-content; }
.tk span { flex: none; }
@keyframes slide { to { transform: translateX(-1944px); } }
@keyframes slide-half { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) {
  .lane { animation: slide 150s linear infinite; }
  .lane:nth-child(2) { animation-duration: 120s; animation-direction: reverse; animation-delay: -55s; }
  .lane:nth-child(3) { animation-duration: 170s; animation-delay: -90s; }
  .lane:nth-child(4) { animation-duration: 135s; animation-direction: reverse; animation-delay: -10s; }
  .tk { animation: slide-half 60s linear infinite; }
  .ticker:hover .tk { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .tk { padding-left: 32px; } }
.band { margin-top: 72px; }
.band-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
.band-title { font: 800 clamp(44px, 6vw, 64px)/.95 var(--display); letter-spacing: -.01em; text-transform: uppercase; }
.band-head span { font: 600 16px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.more { font: 700 18px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; }
.next .grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.next .ph { height: 300px; }
.next .photo { padding: 26px; }
.next .ph .t { left: 14px; right: auto; top: 14px; padding: 7px 12px; font-size: 20px; }
.next .cat { display: none; }
.next .nm { font-size: 32px; }
.next .price { font-size: 72px; }
.posters { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.poster { position: relative; display: block; height: 300px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.poster:hover { border-color: var(--accent-text); }
.poster img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; padding: 20px 20px 70px; object-fit: contain; }
.poster .cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 16px 12px; background: var(--bg); border-top: 1px solid var(--line); }
.poster b { font: 800 44px/1 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.poster .cap span { font: 600 20px/1 var(--display); color: var(--accent-text); }
.and { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; margin-top: 28px; }
.and > span { font: 600 15px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.al { font: 700 30px/1.2 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.al:hover { color: var(--accent-text); }
.al small { margin-left: 8px; font: 600 18px/1 var(--display); color: var(--muted); }
.hows { margin: 0; padding: 0; list-style: none; }
.how { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 36px; padding: 22px 0 26px; border-top: 1px solid var(--line-2); }
.how .num { flex: 0 0 150px; font: 800 120px/.85 var(--display); color: var(--line-2); }
.how .txt { flex: 1 1 420px; min-width: 0; }
.how h3 { font: 800 48px/1 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.how p { max-width: 620px; margin-top: 10px; font-size: 19px; color: var(--muted); }
.cta { margin-top: 56px; background: var(--accent); color: var(--on-accent); }
.cta .hold { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-top: 48px; padding-bottom: 48px; }
.cta h2 { font: 800 clamp(44px, 6vw, 72px)/.92 var(--display); letter-spacing: -.01em; text-transform: uppercase; }
.cta a { display: inline-flex; align-items: center; min-height: 60px; padding: 0 34px; background: var(--on-accent); color: var(--accent); font: 800 24px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 720px) {
  .hold { padding: 0 16px; }
  .hero { padding-top: 32px; padding-bottom: 40px; }
  .ticker { padding: 12px 0; font-size: 20px; }
  @media (prefers-reduced-motion: reduce) { .tk { padding-left: 16px; } }
  .band { margin-top: 56px; }
  .next .grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; }
  .next .card { scroll-snap-align: start; }
  .posters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .poster { height: 210px; }
  .poster img { padding: 12px 12px 56px; }
  .poster .cap { padding: 8px 10px; }
  .poster b { min-width: 0; font-size: 22px; }
  .poster .cap span { font-size: 16px; }
  .al { font-size: 24px; }
  .how .num { flex-basis: 100%; font-size: 80px; }
  .how h3 { font-size: 36px; }
  .cta .hold { padding-top: 32px; padding-bottom: 32px; }
}

/* ---------- orders and checkout ---------- */
.oitem { display: flex; align-items: center; gap: 12px; font: 700 20px/1.1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.oitem:hover { color: var(--accent-text); }
.thumb { position: relative; flex: none; width: 48px; height: 48px; background: #fff; }
.thumb img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; padding: 3px; object-fit: contain; }
.tbl td strong { font: 800 24px/1.1 var(--display); }
.sub2 { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.act { display: grid; gap: 8px; min-width: 210px; margin-top: 8px; }
.act .in { height: 44px; font-size: 16px; }
.act select { background: var(--bg); }
.act .btn, td > .btn { min-height: 44px; font-size: 17px; }
.line.total { padding-top: 16px; border-bottom: 0; font: 800 30px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.orderline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }

/* ---------- demo mail ---------- */
.mails { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mails .label { margin-bottom: 4px; }
.mailbody { margin: 12px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 16px/1.5 var(--body); color: var(--muted); }

/* ---------- the sell and edit forms: photo upload ---------- */
.fld input[type="file"] { height: auto; padding: 12px 14px; font-size: 16px; }
.fld input[type="file"]::file-selector-button { margin-right: 14px; padding: 8px 16px; border: 1px solid var(--field); border-radius: 0; background: transparent; color: var(--text); font: 600 15px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.fld input[type="file"]::file-selector-button:hover { border-color: var(--accent-text); color: var(--accent-text); }
.fld .check { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; font: 400 16px/1.3 var(--body); letter-spacing: 0; text-transform: none; color: var(--text); }
.fld .check input { flex: none; width: 20px; height: 20px; padding: 0; }
.fld input:disabled, .fld select:disabled { opacity: .55; }
.thumb.big { display: block; width: 140px; height: 140px; margin-bottom: 10px; }
.thumb.big img { padding: 8px; }
.fld textarea { display: block; width: 100%; min-height: 128px; padding: 12px 14px; border: 1px solid var(--field); border-radius: 0; background: transparent; color: var(--text); font: inherit; font-size: 18px; line-height: 1.4; resize: vertical; }

/* ---------- tables of items and orders: the actions sit in a row, and on a phone each row becomes a small card ---------- */
.acts { white-space: nowrap; }
.chips.few { flex-wrap: wrap; overflow-x: visible; }
.acts .act { display: inline-block; min-width: 0; margin: 0 0 0 8px; }
.u { display: none; }
@media (max-width: 720px) {
  .stack table, .stack tbody { display: block; }
  .stack thead { display: none; }
  .stack tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 14px 0; border-bottom: 1px solid var(--row); }
  .stack tr:last-child { border-bottom: 0; }
  .stack td { display: block; padding: 0; border: 0; }
  .stack td:first-child, .stack td:last-child { flex: 1 1 100%; }
  .stack td:last-child { margin-top: 6px; text-align: left; }
  .stack .acts .act { margin: 0 8px 0 0; }
  .stack .u { display: inline; font: 400 15px var(--body); color: var(--muted); }
}

/* ---------- watching ---------- */
.btn.alt { background: transparent; border: 1px solid var(--field); color: var(--text); }
.btn.alt:hover { border-color: var(--accent-text); color: var(--accent-text); opacity: 1; }
.watch { display: grid; gap: 10px; }
.watch p { margin: 0; }

/* ---------- questions about an item ---------- */
.qlist { list-style: none; margin: 18px 0 0; padding: 0; }
.qlist > li { display: grid; gap: 8px; padding: 16px 0; border-top: 1px solid var(--row); }
.qlist > li:first-child { border-top: 0; padding-top: 0; }
.qwho { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0; }
.qwho .who { font: 700 17px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.qwho .when { font-size: 14px; color: var(--muted); }
.qtext { margin: 0; overflow-wrap: anywhere; }
.answer { display: grid; gap: 6px; padding-left: 16px; border-left: 3px solid var(--accent); }
.answer .who { color: var(--accent-text); }
.sub2.hot { color: var(--accent-text); font-weight: 600; }
#questions, #reviews { margin-top: 24px; }
#questions .form { margin-bottom: 4px; }

/* ---------- reviews ---------- */
.stars { color: var(--accent-text); letter-spacing: .12em; white-space: nowrap; }

/* ---------- filters on the items page (a <details>, so no script) ---------- */
.filters { flex: 1 1 100%; min-width: 0; }
.filters summary { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; list-style: none; cursor: pointer; font: 700 17px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: ""; width: 8px; height: 8px; margin: -3px 0 0 2px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.filters[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.filters summary:hover { color: var(--accent-text); }
.filters summary .n { color: var(--accent-text); }
.fgrid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; padding: 10px 0 4px; }
.fgrid .fld { flex: 0 1 200px; min-width: 150px; }
.fgrid .more { align-self: center; }
