/* UK marketplace theme — colours and fonts come from :root set per brand */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body), "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
h1, h2, h3, .logo strong, .hero h1 {
  font-family: var(--font-display), Inter, "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); margin: 0 0 0.6rem; font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: 1.35rem; margin: 1.6rem 0 0.7rem; }
.wrap { width: min(1200px, calc(100% - 2rem)); margin-inline: auto; }
.sr, .skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: 0.5rem 1rem; z-index: 20; }

.promo {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
}
.promo-2 { background: var(--accent); color: var(--accent-ink); }

header.site {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
}
.logo { display: flex; gap: 0.7rem; align-items: center; text-decoration: none; color: inherit; }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo strong { display: block; font-size: 1.25rem; }
.logo em { display: block; font-style: normal; font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.search { display: flex; gap: 0; }
.search input, .search button, input, select, textarea, button.btn, .btn {
  font: inherit;
}
.search input, input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
}
textarea, select { border-radius: var(--radius); }
.search input { border-radius: 999px 0 0 999px; border-right: 0; }
.search button {
  border-radius: 0 999px 999px 0;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  padding: 0.65rem 1rem;
  cursor: pointer;
}
.user-nav { display: flex; gap: 0.85rem; align-items: center; font-size: 0.95rem; }
.user-nav a { text-decoration: none; }
.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
}
.btn:hover { filter: brightness(1.08); color: var(--bg); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.menu-btn { display: none; }
.cats {
  display: flex;
  gap: 0.4rem 1rem;
  overflow-x: auto;
  padding: 0 0 0.75rem;
  font-size: 0.88rem;
}
.cats a { text-decoration: none; color: var(--muted); white-space: nowrap; }
.cats a:hover, .cats a.on, .user-nav a.on { color: var(--accent); }
.badge {
  display: inline-flex; min-width: 1.2rem; height: 1.2rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 0.7rem;
  align-items: center; justify-content: center; margin-left: 0.25rem; padding: 0 0.3rem;
}

main.wrap { padding: 1.5rem 0 3rem; }
.flash { border-radius: var(--radius); padding: 0.8rem 1rem; margin: 0 0 1.2rem; }
.flash-ok { background: color-mix(in srgb, var(--ok) 18%, var(--card)); }
.flash-error { background: color-mix(in srgb, var(--warn) 18%, var(--card)); }
.flash-info { background: color-mix(in srgb, var(--accent) 18%, var(--card)); }

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  padding: 1.5rem 0 2rem;
  align-items: center;
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; color: var(--accent); margin: 0 0 0.4rem; font-weight: 700; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 40rem; }
.search.big { margin: 1.2rem 0; max-width: 36rem; }
.hero-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.2rem 1.3rem;
}
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem 1rem; }
.cat-grid a { text-decoration: none; }

.rail { margin: 2rem 0; }
.rail-head { display: flex; justify-content: space-between; align-items: baseline; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}
.listing-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.listing-card .thumb { position: relative; aspect-ratio: 4/3; background: var(--bg-2); display: block; }
.listing-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--bg-2), color-mix(in srgb, var(--accent) 25%, var(--bg-2)));
  font-family: var(--font-display), Inter, system-ui, sans-serif; font-size: 2rem; color: var(--ink);
}
.ph.big { min-height: 320px; font-size: 1.2rem; }
.tag {
  position: absolute; left: 0.6rem; top: 0.6rem;
  background: var(--ink); color: var(--bg); font-size: 0.7rem;
  padding: 0.2rem 0.5rem; border-radius: 999px;
}
.tag.time { left: auto; right: 0.6rem; top: auto; bottom: 0.6rem; }
.tag.sample { background: var(--accent); color: var(--accent-ink); }
.tag.inline { position: static; display: inline-block; margin-bottom: 0.4rem; }
.listing-card .body { padding: 0.8rem 0.9rem 1rem; }
.listing-card h3 { font-size: 1rem; margin: 0 0 0.25rem; }
.listing-card h3 a { text-decoration: none; }
.meta, .muted, .hint, .tiny { color: var(--muted); }
.hint, .tiny { font-size: 0.85rem; }
.price { display: flex; flex-direction: column; gap: 0.1rem; margin: 0.35rem 0 0; }
.price-lg { font-size: 1.6rem; display: flex; flex-direction: column; gap: 0.15rem; margin: 0; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0 1rem; }
.points article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.points h3 { margin-top: 0; }

.search-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; height: max-content; position: sticky; top: 6rem; }
.filters h1 { font-size: 1.3rem; }
label { display: block; margin: 0.6rem 0; font-size: 0.92rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.row-3 { grid-template-columns: 1fr 1fr 1fr; }
.stack { display: grid; gap: 0.3rem; max-width: 40rem; }
.check { display: flex; gap: 0.5rem; align-items: flex-start; }
.check input { width: auto; margin-top: 0.25rem; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem 1rem; }
.pager { display: flex; gap: 0.4rem; margin: 1.5rem 0; flex-wrap: wrap; }
.pager a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.7rem; }
.pager a.on { background: var(--ink); color: var(--bg); }

.listing-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; }
.gallery img#main-photo { width: 100%; border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; background: var(--bg-2); }
.thumbs { display: flex; gap: 0.4rem; margin-top: 0.6rem; flex-wrap: wrap; }
.thumb-btn { border: 2px solid transparent; padding: 0; background: none; border-radius: 10px; cursor: pointer; width: 72px; overflow: hidden; }
.thumb-btn img { width: 100%; height: 56px; object-fit: cover; }
.thumb-btn.on { border-color: var(--accent); }
.price-box, .seller-box, .auth-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 0.8rem 0;
}
.bid-form { margin: 0.8rem 0; }
.status-pill { display: inline-block; background: var(--bg-2); border-radius: 999px; padding: 0.2rem 0.7rem; }
.desc { white-space: normal; }
table.plain { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.plain th, table.plain td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); padding: 0.8rem 0; }
.stars { color: var(--accent); letter-spacing: 0.05em; }
.inline { display: inline; }
button.linkish, .linkish { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }
.previews { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.previews img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; }

.account-layout, .msg-layout { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; }
.side, .thread-list { display: grid; gap: 0.3rem; }
.side a, .thread-list a {
  text-decoration: none; padding: 0.5rem 0.7rem; border-radius: 12px; display: block;
}
.side a.on, .thread-list a.on { background: var(--card); border: 1px solid var(--line); }
.thread-list { list-style: none; margin: 0; padding: 0; }
.thread-list span { display: block; font-size: 0.8rem; }
.thread { display: grid; gap: 0.7rem; margin: 1rem 0; }
.bubble { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 0.9rem; max-width: 36rem; }
.bubble.mine { background: color-mix(in srgb, var(--accent) 16%, var(--card)); justify-self: end; }

.prose { max-width: 46rem; }
.prose.legal h1 { margin-top: 0; }
.prose.legal ul, .prose.legal ol { padding-left: 1.2rem; }
.crumb { color: var(--muted); margin-bottom: 0.8rem; }
.crumb a { color: inherit; }

footer.site { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; background: var(--card); }
.foot { display: flex; justify-content: space-between; gap: 2rem; margin-bottom: 1rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.7rem 1.1rem; }
.foot p { color: var(--muted); max-width: 28rem; }

@media (max-width: 860px) {
  .bar { grid-template-columns: auto 1fr auto; }
  .search { grid-column: 1 / -1; order: 3; }
  .hero, .listing-layout, .search-layout, .account-layout, .msg-layout, .points, .foot {
    grid-template-columns: 1fr;
  }
  .user-nav { display: none; }
  header.site.open .user-nav {
    display: flex; flex-direction: column; align-items: flex-start;
    grid-column: 1 / -1; padding-bottom: 0.6rem;
  }
  .menu-btn { display: inline-flex; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.8rem; cursor: pointer; }
  .filters { position: static; }
  .cats { font-size: 0.8rem; }
}

.sponsor-strip { background: var(--ink, #14342d); color: #fff; }
.sponsor-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; padding: 0.45rem 0; font-size: 0.85rem; }
.sponsor-label { letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.72rem; opacity: 0.8; }
.sponsor-logo { display: inline-flex; align-items: center; gap: 0.4rem; color: inherit; }
.sponsor-logo img { height: 32px; width: auto; background: #fff; border-radius: 6px; padding: 2px 4px; }
.sponsor-and { opacity: 0.7; }
.footer-sponsors { margin: 1.25rem auto 0; }
.footer-sponsors p { margin: 0 0 0.4rem; }
.footer-sponsor-logos { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.footer-sponsor-logos a { display: inline-flex; align-items: center; gap: 0.4rem; }
.footer-sponsor-logos img { height: 28px; width: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ——— Modern refresh: motion, seller pages, maps, cookies ——— */
:root { --shadow: 0 10px 30px color-mix(in srgb, var(--ink) 8%, transparent); --shadow-sm: 0 4px 14px color-mix(in srgb, var(--ink) 6%, transparent); }
body {
  background:
    radial-gradient(1200px 500px at 10% -10%, color-mix(in srgb, var(--bg-2) 80%, transparent), transparent 60%),
    radial-gradient(900px 400px at 110% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, #fff); outline-offset: 2px; }
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--card) 86%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.listing-card, .points article, .hero-panel, .price-box, .seller-box, .auth-card, .filters, .warranty-box, .seller-profile, .profile-card {
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn, button.btn { transition: filter 0.15s ease, transform 0.15s ease; }
.btn:active { transform: translateY(1px); }

.sponsor-strip {
  background: color-mix(in srgb, var(--ink) 92%, #000);
  color: #fff;
  border-bottom: 1px solid color-mix(in srgb, #fff 10%, transparent);
}
.sponsor-logo img { background: #fff; border-radius: 8px; padding: 3px 6px; height: 34px; }

.section-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0 1.2rem; }
.section-pills a, .section-pills button {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  color: inherit;
}
.section-pills a.on, .section-pills button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.seller-profile { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; }
.profile-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.seller-logo { width: 96px; height: 96px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 6px; margin-bottom: 0.8rem; }
.seller-avatar {
  width: 72px; height: 72px; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--bg-2); font-family: var(--font-display), Inter, system-ui, sans-serif; font-size: 1.6rem;
  margin-bottom: 0.8rem;
}
.map-frame { width: 100%; height: 220px; border: 0; border-radius: 12px; margin: 0.5rem 0; }
.warranty-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 1rem 0; }
.warranty-box ul { margin: 0.3rem 0 0.6rem; padding-left: 1.1rem; }
.car-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.6rem; margin: 1rem 0; }
.car-facts div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0.6rem 0.75rem; }
.car-facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.car-facts dd { margin: 0.15rem 0 0; font-weight: 600; }
.notice-legal { font-size: 0.9rem; color: var(--muted); border-left: 3px solid var(--accent); padding: 0.2rem 0 0.2rem 0.8rem; margin: 0.8rem 0; }

.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 40;
  max-width: 720px; margin: 0 auto;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  display: none;
  align-items: flex-start; justify-content: space-between; gap: 1rem;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; font-size: 0.92rem; }
.hidden { display: none !important; }

.admin-proposed { border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--card)); border-radius: var(--radius); padding: 1rem; margin: 1rem 0; }
.tag.featured { background: var(--accent); color: var(--accent-ink); left: auto; right: 0.6rem; top: 0.6rem; }

@media (max-width: 860px) {
  .seller-profile, .car-facts { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; }
}

.condition-badge, .format-badge {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.15rem 0.55rem; color: var(--ink); letter-spacing: 0.01em;
}
.tag.condition { left: 0.6rem; top: auto; bottom: 0.6rem; background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.tag.time { z-index: 1; }
.spares-note { margin-top: 0.6rem; }
.badge-verified, .badge-trusted {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.78rem; font-weight: 650; vertical-align: middle;
  margin-left: 0.25rem; color: var(--ok);
}
.badge-verified svg, .badge-trusted svg { width: 1rem; height: 1rem; }
.badge-trusted { color: var(--accent); }
.dash-todos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.8rem; margin: 1rem 0 1.5rem; }
.dash-todos a { text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1rem; display: block; }
.dash-todos strong { display: block; font-size: 1.4rem; }
@media (max-width: 860px) {
  .account-layout { grid-template-columns: 1fr; }
  table.plain { display: block; overflow-x: auto; }
}

/* Shared marketplace theme — only accent/theme-color change per site */
.logo { text-decoration: none; color: inherit; display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.logo-img { height: 40px; width: auto; max-width: min(240px, 52vw); object-fit: contain; display: block; }
.install-app { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.install-app:hover { color: var(--accent); border-color: var(--accent); }
.foot-install { margin: 0.6rem auto 0; }

/* Dashboard */
.dash { display: grid; gap: 1.25rem; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; align-items: end; }
.dash-groups { display: grid; gap: 0.2rem; }
.dash-groups p { margin: 0.8rem 0 0.2rem; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.todo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; }
.todo-grid a, .stat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.9rem 1rem; text-decoration: none; color: inherit; display: block;
  box-shadow: var(--shadow-sm);
}
.todo-grid strong, .stat-card strong { display: block; font-size: 1.45rem; font-weight: 700; }
.notice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.notice-list li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem 0.9rem; }
.notice-list li.unread { border-color: var(--accent); }
@media (max-width: 860px) {
  .logo-img { height: 32px; }
  .todo-grid { grid-template-columns: 1fr 1fr; }
}


/* ========== Modern app redesign (2026) — no serif, no beige ========== */
:root {
  --shadow: 0 1px 2px rgba(15, 18, 24, 0.05), 0 10px 28px rgba(15, 18, 24, 0.06);
  --shadow-sm: 0 1px 2px rgba(15, 18, 24, 0.05);
  --shadow-lg: 0 16px 40px rgba(15, 18, 24, 0.12);
}
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg) !important;
  font-family: var(--font-body), Inter, system-ui, sans-serif;
  letter-spacing: -0.01em;
}
h1, h2, h3, h4, .logo strong, .hero h1, .ph, .seller-avatar {
  font-family: var(--font-display), Inter, system-ui, sans-serif !important;
  font-weight: 750;
}
.promo {
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  padding: 0.4rem 1rem;
}
.sponsor-strip {
  background: #fff !important;
  color: var(--ink) !important;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  margin-top: 2rem;
}
.sponsor-label { color: var(--muted); letter-spacing: 0.08em; font-weight: 700; }
.sponsor-and { color: var(--muted); }
.sponsor-logo img { height: 28px; padding: 2px 5px; border-radius: 8px; box-shadow: var(--shadow-sm); }

header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, #fff 82%, transparent) !important;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.bar { padding: 0.7rem 0; gap: 1.1rem; }
.logo-img { height: 44px; width: auto; max-width: min(280px, 48vw); object-fit: contain; }
.search input {
  background: var(--bg2);
  border: 1px solid transparent;
  padding: 0.75rem 1.1rem;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.search input:focus {
  outline: none;
  background: #fff;
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.search button {
  background: var(--ink);
  color: #fff;
  border: 0;
  padding: 0.75rem 1.2rem;
  font-weight: 700;
}
.search button:hover { filter: brightness(1.15); color: #fff; }
.btn, button.btn {
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-sm);
}
.btn:hover, button.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: inherit; }
.btn-accent:hover { color: var(--accent-ink); }
.cats {
  gap: 0.45rem;
  padding: 0 0 0.85rem;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cats a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-weight: 650;
  font-size: 0.88rem;
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.cats a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.cats a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Full-bleed dark hero */
body.home main.wrap { width: 100%; max-width: none; padding: 0 0 4rem; }
.hero.hero-dark {
  display: block;
  background:
    radial-gradient(900px 420px at 85% 0%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 60%),
    radial-gradient(700px 360px at 10% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--hero, var(--ink)) 94%, #000), var(--hero, var(--ink)));
  color: #fff;
  padding: 2.6rem 0 2.7rem;
  margin: 0 0 1.7rem;
  border-radius: 0 0 36px 36px;
  position: relative;
  overflow: hidden;
}
.hero.hero-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 80%);
  pointer-events: none;
}
.hero-inner { width: min(1200px, calc(100% - 2rem)); margin-inline: auto; position: relative; z-index: 1; max-width: 44rem; }
.hero.hero-dark .eyebrow { color: color-mix(in srgb, var(--accent) 70%, #fff); }
.hero.hero-dark h1 { color: #fff; font-size: clamp(2.05rem, 4.6vw, 3.35rem); line-height: 1.05; margin-bottom: 0.65rem; }
.hero.hero-dark .lede { color: color-mix(in srgb, #fff 78%, var(--accent)); font-size: 1.15rem; max-width: 38rem; }
.hero.hero-dark .hero-stats { color: color-mix(in srgb, #fff 65%, transparent); }
.search.mega { margin: 1.6rem 0 0.9rem; max-width: 40rem; display: flex; background: #fff; border-radius: 999px; padding: 0.3rem; box-shadow: var(--shadow-lg); }
.search.mega input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ink);
  padding: 0.95rem 1.2rem;
  font-size: 1.02rem;
}
.search.mega button {
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  padding: 0.9rem 1.4rem;
  font-weight: 800;
}

/* Text-only category tiles (no photos) — name on the site's own tile colour */
.browse-tiles, body.home .rail, body.home .points { width: min(1200px, calc(100% - 2rem)); margin-inline: auto; }
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.tile-grid.tiles-3 { grid-template-columns: repeat(3, 1fr); }
.cat-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 7.5rem;
  padding: 1.1rem 1.15rem;
  text-decoration: none;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0) 55%),
    var(--tile, var(--ink));
  border-radius: 22px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.cat-tile::after {
  content: "";
  position: absolute;
  left: 1.15rem; top: 1.1rem;
  width: 2.2rem; height: 4px; border-radius: 4px;
  background: var(--accent);
}
.cat-tile:hover, .cat-tile:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); color: #fff; }
.cat-tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.cat-tile-label { display: block; padding: 0; }
.cat-tile-label strong { display: block; color: #fff; font-size: 1.15rem; font-weight: 750; line-height: 1.25; letter-spacing: -0.02em; overflow-wrap: anywhere; }

.listing-card {
  border: 0;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.listing-card .thumb { aspect-ratio: 1 / 1; }
.listing-card .body { padding: 0.9rem 1rem 1.15rem; }
.listing-card h3 { font-weight: 700; letter-spacing: -0.02em; }
.points article {
  border: 0;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 1.3rem 1.35rem;
}
.rail { margin: 2.4rem auto; }
.rail-head h2 { margin: 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em; }
.rail-head a { font-weight: 700; text-decoration: none; color: var(--accent); }

/* Mobile bottom nav */
.bottom-nav { display: none; }
@media (max-width: 860px) {
  .logo-img { height: 34px; }
  .hero.hero-dark { padding: 2.4rem 0 2.6rem; border-radius: 0 0 28px 28px; margin-bottom: 1.5rem; }
  .hero.hero-dark h1 { font-size: clamp(1.85rem, 9vw, 2.5rem); }
  .tile-grid, .tile-grid.tiles-3 { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .cat-tile { min-height: 5.6rem; padding: 0.95rem 1rem; border-radius: 18px; }
  .cat-tile::after { left: 1rem; top: 0.95rem; }
  .cat-tile-label strong { font-size: 1rem; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 45;
    background: color-mix(in srgb, #fff 90%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    padding: 0.35rem 0.3rem calc(0.35rem + env(safe-area-inset-bottom));
  }
  .bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.25rem 0.1rem;
  }
  .bottom-nav a svg { width: 22px; height: 22px; }
  .bottom-nav a.on, .bottom-nav a:hover { color: var(--accent); }
  .bottom-nav a.sell-tab {
    color: var(--accent-ink);
  }
  .bottom-nav a.sell-tab span.fab {
    width: 42px; height: 42px; margin-top: -18px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    display: grid; place-items: center;
    box-shadow: var(--shadow);
  }
  .bottom-nav a.sell-tab svg { width: 20px; height: 20px; }
  .cookie-banner { bottom: calc(76px + env(safe-area-inset-bottom)); }
  header.site .user-nav { /* still hidden by existing rule */ }
}

@media (min-width: 861px) {
  .search { max-width: 520px; justify-self: stretch; }
}

.vehicles-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.5rem 0 2rem; }
@media (max-width: 860px) { .vehicles-choice { grid-template-columns: 1fr; } }

.install-app { box-shadow: none; }

header.site .install-app,
.user-nav .install-app {
  background: transparent !important;
  color: var(--ink) !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0.35rem 0.45rem !important;
  font-weight: 650;
}
header.site .install-app:hover { color: var(--accent) !important; }
header.site .search input { background: #eef0f3; }
@media (max-width: 860px) {
  header.site .search { display: none !important; }
  header.site .menu-btn { display: none !important; }
  header.site .bar { grid-template-columns: 1fr; padding: 0.55rem 0; }
  .hero.hero-dark { padding: 1.5rem 0 1.6rem !important; margin-bottom: 1.2rem; }
  .hero.hero-dark .lede { font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero.hero-dark h1 { font-size: clamp(1.7rem, 8vw, 2.15rem) !important; }
  .search.mega { margin-top: 1.1rem; }
  .sponsor-strip { display: block; } /* keep sponsors visible on mobile, just above the footer */
}


/* Account dashboard */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }
.dash-nav { position: sticky; top: 5.5rem; background: #fff; border: 1px solid var(--line, #e5e7eb); border-radius: 16px; padding: 1rem 0.75rem; box-shadow: 0 8px 24px rgba(15,23,42,0.04); }
.dash-nav-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #6b7280; margin: 0.75rem 0.5rem 0.25rem; }
.dash-nav ul { list-style: none; margin: 0 0 0.5rem; padding: 0; }
.dash-nav a { display: block; padding: 0.4rem 0.65rem; border-radius: 999px; color: inherit; text-decoration: none; font-weight: 550; }
.dash-nav a.on, .dash-nav a:hover { background: var(--accent-soft, #f3f4f6); color: var(--accent, inherit); }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1rem 0 1.5rem; }
.card.pad { padding: 1.1rem 1.2rem; }
.stat { font-size: 2rem; font-weight: 800; margin: 0; font-family: var(--font-display), system-ui, sans-serif; }
.todo, .notes, .viewed-list, .ticket-list { list-style: none; padding: 0; margin: 0; }
.todo li, .viewed-list li, .ticket-list li, .notes li { padding: 0.55rem 0; border-bottom: 1px solid var(--line, #eee); }
.notes li.unread { font-weight: 650; }
.msg-photo { max-width: 240px; border-radius: 12px; display: block; margin-bottom: 0.4rem; }
.row-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-top: 0.5rem; }
.invoice { max-width: 40rem; }
.seller-line { margin-top: 0.25rem; }
@media (max-width: 860px) {
  .account-layout { grid-template-columns: 1fr; }
  .dash-nav { position: static; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
  .dash-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem; }
  .dash-nav-label { width: 100%; margin-top: 0.5rem; }
}

.msg-layout { align-items: start; }
.msg-layout > aside { min-width: 0; }
.msg-layout > aside h1 { font-size: 1.6rem; letter-spacing: -0.03em; margin: 0 0 0.8rem; }
.msg-layout .thread-list a { overflow-wrap: anywhere; }


/* Sale, collection, trade and vehicle lookup */
.tag.sale, .sale-badge {
  background: #b42318;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}
.tag.collection { background: #1f7a4d; color: #fff; }
.tag.trade, .tag.inline.tag { }
.price-sale s.was, .price-sale .was { color: var(--muted); margin-right: 0.35rem; }
.price-sale strong.now { color: #b42318; }
.reg-lookup { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: flex-end; margin-bottom: 0.8rem; }
.reg-lookup label { flex: 1 1 12rem; }
.reg-lookup [data-reg-status] { flex: 1 1 100%; margin: 0; }
.token { display: block; word-break: break-all; font-size: 0.92rem; background: var(--bg2); padding: 0.6rem 0.8rem; border-radius: 8px; }

.tile-grid.tiles-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .tile-grid.tiles-2 { grid-template-columns: 1fr 1fr; }
  .reg-lookup { flex-direction: column; align-items: stretch; }
}

/* --- site gaps pass (16 Nov 2026) --- */
.safety-box { border: 1px solid var(--line); border-left: 4px solid var(--warn); background: var(--card); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.5rem 0; }
.safety-box h2 { margin-top: 0; font-size: 1.1rem; }
.safety-box ul { margin: 0.4rem 0 0.6rem 1.1rem; padding: 0; }
.safety-box li { margin: 0.25rem 0; }
.seller-type-note { font-size: 0.85rem; margin-top: 0.25rem; }
.tag.tag-private { background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); }
.vacation-note { background: color-mix(in srgb, var(--accent) 10%, var(--card)); border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem 0.8rem; }
.draft-note { background: #fff7e0; border: 1px solid #e8d38c; color: #4a3a00; border-radius: 10px; padding: 0.5rem 0.8rem; font-size: 0.9rem; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-form, .report-form { max-width: 640px; }
.notice.ok { background: color-mix(in srgb, var(--ok) 12%, var(--card)); border: 1px solid var(--ok); border-radius: 10px; padding: 0.6rem 0.8rem; }
.notice.error { background: color-mix(in srgb, var(--warn) 10%, var(--card)); border: 1px solid var(--warn); border-radius: 10px; padding: 0.6rem 0.8rem; }
.cat-h1 { margin: 0.4rem 0 0.3rem; }
.cat-intro { max-width: 820px; color: var(--muted); margin: 0 0 1rem; }
.filters-h { font-size: 1.1rem; margin: 0 0 0.6rem; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.results-bar p { margin: 0; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 2rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--card); }
.empty-state .btn { margin: 0.25rem; }
.error-state form.search { max-width: 480px; margin: 1rem auto 0; display: flex; gap: 0.5rem; }
.error-state form.search input { flex: 1; }
.vehicle-filters { border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem 0.8rem; margin: 0.6rem 0; }
.vehicle-filters legend { font-weight: 600; padding: 0 0.3rem; }
.saved-list { list-style: none; padding: 0; }
.saved-list li { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.block-box { margin-top: 0.8rem; font-size: 0.92rem; }
.block-box summary { cursor: pointer; color: var(--muted); }
.cond-table td:first-child { white-space: nowrap; }
.foot nav .linkish { font: inherit; color: inherit; padding: 0; background: none; border: 0; text-decoration: underline; cursor: pointer; }
.crumb span[aria-current] { color: var(--muted); }
@media (max-width: 860px) {
  .legal table.plain { display: block; overflow-x: auto; }
  .results-bar { flex-direction: column; align-items: stretch; }
}
/* contrast fixes (axe, 16 Nov 2026) */
.sponsor-label, .sponsor-and { opacity: 1; }
.rail-head a { color: color-mix(in srgb, var(--accent) 55%, var(--ink)); }

/* --- standout features (16 Nov 2026): rules needed outside standout pages --- */
.wrap-home { width: min(1200px, calc(100% - 2rem)); margin-inline: auto; }
.tag.so-fit { left: auto; right: 0.6rem; top: 0.6rem; font-weight: 700; }
.so-fit-likely { background: #d9f2e3; color: #14532d; }
.so-fit-check { background: #fff1c2; color: #6b4d00; }
.so-fit-no { background: #fde2e1; color: #8a1c14; }
.so-cert { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.4rem 0 0.8rem; }
.so-cert .hint { flex-basis: 100%; margin: 0.2rem 0 0; }
@media (max-width: 860px) { .so-total { bottom: calc(68px + env(safe-area-inset-bottom)); } }

/* Shop by brand — text-only tiles, same style as category tiles */
.tile-grid.brand-tiles {
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
}
.brand-tiles .cat-tile { min-height: 5.2rem; }
.brand-tiles .cat-tile-label strong { font-size: 1.05rem; }
.brand-picker [data-brand-filter] { margin-bottom: 0.4rem; }
.brand-picker [data-brand-other] { margin-top: 0.45rem; }
@media (max-width: 720px) {
  .tile-grid.brand-tiles { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.75rem; }
  .brand-tiles .cat-tile { min-height: 4.6rem; padding: 0.85rem 0.9rem; }
  .brand-tiles .cat-tile-label strong { font-size: 0.95rem; }
}

/* ---- Listing page, marketplace-style layout (lx-*), 17 Nov 2026 ---- */
.lx-crumb { font-size: 0.9rem; margin: 0.4rem 0 1rem; }
.lx-crumb a { text-decoration: none; }
.lx-crumb a:hover { text-decoration: underline; }
.lx-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.2rem; align-items: start; }
.lx-gallery { position: sticky; top: 1rem; min-width: 0; }
.lx-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.lx-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.lx-track::-webkit-scrollbar { display: none; }
.lx-slide { flex: 0 0 100%; scroll-snap-align: center; border: 0; padding: 0; margin: 0; background: transparent; cursor: zoom-in; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; }
.lx-slide img, .gallery .lx-slide img#main-photo { width: 100%; height: 100%; object-fit: contain; aspect-ratio: auto; border-radius: 0; background: transparent; }
.lx-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 92%, transparent); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.lx-prev { left: 0.6rem; } .lx-next { right: 0.6rem; }
.lx-count { position: absolute; bottom: 0.6rem; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.6); color: #fff; font-size: 0.8rem; padding: 0.15rem 0.6rem; border-radius: 999px; }
.lx-zoom-hint { position: absolute; top: 0.6rem; right: 0.6rem; background: rgba(0,0,0,0.55); color: #fff; font-size: 0.75rem; padding: 0.15rem 0.55rem; border-radius: 999px; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.lx-stage:hover .lx-zoom-hint { opacity: 1; }
.lx-thumbs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.2rem; }
.lx-thumbs .thumb-btn { flex: 0 0 72px; background: var(--card); }
.lx-thumbs .thumb-btn img { height: 72px; object-fit: cover; }
.lx-info { min-width: 0; }
.lx-title { font-size: clamp(1.35rem, 2.2vw, 1.9rem); letter-spacing: -0.02em; font-weight: 700; margin: 0.2rem 0 0.5rem; }
.lx-condition { margin: 0 0 0.6rem; }
.lx-buybox { padding: 1.1rem 1.2rem 1.2rem; }
.lx-price-label { margin: 0; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.lx-price { margin: 0.1rem 0 0.4rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem; }
.lx-price strong { font-size: clamp(1.8rem, 3vw, 2.3rem); letter-spacing: -0.02em; }
.lx-actions { display: grid; gap: 0.55rem; margin-top: 0.9rem; }
.lx-actions form, .lx-actions p { margin: 0; }
.lx-wide, button.lx-wide { width: 100%; }
.btn-ghost, button.btn-ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); box-shadow: none; }
.btn-ghost:hover, button.btn-ghost:hover { color: var(--ink); }
.lx-actions .bid-form { margin: 0; display: grid; gap: 0.45rem; }
.lx-offer summary { list-style: none; }
.lx-offer summary::-webkit-details-marker { display: none; }
.lx-offer[open] summary { margin-bottom: 0.5rem; }
.lx-summary { margin: 0.9rem 0; display: grid; gap: 0.6rem; font-size: 0.93rem; }
.lx-summary > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.6rem; }
.lx-summary dt { color: var(--muted); }
.lx-summary dd { margin: 0; }
.lx-seller h2 { margin-top: 0; font-size: 1.05rem; }
.lx-seller p { margin: 0.3rem 0; }
.lx-seller-name { font-size: 1.05rem; }
.lx-seller .btn { margin-top: 0.5rem; }
.lx-tabs { display: flex; gap: 0.2rem; border-bottom: 2px solid var(--line); margin: 2.2rem 0 0; overflow-x: auto; scrollbar-width: none; }
.lx-tabs a { text-decoration: none; padding: 0.7rem 1rem; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.lx-tabs a:hover { border-bottom-color: var(--accent); }
.lx-panel { scroll-margin-top: 1rem; }
.lx-panel h2 { margin-top: 1.4rem; }
.lx-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin: 0; }
.lx-specs > div { display: grid; grid-template-columns: minmax(7rem, 40%) 1fr; gap: 0.8rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.lx-specs dt { color: var(--muted); }
.lx-specs dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.lx-related { margin: 2rem 0; }
.lx-related-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.lx-related-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 0.4rem; }
.lx-related-grid > * { scroll-snap-align: start; }
@media (max-width: 860px) { .lx-related-grid { grid-auto-columns: 62%; } }
/* Lightbox */
.lx-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.92); display: none; flex-direction: column; }
.lx-lightbox.open { display: flex; }
.lx-lb-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lx-lb-track::-webkit-scrollbar { display: none; }
.lx-lb-track figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; padding: 3rem 1rem; }
.lx-lb-track img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lx-lb-close { position: absolute; top: 0.8rem; right: 0.8rem; z-index: 2; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: rgba(255,255,255,0.15); color: #fff; font-size: 1.5rem; cursor: pointer; }
.lx-lightbox .lx-nav { z-index: 2; background: rgba(255,255,255,0.15); color: #fff; border: 0; }
.lx-lightbox .lx-count { bottom: 1rem; }
body.lx-noscroll { overflow: hidden; }
@media (max-width: 860px) {
  .lx-layout { grid-template-columns: 1fr; gap: 1rem; }
  .lx-gallery { position: static; margin-inline: -1rem; }
  .lx-stage { border-radius: 0; border-left: 0; border-right: 0; }
  .lx-slide { aspect-ratio: 4 / 3; }
  .lx-thumbs { display: none; }
  .lx-zoom-hint { display: none; }
  .lx-specs { grid-template-columns: 1fr; }
  .lx-nav.lx-prev, .lx-nav.lx-next { display: none; }
  .lightbox-open .lx-nav { display: flex; }
}
