/* GENERATED by scripts/build-pages.js from the files listed in scripts/partials/styles.html. Edit those, not this file. */

/* ---- 00-fonts.css ---- */
/* The site's fonts, served from this site (assets/fonts/) instead of Google Fonts, so a visit sends nothing to Google.
   Big Shoulders Display, IBM Plex Sans, IBM Plex Mono and Miriam Libre are open-source fonts under the SIL Open Font License 1.1.
   Subsets: latin, latin-ext and hebrew (the unicode-range picks the file the page needs). Generated once from Google Fonts. */
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/big-shoulders-display-600-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: "Big Shoulders Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/big-shoulders-display-600-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: "Big Shoulders Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/big-shoulders-display-600-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: "Big Shoulders Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/big-shoulders-display-600-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: "Big Shoulders Display";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/big-shoulders-display-600-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: "Big Shoulders Display";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/big-shoulders-display-600-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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-600-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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-600-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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400-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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400-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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400-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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400-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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400-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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400-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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400-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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400-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: "Miriam Libre";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/miriam-libre-400-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Miriam Libre";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/miriam-libre-400-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: "Miriam Libre";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/miriam-libre-400-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: "Miriam Libre";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/miriam-libre-400-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Miriam Libre";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/miriam-libre-400-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: "Miriam Libre";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/miriam-libre-400-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;
}

/* ---- 01-tokens.css ---- */
/* ==========================================================================
   TwoLast — design tokens
   ========================================================================== */
:root {
  /* Brand — sampled from the TwoLast logo: sky blue, gray, white */
  --blue: #7ad3ff;
  --blue-hover: #5bc3f7;
  --blue-deep: #0a6fa6;           /* blue for text/icons/borders on light surfaces (5.4:1 on white) */
  --blue-tint: rgba(122, 211, 255, 0.18);
  --gray: #aaaaaa;
  --paper: #ffffff;

  --ink: #1b1f22;
  --ink-soft: #2a3034;
  --on-dark: #d7dce0;
  --steel: #5b6670;
  --steel-light: var(--gray);     /* secondary text on dark surfaces */
  --plate: #eef1f4;
  --plate-dim: #dde3e8;
  --oxide: #a8471f;               /* errors only */
  --line: rgba(27, 31, 34, 0.13);
  --line-light: rgba(255, 255, 255, 0.16);
  --grid-line: rgba(122, 211, 255, 0.16);

  --font-display: "Big Shoulders Display", "Miriam Libre", sans-serif;   /* Miriam Libre only supplies the Hebrew letters */
  --font-body: "Twemoji Country Flags", "IBM Plex Sans", "Miriam Libre", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Miriam Libre", "SFMono-Regular", Consolas, monospace;

  --radius: 4px;
  --container: 1180px;
}

/* Flag emoji for browsers that have none (Windows). It only covers the flag characters, so it changes
   nothing else. Twemoji Country Flags: https://github.com/talkjs/country-flag-emoji-polyfill (MIT; artwork
   from Twemoji, CC-BY 4.0, Copyright Twitter, Inc. and other contributors). */
@font-face {
  font-family: "Twemoji Country Flags";
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
  src: url("../fonts/TwemojiCountryFlags.woff2") format("woff2");
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 2px;
}
.site-header :focus-visible,
.hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible,
.mobile-nav :focus-visible {
  outline-color: var(--blue);
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- 02-header.css ---- */
/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

/* Logo: mark + wordmark. Always sits on a dark surface (header, drawer, footer). */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--paper);
}
.logo-mark { width: 66px; height: 30px; flex-shrink: 0; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: 1px;
  line-height: 1;
}
.logo-text span { color: var(--blue); }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--ink); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline-dark:hover { background: var(--ink); color: var(--paper); }

.nav-toggle { background: none; border: none; cursor: pointer; }   /* size and visibility: 19-header-v2.css */

/* The header stays at the top of the screen, so a link to a section (faq.html#shipping) and the keyboard focus must stop below it,
   not behind it */
main h2[id], main section[id] { scroll-margin-top: 96px; }
@media (max-width: 760px) { main h2[id], main section[id] { scroll-margin-top: 76px; } }

/* ---- 03-home.css ---- */
/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 30px 0 34px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.6;
  mask-image: radial-gradient(ellipse at 70% 20%, black 0%, transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: stretch;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 16px;
}
.tag-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1;
  letter-spacing: 0.2px;
  margin: 0 0 26px;
  text-transform: uppercase;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue);
}

/* ==========================================================================
   Section shell
   ========================================================================== */
section { padding: 88px 0; }
/* the intro sits under its headline */
.section-head {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-deep);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
}
.section-head p {
  max-width: 64ch;
  color: var(--steel);
  margin: 0;
  font-size: 15.5px;
}

/* ==========================================================================
   How it trades (steps)
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  position: relative;
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
}
.step-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  background: var(--blue);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 24px;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.step p { color: var(--steel); font-size: 14.5px; margin: 0; }

/* ==========================================================================
   Asset tag component (signature element)
   ========================================================================== */
.asset-tag {
  position: relative;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border: 1px solid rgba(27, 31, 34, 0.05);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(27, 31, 34, 0.07), 0 1px 3px rgba(27, 31, 34, 0.04);   /* soft, wide and light */
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.asset-tag:hover { box-shadow: 0 16px 44px rgba(27, 31, 34, 0.12), 0 2px 6px rgba(27, 31, 34, 0.05); transform: translateY(-3px); }
.asset-tag::before,
.asset-tag::after {
  display: none;   /* the two rivets of the old card: gone, for a cleaner, airier card */
  content: "";
  position: absolute;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--plate-dim);
  border: 1px solid var(--line);
  z-index: 2;
}
.asset-tag::before { left: 12px; }
.asset-tag::after { right: 12px; }

.tag-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--plate) 0%, var(--plate-dim) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.tag-media svg { width: 46%; height: 46%; color: var(--steel-light); }
.tag-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03);
  transition: transform 0.3s ease;
}
.asset-tag:hover .tag-media img { transform: scale(1.04); }
/* a card with several photos: a strip a drag slides sideways (cardSlides.js), a dot for each; a drag on it never moves the row */
.tag-slides { display: flex; width: 100%; height: 100%; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.tag-slides img { flex: 0 0 100%; -webkit-user-drag: none; }
.asset-tag:hover .tag-slides img { transform: none; }
.tag-dots { position: absolute; inset-inline: 0; bottom: 9px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.tag-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.6); box-shadow: 0 0 3px rgba(0, 0, 0, 0.55); }
.tag-dots i.on { width: 8px; height: 8px; margin-top: -1px; background: #fff; }
.tag-grade {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius);
  border: 1.5px solid currentColor;
  background: rgba(27, 31, 34, 0.88);
}
/* on a card the condition is a small tag in the price row, opposite the price, shaped and lettered like the site's buttons (it is not a
   button: it only explains itself on hover). New is the solid brand blue, like new is outlined in it, used is plain gray. */
.tag-cond {
  flex-shrink: 0; display: inline-flex; align-items: center; padding: 6px 12px; border-radius: var(--radius); border: 1.5px solid transparent;
  font: 600 13px var(--font-body); white-space: nowrap; color: var(--ink); outline-offset: 2px;
}
.tag-meta .tag-cond.cond-new { color: var(--ink); background: var(--blue); }
.tag-meta .tag-cond.cond-like-new { color: var(--ink); background: var(--paper); border-color: var(--blue); }
.tag-meta .tag-cond.cond-used { color: var(--ink); background: var(--plate); border-color: var(--plate-dim); }
.tag-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--radius);
  border: 1.5px solid currentColor; background: rgba(27, 31, 34, 0.88);
}
/* the hover explanation is anchored to the card, so it opens just above the white box and never leaves the card */
.tag-body { position: relative; }
.tag-body .tag-ic, .tag-body .tag-cond { position: static; }
html .tag-body .tag-ic[data-tip]::after, html .tag-body .tag-cond[data-tip]::after { top: 8px; bottom: auto; translate: 0 -100%; inset-inline-start: auto; inset-inline-end: 0; box-sizing: border-box; max-width: min(100%, 280px); }
/* the condition pill with, under it, whether TwoLast inspected the part in person */
.tag-cond-col { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.tag-insp { display: inline-flex; align-items: center; gap: 4px; font: 500 12px/1.2 var(--font-body); white-space: nowrap; }
.tag-insp.is-yes { color: var(--blue-deep); font-weight: 600; }
.tag-insp.is-no { color: var(--steel); }
/* Condition stamps use the logo colours: blue for new, white for like new, gray for used */
.cond-new { color: var(--blue); }
.cond-like-new { color: var(--paper); }
.cond-used { color: var(--gray); }

.tag-body {
  padding: 26px 26px 28px;   /* white space around everything */
  border-top: 0;
}
.tag-serial {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: block;
}
.tag-brand {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-deep);
}
.tag-brand[hidden] { display: none; }
.tag-body h3 {
  font-size: 16.5px;
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.3;
}
.tag-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.tag-price {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}
.tag-loc { font-size: 12.5px; color: var(--steel); }
.tag-place { justify-content: flex-end; margin-bottom: 16px; }

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.section-foot { margin-top: 44px; text-align: center; }

/* ==========================================================================
   Category grid
   ========================================================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.cat-tag {
  text-decoration: none;
  color: var(--ink);
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  position: relative;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cat-tag:hover { border-color: var(--blue-deep); background: var(--paper); }
.cat-tag svg { width: 30px; height: 30px; color: var(--blue-deep); margin-bottom: 16px; }
.cat-tag h3 { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.cat-tag span { font-family: var(--font-mono); font-size: 12px; color: var(--steel); }

/* ==========================================================================
   Trust / why section
   ========================================================================== */
.trust {
  background: var(--plate);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.trust-item h3 {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  margin: 18px 0 10px;
}
.trust-item p { color: var(--steel); font-size: 14.5px; margin: 0; }
.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-icon svg { width: 22px; height: 22px; }

/* ==========================================================================
   Seller CTA band
   ========================================================================== */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.cta-band .eyebrow { color: var(--blue); font-size: clamp(24px, 3vw, 32px); letter-spacing: 1px; margin-bottom: 16px; }
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  text-transform: uppercase;
  margin: 0 auto 18px;
  max-width: 18ch;
}
.cta-band p {
  color: var(--steel-light);
  max-width: 50ch;
  margin: 0 auto 32px;
  font-size: 16px;
}

.similar-title { margin: 8px 0 16px; font-size: 20px; }

/* the badge for a price that changed in the last two weeks: green for down, dark for up */
.tag-change { position: absolute; z-index: 3; top: 14px; inset-inline-start: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border-radius: 12px; color: #fff; font: 700 12.5px var(--font-body); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22); }
.tag-media .tag-change { white-space: nowrap; }
.tag-media .tag-change svg { width: 14px; height: 14px; flex-shrink: 0; color: inherit; }
.tag-change.is-down { background: #167a3f; }
.tag-change.is-up { background: var(--ink); }

/* ---- 04-footer.css ---- */
/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink-soft);
  color: var(--steel-light);
  padding: 64px 0 28px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
.footer-grid h4 {
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-family: var(--font-mono);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { text-decoration: none; color: var(--steel-light); }
.footer-grid a:hover { color: var(--blue); }
.site-footer .logo-mark { width: 48px; height: 22px; }
.site-footer .logo-text { font-size: 26px; }
.footer-brand p { max-width: 32ch; margin: 16px 0 0; font-size: 13.5px; }
.cur-pick { display: inline-flex; align-items: center; gap: 8px; }
.cur-pick select { font: 500 13px var(--font-body); padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--line-light);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #9aa3a9;
  flex-wrap: wrap;
  gap: 12px;
}

/* the reCAPTCHA notice (Google allows its badge to be hidden when this sentence is shown) */
.grecaptcha-badge { visibility: hidden; }
.footer-legal { margin: 0 0 14px; font-size: 12.5px; line-height: 1.5; color: var(--gray); }
.footer-legal a { color: inherit; text-decoration: underline; }

/* ---- 05-listing.css ---- */
/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel);
  padding: 22px 0;
}
.breadcrumb a { color: var(--steel); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue-deep); }
.breadcrumb .sep { margin: 0 8px; color: var(--line); }
.breadcrumb .current { color: var(--ink); }

/* ==========================================================================
   Listing detail
   ========================================================================== */
.listing-detail {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  align-items: start;
}

.gallery-main {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 12px;
  background: var(--plate);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .tag-grade { position: absolute; bottom: 14px; left: 14px; }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gallery-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: none;
}
.gallery-thumbs button.active { border-color: var(--blue-deep); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.purchase-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 96px;
}
.purchase-panel h1 {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  margin: 8px 0 18px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.price-row .price-orig { display: block; margin-top: 4px; font: 500 13.5px var(--font-body); color: var(--steel); }
.price-row .price { font-family: var(--font-mono); font-size: 32px; font-weight: 600; color: var(--ink); }
.purchase-panel .loc { font-size: 13px; color: var(--steel); margin-bottom: 22px; display: block; }
.purchase-panel .btn { width: 100%; justify-content: center; margin-bottom: 10px; }
/* The actions are icon buttons in one row (the name is in the tooltip and for screen readers). */
.purchase-panel .action-row { display: flex; gap: 10px; margin-bottom: 12px; }
.purchase-panel .action-btn { width: auto; flex: 1 1 0; min-width: 0; height: 52px; padding: 0; margin-bottom: 0; justify-content: center; }
.action-btn svg { width: 26px; height: 26px; }
.action-btn .ic-in, .action-btn.is-added .ic-add { display: none; }
.action-btn.is-added .ic-in { display: block; }
.action-btn:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 2px; }
.verified-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--blue-deep);
  font-weight: 500;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.seller-card {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  display: flex;
  gap: 12px;
  align-items: center;
}
.seller-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--plate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--steel);
  flex-shrink: 0;
}
.seller-info h4 { margin: 0 0 2px; font-size: 14px; }
.seller-info span { font-size: 12px; color: var(--steel); }

.spec-section { padding: 56px 0; border-top: 1px solid var(--line); }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 40px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  margin: 0;
}
.spec-row dt { color: var(--steel); }
.spec-row dd { margin: 0; font-family: var(--font-mono); font-weight: 500; }

.condition-block { margin-top: 44px; }
.condition-block h3 {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.condition-block p { color: var(--steel); line-height: 1.75; max-width: 68ch; margin: 0 0 12px; }

@media (max-width: 980px) {
  .listing-detail { grid-template-columns: 1fr; }
  .purchase-panel { position: static; }
  .spec-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
}

/* the price doesn't include shipping: said right under the price */
.price-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 10px 12px; background: var(--blue-tint); border-radius: var(--radius); font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.price-note svg { flex-shrink: 0; margin-top: 1px; color: var(--blue-deep); }

.owner-edit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin: 4px 0 12px; }
.owner-edit[hidden] { display: none; }
#pBadges { display: flex; gap: 6px; margin: 10px 0 4px; }
#pBadges .tag-insp { font-size: 14px; }

/* ---- 06-auth.css ---- */
/* ==========================================================================
   Auth (sign in / create account)
   ========================================================================== */
.auth-shell {
  max-width: 420px;
  margin: 0 auto;
  padding: 64px 0 96px;
}
.auth-tabs {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
}
.auth-tabs button {
  flex: 1;
  padding: 12px;
  border: none;
  background: var(--paper);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--steel);
  cursor: pointer;
}
.auth-tabs button.active { background: var(--ink); color: var(--paper); }
.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.auth-card h1 {
  font-family: var(--font-display);
  font-size: 26px;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.auth-card > p { color: var(--steel); font-size: 14px; margin: 0 0 24px; }
.form-error {
  background: rgba(168, 71, 31, 0.08);
  border: 1px solid var(--oxide);
  color: var(--oxide);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13.5px;
  margin-bottom: 18px;
}
.form-error[hidden] { display: none; }

/* Continue with Google */
.auth-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--steel); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px 16px;
  background: #fff; color: #1f1f1f; border: 1px solid #dadce0; border-radius: var(--radius);
  font: 600 15px var(--font-body); cursor: pointer;
}
.btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }
.btn-google:disabled { opacity: 0.6; cursor: default; }
#googleError { margin-top: 12px; }

/* Show / hide password */
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-inline-end: 46px; }
.pw-toggle {
  position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px;
  display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--steel); cursor: pointer;
}
.pw-toggle:hover { color: var(--ink); background: var(--plate); }
.pw-toggle:focus-visible { outline: 2px solid var(--blue-deep); }
.pw-toggle .ic-hide, .pw-toggle[aria-pressed="true"] .ic-show { display: none; }
.pw-toggle[aria-pressed="true"] .ic-hide { display: block; }
.forgot-btn { display: block; margin: 10px 0 0; }
#resetForm .forgot-btn { margin: 16px auto 0; }
.form-ok {
  background: var(--blue-tint); border: 1px solid var(--blue-deep); color: var(--ink);
  border-radius: var(--radius); padding: 10px 14px; font-size: 13.5px; margin-bottom: 18px;
}
.form-ok[hidden] { display: none; }

/* ---- 07-sell.css ---- */
/* ==========================================================================
   Sell / list-equipment form
   ========================================================================== */
.sell-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 0 96px;
}
.sell-intro { margin-bottom: 40px; }
.sell-intro .eyebrow { color: var(--blue-deep); }
.sell-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  text-transform: uppercase;
  margin: 0 0 12px;
  line-height: 1;
}
.sell-intro p { color: var(--steel); font-size: 15.5px; max-width: 56ch; margin: 0; }

.form-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}
.form-section h2 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-section h2 .step-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  color: var(--paper);
  background: var(--ink);
  padding: 3px 8px;
  border-radius: 999px;
}

.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
}
.field .hint { display: block; font-weight: 400; color: var(--steel); font-size: 12.5px; margin-top: 6px; }
.field input[type="text"],
.field input[type="number"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"],
.field input[type="search"],
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-deep);
}
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.chip-select { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-select input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip-select label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 15px;
  cursor: pointer;
  margin: 0;
}
.chip-select input:checked + label { border-color: var(--blue-deep); color: var(--blue-deep); background: var(--blue-tint); }
.chip-select input:focus-visible + label { outline: 3px solid var(--blue-deep); outline-offset: 2px; }

.grade-select { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grade-select input { position: absolute; opacity: 0; width: 0; height: 0; }
.grade-select label {
  display: block;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  margin: 0;
}
.grade-select input:checked + label { border-color: var(--blue-deep); background: var(--blue-tint); }
.grade-select input:focus-visible + label { outline: 3px solid var(--blue-deep); outline-offset: 2px; }
.grade-select strong { display: block; font-family: var(--font-mono); font-size: 13px; margin-bottom: 4px; }
.grade-select span { font-size: 12.5px; color: var(--steel); }

.dropzone {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  background: var(--plate);
}
.dropzone:hover, .dropzone.dragover { border-color: var(--blue-deep); background: var(--blue-tint); }
.dropzone svg { width: 32px; height: 32px; color: var(--steel); margin-bottom: 12px; }
.dropzone p { margin: 0 0 4px; font-weight: 600; font-size: 14.5px; }
.dropzone span { font-size: 12.5px; color: var(--steel); }
.dropzone input[type="file"] { display: none; }
.camera-row { margin-top: 10px; }

.form-footer-note {
  font-size: 13px;
  color: var(--steel);
  margin: 0 0 16px;
}
.form-footer-note strong { color: var(--ink); }

.sell-confirm {
  text-align: center;
  padding: 56px 28px;
}
.sell-confirm .tag-chip { margin: 0 auto 24px; }
.sell-confirm h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  text-transform: uppercase;
  margin: 0 0 14px;
}
.sell-confirm p { color: var(--steel); max-width: 48ch; margin: 0 auto 28px; }
.sell-confirm .tag-serial { display: block; margin-bottom: 20px; }

@media (max-width: 600px) {
  .field-row, .grade-select { grid-template-columns: 1fr; }
}

/* ---- 08-browse.css ---- */
/* ==========================================================================
   Browse page
   ========================================================================== */
.browse-header {
  background: var(--plate);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.browse-header .eyebrow { color: var(--blue-deep); }
.browse-header h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  text-transform: uppercase;
  margin: 0;
}
.search-bar {
  display: flex;
  gap: 10px;
  max-width: 640px;
}
.search-bar input {
  flex: 1;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--paper);
}
.search-bar input:focus { border-color: var(--blue-deep); outline: none; }

.browse-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 48px 0 96px;
  align-items: start;
}
.filters {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 96px;
}
.filter-group { margin-bottom: 28px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 14px;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 10px;
  cursor: pointer;
}
.filter-option input { accent-color: var(--blue-deep); width: 16px; height: 16px; }
.filter-option span.count { margin-inline-start: auto; color: var(--steel); font-family: var(--font-mono); font-size: 12px; }

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.results-count { font-size: 14.5px; color: var(--steel); }
.results-count strong { color: var(--ink); }
.sort-select {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.browse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* "Show more" under the results */
.load-more { display: flex; justify-content: center; margin: 28px 0 8px; }
.load-more[hidden] { display: none; }

/* price filter */
.pf-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.pf-row label { font-size: 13px; color: var(--steel); }
.pf-row select { flex: 1; max-width: 140px; }
.pf-slider { position: relative; height: 28px; margin: 4px 8px 8px; }
.pf-track, .pf-fill { position: absolute; top: 12px; height: 4px; border-radius: 2px; }
.pf-track { left: 0; right: 0; background: var(--line); }
.pf-fill { background: var(--blue-deep); }
.pf-slider input[type=range] {
  position: absolute; left: -8px; width: calc(100% + 16px); top: 0; height: 28px; margin: 0; padding: 0; background: none;
  pointer-events: none; -webkit-appearance: none; appearance: none; border: 0;
}
.pf-slider input[type=range]::-webkit-slider-runnable-track { background: none; height: 28px; }
.pf-slider input[type=range]::-moz-range-track { background: none; }
.pf-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; margin-top: 4px; border-radius: 50%;
  background: #fff; border: 2px solid var(--blue-deep); cursor: grab; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.pf-slider input[type=range]::-moz-range-thumb {
  pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--blue-deep); cursor: grab;
}
.pf-slider input[type=range]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--blue); }
.pf-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-inputs label { display: block; font-size: 12px; color: var(--steel); }
.pf-inputs input { width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: 14px; background: var(--paper); }
.pf-text { margin: 10px 0 0; font-size: 13px; color: var(--ink); font-weight: 600; }

/* ---- 09-responsive.css ---- */
/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .listing-grid, .browse-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .steps, .trust-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .browse-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
}

@media (max-width: 720px) {
  .hero { padding: 40px 0 40px; }
  .hero h1 { max-width: none; }
  section { padding: 56px 0; }
  .listing-grid, .browse-grid, .category-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .listing-grid, .browse-grid, .category-grid { grid-template-columns: 1fr; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--paper);
  z-index: 100;
  padding: 24px;
  transform: translateX(100%);
  visibility: hidden;   /* closed: not in the tab order, and not read out */
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
}
.mobile-nav.open { transform: translateX(0); visibility: visible; transition: transform 0.25s ease, visibility 0s; }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-nav > a {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  padding: 14px 0;
  border-bottom: 1px solid var(--line-light);
}
.mobile-nav-close { background: none; border: none; color: var(--paper); font-size: 28px; cursor: pointer; }

/* ---- 10-admin.css ---- */
/* ==========================================================================
   Admin panel
   ========================================================================== */
.admin-shell { padding: 8px 0 96px; }
.admin-head { margin-bottom: 28px; }
.admin-head h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  text-transform: uppercase;
  margin: 0 0 8px;
  line-height: 1;
}
.admin-head p { color: var(--steel); margin: 0; max-width: 60ch; }
.admin-notice { max-width: 560px; padding: 24px 0 8px; }
.admin-notice code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--plate);
  padding: 3px 8px;
  border-radius: var(--radius);
  word-break: break-all;
}

.admin-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
}
.admin-tabs button {
  padding: 12px 16px;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--steel);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.admin-tabs button:hover { color: var(--ink); }
.admin-tabs button.active { color: var(--ink); border-bottom-color: var(--blue-deep); }
.admin-tabs .count { font-family: var(--font-mono); font-size: 12px; margin-left: 6px; color: var(--steel); }

.admin-list { display: grid; gap: 12px; }
.admin-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.admin-row:hover { border-color: var(--blue-deep); }
.admin-row img, .admin-row .no-photo {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--plate);
}
.admin-row .no-photo { display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--steel); font-family: var(--font-mono); }
.admin-row h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.3; }
.admin-row .meta { font-size: 13px; color: var(--steel); }
.admin-row .side { text-align: right; display: grid; gap: 6px; justify-items: end; }
.admin-row .price { font-family: var(--font-mono); font-weight: 600; }

.status-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.status-pending_inspection { color: var(--steel); }
.status-live { color: var(--blue-deep); }
.status-sold { color: var(--ink); background: var(--plate); }
.status-rejected { color: var(--oxide); }

.admin-empty { color: var(--steel); padding: 32px 0; }

.review-back {
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue-deep);
  cursor: pointer;
}
.review-back:hover { text-decoration: underline; }
.review-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: start; }
.review-media { position: sticky; top: 96px; }
.review-media .no-photos {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--plate);
  border-radius: var(--radius);
  color: var(--steel);
}
.review-title { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.review-title h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 30px; line-height: 1.05; margin: 0; }
.review-title .serial { font-family: var(--font-mono); font-size: 12px; color: var(--steel); display: block; margin-bottom: 6px; }
.review-facts { margin: 0 0 16px; }
.review-text h4 { margin: 18px 0 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--steel); }
.review-text p { margin: 0; white-space: pre-line; font-size: 14.5px; }
.review-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn-danger { background: transparent; border-color: var(--oxide); color: var(--oxide); }
.btn-danger:hover { background: var(--oxide); color: var(--paper); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.form-ok {
  background: var(--blue-tint);
  border: 1px solid var(--blue-deep);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13.5px;
  margin-bottom: 18px;
}
.form-ok[hidden] { display: none; }

@media (max-width: 980px) {
  .review-layout { grid-template-columns: 1fr; }
  .review-media { position: static; }
}
@media (max-width: 600px) {
  .admin-row { grid-template-columns: 72px 1fr; }
  .admin-row img, .admin-row .no-photo { width: 72px; height: 56px; }
  .admin-row .side { grid-column: 1 / -1; grid-template-columns: 1fr auto; justify-items: start; align-items: center; text-align: left; }
}

.check-line { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.check-line input { width: auto; }

.agree-field .check-line { align-items: flex-start; font-weight: 400; font-size: 14px; }
.agree-field .check-line input { margin-top: 3px; flex-shrink: 0; }
.google-agree { margin-top: 12px; text-align: center; }

/* ---- 11-my-listings.css ---- */
/* ==========================================================================
   Seller dashboard (My listings)
   ========================================================================== */
.my-shell { padding: 8px 0 96px; }
.my-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.my-head h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  text-transform: uppercase;
  margin: 0 0 8px;
  line-height: 1;
}
.my-head p { color: var(--steel); margin: 0; max-width: 56ch; }
.my-summary { font-family: var(--font-mono); font-size: 12.5px; color: var(--steel); margin-bottom: 16px; }

.my-list { display: grid; gap: 14px; }
.my-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.my-card img, .my-card .no-photo {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--plate);
}
.my-card .no-photo { display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--steel); font-family: var(--font-mono); }
.my-card h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.3; }
.my-card .meta { font-size: 13px; color: var(--steel); }
.my-card .note { margin: 10px 0 0; font-size: 13.5px; }
.my-card .note.warn { border-left: 3px solid var(--oxide); padding-left: 10px; }
.my-card .side { display: grid; gap: 10px; justify-items: end; text-align: right; }
.my-card .price { font-family: var(--font-mono); font-weight: 600; }
.my-card .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.my-empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  background: var(--plate);
}
.my-empty h2 { font-family: var(--font-display); text-transform: uppercase; margin: 0 0 8px; }
.my-empty p { color: var(--steel); margin: 0 0 20px; }

.edit-notice {
  border: 1px solid var(--oxide);
  background: rgba(168, 71, 31, 0.06);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 14px;
}
.edit-notice strong { display: block; margin-bottom: 4px; }
.edit-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.edit-actions .spacer { flex: 1; }

.photo-manager {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.photo-item { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-item button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(27, 31, 34, 0.88);
  color: var(--paper);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.photo-item button:hover { background: var(--oxide); }
.photo-item .badge-new {
  position: absolute;
  bottom: 4px;
  left: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--blue);
  color: var(--ink);
  padding: 2px 6px;
  border-radius: 999px;
}

@media (max-width: 720px) {
  .my-card { grid-template-columns: 96px 1fr; gap: 14px; }
  .my-card img, .my-card .no-photo { width: 96px; height: 72px; }
  .my-card .side { grid-column: 1 / -1; grid-template-columns: 1fr; justify-items: start; text-align: left; }
  .my-card .actions { justify-content: flex-start; }
}

/* ---- 12-forms.css ---- */
/* ==========================================================================
   Required fields + form guidance
   ========================================================================== */
.req { color: var(--oxide); margin-left: 3px; font-weight: 700; }
.opt { font-weight: 400; color: var(--steel); font-size: 12.5px; margin-left: 4px; }
.field.has-error input[type="text"],
.field.has-error input[type="number"],
.field.has-error input[type="tel"],
.field.has-error textarea,
.field.has-error select { border-color: var(--oxide); }
.field.has-error .chip-select label,
.field.has-error .grade-select label { border-color: var(--oxide); }
.field.has-error .dropzone { border-color: var(--oxide); }
.field-error { display: block; margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--oxide); }
.sell-tip {
  background: var(--blue-tint);
  border-left: 4px solid var(--blue-deep);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 24px;
  font-size: 14.5px;
  line-height: 1.6;
}
.sell-tip strong { display: block; margin-bottom: 4px; font-size: 15.5px; }

/* ==========================================================================
   Grouped controls: price + currency, country + city, phone prefix + number
   ========================================================================== */
.input-group { display: flex; gap: 10px; }
.input-group select { flex: 0 0 auto; width: auto; max-width: 52%; }
.input-group input { flex: 1; min-width: 0; }
.price-group select { width: 132px; }
.phone-group select { width: 240px; }
.location-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.location-group select { width: 100%; max-width: none; }
@media (max-width: 600px) {
  .phone-group { flex-direction: column; }
  .phone-group select, .price-group select { width: 100%; max-width: none; }
  .price-group { flex-direction: column; }
  .location-group { grid-template-columns: 1fr; }
}

/* "Use my current location" under the country and city */
.locate-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 8px; }
.locate-row[hidden] { display: none; }
.locate-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border: 0; background: none; color: var(--blue-deep); font: 600 14px var(--font-body); cursor: pointer; }
.locate-btn:hover:not(:disabled) { text-decoration: underline; }
.locate-btn:disabled { opacity: 0.6; cursor: progress; }
.locate-btn:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 2px; }
.locate-note { font-size: 13.5px; color: var(--steel); }

/* the dialog that asks a signed-in person to accept new terms (termsGate.js) */
.terms-gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(27, 31, 34, 0.72); }
.terms-gate-card { width: min(520px, 100%); max-height: 100%; overflow-y: auto; padding: 28px; border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }
.terms-gate-card h2 { margin: 0 0 12px; font: 700 24px/1.2 var(--font-body); }
.terms-gate-card p { margin: 0 0 14px; line-height: 1.55; }
.terms-gate-links { margin: 0 0 18px; padding-inline-start: 20px; line-height: 1.8; }
.terms-gate-links a { color: var(--blue-deep); font-weight: 600; }
.terms-gate-actions { display: flex; flex-wrap: wrap; gap: 12px; }
html.terms-gate-open { overflow: hidden; }

/* ---- 13-home-page.css ---- */
/* ==========================================================================
   Home: listings straight under the hero
   ========================================================================== */
#featured { padding: 26px 0 64px; }
#featured .section-head { margin-bottom: 18px; }
#featured .section-head h2 { font-size: clamp(26px, 3vw, 34px); }
#featured .section-head p { max-width: 64ch; }

.asset-tag.skeleton { pointer-events: none; }
.asset-tag.skeleton .tag-media { background: var(--plate); animation: skeleton-pulse 1.4s ease-in-out infinite; }
.asset-tag.skeleton .bar {
  display: block;
  height: 12px;
  margin-bottom: 12px;
  border-radius: 4px;
  background: var(--plate);
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}
.asset-tag.skeleton .bar.short { width: 45%; }
.asset-tag.skeleton .bar.mid { width: 70%; margin-bottom: 0; }
@keyframes skeleton-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

.empty-listings {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  background: var(--plate);
}
.empty-listings h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 26px; margin: 0 0 8px; }
.empty-listings p { color: var(--steel); margin: 0 0 20px; }

@media (max-width: 720px) {
  #featured { padding-top: 22px; }
  #featured .section-head p { display: none; }
  #featured .section-head { margin-bottom: 14px; }
}

#similarSection[hidden] { display: none; }

/* ---- 14-cart.css ---- */
/* ==========================================================================
   Cart
   ========================================================================== */

.btn-cart {
  background: transparent;
  color: var(--blue-deep);
  border: 1.5px solid var(--blue-deep);
  cursor: pointer;
}
.btn-cart:hover { background: var(--blue-tint); }
.btn-cart.is-added { color: var(--steel); border-color: var(--line); }
.cart-view-link { display: block; text-align: center; font-size: 14px; font-weight: 600; color: var(--blue-deep); margin: -2px 0 12px; }
.cart-view-link[hidden] { display: none; }
.cart-view-link::before { content: "\2713  "; }

.my-card h3 a { color: inherit; text-decoration: none; }
.my-card h3 a:hover { text-decoration: underline; }
.my-card.cart-gone { opacity: 0.75; border-style: dashed; }
.cart-totals {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.cart-totals span { color: var(--steel); font-size: 14px; }
.cart-totals strong { font-family: var(--font-mono); font-size: 20px; }

/* parts in the cart: a tick box at the start of each row, and an action bar that appears once something is ticked */
.cart-row { grid-template-columns: auto 120px 1fr auto; }
.cart-row.is-picked { border-color: var(--blue-deep); background: var(--blue-tint); }
.cart-check { display: grid; place-items: center; width: 28px; align-self: start; padding-top: 4px; cursor: pointer; }
.cart-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue-deep); cursor: pointer; }
.cart-bar {
  position: sticky; bottom: 14px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 16px 0 0; padding: 12px 16px;
  background: var(--ink); color: #fff; border-radius: var(--radius); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.cart-bar[hidden] { display: none; }
.cart-sel { font-size: 14px; font-weight: 600; }
.cart-bar-actions { margin-inline-start: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.cart-bar .btn-outline-dark { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.cart-bar .btn-outline-dark:hover { background: #fff; color: var(--ink); }
html[dir="rtl"] .ic-arrow { transform: scaleX(-1); }
@media (max-width: 720px) { .cart-row { grid-template-columns: auto 96px 1fr; } .cart-row .side { grid-column: 1 / -1; } }
.cart-note { margin: 0 0 14px; font-size: 13.5px; color: var(--ink); }
.cart-note[hidden] { display: none; }

/* ---- 15-offers.css ---- */
/* ==========================================================================
   Offers
   ========================================================================== */
.offer-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--plate);
  padding: 16px;
  margin-bottom: 12px;
}
.offer-panel[hidden] { display: none; }
/* while one panel is being used the other two are hidden (see panelFocus.js) */
.purchase-panel[data-focus="offerPanel"] #inspectPanel, .purchase-panel[data-focus="offerPanel"] #shipPanel,
.purchase-panel[data-focus="inspectPanel"] #offerPanel, .purchase-panel[data-focus="inspectPanel"] #shipPanel,
.purchase-panel[data-focus="shipPanel"] #offerPanel, .purchase-panel[data-focus="shipPanel"] #inspectPanel { display: none; }
.purchase-panel .offer-panel .btn { width: auto; margin-bottom: 0; }
.offer-panel label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
.offer-panel input[type=number], .offer-panel input[type=text], .offer-panel input[type=tel], .offer-panel select, .offer-panel textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.offer-panel textarea { resize: vertical; }
.offer-panel .hint { display: block; }
.offer-panel .offer-ask { margin: 0; font-size: 14px; color: var(--steel); }
.offer-panel .hint { font-size: 12.5px; color: var(--steel); margin: 12px 0 0; }
.offer-state { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.offer-state.ok { border-left: 3px solid var(--blue-deep); padding-left: 10px; }
.offer-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.offer-panel .offer-state:last-child { margin-bottom: 0; }

.offers-box { margin-bottom: 36px; }
.offers-box:empty { display: none; }
.offers-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.offers-head h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 26px; margin: 0; }
.offer-card { grid-template-columns: 130px 1fr auto; }
.offer-amount { font-family: var(--font-mono); font-weight: 600; font-size: 20px; }
.offer-card.offer-new { border-color: var(--blue-deep); }
.offer-card.offer-declined, .offer-card.offer-withdrawn { opacity: 0.7; }
.offer-chip-new { background: var(--blue-tint); color: var(--blue-deep); }
.offer-chip-accepted { background: var(--blue-deep); color: #fff; }
@media (max-width: 720px) {
  .offer-card { grid-template-columns: 1fr; gap: 10px; }
  .offer-card .side { grid-column: auto; }
}

/* ==========================================================================
   Offer chat
   ========================================================================== */
.chat { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--plate); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.chat-head img, .chat-head-noimg { flex-shrink: 0; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #e6ebef; }
.chat-head-text { display: flex; flex-direction: column; min-width: 0; gap: 2px; font-size: 13px; color: var(--steel); }
.chat-head-text strong { color: var(--ink); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-log { max-height: 340px; min-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 12px; background: #eef2f5; }
.chat-day { align-self: center; margin: 8px 0 4px; padding: 2px 10px; border-radius: 999px; background: #dde4ea; color: var(--steel); font-size: 11.5px; font-weight: 600; }
.chat-offer { align-self: center; margin: 4px 0 6px; padding: 5px 14px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 12.5px var(--font-mono); }
.chat-empty { margin: 0; font-size: 13px; color: var(--steel); }
.chat-msg { max-width: 82%; padding: 7px 10px 5px; border-radius: 12px; background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); }
.chat-msg.theirs { align-self: flex-start; border-start-start-radius: 4px; }
.chat-msg.mine { align-self: flex-end; background: #d4f0ff; border-start-end-radius: 4px; }
.chat-msg p { margin: 0; font-size: 14.5px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-time { display: block; margin-top: 2px; text-align: end; font: 500 10.5px var(--font-mono); color: var(--steel); }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px; background: var(--plate); border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; font: inherit; font-size: 14.5px; line-height: 1.4; padding: 9px 14px; border: 1px solid var(--line); border-radius: 20px; background: #fff; resize: none; max-height: 120px; }
.chat-send { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--blue); color: var(--ink); cursor: pointer; }
.chat-send:hover { background: var(--blue-hover); }
.chat-attach { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; }
.chat-attach:hover { background: var(--blue-tint); border-color: var(--blue-deep); }
.chat-pending { position: relative; align-self: flex-start; margin: 8px 10px 0; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--plate); }
.chat-pending[hidden] { display: none; }
.chat-pending img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-pending-x { position: absolute; top: 3px; inset-inline-end: 3px; width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(27, 31, 34, 0.85); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.chat-img { display: block; max-width: 100%; width: 220px; max-height: 260px; object-fit: cover; margin: 0 0 4px; border-radius: 8px; cursor: zoom-in; background: var(--plate); }
.chat-handshake { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; }
.chat-handshake:hover, .chat-handshake[aria-expanded="true"] { background: var(--blue-tint); border-color: var(--blue-deep); }
.chat-handshake[hidden] { display: none; }
.chat-deal { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 8px 12px; font-size: 13px; line-height: 1.4; background: var(--blue-tint); border-top: 1px solid var(--line); }
.chat-deal[hidden] { display: none; }
.chat-deal.is-agreed { background: #e4f4ea; color: #1d6b40; font-weight: 600; }
.deal-ok { display: inline-flex; gap: 8px; align-items: center; }
.chat-deal .link-btn { font-size: 13px; }
.chat-shake { display: grid; gap: 8px; padding: 10px 12px; background: var(--plate); border-top: 1px solid var(--line); }
.chat-shake[hidden] { display: none; }
.chat-shake-text { margin: 0; font-size: 12.5px; color: var(--steel); line-height: 1.4; }
.chat-shake-row { display: flex; gap: 8px; align-items: center; font-size: 13.5px; }
.chat-shake-row input { flex: 1; min-width: 0; font: 600 15px var(--font-mono); padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.chat-shake-cur { font: 500 12.5px var(--font-mono); color: var(--steel); }
.chat-shake-actions { display: flex; gap: 8px; }
.chat-send:disabled { opacity: 0.5; cursor: default; }
html[dir="rtl"] .chat-send svg { transform: scaleX(-1); }
.chat-notice { margin: 0; padding: 8px 12px; font-size: 12px; color: var(--steel); line-height: 1.4; background: var(--plate); }
.chat-error { margin: 0; padding: 0 12px 8px; background: var(--plate); }
.chat-report { padding: 0 12px 10px; background: var(--plate); }
.chat-report:empty { display: none; }
.offer-thread { grid-column: 1 / -1; }
.offer-thread[hidden] { display: none; }
.admin-offers { margin-top: 48px; }
.admin-offers h4 { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--steel); }
.deal-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.deal-contacts h4 { margin-top: 0; }
.deal-contacts p { margin: 0; font-size: 14px; line-height: 1.6; }
@media (max-width: 720px) {
 .deal-contacts { grid-template-columns: 1fr; }
}

/* Hero without a photo: the headline gets the full width. */
.hero-grid--solo { grid-template-columns: 1fr; }
.hero-grid--solo .hero-content { padding: 14px 0 6px; }
.hero-grid--solo h1 { font-size: clamp(38px, 6.2vw, 76px); margin-bottom: 0; }

/* Slightly smaller logo on phones so the header still fits cart, sign-in and menu. */
@media (max-width: 720px) {
  .site-header .wrap { height: 76px; }
  .logo-mark { width: 55px; height: 25px; }
  .logo-text { font-size: 32px; }
}


/* The buyer's name and phone, taken from their account */
.contact-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 0; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.contact-summary[hidden] { display: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue-deep); font: 600 13px var(--font-body); cursor: pointer; text-decoration: underline; }

/* ---- 16-company-pages.css ---- */
/* ==========================================================================
   Company pages: About, Contact, Terms
   ========================================================================== */
.prose-page { max-width: 70ch; padding: 8px 0 96px; }
.prose-page h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 18px;
}
.prose-page h2 { font-size: 20px; margin: 36px 0 10px; }
.prose-page p, .prose-page li { font-size: 16.5px; line-height: 1.65; color: var(--ink); }
.prose-page p { margin: 0 0 14px; }
.prose-page .prose-lede { font-size: 18px; color: var(--steel); margin-bottom: 8px; }
.prose-page .prose-meta { font: 500 12.5px var(--font-mono); color: var(--steel); margin: 0 0 14px; }
.prose-page a { color: var(--blue-deep); }
.prose-steps { padding-left: 22px; margin: 0 0 14px; }
.prose-steps li { margin-bottom: 10px; }

.contact-form { margin-top: 28px; display: grid; gap: 18px; }
.contact-form .field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  font: inherit;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.contact-form textarea { resize: vertical; }
.contact-form .hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--steel); }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }  /* spam trap: kept inside the page, since an off-screen offset makes RTL pages scroll sideways */
#cDone { margin-top: 28px; }
.contact-card { grid-template-columns: 1fr; }

/* Small phones (360px and under): tighter header so logo, cart, sign-in and menu all fit. */
@media (max-width: 420px) {
  .logo { gap: 10px; }
  .logo-mark { width: 46px; height: 21px; }
  .logo-text { font-size: 26px; }
  .nav-actions { gap: 10px; }
}

/* Terms, sale notice and acknowledgement checkboxes */
.prose-list { padding-left: 22px; margin: 0 0 14px; }
.prose-list li { margin-bottom: 8px; }
.sale-note { margin: 16px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--steel); }
.sale-note a { color: var(--blue-deep); }
.check-label { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; font-weight: 400; cursor: pointer; }
.check-label input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--blue-deep); }
.check-label a { color: var(--blue-deep); }
.terms-check { margin: 8px 0 18px; }
.offer-panel .check-label { margin: 14px 0 0; font-size: 12.5px; }

/* Inspection requests */
.inspect-card { grid-template-columns: 1fr; }
.inspect-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.inspect-controls select, .inspect-controls input[type=text] {
  font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.inspect-controls input[type=text] { flex: 1; min-width: 180px; }

/* Phones: give the offer, chat and inspection panels more room inside the purchase card. */
@media (max-width: 480px) {
  .purchase-panel { padding: 16px; }
  .offer-panel { padding: 12px; }
  .chat-msg { max-width: 94%; }
  .chat-log { max-height: 240px; }
}

/* Partners page and admin partner form */
.partners-page { max-width: 900px; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 14px 0 8px; }
.partner-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--paper); }
.partner-card h3 { margin: 0 0 4px; font-size: 18px; }
.partner-card .meta { font-size: 13px; color: var(--steel); margin-bottom: 8px; }
.partner-card p { font-size: 15px; margin: 0 0 12px; }
.partner-empty { grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--plate); padding: 20px; color: var(--steel); font-size: 15px; margin: 0; }
.partner-note { margin-top: 36px; font-size: 14px; color: var(--steel); }
.partner-form { display: grid; gap: 10px; margin-bottom: 20px; max-width: 640px; }
.partner-form select, .partner-form input, .partner-form textarea {
  font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); width: 100%;
}

/* the three facts at the top of the Fees page, and the commission table */
.fee-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 8px 0 28px; }
.fee-fact { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.fee-fact strong { font: 800 34px/1.1 var(--font-display); color: var(--ink); }
.fee-fact span { color: var(--steel); font-size: 15px; line-height: 1.45; }
.fee-table-wrap { overflow-x: auto; margin: 18px 0; }
.fee-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.fee-table caption { text-align: start; font-weight: 700; padding-bottom: 10px; }
.fee-table th, .fee-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: start; }
.fee-table thead th { font-size: 13px; letter-spacing: 0.04em; color: var(--steel); border-bottom: 2px solid var(--ink); }
.fee-table tbody th { font-weight: 500; }
.fee-table td { font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }

/* ---- 17-extras.css ---- */
/* AI analysis, FAQ, photo viewer, moderation */
/* An element with the hidden attribute must stay hidden even when a class sets its display (buttons, panels). */
[hidden] { display: none !important; }

/* AI photo analysis on the sell form */
.ai-panel { margin-top: 20px; padding: 16px; border: 1px solid var(--blue-deep); border-radius: var(--radius); background: var(--blue-tint); }
.ai-head { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ai-head > div { flex: 1; min-width: 220px; }
.ai-head p { margin: 4px 0 0; font-size: 14px; color: var(--ink); }
.ai-status { margin: 12px 0 0; font-size: 14px; }
.ai-status.is-error { color: var(--oxide); }
.ai-result { margin-top: 14px; padding: 14px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); font-size: 14px; }
.ai-result p { margin: 0 0 8px; }
.ai-result ul { margin: 0 0 8px; padding-left: 20px; }
.ai-result-title { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--blue-deep); }
.ai-note { margin: 12px 0 0; font-size: 12px; color: var(--steel); }
.ai-note a { color: var(--blue-deep); }
input.ai-filled, textarea.ai-filled, .field.ai-filled select { background: var(--blue-tint); border-color: var(--blue-deep); }
.chip-select.ai-filled, .grade-select.ai-filled { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: var(--radius); }

/* FAQ */
.faq-page { max-width: 820px; }
.faq-page h2 { margin-top: 44px; }
.faq-group { border-top: 1px solid var(--line); margin: 14px 0 0; }
.faq-group details { border-bottom: 1px solid var(--line); }
.faq-group summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 40px 16px 0;
  font-weight: 600;
  font-size: 17px;
  position: relative;
}
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font: 400 24px/1 var(--font-mono);
  color: var(--blue-deep);
}
.faq-group details[open] summary::after { content: "\2212"; }
.faq-group summary:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 2px; }
.faq-group details p { margin: 0 0 16px; max-width: 68ch; }

/* Several items in one set of photos */
.photo-item.is-aside img { opacity: 0.4; }
.photo-item .aside-btn {
  position: absolute; left: 4px; right: 4px; bottom: 4px;
  font: 600 11px/1.25 var(--font-sans, inherit); padding: 6px; border: 0; border-radius: 4px;
  background: var(--ink); color: #fff; cursor: pointer;
}
.ai-items { display: grid; gap: 10px; margin: 10px 0 12px; }
.ai-item { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.ai-thumbs { display: flex; gap: 4px; }
.ai-thumbs img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; }
.ai-item-text { flex: 1; min-width: 120px; display: grid; gap: 2px; }
.ai-item-text span { font-size: 12.5px; color: var(--steel); }
.ai-item-name { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ai-main-chip { font: 600 11.5px/1.5 var(--font-sans, inherit); padding: 0 8px; border-radius: 999px; background: var(--blue-tint); color: var(--ink); font-style: normal; }
.ai-item.is-main { border-color: var(--blue-deep); }
.ai-item-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ai-lot { list-style: none; margin: 8px 0 10px; padding: 0; display: grid; gap: 4px; }
.ai-lot li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.ai-lot li span:last-child { color: var(--steel); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--blue-deep); text-decoration: underline; cursor: pointer; }
.pref-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 22px; }
.pref-row label { font-weight: 600; font-size: 14px; }
.pref-row select { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
/* the "add back" button on a set-aside photo is a label bar, not the round remove button */
.photo-item button.aside-btn {
  top: auto; right: 4px; left: 4px; bottom: 4px; width: auto; height: auto;
  border-radius: 4px; padding: 6px; font: 600 11px/1.25 var(--font-sans, inherit); text-align: center;
}
.photo-item button.aside-btn:hover { background: var(--blue-deep); }

/* Full-size photo viewer on the listing page */
.gallery-main img.zoomable { cursor: zoom-in; }
.gallery-main img.zoomable:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.zoom-hint {
  position: absolute; right: 12px; bottom: 12px; padding: 5px 10px; border-radius: 4px;
  background: rgba(27, 31, 34, 0.78); color: #fff; font: 500 12px var(--font-mono); pointer-events: none;
  opacity: 0; transition: opacity 0.15s;
}
.gallery-main:hover .zoom-hint, .gallery-main:focus-within .zoom-hint { opacity: 1; }
@media (hover: none) {
 .zoom-hint { opacity: 1; }
}

body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: rgba(10, 12, 14, 0.94);
}
.lb-stage { margin: 0; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 56px 64px; box-sizing: border-box; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; transition: opacity 0.15s; cursor: default; }
.lb-img.loading { opacity: 0.35; }
.lb-close, .lb-nav {
  position: absolute; z-index: 1; border: 0; border-radius: 50%; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, 0.14); font-family: var(--font-sans, inherit); line-height: 1;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, 0.28); }
.lb-close:focus-visible, .lb-nav:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.lb-close { top: 14px; right: 14px; width: 44px; height: 44px; font-size: 30px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 34px; padding-bottom: 4px; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #fff; font: 500 13px var(--font-mono); }
@media (max-width: 720px) {
  .lb-stage { padding: 56px 8px 48px; }
  .lb-nav { width: 40px; height: 40px; font-size: 28px; background: rgba(0, 0, 0, 0.45); }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
}

/* Zoom inside the photo viewer */
.lb-stage, .lb-img { touch-action: none; }
.lb-img { cursor: zoom-in; transform-origin: center center; user-select: none; -webkit-user-drag: none; }
.lightbox.is-zoomed .lb-img { cursor: grab; }
.lightbox.is-zoomed .lb-img:active { cursor: grabbing; }
.lb-tools {
  position: absolute; z-index: 1; top: 14px; left: 14px; display: flex; gap: 6px;
}
.lb-tool {
  min-width: 44px; height: 44px; padding: 0 12px; border: 0; border-radius: 22px; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, 0.14); font: 500 22px/1 var(--font-sans, inherit);
}
.lb-tool[hidden] { display: none; }
.lb-tool.lb-reset { font-size: 14px; }
.lb-tool:hover { background: rgba(255, 255, 255, 0.28); }
.lb-tool:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Longer starting height for the big text boxes on the sell form; they also grow to fit their text. */
#sellForm #description { min-height: 150px; }
#sellForm #specs { min-height: 120px; }
#sellForm #usage { min-height: 110px; }
@media (max-width: 720px) {
  #sellForm #description { min-height: 180px; }
  #sellForm #specs { min-height: 150px; }
}

/* Content moderation */
img.blurred { filter: blur(28px); }
.reveal-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 16px; border: 0; border-radius: 6px;
  background: var(--ink); color: #fff; font: 600 14px var(--font-sans, inherit); cursor: pointer;
}
.reveal-btn[hidden] { display: none; }
.mod-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; font: 600 11px var(--font-mono); background: var(--plate); color: var(--steel); vertical-align: 1px; }
.mod-badge.flagged { background: rgba(168, 71, 31, 0.14); color: var(--oxide); }
.form-section.mod-flagged { border-color: var(--oxide); background: rgba(168, 71, 31, 0.05); }
.review-actions-secondary { margin-top: 8px; }
.report-card.status-resolved, .report-card.status-dismissed { opacity: 0.65; }
.report-box { margin: 14px 0 0; }
.report-link { font-size: 13px; color: var(--steel); }
.report-done { margin: 0; font-size: 13px; color: var(--steel); }
.report-form { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--plate); }
.report-form label { display: block; font-weight: 600; font-size: 13px; margin: 10px 0 6px; }
.report-form label:first-child { margin-top: 0; }
.report-form select, .report-form textarea { width: 100%; font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.suspended-banner { background: var(--oxide); color: #fff; padding: 10px 24px; font-size: 14px; text-align: center; }
.suspended-banner a { color: #fff; text-decoration: underline; }

/* Messages the text check removed */
.chat-msg.removed { background: transparent; border: 1px dashed var(--line); box-shadow: none; }
.chat-msg.removed p { color: var(--steel); font-style: italic; }

/* ---- 18-rtl.css ---- */
/* ==========================================================================
   Language: Hebrew (right-to-left) and the flag switcher
   English stays exactly as designed; everything below only applies to <html dir="rtl">.
   ========================================================================== */
html.i18n-pending body { visibility: hidden; }

.lang-switch { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: 4px; }
.lang-btn {
  background: none; border: 1.5px solid transparent; border-radius: 5px; padding: 2px;
  cursor: pointer; line-height: 0; opacity: 0.6; transition: opacity 0.15s, border-color 0.15s;
}
.lang-btn:hover { opacity: 1; }
.lang-btn[aria-pressed="true"] { opacity: 1; border-color: var(--blue); }
.lang-btn svg { display: block; border-radius: 2px; }
.lang-switch-drawer { margin: 28px 0 0; gap: 14px; }
.lang-switch-drawer .lang-btn svg { width: 34px; height: 23.5px; }
/* On phones the header only has room for one flag: the language you'd switch to. Both are in the menu. */
@media (max-width: 720px) {
  .nav-actions .lang-switch { margin-inline-start: 0; }
  .nav-actions .lang-btn[aria-pressed="true"] { display: none; }
  .nav-actions .lang-btn { opacity: 1; }
}

/* Hebrew has no capitals and doesn't take letter-spacing. */
html[lang="he"] body :not(.logo-text, .logo-text *) { letter-spacing: normal; }
/* The logo lockup never mirrors. */
html[dir="rtl"] .logo { direction: ltr; }

/* Mirrored positions */

html[dir="rtl"] .asset-tag::before { left: auto; right: 12px; }
html[dir="rtl"] .asset-tag::after { right: auto; left: 12px; }
html[dir="rtl"] .tag-grade,
html[dir="rtl"] .gallery-main .tag-grade { left: auto; right: 14px; }
html[dir="rtl"] .tag-grade { right: 10px; }
html[dir="rtl"] .photo-item button { right: auto; left: 4px; }
html[dir="rtl"] .photo-item .badge-new { left: auto; right: 4px; }
html[dir="rtl"] .photo-item button.aside-btn { left: 4px; right: 4px; }
html[dir="rtl"] .zoom-hint { right: auto; left: 12px; }
html[dir="rtl"] .faq-group summary { padding: 16px 0 16px 40px; }
html[dir="rtl"] .faq-group summary::after { right: auto; left: 4px; }

/* Side borders, indents and margins that sit on one physical side */
html[dir="rtl"] .my-card .note.warn,
html[dir="rtl"] .offer-state.ok { border-left: 0; padding-left: 0; border-right: 3px solid; padding-right: 10px; }
html[dir="rtl"] .my-card .note.warn { border-right-color: var(--oxide); }
html[dir="rtl"] .offer-state.ok { border-right-color: var(--blue-deep); }
html[dir="rtl"] .prose-steps,
html[dir="rtl"] .prose-list { padding-left: 0; padding-right: 22px; }
html[dir="rtl"] .ai-result ul { padding-left: 0; padding-right: 20px; }
html[dir="rtl"] .admin-tabs .count,
html[dir="rtl"] .opt,
html[dir="rtl"] .mod-badge { margin-left: 0; margin-right: 6px; }
html[dir="rtl"] .req { margin-left: 0; margin-right: 3px; }
html[dir="rtl"] .my-card .side,
html[dir="rtl"] .admin-row .side { text-align: left; }
html[dir="rtl"] .admin-row { text-align: right; }
@media (max-width: 720px) {
  html[dir="rtl"] .my-card .side,
  html[dir="rtl"] .admin-row .side { text-align: right; }
}

/* The phone menu slides in from the left in Hebrew */
html[dir="rtl"] .mobile-nav { transform: translateX(-100%); }
html[dir="rtl"] .mobile-nav.open { transform: translateX(0); }
html[dir="rtl"] .sell-tip { border-left: 0; border-right: 4px solid var(--blue-deep); }
@media (max-width: 340px) {
  .nav-actions .lang-switch { display: none; }   /* no room next to the cart and menu button; the menu has both flags */
}
/* Choosing the main photo of a listing: a star button on the other photos, a chip on the main one */
.photo-item .make-main {
  position: absolute; top: 4px; left: 4px; right: auto; width: 26px; height: 26px; border: none; border-radius: 50%;
  background: rgba(27, 31, 34, 0.88); color: #fff; font-size: 15px; line-height: 1; cursor: pointer;
}
.photo-item .make-main:hover { background: var(--blue-deep); }
.photo-item .main-badge {
  position: absolute; top: 4px; left: 4px; padding: 3px 9px; border-radius: 999px;
  background: var(--blue); color: var(--ink); font: 600 11px/1.3 var(--font-mono); white-space: nowrap;
}
html[dir="rtl"] .photo-item .make-main,
html[dir="rtl"] .photo-item .main-badge { left: auto; right: 4px; }

.mobile-nav { overflow-y: auto; }   /* a short phone can't fit every link plus the flags */

/* ==========================================================================
   Header: logo, categories menu, search, and icons (list parts, favorites, cart, account)
   ========================================================================== */
.site-header .wrap.header-row {
  display: flex; align-items: center; justify-content: flex-start; gap: 16px; height: auto; min-height: 78px;
}

/* Turning a photo: the round button at the bottom corner of a photo in the sell form */
.photo-item button.turn-btn { top: auto; bottom: 4px; right: 4px; left: auto; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; }
.photo-item button.turn-btn:hover { background: var(--blue-deep); }
html[dir="rtl"] .photo-item button.turn-btn { right: auto; left: 4px; }
.photo-item[aria-busy="true"] img { opacity: 0.45; }

/* ---- 19-header-v2.css ---- */
/* the current header: search, categories, account menu */
.header-row .logo { flex-shrink: 0; gap: 12px; }
.header-row .logo-mark { width: 58px; height: 27px; }
.header-row .logo-text { font-size: 34px; }

/* Categories drop-down */
.cat-menu { position: relative; flex-shrink: 0; }
.cat-toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-radius: 999px;
  background: none; color: var(--on-dark); font: 600 14.5px var(--font-body); cursor: pointer; white-space: nowrap;
}
.cat-toggle:hover, .cat-toggle[aria-expanded="true"] { background: rgba(255, 255, 255, 0.1); color: var(--paper); }
.cat-panel, .account-panel, .list-panel {
  position: absolute; top: calc(100% + 10px); z-index: 60; background: var(--paper); color: var(--ink);
  border-radius: 10px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32); padding: 8px;
}
.cat-panel { inset-inline-start: 0; min-width: 270px; }
.cat-panel[hidden], .account-panel[hidden], .list-panel[hidden] { display: none; }

/* List parts: a choice between one part and a whole list */
.list-menu { position: relative; }
.list-panel { inset-inline-end: 0; min-width: 310px; }
.list-opt {
  display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 6px; color: var(--ink); text-decoration: none;
}
.list-opt:hover { background: var(--plate); }
.list-opt svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--blue-deep); }
.list-opt b { display: block; font-size: 15px; font-weight: 600; }
.list-opt small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--steel); }
.list-opt + .list-opt { border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; }
.nav-list[aria-expanded="true"] .ic-plus, .nav-list-mobile[aria-expanded="true"] .ic-plus { transform: rotate(45deg); }
.nav-list .ic-plus, .nav-list-mobile .ic-plus { transition: transform 0.15s; }
.cat-panel a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
}
.cat-panel a svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--blue-deep); }
.cat-panel a:hover, .account-panel a:hover, .account-panel button:hover { background: var(--plate); }
.cat-panel .cat-all { font-weight: 700; border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; margin-bottom: 4px; }

/* Search */
.site-search {
  flex: 1; min-width: 0; display: flex; align-items: center; height: 46px; padding-inline: 20px 6px;
  background: #fff; border: 2px solid transparent; border-radius: 999px;
}
.site-search { position: relative; }
.site-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(122, 211, 255, 0.25); }
.site-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink);
  font: 400 15px var(--font-body); padding: 0;
}
.site-search input::placeholder { color: var(--steel); }
.search-btn {
  flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--blue); color: var(--ink); cursor: pointer; transition: background 0.15s;
}
.search-btn:hover { background: var(--blue-hover); }
.search-btn svg { width: 20px; height: 20px; }

/* The icons on the right */
.site-header .nav-actions { gap: 4px; flex-shrink: 0; }
.nav-list { padding: 9px 16px; margin-inline-end: 6px; white-space: nowrap; }
.nav-icon {
  position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; border-radius: 50%;
  background: none; color: var(--on-dark); cursor: pointer; text-decoration: none; padding: 0;
}
.nav-icon:hover, .nav-icon[aria-expanded="true"] { background: rgba(255, 255, 255, 0.1); color: var(--blue); }
.nav-icon svg { width: 24px; height: 24px; }
.nav-icon.is-in { color: var(--blue); }
/* signed in: the first letter of the name in a blue circle instead of the person icon */
.avatar-dot { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: var(--ink); font: 700 16px/1 var(--font-body); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }
.has-initial > svg { display: none; }
.nav-icon:hover .avatar-dot, .nav-icon[aria-expanded="true"] .avatar-dot { background: var(--blue-hover); }
.icon-count {
  position: absolute; top: 2px; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--blue); color: var(--ink); font: 600 11px/18px var(--font-mono); text-align: center;
}
.icon-count[hidden] { display: none; }
.site-header .nav-actions .lang-switch { margin-inline-start: 8px; }

/* Account menu */
.account-menu { position: relative; }
.account-panel { inset-inline-end: 0; min-width: 230px; }
.account-panel a, .account-panel button {
  display: block; width: 100%; text-align: start; padding: 10px 12px; border: 0; border-radius: 6px; background: none;
  color: var(--ink); font: 500 15px var(--font-body); text-decoration: none; cursor: pointer;
}
.acct-cur { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); margin-top: 4px; font: 500 14px var(--font-body); color: var(--ink); }
.account-panel .acct-cur select { width: auto; }
.acct-head { padding: 8px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--steel); word-break: break-all; }

.nav-toggle { display: none; color: #fff; padding: 0; width: 44px; height: 44px; place-items: center; }
.nav-toggle svg { width: 26px; height: 26px; }

/* The phone menu: the same categories, as a list */
.drawer-cats { padding: 4px 0 10px; border-bottom: 1px solid var(--line-light); }
.drawer-cats a { display: flex; align-items: center; gap: 14px; padding: 10px 0; color: var(--on-dark); text-decoration: none; font-size: 17px; }
.drawer-cats a svg { width: 22px; height: 22px; color: var(--blue); }

/* Narrower screens: drop the text button first, then the flags, then move the search under the logo */
@media (max-width: 1000px) {
  .cat-toggle span { display: none; }
  .cat-toggle { padding: 10px 12px; }
}
/* up to tablet width the header is two rows with the phone menu */
@media (max-width: 900px) {
  .nav-list { display: none; }
  .site-header .wrap.header-row {
    display: grid; grid-template-columns: auto 1fr; grid-template-areas: "logo actions" "search search";
    gap: 6px 8px; padding-top: 8px; padding-bottom: 12px; min-height: 0;
  }
  .header-row .logo { grid-area: logo; }
  .header-row .logo-mark { width: 48px; height: 22px; }
  .header-row .logo-text { font-size: 28px; }
  .cat-menu { display: none; }                 /* the categories are in the phone menu */
  .site-header .nav-actions { grid-area: actions; justify-self: end; gap: 0; }
  .site-search { grid-area: search; height: 42px; padding-inline: 16px 4px; }
  .nav-toggle { display: inline-grid; }
  .site-header .nav-actions .lang-switch { display: none; }   /* both flags are in the phone menu */
  .nav-icon, .nav-toggle { width: 40px; height: 40px; }
}
@media (max-width: 420px) {
  .site-header .wrap.header-row { padding-inline: 14px; }
  .header-row .logo { gap: 8px; }
  .header-row .logo-mark { width: 42px; height: 19px; }
  .header-row .logo-text { font-size: 24px; }
  .nav-icon, .nav-toggle { width: 36px; height: 36px; }
  .nav-icon svg, .nav-toggle svg { width: 22px; height: 22px; }
}

/* The list under the search box while typing */
.search-suggest {
  position: absolute; z-index: 95; top: calc(100% + 8px); inset-inline: 0; min-width: min(420px, 92vw);
  max-height: min(70vh, 520px); overflow-y: auto; padding: 6px; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}
.search-suggest[hidden] { display: none; }
.sg-opt { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.sg-opt:hover, .sg-opt.is-active { background: var(--plate); }
.sg-item img, .sg-noimg { flex-shrink: 0; width: 48px; height: 48px; border-radius: 6px; object-fit: cover; background: #e6ebef; }
.sg-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sg-title { font-weight: 600; font-size: 14.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-sub { font-size: 12.5px; color: var(--steel); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-price { flex-shrink: 0; font-family: var(--font-mono); font-weight: 600; font-size: 14px; }
.sg-note { margin: 4px 10px 6px; font-size: 13px; color: var(--steel); }
.sg-link { justify-content: center; font-weight: 600; font-size: 14px; color: var(--blue-deep); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; }
.sg-count { flex-shrink: 0; min-width: 26px; padding: 2px 8px; text-align: center; border-radius: 999px; background: var(--blue); color: var(--ink); font: 700 13px var(--font-mono); }

/* ---- 20-favorites.css ---- */
/* ==========================================================================
   Favorites: the heart on listings
   ========================================================================== */
.card-wrap { position: relative; }
.card-wrap > .asset-tag { display: block; height: 100%; }
.fav-btn {
  position: absolute; z-index: 3; top: 10px; inset-inline-end: 10px; width: 36px; height: 36px; display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--ink); cursor: pointer;
  box-shadow: 0 2px 8px rgba(27, 31, 34, 0.25); transition: transform 0.12s, background 0.12s, color 0.12s;
}
.fav-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.fav-btn:hover { transform: scale(1.08); background: #fff; }
.fav-btn.is-on { color: #e0245e; }
.fav-btn.is-on svg { fill: currentColor; }
.fav-btn-lg { top: 14px; width: 44px; height: 44px; inset-inline-end: 14px; }
.fav-btn-lg svg { width: 24px; height: 24px; }
.fav-grid .my-empty, .fav-grid .admin-empty { grid-column: 1 / -1; }
.gallery-main .fav-btn { z-index: 4; }

/* "List parts" on phones: next to the search box, since the icons leave no room for it in the top row */
.nav-list-mobile, .list-menu-mobile { display: none; }
@media (max-width: 900px) {
  .list-menu-mobile { display: block; grid-area: list; position: relative; }
  .list-menu-mobile .list-panel { min-width: 290px; }
  .site-header .wrap.header-row {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo actions actions" "search search list";
    align-items: center;
  }
  .nav-list-mobile { display: inline-flex; grid-area: list; justify-content: center; padding: 0 14px; height: 42px; font-size: 13.5px; white-space: nowrap; }
}
@media (max-width: 360px) {
  .nav-list-mobile { padding: 0 10px; font-size: 12.5px; }
}

/* ---- 21-loading.css ---- */
/* waiting: the TwoLast circles, and the AI photo analysis */

/* The two circles of the logo, swapping places. Size it with font-size (1em = the circles' diameter). */
.tl-loader { direction: ltr; display: inline-block; position: relative; width: 2.3em; height: 1em; flex-shrink: 0; vertical-align: middle; }
.tl-loader i {
  position: absolute; top: 0; width: 1em; height: 1em; border-radius: 50%; background: var(--blue);
  animation: tl-swap-a 1.2s ease-in-out infinite;
}
.tl-loader i:first-child { left: 0; }
.tl-loader i:last-child { right: 0; background: var(--blue-deep); animation-name: tl-swap-b; }
@keyframes tl-swap-a { 0% { transform: translate(0, 0); } 25% { transform: translate(0.65em, -0.5em); } 50% { transform: translate(1.3em, 0); } 75% { transform: translate(0.65em, 0.5em); } 100% { transform: translate(0, 0); } }
@keyframes tl-swap-b { 0% { transform: translate(0, 0); } 25% { transform: translate(-0.65em, 0.5em); } 50% { transform: translate(-1.3em, 0); } 75% { transform: translate(-0.65em, -0.5em); } 100% { transform: translate(0, 0); } }

.ai-wait { margin-top: 14px; }
.ai-wait[hidden] { display: none; }
.think { display: flex; gap: 18px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.think-photo { position: relative; width: 132px; aspect-ratio: 4 / 3; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; background: var(--plate); }
.think-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.think-scan {
  position: absolute; inset-inline: 0; top: 0; height: 38%;
  background: linear-gradient(to bottom, rgba(122, 211, 255, 0), rgba(122, 211, 255, 0.55) 85%, rgba(122, 211, 255, 0.95));
  border-bottom: 2px solid var(--blue); animation: think-scan 2.4s ease-in-out infinite;
}
@keyframes think-scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(263%); } }
.think-body { flex: 1; min-width: 0; }
.think-title { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-weight: 700; font-size: 16px; }
.think-title .tl-loader { font-size: 12px; }
.think-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 7px; }
.think-steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--steel); transition: color 0.25s; }
.think-steps li[data-state="now"] { color: var(--ink); font-weight: 600; }
.think-steps li[data-state="done"] { color: var(--ink); }
.think-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; display: grid; place-items: center; transition: background 0.25s, border-color 0.25s; }
.think-steps li[data-state="now"] .think-dot { border-color: var(--blue-deep); border-top-color: transparent; animation: think-spin 0.8s linear infinite; }
.think-steps li[data-state="done"] .think-dot { background: var(--blue-deep); border-color: var(--blue-deep); }
.think-steps li[data-state="done"] .think-dot::after { content: ""; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
@keyframes think-spin { to { transform: rotate(360deg); } }
.think-bar { height: 5px; background: var(--plate); border-radius: 3px; overflow: hidden; }
.think-bar span { display: block; height: 100%; width: 0; background: var(--blue-deep); border-radius: 3px; transition: width 0.4s ease-out; }
.think-hint { margin: 10px 0 0; font-size: 12.5px; color: var(--steel); }
@media (max-width: 520px) {
  .think { flex-direction: column; }
  .think-photo { width: 100%; max-width: 220px; }
}
/* for people who ask their device for less motion: the same information, nothing moving */
@media (prefers-reduced-motion: reduce) {
  .tl-loader i, .think-scan, .think-steps li[data-state="now"] .think-dot { animation: none; }
  .tl-loader i:last-child { transform: none; }
  .think-scan { display: none; }
  .think-bar span { transition: none; }
}

/* short waits */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wait-block { display: flex; justify-content: center; padding: 56px 0; font-size: 20px; grid-column: 1 / -1; }
.wait-line { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.wait-line .tl-loader { font-size: 14px; }
.btn .tl-loader { font-size: 10px; margin-inline-end: 10px; }
.btn-primary .tl-loader i:last-child { background: var(--ink); }
/* a listing page waits invisibly (no placeholder text flashing), then shows the circles if it takes a while */
.listing-detail { position: relative; }
.listing-detail[data-loading] > :not(.wait-block) { visibility: hidden; }
.listing-detail > .wait-block { position: absolute; inset-inline: 0; top: 80px; padding: 0; z-index: 1; }
/* between pages: shown only if the next page takes more than a moment */
.page-wait {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; font-size: 24px; pointer-events: none;
  background: rgba(255, 255, 255, 0.72); animation: page-wait-in 0.2s ease-out;
}
@keyframes page-wait-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .page-wait { animation: none; } }

/* ---- 22-tooltips.css ---- */
/* Hover explanations for the main buttons: <a data-tip="What it does">. On touch screens there is no hover, so none are shown. */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip); position: absolute; z-index: 90; bottom: calc(100% + 8px); inset-inline-start: 50%;
  translate: -50% 0; width: max-content; max-width: min(260px, 80vw); padding: 8px 11px; border-radius: 6px;
  background: var(--ink); color: #fff; font: 500 12.5px/1.45 var(--font-body); text-align: start; text-transform: none; letter-spacing: 0;
  white-space: normal; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.12s ease, visibility 0s linear 0.12s;   /* leaving: gone at once */
}
html[dir="rtl"] [data-tip]::after { translate: 50% 0; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; visibility: visible; transition-delay: 0.4s, 0.4s; }   /* arriving: after a short pause */
[data-tip]:focus-visible::after { transition-delay: 0s, 0s; }
/* in the header the explanation opens downwards, and the right-most buttons keep it inside the screen */
[data-tip-pos="below"]::after { bottom: auto; top: calc(100% + 8px); }
[data-tip-align="end"]::after { inset-inline-start: auto; inset-inline-end: 0; translate: 0 0; }
html[dir="rtl"] [data-tip-align="end"]::after { translate: 0 0; }
@media (hover: none) { [data-tip]::after { display: none; } }
@media (prefers-reduced-motion: reduce) { [data-tip]::after { transition: none; } }
.ic-plus { flex-shrink: 0; }
/* Escape dismisses a shown explanation; a card's explanation also shows when the card has the keyboard focus */
html.tips-off [data-tip]::after { opacity: 0 !important; visibility: hidden !important; transition: none !important; }
.asset-tag:focus-visible .tag-cond[data-tip]::after { opacity: 1; visibility: visible; transition-delay: 0s, 0s; }

/* ---- 23-ratings.css ---- */
/* ratings: the stars next to a seller or buyer, and the stars to tap */
:root { --star: #e8a317; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink); }
.rating .star { fill: var(--star); width: 15px; height: 15px; }
.rating b { font-weight: 700; }
.rating-count { color: var(--steel); font-weight: 400; }
.rating-count::before { content: "·"; margin-inline-end: 4px; }
.rating.is-none { color: var(--steel); }
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars .star { width: 16px; height: 16px; fill: #dfe5ea; }
.stars .star.on { fill: var(--star); }

.rate-box { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.rate-box.is-done { background: var(--blue-tint); border-color: var(--blue-deep); }
.rate-title { margin: 0 0 8px; font-weight: 600; font-size: 14px; }
.rate-stars { display: flex; gap: 4px; margin-bottom: 10px; }
.rate-star { background: none; border: 0; padding: 2px; cursor: pointer; line-height: 0; border-radius: 4px; }
.rate-star .star { width: 30px; height: 30px; fill: #dfe5ea; transition: fill 0.1s; }
.rate-star .star.on { fill: var(--star); }
.rate-star:focus-visible { outline: 3px solid var(--blue); }
.rate-thanks { font-size: 13px; color: var(--steel); margin-inline-start: 8px; }
.rate-box .field-error { margin: 0 0 10px; }

.offer-card.offer-completed { border-color: var(--blue-deep); }
.offer-chip-completed { background: var(--blue-deep); color: #fff; }
.seller-note { display: block; }

.translation-note { margin-top: 12px; font-size: 13px; color: var(--steel); }

/* ---- 24-chat-dock.css ---- */
/* The chats at the bottom of every page: a bar that opens into an inbox */
.chat-dock { position: fixed; bottom: 0; inset-inline-end: 16px; z-index: 85; width: min(440px, calc(100vw - 24px)); display: flex; flex-direction: column; }
.chat-dock[hidden] { display: none; }
.dock-empty { padding: 28px 20px; text-align: center; color: var(--steel); }
.dock-me { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: var(--ink); font: 700 15px var(--font-body); }
.dock-me[hidden] { display: none; }
.dock-bar {
  height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 0; border-radius: 10px 10px 0 0;
  background: var(--ink); color: #fff; font: 600 15px var(--font-body); cursor: pointer; box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.18);
}
.dock-bar .dock-me { width: 30px; height: 30px; font-size: 13px; }
.dock-bar-title { flex: 1; text-align: start; }
.dock-unread { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--blue); color: var(--ink); font: 700 12.5px var(--font-mono); text-align: center; }
.dock-unread[hidden] { display: none; }
.dock-chevron { transition: transform 0.15s; }
.chat-dock.is-open .dock-chevron { transform: rotate(180deg); }
.dock-panel {
  display: flex; flex-direction: column; max-height: min(82vh, 680px); background: #fff; border: 1px solid var(--line); border-bottom: 0;
  border-radius: 10px 10px 0 0; overflow: hidden; box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.2);
}
.dock-panel[hidden] { display: none; }
.chat-dock.is-list .dock-panel { height: min(82vh, 600px); }
.dock-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.dock-title { flex: 1; font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-back, .dock-min { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.dock-back:hover, .dock-min:hover { background: var(--plate); }
.dock-back[hidden] { display: none; }
html[dir="rtl"] .dock-back svg { transform: scaleX(-1); }
.dock-body { overflow-y: auto; min-height: 0; flex: 1; display: flex; flex-direction: column; }
.dock-search { display: flex; align-items: center; gap: 8px; margin: 12px 14px 4px; padding: 0 12px; height: 40px; border-radius: 8px; background: #eaf0f6; color: var(--steel); }
.dock-search:focus-within { box-shadow: 0 0 0 2px var(--blue-deep); }
.dock-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 14.5px var(--font-body); color: var(--ink); }
.dock-tabs { display: flex; margin-top: 6px; border-bottom: 1px solid var(--line); }
.dock-tab { flex: 1; padding: 11px 6px; border: 0; border-bottom: 3px solid transparent; background: none; font: 600 14.5px var(--font-body); color: var(--steel); cursor: pointer; }
.dock-tab span { margin-inline-start: 4px; font: 600 12px var(--font-mono); }
.dock-tab:hover { color: var(--ink); }
.dock-tab.is-on { color: var(--ink); border-bottom-color: var(--blue-deep); }
.dock-list { display: flex; flex-direction: column; flex: 1; }
.dock-none { margin: 0; padding: 28px 18px; text-align: center; color: var(--steel); font-size: 14px; }
.dock-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: start; cursor: pointer; font: inherit; color: var(--ink); }
.dock-row:hover { background: var(--plate); }
.dock-row img, .dock-noimg { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #e6ebef; }
.dock-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dock-row-top { display: flex; align-items: baseline; gap: 10px; }
.dock-row-top strong { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-row-top time { flex-shrink: 0; font-size: 12.5px; color: var(--steel); }
.dock-row-sub { font-size: 12.5px; color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-row-msg { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--steel); }
.dock-row-msg > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-row.is-unread .dock-row-top strong { font-weight: 800; }
.dock-row.is-unread .dock-row-msg { color: var(--ink); font-weight: 600; }
.dock-row.is-unread .dock-row-top time { color: var(--blue-deep); font-weight: 600; }
.dock-dot { flex-shrink: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--blue-deep); }
.dock-body .chat { margin: 0; border: 0; border-radius: 0; flex: 1; display: flex; flex-direction: column; }
.dock-body .chat-log { flex: 1; max-height: 400px; min-height: 220px; }
@media (max-width: 600px) { .chat-dock { inset-inline: 8px; width: auto; } }
@media print { .chat-dock { display: none; } }

/* ---- 25-wanted.css ---- */
/* Wanted parts */
.wanted-form { display: block; margin-bottom: 18px; }
.wanted-form[hidden] { display: none; }
.wanted-tabs { display: flex; max-width: 420px; margin: 4px 0 14px; border-bottom: 1px solid var(--line); }
.wanted-tabs .dock-tab[hidden] { display: none; }
.wanted-card { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: start; }
.wanted-main h3 { margin: 0 0 4px; font-size: 17px; }
.wanted-main .note { margin: 6px 0; }
.wanted-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.wanted-respond { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; padding: 10px; background: var(--plate); border-radius: var(--radius); }
.wanted-respond[hidden] { display: none; }
.wanted-respond select { max-width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.wanted-matches, .wanted-nomatch { grid-column: 1 / -1; }
.wanted-matches h4 { margin: 8px 0; font-size: 14px; }
.wanted-match { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.wanted-match img, .wanted-match .dock-noimg { flex-shrink: 0; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #e6ebef; }
.wanted-respond-wrap { grid-column: 1 / -1; }
@media (max-width: 640px) { .wanted-card { grid-template-columns: 1fr; } .wanted-side { align-items: flex-start; } }
.wanted-cta { margin: 0 0 18px; }
.wanted-hint { margin: 0 0 10px; font-size: 14px; }
.wanted-hint a { color: var(--blue-deep); font-weight: 600; }
.cat-panel .cat-wanted { border-top: 1px solid var(--line); margin-top: 4px; font-weight: 700; }
.wanted-band .btn + .btn { margin-inline-start: 10px; }
.btn-outline-light { display: inline-flex; align-items: center; padding: 12px 22px; border: 1.5px solid rgba(255, 255, 255, 0.6); border-radius: var(--radius); color: #fff; font-weight: 600; text-decoration: none; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.saved-card { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; }
@media (max-width: 640px) { .saved-card { grid-template-columns: 1fr; } }
.results-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 14px; }
.results-actions .wanted-hint { margin: 0; }
.results-actions .hint { margin: 0; font-size: 13px; color: var(--steel); }
.results-actions .hint a { color: var(--blue-deep); font-weight: 600; }
.save-btn { display: inline-flex; align-items: center; gap: 7px; }
.share-toast { position: fixed; z-index: 120; bottom: 76px; inset-inline: 0; margin-inline: auto; width: max-content; max-width: 90vw; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }

/* Browse, nothing found: the message, then the two things to do about it side by side, and the toolbar and the count bar step aside */
.empty-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 30px; }
.empty-actions[hidden] { display: none; }
.empty-actions .hint { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--steel); }
.empty-actions .hint a { color: var(--blue-deep); font-weight: 600; }
.results.is-empty .wanted-hint, .results.is-empty .results-bar { display: none; }
.results.is-empty .results-actions { margin: 0; }

/* ---- 26-mobile.css ---- */
/* The phone: a top bar with the search and the saved things (and, on the home page and All parts, the category strip), a floating bar of
   tabs at the bottom (Home, Parts, Sell, Chats, Account), the chats as a full-screen sheet, and the Account screen. Above 760px none of
   this applies. --tabbar-h is the room the floating bar takes from the bottom of the screen (the bar and the gaps around it). */
:root { --tabbar-h: 78px; --hdr-h: 60px; }
.tabbar, .filter-toggle { display: none; }

@media (max-width: 760px) {
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  html { scroll-padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px); }   /* a focused field is not left behind the bar */

  /* a field with a font under 16px makes an iPhone zoom into the page when it is tapped, and leave it zoomed: every field is 16px */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="color"]), select, textarea { font-size: 16px !important; }

  /* ---- the top bar: the mark, the search, favourites, cart (the account is a tab) ---- */
  .site-header .wrap.header-row {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "logo search fav cart";
    align-items: center; gap: 0 6px; height: var(--hdr-h); min-height: 0; padding: 0 12px;
  }
  .site-header .cat-menu, .site-header .list-menu, .site-header .list-menu-mobile, .site-header .nav-list, .site-header .nav-list-mobile,
  .site-header .nav-toggle, .site-header .nav-actions .lang-switch { display: none; }
  /* the company's mark (the two circles) stays; the name does not fit */
  .site-header .header-row .logo { grid-area: logo; display: flex; align-items: center; margin-inline-end: 4px; }
  .site-header .header-row .logo-text { display: none; }
  .site-header .header-row .logo-mark { width: 40px; height: 18px; }
  .site-header .nav-actions { display: contents; }
  .site-header .account-menu { display: none; }
  .site-header .site-search { grid-area: search; height: 44px; }
  .site-header #navFav { grid-area: fav; }
  .site-header #navCart { grid-area: cart; }
  .site-header .nav-icon { width: 38px; height: 38px; }

  /* the list under the search box: under the top bar, the width of the screen, short enough to leave room for the keyboard */
  .search-suggest { position: fixed; top: calc(var(--hdr-h) + 4px); inset-inline: 8px; min-width: 0; max-height: 46vh; }

  /* ---- the bottom bar: a floating rounded bar over the page, the tab you are on lit as a soft pill ---- */
  .tabbar {
    display: flex; position: fixed; z-index: 80; inset-inline: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); height: 62px; padding: 0 6px;
    background: rgba(27, 31, 34, 0.94); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.34); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .tabbar .tab {
    position: relative; flex: 1; min-width: 0; margin: 5px 2px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; border: 0; border-radius: 22px; background: none; color: rgba(255, 255, 255, 0.72); font: 600 11px var(--font-body);
    text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .tabbar .tab svg { width: 24px; height: 24px; }
  .tabbar .tab .avatar-dot { width: 26px; height: 26px; font-size: 14px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }
  .tabbar .tab[data-tab="home"] svg { width: 32px; height: 15px; margin: 4.5px 0; }
  .tabbar .tab.is-on { background: rgba(122, 211, 255, 0.16); color: var(--blue); }
  .tabbar.sheet-open .tab:not(#tabChats) { background: none; color: rgba(255, 255, 255, 0.72); }
  html.drawer-open .tabbar .tab:not(#tabMenu) { background: none; color: rgba(255, 255, 255, 0.72); }   /* the Account screen is open: only its tab is lit */
  .tabbar .tab-sell, .tabbar .tab-sell.is-on { background: none; color: #fff; }
  .tabbar .tab-plus { width: 44px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--blue); color: var(--ink); }
  .tabbar .tab-plus svg { width: 20px; height: 20px; transition: transform 0.15s; }
  .tabbar .tab-sell[aria-expanded="true"] .tab-plus svg { transform: rotate(45deg); }
  /* the choice between one part and a list opens above the Sell tab */
  .list-sheet {
    position: fixed; top: auto; z-index: 90; inset-inline: 12px; min-width: 0;
    bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 4px);
  }
  .tab-badge { position: absolute; top: 6px; inset-inline-start: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--blue); color: var(--ink); font: 700 11px/17px var(--font-mono); font-style: normal; text-align: center; }
  .tab-badge[hidden] { display: none; }

  /* things that sat at the bottom of the screen now sit above the bar */
  .cart-bar { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .share-toast { bottom: calc(var(--tabbar-h) + 22px + env(safe-area-inset-bottom)); }

  /* ---- the chats: a full-screen sheet above the bar, opened from the Chats tab ---- */
  .chat-dock { inset-inline: 0; width: auto; top: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 85; }
  .chat-dock:not(.is-open) { display: none; }
  .chat-dock .dock-bar { display: none; }
  .chat-dock .dock-panel, .chat-dock.is-list .dock-panel { flex: 1; height: auto; max-height: none; border: 0; border-radius: 0; box-shadow: none; }
  .dock-body .chat-log { max-height: none; min-height: 0; }
  html.chat-open { overflow: hidden; }

  /* ---- All parts: the filters hide behind a button ---- */
  .filter-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .browse-layout { padding: 14px 0 40px; gap: 14px; }
  .browse-layout .filters { display: none; }
  .browse-layout .filters.is-open { display: block; }
  .browse-header { padding: 18px 0; }
}

/* ---- 27-documents.css ---- */
/* Documents on a listing: the picker on the sell form, what the AI read, and the cards on the listing page */
.doc-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.doc-list:empty { display: none; }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.doc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; }
.doc-name small { margin-inline-start: 6px; font-weight: 400; color: var(--steel); }
.doc-show { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.doc-remove { width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--steel); }
.doc-remove:hover { background: var(--plate); color: var(--ink); }
.ai-docs { margin: 6px 0 12px; padding-inline-start: 18px; font-size: 14px; }
.ai-docs li { margin-bottom: 6px; }
.doc-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc-card { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.doc-open { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.doc-open svg { color: var(--blue-deep); flex-shrink: 0; }
.doc-open:hover strong { text-decoration: underline; }
.doc-card .meta { margin-top: 4px; }
/* the bullets are drawn by the list items themselves, so a finding in English on a Hebrew page (or the other way round) keeps its bullet inside the card, at its own start */
.doc-findings { list-style: none; margin: 6px 0 0; padding: 0; font-size: 14px; color: var(--steel); }
.doc-findings li { position: relative; padding-inline-start: 18px; }
.doc-findings li::before { content: "\2022"; position: absolute; inset-inline-start: 4px; top: 0; }
@media (max-width: 640px) { .doc-row { flex-wrap: wrap; } .doc-name { flex-basis: 100%; } }

/* ---- 28-account.css ---- */
/* My account: the page with the account deletion */
.acct-shell { max-width: 720px; }
.acct-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-top: 24px; }
.acct-card h2 { margin: 0 0 8px; }
.acct-card h3 { margin: 18px 0 6px; font-size: 15px; }
.acct-card ul { margin: 0 0 12px; padding-inline-start: 20px; line-height: 1.55; }
.acct-danger { border-color: var(--oxide); }
.acct-card .hint { margin: 12px 0 18px; }
#acctDeleteForm { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.acct-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.acct-actions .btn-danger { background: var(--oxide); color: #fff; }
.acct-actions .btn-danger:disabled { opacity: .6; cursor: progress; }

/* ---- 29-bulk.css ---- */
/* Listing many parts from a spreadsheet (bulk.html) */
.bulk-text { margin: 0 0 14px; color: var(--steel); font-size: 14.5px; line-height: 1.55; }
.bulk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.bulk-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bulk-file { font-size: 14px; color: var(--steel); overflow-wrap: anywhere; }
.bulk-count { margin: 8px 0 0; font-size: 14px; font-weight: 600; }
.field .field-error[hidden], .bulk-count[hidden] { display: none; }
.bulk-summary { margin: 0 0 6px; font-weight: 600; }
.bulk-rows { list-style: none; margin: 12px 0 18px; padding: 0; display: grid; gap: 8px; max-height: 460px; overflow-y: auto; }
.bulk-row { padding: 10px 14px; border: 1px solid var(--line); border-inline-start-width: 4px; border-radius: var(--radius); background: #fff; }
.bulk-row.is-ok { border-inline-start-color: #2e8b57; }
.bulk-row.is-bad { border-inline-start-color: #c0392b; background: #fffaf9; }
.bulk-row-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-size: 14px; }
.bulk-row-head strong { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.bulk-row-no { color: var(--steel); font-size: 13px; white-space: nowrap; }
.bulk-row-meta { color: var(--steel); font-size: 13px; white-space: nowrap; }
.bulk-chip { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--plate); white-space: nowrap; }
.bulk-row.is-ok .bulk-chip { background: #e3f3ea; color: #1f6b40; }
.bulk-row.is-bad .bulk-chip { background: #fbe4e1; color: #a02a1f; }
.bulk-problems { margin: 6px 0 0; padding-inline-start: 20px; font-size: 13.5px; color: #a02a1f; }
.bulk-progress { margin-top: 16px; }
.bulk-bar { height: 8px; border-radius: 999px; background: var(--plate); overflow: hidden; }
.bulk-bar span { display: block; height: 100%; width: 0; background: var(--blue-deep); transition: width .25s; }
.bulk-failed { margin: 16px 0; }
.sell-bulk { margin: 10px 0 0; font-size: 14.5px; }
.sell-bulk a { font-weight: 600; }

/* A listing with no photos: what it says under the picture, and the way to ask for them */
.photo-ask { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--plate); }
.photo-ask-text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--steel); }
.photo-ask-text strong { color: inherit; }
.photo-ask .btn { margin-inline-start: 6px; }
.photo-ask .field-error { display: block; margin-top: 6px; }

/* Matching the file's own columns and words to ours */
.bulk-map { margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.bulk-map summary { cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: 14.5px; }
.bulk-map > .bulk-text, .bulk-map-grid { margin: 0; padding: 0 14px 12px; }
.bulk-map-grid, .bulk-map-values { display: grid; gap: 8px; }
.bulk-map-values { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--plate); }
.bulk-map-values h3 { margin: 0; font-size: 15px; }
.bulk-map-group { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: var(--steel); text-transform: uppercase; letter-spacing: .04em; }
.bulk-map-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(160px, 1.4fr); gap: 10px; align-items: center; font-size: 14px; }
.bulk-map-row span { overflow-wrap: anywhere; }
.bulk-map-row select { width: 100%; min-width: 0; }
.bulk-map-row.is-missing select { border-color: #c0392b; background: #fffaf9; }
#problemBtn { margin: 0 0 10px; }
@media (max-width: 560px) { .bulk-map-row { grid-template-columns: 1fr; gap: 4px; } }

/* ---- 30-lang-soon.css ---- */
/* "Hebrew is coming soon": the card that opens when the Hebrew flag is pressed (see showComingSoon in i18n.js) */
.soon-backdrop { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(27, 31, 34, 0.62); }
.soon-card { width: 100%; max-width: 380px; padding: 34px 28px 30px; border-radius: 10px; background: var(--ink); color: var(--paper); text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.soon-logo { margin-bottom: 22px; }
.soon-logo .logo-text { font-size: 36px; }
.soon-card h2 { margin: 0 0 10px; font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: 0.5px; color: var(--blue); }
.soon-card p { margin: 0 0 24px; color: var(--on-dark); font-size: 15.5px; line-height: 1.5; }
.soon-card .btn { justify-content: center; min-width: 140px; }

/* ---- 31-a11y.css ---- */
/* Accessibility: the skip link, the main landmark, and a visible focus ring on form fields */
.skip-link {
  position: absolute; z-index: 400; inset-inline-start: 12px; top: -80px; padding: 10px 16px; border-radius: var(--radius);
  background: var(--blue); color: var(--ink); font: 600 14px var(--font-body); text-decoration: none; transition: top 0.1s ease;
}
.skip-link:focus { top: 10px; }
main:focus { outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 3px rgba(10, 111, 166, 0.28); }

/* ---- 32-a11y-widget.css ---- */
/* The accessibility button (assets/js/a11yWidget.js) and what its choices do. The choices are classes on <html>. */

.a11y-widget { position: fixed; z-index: 95; inset-inline-start: 16px; bottom: 16px; }
.a11y-btn {
  width: 50px; height: 50px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; padding: 0;
  background: var(--blue); color: var(--ink); cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.a11y-btn:hover { background: var(--blue-hover); }
.a11y-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.a11y-panel {
  position: absolute; bottom: 62px; inset-inline-start: 0; width: 260px; padding: 14px; border-radius: 10px; background: var(--paper); color: var(--ink);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32); display: grid; gap: 8px; text-align: start;
}
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; font-size: 16px; margin-bottom: 2px; }
.a11y-close { width: 32px; height: 32px; border: 0; border-radius: 6px; background: none; color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.a11y-close:hover { background: var(--plate); }
.a11y-row { display: grid; gap: 6px; }
.a11y-row-label { font-size: 13.5px; color: var(--steel); }
.a11y-steps { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.a11y-size { min-width: 48px; text-align: center; font: 600 14px var(--font-mono); }
.a11y-opt {
  padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--paper); color: var(--ink);
  font: 600 14px var(--font-body); text-align: start; cursor: pointer;
}
.a11y-step { text-align: center; }
.a11y-opt:hover:not(:disabled) { background: var(--plate); }
.a11y-opt:disabled { opacity: 0.45; cursor: default; }
.a11y-toggle[aria-pressed="true"], .a11y-toggle[aria-pressed="true"]:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.a11y-toggle[aria-pressed="true"]::before { content: "✓ "; }
.a11y-reset { border-color: var(--line); font-weight: 500; }
.a11y-statement { display: block; padding: 6px 2px 2px; color: var(--blue-deep); font-weight: 600; font-size: 14px; }

/* above the phone's bottom bar, under its menu; not over the chats */
@media (max-width: 760px) {
  .a11y-widget { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 14px); }
  .a11y-btn { width: 46px; height: 46px; }
  .a11y-panel { bottom: 58px; }
}
html.chat-open .a11y-widget { display: none; }
/* moved down when the browser keeps measuring the screen as if the keyboard were up (see viewportFix.js) */
@media (max-width: 760px) {
  .a11y-widget { translate: 0 var(--vv-shift, 0px); }
  .tabbar { translate: 0 var(--vv-shift, 0px); }
}
.vv-debug { position: fixed; z-index: 9999; top: 0; inset-inline: 0; padding: 4px 8px; background: #000; color: #0f0; font: 11px/1.3 monospace; pointer-events: none; }

/* text size: the page is scaled, the button and its panel are not */
html.a11y-text-1 body > :not(.a11y-widget) { zoom: 1.15; }
html.a11y-text-2 body > :not(.a11y-widget) { zoom: 1.3; }
html.a11y-text-3 body > :not(.a11y-widget) { zoom: 1.5; }

/* high contrast: darker secondary text and lines, white text on the dark parts, stronger focus */
html.a11y-contrast {
  --steel: #14181a; --steel-light: #ffffff; --on-dark: #ffffff; --gray: #ffffff; --line: rgba(27, 31, 34, 0.7);
  --blue-deep: #00476f; --plate: #e4e8eb;
}
html.a11y-contrast body { color: #000; }
html.a11y-contrast :focus-visible { outline: 3px solid #000 !important; outline-offset: 2px !important; box-shadow: 0 0 0 6px #fff !important; }
html.a11y-contrast .site-header :focus-visible, html.a11y-contrast .hero :focus-visible, html.a11y-contrast .site-footer :focus-visible, html.a11y-contrast .mobile-nav :focus-visible { outline-color: #fff !important; box-shadow: 0 0 0 6px #000 !important; }

/* underline links */
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; text-decoration-thickness: 2px; }
html.a11y-links .btn, html.a11y-links .logo { text-decoration: none !important; }

/* no animations or transitions */
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* plain font */
html.a11y-font *:not(svg):not(svg *) { font-family: Arial, "Segoe UI", Helvetica, sans-serif !important; letter-spacing: 0 !important; }

/* ---- 33-phone-nav.css ---- */
/* The Account screen (the old drawer): a light page with the person at the top, then lists in rounded cards. And the category strip
   under the phone's top bar. The floating tab bar is in 26-mobile.css. */

.mobile-nav { background: var(--plate); color: var(--ink); z-index: 79; padding: 0 0 calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 20px); overflow-y: auto; }
.mobile-nav-top { margin: 0 0 16px; padding: 12px 16px; background: var(--ink); }
.mobile-nav .mobile-nav-top .logo-mark { width: 40px; height: 18px; }
.mobile-nav .mobile-nav-top .logo-text { font-size: 26px; }

.me-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 14px; margin: 0 16px; padding: 18px; border-radius: 18px; background: var(--paper); }
.me-avatar { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-tint); color: var(--blue-deep); font: 700 24px var(--font-body); }
.me-avatar svg { width: 28px; height: 28px; }
.me-who { min-width: 0; display: grid; gap: 2px; }
.me-who strong { font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.me-who span { font-size: 13.5px; line-height: 1.4; color: var(--steel); overflow-wrap: anywhere; }
.me-signin { grid-column: 1 / -1; justify-content: center; padding: 14px 20px; border-radius: 14px; font-size: 15px; }
.me-signin[hidden] { display: none; }
.me-label { margin: 22px 20px 8px; font: 700 12px var(--font-mono); letter-spacing: 0.6px; text-transform: uppercase; color: var(--steel); }
.me-list { list-style: none; margin: 0 16px; padding: 0; overflow: hidden; border-radius: 18px; background: var(--paper); }
.me-list a { display: flex; align-items: center; gap: 14px; padding: 15px 18px; color: var(--ink); font: 500 16px var(--font-body); text-decoration: none; border-bottom: 1px solid var(--line); }
.me-list li:last-child a, .me-list li:last-child > a { border-bottom: 0; }
.me-list a[hidden] { display: none; }
.me-list a:active { background: var(--plate); }
.me-ic { flex-shrink: 0; width: 24px; height: 24px; color: var(--blue-deep); }
.me-primary a { background: var(--blue); font-weight: 700; }
.me-primary a .me-ic { color: var(--ink); }
.mobile-nav .drawer-cats { margin: 0 16px; padding: 0; overflow: hidden; border: 0; border-radius: 18px; background: var(--paper); }
.mobile-nav .drawer-cats a { padding: 14px 18px; color: var(--ink); font: 500 16px var(--font-body); border-bottom: 1px solid var(--line); }
.mobile-nav .drawer-cats a:last-child { border-bottom: 0; }
.mobile-nav .drawer-cats a svg { color: var(--blue-deep); }
.me-cur { margin: 0 16px; }
.me-cur select { width: 100%; padding: 14px 16px; border: 0; border-radius: 18px; background: var(--paper); color: var(--ink); font: 500 16px var(--font-body); }
.me-signout { display: block; width: calc(100% - 32px); margin: 18px 16px 0; padding: 14px; border: 1.5px solid var(--ink); border-radius: 14px; background: transparent; color: var(--ink); font: 600 15px var(--font-body); cursor: pointer; }
.me-signout[hidden] { display: none; }
.mobile-nav .lang-switch-drawer { margin: 22px 16px 0; justify-content: center; }
html.drawer-open .a11y-widget { display: none; }

/* the category strip: chips with an icon, one row you can slide sideways; one row of words once the page is scrolled */
.cat-strip { display: none; }
@media (max-width: 760px) {
  html, body { overflow-anchor: none; }   /* the strip changing height must not push the scroll position */
  .cat-strip:not([hidden]) { display: block; border-top: 1px solid rgba(255, 255, 255, 0.08); background: var(--ink); }
  .cat-strip-list { display: flex; gap: 8px; margin: 0; padding: 8px 12px 10px; list-style: none; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cat-strip-list::-webkit-scrollbar { display: none; }
  .cat-strip a { flex: 0 0 auto; min-width: 68px; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 10px; border-radius: 14px; color: var(--on-dark); font: 600 12px var(--font-body); text-decoration: none; white-space: nowrap; }
  .cat-strip a svg { width: 26px; height: 26px; color: var(--blue); }
  .cat-strip a[aria-current="true"] { background: rgba(122, 211, 255, 0.16); color: #fff; box-shadow: inset 0 -2px 0 var(--blue); }
  .cat-strip.is-compact .cat-strip-list { padding-top: 4px; padding-bottom: 8px; }
  .cat-strip.is-compact a { flex-direction: row; min-width: 0; padding: 7px 14px; border-radius: 999px; }
  .cat-strip.is-compact a svg { display: none; }
}
html.a11y-contrast .me-who span, html.a11y-contrast .me-label { color: var(--ink); }

/* a page without the bottom bar (the sign-in page): nothing is left for it, and nothing sits above it */
html.no-tabbar { --tabbar-h: 0px; }
html.no-tabbar #tabBar { display: none; }
html.no-tabbar .a11y-widget { bottom: 16px; }

/* ---- 34-search-screen.css ---- */
/* The phone's full-screen search (assets/js/searchScreen.js). Above 760px it is not there. */
.search-screen { display: none; }
html.search-open { overflow: hidden; }
html.search-open .a11y-widget { display: none; }
@media (max-width: 760px) {
  .search-screen:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 120; overflow-y: auto; background: var(--paper); color: var(--ink); padding-bottom: 32px; }
  .search-screen-form { position: sticky; top: 0; z-index: 2; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .ss-row { display: flex; align-items: center; gap: 8px; }
  .ss-back, .ss-go { flex-shrink: 0; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; }
  .ss-back { background: var(--plate); color: var(--ink); }
  .ss-go { background: var(--blue); color: var(--ink); }
  html[dir="rtl"] .ss-arrow { transform: scaleX(-1); }
  #searchScreenInput { flex: 1; min-width: 0; height: 46px; padding: 0 18px; border: 2px solid var(--line); border-radius: 999px; background: var(--plate); color: var(--ink); font: 400 16px var(--font-body); }
  #searchScreenInput:focus { outline: none; border-color: var(--blue-deep); background: var(--paper); box-shadow: 0 0 0 3px rgba(10, 111, 166, 0.2); }
  .search-screen .search-suggest { position: static; width: auto; max-height: none; margin: 10px 0 0; box-shadow: none; border: 1px solid var(--line); }
  .search-screen-body { padding: 4px 16px 0; }
  .search-screen-body section { padding: 0; margin: 0; }
  .ss-h { margin: 22px 0 10px; padding: 0; font: 700 12px var(--font-mono); letter-spacing: 0.6px; text-transform: uppercase; color: var(--steel); }
  .search-screen-body section:first-child .ss-h { margin-top: 14px; }
  .ss-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
  .ss-chips a { display: inline-block; padding: 11px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: 500 15px var(--font-body); text-decoration: none; }
  .ss-chips a:active { background: var(--plate); }
  .ss-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
  .ss-tiles a { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 12px 14px; border-radius: 16px; background: var(--plate); color: var(--ink); font: 600 15px var(--font-body); text-decoration: none; }
  .ss-tiles a:active { background: var(--plate-dim); }
  .ss-tiles svg { flex-shrink: 0; width: 32px; height: 32px; color: var(--blue-deep); }
  .ss-tile-text { min-width: 0; display: grid; gap: 2px; line-height: 1.25; }
  .ss-count { font: 500 12px var(--font-body); color: var(--steel); }
  .ss-count[hidden] { display: none; }
}

/* what a loosely typed search was understood as (the All parts page) */
.query-note { margin: -6px 0 18px; font-size: 14.5px; color: var(--steel); }
.query-note a { margin-inline-start: 8px; color: var(--blue-deep); font-weight: 600; }
.query-note[hidden] { display: none; }

/* ---- 35-home-rows.css ---- */
/* The home page's rows that slide sideways (assets/js/home.js). The next card is cut off at the edge, to say there is more. */
.home-rows { display: block; }
.hrow { margin: 0 0 12px; padding: 0; }
.hrow:last-child { margin-bottom: 0; }
.hrow-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.hrow-text { min-width: 0; }
.hrow-text h3 { margin: 0; font: 700 22px/1.2 var(--font-body); color: var(--ink); }
.hrow-text p { margin: 4px 0 0; font-size: 14.5px; color: var(--steel); }
.hrow-arrows { display: flex; flex-shrink: 0; gap: 8px; }
.hrow.is-short .hrow-arrows { display: none; }
.hrow-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; }
.hrow-btn:hover:not(:disabled) { background: var(--plate); }
.hrow-btn:disabled { opacity: 0.35; cursor: default; }
/* the icon points right: the back arrow is turned to point left, and in Hebrew (right to left) it is the other way round */
.hrow-btn[data-dir="-1"] svg { transform: scaleX(-1); }
html[dir="rtl"] .hrow-btn[data-dir="-1"] svg { transform: none; }
html[dir="rtl"] .hrow-btn[data-dir="1"] svg { transform: scaleX(-1); }
.hrow-track { display: flex; gap: 22px; margin: 0; padding: 10px 8px 34px; scroll-padding-inline: 8px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hrow-track::-webkit-scrollbar { display: none; }
.hrow-track > li { flex: 0 0 min(300px, 74vw); scroll-snap-align: start; min-width: 0; }
.hrow-track .card-wrap { height: 100%; }
@media (max-width: 760px) {
  .hrow-arrows { display: none; }   /* on a phone the cut-off card says it slides */
  .hrow-text h3 { font-size: 20px; }
  .hrow-text p { font-size: 13.5px; }
  .hrow-track { margin-inline: -24px; padding-inline: 24px; scroll-padding-inline: 24px; }   /* the cards slide edge to edge */
}

/* ---- 36-wide-screens.css ---- */
/* Big screens: the page spreads over more of the width (like the large marketplaces), the top bar with it, and the lists get more
   columns, so the cards stay the same size instead of being stretched. Text pages keep their own narrow column (readable lines). */
@media (min-width: 1360px) {
  :root { --container: 1320px; }
  .listing-grid { grid-template-columns: repeat(4, 1fr); }
  .browse-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1700px) {
  :root { --container: 1560px; }
  .listing-grid { grid-template-columns: repeat(5, 1fr); }
  .browse-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 2100px) {
  :root { --container: 1800px; }
  .browse-grid { grid-template-columns: repeat(6, 1fr); }
}

/* The top bar spreads over the whole width of the screen (the search box takes what is left), while the page below keeps its own width. */
@media (min-width: 1360px) {
  .site-header .wrap, .site-header .wrap.header-row { max-width: none; padding-inline: 28px; }
}

/* ---- 37-cards.css ---- */
/* The listing card, everywhere: the same card shape whatever the title's length, with the place always at the bottom (a hairline and a
   small pin, at the start of the line), and on a phone two compact cards in a row (the picture a square, the text smaller), like the big
   marketplaces' apps, instead of one card as tall as the screen. */
.card-wrap > .asset-tag { display: flex; flex-direction: column; }
.card-wrap .tag-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.card-wrap .tag-body h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.card-wrap .tag-place {
  margin: auto 0 0; padding-top: 12px; justify-content: flex-start; border-top: 1px solid var(--line);
}
.card-wrap .tag-place .tag-loc {
  display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-wrap .tag-place .tag-loc::before {
  content: ""; flex: 0 0 auto; width: 13px; height: 13px; background-color: var(--steel);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.1-7-11a7 7 0 0 1 14 0c0 4.9-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.1-7-11a7 7 0 0 1 14 0c0 4.9-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 480px) {
  .listing-grid, .browse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  /* the home page's rows slide sideways: the same compact card, about half the screen wide, a little of the next one showing */
  .hrow-track { gap: 12px; padding-bottom: 22px; }
  .hrow-track > li { flex: 0 0 min(160px, 41vw); }
  :is(.browse-grid, .listing-grid, .hrow-track) .asset-tag { border-radius: 14px; box-shadow: 0 2px 10px rgba(27, 31, 34, 0.08); }
  :is(.browse-grid, .listing-grid, .hrow-track) .tag-media { aspect-ratio: 1 / 1; }
  :is(.browse-grid, .listing-grid, .hrow-track) .tag-body { padding: 10px 10px 11px; }
  :is(.browse-grid, .listing-grid, .hrow-track) .tag-meta { flex-wrap: wrap; gap: 4px 6px; margin-bottom: 6px; align-items: flex-start; }
  :is(.browse-grid, .listing-grid, .hrow-track) .tag-price { font-size: 17px; }
  :is(.browse-grid, .listing-grid, .hrow-track) .tag-cond-col { flex-direction: row; align-items: center; gap: 5px; flex-wrap: wrap; }
  :is(.browse-grid, .listing-grid, .hrow-track) .tag-cond { padding: 2px 8px; font-size: 11.5px; border-radius: 6px; }
  :is(.browse-grid, .listing-grid, .hrow-track) .tag-insp { font-size: 11px; }
  :is(.browse-grid, .listing-grid, .hrow-track) .tag-brand { margin-bottom: 3px; font-size: 11.5px; }
  :is(.browse-grid, .listing-grid, .hrow-track) .tag-body h3 { font-size: 14px; margin: 0 0 8px; line-height: 1.3; }
  :is(.browse-grid, .listing-grid, .hrow-track) .card-wrap .tag-place { padding-top: 7px; }
  :is(.browse-grid, .listing-grid, .hrow-track) .tag-loc { font-size: 11.5px; }
}

/* ---- 38-phone.css ---- */
/* The phone, second pass. (1) The bottom bar: every icon takes the same 30px, so the labels under them are on one line (the Sell tab's
   button is taller than the other icons, which used to push its label lower). (2) The category tiles on the home page: two squares in a row,
   everything centered in each. */
@media (max-width: 760px) {
  .tabbar .tab svg { margin-block: 3px; }
  .tabbar .tab[data-tab="home"] svg { margin: 7.5px 0; }
  .tabbar .tab .avatar-dot { margin-block: 2px; }
  .tabbar .tab-plus { margin-block: 0; }
  .tabbar .tab > span:last-child { line-height: 14px; white-space: nowrap; }
}
@media (max-width: 720px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat-tag { aspect-ratio: 1 / 1; padding: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
  .cat-tag svg { width: 38px; height: 38px; margin: 0 0 12px; }
  .cat-tag h3 { font-size: 16px; }
}
@media (display-mode: standalone) {
  html { touch-action: manipulation; }   /* no double-tap zoom in the installed app */
}
/* the Account screen: the language flags at the top, in the place of the close button (closing: the Account tab, or Escape) */
@media (max-width: 760px) {
  .mobile-nav .mobile-nav-close { display: none; }
  .mobile-nav-top .lang-switch-drawer { margin: 0; gap: 12px; }
  .mobile-nav-top .lang-switch-drawer .lang-btn svg { width: 32px; height: 22px; }
}

/* ---- 39-stage.css ---- */
/* ==========================================================================
   Home stage: the full-width opening with four short films, one for each step of a part's second life
   (Sell, Find, Inspect, Ship). Video, shade, then the words at the reading side (left in English, right in Hebrew),
   the categories under them, and a small row of four progress bars at the bottom.
   ========================================================================== */
.stage {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(560px, calc(100svh - 190px), 760px);   /* leaves the top of the next section in view, an invitation to scroll */
  padding: 0;
  background: #0b0f12;
  color: #fff;
  overflow: hidden;
}

/* the films: one on top of the other, the current one fades in (and settles from a slight zoom) */
.stage-media { position: absolute; inset: 0; z-index: -2; }
.stage-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.9s ease, transform 9s linear;
}
.stage-video.is-on { opacity: 1; transform: scale(1); }

/* the shade keeps the words readable on any frame: dark on the left, darker at the bottom */
.stage-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(8, 12, 15, 0.9) 0%, rgba(8, 12, 15, 0) 42%),
    linear-gradient(90deg, rgba(8, 12, 15, 0.9) 0%, rgba(8, 12, 15, 0.66) 40%, rgba(8, 12, 15, 0.2) 78%, rgba(8, 12, 15, 0.1) 100%);
}

.stage-inner { width: 100%; padding-top: 72px; padding-bottom: 30px; display: grid; gap: 30px; }
.stage-copy { max-width: 780px; }

/* the words: the slides sit in one grid cell, so the block never changes height */
.stage-slides { display: grid; }
.stage-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0s linear 0.55s;
}
.stage-slide.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0.25s, 0.25s, 0s;
}

.stage-h {
  margin: 16px 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 8vw, 112px);
  line-height: 0.92;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.stage-h em { font-style: normal; color: var(--blue); }

.stage-sub { margin: 0 0 24px; max-width: 600px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: #e7eef3; }

.stage-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; }
.stage-link {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.stage-link:hover { color: var(--blue); }

/* the categories, as links: one tap to the part families people look for most */
.stage-cats { display: flex; flex-wrap: wrap; gap: 8px; max-width: 780px; }
.stage-cats a {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(8, 12, 15, 0.45);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.stage-cats a:hover { background: var(--blue); border-color: var(--blue); color: var(--ink); }
.stage-cats a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.stage-cats .stage-cats-all { border-color: var(--blue); color: var(--blue); }

/* four steps, each with a bar that fills while its film plays; the last control stops everything */
.stage-controls { display: flex; align-items: flex-end; gap: 14px; max-width: 460px; }
.stage-steps { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.stage-step {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: #c8d4dd;
  text-align: start;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.stage-step:hover, .stage-step.is-on { color: #fff; }
.stage-track { display: block; height: 2px; margin-bottom: 8px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.stage-track i { display: block; width: 0; height: 100%; background: var(--blue); }
.stage-step.is-done .stage-track i { width: 100%; }
.stage-step.is-on .stage-track i { animation: stageFill var(--ms, 8000ms) linear forwards; }
@keyframes stageFill { to { width: 100%; } }
.stage.is-paused .stage-step.is-on .stage-track i { animation-play-state: paused; }
.stage-step:focus-visible, .stage-pause:focus-visible, .stage-link:focus-visible, .stage-actions .btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.stage-pause {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(8, 12, 15, 0.45);
  color: #fff;
  cursor: pointer;
}
.stage-pause:hover { background: rgba(255, 255, 255, 0.16); }
.stage-pause svg { width: 12px; height: 12px; fill: currentColor; }
.stage-pause .i-play { display: none; }
.stage.is-userpaused .stage-pause .i-pause { display: none; }
.stage.is-userpaused .stage-pause .i-play { display: block; }

@media (max-width: 720px) {
  .stage { min-height: clamp(520px, calc(100svh - 300px), 640px); }
  .stage-inner { padding-top: 48px; padding-bottom: 22px; gap: 22px; }
  .stage-h { font-size: clamp(40px, 12.5vw, 64px); margin: 12px 0 14px; }
  .stage-sub { font-size: 16px; margin-bottom: 18px; }
  .stage-shade { background: linear-gradient(0deg, rgba(8, 12, 15, 0.92) 0%, rgba(8, 12, 15, 0.55) 55%, rgba(8, 12, 15, 0.45) 100%); }
  .stage-controls { gap: 12px; max-width: none; }
  .stage-step { font-size: 10px; letter-spacing: 0.08em; }
  .stage-cats { display: none; }   /* the phone has its own category strip under the header */
}

@media (prefers-reduced-motion: reduce) {
  .stage-slide, .stage-video { transition: none; transform: none; }
  .stage-step.is-on .stage-track i { animation: none; width: 100%; }
}
html.a11y-contrast .stage-shade { background: rgba(0, 0, 0, 0.78); }

/* Hebrew: the page is right to left, so the words sit on the right and the shade is darkest there */
html[lang="he"] .stage-shade {
  background:
    linear-gradient(0deg, rgba(8, 12, 15, 0.9) 0%, rgba(8, 12, 15, 0) 42%),
    linear-gradient(270deg, rgba(8, 12, 15, 0.9) 0%, rgba(8, 12, 15, 0.66) 40%, rgba(8, 12, 15, 0.2) 78%, rgba(8, 12, 15, 0.1) 100%);
}
html[lang="he"] .stage-h { letter-spacing: 0; line-height: 1; }
html[lang="he"] .stage-step { letter-spacing: 0.04em; font-family: var(--font-body); font-size: 12px; text-transform: none; }
@media (max-width: 720px) {
  html[lang="he"] .stage-shade { background: linear-gradient(0deg, rgba(8, 12, 15, 0.92) 0%, rgba(8, 12, 15, 0.55) 55%, rgba(8, 12, 15, 0.45) 100%); }
}
/* Hebrew: the films are mirrored, so the people and the machines stay on the side the words are not on */
html[lang="he"] .stage-video { transform: scale(-1.05, 1.05); }
html[lang="he"] .stage-video.is-on { transform: scale(-1, 1); }
@media (prefers-reduced-motion: reduce) { html[lang="he"] .stage-video, html[lang="he"] .stage-video.is-on { transform: scale(-1, 1); } }

/* The pause button is not shown: it is there for the keyboard (it appears when it gets the focus) and for screen readers */
.stage-pause:not(:focus-visible) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- 40-camera.css ---- */
/* ==========================================================================
   The camera screen of the sell form (assets/js/cameraCapture.js): the live picture on the whole screen,
   corner marks for the part, a line about what to shoot next, a round shutter, and what has been taken.
   ========================================================================== */
html.cam-open { overflow: hidden; }
.cam { position: fixed; inset: 0; z-index: 5000; background: #000; color: #fff; overflow: hidden; }
.cam-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }

/* four corner marks around the middle of the picture: the part goes inside them */
.cam-guide { position: absolute; inset: 22% 10% 26%; pointer-events: none; }
.cam-guide i { position: absolute; width: 34px; height: 34px; border: 0 solid rgba(255, 255, 255, 0.9); }
.cam-guide i:nth-child(1) { top: 0; inset-inline-start: 0; border-top-width: 3px; border-inline-start-width: 3px; border-start-start-radius: 8px; }
.cam-guide i:nth-child(2) { top: 0; inset-inline-end: 0; border-top-width: 3px; border-inline-end-width: 3px; border-start-end-radius: 8px; }
.cam-guide i:nth-child(3) { bottom: 0; inset-inline-start: 0; border-bottom-width: 3px; border-inline-start-width: 3px; border-end-start-radius: 8px; }
.cam-guide i:nth-child(4) { bottom: 0; inset-inline-end: 0; border-bottom-width: 3px; border-inline-end-width: 3px; border-end-end-radius: 8px; }

.cam-hint {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  inset-inline: 64px;
  margin: 0;
  padding: 9px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 14.5px;
  line-height: 1.35;
  text-align: center;
}
.cam-close {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  inset-inline-start: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.cam-bar {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
}
.cam-thumbs { display: flex; flex-wrap: wrap; align-content: center; align-items: center; gap: 6px; min-height: 48px; }
.cam-thumbs img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; border: 2px solid #fff; }
.cam-count { order: -1; flex-basis: 100%; white-space: nowrap; font-size: 13px; font-weight: 600; }
.cam-shutter {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 4px #000;
  cursor: pointer;
}
.cam-shutter:active { background: var(--blue); }
.cam-shutter:disabled { opacity: 0.35; cursor: default; }
.cam-done {
  justify-self: end;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
.cam button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cam-flash.on { animation: camFlash 0.28s ease-out; }
@keyframes camFlash { from { opacity: 0.85; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cam-flash.on { animation: none; } }

/* The phone on its side: the buttons in a column at the narrow end, where the thumb is, like in a camera app. The side is the phone's
   own bottom (.cam-bottom-left when that is on the left). These are real screen sides, the same in Hebrew. */
@media (orientation: landscape) and (max-height: 600px) {
  .cam .cam-bar {
    top: 0; bottom: 0; right: 0; left: auto;
    width: 124px;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto 1fr;
    justify-items: center;
    padding: 12px max(12px, env(safe-area-inset-right)) 12px 12px;
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
  }
  .cam .cam-thumbs { align-self: start; justify-content: center; }
  .cam .cam-count { text-align: center; }
  .cam .cam-done { align-self: end; justify-self: center; }
  .cam .cam-close { left: max(10px, env(safe-area-inset-left)); right: auto; }
  .cam .cam-hint { left: 66px; right: 136px; }
  .cam .cam-guide { inset: 20% 150px 8% 12%; }
  .cam.cam-bottom-left .cam-bar { left: 0; right: auto; padding: 12px 12px 12px max(12px, env(safe-area-inset-left)); background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0)); }
  .cam.cam-bottom-left .cam-close { right: max(10px, env(safe-area-inset-right)); left: auto; }
  .cam.cam-bottom-left .cam-hint { left: 136px; right: 66px; }
  .cam.cam-bottom-left .cam-guide { inset: 20% 12% 8% 150px; }
}
