@font-face {
  font-family: DM Sans;
  src: url(fonts/dm-sans.ttf) format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: Instrument Serif;
  src: url(fonts/instrument-serif.ttf) format("truetype");
  font-weight: 400;
  font-display: swap;
}
:root {
  --bg: #f5f4ec;
  --paper: #fffef8;
  --ink: #172f29;
  --muted: #52655d;
  --line: #cdd4c7;
  --green: #075c49;
  --mint: #b7ecc7;
  --rust: #995025;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: Consolas, monospace;
  font: 15px/1.48 var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
select,
input,
textarea {
  border: 1px solid #a8b7a8;
  border-radius: 5px;
  background: var(--paper);
}
button,
select {
  cursor: pointer;
}
button,
a,
select,
input,
textarea {
  touch-action: manipulation;
}
button {
  padding: 7px 12px;
}
button:hover,
.small-link:hover {
  background: #e0eddf;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #cc711c;
  outline-offset: 3px;
}
a {
  color: var(--green);
  text-underline-offset: 3px;
}
p {
  margin: 6px 0 12px;
  max-width: 80ch;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
h1 {
  font: 400 clamp(40px, 5vw, 72px) / 0.99 var(--serif);
  letter-spacing: -0.035em;
}
h2 {
  font: 400 clamp(25px, 2.2vw, 36px) / 1.09 var(--serif);
}
h3 {
  font-size: 16px;
}
small,
.note {
  font-size: 12px;
  color: var(--muted);
}
.skip,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus {
  z-index: 5;
  inset: 8px auto auto 8px;
  width: auto;
  height: auto;
  clip-path: none;
  padding: 9px;
  background: white;
}
.mast {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(16px, 3.2vw, 52px);
  gap: 15px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font: 400 clamp(27px, 3vw, 38px) / 1 var(--serif);
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.ledger-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  justify-content: center;
  background: var(--ink);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  transform: rotate(-5deg);
}
.ledger-mark i {
  height: 18px;
  width: 4px;
  background: var(--mint);
  transform: skewY(-25deg);
}
.ledger-mark i:first-child {
  height: 9px;
  align-self: flex-end;
  margin-bottom: 8px;
}
.ledger-mark i:last-child {
  height: 13px;
}
.mast-controls,
.toolbar,
.actions,
.tabs,
.legend {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
}
.mast-controls {
  gap: 20px;
}
.mast-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.field,
.field label,
.toolbar > label,
.mobile-nav label {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}
select,
input {
  padding: 7px 9px;
  min-width: 0;
  max-width: 100%;
}
.mast-link,
.small-link {
  font-size: 13px;
  text-decoration: none;
  font-weight: 650;
}
.mast-link span {
  padding-left: 6px;
}
.shell {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  max-width: 1740px;
  margin: auto;
}
.sidebar {
  padding: 36px 16px 30px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 75px);
}
.nav-label,
.eyebrow {
  font-size: 10.5px;
  text-transform: uppercase;
  font-weight: 750;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.nav-label {
  padding-left: 9px;
  margin-bottom: 15px;
}
.sidebar nav {
  display: grid;
  gap: 3px;
}
.sidebar nav a {
  text-decoration: none;
  color: #41574b;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 550;
}
.sidebar nav a:hover {
  background: #e5ebdf;
}
.sidebar nav a[aria-current="page"] {
  background: #dce9da;
  color: #124933;
  font-weight: 750;
}
.nav-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.side-foot {
  display: grid;
  font-size: 11px;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding: 17px 8px;
  margin-top: 42px;
  color: var(--muted);
}
.mobile-nav {
  display: none;
}
main {
  padding: clamp(23px, 3.1vw, 48px);
  min-width: 0;
  outline: none;
}
.page-head {
  margin-bottom: 22px;
}
.eyebrow {
  margin-bottom: 9px;
}
.subtitle {
  color: var(--muted);
  font-size: clamp(14px, 1.25vw, 17px);
  max-width: 78ch;
  margin: 12px 0 0;
}
.section-head,
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.section-head {
  margin: 25px 0 12px;
}
.section-head a {
  align-self: center;
}
.panel,
.figure-dark,
.factbar {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  min-width: 0;
}
.panel {
  padding: clamp(15px, 2vw, 24px);
}
.panel + .panel {
  margin-top: 15px;
}
.grid2,
.hero-grid,
.grid3 {
  display: grid;
  gap: 14px;
  align-items: stretch;
}
.grid2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hero-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr);
}
.grid2 > .panel,
.grid3 > .panel,
.hero-grid > .panel {
  margin: 0;
}
.figure-dark {
  padding: clamp(18px, 2.2vw, 28px);
  background: #143e32;
  color: #f6ffef;
  border-color: #143e32;
}
.figure-dark .eyebrow,
.figure-dark .note {
  color: #bbd5bf;
}
.figure-dark h2 {
  color: #f7ffed;
}
.figure-dark p {
  color: #d2dfce;
}
.figure-dark a {
  color: #d4f4b1;
}
.figure-dark .toolbar {
  justify-content: space-between;
}
.figure-dark select {
  color: #214235;
  background: #f2f6e7;
}
.figure-dark svg {
  --chart-text: #c2dacb;
  --chart-grid: #3e6653;
}
.mono,
code,
pre,
.metric-val {
  font-family: var(--mono);
}
.metric-val {
  font-size: 12px;
}
.factbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 15px 0;
  margin-bottom: 16px;
}
.factbar > div {
  padding: 0 16px;
  display: grid;
  gap: 3px;
  border-right: 1px solid var(--line);
}
.factbar > div:last-child {
  border: 0;
}
.factbar b {
  font: 400 clamp(26px, 3vw, 40px) / 1 var(--serif);
}
.factbar small {
  font-size: 11px;
}
.big-num {
  font: 400 clamp(40px, 5vw, 66px) / 1.05 var(--serif);
  margin: 10px 0 0;
}
.dim {
  color: var(--muted);
}
.toolbar {
  margin: 12px 0;
}
.toolbar > label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.toolbar input[type="search"] {
  width: min(230px, 100%);
}
.action,
.small-link {
  display: inline-block;
  border: 1px solid #97ac9a;
  border-radius: 5px;
  padding: 7px 11px;
  line-height: 1.3;
}
.action {
  background: var(--green);
  color: white;
  text-decoration: none;
  font-weight: 600;
}
.action:hover {
  background: #164e3d;
}
.small-link {
  background: var(--paper);
}
.tabs button[aria-pressed="true"],
button.active {
  background: var(--ink);
  color: white;
}
.ital {
  font-family: var(--serif);
  font-size: 1.2em;
}
.scroll {
  overflow: auto;
  max-width: 100%;
  scrollbar-width: thin;
}
.scroll:focus {
  outline-offset: 0;
}
.scroll table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12.5px;
  text-align: left;
}
.scroll th,
.scroll td {
  padding: 8px 9px;
  vertical-align: top;
  border-bottom: 1px solid #e1e5da;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.scroll th {
  font-weight: 650;
  color: #48604c;
}
.scroll thead th {
  background: #f0f3e9;
  position: sticky;
  top: 0;
}
.scroll td.long {
  white-space: normal;
  overflow-wrap: anywhere;
}
.scroll tbody tr:last-child td {
  border-bottom: 0;
}
.table-button {
  font: inherit;
  text-align: left;
  border: none;
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--green);
  padding: 0;
}
.flag {
  font-size: 11.5px;
  font-weight: 650;
  display: inline-block;
  border-radius: 4px;
  padding: 2px 6px;
  background: #dcecdf;
  color: #214e35;
}
.flag.bad {
  background: #fae5d5;
  color: #743b1e;
}
.banner {
  border-left: 3px solid #81a68b;
  background: #eef3e8;
  padding: 10px 14px;
  margin: 12px 0;
  border-radius: 0 5px 5px 0;
}
.banner.bad {
  background: #fff0df;
  border-color: #bc713c;
}
.banner p {
  margin: 3px 0;
  font-size: 13px;
}
.plot {
  position: relative;
  min-width: 0;
}
.plot svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.chart text {
  font: 12px var(--sans);
  fill: var(--chart-text, #43594d);
}
.chart .axis {
  stroke: var(--chart-grid, #d6ddd0);
  stroke-width: 1;
}
.chart .letter {
  font-weight: 650;
}
.chart .axis-title {
  font-size: 13px;
}
.chart .dot {
  cursor: pointer;
}
.legend {
  font-size: 12px;
  color: var(--muted);
  gap: 15px;
}
.key {
  width: 11px;
  height: 11px;
  background: var(--tone, #166749);
  display: inline-block;
  margin-right: 5px;
  border-radius: 50%;
}
.legend .linekey {
  border-radius: 0;
  height: 3px;
  vertical-align: middle;
}
.hero-notes {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}
.hero-notes > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.hero-notes strong {
  font-weight: 650;
}
.gene-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.tool-grid a {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  background: var(--paper);
}
.tool-grid a strong,
.tool-grid a small {
  display: block;
}
.tool-grid a:hover {
  border-color: var(--green);
}
textarea {
  width: 100%;
  min-height: 150px;
  font: 12px/1.5 var(--mono);
  padding: 10px;
  resize: vertical;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #ebf0e5;
  border-radius: 5px;
  font-size: 12px;
  padding: 12px;
  max-height: 26rem;
  overflow: auto;
}
details {
  margin: 12px 0;
}
summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 650;
}
.matrix-cell {
  font: 600 12px var(--mono);
  display: block;
  border-radius: 3px;
  padding: 5px;
  text-align: center;
  min-width: 40px;
}
.control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.control-grid label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.spacer {
  margin-top: 16px;
}
.status-line {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.download-list {
  display: grid;
  gap: 10px;
}
.download-list a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.digest {
  font-family: var(--mono);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.figure-dark .toolbar > label {
  color: #d2e1cf;
}
@media (min-width: 1500px) {
  .shell {
    grid-template-columns: 230px minmax(0, 1fr);
  }
}
@media (max-width: 1080px) {
  .shell {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  .sidebar {
    padding: 28px 10px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, 1fr);
  }
  main {
    padding: 24px 19px;
  }
  .tool-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 830px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .mobile-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 20px;
    background: #e9eee2;
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav select {
    padding: 4px 7px;
    background: transparent;
    border: 0;
    font-weight: 650;
  }
  .mast {
    min-height: 62px;
  }
  .grid3 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 620px) {
  main {
    padding: 21px 13px 35px;
  }
  .mast {
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 26px;
  }
  .mast-controls {
    gap: 8px;
  }
  .mast-link {
    display: none;
  }
  .mast-controls label {
    font-size: 0;
    gap: 0;
  }
  .mast-controls select {
    font-size: 12px;
    max-width: 142px;
  }
  .mobile-nav {
    padding: 6px 12px;
  }
  .ledger-mark {
    width: 27px;
    height: 27px;
  }
  .hero-grid,
  .grid2,
  .grid3 {
    grid-template-columns: 1fr;
  }
  .factbar {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px 0;
  }
  .factbar > div:nth-child(2) {
    border: 0;
  }
  .toolbar > label {
    flex-wrap: wrap;
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .panel-head {
    align-items: flex-start;
  }
  .page-head {
    margin-bottom: 16px;
  }
  .figure-dark {
    padding: 15px;
  }
  .scroll th,
  .scroll td {
    padding: 7px;
    font-size: 12px;
  }
  .chart text {
    font-size: 14px;
  }
  .mast .field select {
    min-height: 34px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
@media print {
  .mast-controls,
  .sidebar,
  .mobile-nav,
  .toolbar,
  .skip,
  .actions {
    display: none;
  }
  .shell {
    display: block;
  }
  .panel,
  .figure-dark {
    break-inside: avoid;
  }
  .figure-dark {
    background: white;
    color: black;
  }
  .figure-dark h2,
  .figure-dark .eyebrow {
    color: black;
  }
  body,
  main {
    background: white;
  }
}
.rank-cell {
  width: 100%;
  min-width: 3.4em;
  background: color-mix(in srgb, #76a78c calc(var(--fraction) * 85%), #f3f3e6);
  color: #18392d;
  border: 1px solid #b2c2ab;
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
  padding: 0.45em 0.55em;
  cursor: pointer;
}
.rank-cell[aria-pressed="true"] {
  outline: 2px solid #245c45;
  outline-offset: 1px;
}
.mast-controls [hidden] {
  display: none !important;
}
