.document-shell {
  max-width: 56rem;
  margin: auto;
  padding: 2rem clamp(1rem, 4vw, 3rem) 5rem;
  color: #e1e8ef;
  background: #10151d;
  font:
    1rem/1.65 system-ui,
    sans-serif;
}
body:has(.document-shell) {
  margin: 0;
  height: auto;
  overflow: auto;
  background: #10151d;
}
.document-shell header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.document-shell .wordmark {
  font-size: 1.3rem;
  color: #f2f5fa;
  font-weight: 750;
  text-decoration: none;
}
.document-shell h1 {
  line-height: 1.15;
  margin: 2rem 0 1rem;
}
.document-shell h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.6rem;
}
.document-shell .lead {
  font-size: 1.12rem;
}
.document-shell .stamp,
.document-shell footer {
  color: #a9b7c5;
  font-size: 0.9rem;
}
.document-shell nav,
.document-shell footer {
  line-height: 2;
}
.document-shell a,
.measurement-choice a {
  color: #98caff;
  text-underline-offset: 0.16em;
}
.document-shell table {
  border-collapse: collapse;
  width: 100%;
}
.document-shell .table-scroll {
  overflow-x: auto;
}
.document-shell th,
.document-shell td {
  padding: 0.35rem 0.65rem;
  border-bottom: 1px solid #36414c;
  text-align: start;
  font-variant-numeric: tabular-nums;
}
.document-shell th[scope='row'] {
  font-weight: 500;
}
.measurement-choice {
  position: fixed;
  inset-inline-end: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 150;
  max-width: min(22rem, calc(100vw - 2rem));
  box-sizing: border-box;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid #5c6b78;
  background: #18212c;
  color: #edf2f8;
  font:
    0.9rem/1.45 system-ui,
    sans-serif;
  box-shadow: 0 5px 24px #0005;
}
.measurement-choice p {
  margin: 0 0 0.25rem;
}
.measurement-choice div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.measurement-choice button,
.document-shell button {
  font: inherit;
  color: #edf2f8;
  background: #263344;
  border: 1px solid #758699;
  padding: 0.45rem 0.85rem;
  min-height: 40px;
  border-radius: 6px;
  cursor: pointer;
}
