/* The landing's stylesheet: every rule of the page except the first screen's (theme tokens, header, hero, the reveal bound), which stay in the
   page's own <style> so the first paint needs no request. The page names this file with ?v=<build id>: one name per deploy, cached for a year;
   the rules read the root attributes the page's head script sets (data-variant, data-cards, data-cards-block, data-theme, ...), so one file serves every visitor. */
html.embed .footer { display: none; }

/* ── Verticals: one card per vertical of body[data-verticals]; side by side from 900px ── */
.verticals { padding: 8px 0 0; }
.verticals__grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .verticals__grid { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); } }
.vertical {
  border: 1px solid rgba(166,138,78,.25); /* --gold at .25 where color-mix is missing */
  border: 1px solid color-mix(in srgb, var(--gold) 25%, transparent);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  background: var(--bg-card);
}
.vertical__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 8px;
}
html:is([data-variant="c"], [data-variant="d"], [data-variant="e"], [data-variant="f"], [data-variant="g"], [data-variant="h"], [data-variant="i"], [data-variant="j"]) .cblock { display: block; }
html.embed :is(.cblock--trust, .why) { display: none; }
html:is([data-variant="c"], [data-variant="d"], [data-variant="e"], [data-variant="f"], [data-variant="g"], [data-variant="h"], [data-variant="i"], [data-variant="j"]) :is(.dirs, .auctions, .why) { display: none; }
html:is([data-variant="f"], [data-variant="g"], [data-variant="h"], [data-variant="i"], [data-variant="j"]) .dir__go { background: rgba(255,255,255,.92); border-color: transparent; color: var(--gold); box-shadow: 0 2px 8px rgba(16,42,82,.12); }
html:is([data-variant="f"], [data-variant="g"], [data-variant="h"], [data-variant="i"], [data-variant="j"]) :is(.lot-skeleton__image, .lot-skeleton__line) { background: var(--border); }
/* j and d: less air between the categories and the fresh listings and inside their header */
html:is([data-variant="j"], [data-variant="d"]) .fresh { padding-top: clamp(24px, 4vw, 40px); }
html:is([data-variant="j"], [data-variant="d"]) .section-header { gap: 4px 24px; margin-bottom: 16px; }
/* the fresh listings header sits above the categories, the cards follow the categories (?fhead=under keeps the header below them) */
html[data-fhead="top"] .cblock .section-header { margin-top: 12px; }
html[data-fhead="top"]:has(.fresh[hidden]) .cblock .section-header { display: none; }
/* no listings ⇒ the section is hidden, and its header with it */
html[data-fhead="top"] .fresh { padding-top: 12px; }
/* d: the «all» link under the fresh header sits close to it (6px from the title, half the former 12) with less air above and below its line;
   the hit-slop keeps the tap box the old 38px. With the buttons under the cards, the header sits 24px under the search form (two thirds of 36) */
html[data-variant="d"] .section-header { row-gap: 0; margin-bottom: 8px; }
html[data-variant="d"] .section-header__link { padding: 6px 0 4px; position: relative; }
html[data-variant="d"] .section-header__link::after { content: ""; position: absolute; inset: -2px 0 -5px; }
html[data-variant="d"][data-fhead="top"][data-actions-under] .cblock .section-header { margin-top: 0; }
/* the pairs wrap as whole units with a gap between them, so no separator can start or end a line */
.counts-kinds { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0 14px; }
.counts-kind { white-space: nowrap; }
/* the type shrinks with the phone so the longest row (vi «Tp Hồ Chí Minh» + five numbers) stays one line at 320 */
.counts-table { display: inline-grid; grid-template-columns: auto repeat(5, auto); gap: 2px clamp(5px, 2vw, 10px); font-size: clamp(11px, 3.3vw, 13px); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.counts-table > [role="row"] { display: contents; }
.counts-table [role="rowheader"] { text-align: left; }
.counts-table [role="columnheader"] { font-size: .92em; font-weight: 400; opacity: .75; }
html[data-variant="j"][data-theme="dark"] .dir__go { background: rgba(6,18,20,.82); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
@media (max-width: 480px) {
/* under the rail the buttons end the block: the count that used to space them from the categories is not drawn */
  html[data-variant="j"][data-fhead="top"] .cblock:has(> .container > .section-header) { padding-top: 0; }
  html[data-variant="j"] .cblock .section-header { gap: 4px 12px; }
  html[data-variant="j"] .cblock .section-header__title { font-size: clamp(14px, 4.6vw, 20px); white-space: nowrap; }
  html[data-variant="j"] .cblock .section-header__link { font-size: 13px; letter-spacing: .02em; text-transform: none; white-space: nowrap; color: var(--text-muted); border-bottom: 0; padding: 14px 0; margin: -14px 0; }
/* the padding keeps a 44 px tap height, the negative margin keeps the row as high as its heading */
  html[data-variant="j"] .cblock .fresh-all__text { display: none; }
  html[data-variant="j"] .cblock .fresh-all__count { display: inline; }
  html[data-variant="j"] .cblock .fresh-all__count b { font-weight: 600; color: var(--gold); }
  html[data-variant="j"][data-post="fresh"] .cblock .fresh-post { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin: -12px 0 4px; font-family: var(--font-body); font-weight: 500; font-size: 14px; color: var(--gold); }
  html[data-variant="j"][data-post="fresh"] .cblock .fresh-post svg { flex: none; width: 16px; height: 16px; }
}
.cblock { padding-top: 12px; }
.auc__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ctrust { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
@media (min-width: 768px) { .ctrust { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.ctrust__card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; }
.ctrust__card img { flex: none; width: 68px; height: 68px; }
.ctrust__title { font-family: var(--font-heading); font-weight: 600; font-size: 15px; line-height: 1.2; margin: 0 0 4px; color: var(--text); text-transform: uppercase; letter-spacing: .02em; }
.ctrust__text { font-size: 13px; line-height: 1.45; color: var(--text-muted); }
/* Partnership contacts under the trust cards. Phone: lead line, then each link on its own 44.8 px row (the row IS the hit area, so stacked links never overlap).
   From 768 px: one line, links keep the same hit height through padding + negative margin, «·» between them. */
.partners { display: flex; flex-direction: column; align-items: center; margin: 12px 0 0; padding: 12px 16px 0; border-radius: 18px; font-size: 13px; line-height: 1.45; color: var(--text-muted); text-align: center; }
.partners a { display: inline-block; padding: 13px 4px; color: var(--text); white-space: nowrap; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
.partners__dot { display: none; }
@media (min-width: 768px) {
  .partners { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 8px; padding: 12px 16px; }
  .partners a { margin: -13px -4px; }
  .partners__dot { display: inline; }
}
.cguide { position: relative; display: grid; grid-template-columns: 1fr 52%; align-items: center; min-height: 120px; margin-top: 12px; border-radius: 18px; overflow: hidden; color: var(--text); }
.cguide__body { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.cguide__pin { flex: none; width: 40px; height: 40px; color: var(--gold); }
.cguide__title { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 16px; line-height: 1.2; text-transform: uppercase; letter-spacing: .02em; }
.cguide__text { display: block; margin-top: 4px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.cguide { overflow: hidden; }
.cguide::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(270deg, rgba(5,5,5,0) 24%, rgba(5,5,5,.55) 52%, rgba(5,5,5,.88) 100%); }
.cguide__body { position: relative; z-index: 1; }
.cguide .dir__go { z-index: 1; }
.cguide .dir__go { right: 14px; bottom: auto; top: 50%; transform: translateY(-50%); }
.dir__label span { min-width: 0; overflow-wrap: anywhere; }
/* the concept's card surface: dark glass, thin gold rim, faint gold glow */
.glass {
  border: 1px solid rgba(217,195,132,.42);
  background: linear-gradient(180deg, rgba(255,255,255,.055) 0, rgba(255,255,255,.015) 100%), #0b0b0c;
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 14px 34px rgba(0,0,0,.5), 0 0 28px rgba(217,195,132,.07), inset 0 1px 0 rgba(255,255,255,.06);
}
/* gold medallion around a glyph (trust cards) */
.medal {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(217,195,132,.7);
  background: radial-gradient(circle at 50% 35%, rgba(217,195,132,.22) 0, rgba(217,195,132,.04) 70%, transparent 100%);
  box-shadow: 0 0 0 4px rgba(217,195,132,.08), 0 0 18px rgba(217,195,132,.18);
}
.medal svg { width: 26px; height: 26px; color: var(--gold); }

/* ── Directions: four tall tiles, art on top, label at the bottom, round chevron (concept row 1) ── */
.dirs { padding: 8px 0 0; }
.dirs__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 720px) { .dirs__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.dir {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 1 / 1.1;
  border-radius: 18px;
  overflow: hidden;
  color: var(--text);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
/* a tile that is not open yet: dimmed, not a link, no hover lift */
.dir--inactive { opacity: .45; pointer-events: none; cursor: default; }
.dir__art {
  position: absolute; inset: 0;
  background-repeat: no-repeat; background-size: cover;
  display: flex; align-items: center; justify-content: center;
}
/* housing and exchange have no render: their glyph sits on a gold glow */
.dir--exchange .dir__art, .dir--housing .dir__art { background-image: radial-gradient(60% 50% at 50% 38%, rgba(217,195,132,.14) 0, rgba(217,195,132,0) 100%); padding-bottom: 28%; }
.dir__glyph { width: 40%; max-width: 64px; height: auto; color: var(--gold); }
.dir__label {
  position: relative;
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 52px 14px 14px;
  font-family: var(--font-heading); font-weight: 600; font-size: 14px; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .02em;
}
.dir__label b { font-family: var(--font-mono); font-weight: 500; font-size: 12px; color: var(--gold); text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums; min-height: 1em; }
.dir__go {
  position: absolute; right: 12px; bottom: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1; padding-bottom: 2px;
  background: rgba(5,5,5,.5);
}
@media (max-width: 480px) { .dir__label { font-size: 12px; padding: 10px 44px 12px 12px; } .dir__go { width: 28px; height: 28px; font-size: 18px; right: 10px; bottom: 10px; } }
@media (max-width: 340px) { .dir__label { font-size: 10px; padding-right: 38px; } .dir__label span { overflow-wrap: normal; } .dir__go { width: 24px; height: 24px; font-size: calc(18px * 24 / 28); } }

/* ── Auctions: two wide cards, art left, text right (concept row 2) ── */
.auctions { padding: 12px 0 0; }
.auctions__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 720px) { .auctions__grid { grid-template-columns: 1fr; gap: 10px; } }
.auc {
  position: relative;
  display: grid; grid-template-columns: 42% 1fr; align-items: center;
  min-height: 150px;
  border-radius: 18px;
  overflow: hidden;
  color: var(--text);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.auc:hover { transform: translateY(-3px); }
.auc__art { align-self: stretch; background-repeat: no-repeat; background-size: 230% auto; }
.auc__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 56px 18px 16px; }
.auc__title { font-family: var(--font-heading); font-weight: 600; font-size: 16px; line-height: 1.2; text-transform: uppercase; letter-spacing: .02em; }
.auc__text { font-size: 13px; color: var(--text-muted); }

/* ── Fresh listings: 24 cards of the app's listing tile, six across on desktop, three on a phone ── */
.fresh { padding: 56px 0 16px; }
.fresh__more { display: flex; justify-content: center; margin-top: 16px; }
.fresh__more-btn { min-width: 220px; }
.fresh__more-btn[hidden] { display: none; }
/* the shared .hero__cta display would otherwise win over the hidden attribute */
.fresh__more-btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
html.embed .fresh__more { display: none; }
/* dense grid: more fresh listings, a finer grid; the gap between its tiles is the board's (board-grid.css --board-gap), on the
   public page and inside the app alike */
.fresh .lots__grid { grid-template-columns: repeat(6, 1fr); gap: var(--board-gap); }
@media (max-width: 1200px) { .fresh .lots__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) { .fresh .lots__grid { grid-template-columns: repeat(3, 1fr); } }
/* phones: the app's own tile grid (two across) — three across clips the 17 px price inside the tile's values */
@media (max-width: 639px) { .fresh .lots__grid { grid-template-columns: repeat(2, 1fr); } }
/* inside the app's Home the collection takes the board's column (board-grid.css): the side inset from the
   window's edges; at most --board-column-max wide, centred (each box is border-box, so its max-width adds the two insets); the
   fresh block's header and button row lie on the same column */
html.embed .fresh.fresh > .container { max-width: none; padding-inline: 0; }
html.embed .fresh :is(.lots__grid, .section-header, .fresh__more) {
  max-width: calc(var(--board-column-max) + 2 * var(--board-side-inset));
  margin-inline: auto;
  padding-inline: var(--board-side-inset);
}
/* its columns are the board's (board-grid.css, by the grid's width); a wide desktop keeps six across */
@media (min-width: 1201px) { html.embed .fresh .lots__grid { --board-max-columns: 6; } }

/* ── Trust: three cards with a gold glyph (concept bottom row) ── */
.why { padding: 32px 0 8px; }
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .why__grid { grid-template-columns: 1fr; } }
.why__card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 16px; }
.why__title { font-family: var(--font-heading); font-weight: 600; font-size: 17px; margin: 0 0 6px; color: var(--text); text-transform: uppercase; letter-spacing: .02em; }
.why__text { font-size: 14px; line-height: 1.5; color: var(--text-muted); }

/* ── Section headers and the listing grid ── */
.section-header {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-header__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.2;
  color: var(--text);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.section-header__link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.3);
  transition: color .15s, border-color .15s;
}
.section-header__link:hover { color: var(--gold-light); border-color: var(--gold); }
/* drawn only on j phones (rules beside the j hero rhythm): the «all» link's short form carrying the listings count, and the light posting link of the test arm post=fresh */
.fresh-all__count, .fresh-post { display: none; }

.lots__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1200px) { .lots__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .lots__grid { grid-template-columns: 1fr; } }
.fresh-more { height: 1px; margin-top: 12px; }
.fresh-more .lot-skeleton__image { height: 100%; aspect-ratio: auto; }

/* ── Footer ── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer__content {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
}
.footer__brand {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.25em;
  color: var(--text-dim);
}
.footer__legal {
  display: flex; flex-direction: column; gap: 16px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}
.footer__legal a { color: inherit; text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; }

/* ── Loading State ── */
.lots__loading { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1200px) { .lots__loading { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .lots__loading { grid-template-columns: 1fr; } }
.lot-skeleton {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.lot-skeleton__image {
  aspect-ratio: 4/3;
  background: linear-gradient(90deg, #1E2126 25%, #262B33 50%, #1E2126 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.lot-skeleton__content { padding: 16px; }
.lot-skeleton__line {
  height: 16px;
  background: linear-gradient(90deg, #1E2126 25%, #262B33 50%, #1E2126 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 10px;
}
.lot-skeleton__line--short { width: 60%; }
.lot-skeleton__line--medium { width: 80%; }
.lot-skeleton__line--long { width: 100%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Error State ── */
.lots__error { text-align: center; padding: 40px; color: var(--text-dim); }
html[data-landing-type="scale"] .ctrust__title { font-size: 16px; }
html[data-landing-type="scale"] :is(.ctrust__text, .partners, .auc__text) { font-size: 14px; }
html[data-landing-type="scale"] .cguide__text { font-size: 12px; }
html[data-landing-type="scale"] .why__title { font-size: 16px; }
html[data-landing-type="scale"] .section-header__title { font-size: 20px; }
html[data-landing-type="scale"] .footer__brand { font-size: 20px; }
html[data-landing-type="scale"] .footer__legal { font-size: 12px; }
@media (max-width: 480px) {
  html[data-landing-type="scale"][data-variant="j"] .cblock .section-header__link { font-size: 12px; }
}
@media (max-width: 340px) {
  html[data-landing-type="scale"] .dir__label { font-size: 12px; }
}
@media (min-width: 1024px) {
  html[data-landing-type="scale"] .section-header__title { font-size: 28px; }
}
