/* Layout: the treatment reference a trade buyer needs. Pick a gem: its usual treatments with their AGTA codes,
   GIA's care advice and JewelLoop's plating guidance. Then every code, each with a before/after illustration;
   then the US disclosure rule as three questions. Data shared with the live gemstone table. */
:root {
  --paper: #ffffff; --ink: #16161a; --ink-soft: #3d3d45; --muted: #6b6b75; --rule: #e4e2de; --mist: #f4f3f1;
  --ruby: #9b1b30; --gold: #b8892f; --good: #2f7d4f; --care: #b7791f;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

:root[data-theme="dark"] { --paper: #121216; --ink: #f1efe9; --ink-soft: #c9c6bf; --muted: #9a978f; --rule: #2c2c33; --mist: #1b1b21; --ruby: #e0566c; --gold: #e1b25a; --good: #5fbf86; --care: #e3a948; color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.5; margin: 0; }
a { color: var(--ink); text-decoration-color: var(--ruby); text-underline-offset: 3px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 16px; padding-block: 20px 48px; display: grid; gap: 24px; }
header.top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--ink); padding-bottom: 14px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ruby); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; flex: none; width: 4px; height: 15px; background: var(--gold); clip-path: polygon(0 24%, 100% 0, 100% 76%, 0 100%); }
h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.03; margin: 6px 0 0; }
h2.sec { font-family: var(--font-display); font-weight: 500; font-size: 28px; margin: 0; line-height: 1.1; }
.lede { max-width: 72ch; color: var(--ink-soft); margin: 6px 0 0; }
.prototype { font-size: 12px; color: var(--muted); border: 1px solid var(--rule); padding: 4px 10px; white-space: nowrap; }
.help { font-size: 12.5px; color: var(--muted); margin: 0; }
section.study { border-top: 1px solid var(--ink); padding-top: 18px; display: grid; gap: 14px; }
button:focus-visible, select:focus-visible { outline: 2px solid var(--ruby); outline-offset: 2px; }
select { font: 500 15px var(--font-body); color: var(--ink); background: var(--paper); border: 1px solid var(--ink); padding: 8px 10px; border-radius: 0; }
.gemrow { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.gemchip { flex: none; display: grid; justify-items: center; gap: 2px; width: 74px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); padding: 6px 4px; cursor: pointer; font: 500 12px var(--font-body); text-align: center; line-height: 1.15; }
.gemchip .pic { width: 46px; height: 46px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #2c2d33, #111216); }
.gemchip .pic img, .gemchip .pic svg { width: 40px; height: 40px; object-fit: contain; }
.gemchip[aria-pressed="true"] { border: 2px solid var(--ink); padding: 5px 3px; background: var(--mist); }
.gemcard { display: grid; gap: 18px; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); border: 1px solid var(--rule); padding: 16px; }
@media (max-width: 760px) { .gemcard { grid-template-columns: 1fr; } }
.bigpic { aspect-ratio: 1; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #33343a, #0f1013 75%); }
.bigpic svg { width: 72%; height: auto; }
.bigpic img { max-width: 72%; max-height: 84%; width: auto; height: auto; }
.gemcard h3 { font-family: var(--font-display); font-weight: 500; font-size: 34px; margin: 0; line-height: 1; }
.codes { display: flex; flex-wrap: wrap; gap: 6px; }
.code { font: 600 13px var(--font-data); border: 1px solid var(--ink); padding: 3px 9px; background: var(--paper); color: var(--ink); cursor: pointer; }
.code.n { border-color: var(--good); color: var(--good); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; color: var(--ink-soft); }
.lvl { font: 600 12px var(--font-body); padding: 1px 6px; border: 1px solid currentColor; margin-right: 6px; white-space: nowrap; }
.l-ok { color: var(--good); } .l-care { color: var(--care); } .l-no { color: var(--ruby); }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.tcard { border: 1px solid var(--rule); display: grid; grid-template-rows: auto 1fr; scroll-margin-top: 20px; }
.tcard.flash { outline: 2px solid var(--ruby); outline-offset: 2px; }
.tcard .ill { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4px; padding: 12px; background: radial-gradient(circle at 50% 40%, #33343a, #0f1013 80%); min-height: 132px; }
.tcard .ill .side { display: grid; justify-items: center; gap: 4px; font: 600 12px var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: #c9c6bf; }
.tcard .ill img, .tcard .ill svg { width: 92px; height: 92px; object-fit: contain; }
.tcard .ill .arrow { color: #c9c6bf; font-size: 20px; }
.tcard .body { padding: 12px 14px; display: grid; gap: 6px; align-content: start; }
.tcard h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 22px; display: flex; gap: 10px; align-items: baseline; }
.tcard h3 b { font: 600 15px var(--font-data); border: 1px solid var(--ink); padding: 0 6px; }
.tcard p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.tcard .where { font-size: 12.5px; color: var(--muted); }
.flow { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } }
.q { border: 1px solid var(--rule); padding: 12px 14px; display: grid; gap: 8px; }
.q b { font-size: 14px; }
.yn { display: flex; gap: 6px; }
.yn button { font: 600 13px var(--font-body); border: 1px solid var(--ink); background: var(--paper); color: var(--ink); padding: 5px 14px; cursor: pointer; }
.yn button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.verdict { padding: 14px 16px; display: grid; gap: 6px; color: #fff; }
.verdict.yes { background: var(--ruby); } .verdict.no { background: var(--good); } .verdict.open { background: var(--ink); color: var(--paper); }
.verdict b { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.15; }
.verdict span { font-size: 13.5px; opacity: .9; }
.sources { display: grid; gap: 6px; font-size: 13px; color: var(--ink-soft); max-width: 92ch; }
.sources p { margin: 0; }
/* jewelloop.net: one column that never grows wider than the screen */
.wrap { grid-template-columns: minmax(0, 1fr); }
.jl-table-scroll { overflow-x: auto; max-width: 100%; }
/* shown once the page's script has run (static/visual/ready.js): no jump while loading */
html:not(.jl-ready) .wrap { visibility: hidden; }

/* On jewelloop.net the page around it shows the title and the introduction. */
header.top { display: none !important; }
