/* Green-A — "Tấm đá dưới đèn rọi". Tokens and rules: DESIGN.md at the project root. */

@font-face {
  font-family: "Saira Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/saira-condensed-vietnamese-400-normal.woff2") format("woff2");
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
@font-face {
  font-family: "Saira Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/saira-condensed-latin-400-normal.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: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/eb-garamond-vietnamese-400-normal.woff2") format("woff2");
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/eb-garamond-latin-400-normal.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: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-vietnamese-400-normal.woff2") format("woff2");
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-400-normal.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;
}
/* Wordmark only ("GREEN-A"): Belanosima 400 (decisions 67, 70). */
@font-face {
  font-family: "Belanosima";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/belanosima-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --canvas: #050505;
  --surface-soft: #0e0e0e;
  --hairline: #262626;
  --hairline-strong: #3a3a3a;
  --ink: #ffffff;
  --body-strong: #e6e6e6;
  --body: #c8c8c8;
  --muted: #9a9a9a;
  --placeholder: #8a8a8a;

  /* Overlays under text on photos: >=55% keeps small text AA even over a pure-white vein. */
  --scrim: rgba(5, 5, 5, 0.74);
  --scrim-head: rgba(5, 5, 5, 0.78);

  --display: "Saira Condensed", "Arial Narrow", sans-serif;
  --text: "EB Garamond", Garamond, "Times New Roman", serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 10vw, 120px); /* 56px on phones, see the max-width: 599px block under Breakpoints */
  --stack: clamp(48px, 7vw, 88px);
  --container: 1280px;
  --header-h: 72px;
  --quickbar-h: 56px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--canvas);
  color-scheme: dark;
  scrollbar-color: var(--hairline-strong) var(--canvas);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font: 400 1.125rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--ink); color: var(--canvas); }
img { display: block; max-width: 100%; height: auto; }
/* <picture> only carries the WebP/JPEG sources; the <img> lays out as if it were a direct child. */
picture { display: contents; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 50;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--canvas);
  font: 400 0.75rem/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* Keeps a short phrase on one line, but lets it wrap inside when it is wider than its column (200% text). */
.nw { display: inline-block; }

/* ---------- Type roles. Display is uppercase via CSS; the source copy keeps its own case. ---------- */
h1, h2, h3, .name, .facts dd, .brand span, .brand-entry-name {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.375rem, 1.2rem + 5.2vw, 4.5rem);
  line-height: 1.3;
  letter-spacing: 0.06em;
  max-width: 12em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.875rem, 1.1rem + 3.4vw, 3rem);
  line-height: 1.28;
  letter-spacing: 0.05em;
  text-wrap: balance;
}
h3, .name {
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: 0.06em;
}
.prose {
  max-width: min(46rem, 100%); /* rem, not ch: the lead paragraph (larger type) and body paragraphs share one right edge */
  color: var(--body);
  text-wrap: pretty;
}
.prose + .prose { margin-top: 1em; }
.prose a, .prose-list a, .field--check a {
  color: var(--ink);
  text-decoration: underline 1px var(--muted);
  text-underline-offset: 5px;
  transition: text-decoration-color 0.2s ease;
}
.prose a:hover, .prose-list a:hover, .field--check a:hover { text-decoration-color: var(--ink); }
.prose--lead {
  color: var(--body-strong);
  font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.375rem);
  line-height: 1.5;
}
.prose-list {
  max-width: 64ch;
  margin-top: 1em;
  padding-left: 1.2em;
  list-style: square;
}
.prose-list li + li { margin-top: 0.5em; }
.prose-list li::marker { color: var(--muted); }
.prose-list + .prose { margin-top: 1em; }

/* Labels and codes: mono, uppercase, tracked. */
.hero-rail p, .code, .facts dt, .contact-grid dt, .band figcaption, .footer-head,
.breadcrumb, .place-label, .field label, .step-no, .stone-card-price {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Links that act as calls to action. */
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font: 400 0.8125rem/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: underline 1px var(--muted);
  text-underline-offset: 7px;
  transition: text-decoration-color 0.2s ease;
}
.text-link:hover { text-decoration-color: var(--ink); }
.text-link--small {
  min-height: 0;
  font-size: 0.75rem;
  margin-left: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 calc(32px - 0.16em) 0 32px;
  border: 1px solid var(--ink);
  border-radius: 9999px;
  background: none;
  color: var(--ink);
  font: 400 0.8125rem/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.btn:hover { background-color: rgba(255, 255, 255, 0.08); }
.btn:active { background-color: rgba(255, 255, 255, 0.16); }
.btn--ghost { border-color: var(--muted); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm {
  min-height: 40px;
  padding: 0 calc(20px - 0.16em) 0 20px;
  font-size: 0.75rem;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--hairline);
  background: var(--canvas);
}
.site-header--overlay {
  position: absolute;
  inset: 0 0 auto;
  border-bottom: 0;
  background: transparent;
}
.site-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-right: auto;
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; }
.brand span {
  font-family: "Belanosima", var(--display);
  /* 16px at +0.22em is 87px wide, the same as the old Saira wordmark, so the 1024px header still fits on one row. */
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.22em;
  margin-right: -0.22em;
  white-space: nowrap;
}
.nav-list a, .lang a, .menu-toggle {
  font: 400 0.75rem/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--body);
  text-decoration: underline 1px transparent;
  text-underline-offset: 8px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.nav-list a:hover { color: var(--ink); }
.nav-list a[aria-current] { color: var(--ink); text-decoration-color: currentColor; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; align-items: center; }
.lang a {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  color: var(--body);
  text-indent: 0.16em;
  text-decoration: underline 1px transparent;
  text-underline-offset: 7px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.lang li + li a {
  background: linear-gradient(var(--hairline-strong), var(--hairline-strong)) left center / 1px 12px no-repeat;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { color: var(--ink); text-decoration-color: currentColor; }
.menu-toggle {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--muted);
  border-radius: 9999px;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle[aria-expanded="true"] { border-color: var(--ink); }

/* Below 1280px the nav is a panel under the header. Without JS it simply sits in the flow.
   Decision 50: the full menu (seven items once the phase 3 pages exist) needs about 999px next to the logo,
   VI/EN and the quote button, so it does not fit 1024-1279px. site.js closes the panel at the same 1280px. */
@media (max-width: 1279px) {
  /* Narrow column gap: logo + VI/EN + Menu need about 314 px, the 360 px phone has 328 px (330 px with a 24 px gap would wrap). */
  .site-header-inner { flex-wrap: wrap; height: auto; min-height: var(--header-h); column-gap: 8px; }
  .site-nav { order: 3; width: 100%; padding-bottom: 24px; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open {
    display: block;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 8px var(--gutter) 32px;
    border-bottom: 1px solid var(--hairline);
    background: var(--canvas);
  }
  .nav-list li { border-top: 1px solid var(--hairline); }
  .nav-list a { display: flex; min-height: 56px; font-size: 0.8125rem; }
  .nav-quote { margin-top: 24px; width: 100%; min-height: 48px; }
  .no-js .menu-toggle { display: none; }
}
@media (min-width: 1280px) {
  .site-nav { display: flex; align-items: center; gap: 32px; }
  .nav-list { display: flex; gap: 28px; }
  .menu-toggle { display: none; }
}

/* ---------- Hero (home): the slab is the light source ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: max(100svh, 560px);
  overflow: hidden;
  background: var(--canvas);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 50%;
  animation: lamp-on 2.2s var(--ease-out) both;
}
@keyframes lamp-on {
  from { filter: brightness(0.28); transform: scale(1.035); }
  to { filter: brightness(1); transform: scale(1); }
}
/* Header scrim: keeps logo, nav and VI/EN at AA over any vein. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 200px;
  z-index: -1;
  background: linear-gradient(to bottom, var(--scrim-head) 0, var(--scrim-head) 84px, rgba(5, 5, 5, 0) 100%);
}
.hero-body { position: relative; padding-top: 160px; }
/* One family for the whole hero copy: the H1 is set in the body serif, like the lead (decision 68). */
/* Two lines at every width (decision 71): the longer VI line "ĐÁ THẠCH ANH CHO BẾP" is 12.76em wide, so the size
   follows the column width (100cqi / 13) up to 64px, and the box allows 13em. */
.hero-copy { container-type: inline-size; }
.hero h1 {
  font-family: var(--text);
  font-size: clamp(1.5rem, 0.4rem + 6.6vw, 4rem);
  font-size: min(4rem, 100cqi / 13);
  line-height: 1.2;
  letter-spacing: 0.03em;
  max-width: 13em;
}
/* Text scrim, fading in above the copy. Below 1024px: 45% behind the H1 (large text, 3:1),
   62% combined from the lead down (small text, 4.5:1). */
.hero-body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 5, 5, 0.45);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 150px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 150px);
}
.hero-sub { position: relative; }
.hero-sub::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -12px calc(-1 * var(--gutter)) calc(-1 * clamp(48px, 7vh, 72px));
  background: rgba(5, 5, 5, 0.31);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12px);
}
.lead {
  margin-top: 24px;
  max-width: 42ch;
  color: var(--body-strong);
  text-wrap: pretty;
  font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.375rem);
  line-height: 1.5;
}
.hero-sub .btn { margin-top: 40px; }
.hero-rail {
  margin-top: clamp(48px, 7vh, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--scrim);
}
.hero-rail-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 32px;
  padding-block: 18px 20px;
}
.hero-rail p { color: var(--body-strong); }

/* Promotion banner under the home hero (decision 101): photo as background, HTML text on its dark area. */
.promo-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 640px;
  padding-block: 44px clamp(260px, 70vw, 420px);
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
}
.promo-banner-media img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.promo-banner-kicker { color: var(--body); font: 400 0.75rem/1.6 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; }
.promo-banner h2 { margin-top: 16px; color: var(--ink); }
.promo-banner-main { max-width: 30rem; margin-top: 16px; color: var(--body-strong); font-size: 1.25rem; line-height: 1.5; }
.promo-banner .btn { margin-top: 28px; }
@media (min-width: 768px) {
  .promo-banner { min-height: clamp(400px, 37.5vw, 560px); padding-block: clamp(48px, 6vw, 88px); }
  .promo-banner-media img { object-position: left center; }
  .promo-banner-body > * { max-width: min(34rem, calc(44vw - 24px)); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.rule { border-top: 1px solid var(--hairline); }
.split { display: grid; gap: 24px 40px; align-items: start; }
.split--baseline { align-items: baseline; }
.section > .wrap > h2 { margin-bottom: clamp(40px, 6vw, 64px); }

/* Inner pages */
.breadcrumb { padding-top: 28px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before {
  content: "/";
  margin-inline: 12px;
  color: var(--hairline-strong);
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current] { color: var(--body-strong); }
.page-head { padding-block: clamp(40px, 6vw, 72px) clamp(32px, 4vw, 48px); }
.page-head h1 { font-size: clamp(1.875rem, 1.1rem + 3.4vw, 3rem); line-height: 1.28; letter-spacing: 0.05em; max-width: 18em; }
/* "Cập nhật: dd/mm/yyyy" under the H1 of stone pages, the price list and price-group pages (decision 80 date). */
.updated { margin-top: 16px; color: var(--muted); font: 400 0.75rem/1.6 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.page-lead {
  margin-top: 20px;
  max-width: 52ch;
  color: var(--body-strong);
  font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.375rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.page-body { padding-bottom: var(--section); }
.page-body > .facts:first-child { margin-top: 0; }
.doc-section {
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: clamp(32px, 4vw, 40px);
  border-top: 1px solid var(--hairline);
}
.doc-section > h2, .doc-section .split > h2, .doc-section .split > div > h2 {
  margin-bottom: 20px;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2rem);
}
.doc-section .split > div > .prose { margin-bottom: 8px; }

/* Visible marker for data the owner still has to supply. */
.todo {
  max-width: 64ch;
  margin-top: 16px;
  padding: 16px 20px;
  border: 1px dashed var(--hairline-strong);
  color: var(--body);
  font-size: 1rem;
  line-height: 1.55;
}
.todo-tag {
  margin-right: 8px;
  color: var(--ink);
  font: 400 0.75rem/1 var(--mono);
  letter-spacing: 0.14em;
}

/* ---------- Brand entries ---------- */
.brand-entries { display: grid; gap: 0 40px; }
.brand-entry {
  display: grid;
  gap: 16px;
  align-content: start;
  padding-block: 32px 24px;
  border-top: 1px solid var(--hairline);
}
.brand-entry-name {
  font-size: clamp(1.875rem, 1.1rem + 3.4vw, 3rem);
  line-height: 1.28;
  letter-spacing: 0.08em;
}
.brand-entry p { max-width: 46ch; text-wrap: pretty; }

/* ---------- Stone cards ---------- */
.stone-grid { display: grid; gap: 48px 40px; }
.frame {
  position: relative;
  aspect-ratio: 12 / 5;
  overflow: hidden;
  background: var(--surface-soft);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
/* Faint edge so black slabs stay distinct from the canvas. */
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}
.stone-card-link { display: block; text-decoration: none; }
.stone-card-link:hover .frame img { transform: scale(1.02); }
.stone-card-link:hover .name { text-decoration: underline 1px; text-underline-offset: 6px; }
.stone-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin-top: 16px;
}
.stone-card-price { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 6px; }
/* Price on stone cards (decision 123): group label stays small and grey above; the price is Saira Condensed like .price-num,
   the struck price before a promotion small and muted beside it (wraps under the price when the card is narrow). */
.stone-card-cost { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; margin-top: 2px; color: var(--muted); font: 400 0.875rem/1.3 var(--text); }
.stone-card-cost .stone-card-from, .stone-card-cost .stone-card-unit { color: var(--muted); }
.stone-card-num { color: var(--ink); font: 400 1.375rem/1.25 var(--display); letter-spacing: 0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stone-card-was { color: var(--muted); font: 400 0.875rem/1.3 var(--mono); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; text-decoration: line-through 1px var(--muted); white-space: nowrap; }
.stone-card-cost > .stone-card-num:only-child { white-space: normal; }
.stone-card-price span + span { color: var(--body-strong); text-transform: none; letter-spacing: 0.08em; }
/* Discount badge (decision 109): sits flush in the top-left corner of the photo, "-X%" large in Saira Condensed. Slabs are
   mostly pale, so it is black with white text and a white edge (white edge keeps it distinct on a black slab). Square. */
.promo-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  padding: 4px 12px 2px;
  border: 1px solid var(--ink);
  border-width: 0 1px 1px 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem)/1.1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.casla-card[hidden], .casla-group[hidden] { display: none; }
.casla-group { margin-top: clamp(32px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--hairline); }
.casla-group h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.casla-count { color: var(--muted); font: 400 0.75rem/1.5 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.casla-card .btn { width: 100%; margin-top: 16px; padding-block: 10px; white-space: normal; text-align: center; line-height: 1.3; }
.price-note {
  max-width: 64ch;
  margin-top: clamp(40px, 5vw, 56px);
  color: var(--body);
  text-wrap: pretty;
}
.price-note .text-link { margin-left: 4px; }

/* ---------- Interlude band ---------- */
.band img {
  width: 100%;
  height: clamp(240px, 42vw, 640px);
  object-fit: cover;
}
.band figcaption { padding-top: 16px; text-align: right; }
/* Home rotation (decision 127): short fade between sets. */
[data-rotate-grid], [data-rotate-band] img, [data-rotate-caption] { transition: opacity 0.35s var(--ease-out); }
[data-rotate-grid].is-swapping, [data-rotate-band].is-swapping img, [data-rotate-band].is-swapping [data-rotate-caption] { opacity: 0; }
@media (prefers-reduced-motion: reduce) { [data-rotate-grid], [data-rotate-band] img, [data-rotate-caption] { transition: none; } }

/* ---------- Process steps ---------- */
.steps { display: grid; gap: 0 40px; counter-reset: none; }
.steps li { padding-block: 28px 32px; border-top: 1px solid var(--hairline); }
.steps h3 { display: flex; align-items: baseline; gap: 16px; }
.steps p { margin-top: 12px; max-width: 34ch; text-wrap: pretty; }

/* ---------- FAQ ---------- */
.faq { border-bottom: 1px solid var(--hairline); }
.faq-item { border-top: 1px solid var(--hairline); }
.faq-item summary {
  position: relative;
  display: block;
  padding: 22px 56px 22px 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.375rem);
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: calc(22px + 0.7em);
  width: 16px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out);
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); }
.faq-item p { max-width: 64ch; padding-bottom: 28px; color: var(--body); text-wrap: pretty; }

/* ---------- Facts, contact, lists ---------- */
.facts { display: grid; margin-top: var(--stack); }
.facts > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 12px;
  padding: 24px 24px 24px 0;
  border-top: 1px solid var(--hairline);
}
.facts dd {
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2rem);
  line-height: 1.28;
  letter-spacing: 0.05em;
  text-wrap: balance;
}
.facts + .text-link { margin-top: 24px; }
.company { color: var(--ink); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.25; }
.contact-grid { display: grid; column-gap: 40px; margin-top: var(--stack); }
.page-body > .contact-grid { margin-top: 40px; }
.contact-grid > div { padding-block: 24px; border-top: 1px solid var(--hairline); }
.contact-grid dd {
  margin-top: 10px;
  color: var(--body-strong);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.375rem);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.contact-grid dd a:not(.text-link) {
  color: var(--ink);
  text-decoration: underline 1px var(--muted);
  text-underline-offset: 5px;
  transition: text-decoration-color 0.2s ease;
}
.contact-grid dd a:not(.text-link):hover { text-decoration-color: var(--ink); }
.contact-cta { margin-top: 40px; }
.channel-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-row { gap: 0 32px; margin-top: 8px; }
.place-list li {
  padding-block: 20px;
  border-top: 1px solid var(--hairline);
  color: var(--body-strong);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.375rem);
  line-height: 1.45;
}
.place-label { display: block; margin-bottom: 6px; }
.place-list + .todo { margin-top: 24px; }

.spec-list > div, .fee-table > div {
  display: grid;
  gap: 4px 32px;
  padding-block: 16px;
  border-top: 1px solid var(--hairline);
}
.spec-list dt, .fee-table dt { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.spec-list dd { color: var(--body-strong); overflow-wrap: anywhere; }
.spec-list dd a { color: var(--ink); text-underline-offset: 5px; text-decoration-color: var(--muted); }
.fee-table dd {
  color: var(--ink);
  font: 400 0.9375rem/1.5 var(--mono);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.fee-table + .prose { margin-top: 16px; }

.tool-list { margin-top: var(--stack); border-bottom: 1px solid var(--hairline); }
.page-body > .tool-list:first-child { margin-top: 0; }
.tool-list li {
  display: grid;
  gap: 12px 40px;
  padding-block: 32px;
  border-top: 1px solid var(--hairline);
}
.tool-list h2, .tool-list h3 { font-size: 1.375rem; line-height: 1.25; letter-spacing: 0.06em; }
.tool-list p { max-width: 64ch; color: var(--body); text-wrap: balance; }

/* ---------- Quote form ---------- */
.quote-form { display: grid; gap: 28px; max-width: 640px; }
.field { display: grid; gap: 8px; }
.field .req { letter-spacing: 0.08em; text-transform: none; color: var(--muted); }
.field input:not([type="checkbox"]):not([type="file"]),
.field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 1.25rem/1.4 var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder { color: var(--placeholder); opacity: 1; }
.field input:focus-visible, .field select:focus-visible {
  outline: none;
  border-bottom-color: var(--ink);
  box-shadow: 0 1px 0 var(--ink);
}
.field select {
  appearance: none;
  padding-right: 32px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--body) 50%),
    linear-gradient(135deg, var(--body) 50%, transparent 50%);
  background-position: calc(100% - 13px) 55%, calc(100% - 8px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field select option { background: var(--canvas); color: var(--ink); }
.file-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; position: relative; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.field .file-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--muted);
  border-radius: 9999px;
  color: var(--ink);
  font: 400 0.75rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.field .file-btn:hover { border-color: var(--ink); }
.file-input:focus-visible + .file-btn { outline: 2px solid var(--ink); outline-offset: 4px; }
.file-input[aria-invalid="true"] + .file-btn { border-color: var(--ink); }
.file-name { color: var(--body); font-size: 1rem; overflow-wrap: anywhere; }
.field-hint { color: var(--muted); font-size: 1rem; }
.field-error { color: var(--ink); font-size: 1rem; line-height: 1.45; }
.field [aria-invalid="true"] { border-bottom-color: var(--ink) !important; }
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: 14px; }
.field--check label {
  font: 400 1rem/1.55 var(--text);
  letter-spacing: 0;
  text-transform: none;
  color: var(--body);
}
.field--check .field-error { grid-column: 2; }
.field--check input {
  appearance: none;
  display: grid;
  place-content: center;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  border: 1px solid var(--body);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
.field--check input::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--ink);
  clip-path: polygon(14% 44%, 0 65%, 40% 100%, 100% 21%, 84% 6%, 39% 70%);
  transform: scale(0);
  transition: transform 0.15s ease;
}
.field--check input:checked::before { transform: scale(1); }
.field--check input[aria-invalid="true"] { border-color: var(--ink); }
.quote-form .btn { justify-self: start; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); }
.footer-grid {
  display: grid;
  gap: 40px;
  padding-block: clamp(56px, 7vw, 80px) 40px;
}
.footer-head { margin-bottom: 16px; }
.footer-col li + li { margin-top: 4px; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--body-strong);
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--ink); text-decoration: underline 1px; text-underline-offset: 5px; }
.footer-name { color: var(--ink); font-size: 1.125rem; }
.footer-legal dl { margin-top: 12px; }
.footer-legal dl > div { padding-block: 6px; }
.footer-legal dt { color: var(--muted); font: 400 0.6875rem/1.6 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.footer-legal dd { color: var(--body); font-size: 1rem; line-height: 1.5; }
.footer-legal dd a { min-height: 0; color: var(--body-strong); text-decoration: none; }
.footer-legal dd a:hover { color: var(--ink); text-decoration: underline 1px; text-underline-offset: 4px; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 28px 40px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}
.site-footer .footer-base { margin-top: 0; }
.brand--footer { margin-right: 0; }
.brand--footer img { width: 28px; height: 28px; }

/* ---------- Mobile quick contact bar ---------- */
.quick-bar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(var(--quickbar-h) + env(safe-area-inset-bottom)); }
  /* The fixed call bar must not cover the hero rail. */
  .hero { min-height: max(calc(100svh - var(--quickbar-h) - env(safe-area-inset-bottom)), 520px); }
  .quick-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--hairline-strong);
    background: var(--canvas);
  }
  .quick-bar a {
    display: grid;
    place-items: center;
    min-height: var(--quickbar-h);
    color: var(--ink);
    font: 400 0.75rem/1 var(--mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
  }
  .quick-bar a + a { border-left: 1px solid var(--hairline-strong); }
}

/* ---------- 404 ---------- */
.page-head--404 { padding-block: clamp(64px, 12vw, 160px); }
.code-404 {
  color: var(--hairline-strong);
  font: 400 clamp(5rem, 3rem + 10vw, 10rem)/1 var(--display);
  letter-spacing: 0.08em;
}
.page-head--404 h1 { margin-top: 16px; }
.page-head--404 .channel-row { margin-top: 40px; }

/* ---------- Breakpoints ---------- */
/* Phones (decision 78): the pages are long to swipe through, so the home stone grid is two columns like the library
   and the gap between page sections is 56px instead of 80px. */
@media (max-width: 599px) {
  :root { --section: 56px; }
  .stone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .stone-grid .name { font-size: 1.125rem; }
}
@media (min-width: 600px) {
  .stone-grid, .facts, .contact-grid, .brand-entries, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-list > div, .fee-table > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; }
}
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .facts, .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr); }
  .tool-list li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: baseline; }
  .spec-list > div, .fee-table > div { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .fee-table dd { text-align: right; }
  /* Wide screens: scrim only behind the copy column, the right of the slab stays lit.
     The 74% plateau reaches at least 860px so the end of the 64px H1 line (gutter + 817px) stays >= 3:1 at 1024-1440px. */
  .hero-body::before {
    background: linear-gradient(to right, rgba(5, 5, 5, 0.8) 0, var(--scrim) max(52%, 860px), rgba(5, 5, 5, 0) max(80%, 1100px));
  }
  .hero-sub::before { content: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Warranty: the two channels side by side. */
.doc-section--first { margin-top: 0; }
.channel-compare { display: grid; gap: 32px 40px; margin-bottom: 24px; }
.channel-compare h3 { margin-bottom: 12px; }
@media (min-width: 768px) {
  .channel-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-compare .spec-list > div { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Library, filters ---------- */
.brand-intro .prose + .prose { margin-top: 1em; }
/* Vicostone page head: text left, one slab photo right from tablets up (fills the right-hand space). */
.brand-intro-fig { margin-top: 32px; }
.brand-intro-fig img { display: block; width: 100%; height: auto; }
.brand-intro-fig figcaption { margin-top: 10px; color: var(--muted); font: 400 0.75rem/1.5 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; }
/* Vicostone logo: its navy lettering is unreadable on the black page, so it sits on a white panel, colours untouched. */
.brand-intro-logo { display: flex; align-items: center; justify-content: center; padding: clamp(24px, 4vw, 48px); background: #fff; }
.brand-intro-logo img { max-width: 28rem; }
.brand-intro-logo--casla img { max-width: 18rem; }
@media (min-width: 1024px) {
  .brand-intro--figure { display: grid; grid-template-columns: minmax(0, 46rem) minmax(0, 1fr); gap: 0 64px; align-items: start; }
  .brand-intro-fig { margin-top: 8px; }
}
.page-cta { margin-top: var(--stack); }
.stone-grid--library { margin-top: 32px; }
.stone-card[hidden] { display: none; }
.filter-bar { display: grid; gap: 14px; margin-top: 8px; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-label {
  min-width: 88px;
  color: var(--muted);
  font: 400 0.75rem/1.5 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.chip {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--muted);
  border-radius: 9999px;
  background: none;
  color: var(--body);
  font: 400 0.75rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
a.chip { display: inline-flex; align-items: center; text-decoration: none; }
.no-js .js-only { display: none; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--canvas); }
.filter-count { color: var(--muted); font-size: 1rem; }
.filter-empty { margin-top: 32px; color: var(--body); }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 56px; }
.pager .chip { min-width: 40px; padding: 0 14px; }
.pager-gap { align-self: center; min-width: 24px; color: var(--muted); font: 400 0.75rem/1 var(--mono); text-align: center; }
.chip[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: var(--canvas); }
.chip:disabled { border-color: var(--hairline); color: var(--muted); cursor: default; }
/* Phones: page numbers on one row, Previous and Next on the row below. */
@media (max-width: 599px) {
  .pager-step { order: 1; }
}

/* ---------- Stone page ---------- */
.stone-head { padding-block: clamp(32px, 5vw, 56px) clamp(24px, 3vw, 32px); }
.stone-kicker { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 12px; }
.stone-kicker span {
  color: var(--muted);
  font: 400 0.75rem/1.5 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
/* Same badge on the stone page, where the ground is the black canvas: white block, black text. */
.stone-kicker .promo-tag {
  padding: 4px 12px 2px;
  background: var(--ink);
  color: var(--canvas);
  font: 400 1.5rem/1.1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.stone-kicker .promo-tag span { color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.stone-kicker .promo-tag:hover { background: var(--body-strong); }
.stone-kicker .promo-tag:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.stone-head h1 { font-size: clamp(1.875rem, 1.1rem + 3.4vw, 3rem); line-height: 1.28; letter-spacing: 0.05em; max-width: 20em; }
.stone-slab-frame { position: relative; background: var(--surface-soft); }
.stone-slab-frame img { width: 100%; height: auto; }
.stone-slab-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}
.stone-slab figcaption {
  padding-top: 12px;
  color: var(--muted);
  font: 400 0.75rem/1.5 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.stone-body { display: grid; gap: 40px; padding-block: clamp(40px, 6vw, 72px); }
.price-block { padding: 28px 0 0; border-top: 1px solid var(--ink); }
.price-block-title {
  margin-bottom: 20px;
  color: var(--muted);
  font: 400 0.75rem/1.5 var(--mono);
  letter-spacing: 0.18em;
}
.price-lines > div + div { margin-top: 20px; }
.price-lines dt { color: var(--body); font-size: 1rem; }
.price-lines dd { margin-top: 4px; white-space: nowrap; color: var(--body-strong); font-size: 1.125rem; }
.price-num {
  color: var(--ink);
  font: 400 clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem)/1.2 var(--display);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.price-was { display: block; margin-bottom: 2px; color: var(--muted); font: 400 1rem/1.4 var(--mono); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.price-was s { text-decoration: line-through 1px var(--muted); }
.price-m2 { display: block; white-space: nowrap; margin-top: 2px; color: var(--body-strong); font: 400 1rem/1.4 var(--mono); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.price-m2 s { display: block; color: var(--muted); text-decoration: line-through 1px var(--muted); }
.price-basis { margin-top: 20px; color: var(--body-strong); font-size: 1.125rem; line-height: 1.6; }
.price-basis + .price-basis { margin-top: 8px; }
.price-basis a, .price-source a:not(.text-link) { color: var(--ink); text-decoration: underline 1px var(--muted); text-underline-offset: 4px; }
.price-basis a:hover, .price-source a:not(.text-link):hover { text-decoration-color: var(--ink); }
.price-source { margin-top: 12px; color: var(--muted); font-size: 1rem; }
/* Price-group pages (decision 80): the two channels side by side from tablets up, m2 price first, metre-run below. */
.price-lines--row { display: grid; gap: 24px 48px; max-width: 56rem; }
.price-lines--row > div + div { margin-top: 0; }
.price-alt { display: block; margin-top: 4px; color: var(--body-strong); font-size: 1.125rem; }
@media (min-width: 600px) { .price-lines--row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.group-price .price-basis, .group-price .price-source { max-width: 72ch; }
.group-price .price-source + .text-link { margin-top: 8px; }
.price-contact { color: var(--ink); font: 400 1.5rem/1.3 var(--display); text-transform: uppercase; letter-spacing: 0.05em; }
.price-actions { display: grid; gap: 12px; margin-top: 28px; }
.price-actions .btn { width: 100%; }
.section-tight { padding-bottom: clamp(56px, 7vw, 88px); }
.h-section {
  margin-bottom: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2rem);
}
.app-grid, .app-row { display: grid; gap: 16px; }
/* Two photos per row from phones up (decision 78): equal height per row, widths in proportion to each photo's aspect ratio. */
.app-row { display: flex; align-items: flex-start; }
.app-item { flex: var(--r) 1 0%; min-width: 0; }
.app-item:only-child { flex: 0 1 calc(50% - 8px); }
.app-item img { width: 100%; height: auto; background: var(--surface-soft); }
/* Library and similar stones: two columns already on phones, the list is long. */
.stone-grid--library, .stone-grid--small { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
.stone-grid--library .name, .stone-grid--small .name { font-size: 1.125rem; }

/* ---------- Price list ---------- */
.table-scroll { overflow-x: auto; margin-bottom: 24px; }
.table-scroll:focus-visible { outline-offset: 2px; }
/* Fixed layout: the group column, then four equal price columns. Column rules (decision 73): a stronger rule
   where each channel starts, a hairline between its đ/m2 and đ/md. */
.price-table { width: 100%; min-width: 640px; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.price-table .col-group { width: 14%; }
.price-table th, .price-table td { padding: 14px 16px; border-bottom: 1px solid var(--hairline); text-align: right; }
.price-table .ch { border-left: 1px solid var(--hairline-strong); }
.price-table .sub { border-left: 1px solid var(--hairline); }
.price-table thead th {
  color: var(--muted);
  font: 400 0.75rem/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  vertical-align: bottom;
}
.price-table thead tr:first-child th[scope="colgroup"] { border-bottom-color: var(--hairline-strong); text-align: center; color: var(--body); }
.price-table th[scope="row"], .price-table thead tr:first-child th:first-child { text-align: left; }
.price-table tbody th { color: var(--ink); font: 400 1.25rem/1 var(--display); }
.price-table td { color: var(--ink); font: 400 1rem/1.4 var(--mono); }
.promo-table .col-group { width: 24%; }
.promo-table td.promo-md { font-size: 1.125rem; }
.promo-terms { display: grid; gap: 10px; max-width: 72ch; }
.promo-terms li { padding-left: 20px; position: relative; }
.promo-terms li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 8px; border-top: 1px solid var(--muted); }
.code-group { padding-block: 20px; border-top: 1px solid var(--hairline); }
.prose + .code-group { margin-top: 24px; }
.code-group h3 { margin-bottom: 12px; }
.code-list + .text-link { margin-top: 8px; }
.code-list { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.code-list li { font-size: 1rem; color: var(--body); }
.code-list a { color: var(--ink); text-decoration: underline 1px var(--muted); text-underline-offset: 4px; }
.code-list a:hover { text-decoration-color: var(--ink); }
.tag {
  margin-left: 4px;
  padding: 2px 6px;
  border: 1px solid var(--hairline-strong);
  color: var(--body);
  font: 400 0.6875rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-decoration: none;
}

@media (min-width: 600px) {
  .stone-grid--library { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
}
@media (min-width: 1024px) {
  .stone-body {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    grid-template-rows: auto 1fr;
    gap: 32px 64px;
    align-items: start;
  }
  .stone-desc { grid-column: 1; grid-row: 1; }
  .stone-specs { grid-column: 1; grid-row: 2; }
  .price-block { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 24px; }
  .stone-grid--library, .stone-grid--small { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 32px; }
}

/* ---------- Knowledge articles (/kien-thuc/, decision 81) ----------
   Read surface: the frame (H1, byline, answer, section openers, tables, "Xem tiếp") speaks the site's language of
   uppercase display, mono labels and 1px rules; the column itself stays a calm EB Garamond measure of about 68ch. */
.article-head h1 { max-width: 22em; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 20px;
  color: var(--muted);
  font: 400 0.75rem/1.6 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.article-answer {
  max-width: 60ch;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  color: var(--body-strong);
  font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.375rem);
  line-height: 1.5;
  text-wrap: pretty;
}
/* Contents rail ("Trong bài"): only from 1024px, sticky beside the reading column. */
.article-toc { display: none; }
.article-toc-head {
  margin-bottom: 12px;
  color: var(--muted);
  font: 400 0.75rem/1.5 var(--mono);
  letter-spacing: 0.18em;
}
.article-toc ol { padding-top: 12px; border-top: 1px solid var(--hairline); }
.article-toc li + li { margin-top: 10px; }
.article-toc a {
  color: var(--body);
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: underline 1px transparent;
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.article-toc a:hover { color: var(--ink); text-decoration-color: var(--muted); }
@media (min-width: 1024px) {
  .article-layout { display: grid; grid-template-columns: minmax(0, 68ch) minmax(0, 1fr); column-gap: clamp(48px, 6vw, 96px); align-items: start; }
  .article-body { grid-column: 1; grid-row: 1; }
  .article-toc { display: block; grid-column: 2; grid-row: 1; position: sticky; top: 32px; max-width: 20rem; }
}
.article-body {
  max-width: 68ch;
  padding-bottom: var(--stack);
  color: var(--body);
  line-height: 1.65;
  text-wrap: pretty;
}
.article-body > * + * { margin-top: 1em; }
.article-body h2 {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2rem);
}
.article-body h3 { margin-top: 2em; font-size: 1.25rem; }
.article-body h2 + *, .article-body h3 + * { margin-top: 16px; }
.article-body a {
  color: var(--ink);
  text-decoration: underline 1px var(--muted);
  text-underline-offset: 5px;
  transition: text-decoration-color 0.2s ease;
}
.article-body a:hover { text-decoration-color: var(--ink); }
/* One weight only (400): emphasis is brightness, never bold or a synthesized italic. */
.article-body strong { font-weight: 400; color: var(--ink); }
.article-body em { font-style: normal; color: var(--body-strong); }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body ul { list-style: square; }
.article-body ol { list-style: decimal; }
.article-body li + li { margin-top: 0.5em; }
.article-body li::marker { color: var(--muted); font-family: var(--mono); font-size: 0.875em; }
.article-body .table-scroll { margin-block: 28px; }
.data-table { width: 100%; min-width: 30rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 12px 16px; border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: top; }
.data-table th + th, .data-table td + td { border-left: 1px solid var(--hairline-strong); }
.data-table th:first-child, .data-table td:first-child { padding-left: 0; }
.data-table th:last-child, .data-table td:last-child { padding-right: 0; }
.data-table thead th {
  border-bottom-color: var(--hairline-strong);
  color: var(--muted);
  font: 400 0.75rem/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: bottom;
}
.data-table td { color: var(--body-strong); font-size: 1rem; line-height: 1.5; }
.data-table td[style*="right"], .data-table th[style*="right"] { font-family: var(--mono); font-size: 0.9375rem; }
.article-next { padding-bottom: var(--section); }
.article-next-head {
  margin-bottom: 20px;
  color: var(--muted);
  font: 400 0.75rem/1.5 var(--mono);
  letter-spacing: 0.18em;
}
.article-next .stone-grid + .article-links { margin-top: clamp(40px, 5vw, 56px); }
.article-links { border-bottom: 1px solid var(--hairline); }
.article-links li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  padding-block: 16px;
  border-top: 1px solid var(--hairline);
}
.article-links a {
  color: var(--ink);
  font: 400 1.125rem/1.35 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: underline 1px transparent;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.2s ease;
}
.article-links a:hover { text-decoration-color: var(--ink); }
.article-links span { color: var(--muted); font: 400 0.75rem/1.5 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.article-cta { margin-top: 40px; }
/* Listing: a contents page grouped by theme; from 1024px the question sits left, its answer right (5/7). */
.article-index-list > li { padding-block: 28px; }
.article-index-list > li + li { border-top: 1px solid var(--hairline); }
.article-index-list h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); max-width: 22em; }
.article-index-list h3 a { text-decoration: underline 1px transparent; text-underline-offset: 6px; transition: text-decoration-color 0.2s ease; }
.article-index-list h3 a:hover { text-decoration-color: var(--ink); }
.article-index-answer { max-width: 64ch; margin-top: 12px; color: var(--body); text-wrap: pretty; }
.article-index-list .article-meta { margin-top: 12px; }
@media (min-width: 1024px) {
  .article-index-list > li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; }
  .article-index-list h3 { grid-row: 1 / span 2; }
  .article-index-answer { margin-top: 0; }
}
/* "Đọc thêm" line from /bang-gia/, price-group pages and /chinh-sach/van-chuyen-lap-dat/ to the articles. */
.kt-more { margin-top: 20px; }
.group-price .kt-more { max-width: 72ch; }

/* Construction projects (decision 104). */
.project-card .frame { aspect-ratio: 4 / 3; }
.project-quote { max-width: 56ch; padding-top: 20px; border-top: 1px solid var(--hairline); }
.project-quote p { color: var(--body-strong); font-size: 1.25rem; line-height: 1.6; }
.project-quote p + p { margin-top: 12px; }
.project-quote footer { margin-top: 16px; color: var(--muted); font: 400 0.75rem/1.5 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; }
.project-body .stone-specs { margin-top: 0; }

/* Suggestion rows at the end of a stone page (similar stones, stones on offer): on phones each row scrolls sideways
   so the page does not grow by two more screens. */
.de-xuat + .de-xuat { padding-top: 0; }
@media (max-width: 599px) {
  .de-xuat-row {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity;
    margin-inline: -16px; padding-inline: 16px; padding-bottom: 8px;
  }
  .de-xuat-row > .stone-card { flex: 0 0 44vw; min-width: 0; scroll-snap-align: start; }
}

/* Certificates page (decision 111, Q-f): scan beside its facts, code lists as plain mono tokens. */
.cert-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .cert-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; } }
.cert-fig a { display: block; border: 1px solid var(--hairline); }
.cert-fig a:hover { border-color: var(--hairline-strong); }
.cert-fig img { display: block; width: 100%; height: auto; }
.cert-fig figcaption { margin-top: 12px; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.cert-links { margin-top: 24px; }
.cert-more { margin-top: 24px; border-top: 1px solid var(--hairline); padding-top: 16px; }
.cert-more summary { cursor: pointer; color: var(--ink); }
.cert-more a { display: block; margin-top: 16px; max-width: 720px; border: 1px solid var(--hairline); }
.cert-more img { display: block; width: 100%; height: auto; }
.cert-sub { margin: 40px 0 16px; font-size: 1.25rem; }
.code-list { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 24px; padding: 0; list-style: none; font-family: var(--mono); font-size: 1rem; }
.code-list a { color: var(--ink); text-underline-offset: 5px; text-decoration-color: var(--muted); }

/* Outdoor article (decision 111, Q-g): comparison table scrolls sideways on phones; figures keep their ratio. */
.cmp-table { min-width: 760px; table-layout: auto; }
.cmp-table th, .cmp-table td { text-align: center; }
.cmp-table th[scope="row"], .cmp-table td:first-child, .cmp-table thead th:nth-child(-n+2) { text-align: left; }
.cmp-table tbody th { font-size: 1rem; }
.cmp-table td { font-size: 1rem; }
.article-fig { margin: 16px 0 32px; }
.article-fig img { display: block; width: 100%; height: auto; }

/* ---------- Stone page frame (decision 113) ----------
   Head block: slab on the left, information column on the right from 1024px; on phones one column and the
   price and buttons come before the quick specs and badges so they stay in the first screen. Same ink, hairlines
   and 400 weight as the rest of the page; badges are text plus a drawn icon, pill-free (only .btn is a pill). */
.stone-hero { display: grid; gap: 24px; padding-bottom: clamp(24px, 4vw, 40px); }
.stone-hero .stone-slab { margin: 0; min-width: 0; }
.stone-info { display: flex; flex-direction: column; min-width: 0; }
.stone-material {
  color: var(--muted);
  font: 400 0.75rem/1.5 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.stone-lead { margin-top: 10px; max-width: 52ch; color: var(--body-strong); font-size: 1.125rem; line-height: 1.5; text-wrap: pretty; }
.quick-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin-top: 20px; }
.quick-specs > div { padding: 10px 0; border-top: 1px solid var(--hairline); }
.quick-specs dt { color: var(--muted); font: 400 0.75rem/1.5 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; }
.quick-specs dd { margin-top: 2px; color: var(--body-strong); font-size: 1.0625rem; line-height: 1.4; }
.stone-badges { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px 8px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--hairline-strong);
  color: var(--body-strong);
  font: 400 0.75rem/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
.badge:hover { border-color: var(--ink); background-color: rgba(255, 255, 255, 0.06); }
.badge:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.badge-icon { flex: none; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.badge-more { display: flex; align-items: center; }
.badge-more .text-link--small { margin-left: 0; }
.stone-info .price-block { margin-top: 20px; position: static; grid-column: auto; grid-row: auto; }
.stone-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.stone-actions .btn { flex: 1 1 200px; }
.form-note { margin: 0 0 16px; color: var(--body-strong); font-size: 1.125rem; }

/* Phones: slab, material, price lines, buttons, price notes, one-sentence lead, quick specs, badges. The information column and
   the price block dissolve into the hero grid (display: contents) so `order` can put the buttons right under the price lines. */
.stone-visual { display: contents; }
/* The slab label repeats the H1, so it is dropped here; the image alt carries the name. */
.stone-visual .stone-slab figcaption { display: none; }
@media (max-width: 1023px) {
  .stone-hero { gap: 0; }
  .stone-info, .stone-info .price-block { display: contents; }
  .stone-visual .stone-slab { order: 1; }
  .stone-info .stone-material { order: 2; margin-top: 12px; font-size: 0.6875rem; letter-spacing: 0.1em; }
  .stone-info .price-block-title { order: 3; margin: 12px 0 6px; padding-top: 12px; border-top: 1px solid var(--ink); }
  .stone-info .price-lines, .stone-info .price-contact { order: 4; }
  .stone-info .price-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .stone-info .price-lines > div + div { margin-top: 0; }
  .stone-info .price-lines .price-num { font-size: 1.625rem; }
  .stone-info .price-block > p { order: 7; }
  .stone-info .price-block > p:first-of-type { order: 5; margin-top: 8px; }
  .stone-info .stone-actions { order: 6; margin-top: 12px; flex-wrap: nowrap; }
  .stone-info .stone-actions .btn { flex: 1 1 0; padding-inline: 12px; min-width: 0; }
  .stone-info .stone-lead { order: 8; margin-top: 24px; }
  .stone-visual .quick-specs { order: 9; margin-top: 20px; }
  .stone-visual .stone-badges { order: 10; }
  .stone-head { padding-top: 20px; padding-bottom: 14px; }
}
@media (min-width: 1024px) {
  .stone-hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 48px; align-items: start; }
  .stone-visual { display: block; }
  .stone-visual .quick-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stone-head { padding-top: 32px; padding-bottom: 20px; }
  .stone-lead { margin-top: 8px; }
  .stone-body { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .stone-info .price-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .stone-info .price-lines > div + div { margin-top: 0; }
  .stone-info .price-lines .price-num { font-size: 1.625rem; }
  .stone-info .price-block { margin-top: 16px; padding-top: 16px; }
  .stone-info .price-block-title { margin-bottom: 10px; }
  .stone-info .price-basis { margin-top: 10px; font-size: 1rem; line-height: 1.5; }
  .stone-info .price-basis + .price-basis { margin-top: 6px; }
  .stone-info .price-source { margin-top: 6px; font-size: 0.9375rem; line-height: 1.45; }
  .stone-info .stone-actions { margin-top: 16px; }
}

/* Card tags (top-right of a card photo): "Ngoại thất" and "Mới". The discount badge stays top-left. */
.card-tags { position: absolute; top: 0; right: 0; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; }
.card-tags span {
  padding: 4px 10px 3px;
  border: 1px solid var(--ink);
  border-width: 0 0 1px 1px;
  background: var(--canvas);
  color: var(--ink);
  font: 400 0.75rem/1.2 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.card-tags span + span { border-top: 0; }

/* Technical specifications: accordion on phones (and without JS), tabs from 768px (site.js). */
.spec-tabs .tab-item { border-top: 1px solid var(--hairline); }
.spec-tabs .tab-item:last-of-type { border-bottom: 1px solid var(--hairline); }
.tab-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  color: var(--ink);
  font: 400 1.125rem/1.25 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.tab-item summary::-webkit-details-marker { display: none; }
.tab-item summary::after { content: "+"; color: var(--muted); font: 400 1.25rem/1 var(--mono); }
.tab-item[open] summary::after { content: "\2212"; }
.tab-item summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tab-panel { padding-bottom: 28px; }
.spec-tabs .spec-list { margin-top: 0; max-width: 64rem; }
.tab-list { display: none; }
@media (min-width: 768px) {
  .spec-tabs.is-tabs .tab-list { display: flex; flex-wrap: wrap; gap: 8px 8px; margin-top: 20px; }
  .spec-tabs.is-tabs .tab-item { border: 0; }
  .spec-tabs.is-tabs .tab-item summary { display: none; }
  .spec-tabs.is-tabs .tab-list { padding-bottom: 20px; border-bottom: 1px solid var(--hairline); }
  .spec-tabs.is-tabs .tab-panel { padding-top: 24px; padding-bottom: 8px; }
}
.tab-btn {
  min-height: 44px;
  padding: 0 calc(20px - 0.12em) 0 20px;
  border: 1px solid var(--hairline-strong);
  border-radius: 9999px;
  background: none;
  color: var(--body);
  font: 400 0.75rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
.tab-btn:hover { border-color: var(--ink); color: var(--ink); }
.tab-btn[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: var(--canvas); }
.tab-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Edge profiles: thin-line section views, drawn by hand from Green-A's profile sheet. */
.edge-group-title { margin: 8px 0 12px; color: var(--ink); font: 400 1.25rem/1.3 var(--display); letter-spacing: 0.04em; }
.edge-group-title:not(:first-child) { margin-top: 32px; }
.edge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.edge { padding: 12px 12px 10px; border: 1px solid var(--hairline); }
.edge svg { display: block; width: 100%; height: auto; }
.edge path { fill: none; stroke: var(--body-strong); stroke-width: 1.25; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.edge p { display: flex; justify-content: space-between; margin-top: 6px; font: 400 0.75rem/1.5 var(--mono); letter-spacing: 0.14em; }
.edge-no { color: var(--ink); }
.edge-note { color: var(--muted); text-transform: none; letter-spacing: 0.08em; }
@media (min-width: 600px) { .edge-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .edge-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.related-list { margin-top: 0; }

/* ---------- Compare up to 3 codes (decision 114) ----------
   Toggle on cards and in the stone page head, a tray fixed to the bottom, the /so-sanh/ table. Same ink and hairlines;
   the toggle box and the tray thumbs are square-cornered, only the buttons are pills. Rows that differ get a faint
   grey ground (white 6% on the canvas), never a colour. */
.compare-icon { flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.compare-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--body);
  font: 400 0.75rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s var(--ease-out);
}
.compare-box {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--muted);
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
.compare-box .compare-icon { stroke: var(--canvas); stroke-width: 2; opacity: 0; }
.compare-btn:hover { color: var(--ink); }
.compare-btn:hover .compare-box { border-color: var(--ink); }
.compare-btn[aria-pressed="true"] { color: var(--ink); }
.compare-btn[aria-pressed="true"] .compare-box { border-color: var(--ink); background: var(--ink); }
.compare-btn[aria-pressed="true"] .compare-box .compare-icon { opacity: 1; }
.compare-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.casla-card .compare-btn { display: flex; }
.compare-line { margin-top: 8px; }
@media (max-width: 1023px) { .stone-info .compare-line { order: 6; margin-top: 4px; } }

.compare-tray {
  position: fixed;
  inset: auto 0 0;
  z-index: 25;
  border-top: 1px solid var(--hairline-strong);
  background: var(--canvas);
}
.compare-tray-in { position: relative; display: flex; align-items: center; gap: 12px 24px; min-height: 72px; padding-block: 12px; }
.compare-tray-head { flex: none; color: var(--muted); font: 400 0.75rem/1.5 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; }
.compare-tray-list { display: flex; gap: 16px; }
.compare-slot { display: flex; align-items: center; gap: 8px; }
.compare-slot-img { position: relative; display: block; flex: none; width: 72px; aspect-ratio: 12 / 5; overflow: hidden; background: var(--surface-soft); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.compare-slot-img img { width: 100%; height: 100%; object-fit: cover; }
.compare-slot.is-empty .compare-slot-img { background: none; box-shadow: none; outline: 1px dashed var(--hairline-strong); outline-offset: -1px; }
.compare-slot-info { display: grid; gap: 1px; min-width: 0; }
.compare-slot-code { color: var(--body-strong); font: 400 0.75rem/1.3 var(--mono); letter-spacing: 0.06em; }
.compare-slot-cost { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.compare-slot-num { color: var(--ink); font: 400 1rem/1.25 var(--display); letter-spacing: 0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.compare-slot-was { color: var(--muted); font: 400 0.6875rem/1.3 var(--mono); font-variant-numeric: tabular-nums; text-decoration: line-through 1px var(--muted); white-space: nowrap; }
.compare-slot.is-empty .compare-slot-code { color: var(--muted); }
.compare-remove, .compare-drop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s var(--ease-out);
}
.compare-remove:hover, .compare-drop:hover { color: var(--ink); }
.compare-remove:focus-visible, .compare-drop:focus-visible, .compare-go:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.compare-tray-msg { flex: 1; min-width: 0; color: var(--body); font-size: 0.9375rem; line-height: 1.4; text-align: right; }
.compare-go { flex: none; }
html.has-compare-tray body { padding-bottom: 72px; }
@media (max-width: 767px) {
  .compare-tray { bottom: calc(var(--quickbar-h) + env(safe-area-inset-bottom)); }
  .compare-tray-in { gap: 12px; min-height: 64px; padding-block: 8px; }
  .compare-tray-head { display: none; }
  .compare-tray-list { gap: 8px; }
  .compare-slot { position: relative; flex-direction: column; align-items: flex-start; gap: 4px; width: 62px; }
  .compare-slot-img { width: 60px; }
  .compare-slot-info { gap: 0; }
  .compare-slot-num { font-size: 0.875rem; letter-spacing: 0.01em; }
  .compare-slot-was { font-size: 0.625rem; }
  .compare-slot-code { font-size: 0.6875rem; letter-spacing: 0.02em; }
  .compare-remove { position: absolute; top: -4px; right: -4px; min-width: 24px; min-height: 24px; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--hairline-strong); color: var(--ink); }
  .compare-tray-msg { position: absolute; right: 0; bottom: 100%; left: 0; padding: 10px var(--gutter); border-top: 1px solid var(--hairline-strong); background: var(--canvas); text-align: left; }
  .compare-tray-msg:empty { display: none; }
  .compare-go { margin-left: auto; padding-inline: 16px; }
  html.has-compare-tray body { padding-bottom: calc(var(--quickbar-h) + 80px + env(safe-area-inset-bottom)); }
}

/* /so-sanh/: photos on top, then one row per attribute; the attribute column stays put while the table scrolls. */
.compare-empty .channel-row { margin-top: 24px; }
.compare-legend { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--muted); font-size: 0.9375rem; }
.compare-legend-swatch { flex: none; width: 16px; height: 16px; background: #141414; box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.compare-view { min-width: 0; max-width: 100%; }
.compare-scroll { position: relative; max-width: 100%; margin-bottom: 0; } /* keeps the visually hidden labels inside the scroller */
.compare-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.compare-table--2 { min-width: 520px; }
.compare-table--3 { min-width: 712px; }
.compare-table th, .compare-table td { padding: 14px 16px; border-top: 1px solid var(--hairline); text-align: left; vertical-align: top; }
.compare-table thead th { padding-top: 0; border-top: 0; }
.compare-table th:first-child { position: sticky; left: 0; z-index: 1; width: 180px; padding-left: 0; background: var(--canvas); }
.compare-table tbody th { color: var(--muted); font: 400 0.75rem/1.5 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.compare-table td { color: var(--body-strong); font-size: 1.0625rem; line-height: 1.45; overflow-wrap: anywhere; }
.compare-table tr.is-diff th, .compare-table tr.is-diff td { background: #141414; }
.compare-table tr.is-diff th:first-child { padding-left: 12px; }
.compare-photo { position: relative; display: block; aspect-ratio: 12 / 5; overflow: hidden; background: var(--surface-soft); }
.compare-photo::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, 0.1); pointer-events: none; }
.compare-photo img { width: 100%; height: 100%; object-fit: cover; }
.compare-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 14px; }
.compare-title .code { color: var(--muted); font: 400 0.75rem/1.5 var(--mono); letter-spacing: 0.14em; }
.compare-title .name { color: var(--ink); font: 400 1.25rem/1.25 var(--display); letter-spacing: 0.05em; text-transform: uppercase; }
.compare-title .code:only-child { color: var(--ink); font: 400 1.25rem/1.25 var(--display); letter-spacing: 0.05em; }
.compare-drop { margin-top: 6px; font: 400 0.6875rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.compare-price > div + div { margin-top: 12px; }
.compare-price dt { color: var(--body); font-size: 0.9375rem; }
.compare-price dd { margin-top: 2px; color: var(--body-strong); font-size: 1rem; }
.compare-price .price-num { font-size: 1.5rem; }
.compare-price .price-was { font-size: 0.875rem; }
.compare-price-note { margin-top: 10px; color: var(--muted); font-size: 0.875rem; line-height: 1.4; }
.compare-actions .text-link { display: flex; min-height: 40px; }
.compare-actions .btn { margin-top: 8px; padding: 10px 16px; white-space: normal; text-align: center; line-height: 1.3; }
.compare-view .page-cta { margin-top: 40px; }
@media (max-width: 767px) {
  .compare-table th:first-child { width: 112px; }
  .compare-table th, .compare-table td { padding: 12px; }
  .compare-table td { font-size: 1rem; }
  .compare-title .name, .compare-title .code:only-child { font-size: 1.0625rem; }
}

/* ---------- In-place filter (decision 114) ----------
   Desktop: the groups as chip rows, then count and "Xóa lọc". Phones (with JavaScript): a "Lọc" button opens the groups
   as a sheet from the bottom over a scrim; without JavaScript the rows stay in the page. */
.loc { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.loc-groups { display: grid; gap: 14px; }
.loc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; order: 2; }
.loc-open { display: none; gap: 10px; }
.loc-panel-head, .loc-panel-foot { display: none; }
.loc-clear {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 400 0.75rem/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: underline 1px var(--muted);
  text-underline-offset: 7px;
  cursor: pointer;
}
.loc-clear:hover { text-decoration-color: var(--ink); }
.loc-clear:focus-visible, .loc-close:focus-visible, .loc-panel-title:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.loc-clear[hidden] { display: none; }
.stone-grid--library > li[data-loc-out] { display: none; }
@media (max-width: 767px) {
  .js .loc-bar { order: 0; }
  .js .loc-open { display: inline-flex; }
  .js .loc-panel {
    position: fixed;
    inset: auto 0 0;
    z-index: 46;
    max-height: 85svh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 var(--gutter) env(safe-area-inset-bottom);
    border-top: 1px solid var(--hairline-strong);
    background: var(--canvas);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.4s var(--ease-out), visibility 0s linear 0.4s;
  }
  .js .loc.is-open .loc-panel { transform: none; visibility: visible; transition: transform 0.4s var(--ease-out); }
  .js .loc.is-open::before { content: ""; position: fixed; inset: 0; z-index: 45; background: var(--scrim); }
  .js .loc-panel-head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    border-bottom: 1px solid var(--hairline);
    background: var(--canvas);
  }
  .loc-panel-title { color: var(--ink); font: 400 1.375rem/1.25 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
  .loc-close { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -12px; border: 0; background: none; color: var(--ink); cursor: pointer; }
  .js .loc-groups { padding-block: 20px; gap: 20px; }
  .js .loc-groups .filter-label { flex-basis: 100%; }
  .js .loc-panel-foot {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 12px;
    border-top: 1px solid var(--hairline);
    background: var(--canvas);
  }
  .loc-done { flex: 1; max-width: 240px; }
  html.loc-lock { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .js .loc-panel, .js .loc.is-open .loc-panel { transition: none; }
}

/* ---------- Quote form, Vietnamese (decision 115) ----------
   Choice groups are pills (the chip family): the real radio or checkbox stays in the page for keyboard and screen
   readers, the pill shows its state (white fill when chosen). Text areas and the code search share the underline field. */
.field--choice, .field--files { min-width: 0; margin: 0; padding: 0; border: 0; }
.field legend {
  margin-bottom: 8px;
  padding: 0;
  color: var(--muted);
  font: 400 0.75rem/1.5 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.field-more > summary { cursor: pointer; padding: 10px 0; color: var(--muted); font: 400 0.75rem/1.5 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; }
.field-more > summary:hover { color: var(--ink); }
.field-more-body { display: grid; gap: 20px; padding-top: 8px; }
@media (max-width: 767px) {
  .quote-form { gap: 20px; }
  .quote-form .field input:not([type="checkbox"]):not([type="file"]), .quote-form .field select { min-height: 44px; padding: 6px 0; }
  .quote-form .choice-row { gap: 6px; }
}
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; cursor: pointer; }
.choice[hidden] { display: none; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--muted);
  border-radius: 9999px;
  color: var(--body);
  font: 400 0.75rem/1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.choice:hover span { border-color: var(--ink); color: var(--ink); }
.choice input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--canvas); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.field textarea {
  width: 100%;
  min-height: 96px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 1.25rem/1.4 var(--text);
  resize: vertical;
}
.field textarea::placeholder { color: var(--placeholder); opacity: 1; }
.field textarea:focus-visible { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field input:disabled { border-bottom-style: dashed; cursor: not-allowed; }

/* Code search: chosen codes above the box (square tags with the slab thumb), options listed under it. */
.stone-chosen { display: flex; flex-wrap: wrap; gap: 8px; }
.stone-chosen:empty { display: none; }
.stone-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 4px 4px 6px; border: 1px solid var(--hairline-strong); }
.stone-chip img { width: 48px; height: 20px; object-fit: cover; }
.stone-chip-code { color: var(--ink); font: 400 0.8125rem/1.2 var(--mono); letter-spacing: 0.06em; }
.stone-chip-name { color: var(--body); font-size: 1rem; }
.stone-chip-x { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.stone-chip-x svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.stone-chip-x:hover { color: var(--ink); }
.stone-chip-x:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.stone-box { position: relative; }
.stone-options {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  z-index: 5;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--hairline-strong);
  background: var(--canvas);
}
.stone-option { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; cursor: pointer; }
.stone-option + .stone-option { border-top: 1px solid var(--hairline); }
.stone-option img { flex: none; width: 60px; height: 25px; object-fit: cover; }
.stone-option-code { flex: none; color: var(--ink); font: 400 0.8125rem/1.2 var(--mono); letter-spacing: 0.06em; }
.stone-option-name { min-width: 0; color: var(--body); font-size: 1rem; overflow-wrap: anywhere; }
.stone-option[aria-selected="true"], .stone-option:hover { background: rgba(255, 255, 255, 0.08); }
.stone-option--none { color: var(--muted); cursor: default; }

/* Drawings: one empty slot shows at a time (bao-gia.js); without JavaScript all three show. */
.field--files { display: grid; gap: 12px; }
.field--files .file-row[hidden] { display: none; }
.file-clear {
  min-height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 400 0.75rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: underline 1px var(--muted);
  text-underline-offset: 6px;
  cursor: pointer;
}
.file-clear:hover { text-decoration-color: var(--ink); }
.file-clear:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.file-clear[hidden] { display: none; }
.field-hint a { color: var(--ink); text-decoration: underline 1px var(--muted); text-underline-offset: 5px; }
.field-hint a:hover { text-decoration-color: var(--ink); }
.form-submit { display: grid; gap: 12px; justify-items: start; }

/* Phone shortcut bar, four items (decision 115): drawn icon above a mono label; the current section is underlined. */
@media (max-width: 767px) {
  .quick-bar--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick-bar--four a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px 4px 5px; font-size: 0.6875rem; letter-spacing: 0.1em; }
  .quick-bar--four a[aria-current] span { text-decoration: underline 1px var(--ink); text-underline-offset: 4px; }
  .quick-bar--four a:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
  .qb-icon { flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .qb-count { display: inline-block; margin-left: 4px; padding: 1px 5px; background: var(--ink); color: var(--canvas); letter-spacing: 0; }
  .qb-count:empty { display: none; }
}

/* YouTube embed that loads on click (partials/video-youtube.njk): cover first, iframe only after the click. */
.video-embed { margin-block: 1.5em; }
.video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-soft); border: 1px solid var(--hairline); }
.video-frame img, .video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-frame img { object-fit: cover; } /* hqdefault is 4:3 with black bars above and below: cover trims them */
.video-play {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  background: var(--scrim);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.js .video-play { display: flex; }
.video-play:hover { background: rgba(5, 5, 5, 0.55); }
.video-embed figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }

/* ---------- Header search (decision 121): magnifier button + full-page panel ---------- */
.search-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--body);
  cursor: pointer;
  transition: color 0.2s ease;
}
.js .search-toggle { display: inline-grid; }
.search-toggle:hover, .search-toggle[aria-expanded="true"] { color: var(--ink); }
html.search-open { overflow: hidden; }
.search-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--scrim);
}
.search-panel[hidden] { display: none; }
.search-sheet {
  display: flex;
  flex-direction: column;
  max-height: 100%;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline-strong);
}
.search-sheet-inner { display: flex; flex-direction: column; min-height: 0; width: 100%; padding-bottom: 8px; }
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
  border-bottom: 1px solid var(--hairline);
}
.search-icon { flex: none; color: var(--muted); }
.search-input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 1.25rem/1.4 var(--text);
  appearance: none;
}
.search-input::placeholder { color: var(--placeholder); opacity: 1; }
.search-input:focus-visible { outline: none; }
.search-bar:focus-within { border-bottom-color: var(--ink); }
.search-close {
  flex: none;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--muted);
  border-radius: 9999px;
  background: none;
  color: var(--ink);
  font: 400 0.75rem/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.search-close:hover { border-color: var(--ink); }
.search-status {
  min-height: 1.5em;
  margin: 12px 0 0;
  color: var(--muted);
  font: 400 0.75rem/1.5 var(--mono);
  letter-spacing: 0.08em;
}
.search-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.search-item { border-top: 1px solid var(--hairline); }
.search-item:first-child { border-top: 0; }
.search-link {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 8px 12px 8px 0;
  color: var(--body);
  text-decoration: none;
  border-left: 2px solid transparent;
}
.search-item[aria-selected="true"] .search-link, .search-link:hover { background: rgba(255, 255, 255, 0.06); border-left-color: var(--ink); padding-left: 10px; }
.search-thumb { flex: none; width: 56px; height: 56px; object-fit: cover; background: var(--surface-soft); }
.search-main { display: grid; gap: 4px; min-width: 0; flex: 1; }
.search-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.search-code { font: 400 0.875rem/1.2 var(--mono); letter-spacing: 0.08em; color: var(--ink); }
.search-name { font: 400 1.125rem/1.25 var(--text); color: var(--body-strong); }
.search-meta { font: 400 0.75rem/1.3 var(--mono); letter-spacing: 0.06em; color: var(--muted); }
.search-cost { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; color: var(--muted); font: 400 0.8125rem/1.3 var(--text); }
.search-num { color: var(--ink); font: 400 1.125rem/1.25 var(--display); letter-spacing: 0.03em; font-variant-numeric: tabular-nums; }
.search-was { color: var(--muted); font: 400 0.75rem/1.3 var(--mono); font-variant-numeric: tabular-nums; text-decoration: line-through 1px var(--muted); }
.search-tags { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.search-tag {
  padding: 3px 8px 2px;
  border: 1px solid var(--hairline-strong);
  color: var(--body-strong);
  font: 400 0.75rem/1.2 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.search-heading {
  margin-top: 8px;
  padding: 16px 0 8px;
  border-top: 1px solid var(--hairline-strong);
  color: var(--muted);
  font: 400 0.75rem/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.search-item--text .search-link { min-height: 56px; font: 400 1.125rem/1.35 var(--text); color: var(--body-strong); }
.search-empty { padding: 24px 0 16px; }
.search-empty[hidden] { display: none; }
.search-empty p { margin: 0 0 8px; max-width: 46ch; color: var(--body); font: 400 1.125rem/1.5 var(--text); }
@media (max-width: 599px) {
  .search-sheet { height: 100%; max-height: none; border-bottom: 0; }
  .search-sheet-inner { flex: 1; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .search-bar { min-height: 64px; }
  .search-input { font-size: 1.125rem; }
  .search-tags { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; }
  .search-link { gap: 12px; }
}
@media (min-width: 600px) {
  .search-sheet { max-height: min(84vh, 760px); }
  .search-list { padding-bottom: 8px; }
}
/* Phones: the magnifier joins the logo, VI/EN and Menu on one row at 360 px. */
@media (max-width: 479px) {
  .header-tools { gap: 0; }
  .lang a { min-width: 40px; padding: 0 4px; }
  .search-toggle { width: 40px; }
  .menu-toggle { padding: 0 14px; margin-left: 4px; }
}
@media (max-width: 389px) {
  .lang a { min-width: 34px; padding: 0; }
  .menu-toggle { padding: 0 12px; }
}

/* Body text is justified (QĐ 125): running paragraphs only; labels, cards, headings and buttons stay left-aligned. The last line of
   each paragraph stays left. text-wrap: pretty (set above) keeps the last line from being a single word. */
.prose, .prose-list li, .lead, .page-lead, .price-note, .price-basis, .price-source, .stone-lead, .faq-item p, .brand-entry p, .steps p,
.tool-list p, .article-answer, .article-body p, .article-body li, .article-index-answer { text-align: justify; text-justify: inter-word; }
.tool-list p { text-wrap: pretty; }
