/* Styles used only by the page What follows (the hypothesis ledger). */

.frame-line { font-size: .88rem; color: var(--body); margin: 0 0 1rem; max-width: 58rem; }

.fsection { scroll-margin-top: 3.4rem; }
.part-head {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.7rem;
  color: var(--navy);
  margin: 3.2rem 0 -1.2rem;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 1.4rem 2.4rem;
  align-items: start;
}
.strip-grid > .figure { max-width: 37rem; width: 100%; }
.block { transition: opacity .35s ease; }
.block.dim { opacity: .22; }

/* the ledger: one mark per test */
.ledger { border-top: 1px solid var(--rule); margin: 0 0 .4rem; }
.ledger-part { font-family: var(--serif); font-size: 1.02rem; color: var(--navy); padding: .9rem 0 .25rem; }
.ledger-row {
  display: grid;
  grid-template-columns: minmax(12rem, 20rem) minmax(0, 1fr) auto;
  gap: .2rem 1.4rem;
  align-items: start;
  padding: .45rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.ledger-label a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.ledger-label a:hover { text-decoration: underline; }
.ledger-label span { display: block; font-size: .8rem; color: var(--muted); }
.ledger-dots { display: flex; flex-wrap: wrap; gap: 6px; padding-top: .22rem; }
.ledger-count { font-size: .78rem; color: var(--muted); white-space: nowrap; text-align: right; padding-top: .2rem; }

.vd {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.7px solid #aab0b8;
  background: #fff;
  padding: 0;
  display: inline-block;
  flex: none;
  box-sizing: border-box;
  transition: opacity .25s ease;
}
button.vd { cursor: pointer; }
button.vd:hover { box-shadow: 0 0 0 3px var(--rule-soft); }
button.vd:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.vd.v-sup { background: var(--green); border-color: var(--green); }
.vd.v-weak { border-color: var(--green); background: linear-gradient(90deg, var(--green) 50%, #fff 50%); }
.vd.v-opp { background: var(--pink); border-color: var(--pink); border-radius: 2px; transform: rotate(45deg) scale(.84); }
.vd.v-thin { border-style: dashed; }
.vd.v-pl { border-color: var(--navy); }
.vd.v-plf { border-color: var(--navy); background: var(--navy); }
.vd.dim { opacity: .16; }
.legend .vd { width: 11px; height: 11px; }

/* the table of tests */
details.numbers { margin: 1rem 0 0; }
details.numbers summary { cursor: pointer; font-size: .84rem; color: var(--body); }
details.numbers .scroll { overflow-x: auto; }
.tests { min-width: 46rem; max-width: 76rem; }
.tests td.num, .tests th:nth-child(n+5):nth-child(-n+9) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tests td.nowrap { white-space: nowrap; }
.tests td.tid { font-weight: 600; white-space: nowrap; }
.tests td:first-child { width: 1.3rem; padding-top: .42rem; }
.tests .tnote { display: block; color: var(--muted); font-size: .92em; margin-top: .12rem; max-width: 44rem; }
.tests .tag {
  display: inline-block;
  font-size: .72rem;
  color: var(--muted);
  border: 1px solid var(--rule);
  padding: 0 .3rem;
  margin-left: .45rem;
  white-space: nowrap;
}
.tests tr.flash td { background: rgba(168, 50, 94, .12); }
.tests tr td { transition: background .5s ease; }

@media (max-width: 720px) {
  .ledger-row { grid-template-columns: 1fr; }
  .ledger-count { text-align: left; }
  .part-head { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .block, .vd, .tests tr td { transition: none; }
}
