/* Q codes, RST and CW abbreviations card (q-codes-and-rst/ only). Portrait; no fixed page size, so A4 and Letter both work. */
.qcodes .wrap { max-width: 1040px; }
.h1sub { font-weight: 500; color: var(--muted); font-size: .7em; }
table.qtable, table.prosigns, table.abbr { table-layout: fixed; min-width: 600px; }
table.qtable col.e1 { width: 8%; } table.qtable col.e2 { width: 31%; } table.qtable col.e3 { width: 33%; } table.qtable col.e4 { width: 28%; }
table.prosigns col.g1 { width: 10%; } table.prosigns col.g2 { width: 14%; } table.prosigns col.g3 { width: 76%; }
table.abbr col.ab1 { width: 11%; } table.abbr col.ab2 { width: 39%; }
table.qtable td, table.prosigns td, table.abbr td, table.rst td { vertical-align: top; }
table.qtable td.wrap, table.prosigns td.wrap, table.abbr td.wrap, table.rst td.wrap, table.chart td.wrap { white-space: normal; }
table.qtable th, table.prosigns th, table.abbr th { white-space: normal; }
td.morse { font-family: var(--mono); font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.rstgrid { display: grid; gap: 0 18px; }
@media (min-width: 760px) { .rstgrid { grid-template-columns: 1fr 1fr; } }
table.rst { margin-bottom: 10px; }
table.rst td.num { width: 3.2em; }
.rownote { color: var(--muted); font-size: .85em; font-style: italic; }
@media print {
  @page {
    margin: 10mm 10mm 13mm;
    @bottom-left { content: "Ohmsums. Q codes (ITU-R M.1172), RST and CW abbreviations (IARU, ARRL). Indicative; verify before use."; font: 7pt system-ui, sans-serif; color: #000; }
    @bottom-right { content: counter(page) " / " counter(pages); font: 7pt system-ui, sans-serif; color: #000; }
  }
  .qcodes h1 { font-size: 14pt; }
  .qcodes .h1sub { color: #000; }
  .qcodes .lead { font-size: 8.5pt; }
  .qcodes h2 { font-size: 11pt; margin: 3pt 0 3pt; }
  .qtbl, .rstbox, .qcodes .split > section { break-inside: avoid; }
  .chartpage table.qtable, .chartpage table.prosigns, .chartpage table.abbr { font-size: 8.4pt; line-height: 1.28; }
  .chartpage table.qtable th, .chartpage table.qtable td, .chartpage table.prosigns td, .chartpage table.abbr td { padding: 1.4pt 3pt; }
  .chartpage table.rst { font-size: 8.2pt; margin-bottom: 4pt; }
  .chartpage table.rst td, .chartpage table.rst th { padding: .8pt 4pt; }
  table.qtable, table.prosigns, table.abbr { min-width: 0; }
  .rstgrid { grid-template-columns: 1fr 1fr; gap: 0 10pt; }
  .qcodes .examples li { font-size: 8pt; margin: 1pt 0; }
  .qcodes .sourcesbox .sub, .qcodes .sourcesbox li { font-size: 7pt; margin: 0; }
}
