/* Bargold: unrefined gold from Colombia.
   Palette: Andean night green (ink) and quartz paper, with raw gold. Follows the system light/dark setting.
   Type: Archivo (expanded widths for headings, like the stamp on a bar) and Alegreya for reading text;
   Noto Kufi Arabic and Noto Naskh Arabic for Arabic.
   Layout uses logical properties only (inline/block, start/end), so the Arabic pages mirror without overrides. */

:root {
  --ink: #16241C;
  --ink-2: #1F3127;
  --ink-3: #2A3F33;
  --paper: #EDEFE8;
  --paper-2: #E1E5DA;
  --paper-3: #F7F8F4;
  --gold: #D6B25E;
  --gold-bright: #EBCF86;
  --gold-deep: #7A5810;
  --slate: #4E5A52;
  --mist: #B9C2B8;
  --silver: #9EA69E;
  --slate-photo: #2B2822;

  /* Page tokens: light */
  --page: var(--paper);
  --page-alt: var(--paper-2);
  --text: var(--ink);
  --text-2: var(--slate);
  --link: var(--gold-deep);
  --rule: rgba(22, 36, 28, .18);
  --field-bg: var(--paper-3);
  --field-border: #737F77;
  --focus: var(--gold-deep);
  --danger: #A1281F;
  --success: #2D6A3E;
  --surface: var(--paper-3);
  --surface-2: var(--paper-2);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Alegreya", Georgia, "Times New Roman", serif;

  /* Scale after Bringhurst: 14 · 16 · 19 · 21 · 24 · 36 · 48 · 72 */
  --fs-small: .875rem;
  --fs-ui: 1rem;
  --fs-body: 1.1875rem;
  --fs-lede: 1.3125rem;
  --fs-h3: 1.5rem;
  --fs-h2: clamp(2rem, 1.3rem + 2.6vw, 3rem);
  --fs-h1: clamp(2.4rem, 1.2rem + 5vw, 5.25rem);
  --fs-h1-page: clamp(2.2rem, 1.3rem + 3.6vw, 4rem);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(64px, 8vw, 120px);
  --tap: 44px;
  --radius: 4px;

  --dur-fast: 120ms;
  --dur-base: 200ms;
  --ease-in: cubic-bezier(.2, 0, 0, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0E1712;
    --page-alt: #16241C;
    --text: var(--paper);
    --text-2: var(--mist);
    --link: var(--gold-bright);
    --rule: rgba(237, 239, 232, .16);
    --field-bg: #16241C;
    --field-border: #7F9086;
    --focus: var(--gold-bright);
    --danger: #F3A096;
    --success: #8FD3A0;
    --surface: var(--ink-2);
    --surface-2: var(--ink-3);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur-base: 0ms; }
}

/* ---------- Tones: each section sets its colours once; components read --fg, --fg-2, --link, --rule ---------- */

.tone-paper, .tone-paper2, body {
  --bg: var(--page);
  --fg: var(--text);
  --fg-2: var(--text-2);
  --link-c: var(--link);
  --rule-c: var(--rule);
  --field-bg-c: var(--field-bg);
  --field-border-c: var(--field-border);
  --focus-c: var(--focus);
  --mark: var(--gold-deep);
}
.tone-paper2 { --bg: var(--page-alt); }
@media (prefers-color-scheme: dark) {
  .tone-paper, .tone-paper2, body { --mark: var(--gold); }
}

.tone-ink, .tone-ink2 {
  --bg: var(--ink);
  --fg: var(--paper);
  --fg-2: #C9D1C6;
  --link-c: var(--gold-bright);
  --rule-c: rgba(237, 239, 232, .18);
  --field-bg-c: var(--ink-2);
  --field-border-c: #7F9086;
  --focus-c: var(--gold);
  --mark: var(--gold);
}
.tone-ink2 { --bg: var(--ink-2); --field-bg-c: var(--ink); }

.tone-paper, .tone-paper2, .tone-ink, .tone-ink2 { background-color: var(--bg); color: var(--fg); }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-block-start: 16px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums proportional-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Arabic: its own faces, roomier lines, no tracking, no expanded widths. Latin names fall back to the brand faces. */
:lang(ar) {
  --font-display: "Archivo", "Noto Kufi Arabic", Tahoma, sans-serif;
  --font-text: "Alegreya", "Noto Naskh Arabic", "Geeza Pro", serif;
}
html:lang(ar) body { line-height: 1.85; font-variant-numeric: lining-nums proportional-nums; }
html:lang(ar) h1, html:lang(ar) h2, html:lang(ar) h3, html:lang(ar) .btn, html:lang(ar) summary {
  letter-spacing: 0;
  font-stretch: 100%;
}
html:lang(ar) h1, html:lang(ar) h2, html:lang(ar) h3 { line-height: 1.35; }

img { display: block; max-inline-size: 100%; block-size: auto; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 560;
  line-height: 1.06;
  letter-spacing: -.012em;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; }

p { margin: 0; }
ul, ol { margin: 0; }

a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--focus-c, var(--focus)); outline-offset: 2px; }

[hidden] { display: none !important; }

.wrap {
  inline-size: 100%;
  max-inline-size: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  inline-size: 1px; block-size: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.hp { position: absolute !important; inset-inline-start: -10000px; inline-size: 1px; block-size: 1px; opacity: 0; }

.skip-link {
  position: absolute; inset-inline-start: 16px; inset-block-start: -100px; z-index: 40;
  padding: 12px 18px;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-display); font-size: var(--fs-ui);
}
.skip-link:focus { inset-block-start: 16px; }

main:focus { outline: none; }

.section { padding-block: var(--section); }
.section-tight { padding-block-start: calc(var(--section) * .5); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px clamp(32px, 6vw, 96px);
  align-items: start;
}
.split > h2 { max-inline-size: 11em; }

.prose-block > * + * { margin-block-start: 1em; }
.prose-block h2 + * { margin-block-start: 24px; }
.prose-block p { max-inline-size: 36em; }

.text-link {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--tap);
  color: var(--link-c);
  font-family: var(--font-display);
  font-size: var(--fs-ui);
  font-weight: 560;
  text-decoration: underline;
}

.fine-print { font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }
.caveat { max-inline-size: 32em; font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }
.lede { max-inline-size: 36em; margin-block-start: clamp(16px, 2vw, 28px); font-size: var(--fs-lede); line-height: 1.5; color: var(--fg-2); }
.tone-ink .lede { color: #DCE1D8; }

.prose-block a, .faq-answer a, .spec-list a, .doc-list a, .steps a, .bar-bullets a, .prose a, .notice a, .fine-print a, .faq-ask a {
  color: var(--link-c);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-block-size: var(--tap);
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: var(--fs-ui);
  font-weight: 560;
  font-stretch: 108%;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.btn-small { min-block-size: 40px; padding: 8px 14px; font-size: .9375rem; }

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-bright); }
.btn-gold:focus-visible { outline-color: var(--gold-bright); box-shadow: inset 0 0 0 2px var(--ink); }

.btn-line { border-color: rgba(237, 239, 232, .6); color: var(--paper); }
.btn-line:hover { border-color: var(--paper); background: rgba(237, 239, 232, .08); }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-3); }
@media (prefers-color-scheme: dark) {
  .tone-paper .btn-ink, .tone-paper2 .btn-ink, .assistant-panel .btn-ink { background: var(--gold); color: var(--ink); }
  .tone-paper .btn-ink:hover, .tone-paper2 .btn-ink:hover, .assistant-panel .btn-ink:hover { background: var(--gold-bright); }
}

.btn-outline { border-color: var(--field-border-c); color: var(--fg); background: transparent; }
.btn-outline:hover { border-color: var(--fg); }

.btn-plain { background: transparent; color: var(--fg); text-decoration: underline; padding-inline: 12px; }

.btn:active { filter: brightness(.94); }
@media (prefers-reduced-motion: no-preference) {
  .btn:active { transform: scale(.98); }
}

.icon-button {
  display: inline-grid;
  place-items: center;
  min-inline-size: var(--tap);
  min-block-size: var(--tap);
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  font: 500 .9375rem/1 var(--font-display);
  cursor: pointer;
}
.icon-button:hover { background: rgba(127, 144, 134, .18); }
.icon-button svg, .assistant-send svg, .lang-menu svg, .assistant-launcher svg {
  inline-size: 20px; block-size: 20px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Language suggestion ---------- */

.lang-hint { background: var(--gold); color: var(--ink); font-family: var(--font-display); font-size: var(--fs-ui); position: relative; z-index: 20; }
.lang-hint-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-block-size: var(--tap); }
.lang-hint a { font-weight: 560; }
.lang-hint .icon-button:hover { background: rgba(22, 36, 28, .1); }

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  inset-inline: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: clamp(8px, 2.4vw, 32px);
  padding: 16px var(--gutter);
  color: var(--paper);
  --focus-c: var(--gold);
}
.brand { display: inline-flex; align-items: center; min-block-size: var(--tap); margin-inline-end: auto; }
.brand img { inline-size: clamp(116px, 12vw, 160px); block-size: auto; }

.site-nav { display: flex; align-items: center; }
.site-nav ul { display: flex; gap: clamp(6px, 1.6vw, 24px); padding: 0; list-style: none; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--tap);
  padding-inline: 4px;
  color: #C9D1C6;
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 450;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--paper); text-decoration: underline; }
.site-nav .nav-extra { display: none; }
.menu-toggle { display: none; }

.lang-menu { position: relative; font-family: var(--font-display); }
.lang-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-block-size: var(--tap);
  padding-inline: 8px;
  border-radius: var(--radius);
  color: #C9D1C6;
  font-size: .9375rem;
  cursor: pointer;
  list-style: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--paper); background: rgba(237, 239, 232, .08); }
.lang-menu ul {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: calc(100% + 6px);
  z-index: 30;
  min-inline-size: 180px;
  padding: 6px;
  list-style: none;
  background: var(--ink);
  border: 1px solid rgba(237, 239, 232, .18);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
}
.lang-menu li a {
  display: flex;
  align-items: center;
  min-block-size: var(--tap);
  padding-inline: 12px;
  border-radius: 3px;
  color: var(--paper);
  font-size: 1rem;
  text-decoration: none;
}
.lang-menu li a:hover { background: var(--ink-3); }
.lang-menu li a[aria-current="true"] { color: var(--gold-bright); }
.lang-menu li a[aria-current="true"]::after { content: ""; inline-size: 6px; block-size: 6px; margin-inline-start: auto; border-radius: 50%; background: var(--gold); }
.lang-menu a:lang(ar) { font-family: "Noto Kufi Arabic", sans-serif; }

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-block-size: max(620px, 100svh);
  padding: 120px var(--gutter) clamp(56px, 8vw, 104px);
  background:
    radial-gradient(60% 70% at 70% 42%, #8E6A1E 0%, #4A3A14 38%, rgba(22, 36, 28, 0) 72%),
    var(--ink);
  overflow: hidden;
}
html[dir="rtl"] .hero {
  background:
    radial-gradient(60% 70% at 30% 42%, #8E6A1E 0%, #4A3A14 38%, rgba(22, 36, 28, 0) 72%),
    var(--ink);
}
.hero.has-webgl { background: var(--ink); }
.hero-gold { position: absolute; inset: 0; z-index: -2; inline-size: 100%; block-size: 100%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(22, 36, 28, .78) 0%, rgba(22, 36, 28, 0) 22%),
    linear-gradient(0deg, rgba(22, 36, 28, .92) 0%, rgba(22, 36, 28, .55) 38%, rgba(22, 36, 28, 0) 62%),
    linear-gradient(to var(--hero-side, right), rgba(22, 36, 28, .7) 0%, rgba(22, 36, 28, 0) 55%);
  pointer-events: none;
}
html[dir="rtl"] .hero::after { --hero-side: left; }
.hero-copy { inline-size: 100%; max-inline-size: var(--wrap); margin-inline: auto; }
.hero h1 { max-inline-size: 11.5em; font-size: var(--fs-h1); font-weight: 600; line-height: .98; letter-spacing: -.02em; }
html:lang(ar) .hero h1 { line-height: 1.25; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: clamp(24px, 3vw, 40px); }

.motion-toggle {
  position: absolute;
  inset-inline-end: var(--gutter);
  inset-block-end: clamp(56px, 8vw, 104px);
  display: grid;
  place-items: center;
  inline-size: var(--tap);
  block-size: var(--tap);
  padding: 0;
  border: 1px solid rgba(237, 239, 232, .45);
  border-radius: 50%;
  background: rgba(22, 36, 28, .55);
  color: var(--paper);
  cursor: pointer;
}
.motion-toggle:hover { border-color: var(--paper); }
.motion-toggle svg { inline-size: 18px; block-size: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.motion-toggle .icon-play { fill: currentColor; stroke-width: 1.5; }
.motion-toggle[aria-pressed="true"] .icon-pause,
.motion-toggle[aria-pressed="false"] .icon-play { display: none; }

/* ---------- Inner page head ---------- */

.page-head { padding-block: clamp(120px, 14vw, 176px) clamp(40px, 6vw, 72px); }
.page-head h1 { max-inline-size: 16em; font-size: var(--fs-h1-page); font-weight: 600; letter-spacing: -.018em; }
.page-missing .page-head h1 { max-inline-size: none; }

.breadcrumbs { margin-block-end: 20px; font-family: var(--font-display); font-size: var(--fs-small); color: #C9D1C6; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; padding-inline: 10px; opacity: .6; }
.breadcrumbs a { display: inline-block; padding-block: 6px; color: inherit; }

/* ---------- Origin ---------- */

.origin:not(.section) { padding-block: var(--section) calc(var(--section) * .6); }
.coords {
  display: flex;
  flex-wrap: wrap;
  column-gap: .4em;
  font-family: "Archivo", sans-serif;
  font-stretch: 125%;
  font-weight: 300;
  font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.5rem);
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--mark);
}
html[dir="rtl"] .coords { justify-content: flex-end; }
.place { margin-block-start: 16px; max-inline-size: 22em; font-family: var(--font-display); font-size: var(--fs-ui); color: var(--fg-2); }
.origin-place .fine-print { margin-block-start: 8px; }

/* ---------- Process steps ---------- */

.process { padding-block: calc(var(--section) * .5) var(--section); }
.process h2, .steps-title { max-inline-size: 14em; margin-block-end: clamp(32px, 4vw, 56px); }
.section > .wrap > h2 { margin-block-end: clamp(32px, 4vw, 56px); }

.steps {
  --step-gap: clamp(24px, 3vw, 40px);
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--step-gap);
  padding: 0;
  list-style: none;
}
.steps li { counter-increment: step; position: relative; padding-block-start: 68px; }
/* The line runs through every step, like the route from mine to buyer. */
.steps li::before {
  content: "";
  position: absolute;
  inset-inline: 0 calc(-1 * var(--step-gap));
  inset-block-start: 22px;
  block-size: 1px;
  background: var(--mark);
  opacity: .45;
}
.steps li:last-child::before { inset-inline-end: 0; }
.steps li::after {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0; inset-block-start: 0;
  display: grid;
  place-items: center;
  inline-size: 44px; block-size: 44px;
  border: 1px solid var(--mark);
  border-radius: 50%;
  background: var(--bg, var(--page));
  font-family: "Archivo", sans-serif;
  font-stretch: 125%;
  font-weight: 500;
  font-size: 1.0625rem;
  font-variant-numeric: lining-nums;
  color: var(--mark);
}
.steps h3 { margin-block-end: 10px; font-size: 1.3125rem; }
.steps p { font-size: 1.0625rem; color: var(--fg-2); }

/* ---------- Photos and bars ---------- */

.bars-teaser { padding-block-end: var(--section); }
.section-rule { padding-block-start: calc(var(--section) * .5); border-block-start: 1px solid var(--rule-c); }
.photo { margin: 0; }
.photo img { inline-size: 100%; block-size: auto; border-radius: 6px; background: var(--slate-photo); }
@media (prefers-color-scheme: dark) { .photo img { outline: 1px solid rgba(237, 239, 232, .12); } }
.photo figcaption { margin-block-start: 12px; font-family: var(--font-display); font-size: var(--fs-small); color: var(--fg-2); text-align: center; }
.photo-wide { margin-block-start: clamp(32px, 5vw, 64px); }

.bars-detail {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  margin-block-start: clamp(40px, 6vw, 80px);
}
.renderings-note { margin-block-start: 32px; }

.spec-list, .doc-list { margin: 0; }
.spec-list > div, .doc-list > div { padding-block: 16px; border-block-start: 1px solid var(--rule-c); }
.spec-list > div:last-child, .doc-list > div:last-child { border-block-end: 1px solid var(--rule-c); }
.spec-list dt, .doc-list dt {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 560;
  font-size: 1.0625rem;
  line-height: 1.3;
}
.spec-list dd, .doc-list dd { margin: 4px 0 0; font-size: 1.0625rem; color: var(--fg-2); }
.doc-list > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 32px; padding-block: 22px; }
.doc-list dd { margin: 0; }

/* Bullets drawn as tiny cast bars. */
.bar-bullets { padding: 0; list-style: none; max-inline-size: 34em; }
.bar-bullets li { position: relative; padding-block: 12px; padding-inline-start: 28px; border-block-start: 1px solid var(--rule-c); }
.bar-bullets li:last-child { border-block-end: 1px solid var(--rule-c); }
.bar-bullets li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px; inset-block-start: 1.45em;
  inline-size: 10px; block-size: 6px;
  clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%);
  background: var(--mark);
}
html:lang(ar) .bar-bullets li::before { inset-block-start: 1.6em; }

.example-table table { inline-size: 100%; border-collapse: collapse; font-family: var(--font-display); font-variant-numeric: tabular-nums lining-nums; }
.example-table caption { margin-block-end: 12px; font-weight: 560; text-align: start; }
.example-table th, .example-table td { padding: 12px 8px; border-block-end: 1px solid var(--rule-c); text-align: start; }
.example-table th { font-size: var(--fs-small); font-weight: 500; color: var(--fg-2); }
.example-table tbody tr:nth-child(odd) { background: color-mix(in srgb, var(--fg) 4%, transparent); }
.example-table .fine-print { margin-block-start: 12px; }

/* ---------- Buyers ---------- */

.buyers-grid { display: grid; grid-template-columns: 1fr 1fr; }
.path { display: flex; flex-direction: column; align-items: flex-start; padding: var(--section) clamp(24px, 6vw, 96px); }
.path h3 { font-size: var(--fs-h2); margin-block-end: 20px; }
.path-lede { max-inline-size: 26em; font-size: var(--fs-lede); line-height: 1.45; }
.path .bar-bullets { margin-block-start: 28px; }
.path .caveat { margin-block-start: 20px; }
.path .btn { margin-block-start: 32px; }

/* ---------- Calculator ---------- */

.gold-content { padding-block: var(--section); }
.gold-content .prose-block p { color: #DCE1D8; }
.gold-content .prose-block .fine-print { color: #C9D1C6; }

.assay {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  padding: clamp(20px, 3.5vw, 44px);
  border: 1px solid var(--rule-c);
  border-radius: 6px;
  font-family: var(--font-display);
}
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.field label, .choice-group legend { font-family: var(--font-display); font-size: .9375rem; font-weight: 520; }
.optional { font-weight: 400; color: var(--fg-2); }
.field-help { font-size: var(--fs-small); line-height: 1.45; color: var(--fg-2); }

.input-unit {
  display: flex;
  align-items: center;
  gap: 10px;
  min-block-size: calc(var(--tap) + 4px);
  padding-inline: 14px;
  border: 1px solid var(--field-border-c);
  border-radius: var(--radius);
  background: var(--field-bg-c);
}
.input-unit:focus-within { outline: 2px solid var(--focus-c); outline-offset: 2px; }
.input-unit input {
  flex: 1 1 auto;
  min-inline-size: 0;
  min-block-size: var(--tap);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fg);
  font: 500 1.125rem/1 "Archivo", sans-serif;
  font-variant-numeric: tabular-nums lining-nums;
}
.input-unit input:focus { outline: none; }
.input-unit input::placeholder { color: var(--fg-2); opacity: 1; font-weight: 400; }
.unit { flex: none; color: var(--fg-2); font-size: .9375rem; }
.input-short { flex: 0 0 120px; }
.fineness-row { display: flex; align-items: center; gap: 16px; }

.assay input[type="range"] {
  --fill: 80%;
  flex: 1 1 auto;
  min-inline-size: 0;
  block-size: var(--tap);
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.assay input[type="range"]::-webkit-slider-runnable-track {
  block-size: 4px;
  border-radius: 2px;
  background: linear-gradient(to var(--range-side, right), var(--gold) var(--fill), rgba(237, 239, 232, .25) var(--fill));
}
html[dir="rtl"] .assay input[type="range"] { --range-side: left; }
.assay input[type="range"]::-moz-range-track { block-size: 4px; border-radius: 2px; background: rgba(237, 239, 232, .25); }
.assay input[type="range"]::-moz-range-progress { block-size: 4px; border-radius: 2px; background: var(--gold); }
.assay input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  inline-size: 26px; block-size: 26px;
  margin-block-start: -11px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 1px var(--gold);
}
.assay input[type="range"]::-moz-range-thumb { inline-size: 22px; block-size: 22px; border: 2px solid var(--ink); border-radius: 50%; background: var(--gold-bright); }
.assay input[type="range"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* The bar draws itself from the numbers: the gold share, then everything else. */
.bar-figure { display: grid; gap: 10px; }
.bar { display: flex; block-size: 60px; clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%); }
.bar-gold { inline-size: var(--gold-share, 90%); background: linear-gradient(180deg, #F3DC97 0%, #D6B25E 38%, #A9822F 78%, #8C6A22 100%); }
.bar-other { flex: 1 1 auto; background: linear-gradient(180deg, #CDD2CB 0%, #9EA69E 45%, #6E766F 100%); }
@media (prefers-reduced-motion: no-preference) { .bar-gold { transition: inline-size .25s ease-out; } }
.bar-legend { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-small); color: var(--fg-2); }
.bar-legend span { display: inline-flex; align-items: center; gap: 8px; }
.bar-legend span::before { content: ""; inline-size: 10px; block-size: 10px; border-radius: 1px; }
.legend-gold::before { background: var(--gold); }
.legend-other::before { background: var(--silver); }

.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding-block-start: 22px; border-block-start: 1px solid var(--rule-c); }
.results dt { font-size: var(--fs-small); line-height: 1.35; color: var(--fg-2); }
.results dd {
  margin: 6px 0 0;
  font-family: "Archivo", sans-serif;
  font-stretch: 112%;
  font-weight: 500;
  font-size: clamp(1.375rem, 1rem + 1.2vw, 1.875rem);
  line-height: 1.15;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--fg);
}
html[dir="rtl"] .results dd { text-align: right; }
.results .sub { display: block; margin-block-start: 4px; font-stretch: 100%; font-size: .9375rem; font-weight: 400; color: var(--fg-2); }
#out-gold-g { color: var(--gold-bright); }
.value-line { margin-block-start: -6px; font-family: var(--font-text); font-size: 1.0625rem; line-height: 1.5; color: #DCE1D8; }
.value-line strong { font-family: "Archivo", sans-serif; font-weight: 560; color: var(--gold-bright); font-variant-numeric: tabular-nums lining-nums; }

/* ---------- Papers, FAQ ---------- */

.papers { padding-block: var(--section) calc(var(--section) * .5); }
.faq { padding-block: calc(var(--section) * .5) var(--section); }
.faq-more { margin-block-start: 16px; }

.faq-list details { border-block-start: 1px solid var(--rule-c); }
.faq-list details:last-child { border-block-end: 1px solid var(--rule-c); }
.faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  min-block-size: 64px;
  padding-block: 16px;
  padding-inline-end: 48px;
  font-family: var(--font-display);
  font-weight: 540;
  font-size: 1.125rem;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after {
  content: "";
  position: absolute;
  inset-inline-end: 12px; inset-block-start: 50%;
  inline-size: 14px; block-size: 2px;
  background: var(--mark);
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
@media (prefers-reduced-motion: no-preference) { .faq-list summary::after { transition: transform .2s ease; } }
.faq-answer { padding-block-end: 24px; }
.faq-answer p { max-inline-size: 36em; color: var(--fg-2); }
.faq-answer p + p { margin-block-start: .8em; }

.faq-page { display: grid; gap: clamp(48px, 6vw, 80px); }
.faq-ask { font-family: var(--font-display); font-size: 1.0625rem; }

/* ---------- Call to action band ---------- */

.cta-band { padding-block: clamp(48px, 6vw, 88px); }
.cta-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-grid h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); }
.cta-grid p { margin-block-start: 8px; color: var(--fg-2); }
.cta-grid .actions { margin: 0; }

/* ---------- Apply ---------- */

.form-choice { display: grid; gap: 12px; padding: 0; list-style: none; }
.form-choice a {
  position: relative;
  display: grid;
  gap: 2px;
  min-block-size: var(--tap);
  padding-block: 16px;
  padding-inline: 18px 56px;
  background: var(--surface);
  border: 1px solid var(--field-border-c);
  border-radius: var(--radius);
  text-decoration: none;
}
.form-choice a:hover { border-color: var(--fg); }
.form-choice a::after {
  content: "";
  position: absolute;
  inset-inline-end: 18px; inset-block-start: 50%;
  inline-size: 20px; block-size: 20px;
  margin-block-start: -10px;
  background: var(--mark);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M6.5 10 12 15.5 17.5 10M4 20.5h16'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M6.5 10 12 15.5 17.5 10M4 20.5h16'/%3E%3C/svg%3E") center / contain no-repeat;
}
.form-name { font-family: var(--font-display); font-stretch: 112%; font-weight: 560; font-size: 1.125rem; line-height: 1.3; }
.form-meta { font-size: var(--fs-small); line-height: 1.45; color: var(--fg-2); }

/* ---------- Contact and forms ---------- */

.contact-card { font-style: normal; line-height: 1.75; padding-block: 8px 16px; }
.contact-card strong { font-family: var(--font-display); font-weight: 560; }
.contact-card a { color: var(--link-c); }

.inquiry {
  display: grid;
  gap: 20px;
  align-content: start;
  padding: clamp(20px, 3.5vw, 40px);
  background: var(--surface);
  border: 1px solid var(--rule-c);
  border-radius: 6px;
}
.inquiry h2 { font-size: 1.5rem; }
.inquiry .btn { justify-self: start; }

input[type="text"], input[type="email"], input[type="search"], textarea {
  inline-size: 100%;
  min-block-size: var(--tap);
  padding: 10px 12px;
  border: 1px solid var(--field-border-c);
  border-radius: var(--radius);
  background: var(--field-bg-c);
  color: var(--fg);
  font: 400 1.0625rem/1.4 var(--font-display);
}
textarea { resize: vertical; }
.inquiry textarea { min-block-size: 120px; }
input::placeholder, textarea::placeholder { color: var(--fg-2); opacity: 1; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus-c); outline-offset: 1px; border-color: var(--focus-c); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { font-family: var(--font-display); font-size: .9375rem; color: var(--danger); }
.field-error::before { content: "! "; font-weight: 700; }

.choice-group { margin: 0; padding: 0; border: 0; display: grid; gap: 2px; }
.choice-group legend { margin-block-end: 6px; padding: 0; }
.choice, .check { display: flex; align-items: center; gap: 10px; min-block-size: var(--tap); font-family: var(--font-display); font-size: 1rem; cursor: pointer; }
.check { align-items: flex-start; padding-block: 8px; min-block-size: 0; font-size: .9375rem; line-height: 1.45; }
.choice input, .check input { flex: none; inline-size: 20px; block-size: 20px; margin: 0; accent-color: var(--gold-deep); }
.check input { margin-block-start: 1px; }
.check a { color: var(--link-c); }

.notice {
  padding: 14px 16px;
  border-inline-start: 4px solid var(--mark);
  background: color-mix(in srgb, var(--fg) 6%, transparent);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.45;
}
.notice-ok { border-color: var(--success); }
.notice-ok::before { content: "✓ "; color: var(--success); font-weight: 700; }
.notice-error { border-color: var(--danger); }
.notice-error::before { content: "! "; color: var(--danger); font-weight: 700; }

.form-status { min-block-size: 1.4em; font-family: var(--font-display); font-size: .9375rem; }
.form-status.is-error { color: var(--danger); }

/* ---------- Assistant page (works without JavaScript) ---------- */

.ask { display: grid; gap: 28px; }
.ask-form label { display: block; margin-block-end: 8px; font-family: var(--font-display); font-weight: 520; }
.ask-row { display: flex; gap: 8px; }
.ask-row input { flex: 1 1 auto; }
.ask-answer { padding: 20px 22px; background: var(--surface); border: 1px solid var(--rule-c); border-radius: 6px; display: grid; gap: 12px; }
.ask-answer a { color: var(--link-c); }
.ask-label { font-family: var(--font-display); font-size: var(--fs-small); font-weight: 560; color: var(--fg-2); }
.ask-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.ask-suggestions ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin-block-start: 8px; }
.ask-suggestions a, .chip {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--tap);
  padding: 8px 14px;
  border: 1px solid var(--field-border-c);
  border-radius: 22px;
  background: transparent;
  color: var(--fg);
  font: 450 .9375rem/1.3 var(--font-display);
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}
.ask-suggestions a:hover, .chip:hover { border-color: var(--fg); background: color-mix(in srgb, var(--fg) 5%, transparent); }

/* ---------- Long-form documents ---------- */

.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 280px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.doc-aside { position: sticky; inset-block-start: 24px; display: grid; gap: 16px; font-family: var(--font-display); }
.toc { padding-block-start: 16px; border-block-start: 1px solid var(--rule-c); }
.toc-title { font-size: var(--fs-small); font-weight: 560; color: var(--fg-2); margin-block-end: 8px; }
.toc ol { padding: 0; list-style: none; display: grid; }
.toc a { display: block; padding-block: 7px; font-size: .9375rem; line-height: 1.35; color: var(--fg); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.prose { max-inline-size: 40em; }
.prose > * + * { margin-block-start: 1em; }
.prose h2 { margin-block-start: 2em; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); scroll-margin-block-start: 24px; }
.prose h2 + * { margin-block-start: .8em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li + li { margin-block-start: .4em; }
.prose table { inline-size: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
.prose th, .prose td { padding: 10px 10px 10px 0; padding-inline: 0 14px; border-block-end: 1px solid var(--rule-c); text-align: start; vertical-align: top; }
.prose th { font-family: var(--font-display); font-size: var(--fs-small); font-weight: 560; color: var(--fg-2); }
.prose .notice { margin-block-end: 1.5em; }
.table-scroll { overflow-x: auto; }

.link-list { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; list-style: none; font-family: var(--font-display); }
.link-list a { display: inline-flex; min-block-size: var(--tap); align-items: center; color: var(--link-c); }

/* ---------- Footer ---------- */

.site-footer { padding-block: 64px 48px; font-family: var(--font-display); font-size: .9375rem; color: #C9D1C6; }
.site-footer a { color: inherit; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px 48px; }
.footer-brand { display: inline-flex; align-items: center; min-block-size: var(--tap); }
.footer-brand img { inline-size: 140px; }
.footer-brand-block p { margin-block-start: 12px; max-inline-size: 24em; }
.footer-contact { margin-block-start: 20px; font-style: normal; line-height: 1.75; }
.footer-contact strong { color: var(--paper); font-weight: 560; }
.footer-heading { font-size: var(--fs-small); font-stretch: 112%; font-weight: 560; color: var(--paper); margin-block-end: 8px; letter-spacing: 0; }
.footer-nav ul { padding: 0; list-style: none; }
.footer-nav ul + .footer-heading { margin-block-start: 28px; }
.footer-nav a { display: inline-flex; align-items: center; min-block-size: 36px; text-decoration: none; }
.footer-nav a:hover, .footer-nav a[aria-current="true"] { color: var(--paper); text-decoration: underline; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 0 16px; }
.footer-fine { grid-column: 1 / -1; display: grid; gap: 8px; padding-block-start: 28px; border-block-start: 1px solid rgba(237, 239, 232, .16); font-size: var(--fs-small); line-height: 1.55; max-inline-size: 72em; }

/* ---------- Assistant (chat) ---------- */

.assistant { --surface-c: var(--surface); }
.assistant-launcher {
  position: fixed;
  inset-inline-end: 16px;
  inset-block-end: max(16px, env(safe-area-inset-bottom));
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-block-size: 48px;
  padding: 0 18px 0 16px;
  border: 1px solid rgba(22, 36, 28, .25);
  border-radius: 24px;
  background: var(--gold);
  color: var(--ink);
  font: 560 1rem/1 var(--font-display);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(22, 36, 28, .28);
  cursor: pointer;
}
.assistant-launcher:hover { background: var(--gold-bright); }
.assistant-launcher:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 4px var(--gold-bright); }
.assistant-launcher[aria-expanded="true"] { display: none; }
.assistant-launcher .badge { inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--gold); }

.assistant-panel {
  position: fixed;
  inset-inline-end: 16px;
  inset-block-end: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  flex-direction: column;
  inline-size: min(400px, calc(100vw - 32px));
  block-size: min(640px, calc(100dvh - 32px));
  overflow: hidden;
  border: 1px solid var(--rule-c);
  border-radius: 10px;
  --bg: var(--surface);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(14, 23, 18, .35);
}
@media (prefers-reduced-motion: no-preference) {
  .assistant-panel:not([hidden]) { animation: panel-in var(--dur-base) var(--ease-in); }
  @keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
.assistant-head { display: flex; align-items: center; gap: 4px; padding: 10px 8px 10px 16px; padding-inline: 16px 8px; }
.assistant-heading { flex: 1 1 auto; min-inline-size: 0; }
.assistant-head h2 { font-size: 1.0625rem; font-stretch: 112%; line-height: 1.25; letter-spacing: 0; }
.assistant-end { white-space: nowrap; }
.assistant-mode { margin-block-start: 2px; font: 400 .8125rem/1.35 var(--font-display); color: #C9D1C6; }
.assistant-mode.is-team::before { content: ""; display: inline-block; inline-size: 8px; block-size: 8px; margin-inline-end: 6px; border-radius: 50%; background: #8FD3A0; }

.assistant-log {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.5;
}
.assistant-log:focus-visible { outline-offset: -2px; }

.msg { display: grid; gap: 6px; max-inline-size: 88%; }
.msg-body { padding: 10px 14px; border-radius: 12px; background: var(--surface-2); color: var(--text); unicode-bidi: plaintext; overflow-wrap: anywhere; }
.msg-body p + p, .msg-body ul + p, .msg-body p + ul { margin-block-start: .6em; }
.msg-body ul { padding-inline-start: 1.2em; }
.msg-body a { color: var(--link); }
.msg-body .note { font-size: .875rem; color: var(--text-2); }
.msg-who { font-size: .75rem; font-weight: 560; color: var(--text-2); }
.msg-visitor { align-self: flex-end; justify-items: end; }
.msg-visitor .msg-body { background: var(--gold); color: var(--ink); border-end-end-radius: 4px; }
.msg-assistant .msg-body { border-end-start-radius: 4px; }
.msg-team .msg-body { background: var(--surface); border: 1px solid var(--gold-deep); border-end-start-radius: 4px; }
@media (prefers-color-scheme: dark) { .msg-team .msg-body { border-color: var(--gold); } }
.msg-status { font-size: .8125rem; color: var(--text-2); }
.msg-status.is-error { color: var(--danger); }
.msg-system { align-self: center; max-inline-size: 100%; font-size: .8125rem; line-height: 1.4; color: var(--text-2); text-align: center; }
.msg-links { display: flex; flex-wrap: wrap; gap: 0 14px; font-size: .875rem; }
.msg-links a { display: inline-flex; align-items: center; min-block-size: 32px; color: var(--link); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip { --fg: var(--text); --field-border-c: var(--field-border); min-block-size: 40px; font-size: .875rem; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.msg-actions .btn { min-block-size: 40px; padding: 8px 14px; font-size: .9375rem; }

.typing { padding: 0 16px 8px; font: 400 .875rem/1.4 var(--font-display); color: var(--text-2); }
.typing span[aria-hidden] { display: inline-flex; gap: 3px; margin-inline-start: 6px; }
.typing span[aria-hidden] i { inline-size: 5px; block-size: 5px; border-radius: 50%; background: currentColor; opacity: .4; }
@media (prefers-reduced-motion: no-preference) {
  .typing span[aria-hidden] i { animation: dot 1s infinite ease-in-out; }
  .typing span[aria-hidden] i:nth-child(2) { animation-delay: .15s; }
  .typing span[aria-hidden] i:nth-child(3) { animation-delay: .3s; }
  @keyframes dot { 50% { opacity: 1; } }
}

.assistant-handoff { display: grid; gap: 12px; padding: 16px; border-block-start: 1px solid var(--rule); overflow-y: auto; flex: 1 1 auto; min-block-size: 0; align-content: start; font-family: var(--font-display); background: var(--surface); }
.assistant-handoff-title { font-size: 1.125rem; letter-spacing: 0; }
.assistant-handoff-lede { font-size: .9375rem; line-height: 1.45; color: var(--text-2); }
.assistant-handoff .field label { font-size: .875rem; }
.assistant-handoff textarea, .assistant-handoff input[type="text"], .assistant-handoff input[type="email"] { font-size: 1rem; --fg: var(--text); --field-bg-c: var(--field-bg); --field-border-c: var(--field-border); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.assistant-handoff-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.assistant-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-block-start: 1px solid var(--rule); }
.assistant-form textarea {
  flex: 1 1 auto;
  min-block-size: var(--tap);
  max-block-size: 140px;
  padding: 11px 12px;
  resize: none;
  --fg: var(--text); --field-bg-c: var(--field-bg); --field-border-c: var(--field-border);
  font-size: 1rem;
  line-height: 1.35;
}
.assistant-send {
  flex: none;
  display: grid;
  place-items: center;
  inline-size: var(--tap);
  block-size: var(--tap);
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}
@media (prefers-color-scheme: dark) { .assistant-send { background: var(--gold); color: var(--ink); } }
.assistant-send[aria-disabled="true"] { opacity: .55; cursor: default; }
html[dir="rtl"] .assistant-send svg { transform: none; }
.assistant-foot { padding: 0 14px 10px; font: 400 .75rem/1.4 var(--font-display); color: var(--text-2); }
.assistant-foot a { color: var(--link); }

.talk-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 16px; border-block-start: 1px solid var(--rule); font: 400 .875rem/1.35 var(--font-display); color: var(--text-2); }
.talk-bar .btn { min-block-size: 40px; padding: 6px 12px; font-size: .875rem; }

@media (max-width: 767px) {
  .assistant-panel {
    inset: 0;
    inline-size: 100%;
    block-size: 100dvh;
    border: 0;
    border-radius: 0;
    padding-block-end: env(safe-area-inset-bottom);
  }
  .field-pair { grid-template-columns: 1fr; }
  body.chat-open { overflow: hidden; }
}

/* ---------- Narrow screens ---------- */

@media (max-width: 1080px) {
  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    min-block-size: var(--tap);
    padding: 0 14px;
    border: 1px solid rgba(237, 239, 232, .5);
    border-radius: var(--radius);
    background: transparent;
    color: var(--paper);
    font: 500 .9375rem/1 var(--font-display);
    cursor: pointer;
  }
  .js .site-nav ul {
    position: absolute;
    inset-block-start: calc(100% - 4px);
    inset-inline: var(--gutter);
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px;
    background: var(--ink);
    border: 1px solid rgba(237, 239, 232, .18);
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  }
  .js .site-nav ul.is-open { display: flex; }
  .js .site-nav li + li { border-block-start: 1px solid rgba(237, 239, 232, .14); }
  .js .site-nav a { inline-size: 100%; font-size: 1.0625rem; color: var(--paper); }
  .js .site-nav .nav-extra { display: block; }
  html:not(.js) .site-header { flex-wrap: wrap; }
  html:not(.js) .site-nav { order: 3; inline-size: 100%; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
}

@media (max-width: 860px) {
  .split, .bars-detail, .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .buyers-grid { grid-template-columns: minmax(0, 1fr); }
  .doc-list > div { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-block { grid-column: 1 / -1; }
  .doc-aside { position: static; order: -1; }
  .doc-aside .toc { display: none; }
}

@media (max-width: 560px) {
  :root { --fs-body: 1.125rem; --fs-lede: 1.1875rem; }
  .site-header { padding-block-start: 12px; gap: 6px; }
  .header-cta { display: none; }
  .hero { padding-block-start: 104px; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(22, 36, 28, .8) 0%, rgba(22, 36, 28, 0) 18%),
      linear-gradient(0deg, rgba(22, 36, 28, .96) 0%, rgba(22, 36, 28, .8) 48%, rgba(22, 36, 28, 0) 72%);
  }
  .actions .btn { inline-size: 100%; }
  .motion-toggle { inset-block: 84px auto; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding-block: 0 32px; padding-inline-start: 64px; }
  .steps li::before { inset-inline: 22px auto; inset-block: 44px 0; inline-size: 1px; block-size: auto; }
  .steps li:last-child::before { display: none; }
  .results { grid-template-columns: 1fr 1fr; }
  .results > div:first-child { grid-column: 1 / -1; }
  .fineness-row { flex-wrap: wrap; }
  .fineness-row input[type="range"] { flex-basis: 100%; }
  .input-short { flex-basis: 140px; }
  .bar { block-size: 48px; }
  .footer-grid { grid-template-columns: 1fr; }
  .ask-row { flex-direction: column; }
  .assistant-launcher span { display: none; }
  .assistant-launcher { padding: 0; inline-size: 52px; block-size: 52px; justify-content: center; border-radius: 50%; }
}

@media (forced-colors: active) {
  .bar-gold, .bar-other { forced-color-adjust: none; }
  .hero::after { display: none; }
  .form-choice a::after { background: LinkText; }
  .msg-body { border: 1px solid CanvasText; }
}

@media print {
  .site-header, .assistant, .lang-hint, .hero-gold, .motion-toggle, .cta-band { display: none !important; }
  .tone-ink, .tone-ink2 { background: none; color: #000; }
}
