/* The counting page: ../style.css (the copybook look) plus the pieces only this page has. */
.crumbs { padding: 12px 0 0; color: var(--muted); }
.crumbs a { color: var(--accent); }
.hero { padding-top: 6px; }
.nrow { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.nrow .inline { font-weight: 500; }
.ranges { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ranges .btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }

/* each item: the number, the noun and its English, then the box */
.nqs .cue { color: var(--ink); }
.nqs .cuet { font-style: normal; }
.en { font-style: italic; }
.num { font-family: var(--head); font-weight: 700; font-size: 1.3rem; margin-right: 2px; }
.noun { font-weight: 600; font-size: 1.1rem; }
.en { color: var(--muted); }
.nqs .cw { display: flex; width: 100%; max-width: 30em; }
.nqs .cell { display: block; flex: 1 1 auto; width: auto; min-width: 0; max-width: none; box-sizing: border-box; resize: none; overflow: hidden;
  font-family: inherit; line-height: 1.5; white-space: pre-wrap; overflow-wrap: break-word; }
.content .dt td, .content .dt th { vertical-align: top; }
@media (min-width: 700px) {
  .nqs .q { display: grid; grid-template-columns: 14rem minmax(0, 1fr); column-gap: 12px; align-items: center; }
  .nqs .q > .cue { grid-row: 1 / span 2; align-self: start; padding-top: 8px; }
  .nqs .q > * { grid-column: 2; }
  .nqs .q > .cue { grid-column: 1; }
}

@media print {
  .pnq li { grid-template-columns: 8mm minmax(0, 1fr) 82mm; align-items: end; box-sizing: border-box; min-height: var(--rowh, 12mm);
    padding: 0 0 1.5mm; border-top: 0; line-height: 1.45; }
  .pnq .gap { width: 80mm; }
  .pcue { font-style: normal; font-size: 11.5pt; color: #000; }
  .pnum { font-weight: 700; font-size: 12.5pt; margin-right: 1.5mm; }
  .pen { color: #333; font-size: 10pt; font-style: italic; }
  .pk li { display: block; padding: 0.5mm 0; line-height: 1.3; }
  .pk .pnum { font-size: 10.5pt; }
  .pkc { color: #222; }
}
.nw { white-space: nowrap; }
/* the four-column tables stack a little wider than the shared 420px, so seachtaine is never cut */
@media (min-width: 421px) and (max-width: 600px) {
  .nt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nt tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); padding: 4px 0 6px; }
  .nt tbody th { grid-column: 1 / -1; border: 0; padding: 4px 6px 0; }
  .nt tbody td { border: 0; padding: 2px 6px; }
  .nt td::before { content: attr(data-label); display: block; color: var(--muted); }
}
