/* LiveAuction.jp v3.2 — auction-marketplace layout: white pages, square uppercase controls, bordered cards. Mobile first. */
/* Self-hosted fonts (no third-party request before first paint). */
@font-face { font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/v3/fonts/inter-cyrillic-ext.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/v3/fonts/inter-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/v3/fonts/inter-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/v3/fonts/inter-latin.woff2) format("woff2"); 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; }
@font-face { font-family: Jost; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/v3/fonts/jost-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Jost; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/v3/fonts/jost-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Jost; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/v3/fonts/jost-latin.woff2) format("woff2"); 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 {
  --bg: #fff;
  --bg-2: #f6f6f6;
  --beige: #fbf7f2;
  --beige-line: #ecdfd2;
  --ink: #1b1c1d;
  --ink-2: #595c61;
  --muted: #8a8d91;
  --line: #e2e2e2;
  --line-2: #c9cbce;
  --pri: #1f4e79;
  --pri-d: #163a5b;
  --navy: #10263a;
  --red: #c4271d;
  --sun: #c8102e;
  --ok: #1a7f5a;
  --r: 0;
  --rc: 8px;
  --wrap: 1320px;
  --gut: 16px;
  --hdr: 113px;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --head: Jost, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --track: .08em;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
:lang(ja) { --sans: Inter, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif; --head: Jost, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; --track: .02em; }
:lang(zh-Hans) { --sans: Inter, -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; --head: Jost, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; --track: .02em; }
:lang(zh-Hant) { --sans: Inter, -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; --head: Jost, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; --track: .02em; }
:lang(ko) { --sans: Inter, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; --head: Jost, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; --track: .02em; }
@media (min-width: 768px) { :root { --gut: 24px; } }
@media (min-width: 1024px) { :root { --hdr: 117px; } }
@media (min-width: 1280px) { :root { --gut: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.6 var(--sans); letter-spacing: .01em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.3; text-wrap: balance; word-break: auto-phrase; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3 { word-break: keep-all; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--pri); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; }
.skip:focus { top: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 820px; }
.muted { color: var(--ink-2); }
.i { flex: none; }
[hidden] { display: none !important; }
@media (max-width: 1023px) { .only-d { display: none !important; } }
@media (min-width: 1024px) { .only-m { display: none !important; } }

/* ---------- buttons: square, uppercase, tracked ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--r); border: 1px solid transparent; font-size: 12px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; line-height: 1.1; white-space: nowrap; text-decoration: none !important; transition: background .15s, border-color .15s, color .15s; }
.btn-sm { height: 34px; padding: 0 14px; }
.btn-lg { height: auto; min-height: 48px; padding: 8px 24px; font-size: 14px; white-space: normal; text-align: center; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--pri); color: #fff; }
.btn-primary:hover { background: var(--pri-d); }
.btn-outline { background: #fff; border-color: var(--pri); color: var(--pri); }
.btn-outline:hover { background: #f1f5f9; }
.btn-text { background: none; color: var(--pri); padding: 0 10px; }
.btn-text:hover { background: #f1f5f9; }
.btn-text-light { border-color: rgba(255, 255, 255, .8); color: #fff; background: none; }
.btn-text-light:hover { background: rgba(255, 255, 255, .1); }
.btn-google { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn-google:hover { background: var(--bg-2); }
.btn[aria-pressed="true"] .i { fill: var(--sun); stroke: var(--sun); }
.btn[disabled] { opacity: .55; cursor: progress; }
.link { background: none; border: 0; padding: 0; color: var(--pri); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; display: inline-flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 8px; border: 0; background: none; color: var(--ink); text-decoration: none !important; font-size: 13px; }
.icon-btn:hover { background: var(--bg-2); }
.dot { position: absolute; top: 3px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--sun); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; letter-spacing: 0; }
.pill { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--pri); color: #fff; font-size: 11px; line-height: 20px; letter-spacing: 0; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.hdr-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "menu logo actions" "search search search"; align-items: center; column-gap: 4px; padding-top: 8px; padding-bottom: 10px; }
.hamb { grid-area: menu; margin-left: -8px; }
.hdr-row .logo { grid-area: logo; }
.logo { display: inline-flex; align-items: center; gap: 9px; font: 400 20px/1 var(--head); letter-spacing: 0; color: var(--ink); text-decoration: none !important; white-space: nowrap; }
.logo b { font-weight: 500; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-w b { font-weight: 500; letter-spacing: -.01em; }
.logo-w > span { color: var(--muted); }
.search { grid-area: search; position: relative; display: flex; margin-top: 8px; }
.search input { width: 100%; height: 44px; padding: 0 48px 0 14px; border: 1px solid var(--ink); border-radius: 0; background: #fff; font-size: 16px; -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--ink); }
.search button { position: absolute; right: 0; top: 0; width: 48px; height: 44px; border: 0; background: none; color: var(--ink); display: grid; place-items: center; }
.search-inline { max-width: 480px; margin: 24px auto; }
.hdr-actions { grid-area: actions; position: relative; display: flex; align-items: center; gap: 2px; margin-right: -4px; }
.acct { display: inline-flex; align-items: center; gap: 4px; }
.acct .btn-text { padding: 0 8px; height: 34px; }
.acct-chip { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--pri); color: #fff; font-weight: 600; font-size: 14px; text-transform: uppercase; }
.lang-btn { font-weight: 500; }
@media (max-width: 1023px) { .hdr-row .logo { min-width: 0; overflow: hidden; } .acct .btn-text { padding: 0 6px; font-size: 11px; } .acct .btn-sm { padding: 0 10px; font-size: 11px; } .saved-btn { min-width: 34px; padding: 0 4px; } }
@media (max-width: 440px) { .saved-btn { display: none; } .logo { font-size: 18px; gap: 6px; } .logo-mark { width: 26px; height: 26px; } .acct .btn { letter-spacing: .02em; } .acct .btn-text { padding: 0 4px; } .acct .btn-sm { padding: 0 8px; } }
/* When the account buttons leave no room (long languages on narrow phones), the wordmark goes and the mark stays; site.js decides. */
.logo.tight .logo-w { display: none; }
.cats { display: none; border-top: 1px solid var(--line); }
.cats-row { display: flex; justify-content: space-between; gap: 24px; }
.cats-l, .cats-r { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.cats-l::-webkit-scrollbar { display: none; }
.cats a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0 9px; font-size: 13px; color: var(--ink); border-bottom: 2px solid transparent; text-decoration: none !important; }
.cats a:hover { border-color: var(--line-2); }
.cats a[aria-current] { border-color: var(--pri); color: var(--pri); }
.cats-r a { color: var(--ink-2); }
.cats-l { flex: 1; min-width: 0; }
.cats-r { flex: none; }
@media (max-width: 1279px) { .cats-r a:first-child { display: none; } }
.hdr.is-hidden-search .search { display: none; }
@media (min-width: 1024px) {
  .hdr-row { grid-template-columns: auto minmax(0, 620px) 1fr; grid-template-areas: "logo search actions"; column-gap: 28px; padding-top: 14px; padding-bottom: 14px; }
  .hamb { display: none; }
  .search { margin: 0; }
  .hdr-actions { justify-content: flex-end; gap: 6px; margin: 0; }
  .logo { font-size: 24px; }
  .cats { display: block; }
}

/* popover + drawer */
.pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; width: 240px; padding: 8px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0, 0, 0, .12); }
.pop-title { padding: 6px 10px 8px; font-size: 11px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--ink-2); }
.lang-list { list-style: none; margin: 0; padding: 0; }
.lang-list a { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; font-size: 14px; text-decoration: none !important; }
.lang-list a:hover { background: var(--bg-2); }
.lang-list a[aria-current] { font-weight: 600; color: var(--pri); }
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(15, 20, 25, .45); }
.drawer-panel { position: absolute; inset: 0 auto 0 0; width: min(88vw, 360px); background: #fff; overflow-y: auto; padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); animation: slidein .22s var(--ease); }
@keyframes slidein { from { transform: translateX(-100%); } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.drawer-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 18px; }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav > a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; text-decoration: none !important; }
.drawer-h { margin: 24px 0 6px; font-size: 11px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--ink-2); }
.drawer-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.drawer-langs a { padding: 9px 10px; border: 1px solid var(--line); font-size: 14px; text-decoration: none !important; }
.drawer-langs a[aria-current] { border-color: var(--pri); color: var(--pri); font-weight: 600; }

/* language suggestion bar */
.langbar { background: var(--navy); color: #fff; font-size: 14px; }
.langbar .wrap { display: flex; align-items: center; gap: 12px; min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
.langbar p { flex: 1; }
.langbar a { color: #fff; font-weight: 600; text-decoration: underline; text-transform: uppercase; letter-spacing: var(--track); font-size: 12px; }
.langbar button { border: 0; background: none; color: #fff; padding: 6px; display: grid; }

/* ---------- sections ---------- */
main { min-height: 60vh; }
.sec { margin: 40px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sec-head h2 { font: 400 22px/1.3 var(--head); }
.more { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; color: var(--pri); white-space: nowrap; }
.page-head { margin: 22px 0 18px; display: grid; gap: 4px; }
.page-head h1 { font: 400 26px/1.3 var(--head); }
.count-line { font-size: 16px; color: var(--ink); }
.lead { font-size: 16px; color: var(--ink-2); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 16px; font-size: 13px; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.crumbs span:last-child { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.empty { padding: 56px 16px; text-align: center; color: var(--ink-2); display: grid; justify-items: center; gap: 12px; }
.empty h1 { font: 400 56px/1 var(--head); color: var(--ink); }
.note { margin: 16px 0; padding: 14px 16px; background: var(--bg-2); border-left: 3px solid var(--line-2); font-size: 14px; color: var(--ink-2); }
@media (min-width: 768px) { .sec { margin: 56px 0; } .sec-head h2 { font-size: 26px; } .page-head h1 { font-size: 32px; } }

/* ---------- home hero ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 8px; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; text-align: center; justify-items: center; }
.hero h1 { font: 400 30px/1.2 var(--head); }
.hero-copy > p { font-size: 15px; max-width: 34em; }
.join-form { display: flex; width: 100%; max-width: 520px; margin-top: 8px; }
.join-form input { flex: 1 1 0; width: 0; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-right: 0; border-radius: 0; font-size: 16px; -webkit-appearance: none; }
.join-form input:focus { outline: none; border-color: var(--ink); }
.join-form .btn { height: 48px; padding: 0 20px; font-size: 13px; flex: none; }
.hero-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.htile { display: grid; gap: 10px; justify-items: center; text-align: center; font-size: 14px; text-decoration: none !important; }
.htile-img { width: 100%; aspect-ratio: 1; background: var(--bg-2); padding: 8%; display: grid; }
.htile-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; transition: transform .4s var(--ease); }
.htile:hover img { transform: scale(1.04); }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding-top: 44px; }
  .hero-copy { text-align: left; justify-items: start; }
  .hero h1 { font-size: 40px; }
  .hero-copy > p { font-size: 16px; }
  .htile { font-size: 16px; }
}

/* featured auctions carousel */
.carousel { position: relative; }
.rail-full { grid-auto-columns: 90%; }
.fslide { background: var(--navy); color: #fff; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.fslide-imgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 2px; background: var(--navy); }
.fslide-imgs img:first-child { object-fit: cover; }
.fslide-imgs img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.fslide-imgs img:nth-child(n+4) { display: none; }
.fslide-body { display: grid; gap: 8px; align-content: start; padding: 18px 20px 22px; font-size: 13px; }
.fslide-body h3 { font: 400 22px/1.25 var(--head); }
.fslide-body h3 a { color: #fff; }
.fslide-body p { display: flex; gap: 8px; align-items: center; color: rgba(255, 255, 255, .82); }
.fslide-body .btn { justify-self: start; margin-top: 8px; }
@media (min-width: 768px) { .rail-full { grid-auto-columns: 100%; } .fslide { grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); grid-template-rows: none; } .fslide-imgs { grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 1fr 1fr; } .fslide-imgs { height: 380px; } .fslide-imgs img { height: 100%; aspect-ratio: auto; min-height: 0; } .fslide-imgs img:first-child { grid-row: span 2; object-fit: cover; } .fslide-imgs img:nth-child(n+4) { display: block; } .fslide-body { align-content: center; padding: 28px 32px; } .fslide-body h3 { font-size: 28px; } }

/* curated category cards */
.rail-cols { grid-auto-columns: 46%; }
.ctile { display: grid; gap: 8px; align-content: start; text-decoration: none !important; }
.ctile img, .ctile > span:first-child { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: var(--bg-2); border-radius: var(--rc); padding: 10%; transition: transform .4s var(--ease); }
.ctile:hover img { transform: translateY(-2px); }
.ctile strong { font-weight: 400; font-size: 15px; }
.ctile-go { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--pri); }

/* ---------- auction cards ---------- */
.acard { position: relative; display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--rc); overflow: hidden; min-width: 0; }
.acard-media { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1px; aspect-ratio: 1; background: var(--line); }
.acard-media img { width: 100%; height: 100%; object-fit: contain; background: #fff; min-height: 0; }
.acard-media.solo { display: block; }
.acard-more { display: grid; place-content: center; gap: 4px; text-align: center; background: var(--beige); color: var(--pri); font-size: 11px; letter-spacing: var(--track); text-transform: uppercase; }
.acard-more b { font-weight: 600; }
.acard-body { padding: 14px 16px 16px; display: grid; gap: 4px; align-content: start; font-size: 13px; color: var(--ink-2); }
.acard-body p { display: flex; gap: 4px; align-items: center; }
.acard-title { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 2px; }
.badge { position: absolute; left: 10px; top: 10px; padding: 3px 8px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; border: 1px solid var(--line); }
.badge:empty { display: none; }
.badge.is-soon { color: var(--red); }
.badge.is-live { background: var(--red); border-color: var(--red); color: #fff; }
.agrid { display: grid; gap: 16px; padding-bottom: 48px; }
@media (min-width: 600px) { .agrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .agrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1280px) { .agrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* rails */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 2px var(--gut) 6px; scroll-padding: 0 var(--gut); }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-lots { grid-auto-columns: 46%; }
.rail-auctions { grid-auto-columns: 78%; }
.rail-wrap { position: relative; }
.rail-btn { position: absolute; top: 38%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink-2); background: #fff; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.rail-btn[data-dir="-1"] { left: -14px; }
.rail-btn[data-dir="1"] { right: -14px; }
.rail-btn:disabled { opacity: 0; pointer-events: none; }
.carousel .rail-btn { top: calc(50% - 22px); }
@media (min-width: 640px) { .rail-lots { grid-auto-columns: 30%; } .rail-cols { grid-auto-columns: 30%; } .rail-auctions { grid-auto-columns: 46%; } }
@media (min-width: 1024px) {
  .rail { margin: 0; padding: 2px 0 6px; scroll-padding: 0; gap: 20px; }
  .rail-full { grid-auto-columns: 100%; }
  .rail-lots { grid-auto-columns: calc((100% - 80px) / 5); }
  .rail-cols { grid-auto-columns: calc((100% - 80px) / 5); }
  .rail-auctions { grid-auto-columns: calc((100% - 60px) / 4); }
}
@media (max-width: 1023px) { .rail-btn { display: none; } }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { padding: 22px; border: 1px solid var(--line); border-radius: var(--rc); display: grid; gap: 8px; align-content: start; }
.steps h2, .steps h3 { font: 400 20px/1.3 var(--head); }
.steps p { color: var(--ink-2); }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--pri); color: #fff; font-size: 13px; font-weight: 600; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; } .steps-v { grid-template-columns: 1fr; } }

/* ---------- lot cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.card { position: relative; min-width: 0; display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--rc); overflow: hidden; transition: box-shadow .2s; }
.card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .08); }
.card-media { display: block; aspect-ratio: 1; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 12px 12px 14px; display: grid; gap: 2px; align-content: start; min-width: 0; }
.card-when { font-size: 13px; color: var(--red); min-height: 1.6em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-when.is-live { font-weight: 600; }
.card-title { font-size: 14px; font-weight: 400; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; overflow-wrap: anywhere; }
.card-est { margin-top: 6px; font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-label { margin-top: 8px; font-size: 11px; letter-spacing: var(--track); text-transform: uppercase; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 639px) { .card-est, .card-label { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; } }
.card-price { font-size: 20px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.card-house { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--ink-2); min-width: 0; }
.card-house span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.save, .quick { position: absolute; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink-2); background: rgba(255, 255, 255, .95); display: grid; place-items: center; color: var(--ink); transition: transform .15s; }
.save { top: 8px; right: 8px; }
/* Bottom-left corner of the square image: the card is a size container, so 100cqw is the image height. */
.card { container-type: inline-size; }
.quick { left: 8px; top: calc(100cqw - 48px); }
.save:hover, .quick:hover { transform: scale(1.06); }
.save[aria-pressed="true"] .i { fill: var(--sun); stroke: var(--sun); }
.save.pop-anim .i { animation: pop .35s var(--ease); }
@keyframes pop { 40% { transform: scale(1.35); } }
@media (max-width: 639px) { .save, .quick { width: 34px; height: 34px; } .quick { top: calc(100cqw - 42px); } .save .i { width: 18px; height: 18px; } .card-price { font-size: 18px; } }

/* quick look */
.ql { width: min(820px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--rc); overflow: auto; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.ql::backdrop { background: rgba(15, 20, 25, .5); }
.ql-x { position: absolute; right: 6px; top: 6px; z-index: 1; background: #fff; }
.ql-img { background: #fff; padding: 16px; }
.ql-img img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.ql-body { padding: 0 20px 22px; display: grid; gap: 10px; }
.ql-body .card-body { padding: 0; }
.ql-body .card-title { font: 400 20px/1.35 var(--head); -webkit-line-clamp: 4; min-height: 0; }
@media (min-width: 720px) { .ql { display: none; } .ql[open] { display: grid; grid-template-columns: 1fr 1fr; } .ql-body { padding: 48px 28px 28px 8px; align-content: start; } }

/* ---------- listing ---------- */
.pills { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 14px calc(var(--gut) * -1) 0; padding: 2px var(--gut); }
.pills::-webkit-scrollbar { display: none; }
.pill-link { display: inline-flex; align-items: center; gap: 10px; flex: none; height: 44px; padding: 0 18px 0 4px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; white-space: nowrap; text-decoration: none !important; }
.pill-link:hover { border-color: var(--ink); }
.pill-link img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--bg-2); }
.list-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 56px; }
.filter-btn { height: 46px; font-size: 13px; margin-bottom: 16px; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.toolbar-r { display: flex; gap: 8px; }
.count { font-size: 14px; color: var(--ink-2); }
.sort { position: relative; display: inline-flex; align-items: center; }
.sort select { height: 40px; padding: 0 36px 0 14px; border: 1px solid var(--line-2); border-radius: 0; background: #fff; font-size: 14px; -webkit-appearance: none; appearance: none; }
.sort .i { position: absolute; right: 12px; pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; background: #fff; text-decoration: none !important; }
.chip.on { background: var(--pri); border-color: var(--pri); color: #fff; }
.filters fieldset { border: 0; border-bottom: 1px solid var(--line); margin: 0 0 16px; padding: 0 0 14px; min-width: 0; }
.filters legend { padding: 0; margin-bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; }
.opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--pri); flex: none; }
.opt span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.opt small { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.range { display: flex; align-items: center; gap: 8px; }
.range input { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 0; background: #fff; font-size: 15px; }
.filters-foot { display: flex; gap: 8px; position: sticky; bottom: 0; background: #fff; padding: 12px 0 16px; }
.filters-foot .btn { flex: 1; }
.pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 40px; font-size: 14px; }
.pg, .pg-arrow { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 6px; border-radius: 50%; text-decoration: none !important; font-variant-numeric: tabular-nums; }
.pg:hover { background: var(--bg-2); }
.pg.on { background: var(--pri); color: #fff; }
.pg-arrow { border: 1px solid var(--ink-2); }
span.pg-arrow { opacity: .3; }
.pg-gap { padding: 0 4px; color: var(--ink-2); }
@media (max-width: 1023px) {
  .list-side { position: fixed; inset: auto 0 0 0; z-index: 70; max-height: 88vh; overflow-y: auto; background: #fff; padding: 0 20px calc(env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .28s var(--ease); box-shadow: 0 -8px 30px rgba(0, 0, 0, .18); visibility: hidden; }
  .list-side.open { transform: none; visibility: visible; }
  .sheet-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; height: 56px; background: #fff; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
  .sheet-head h2 { font: 400 20px/1 var(--head); }
  .scrim { position: fixed; inset: 0; z-index: 65; background: rgba(15, 20, 25, .45); }
}
@media (min-width: 1024px) {
  .pills { margin: 14px 0 0; padding: 2px 0; }
  .list-layout { grid-template-columns: 236px minmax(0, 1fr); gap: 36px; }
  .list-side { position: sticky; top: calc(var(--hdr) + 16px); align-self: start; max-height: calc(100vh - var(--hdr) - 32px); overflow-y: auto; padding-right: 8px; scrollbar-width: thin; }
  html.js .filters-foot { display: none; }
  .list-main .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
}
@media (min-width: 1280px) { .list-main .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* auction header */
.cd-red { color: var(--red); font-variant-numeric: tabular-nums; }
.ahead { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; margin: 16px 0 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.ahead-img { width: 100%; aspect-ratio: 1; object-fit: contain; border: 1px solid var(--line); background: #fff; }
.ahead-body { display: contents; }
.ahead-body > :not(h1) { grid-column: 1 / -1; }
.ahead-body > h1 { grid-column: 2; grid-row: 1; align-self: center; }
.ahead h1 { font: 400 22px/1.3 var(--head); }
.ahead h1, .lot-title, .page-head h1 { overflow-wrap: anywhere; }
.ahead-by { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; color: var(--ink-2); }
.ahead-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
@media (min-width: 768px) { .ahead { grid-template-columns: 240px 1fr; gap: 12px 36px; align-items: start; } .ahead-img { grid-row: 1 / span 6; } .ahead-body > *, .ahead-body > :not(h1) { grid-column: 2; grid-row: auto; } .ahead h1 { font-size: 32px; } }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 8px 0 0; }
.facts div { min-width: 0; }
.facts dt { font-size: 11px; letter-spacing: var(--track); text-transform: uppercase; color: var(--ink-2); }
.facts dd { margin: 2px 0 0; font-size: 15px; overflow-wrap: anywhere; }
@media (min-width: 768px) { .ahead .facts { grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 40px; } }
.facts-2 { padding-top: 16px; border-top: 1px solid var(--line); }
.mt-note { font-size: 12px; color: var(--ink-2); }
.original { font-size: 14px; color: var(--ink-2); padding: 10px 12px; background: var(--bg-2); }

/* ---------- lot page ---------- */
.lotnav { border-bottom: 1px solid var(--line); font-size: 15px; }
.lotnav-row { display: flex; align-items: center; gap: 12px; height: 50px; }
.lotnav-row > a { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lotnav-back { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.sep { width: 1px; height: 18px; background: var(--line-2); flex: none; }
.lotnav-pos { margin-left: auto; display: inline-flex; align-items: center; gap: 16px; white-space: nowrap; font-size: 14px; }
.lotnav-pos a { display: inline-flex; align-items: center; gap: 2px; color: var(--pri); }
.nextbar { display: flex; justify-content: center; align-items: center; gap: 10px; height: 48px; background: #0d1d28; color: #fff; font-size: 15px; text-decoration: none !important; }
.lot { padding-top: 16px; }
.lot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 1024px) { .lot-grid { grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); gap: 48px; align-items: start; } .panel { position: sticky; top: calc(var(--hdr) + 16px); } }
.gallery { position: relative; display: grid; gap: 10px; }
.g-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #fff; aspect-ratio: 1; overscroll-behavior-x: contain; border: 1px solid var(--line); border-radius: var(--rc); }
.g-main::-webkit-scrollbar { display: none; }
.g-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: grid; place-items: center; cursor: zoom-in; }
.g-slide img { width: 94%; height: 94%; object-fit: contain; }
.g-nav { position: absolute; top: calc(50% - 22px); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink-2); background: rgba(255, 255, 255, .95); display: none; place-items: center; }
.g-prev { left: 14px; }
.g-next { right: 14px; }
.g-count { position: absolute; left: 50%; transform: translateX(-50%); bottom: 96px; padding: 2px 10px; background: rgba(27, 28, 29, .7); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }
.gallery:not(:has(.g-thumbs)) .g-count { bottom: 12px; }
.g-save { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border: 1px solid var(--ink-2); background: #fff; font-size: 13px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; }
.g-save[aria-pressed="true"] .i { fill: var(--sun); stroke: var(--sun); }
.g-share, .g-zoom { position: absolute; width: 44px; height: 44px; border: 1px solid var(--ink-2); background: #fff; display: grid; place-items: center; }
.g-share { right: 12px; top: 62px; }
.g-zoom { right: 12px; top: 112px; }
.g-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.g-thumbs button { flex: 0 0 72px; height: 72px; padding: 0; border: 1px solid var(--line); background: #fff; overflow: hidden; opacity: .7; }
.g-thumbs button[aria-current] { border: 2px solid var(--pri); opacity: 1; }
.g-thumbs img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 1024px) { .gallery:has(.g-thumbs) { grid-template-columns: 80px minmax(0, 1fr); } .g-thumbs { grid-column: 1; grid-row: 1; flex-direction: column; overflow-y: auto; contain: size; } .g-thumbs button { flex: 0 0 80px; width: 80px; height: 80px; } .gallery:has(.g-thumbs) .g-main { grid-column: 2; } .g-nav { display: grid; } .gallery:has(.g-thumbs) .g-prev { left: 104px; } .g-count { display: none; } }
.panel { display: grid; gap: 14px; align-content: start; min-width: 0; }
.panel-top { font-size: 14px; color: var(--ink-2); }
.panel-top a { color: var(--pri); }
.lot-title { font: 400 24px/1.35 var(--head); overflow-wrap: anywhere; }
@media (min-width: 1024px) { .lot-title { font-size: 28px; } }
.bidbox { display: grid; gap: 6px; padding: 20px; border: 1px solid var(--beige-line); background: var(--beige); }
.bidbox-time { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 14px; color: var(--ink-2); }
.bidbox-time .cd-red { font-size: 15px; font-weight: 500; }
.bidbox-est { font-size: 15px; color: var(--ink-2); }
.bidbox-label { margin-top: 10px; font-size: 12px; letter-spacing: var(--track); text-transform: uppercase; }
.bidbox-price { font-size: 32px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.bidbox-next { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.bidbox .btn-lg { margin-top: 10px; }
.bidbox-reg { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.bidbox-reg a { color: var(--pri); }
.trust { display: grid; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.trust-h { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.trust li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.trust li .i { color: var(--ok); margin-top: 1px; }
.trust > a { color: var(--pri); text-decoration: underline; text-underline-offset: 3px; margin-left: 30px; font-size: 14px; }

/* jump-to-section + section cards on a grey band */
.lot-sections { margin: 32px calc(var(--gut) * -1) 0; padding: 0 var(--gut) 28px; background: var(--bg-2); display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.jump { position: sticky; top: calc(var(--hdr) - 1px); z-index: 20; margin: 0 calc(var(--gut) * -1); padding: 12px var(--gut) 10px; background: var(--bg-2); }
.jump p { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.jump-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.jump-row::-webkit-scrollbar { display: none; }
.jump a { flex: none; padding: 5px 14px; border: 2px solid transparent; border-radius: var(--rc); color: var(--ink-2); font-size: 14px; text-decoration: none !important; }
.jump a[aria-current] { border-color: var(--pri); background: #fff; color: var(--ink); font-weight: 600; }
.lot-sec { background: #fff; border-radius: 12px; padding: 22px 20px; display: grid; gap: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.lot-sec h2 { font: 400 22px/1.3 var(--head); }
.lot-sec a { color: var(--pri); display: inline-flex; align-items: center; gap: 2px; }
.clamp { position: relative; max-height: 13.5em; overflow: hidden; }
.clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4em; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.clamp.open { max-height: none; }
.clamp.open::after { display: none; }
.more-btn { justify-self: start; text-decoration: none; font-size: 15px; }
.more-btn.up .i { transform: rotate(180deg); }
.iconline { display: flex; gap: 12px; align-items: flex-start; }
.iconline .i { color: var(--ink-2); margin-top: 2px; }
.adetail { display: grid; grid-template-columns: 80px 1fr; gap: 16px; align-items: start; color: var(--ink-2); }
.adetail img { width: 80px; height: 80px; object-fit: contain; border: 1px solid var(--line); }
.adetail h3 { font-size: 15px; font-weight: 600; color: var(--ink); }
.adetail h3 a { color: var(--ink) !important; }
.lot-sec .btn-outline { justify-self: start; color: var(--pri); }
@media (min-width: 1024px) { .lot-sections { margin: 48px 0 0; padding: 0 28px 28px; border-radius: 12px; grid-template-columns: minmax(0, 820px); } .jump { margin: 0 -28px; padding: 14px 28px 10px; border-radius: 12px 12px 0 0; } }
.prose { display: grid; gap: .8em; font-size: 15px; line-height: 1.75; color: var(--ink); overflow-wrap: anywhere; }
.prose.is-loading { opacity: .55; }
.doc { padding: 8px 0 56px; }
.doc h1 { font: 400 30px/1.25 var(--head); margin: 8px 0 4px; }
.doc h2 { font: 400 22px/1.3 var(--head); margin-top: 1em; }
.doc h3 { font-size: 16px; font-weight: 600; margin-top: .6em; }
.doc ul, .doc ol { margin: 0; padding-left: 1.4em; display: grid; gap: .4em; }
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0, 0, 0, .06); transform: translateY(110%); transition: transform .25s var(--ease); }
.buybar.show { transform: none; }
.buybar small { display: block; font-size: 11px; letter-spacing: var(--track); text-transform: uppercase; color: var(--ink-2); }
.buybar strong { font-size: 20px; font-weight: 400; font-variant-numeric: tabular-nums; }
.buybar .btn { flex: 0 0 auto; min-width: 150px; height: 46px; }
.p-lot .ftr { padding-bottom: 84px; }
@media (min-width: 1024px) { .p-lot .ftr { padding-bottom: 0; } }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 90; background: #fff; display: grid; grid-template-rows: auto 1fr auto; touch-action: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; font-size: 14px; color: var(--ink-2); }
.lb-stage { position: relative; overflow: hidden; display: grid; place-items: center; cursor: zoom-in; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; will-change: transform; }
.lb-stage.zoomed { cursor: grab; }
.lb-nav { display: flex; justify-content: center; gap: 12px; padding: 12px; }

/* ---------- auth (sign-in card) ---------- */
.auth { max-width: 1000px; margin: 0 auto; padding: 24px var(--gut) 64px; display: grid; gap: 32px; }
.auth-card { width: 100%; max-width: 460px; margin: 0 auto; display: grid; gap: 16px; }
.auth-card h1 { font: 400 26px/1.3 var(--head); text-align: center; }
.auth-aside { display: none; }
@media (min-width: 900px) {
  .auth { grid-template-columns: 460px 1fr; gap: 64px; padding-top: 48px; align-items: start; }
  .auth-card { margin: 0; padding: 32px; border: 1px solid var(--line); }
  .auth-aside { display: block; padding: 28px; background: var(--bg-2); }
  .auth-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
  .auth-aside li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; }
  .auth-aside p { color: var(--ink-2); margin-top: 2px; }
}
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 12px; text-transform: uppercase; letter-spacing: var(--track); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--ink-2); }
.field input { height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 0; background: #fff; font-size: 16px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); width: 100%; }
.field input:focus { outline: none; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.pw { position: relative; display: block; }
.pw input { padding-right: 52px; }
.pw-eye { position: absolute; right: 4px; top: 3px; height: 40px; width: 44px; border: 0; background: none; color: var(--muted); font-size: 9px; letter-spacing: 1px; }
.pw-eye[aria-pressed="true"] { color: var(--ink); }
.hint { font-size: 12px; color: var(--ink-2); margin-top: -8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--pri); flex: none; }
.check a, .form-aux a, .form-alt a { color: var(--pri); text-decoration: underline; text-underline-offset: 3px; }
.form-aux { text-align: center; font-size: 14px; }
.form-alt { text-align: center; font-size: 14px; color: var(--ink-2); }
.form-msg { padding: 12px 14px; font-size: 14px; background: #fdf1f0; color: var(--red); border: 1px solid #f3cdc9; }
.form-msg.is-ok { background: #eef7f1; color: var(--ok); border-color: #cde6d6; }
.stack { display: grid; gap: 10px; margin-top: 8px; }

/* ---------- footer ---------- */
.ftr { margin-top: 64px; border-top: 1px solid var(--line); font-size: 14px; }
.ftr-band { background: var(--beige); border-bottom: 1px solid var(--line); }
.ftr-band-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; padding-top: 26px; padding-bottom: 26px; }
.ftr-band p { font: 400 19px/1.4 var(--head); max-width: 40em; }
.ftr-band-cta { display: flex; gap: 10px; }
.ftr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 36px; padding-bottom: 28px; }
.ftr h2 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.ftr-grid > div { display: grid; gap: 8px; align-content: start; }
.ftr-grid a { color: var(--ink); }
.ftr-co { grid-column: 1 / -1; }
.ftr address { font-style: normal; color: var(--ink-2); }
.ftr-langs { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; color: var(--ink-2); }
.ftr-langs span { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ftr-langs a { font-size: 13px; color: var(--ink-2); }
.ftr-langs a[aria-current] { color: var(--ink); font-weight: 600; }
.ftr-base { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; padding-top: 16px; padding-bottom: 26px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); text-align: center; }
@media (min-width: 900px) { .ftr-grid { grid-template-columns: repeat(4, 1fr) 1.4fr; } .ftr-co { grid-column: auto; } }

/* back to top + toast */
.totop { position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 25; display: grid; place-items: center; align-content: center; width: 56px; height: 56px; border-radius: 50%; background: #55595e; color: #fff; font-size: 10px; letter-spacing: var(--track); text-transform: uppercase; text-decoration: none !important; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.p-lot .totop { bottom: calc(86px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .p-lot .totop { bottom: 24px; } }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 95; transform: translateX(-50%); padding: 10px 16px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.p-lot .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .hdr, .ftr, .buybar, .save, .quick, .lotnav, .nextbar, .totop, .jump { display: none !important; } }

/* Google sign-in card, shown when the browser holds One Tap back. Phones: bottom sheet (above the bid bar on lot pages); desktop: top right, where One Tap appears. */
.gbar { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: grid; gap: 10px; justify-items: center; padding: 16px 20px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--rc); box-shadow: 0 8px 28px rgba(0, 0, 0, .18); }
.gbar p { margin: 0; padding-right: 24px; justify-self: start; font-size: 14px; font-weight: 500; color: var(--ink); }
.gbar-btn { min-height: 44px; }
.gbar-x { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--ink-2); cursor: pointer; }
.p-lot .gbar { bottom: calc(78px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .gbar, .p-lot .gbar { left: auto; right: 24px; top: 88px; bottom: auto; width: 360px; } }

/* US lots (LiveAuctioneers) */
.us-tag { display: inline-block; margin-right: 6px; padding: 0 4px; border: 1px solid currentColor; border-radius: 3px; font-size: 10px; font-weight: 600; line-height: 15px; letter-spacing: .04em; vertical-align: 1px; }
.src-note { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 12px; font-size: 13px; color: var(--ink-2); }
.src-note svg { flex: none; margin-top: 2px; }

/* Category bar: subcategory panel on hover (desktop) — positioned against .cats so the scrolling row does not clip it. */
.cats { position: relative; }
.cat-item { display: inline-flex; }
.mega { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 45; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, .08); }
.mega-in { padding-top: 20px; padding-bottom: 24px; }
.mega-all { display: inline-flex !important; align-items: center; gap: 4px; padding: 0 0 10px !important; margin-bottom: 8px; font-family: var(--head); font-size: 18px !important; border: 0 !important; }
.mega ul { margin: 0; padding: 0; list-style: none; columns: 4 200px; column-gap: 32px; }
.mega li { break-inside: avoid; }
.mega li a { display: block; padding: 7px 0 !important; border: 0 !important; font-size: 14px !important; color: var(--ink-2) !important; white-space: normal; }
.mega li a:hover { color: var(--pri) !important; text-decoration: underline !important; }
@media (min-width: 1024px) and (hover: hover) { .cat-item:hover .mega, .cat-item:focus-within .mega { display: block; } }
/* Drawer: categories expand to their subcategories. */
.drawer-cat { border-bottom: 1px solid var(--line); }
.drawer-cat summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-size: 15px; cursor: pointer; list-style: none; }
.drawer-cat summary::-webkit-details-marker { display: none; }
.drawer-cat[open] summary svg { transform: rotate(180deg); }
.drawer-cat a { display: block; padding: 9px 0 9px 14px; font-size: 14px; color: var(--ink-2); text-decoration: none !important; }
.drawer-cat a:last-child { padding-bottom: 14px; }

/* Subcategory tiles on category pages: a scrolling row on phones, wrapping on desktop. */
.subtiles { display: flex; gap: 10px; margin-top: 18px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.subtiles::-webkit-scrollbar { display: none; }
.subtile { flex: 0 0 104px; display: grid; justify-items: center; gap: 6px; padding: 10px 8px; border: 1px solid var(--line); border-radius: var(--rc); background: #fff; text-align: center; text-decoration: none !important; color: var(--ink); }
.subtile:hover { border-color: var(--line-2); }
.subtile.on { border-color: var(--pri); box-shadow: inset 0 0 0 1px var(--pri); }
.subtile-img { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--bg-2); }
.subtile-img img { width: 100%; height: 100%; object-fit: cover; }
.subtile-t { font-size: 12.5px; line-height: 1.3; }
.subtile small { font-size: 11px; color: var(--muted); }
@media (min-width: 1024px) { .subtiles { flex-wrap: wrap; overflow: visible; gap: 8px; } .subtile { flex-basis: 116px; } }

/* Home: popular subcategories */
.subgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.subcard { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: var(--rc); background: #fff; color: var(--ink); text-decoration: none !important; }
.subcard:hover { border-color: var(--line-2); }
.subcard img { flex: none; width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: var(--bg-2); }
.subcard span { display: grid; gap: 2px; min-width: 0; }
.subcard strong { font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.subcard small { font-size: 12px; color: var(--muted); }
@media (min-width: 768px) { .subgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .subgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } .subcard img { width: 72px; height: 72px; } }
.ctile-n { display: block; font-size: 12px; color: var(--muted); }

/* Search by image */
.img-btn { position: absolute; right: 46px; top: 0; bottom: 0; display: grid; place-items: center; width: 40px; color: var(--ink-2); cursor: pointer; }
.search input { padding-right: 92px; }
.search input::-webkit-search-cancel-button { display: none; }
.img-btn:hover, .img-btn:focus-within { color: var(--pri); }
.img-btn:focus-within { outline: 2px solid var(--pri); outline-offset: -4px; }
.imgq { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.imgq img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.imgq p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 2; }
.imgq-w { display: inline-block; margin: 0 0 0 6px; padding: 0 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--ink); line-height: 24px; }
.imgq-busy { position: fixed; inset: 0; z-index: 80; display: grid; place-content: center; justify-items: center; gap: 14px; background: rgba(255, 255, 255, .88); }
.imgq-busy p { margin: 0; font-size: 15px; color: var(--ink); }
.spin { width: 36px; height: 36px; border: 3px solid var(--line); border-top-color: var(--pri); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Section heads: long titles wrap, the "view all" link keeps its size. */
.sec-head h2 { min-width: 0; overflow-wrap: anywhere; }
.sec-head .more { flex: none; white-space: nowrap; }
