/* ============================================================
   Vietnam Furniture Hub — design system
   Translated from "Vietnam Furniture Hub.dc.html"
   ============================================================ */

:root {
  --primary: #1f3a5f;
  --primary-hover: #16202e;
  --accent: #e8b04b;

  --ink: #16202e;
  --text: #2b3646;
  --text-2: #3a4556;
  --text-3: #4a5666;
  --muted: #5b6572;
  --muted-2: #7c8592;
  --muted-3: #8a93a0;
  --faint: #a2acb8;

  --border: #e3e7ec;
  --border-2: #dbe1e8;
  --line: #edf0f4;

  --bg: #fefefe;
  --panel: #f4f7fa;
  --card: #ffffff;

  --link: #2563a8;

  --radius: 12px;
  --radius-sm: 8px;

  --sans: 'Roboto', 'IBM Plex Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'Roboto Mono', 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--primary); text-decoration: underline; }
::selection { background: rgba(31, 58, 95, .14); }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

.kicker {
  font: 600 12px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ---------- Placeholder image blocks ---------- */
.ph {
  background-color: #eef1f5;
  background-image: repeating-linear-gradient(45deg, #e7ebf0 0 10px, #eef1f5 10px 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 500 11px/1 var(--mono);
  color: #9aa6b4;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #f9faff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(16, 32, 46, .04);
}
.site-header .container {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 68px;
  width: auto;
  display: block;
}

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-link {
  padding: 9px 13px;
  font: 600 14px/1 var(--sans);
  color: var(--text-2);
  border-radius: 8px;
  white-space: nowrap;
}
.nav-link:hover { background: #f2f5f8; color: var(--ink); text-decoration: none; }
.nav-link.active { background: #f2f5f8; color: var(--ink); }

/* The logo cannot shrink and the nav cannot wrap, so in a row that is too narrow
   the search form is the only thing flex can squeeze — and with `width: 100%` on
   the input its min-content is ~0, which is how an iPad in portrait ended up with
   a 22px search box. `min-width` is the floor; the tablet breakpoint below makes
   the logo and nav yield first so that floor is rarely reached. */
.header-search { margin-left: auto; position: relative; flex: 0 1 260px; min-width: 120px; }
.header-search .ico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #9aa6b4; font-size: 14px;
}
.header-search input {
  width: 100%; height: 40px;
  border: 1px solid var(--border-2); border-radius: 100px;
  padding: 0 16px 0 34px;
  font: 400 14px/1 var(--sans); color: var(--text);
  background: #f7f9fb;
}
.header-search input:focus { outline: none; border-color: var(--primary); background: #fff; }

/* ============================================================
   Buttons / tags
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px;
  border-radius: var(--radius-sm);
  font: 700 14px/1 var(--sans);
  cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; text-decoration: none; }
.btn-outline { background: #fff; border: 1px solid var(--border-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--primary); color: var(--ink); text-decoration: none; }
.btn-accent {
  height: 54px; padding: 0 26px;
  background: var(--accent); color: #1a2230;
  border: none; border-radius: 100px;
  font: 700 15px/1 var(--sans); cursor: pointer; white-space: nowrap;
}
.btn-accent:hover { color: #1a2230; text-decoration: none; filter: brightness(.97); }

.tag {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 100px;
  font: 600 11px/1 var(--sans);
  border: 1px solid #cdd6e0; color: var(--text-2); background: var(--panel);
}
.tag--cert { border-color: #c3e0cd; color: #2f6b45; background: #eef6f0; }

.link-more { font-weight: 600; font-size: 14px; }

/* ============================================================
   Breadcrumbs
   ============================================================ */
.crumbs {
  font: 500 12px/1 var(--mono);
  color: var(--muted-3);
  margin-bottom: 14px;
}
.crumbs a { color: var(--muted-3); }
.crumbs a:hover { color: var(--text-2); }
.crumbs .here { color: var(--text-2); }

/* ============================================================
   Cards (generic)
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.card.link:hover { border-color: #eee; box-shadow: 0 6px 20px rgba(16, 32, 46, .08); text-decoration: none; }
.card-body { padding: 16px 17px 18px; display: flex; flex-direction: column; flex: 1; }

.section { padding: 48px 24px 8px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 22px; gap: 16px;
}
.section-title { font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; margin: 0; }

/* ============================================================
   Home — hero
   ============================================================ */
.hero { background: linear-gradient(180deg, #1a3252 0%, #1f3a5f 100%); color: #fff; }
.hero .container { padding: 64px 28px 72px; }
.hero-kicker {
  font: 600 12px/1 var(--mono);
  letter-spacing: .16em; text-transform: uppercase; color: #93b4d8; margin-bottom: 18px;
}
.hero h1 {
  font-size: 46px; line-height: 1.08; font-weight: 700; letter-spacing: .02em;
  margin: 0 0 18px; max-width: 760px;
}
.hero-sub { font-size: 18px; line-height: 1.55; color: #cdd9e6; max-width: 600px; margin: 0 0 30px; }
.hero-search { display: flex; gap: 12px; flex-wrap: wrap; max-width: 640px; }
.hero-search .field { position: relative; flex: 1; min-width: min(280px, 100%); }
.hero-search .ico {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: #9aa6b4; font-size: 16px;
}
.hero-search input {
  width: 100%; height: 54px; border: none; border-radius: 100px;
  padding: 0 18px 0 44px; font: 400 15px/1 var(--sans); color: var(--text);
}
.hero-search input:focus { outline: none; }

.stats { display: flex; gap: 34px; margin-top: 38px; flex-wrap: wrap; }
.stat .num { font-size: 26px; font-weight: 700; }
.stat .lbl {
  font: 500 12px/1.3 var(--mono);
  color: #93b4d8; text-transform: uppercase; letter-spacing: .08em;
}

/* ---------- category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr)); gap: 24px; }
.cat-tile .cat-media {
  height: 200px;
  background-color: #eef1f5;
  background-image: repeating-linear-gradient(45deg, #e7ebf0 0 10px, #eef1f5 10px 20px);
  display: flex; align-items: flex-end;
}
.cat-media img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile .cat-media span { font: 500 10px/1 var(--mono); color: #9aa6b4; text-transform: uppercase; letter-spacing: .08em; }
.cat-tile .cat-info { padding: 14px 16px 16px; }
.cat-tile .cat-name { font-weight: 600; font-size: 15px; color: var(--ink); }
.cat-tile .cat-count { font: 500 12px/1 var(--mono); color: var(--muted-3); margin-top: 6px; }

/* ---------- supplier cards ---------- */
.supplier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 18px; }
.supplier-card .card-media {
  height: 150px;
  background-color: #eef1f5;
  background-image: repeating-linear-gradient(45deg, #e7ebf0 0 10px, #eef1f5 10px 20px);
  display: flex; align-items: center; justify-content: center;
  font: 500 11px/1 var(--mono); color: #9aa6b4; text-transform: uppercase; letter-spacing: .08em;
  overflow: hidden;
}
.supplier-card .card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.supplier-card .s-name { font-weight: 700; font-size: 16px; color: var(--ink); letter-spacing: -.01em; }
.supplier-card .s-meta { font: 500 12px/1.3 var(--mono); color: var(--muted-3); margin-top: 5px; }
.supplier-card .s-excerpt { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 11px 0 0; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }

/* ---------- why vietnam editorial ---------- */
.editorial {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  display: grid; grid-template-columns: 1.3fr 1fr; overflow: hidden;
}
.editorial-body { padding: 44px 46px; }
.editorial-body h2 { font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; margin: 16px 0; line-height: 1.2; }
.editorial-body p { font-size: 15px; line-height: 1.65; color: var(--text-3); margin: 0 0 14px; }
.editorial-media {
  background-color: #eef1f5;
  background-image: repeating-linear-gradient(45deg, #e7ebf0 0 12px, #eef1f5 12px 24px);
  display: flex; align-items: center; justify-content: center;
  font: 500 11px/1 var(--mono); color: #9aa6b4; text-transform: uppercase; letter-spacing: .08em;
}
.editorial-media img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Directory
   ============================================================ */
.page-head { padding: 26px 0 0; }
.page-title { font-size: 30px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; margin: 0 0 6px; }
.page-intro { font-size: 15px; color: var(--muted); margin: 0 0 26px; }
.page-intro strong { color: var(--ink); }

.dir-layout { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; padding-bottom: 64px; }
.filter-aside {
  position: sticky; top: 88px;
  /* a sticky rail taller than the viewport hides its tail below the fold until the whole
     .dir-layout scrolls past — cap it and let it scroll on its own instead */
  max-height: calc(100vh - 88px - 24px);
  overflow-y: auto;
  scrollbar-gutter: stable;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 6px 18px 14px;
}
/* each group is a fragment target (#f-category etc.): a filter link reloads the page
   and lands back on the group that was clicked instead of at the top. The offset clears
   the 68px sticky header, matching .filter-aside's own `top`. */
.filter-group { padding: 14px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 88px; }
.filter-group:last-child { border-bottom: none; }
.filter-title { font-weight: 700; font-size: 13px; color: var(--ink); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .04em; }
.check-list { display: flex; flex-direction: column; gap: 9px; }
.check { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13.5px; color: var(--text-3); }
.check .box {
  width: 16px; height: 16px; border-radius: 4px;
  border: 1.5px solid #c3ccd6; background: #fff;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; line-height: 1;
}
.check.on .box { background: var(--primary); border-color: var(--primary); }
.check .lbl { flex: 1; }
.check .count { font: 500 11px/1 var(--mono); color: var(--faint); }

/* #results -- fragment target for the chips, "Clear all" and the sort pill */
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; scroll-margin-top: 88px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 100px;
  font: 600 12px/1 var(--sans); background: var(--primary); color: #fff;
}
.chip .x { opacity: .7; cursor: pointer; }
.chip-clear { font: 500 12px/1 var(--sans); color: var(--muted-3); cursor: pointer; padding: 6px 4px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sort .pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border-2); border-radius: 8px; padding: 8px 12px; font-weight: 600; color: var(--ink); background: #fff; }

.result-list { display: flex; flex-direction: column; gap: 14px; }
.result-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; display: grid; grid-template-columns: 150px 1fr; gap: 18px;
}
.result-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(16, 32, 46, .07); text-decoration: none; }
.result-card .r-media {
  height: 118px; border-radius: calc(var(--radius) - 4px);
  background-color: #eef1f5;
  background-image: repeating-linear-gradient(45deg, #e7ebf0 0 10px, #eef1f5 10px 20px);
  display: flex; align-items: center; justify-content: center;
  font: 500 10px/1 var(--mono); color: #9aa6b4; text-transform: uppercase; letter-spacing: .07em;
  overflow: hidden;
}
.result-card .r-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.result-card .r-body { min-width: 0; }
.result-card .r-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.result-card .r-name { font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: -.01em; }
.result-card .r-est { font: 500 11px/1 var(--mono); color: var(--faint); white-space: nowrap; }
.result-card .r-meta { font: 500 12px/1.3 var(--mono); color: var(--muted-3); margin-top: 5px; }
.result-card .r-excerpt { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 9px 0 0; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 30px; }
.page-btn {
  min-width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-2); border-radius: 8px;
  color: var(--text-2); font-size: 14px; cursor: pointer;
}
.page-btn:hover { border-color: var(--primary); text-decoration: none; color: var(--text-2); }
.page-btn.active { background: var(--primary); color: #fff; font-weight: 700; border-color: var(--primary); }
.page-btn.disabled { color: var(--faint); cursor: default; }
.page-ellipsis { padding: 0 8px; color: var(--faint); }

/* ============================================================
   Supplier profile
   ============================================================ */
.profile-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.profile-main { min-width: 0; }
.profile-title { font-size: 32px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; margin: 0 0 6px; }
.profile-subtitle { font-size: 16px; color: var(--muted); margin: 0 0 8px; }
.profile-verified { font: 500 12px/1 var(--mono); color: var(--muted-2); margin-bottom: 20px; }

/* 4 equal columns with a 2x2 hero: same proportions as the old `2fr 1fr 1fr`
   (hero 50%, tiles 25%), but every photo past the fifth wraps into a clean row
   of four rather than landing in a double-width column. */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 120px;
  gap: 10px; margin-bottom: 30px;
}
.gallery .g-primary {
  grid-column: span 2; grid-row: span 2; border-radius: var(--radius);
  background-color: #eef1f5;
  background-image: repeating-linear-gradient(45deg, #e7ebf0 0 12px, #eef1f5 12px 24px);
  display: flex; align-items: center; justify-content: center;
  font: 500 11px/1 var(--mono); color: #9aa6b4; text-transform: uppercase; letter-spacing: .08em;
}
.gallery .g-cell {
  border-radius: var(--radius);
  background-color: #eef1f5;
  background-image: repeating-linear-gradient(45deg, #e7ebf0 0 10px, #eef1f5 10px 20px);
  display: flex; align-items: center; justify-content: center;
  font: 500 11px/1 var(--mono); color: #9aa6b4;
}
/* real images fill their gallery cell */
.gallery .g-primary, .gallery .g-cell { position: relative; overflow: hidden; }
.gallery .g-primary img, .gallery .g-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Photo viewer (public/gallery.js) ----------
   A native <dialog>: showModal() puts it in the top layer, so it needs no z-index
   and is above .site-header by construction; it also traps focus, inerts the page
   behind it and handles Escape, none of which we have to write. */
.gallery a { text-decoration: none; }
.gallery a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Every UA `dialog` default is overridden deliberately — Chrome's UA sheet sets
   width/height:fit-content, margin:auto, max-width:calc(100% - 12px), border:solid,
   padding:1em and background:canvas. Skip any of those resets and you get a small
   white box in the middle of a dark screen. `height: 100dvh` alongside `inset: 0`
   is also deliberate: with an explicit height, `bottom` is ignored, so the dialog
   tracks the dynamic viewport instead of sitting behind iOS Safari's collapsing
   URL bar. Browsers without dvh fall back to the inset height. */
.lb {
  position: fixed; inset: 0; height: 100dvh;
  width: auto; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden;
  background: transparent; color: #fff;
}
/* literal, not var(--ink): custom properties did not inherit into ::backdrop
   before ~Chrome 122 */
.lb::backdrop { background: rgba(20, 28, 38, .93); }
.lb:focus { outline: none; }

.lb-stage { position: absolute; inset: 68px 24px 24px; display: flex; align-items: center; justify-content: center; }
.lb-img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; border-radius: var(--radius-sm);
}

.lb-close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff;
  font: 26px/1 var(--sans);
}
.lb-close:hover { background: rgba(255, 255, 255, .28); }
.lb-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Scroll lock. padding-right replaces the scrollbar we just removed, so the
   sticky header does not jump sideways when the viewer opens. */
html.lb-open { overflow: hidden; padding-right: var(--lb-sbw, 0px); }

/* `opacity: 0` lives inside the query on purpose — that is what leaves
   reduced-motion users with no opacity manipulation at all. @starting-style needs
   Chrome 117+/Safari 17.4+/Firefox 129+; elsewhere the dialog just appears. */
@media (prefers-reduced-motion: no-preference) {
  .lb, .lb::backdrop { opacity: 0; transition: opacity .18s ease, display .18s allow-discrete, overlay .18s allow-discrete; }
  .lb[open], .lb[open]::backdrop { opacity: 1; }
  @starting-style { .lb[open], .lb[open]::backdrop { opacity: 0; } }
}

.subhead { font-size: 19px; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.facts { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; }
.fact-row { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.fact-row:last-child { border-bottom: none; }
.fact-row .k { font-weight: 600; font-size: 13.5px; color: var(--muted-2); }
.fact-row .v { font-size: 13.5px; color: var(--text); }
.overview p { font-size: 15px; line-height: 1.7; color: #3f4a5a; margin: 0 0 15px; }

.rail {
  position: sticky; top: 88px;
  max-height: calc(100vh - 88px - 24px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 16px;
}
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.contact-card .c-title { font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 16px; }
.contact-card .btn { width: 100%; margin-bottom: 10px; }
.contact-card .note { font: 500 11px/1.4 var(--mono); color: var(--faint); margin-top: 12px; text-align: center; }

/* "Show contact details" — a native <details> disclosure, so it needs no client JS. */
.contact-reveal summary { list-style: none; width: 100%; margin-bottom: 10px; }
.contact-reveal summary::-webkit-details-marker { display: none; }
.contact-reveal summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.contact-reveal .c-hide,
.contact-reveal[open] .c-show { display: none; }
.contact-reveal[open] .c-hide { display: inline; }
.contact-list { margin: 0 0 10px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.contact-list dt { font-weight: 600; font-size: 12px; color: var(--muted-2); margin-top: 10px; }
.contact-list dt:first-child { margin-top: 0; }
.contact-list dd { margin: 2px 0 0; font-size: 13.5px; color: var(--text); word-break: break-word; }
.contact-none { font-size: 13.5px; color: var(--muted-2); margin-bottom: 10px; }
.rail-links { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.rail-links a { font-size: 13.5px; font-weight: 600; }
.rail-links a.subtle { color: var(--muted-2); }

.similar { margin-top: 44px; }
.similar h2 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0 0 18px; }
.similar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.similar-card .sim-media {
  height: 120px; overflow: hidden;
  background-color: #eef1f5;
  background-image: repeating-linear-gradient(45deg, #e7ebf0 0 10px, #eef1f5 10px 20px);
}
.similar-card .sim-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.similar-card .sim-body { padding: 14px 15px 16px; }
.similar-card .sim-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.similar-card .sim-meta { font: 500 12px/1.3 var(--mono); color: var(--muted-3); margin-top: 5px; }

/* ============================================================
   Category landing
   ============================================================ */
.cat-hero { background: var(--panel); border-bottom: 1px solid var(--border); }
.cat-hero .container { padding: 36px 28px 40px; }
.cat-hero h1 { font-size: 34px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; margin: 0 0 14px; max-width: 820px; }
.cat-hero p { font-size: 16px; line-height: 1.65; color: var(--text-3); max-width: 760px; margin: 0; }
.cat-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; padding: 40px 0 64px; }

.prose { font-size: 15px; line-height: 1.7; color: #3f4a5a; min-width: 0; }
.prose > p { margin: 0 0 15px; }
.prose h2 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 26px 0 10px; }

.embed-head { display: flex; align-items: center; justify-content: space-between; margin: 34px 0 16px; }
.embed-head h2 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0; }
.mini-list { display: flex; flex-direction: column; gap: 12px; }
.mini-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; display: grid; grid-template-columns: 110px 1fr; gap: 16px;
}
.mini-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(16, 32, 46, .07); text-decoration: none; }
.mini-card .m-media {
  height: 82px; border-radius: calc(var(--radius) - 4px);
  background-color: #eef1f5;
  background-image: repeating-linear-gradient(45deg, #e7ebf0 0 10px, #eef1f5 10px 20px);
  overflow: hidden;
}
.mini-card .m-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-card .m-name { font-weight: 700; font-size: 16px; color: var(--ink); }
.mini-card .m-meta { font: 500 12px/1.3 var(--mono); color: var(--muted-3); margin-top: 4px; }
.mini-card .m-excerpt { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 8px 0 0; }

.related-rail { display: flex; flex-direction: column; gap: 16px; }
.related-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.related-box .r-head { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 14px; }
.related-box .r-list { display: flex; flex-direction: column; gap: 11px; }
.related-box .r-list a { font-size: 14px; font-weight: 500; }

/* ============================================================
   Guides index
   ============================================================ */
.guide-list { display: flex; flex-direction: column; gap: 14px; }
.guide-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
}
.guide-item:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(16, 32, 46, .07); text-decoration: none; }
.guide-item .g-kicker { font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 9px; }
.guide-item .g-title { font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -.01em; }
.guide-item .g-excerpt { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 8px 0 0; }
.guide-item .g-meta { font: 500 12px/1 var(--mono); color: var(--faint); margin-top: 12px; }
.guide-item .g-arrow {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 18px;
}

/* ============================================================
   Guide article
   ============================================================ */
.article-header { max-width: 720px; }
.article-header h1 { font-size: 38px; line-height: 1.15; font-weight: 700; color: var(--ink); letter-spacing: -.02em; margin: 14px 0 16px; }
.byline { display: flex; align-items: center; gap: 14px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.byline .avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; }
.byline .who { font: 500 12px/1.4 var(--mono); color: var(--muted-2); }

.article-layout { display: grid; grid-template-columns: 1fr 240px; gap: 48px; align-items: start; margin-top: 32px; }
.article { min-width: 0; max-width: 720px; font-size: 16px; line-height: 1.75; color: #3f4a5a; }
.article .lede { margin: 0 0 18px; font-size: 18px; color: var(--text); }
.article h2 { font-size: 23px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; margin: 34px 0 12px; scroll-margin-top: 88px; }
.article p { margin: 0 0 16px; }

.toc { position: sticky; top: 88px; max-height: calc(100vh - 88px - 24px); overflow-y: auto; }
.toc .toc-head { font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-3); margin-bottom: 14px; }
.toc nav { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--border); }
.toc nav a {
  padding: 7px 0 7px 16px; margin-left: -2px;
  border-left: 2px solid transparent; color: var(--muted); font-size: 13.5px;
}
.toc nav a:hover { color: var(--ink); text-decoration: none; }
.toc nav a.active { border-left-color: var(--primary); color: var(--ink); font-weight: 600; }
.toc .all-guides { display: inline-block; margin-top: 22px; font-size: 13px; font-weight: 600; }

/* ============================================================
   Static content pages (About)
   ============================================================ */
.static-page { max-width: 800px; margin: 0 auto; padding: 26px 28px 64px; }
.static-page h1 { font-size: 32px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; margin: 0 0 20px; }
.static-body { font-size: 16px; line-height: 1.75; color: #3f4a5a; }
.static-body h2 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 28px 0 10px; }
.static-body p { margin: 0 0 16px; }
.cta-box { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-top: 24px; }
.cta-box .cta-title { font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.cta-box p { font-size: 14px; color: var(--muted); margin: 0 0 14px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: #16202e; color: #aeb8c4; margin-top: 20px; }
.site-footer .foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
  padding: 48px 28px 28px;
}
.foot-brand { display: inline-block; margin-bottom: 14px; }
.foot-brand img { display: block; width: 230px; max-width: 100%; height: auto; }
.foot-tagline { font-size: 13px; line-height: 1.6; color: #8b97a6; margin: 0; max-width: 280px; }
.foot-head { font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #6f7d8e; margin-bottom: 14px; }
.foot-links { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.foot-links a { color: #aeb8c4; }
.foot-links a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid #263243; }
.foot-bottom .inner {
  max-width: 1200px; margin: 0 auto; padding: 18px 28px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.foot-bottom .copy { font-size: 12px; color: #6f7d8e; }
.foot-bottom .disclaimer { font: 500 11px/1.5 var(--mono); color: #5c6a7b; max-width: 520px; text-align: right; }

/* ============================================================
   Bilingual labels
   ============================================================ */
/* The claim and report forms are the only supplier-facing surface on an
   otherwise buyer-facing English site, so their copy carries a Vietnamese twin
   directly under each English line. Ported from the ops console (which is
   bilingual throughout) — see tools/ops/public/ops.css. `.vi` is always the
   second line, always visibly secondary, never small enough to squint at. */

.vi {
  display: block;
  font-weight: 400;
  font-style: normal;
  text-transform: none;
  letter-spacing: normal;
  color: var(--muted);
  font-size: .88em;
  line-height: 1.35;
}
/* On coloured ground the muted grey is unreadable — inherit the local colour
   and step it back with opacity instead. */
a .vi, .btn .vi, .form-callout .vi, .form-errors .vi { color: inherit; opacity: .75; }
.btn .vi { font-size: 12px; font-weight: 500; line-height: 1.25; margin-top: 3px; }
.rail-links a .vi { font-weight: 400; font-size: 12.5px; margin-top: 1px; }
h1 .vi { font-size: 16px; margin-top: 4px; }

/* The buttons are two lines tall now that they carry a Vietnamese twin.
   .btn sets line-height 1 for a single centred line; give both lines a real
   line-height here so the pair reads as one balanced label, not two cramped ones. */
.btn:has(.vi) {
  height: auto; min-height: 46px; padding: 10px 22px;
  flex-direction: column; gap: 0; line-height: 1.25; text-align: center;
}

/* ============================================================
   Report chooser (/report/:slug) — company or buyer
   ============================================================ */
.chooser { max-width: 720px; margin: 0 auto; padding: 56px 20px 88px; }
.chooser-head { text-align: center; margin-bottom: 32px; }
.chooser-back { display: inline-block; margin-bottom: 18px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.chooser-back:hover { color: var(--primary); text-decoration: none; }
.chooser h1 { margin: 0; font-size: clamp(26px, 4vw, 34px); line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.chooser-lead { margin: 14px 0 0; font-size: 16px; color: var(--text); }
.chooser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chooser-card {
  display: flex; flex-direction: column; gap: 18px; position: relative;
  padding: 24px; background: var(--card); color: var(--ink);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(22, 32, 46, .04);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.chooser-card:hover, .chooser-card:focus-visible {
  border-color: var(--primary); color: var(--ink); text-decoration: none;
  box-shadow: 0 10px 28px rgba(22, 32, 46, .10); transform: translateY(-2px);
}
/* On /report the cards are <button>s; undo what a button brings with it. */
button.chooser-card { font: inherit; text-align: left; cursor: pointer; width: 100%; }
.chooser-pick { margin-bottom: 28px; }
.chooser-pick label { display: block; margin-bottom: 10px; font-size: 16px; font-weight: 500; color: var(--ink); text-align: center; }
.chooser-pick select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.chooser-pick select:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.chooser-error { margin: 0 0 10px; font-size: 14px; color: #b3261e; text-align: center; }
.chooser-lead-form { margin: 0 0 18px; text-align: center; }
.chooser-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--panel); color: var(--primary);
}
.chooser-text { display: flex; flex-direction: column; gap: 6px; }
.chooser-text strong { font-size: 18px; font-weight: 600; line-height: 1.25; }
.chooser-sub { font-size: 14px; color: var(--muted); line-height: 1.45; }
.chooser-arrow { position: absolute; top: 24px; right: 24px; font-size: 18px; color: var(--faint); transition: color .15s, transform .15s; }
.chooser-card:hover .chooser-arrow { color: var(--primary); transform: translateX(3px); }
@media (max-width: 600px) {
  .chooser { padding: 36px 16px 64px; }
  .chooser-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .chooser-card, .chooser-arrow { transition: none; }
  .chooser-card:hover { transform: none; }
}

/* ============================================================
   Public forms (claim / report)
   ============================================================ */

.form-page { padding-top: 40px; padding-bottom: 88px; max-width: 720px; }
.form-back { display: inline-block; margin-bottom: 22px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.form-back:hover { color: var(--primary); text-decoration: none; }

.form-head { margin-bottom: 26px; }
.form-head h1, .form-sent h1 {
  font-size: clamp(26px, 4vw, 34px); font-weight: 700; color: var(--ink);
  margin: 0 0 12px; line-height: 1.15; letter-spacing: -.02em;
}
.form-lede { font-size: 16px; line-height: 1.55; color: var(--text-2); margin: 0; max-width: 60ch; }
.form-lede .vi { margin-top: 6px; }

/* The "what this form is and isn't" note at the top of the add-my-company
   panel. A quiet tinted box, not body copy: it must read as an aside so the
   first field, not the note, is where the eye lands. */
.form-callout {
  margin-bottom: 28px; padding: 14px 16px;
  background: var(--panel); border: 1px solid var(--border);
  border-left: 3px solid var(--primary); border-radius: var(--radius-sm);
  font-size: 14px; line-height: 1.55; color: var(--text-2);
}
.form-callout p { margin: 0; }
.form-callout p + p { margin-top: 6px; }

.form-panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
  box-shadow: 0 1px 2px rgba(22, 32, 46, .04), 0 12px 32px rgba(22, 32, 46, .06);
}

.form-supplier {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line);
  font-size: 16px; font-weight: 600;
}
.form-supplier a { color: var(--ink); }
.form-supplier .k {
  font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--primary);
  background: var(--panel); border-radius: 999px; padding: 7px 12px;
}

.form-errors {
  background: #fdf1f0; border: 1px solid #f5cdc8; border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 26px; font-size: 13.5px; color: #7f2418;
}
.form-errors p { margin: 0; }
.form-errors .fe-title { font-weight: 700; margin-bottom: 6px; }
.form-errors ul { margin: 0; padding-left: 20px; }
.form-errors li + li { margin-top: 6px; }

/* Short fields pair up; with an odd count (the report form has three) the
   first takes the full row so nothing is left dangling. */
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; align-items: start; }
.field-grid > .field:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
@media (max-width: 600px) {
  .field-grid { grid-template-columns: 1fr; }
  .form-page { padding-top: 26px; padding-bottom: 64px; }
  .form-panel { padding: 22px 18px; border-radius: var(--radius); }
}

.vfh-form .field { margin-bottom: 22px; }
.vfh-form label {
  display: block; margin-bottom: 8px;
  font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink);
}
.vfh-form label .vi { font-weight: 400; margin-top: 2px; }
.vfh-form input[type="text"],
.vfh-form input[type="email"],
.vfh-form input[type="tel"],
.vfh-form select,
.vfh-form textarea {
  width: 100%; padding: 12px 14px;
  font: 400 15px/1.5 var(--sans); color: var(--text);
  background: #fbfcfd; border: 1px solid var(--border-2);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.vfh-form input:hover, .vfh-form select:hover, .vfh-form textarea:hover { border-color: var(--faint); }
.vfh-form textarea { resize: vertical; min-height: 150px; }
.vfh-form select { height: 48px; }
.vfh-form :focus-visible { outline: none; background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(31, 58, 95, .12); }
.vfh-form [aria-invalid="true"] { border-color: #c0392b; background: #fefafa; }
.vfh-form .hint { display: block; margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--muted-2); }
.vfh-form .hint .vi { color: inherit; margin-top: 2px; }

/* Checkbox group (the claim form's "what to update"). Native controls; the
   directory's .check is a link-styled facet, not a form control. */
.vfh-form .checks { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.vfh-form .checks legend {
  padding: 0; margin-bottom: 10px;
  font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink);
}
.vfh-form .check-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0 0 9px; font-size: 15px; font-weight: 400; line-height: 1.45; color: var(--text);
  cursor: pointer;
}
.vfh-form .check-row input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--primary); }
.vfh-form .check-row .hint { margin-top: 2px; }
.vfh-form .checks[aria-invalid="true"] { border: 0; background: none; }
.vfh-form .checks[aria-invalid="true"] legend { color: #c0392b; }

/* Honeypot: must be invisible to people but present in the DOM for bots.
   Not display:none — some bots skip those. Not type="hidden" either. */
.vfh-form .hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}

.form-actions {
  display: flex; align-items: center; gap: 20px;
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line);
}
.form-actions .btn-primary { min-width: 160px; border-radius: 10px; }
.form-cancel { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.form-note { font-size: 13px; line-height: 1.5; color: var(--muted-2); margin: 22px 0 0; }
.form-note .vi { color: inherit; margin-top: 3px; }
.form-page .crumbs { margin-bottom: 20px; }

.form-sent { text-align: center; padding: 48px 32px; }
.form-tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; margin-bottom: 18px;
  background: #e8f5ee; color: #1e7a4a;
}
.form-sent p { font-size: 15.5px; line-height: 1.55; color: var(--text-2); margin: 0 auto 14px; max-width: 52ch; }
.form-sent .form-note { font-size: 13px; }
.form-sent .btn { margin-top: 14px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .dir-layout,
  .profile-layout,
  .cat-layout,
  .article-layout { grid-template-columns: 1fr; }
  .editorial { grid-template-columns: 1fr; }
  .editorial-media { min-height: 200px; }
  /* single column: nothing is pinned, so the viewport cap above must be released too */
  .filter-aside, .rail, .toc { position: static; max-height: none; overflow: visible; }
  .hero h1 { font-size: 36px; }
}
@media (max-width: 1000px) {
  /* tablets and narrow laptops: the full-size logo + four nav links + 28px gaps
     need ~730px on their own, so shrink the chrome before the search gives way */
  .site-header .container { gap: 14px; }
  .brand-logo { height: 44px; }
  .nav { margin-left: 0; }
  .nav-link { padding: 8px 8px; font-size: 13px; }
}
@media (max-width: 720px) {
  /* padding-x only: `.container` sits later in the file than `.section`, so the
     shorthand here would also flatten every section's vertical padding */
  .container { padding-left: 18px; padding-right: 18px; }
  .nav { display: none; }
  /* the 276px-wide header logo alone is most of a phone screen — shrink it and
     let the search take what is left instead of pushing it off the viewport */
  .header-search { flex: 1 1 auto; min-width: 0; }
  .header-search input { min-width: 0; }
  /* `.site-footer .foot-grid` (two classes) outranks a bare `.foot-grid` here —
     a media query adds no specificity, so this selector has to match it */
  .site-footer .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; padding: 36px 18px 24px; }
  .foot-bottom .inner { padding: 18px; }
  .foot-bottom .disclaimer { text-align: left; }
  .result-card { grid-template-columns: 1fr; }
  .result-card .r-media { height: 160px; }
  .hero h1 { font-size: 30px; }
  .hero .container { padding: 44px 18px 52px; }
  .form-panel { padding: 22px 18px 24px; }
  .form-panel h1 { font-size: 22px; }
  .form-actions { flex-direction: column; align-items: stretch; gap: 12px; text-align: center; }
  .section-head { flex-wrap: wrap; }
  /* a 180px label column leaves ~110px for the value on a 360px phone, which
     breaks "An Giang, Vietnam" over three lines — stack label over value */
  .fact-row { grid-template-columns: 1fr; gap: 4px; }
  /* phone: a 4-col grid gives ~70px tiles, so drop to 3 with a full-width hero */
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 84px; }
  .gallery .g-primary { grid-column: 1 / -1; }
  .lb-stage { inset: 60px 10px 10px; }
  .lb-close { top: 8px; right: 8px; width: 40px; height: 40px; font-size: 24px; }
}

/* ============================================================
   Overrides
   ============================================================ */

.recently-added {
  display: none;
}

/* ============================================================
   Claim page (/claim/:token) — a supplier's private preview
   ============================================================
   Vietnamese leads here, so the second line is English; it reuses `.vi`
   (with lang="en") for the "second, quieter line" styling only. The drawers and
   confirm boxes are native <dialog>s opened by public/claim.js — closed, they
   are not rendered at all, and every trigger is a link to a plain page. */

.rail-note { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.rail-note a { font-weight: 600; }

.claim-header { position: static; }
.claim-header .container { height: auto; min-height: 68px; flex-wrap: wrap; row-gap: 8px; padding-bottom: 10px; }
.claim-header-text { flex: 1 1 320px; font-size: 14px; color: var(--text); line-height: 1.4; }
.claim-header-text strong { display: block; font-size: 16px; color: var(--ink); }
.claim-header-text p { margin: 4px 0 0; }

.claim-bar { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 2px 10px rgba(22, 32, 46, .06); }
.claim-bar .container { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.claim-bar-link { margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: underline; }
.claim-bar-link:hover { color: #a3271b; }
.claim-bar-note { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.claim-confirmed { opacity: .7; cursor: default; pointer-events: none; }
.claim-danger { color: #a3271b; border-color: #e2b4ae; }
.claim-danger:hover { background: #fdf3f2; }

.claim-main { padding-top: 22px; padding-bottom: 64px; }
.claim-flash { margin-bottom: 20px; }
.claim-plain { max-width: 640px; padding-top: 24px; padding-bottom: 64px; }
.claim-back { display: inline-block; margin-bottom: 18px; font-size: 14px; font-weight: 600; }

.claim-sec-head { display: flex; align-items: center; gap: 12px; margin: 26px 0 12px; scroll-margin-top: 90px; }
.claim-sec-head .subhead { margin: 0; flex: 1 1 auto; }
.profile-main > .claim-sec-head:first-of-type, .rail > .claim-sec-head { margin-top: 0; }
.claim-edit { min-height: 0; height: auto; padding: 6px 14px; font-size: 13px; flex: 0 0 auto; }
.claim-badge { flex: 0 0 auto; background: #fff6e0; color: #7a5a12; border: 1px solid #f0dca6; border-radius: 999px; padding: 3px 12px; font-size: 12px; font-weight: 600; line-height: 1.3; text-align: center; }
.claim-badge .vi { color: inherit; opacity: .8; font-size: 11px; }

.claim-form { padding: 28px 26px 32px; }
.claim-plain .claim-form { padding: 0; }
.claim-form-title { font-size: 20px; color: var(--ink); margin: 0 0 16px; padding-right: 36px; }
.claim-form fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.claim-form legend { padding: 0; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.claim-form legend .vi { font-weight: 400; }
.claim-form fieldset[aria-invalid="true"] legend { color: #a3271b; }
.claim-check { display: flex; align-items: flex-start; gap: 9px; font-weight: 400; font-size: 14px; margin: 0 0 9px; cursor: pointer; }
.claim-check input { width: 17px; height: 17px; margin: 2px 0 0; flex: 0 0 auto; }
.claim-multi-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
.claim-reply { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.claim-form [data-save]:disabled { opacity: .45; cursor: not-allowed; }

html.claim-open { overflow: hidden; }

dialog.claim-drawer, dialog.claim-dialog { border: 0; padding: 0; background: #fff; color: var(--text); }
dialog.claim-drawer::backdrop, dialog.claim-dialog::backdrop { background: rgba(22, 32, 46, .55); }

/* Right-hand drawer, ~480px. The UA centres a modal dialog with margin:auto and
   caps its size; all of that is overridden so it can sit flush to the edge. */
dialog.claim-drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0;
  width: 480px; max-width: 100vw; height: 100%; max-height: none;
  overflow-y: auto; overscroll-behavior: contain;
  box-shadow: -8px 0 32px rgba(22, 32, 46, .18);
}
.claim-drawer-close {
  position: sticky; top: 10px; float: right; margin: 10px 12px 0 0; z-index: 1;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink);
}
dialog.claim-dialog { width: 460px; max-width: calc(100vw - 32px); border-radius: var(--radius); box-shadow: 0 16px 48px rgba(22, 32, 46, .25); }

@media (prefers-reduced-motion: no-preference) {
  dialog.claim-drawer[open] { animation: claim-in .18s ease-out; }
  @keyframes claim-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* Under 768px the drawer is a full-screen sheet and the action bar stacks. */
@media (max-width: 767px) {
  dialog.claim-drawer { inset: 0; width: 100vw; box-shadow: none; }
  @media (prefers-reduced-motion: no-preference) {
    dialog.claim-drawer[open] { animation-name: claim-up; }
    @keyframes claim-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  }
  .claim-bar .container { flex-direction: column; align-items: stretch; gap: 8px; }
  .claim-bar .btn { width: 100%; }
  .claim-bar-link { margin: 2px auto 0; }
  .claim-multi-grid { grid-template-columns: 1fr; }
  .claim-form { padding: 22px 18px 28px; }
}
