/* Ternzip uses the paper, ink and type families of the surrounding journal. */
.tz-sticky {
  z-index: 5;
  scroll-margin-top: 8rem;
}
.pile.p011 {
  left: 20px;
  top: 20px;
  z-index: 1;
  transform: rotate(2deg);
}
.pile.p011 .ln-body { display: none; }

.tz-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(22px, 4vw, 48px);
  margin-bottom: clamp(32px, 5vw, 56px);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  border-radius: 4px;
  background: var(--surface);
  scroll-margin-top: 6rem;
}
.tz-intro h2 {
  margin: 10px 0 16px;
  max-width: 16ch;
  font: 700 clamp(2rem, 3.7vw, 3.25rem)/1.02 var(--display);
  color: var(--ink);
}
.tz-intro > p:not(.eyebrow) { max-width: 46ch; color: var(--muted); }
.tz-intro .links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 20px; }
.tz-receipt, .tz-index-receipt {
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink);
}
.tz-receipt {
  margin: 0;
  padding: clamp(18px, 2.6vw, 32px);
  box-shadow: 3px 4px 0 color-mix(in srgb, var(--ink) 9%, transparent);
}
.tz-receipt figcaption, .tz-index-receipt > span:first-child, .tz-row-title {
  font: 500 .8rem/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tz-receipt figcaption { color: var(--muted); margin-bottom: 20px; }
.tz-size, .tz-receipt-foot { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; }
.tz-size { font: 500 .88rem/1.4 var(--mono); }
.tz-size b { font-weight: 500; white-space: nowrap; }
.tz-track {
  height: 8px;
  margin: 6px 0 15px;
  background: repeating-linear-gradient(-45deg, transparent 0 3px, #acb8c4 3px 4px);
}
.tz-track > i { display: block; height: 100%; background: #53616e; }
.tz-track.tz-packed > i { width: 74.41%; background: var(--accent); }
.tz-receipt .tz-receipt-foot {
  margin: 20px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .875rem;
}
.tz-receipt-foot strong { color: var(--accent); }
.tz-lab-feature, .tz-article :is(h2, fieldset) { scroll-margin-top: 2rem; }
.tz-index-receipt {
  display: grid;
  gap: 10px;
  padding: 26px 18px;
  text-align: center;
  text-decoration: none;
  border-top: 3px solid var(--accent);
}
.tz-index-receipt > strong { font: 700 clamp(2rem, 4vw, 3.2rem)/1.05 var(--display); }
.tz-index-receipt small { font-size: .53em; }
.tz-index-receipt b { font: 600 1rem var(--body); color: var(--accent); }
.tz-index-rule { width: 50%; border-top: 1px dashed var(--rule); place-self: center; }
.tz-article .hero { padding-bottom: 26px; }
.tz-article .sub { max-width: 45ch; }
.tz-article code { font-family: var(--mono); }
.tz-article .meta { letter-spacing: .06em; }
.tz-sample {
  min-width: 0;
  margin: 24px 0;
  padding: clamp(16px, 3vw, 28px);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  border-radius: 4px;
}
.tz-sample legend { padding: 0 8px; font: 600 1.15rem var(--display); }
.tz-choice, .tz-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.tz-choice + label {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink);
  font: 600 .95rem/1.4 var(--body);
  cursor: pointer;
}
.tz-choice:checked + label { background: var(--accent); border-color: var(--accent); color: white; }
.tz-choice:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 3px; }
.tz-state { display: none; }
#tz-original:checked ~ .tz-raw, #tz-flip:checked ~ .tz-flipped { display: block; }
.tz-article .tz-row-title { margin: 18px 0 5px; color: var(--muted); }
.tz-trits { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; }
.tz-trits > * {
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
  font: 500 clamp(.94rem, 3vw, 1.2rem)/1.2 var(--mono);
}
.tz-trits > b { background: #dde9f4; border-color: #96b0cf; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.tz-article .tz-match { margin: 18px 0 7px; font-size: 1rem; }
.tz-match strong { color: var(--accent); font-variant-numeric: tabular-nums; }
.tz-article .tz-key { margin: 0; color: var(--muted); font-size: .875rem; }
.tz-facts th { width: 48%; }
.facts.tz-compare tbody th {
  width: 52%;
  border-top: 1px solid var(--rule);
  font: 600 .95rem/1.4 var(--body);
  letter-spacing: 0;
  text-transform: none;
  vertical-align: top;
}
.tz-compare td { white-space: nowrap; }
.tz-hashes { padding: 12px 16px; border: 1px solid var(--rule); border-radius: 4px; }
.tz-hashes summary { color: var(--accent); font-weight: 600; cursor: pointer; }
.tz-hashes summary:focus-visible { outline: 3px solid var(--accent); }
.tz-hashes dl { margin: 12px 0 4px; }
.tz-hashes dt { margin-top: 12px; font-weight: 600; }
.tz-hashes dd { margin: 0; overflow-wrap: anywhere; font-size: .86rem; }
.tz-command { padding: 16px; border-radius: 4px; background: var(--ink); color: var(--surface); white-space: pre-wrap; overflow-wrap: anywhere; font: 500 .94rem/1.65 var(--mono); }
.tz-actions .btn { margin-top: 0; }
.tz-article .tz-attribution { margin-top: 32px; font-size: .94rem; color: var(--muted); }
@media (max-width: 760px) {
  .tz-feature { grid-template-columns: minmax(0, 1fr); }
  .tz-track { margin-bottom: 12px; }
}
@media (max-width: 420px) {
  .tz-trits { gap: 2px; }
  .tz-trits > * { min-height: 29px; }
  .tz-facts th { width: 43%; }
}
