/* Orthonym PubChem tracker: "Dawn over the sea" (user 2026-11-19), light only ("No dark mode!", same day). The
   user's five colours: basalt #060002, sea mist #977b87, dusk rose #cb9392, sunrise gold #f9d8a3, twilight plum
   #625566. A dawn sky (mist to rose to gold) over a pale sea at the top; below it warm paper. Plum marks what is
   named, rose what is still open, gold is the light: the sky, the horizon lines over every table and the highlights. */
:root {
  color-scheme: light;
  --basalt: #060002;
  --ground: #fbf6f0;
  --surface: #ffffff;
  --surface-2: #f4ece6;
  --rule: #e8dcd8;
  --rule-strong: #d3c2c4;
  --plum: #625566;
  --plum-deep: #4b3f4f;
  --mist: #977b87;
  --rose: #cb9392;
  --rose-deep: #97696d;
  --gold: #f9d8a3;
  --gold-line: #e7c387;
  --gold-wash: #fcefd9;
  --ink: #1c1219;
  --ink-2: #4e3f4b;
  --ink-3: #6b5a66;
  --lv1: #d2a2a0;
  --lv2: #b98886;
  --lv3: #98666a;
  --lv4: #6f454d;
  --f-display: "Archivo", "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Public Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-code: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wide: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { background: var(--ground); scroll-padding-top: 7rem; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-text);
  font-variant-numeric: tabular-nums;
  scrollbar-color: var(--rule-strong) var(--ground);
  accent-color: var(--plum);
  caret-color: var(--plum);
  overflow-x: clip;
}
::selection { background: var(--gold); color: var(--ink); }
a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--plum) 45%, transparent); }
a:hover { color: var(--ink); text-decoration-color: var(--rose); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 2px; }
code { font: 500 0.86em/1 var(--f-code); color: var(--ink-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--plum); color: #fff; padding: 8px 12px;
  z-index: 20; border-radius: 4px; }
.skip:focus { left: var(--gutter); }

/* ---- header with the CID lookup ---- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.top-in, .lookup-result, main, .foot {
  max-width: var(--wide);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 10px 32px; flex-wrap: wrap;
  padding-block: 10px; }
.brand { color: var(--ink); text-decoration: none; display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-o { font: 800 1.2rem/1 var(--f-display); font-stretch: 118%; letter-spacing: -0.01em; }
.brand-o::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 9px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff6e3 0 35%, var(--gold) 36% 70%, var(--rose) 71%); vertical-align: 1px; }
.brand-t { color: var(--ink-3); font-weight: 500; font-size: 0.95rem; }
.lookup { display: grid; gap: 4px; min-width: 0; }
.lookup label { font-size: 0.76rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0.02em; }
.lookup-row { display: flex; }
.lookup input {
  width: 13rem;
  min-width: 0;
  font: 500 0.95rem/1 var(--f-code);
  padding: 9px 12px;
  border: 1px solid var(--rule-strong);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background: var(--surface);
  color: var(--ink);
}
.lookup input::placeholder { color: var(--ink-3); }
.lookup input:focus-visible { outline-offset: 0; }
.lookup button {
  font: 650 0.92rem/1 var(--f-text);
  padding: 9px 16px;
  border: 1px solid var(--plum);
  border-radius: 0 6px 6px 0;
  background: var(--plum);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 200ms ease-out;
}
.lookup button:hover { background: var(--plum-deep); }
.lookup-result {
  padding-block: 0 14px;
  animation: reveal 360ms var(--ease);
}
.lookup-result .card {
  border: 1px solid var(--rule-strong);
  border-top: 2px solid var(--gold-line);
  background: var(--surface);
  border-radius: 8px;
  padding: 12px 16px;
  display: grid;
  gap: 6px;
  box-shadow: 0 12px 28px -16px rgba(28, 18, 25, 0.35);
}
.lookup-result .title { font-weight: 700; }
.lookup-result .facts { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--ink-2); font-size: 0.92rem; }
.lookup-result .facts b { color: var(--ink); font-weight: 600; }
.lookup-result .name { font-family: var(--f-code); font-size: 0.82rem; color: var(--ink-2); overflow-wrap: anywhere; }
.lookup-result.is-error .card { border-color: var(--rose); border-top-color: var(--rose); }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---- page ---- */
main { padding-block: 40px 32px; display: grid; gap: 88px; }
main > section { min-width: 0; display: grid; gap: 16px; align-content: start; }
h1, h2 { font-family: var(--f-display); font-stretch: 112%; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); line-height: 1.15; font-weight: 750; letter-spacing: -0.02em; }
h3 { font-size: 1.05rem; font-weight: 700; margin: 22px 0 0; }
p { margin: 0; max-width: 72ch; }
.lead { gap: 12px; }
.state { font-size: 1.12rem; color: var(--ink); max-width: 68ch; }
.meta { color: var(--ink-2); font-size: 0.9rem; }
.note { color: var(--ink-2); font-size: 0.95rem; }
.definition { font-size: 1.02rem; max-width: 70ch; }
.fixline code, .definition code, .fix code { font-size: 0.84em; }
.fixline { padding: 12px 16px; background: var(--gold-wash); border: 1px solid var(--gold-line); border-radius: 6px;
  max-width: 70ch; }
.crumbs { font-size: 0.9rem; }
.sky .crumbs a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.reason main { padding-top: 0; }
.sky.is-shallow { padding: 34px 0 30px; gap: 12px; margin-bottom: 14px; }
.sky.is-shallow h1 { color: var(--basalt); font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); font-stretch: 118%; }
.sky.is-shallow .state { color: #2a1d26; }
.sky.is-shallow .state strong { color: var(--basalt); }
.count { color: var(--ink-3); font-weight: 500; font-size: 0.92em; margin-left: 6px; }
.group-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; }
.is-named { color: var(--plum); }

/* ---- tables: a gold horizon line over each ---- */
.table-wrap { overflow-x: auto; min-width: 0; border-top: 2px solid var(--gold-line); }
table { border-collapse: collapse; width: 100%; }
caption { text-align: left; color: var(--ink-3); font-size: 0.88rem; padding: 10px 0; caption-side: bottom; }
th, td { text-align: left; vertical-align: top; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--rule); }
thead th { font-size: 0.76rem; font-weight: 650; letter-spacing: 0.03em; color: var(--ink-2); padding-block: 10px;
  border-bottom: 1px solid var(--rule-strong); white-space: nowrap; }
th[scope="row"] { font-weight: 500; }
.num { text-align: right; white-space: nowrap; }
.share { color: var(--ink-3); }
.bar { display: block; height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.bar > span { display: block; height: 100%; background: var(--rose); border-radius: 4px; }
.bar-cell { width: 26%; min-width: 120px; }
table.reasons td.change { width: 14rem; }

table.reasons th[scope="row"] a { font-weight: 650; font-size: 1.04rem; text-decoration: none; color: var(--ink); }
table.reasons th[scope="row"] a:hover { color: var(--plum); text-decoration: underline; text-decoration-color: var(--rose); }
table.reasons .fix { display: block; color: var(--ink-2); font-size: 0.86rem; line-height: 1.45; margin-top: 4px;
  max-width: 58ch; font-weight: 400; }
table.reasons td.rank { width: 2.4rem; color: var(--ink-3); font-weight: 600; padding-top: 12px; }
table.reasons td.cnt { font-size: 1.05rem; font-weight: 650; }
table.reasons td.cnt .share { display: block; font-size: 0.82rem; font-weight: 500; }
table.reasons tbody tr { transition: background-color 600ms var(--ease); }
table.reasons tbody tr:hover { background: color-mix(in srgb, var(--gold-wash) 70%, transparent); }
table.reasons tbody tr.is-hit { background: var(--gold-wash); }
table.reasons tbody tr.is-hit th a { text-decoration: underline; text-decoration-color: var(--rose); }
.delta { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.delta .arrow { width: 10px; height: 10px; fill: var(--ink-3); }
.flow { display: block; font-size: 0.8rem; font-weight: 400; color: var(--ink-2); line-height: 1.4; margin-top: 4px;
  white-space: normal; }
.flow .named { color: var(--plum); font-weight: 650; }
.flows { max-width: 80ch; }
.delta.is-same, .delta.is-new { color: var(--ink-3); font-weight: 500; }

table.counts th[scope="row"] { max-width: 28ch; }
table.counts tr.is-first th, table.counts tr.is-first td.num:not(.share) { color: var(--plum); font-weight: 700; }
table.counts tr.is-first .bar > span { background: var(--plum); }

/* ---- molecule grid ---- */
.mol-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .mol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mol-grid { grid-template-columns: minmax(0, 1fr); } }
.mol {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  transition: border-color 300ms ease-out, box-shadow 300ms ease-out;
}
.mol:hover { border-color: var(--rule-strong); box-shadow: 0 10px 24px -18px rgba(28, 18, 25, 0.4); }
.mol img { display: block; width: 100%; height: auto; aspect-ratio: 320 / 230; background: #fff;
  border-bottom: 1px solid var(--rule); }
.no-drawing { aspect-ratio: 320 / 230; display: grid; place-items: center; color: var(--ink-3); font-size: 0.85rem;
  background: var(--surface-2); border-bottom: 1px solid var(--rule); }
.mol figcaption { padding: 11px 13px 13px; display: grid; gap: 5px; align-content: start; min-width: 0; }
.mol .cid { font: 500 0.84rem/1.3 var(--f-code); }
.mol-name { font-size: 0.9rem; line-height: 1.45; overflow-wrap: break-word; }
.mol-name.is-none { color: var(--ink-3); font-style: italic; }
.mol-facts { font-size: 0.8rem; color: var(--ink-2); }
.smiles { font: 400 0.72rem/1.45 var(--f-code); color: var(--ink-3); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- periodic table: a rose ramp, deeper for more compounds ---- */
.ptable-figure { margin: 0; display: grid; gap: 10px; }
.ptable-scroll { overflow-x: auto; min-width: 0; }
.ptable { display: grid; grid-template-columns: repeat(18, minmax(34px, 1fr)); grid-template-rows: repeat(7, auto) 10px repeat(2, auto);
  gap: 3px; min-width: 660px; }
.el { border: 1px solid var(--rule); border-radius: 4px; padding: 3px 4px 4px; min-height: 42px; display: grid;
  align-content: space-between; background: var(--surface); }
.el-s { font-weight: 700; font-size: 0.82rem; }
.el-n { font-size: 0.66rem; font-weight: 600; }
.el.lv0 { color: var(--ink-3); }
.el.lv1 { background: var(--lv1); border-color: var(--lv1); color: var(--basalt); }
.el.lv2 { background: var(--lv2); border-color: var(--lv2); color: var(--basalt); }
.el.lv3 { background: var(--lv3); border-color: var(--lv3); color: #fff; }
.el.lv4 { background: var(--lv4); border-color: var(--lv4); color: #fff; }
.el.is-organic { background: repeating-linear-gradient(135deg, var(--surface-2) 0 4px, var(--ground) 4px 8px); color: var(--ink-3); }
.ptable-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.82rem; color: var(--ink-2); }
.key { display: inline-flex; align-items: center; gap: 6px; }
.el-swatch { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--rule); }
.el-swatch.lv1 { background: var(--lv1); } .el-swatch.lv2 { background: var(--lv2); }
.el-swatch.lv3 { background: var(--lv3); } .el-swatch.lv4 { background: var(--lv4); }
.el-swatch.is-organic { background: repeating-linear-gradient(135deg, var(--surface-2) 0 3px, var(--ground) 3px 6px); }

/* ---- about, comments, footer ---- */
.about dl { display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr); gap: 12px 28px; margin: 0;
  max-width: 920px; }
.about dt { font-weight: 700; }
.about dd { margin: 0; color: var(--ink-2); max-width: 70ch; }
.comments { border-top: 2px solid var(--gold-line); padding-top: 20px; }
.foot { color: var(--ink-2); font-size: 0.86rem; padding-block: 0 56px; }
.foot p { border-top: 1px solid var(--rule); padding-top: 24px; }

/* ---- front page: the dawn sky, the pale sea with the PubChem strip, the progress chart ---- */
.front main { gap: 104px; padding-top: 0; }
.hero { gap: 0; --sun-w: clamp(110px, 14vw, 190px);
  --sun-x: calc(50vw + 0.43 * (min(100vw, 1180px) - 32px) - var(--sun-w) / 2); }
/* The sky and the sea paint the full width from pseudo-elements set out to the viewport edges; html and body clip the
   few pixels a classic scrollbar adds. */
.sky {
  position: relative;
  isolation: isolate;
  padding: clamp(72px, 9vw, 128px) 0 clamp(30px, 4vw, 48px);
  color: var(--ink);
  display: grid;
  gap: 18px;
}
.sky::after {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -3;
  background:
    radial-gradient(ellipse 760px 360px at var(--sun-x, 70%) 100%, rgba(255, 246, 226, 0.95), rgba(249, 216, 163, 0) 72%),
    linear-gradient(180deg, var(--mist) 0%, #b38c96 26%, var(--rose) 52%, #e6b49c 76%, var(--gold) calc(100% - 2px),
      var(--gold-line) calc(100% - 2px));
}
.sky::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: var(--plum);
  opacity: 0;
  pointer-events: none;
}
/* The sun: a disc half-risen on the horizon; the sea covers its lower half. It rises once on load. */
.sun {
  position: absolute;
  right: 7%;
  bottom: 0;
  z-index: -2;
  width: var(--sun-w);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateY(50%);
  background: radial-gradient(circle, #fffaf0 0 54%, #fde6ba 63%, rgba(249, 216, 163, 0) 71%);
}
.hero h1 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em;
  max-width: 22ch; color: var(--ink); }
.hero-pct { display: block; font-size: clamp(4rem, 1.4rem + 11vw, 9.5rem); font-weight: 850; font-stretch: 125%;
  line-height: 0.92; letter-spacing: -0.045em; white-space: nowrap; margin-bottom: 0.12em; color: var(--basalt); }
.hero .state { font-size: 1.12rem; color: #2a1d26; }
.hero .state strong { color: var(--basalt); }
.hero .state code { color: #2a1d26; }
.sea {
  position: relative;
  isolation: isolate;
  padding: 46px 0 30px;
}
.sea::after {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -2;
  background: linear-gradient(180deg, #efdcd4 0, #f5ebe4 42%, var(--ground) 100%);
}
/* The sun's path on the water: broken gold strokes under the disc, narrowing and fading with depth. */
.sea::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: repeating-linear-gradient(180deg, rgba(249, 216, 163, 0.95) 0 2px, rgba(249, 216, 163, 0) 2px 7px);
  /* The path stays in the open water above the end counts and fades out before the strip and the lens. */
  bottom: auto;
  height: 42px;
  -webkit-mask: radial-gradient(calc(var(--sun-w) * 0.62) 100% at var(--sun-x, 70%) 0, #000 0, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
  mask: radial-gradient(calc(var(--sun-w) * 0.62) 100% at var(--sun-x, 70%) 0, #000 0, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
  pointer-events: none;
}
.pubchem { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.strip-ends { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap;
  margin-bottom: 12px; color: var(--ink-2); font-size: 0.92rem; }
.strip-ends b { font: 800 1.6rem/1.1 var(--f-display); font-stretch: 112%; letter-spacing: -0.015em; color: var(--ink);
  margin-right: 4px; }
.end-open { text-align: right; }
.strip-ends .lbl { white-space: nowrap; }
.swatch { display: inline-block; width: 14px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 8px; }
.swatch.is-plum { background: var(--plum); }
.swatch.is-rose { background: var(--rose); }
.strip-bar { height: 12px; background: var(--rose); border-radius: 4px; overflow: hidden; }
.strip-named { display: block; height: 100%; background: var(--plum); }
.pubchem .strip-bar { height: 36px; border-radius: 6px 2px 2px 6px; }
/* The rose sliver keeps at least 4px, so the lens always has a visible source. */
.pubchem .strip-named { border-radius: 6px 0 0 6px; box-shadow: 2px 0 0 var(--ground); max-width: calc(100% - 6px); }
.zoom-lens { display: block; width: 100%; height: 64px; }
.zoom-lens polygon { fill: color-mix(in srgb, var(--rose) 20%, transparent); }
.zoom-bar { display: flex; gap: 3px; background: color-mix(in srgb, var(--rose) 20%, transparent); padding: 0 0 16px;
  border-radius: 0 0 8px 8px; }
.seg { flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start;
  text-decoration: none; color: var(--ink); }
.seg-fill { display: block; height: 34px; background: var(--rose); transition: background-color 300ms ease-out; }
.seg:first-child .seg-fill { border-radius: 6px 0 0 6px; }
.seg:last-child .seg-fill { border-radius: 0 6px 6px 0; }
.seg.is-rest .seg-fill { background: var(--rose-deep); }
.seg:hover .seg-fill { background: var(--rose-deep); }
.seg-label { display: grid; padding: 0 10px; font-size: 0.86rem; line-height: 1.3; color: var(--ink-2); }
.seg-label b { font-size: 1.12rem; font-weight: 750; color: var(--ink); }
.seg:hover .seg-label { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.seg.is-rest .seg-label { justify-self: unsafe end; justify-items: end; text-align: right; white-space: nowrap; }
.pubchem figcaption { color: var(--ink-2); font-size: 0.9rem; margin-top: 10px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.92rem; font-weight: 600; padding-top: 22px; }
.jump a { text-decoration: none; color: var(--ink-2); }
.jump a:hover { color: var(--plum); text-decoration: underline; text-decoration-color: var(--rose); }

/* The one authored moment: the sun comes up. The sky starts dimmed in plum and clears while the share counts up,
   and the lens opens out of the rose sliver. Content is visible from the first frame; reduced motion shows the end. */
@keyframes dawn { from { opacity: 0.55; } to { opacity: 0; } }
.front .sky::before { animation: dawn 1800ms var(--ease) both; }
@keyframes rise { from { transform: translateY(96%); } to { transform: translateY(50%); } }
.front .sun { animation: rise 2200ms var(--ease) both; }
@keyframes lens-open { from { clip-path: inset(0 0 0 99.6%); } to { clip-path: inset(0 0 0 0); } }
.zoom-lens, .zoom-bar { animation: lens-open 1300ms var(--ease) 500ms backwards; }

/* ---- progress chart ---- */
.progress { gap: 18px; }
.progress-sum { font-size: 1.12rem; max-width: 70ch; }
.progress-sum b { color: var(--ink); font-weight: 700; }
.chart { position: relative; min-width: 0; height: 340px; border-top: 2px solid var(--gold-line); padding-top: 8px;
  outline-offset: 6px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .grid line { stroke: var(--rule); stroke-width: 1; shape-rendering: crispEdges; }
.chart .tick { fill: var(--ink-3); font: 500 12px var(--f-text); font-variant-numeric: tabular-nums; }
.chart .line { fill: none; stroke: var(--plum); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--plum); stroke: var(--ground); stroke-width: 2; }
.chart .dot.is-on { fill: var(--plum-deep); }
.chart .cross { stroke: var(--ink-3); stroke-width: 1; shape-rendering: crispEdges; visibility: hidden; }
.chart .cross.is-on { visibility: visible; }
.chart .end-label { fill: var(--ink); font: 750 15px var(--f-display); font-stretch: 112%; }
.chart .end-sub { fill: var(--ink-3); font: 500 12px var(--f-text); }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart-tip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  min-width: 13rem;
  max-width: 17rem;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-top: 2px solid var(--gold-line);
  border-radius: 8px;
  box-shadow: 0 12px 28px -16px rgba(28, 18, 25, 0.35);
  pointer-events: none;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink-2);
  transition: transform 120ms ease-out;
}
.chart-tip[hidden] { display: none; }
.chart-tip .tip-v { display: flex; align-items: center; gap: 8px; color: var(--ink); font: 800 1.2rem/1.2 var(--f-display);
  font-stretch: 112%; }
.chart-tip .tip-v::before { content: ""; width: 14px; height: 2px; background: var(--plum); border-radius: 1px; }
.chart-tip .tip-gain { color: var(--ink); font-weight: 650; }
.chart-tip code { font-size: 0.78rem; white-space: nowrap; }
.chart .wash-top { stop-color: var(--gold-wash); stop-opacity: 0; }
.chart .wash-bottom { stop-color: var(--gold); stop-opacity: 0.38; }
.chart .baseline { stroke: var(--gold-line); stroke-width: 2; }
.chart-table summary { cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: 0.92rem; width: fit-content; }
.chart-table summary:hover { color: var(--plum); }
.chart-table[open] summary { margin-bottom: 10px; }
.chart-table th[scope="row"] { white-space: nowrap; }
.chart-table .sub { display: block; color: var(--ink-3); font-size: 0.8rem; }

/* ---- gain and changelog ---- */
.changes { gap: 18px; }
.gain { display: grid; gap: 18px; border-top: 2px solid var(--gold-line); padding-top: 22px; }
.gain .state strong { font-weight: 750; }
.gain-bar { margin: 0; display: grid; gap: 10px; }
.gain-track { height: 22px; background: var(--rose); border-radius: 5px; overflow: hidden; display: flex; }
.gain-named { display: block; height: 100%; background: var(--plum); box-shadow: 2px 0 0 var(--ground); }
.gain-bar figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; color: var(--ink-2);
  font-size: 0.92rem; }
.gain-bar figcaption b { color: var(--ink); font: 800 1.25rem/1.2 var(--f-display); font-stretch: 112%; margin-right: 4px; }
.to { color: var(--ink-3); font-weight: 500; }
#log-h { margin-top: 30px; font-size: 1.15rem; font-family: var(--f-text); }
table.log th[scope="row"] { font-weight: 650; white-space: nowrap; }
table.log .sub { display: block; font-size: 0.8rem; font-weight: 500; color: var(--ink-3); }
table.log td { font-size: 0.98rem; }
table.log td.gain-cell { color: var(--plum); font-weight: 750; font-size: 1.1rem; }
table.log td.upd { color: var(--ink-2); font-size: 0.92rem; }
table.log .newest { display: block; color: var(--ink-3); font-size: 0.84rem; max-width: 60ch; }
table.log .quiet { color: var(--ink-3); }
table.log tr.is-running th, table.log tr.is-running td { background: var(--gold-wash); }
table.log tr.is-running th { padding-left: 10px; color: var(--plum); }

.latest .strip-bar { height: 14px; }
.latest h2 code { font-size: 0.72em; color: var(--ink); }
.front table.reasons td.rank { font: 800 1.5rem/1 var(--f-display); font-stretch: 112%; color: var(--ink-3); padding-top: 10px; }
.front table.reasons td.cnt { font-size: 1.2rem; }
.front table.reasons .bar { height: 10px; border-radius: 5px; }

@media (max-width: 720px) {
  .top { position: static; backdrop-filter: none; background: var(--ground); }
  html { scroll-padding-top: 1rem; }
  main { padding-block: 28px 16px; gap: 64px; }
  .front main { gap: 72px; }
  .top-in { align-items: stretch; flex-direction: column; }
  .lookup input { width: 100%; }
  .lookup-row { width: 100%; }
  .sky { padding-top: 56px; }
  /* The lens becomes a ranked list of short bars: one row for each reason, the bar scaled to the largest. */
  .zoom-bar { flex-direction: column; gap: 14px; padding: 14px 12px 16px; }
  .seg { flex: none; grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .seg-fill, .seg:first-child .seg-fill, .seg:last-child .seg-fill { width: max(4px, var(--w)); height: 12px;
    border-radius: 4px; }
  .seg-label, .seg.is-rest .seg-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 0;
    justify-self: stretch; text-align: left; white-space: normal; }
  .seg-label b { font-size: 1rem; }
  .chart { height: 260px; }
  .gain-bar figcaption { flex-direction: column; }
  table.reasons thead { display: none; }
  table.reasons, table.reasons tbody { display: block; }
  table.reasons tr { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 2px 8px;
    padding: 14px 0; border-bottom: 1px solid var(--rule); }
  table.reasons th, table.reasons td { border: 0; padding: 0; }
  table.reasons td.rank { grid-row: 1 / span 3; padding-top: 2px; }
  table.reasons th[scope="row"] { grid-column: 2 / 4; }
  table.reasons td.cnt { grid-column: 2; text-align: left; }
  table.reasons td.cnt .share { display: inline; margin-left: 6px; }
  table.reasons td.change { grid-column: 2 / 4; grid-row: 4; text-align: left; }
  table.reasons td.bar-cell { grid-row: 3; grid-column: 2 / 4; width: auto; min-width: 0; }
  .about dl { grid-template-columns: 1fr; gap: 4px; }
  .about dd { margin-bottom: 10px; }
  .bar-cell { min-width: 72px; width: 28%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .sky::after, .sky::before, .sea::after { display: none; }
}

/* The compounds named in the latest run are named: their bars wear plum, as the named part of the strip does. */
section[aria-labelledby="new-h"] .bar > span { background: var(--plum); }
