/* Lab-Grown on Live: a field guide. Grading-report world, calm reading column. */

:root {
  --ground: #f3f4f6;
  --paper: #fbfbfc;
  --ink: #12151c;
  --ink-2: #3c4250;
  --ink-3: #5b6271;
  --rule: #d5d8df;
  --rule-strong: #9aa0ad;
  --accent: #1f3c8f;
  --accent-ink: #18306f;
  --accent-wash: #e6ebf7;
  --gold: #85590a;
  --gold-wash: #f6efe0;
  --go: #1d6a45;
  --go-wash: #e3f1e9;
  --warn: #8a4b06;
  --warn-wash: #f8ecdc;
  --stop: #9b2420;
  --stop-wash: #f8e4e2;
  --shadow: 0 1px 2px rgb(18 21 28 / 0.06), 0 8px 24px -12px rgb(18 21 28 / 0.18);
  --select: #c9d4f2;
  --display: "Bodoni Moda", "Didot", Georgia, serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ui: "IBM Plex Sans", system-ui, sans-serif;
  --measure: 68ch;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0c0e13;
    --paper: #13161d;
    --ink: #e9ebf1;
    --ink-2: #c3c7d2;
    --ink-3: #9aa1b1;
    --rule: #2a2f3a;
    --rule-strong: #4b5262;
    --accent: #9bb2ff;
    --accent-ink: #c2d0ff;
    --accent-wash: #1a2340;
    --gold: #e1b45a;
    --gold-wash: #2b2416;
    --go: #7fd3a6;
    --go-wash: #13281e;
    --warn: #f0b36a;
    --warn-wash: #2d2113;
    --stop: #ff9c94;
    --stop-wash: #331816;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 28px -14px rgb(0 0 0 / 0.7);
    --select: #2f3f73;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ground: #0c0e13;
  --paper: #13161d;
  --ink: #e9ebf1;
  --ink-2: #c3c7d2;
  --ink-3: #9aa1b1;
  --rule: #2a2f3a;
  --rule-strong: #4b5262;
  --accent: #9bb2ff;
  --accent-ink: #c2d0ff;
  --accent-wash: #1a2340;
  --gold: #e1b45a;
  --gold-wash: #2b2416;
  --go: #7fd3a6;
  --go-wash: #13281e;
  --warn: #f0b36a;
  --warn-wash: #2d2113;
  --stop: #ff9c94;
  --stop-wash: #331816;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 28px -14px rgb(0 0 0 / 0.7);
  --select: #2f3f73;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
  scrollbar-color: var(--rule-strong) var(--ground);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  caret-color: var(--accent);
}

::selection { background: var(--select); color: var(--ink); }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
a:hover { color: var(--accent-ink); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--paper);
  padding: 0.5rem 0.9rem; font-family: var(--ui); font-size: 0.875rem; z-index: 10;
}
.skip:focus { top: 1rem; }

/* ---------- Masthead ---------- */

.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.masthead-inner {
  max-width: 76rem; margin: 0 auto;
  padding: 1.1rem 1rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.mark {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--ui); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.01em;
  color: var(--ink); text-decoration: none;
}
.mark svg { width: 1.6rem; height: 1.6rem; }
.theme-toggle {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--ui); font-size: 0.8125rem; font-weight: 500;
  color: var(--ink-2); background: transparent;
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 0.35rem 0.75rem; cursor: pointer;
  transition: border-color 160ms ease-out, color 160ms ease-out;
}
.theme-toggle:hover { border-color: var(--rule-strong); color: var(--ink); }
.theme-toggle svg { width: 1rem; height: 1rem; }

/* The gauge: a millimetre rule, the page's signature move. */
.gauge {
  height: 14px;
  margin-top: 1.1rem;
  background:
    repeating-linear-gradient(to right, var(--rule-strong) 0 1px, transparent 1px 50px) bottom / 100% 14px no-repeat,
    repeating-linear-gradient(to right, var(--rule-strong) 0 1px, transparent 1px 10px) bottom / 100% 8px no-repeat,
    repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px 5px) bottom / 100% 4px no-repeat;
  opacity: 0.85;
}

.title-block {
  max-width: 76rem; margin: 0 auto;
  padding: clamp(2.25rem, 6vw, 4.5rem) 1rem clamp(2rem, 5vw, 3.5rem);
  display: grid; gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 62rem) {
  .title-block { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 3.5rem; }
}
h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.5rem, 7.2vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
h1 em { font-style: italic; font-weight: 400; }
.lede {
  font-size: clamp(1.125rem, 2.2vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 36ch;
  margin: 0;
  text-wrap: pretty;
}
.dateline {
  font-family: var(--ui); font-size: 0.8125rem; color: var(--ink-3);
  margin: 1.5rem 0 0;
}

/* The verdict card, set like a grading report summary. */
.report {
  background: var(--ground);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: var(--shadow);
  font-family: var(--ui);
  overflow: hidden;
}
.report-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
}
.report dl { margin: 0; padding: 0.35rem 1.1rem 0.9rem; }
.report .row {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px dotted var(--rule);
}
.report .row:last-child { border-bottom: 0; }
.report dt { font-size: 0.8125rem; color: var(--ink-3); padding-top: 0.12rem; }
.report dd { margin: 0; font-size: 0.95rem; color: var(--ink); line-height: 1.45; }
.report dd strong { font-weight: 600; }
.verdict-word {
  font-family: var(--display); font-size: 1.9rem; font-weight: 600; line-height: 1;
  letter-spacing: -0.01em; color: var(--gold); display: block; margin-bottom: 0.25rem;
}
@media (max-width: 30rem) {
  .report .row { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
}

/* ---------- Layout ---------- */

.layout {
  max-width: 76rem; margin: 0 auto;
  padding: 0 1rem 5rem;
  display: grid; gap: 2rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 62rem) {
  .layout { grid-template-columns: 13.5rem minmax(0, 1fr); gap: 3.5rem; }
}

.contents { font-family: var(--ui); font-size: 0.875rem; }
.contents details { border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); margin-top: 2rem; }
.contents summary {
  cursor: pointer; list-style: none;
  padding: 0.75rem 1rem; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
}
.contents summary::-webkit-details-marker { display: none; }
.contents summary svg { width: 1rem; height: 1rem; transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1); }
.contents details[open] summary svg { transform: rotate(180deg); }
.contents ol { list-style: none; margin: 0; padding: 0 0.5rem 0.75rem; }
.contents a {
  display: block; padding: 0.4rem 0.5rem; border-radius: 4px;
  color: var(--ink-2); text-decoration: none; line-height: 1.35;
}
.contents a:hover { color: var(--ink); background: var(--ground); }
.contents a[aria-current="true"] { color: var(--accent); background: var(--accent-wash); font-weight: 500; }

@media (min-width: 62rem) {
  .contents { position: sticky; top: 1.5rem; align-self: start; max-height: calc(100vh - 3rem); overflow: auto; }
  .contents details { border: 0; background: transparent; margin-top: 3rem; }
  .contents summary { padding: 0 0.5rem 0.75rem; pointer-events: none; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
  .contents summary svg { display: none; }
  .contents ol { padding: 0; border-left: 1px solid var(--rule); }
  .contents a { border-radius: 0 4px 4px 0; margin-left: -1px; border-left: 1px solid transparent; padding-left: 0.85rem; }
  .contents a[aria-current="true"] { border-left-color: var(--accent); }
}

main { min-width: 0; }

/* ---------- Sections ---------- */

section { padding-top: 3.25rem; }
section > .gauge-mini {
  height: 8px; width: 100%; max-width: var(--measure);
  background:
    repeating-linear-gradient(to right, var(--rule-strong) 0 1px, transparent 1px 40px) bottom / 100% 8px no-repeat,
    repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px 8px) bottom / 100% 4px no-repeat;
  margin-bottom: 1.25rem;
}
h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
h3 {
  font-family: var(--text);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.6rem;
  text-wrap: balance;
}
h4 {
  font-family: var(--ui); font-weight: 600; font-size: 0.95rem;
  margin: 1.75rem 0 0.4rem; color: var(--ink);
}
p, ul, ol.steps, .prose { max-width: var(--measure); }
p { margin: 0 0 1rem; text-wrap: pretty; }
.section-lede { font-size: 1.15rem; color: var(--ink-2); line-height: 1.55; }
ul { padding-left: 1.2rem; margin: 0 0 1.1rem; }
li { margin: 0.3rem 0; }
li::marker { color: var(--ink-3); }
strong { font-weight: 600; }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* Flags for estimates and unverified figures. */
.flag {
  font-family: var(--ui); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; white-space: nowrap;
  border-radius: 3px; padding: 0.08rem 0.32rem; vertical-align: 0.12em;
}
.flag.est { color: var(--gold); background: var(--gold-wash); }
.flag.unv { color: var(--warn); background: var(--warn-wash); }

.src { font-family: var(--ui); font-size: 0.8125rem; color: var(--ink-3); }
.src a { color: var(--ink-3); }
.src a:hover { color: var(--accent); }

/* Callouts: a tinted panel, no coloured side bar. */
.note {
  max-width: var(--measure);
  background: var(--accent-wash);
  border-radius: 6px;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note.warn { background: var(--warn-wash); }
.note .note-title { font-family: var(--ui); font-weight: 600; font-size: 0.9rem; margin: 0 0 0.35rem; }
.note.warn .note-title { color: var(--warn); }
.note:not(.warn) .note-title { color: var(--accent-ink); }

/* ---------- Tables ---------- */

.table-wrap {
  margin: 1.25rem 0 1.75rem;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
  scrollbar-width: thin;
}
.table-wrap:focus-visible { outline-offset: 2px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ui);
  font-size: 0.875rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums lining-nums;
}
caption {
  text-align: left; caption-side: top;
  padding: 0.75rem 1rem 0.6rem;
  font-family: var(--text); font-weight: 600; font-size: 0.95rem; color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
th, td { padding: 0.65rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-3); background: var(--ground); white-space: nowrap;
}
tbody th { font-weight: 600; color: var(--ink); }
td.r, th.r { text-align: right; white-space: nowrap; }
td.loss { color: var(--stop); font-weight: 600; }
td.gain { color: var(--go); font-weight: 600; }
.t-wide { min-width: 44rem; }
.t-mid { min-width: 34rem; }

/* Ratings */
.rate {
  display: inline-block; white-space: nowrap;
  font-size: 0.75rem; font-weight: 600;
  border-radius: 999px; padding: 0.12rem 0.55rem;
}
.rate.go { color: var(--go); background: var(--go-wash); }
.rate.ok { color: var(--accent-ink); background: var(--accent-wash); }
.rate.later { color: var(--gold); background: var(--gold-wash); }
.rate.no { color: var(--stop); background: var(--stop-wash); }

/* ---------- Price ladder (the one chart) ---------- */

.ladder {
  max-width: 52rem;
  margin: 1.5rem 0 0.75rem;
  padding: 1.1rem 1.1rem 0.9rem;
  border: 1px solid var(--rule); border-radius: 6px; background: var(--paper);
  font-family: var(--ui);
}
.ladder-title { font-family: var(--text); font-weight: 600; font-size: 0.95rem; margin: 0 0 0.9rem; }
.ladder-row {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 0.4rem 1rem; align-items: center;
  padding: 0.45rem 0;
}
.ladder-label { font-size: 0.8125rem; color: var(--ink-2); line-height: 1.3; }
.ladder-label small { display: block; color: var(--ink-3); font-size: 0.75rem; }
.ladder-track { position: relative; height: 1.6rem; }
.ladder-track::before {
  content: ""; position: absolute; inset: 50% 0 auto; height: 1px; background: var(--rule);
}
.ladder-bar {
  position: absolute; top: 0.3rem; height: 1rem;
  left: calc(var(--from) / 600 * 100%);
  width: max(0.5rem, calc((var(--to) - var(--from)) / 600 * 100%));
  background: var(--accent);
  border-radius: 2px;
  transform-origin: left center;
}
.ladder-bar.gold { background: var(--gold); }
.ladder-bar.muted { background: var(--rule-strong); }
.ladder-val {
  position: absolute; top: 0.25rem;
  left: calc(min(var(--to), 470) / 600 * 100% + 0.5rem);
  font-size: 0.75rem; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.ladder-axis {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1rem;
  margin-top: 0.35rem; font-size: 0.6875rem; color: var(--ink-3);
}
.ladder-axis .ticks { display: flex; justify-content: space-between; border-top: 1px solid var(--rule-strong); padding-top: 0.25rem; }
@media (max-width: 40rem) {
  .ladder-row, .ladder-axis { grid-template-columns: minmax(0, 1fr); }
  .ladder-axis > span:first-child { display: none; }
}
/* Authored moment: bars draw out from an already-visible state. */
.js .ladder:not(.seen) .ladder-bar { transform: scaleX(0.04); opacity: 0.35; }
.ladder-bar { transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1), opacity 600ms ease-out; }
.ladder-row:nth-child(3) .ladder-bar { transition-delay: 60ms; }
.ladder-row:nth-child(4) .ladder-bar { transition-delay: 120ms; }
.ladder-row:nth-child(5) .ladder-bar { transition-delay: 180ms; }
.ladder-row:nth-child(6) .ladder-bar { transition-delay: 240ms; }
.ladder-row:nth-child(7) .ladder-bar { transition-delay: 300ms; }
@media (prefers-reduced-motion: reduce) {
  .ladder-bar { transition: none; }
  .js .ladder:not(.seen) .ladder-bar { transform: none; opacity: 1; }
}

/* ---------- Supply chain line ---------- */

.chain {
  list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; max-width: 52rem;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  font-family: var(--ui);
}
.chain li { margin: 0; padding: 0.75rem 0.9rem 0.8rem; border-top: 2px solid var(--ink); position: relative; }
.chain li + li { border-left: 1px solid var(--rule); }
.chain b { display: block; font-size: 0.9rem; font-weight: 600; }
.chain span { font-size: 0.8125rem; color: var(--ink-3); line-height: 1.35; display: block; margin-top: 0.15rem; }
@media (max-width: 40rem) {
  .chain { grid-template-columns: minmax(0, 1fr); }
  .chain li { border-top: 0; border-left: 2px solid var(--ink); }
  .chain li + li { border-left: 2px solid var(--ink); }
  .chain li + li::before {
    content: ""; position: absolute; left: -2px; top: 0; width: 0.6rem; border-top: 1px solid var(--rule-strong);
  }
}

/* ---------- Steps and timeline ---------- */

ol.steps { list-style: none; padding: 0; margin: 1.25rem 0; counter-reset: step; }
ol.steps > li {
  counter-increment: step;
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0 1rem;
  padding: 1.1rem 0; border-top: 1px solid var(--rule); margin: 0;
}
ol.steps > li::before {
  content: counter(step);
  font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--gold);
  grid-row: span 3;
}
ol.steps h4 { margin: 0.1rem 0 0.25rem; font-size: 1rem; }
ol.steps .cost { font-family: var(--ui); font-size: 0.8125rem; color: var(--ink-3); margin: 0 0 0.5rem; }
ol.steps ul { margin-bottom: 0; }

.timeline { list-style: none; padding: 0; margin: 1rem 0 1.25rem; max-width: var(--measure); font-family: var(--ui); }
.timeline li {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem;
  padding: 0.5rem 0; border-bottom: 1px dotted var(--rule); margin: 0; font-size: 0.9rem;
}
.timeline li b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Glossary ---------- */

.glossary { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 2.5rem; margin: 1.25rem 0 0; }
@media (min-width: 48rem) { .glossary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.glossary div { padding: 0.7rem 0; border-top: 1px solid var(--rule); break-inside: avoid; }
.glossary dt { font-weight: 600; font-size: 0.975rem; }
.glossary dd { margin: 0.15rem 0 0; color: var(--ink-2); font-size: 0.95rem; line-height: 1.5; }

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

footer {
  border-top: 1px solid var(--rule);
  background: var(--paper);
  font-family: var(--ui); font-size: 0.8125rem; color: var(--ink-3);
}
footer .inner { max-width: 76rem; margin: 0 auto; padding: 1.5rem 1rem 2.5rem; display: grid; gap: 0.5rem; }
footer p { margin: 0; max-width: 70ch; }

@media print {
  .contents, .theme-toggle, .skip { display: none; }
  .layout { grid-template-columns: 1fr; }
  body { background: #fff; }
}

/* ---------- Know the stone: our own drawings ---------- */

.shapes {
  list-style: none; padding: 0; margin: 1rem 0 1.5rem; max-width: 52rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr)); gap: 0.25rem;
  font-family: var(--ui); font-size: 0.8125rem; color: var(--ink-2); text-align: center;
}
.shapes li { margin: 0; padding: 0.6rem 0.25rem 0.5rem; border-radius: 6px; transition: background 160ms ease-out; }
.shapes li:hover { background: var(--paper); }
.shapes svg { display: block; width: 3.4rem; height: 3.4rem; margin: 0 auto 0.35rem; }
.shapes svg * { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.shapes svg .f { fill: none; stroke: var(--rule-strong); stroke-width: 1; }

.fig { margin: 1rem 0 1.75rem; max-width: 52rem; }
.fig-scroll {
  overflow-x: auto; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper);
  padding: 0.9rem 0.75rem 0.5rem; scrollbar-width: thin;
}
.fig figcaption, .growth figcaption { font-size: 0.9rem; color: var(--ink-2); margin-top: 0.6rem; line-height: 1.5; max-width: var(--measure); }
.fig svg { display: block; width: 100%; height: auto; }
svg.carat { min-width: 34rem; }
svg.scale { min-width: 30rem; }
.fig svg text { font-family: var(--ui); }
.fig svg .lbl { font-size: 11px; font-weight: 600; fill: var(--ink); }
.fig svg .sub { font-size: 9.5px; fill: var(--ink-3); }
.carat .stone, .scale .stone { fill: #f7f9fc; stroke: var(--ink-3); stroke-width: 1; }
.carat .table-line { fill: none; stroke: #b7bfcd; stroke-width: 0.8; }
.carat .coin { fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-dasharray: 4 3; }
.scale .cell { stroke: var(--rule-strong); stroke-width: 0.8; }
.scale .brk { fill: none; stroke: var(--rule-strong); stroke-width: 1; }
.scale .inc { fill: #39404d; }
.scale .feather { fill: none; stroke: #39404d; stroke-width: 1; stroke-linecap: round; }

.growth { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 1.5rem; max-width: 52rem; }
@media (min-width: 44rem) { .growth { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.growth .fig { margin: 0.5rem 0 0.5rem; }
.growth svg { border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); padding: 0.5rem; }
.growth .frame { fill: none; stroke: var(--ink-3); stroke-width: 1.2; }
.growth .plasma { fill: var(--gold); fill-opacity: 0.18; stroke: var(--gold); stroke-width: 1; }
.growth .rain path { stroke: var(--gold); stroke-width: 1.2; stroke-dasharray: 2 3; }
.growth .seed { fill: var(--rule); stroke: var(--ink-3); stroke-width: 0.8; }
.growth .grown { fill: var(--accent-wash); stroke: var(--accent); stroke-width: 0.8; }
.growth .stage { fill: var(--ink-3); }
.growth .arrow { fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.growth .anvil { fill: var(--rule); stroke: var(--ink-3); stroke-width: 1; }
.growth .capsule { fill: var(--gold-wash); stroke: var(--gold); stroke-width: 1; }
.growth .crystal { fill: var(--accent-wash); stroke: var(--accent); stroke-width: 1.2; }

/* Sample report: set like the document it explains. */
.cert { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem 2rem; margin: 1rem 0 1rem; max-width: 60rem; }
@media (min-width: 52rem) { .cert { grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); align-items: start; } }
.cert-card {
  background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 4px; box-shadow: var(--shadow);
  font-family: var(--ui); font-size: 0.8125rem;
}
.cert-top {
  display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0.9rem;
  border-bottom: 2px solid var(--ink); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.cert-card dl { margin: 0; padding: 0.4rem 0.9rem 0.7rem; }
.cert-card dl div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 0.5rem; padding: 0.38rem 0; border-bottom: 1px dotted var(--rule); }
.cert-card dl div:last-child { border-bottom: 0; }
.cert-card dt { color: var(--ink-3); display: flex; gap: 0.4rem; align-items: baseline; }
.cert-card dd { margin: 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cert-card i, .cert-notes li::before {
  font-style: normal; font-family: var(--ui); font-size: 0.6875rem; font-weight: 600;
  display: inline-grid; place-items: center; flex: none;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--gold); color: var(--paper);
}
.cert-card dt:not(:has(i))::before { content: ""; width: 1.15rem; flex: none; }
.cert-notes { list-style: none; padding: 0; margin: 0; counter-reset: c; font-size: 0.975rem; }
.cert-notes li { counter-increment: c; position: relative; padding-left: 1.85rem; margin: 0 0 0.65rem; }
.cert-notes li::before { content: counter(c); position: absolute; left: 0; top: 0.22rem; }
@media (max-width: 30rem) { .cert-card dl div { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* ---------- Types of diamond ---------- */
.t-xwide { min-width: 58rem; }
svg.props { min-width: 34rem; }
.props .axis { stroke: var(--rule-strong); stroke-width: 1; }
.props .ticks-s line { stroke: var(--rule-strong); }
.props .m-di { fill: var(--accent); }
.props .m-mo { fill: var(--gold); }
.props .m-sa { fill: var(--ink-3); }
.props .m-cz { fill: var(--rule-strong); opacity: 0.7; }
.props .m-cz-c { fill: var(--rule-strong); }

.types { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 2.5rem; margin: 0.5rem 0 1rem; }
@media (min-width: 52rem) { .types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.type { padding: 1rem 0 0.75rem; border-top: 1px solid var(--rule); }
.type h4 { margin: 0 0 0.35rem; font-family: var(--text); font-size: 1.1rem; }
.type > p { font-size: 0.95rem; color: var(--ink-2); margin-bottom: 0.6rem; }
.pc { margin: 0; font-size: 0.925rem; }
.pc div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0.3rem 0; }
.pc dt { font-family: var(--ui); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); padding-top: 0.2rem; }
.pc dd { margin: 0; line-height: 1.5; }
.pc .pro::before, .pc .con::before {
  font-family: var(--ui); font-weight: 700; font-size: 0.8rem; display: inline-block; width: 1rem;
}
.pc .pro::before { content: "+"; color: var(--go); }
.pc .con::before { content: "−"; color: var(--stop); }
.pc .con { display: block; margin-top: 0.15rem; }

/* ---------- Linked page thumbnails ---------- */
.shots {
  list-style: none; padding: 0; margin: 1rem 0 0.25rem; max-width: 60rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.85rem;
}
.shots li { margin: 0; }
.shots a { display: block; text-decoration: none; color: var(--ink-2); font-family: var(--ui); font-size: 0.8125rem; line-height: 1.3; }
.shots img {
  display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; object-position: top;
  border: 1px solid var(--rule); border-radius: 4px; background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), border-color 160ms ease-out;
}
.shots span { display: block; margin-top: 0.4rem; }
.shots a:hover img { transform: translateY(-2px); border-color: var(--rule-strong); }
.shots a:hover span { color: var(--accent); }
.shots-note { margin-top: 0.4rem; }
@media (prefers-reduced-motion: reduce) { .shots img { transition: none; } .shots a:hover img { transform: none; } }
