/*
 * reference.css: styles for reference.html only (DRAFT 2026-11-14). Loaded AFTER styles.css, so it reuses that
 * file's tokens (--ink, --muted, --rule, --paper, --accent, --mono, --serif) and therefore follows the visitor's
 * light/dark setting with no JavaScript. No inline styles anywhere (the page CSP allows only our own stylesheet).
 */
.refpage { padding: 36px 0 24px; }
.refpage h1 { font-size: 40px; margin-bottom: 10px; }
.refpage section { padding: 28px 0 4px; }
.refpage h3 { font-family: var(--serif); font-size: 20px; margin: 22px 0 6px; }
.refpage p { max-width: 760px; }

/* in-page jump links */
.jump { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 6px 0 4px; }
.jump a { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--link);
  border: 1px solid var(--rule); border-radius: 3px; padding: 6px 10px; text-decoration: none; background: var(--paper); }
.jump a:hover, .jump a:focus-visible { border-color: var(--ink); }

/* tables: the site's own table rules apply; frequencies and band names are monospaced and bold */
.refpage table { background: var(--paper); border: 1px solid var(--rule); }
.refpage th, .refpage td { white-space: normal; }
.refpage td.cls { white-space: nowrap; }
.refpage td small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.refpage .freq { font: 700 14px var(--mono); white-space: nowrap; }

/* a callout */
.note-box { border-left: 4px solid var(--accent); background: var(--paper); padding: 10px 14px; margin: 14px 0; border-radius: 0 3px 3px 0; }

/* numbered steps */
.steps { margin: 0; padding-left: 22px; max-width: 760px; }
.steps li { margin: 0 0 10px; padding-left: 4px; }
.steps li::marker { font: 700 14px var(--mono); color: var(--accent); }

/* phonetic alphabet: a grid of letter + word, four across on a desktop, two on a phone */
.phon { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.phon li { background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; padding: 8px 12px; }
.phon b { font: 700 18px var(--mono); color: var(--accent); display: inline-block; min-width: 1.4em; }
@media (max-width: 640px) { .phon { grid-template-columns: repeat(2, 1fr); } .refpage h1 { font-size: 32px; } }

.qlist { max-width: 760px; }

/* wording that exists only on screen (personal) or only on paper (neutral): printonly is hidden here and shown in the print block */
.printonly { display: none; }

/* ---------- printable cheat sheet ----------
   Press Ctrl or Cmd + P on this page for a clean one-page US Letter printout that looks like the site: the same warm paper,
   ink, rust accent, serif headings and monospaced numbers (the site's own color tokens, so no color is hard-coded here), the
   sections flowing into two columns with the type shrunk to fit. print-color-adjust: exact asks the browser to print the
   background colors, which it otherwise drops. The paper tokens are the light ones: browsers print in light mode.
   Nothing personal is printed: wording marked screenonly (the intro in the first person, the author's call sign in the
   examples, the 73 line) is hidden and the printonly wording (a neutral intro, "<your call>", a plain 73) takes its place.
   The browser's own header and footer line (page title, address, date) is a print-dialog setting this page cannot remove. */
@media print {
  @page { size: letter portrait; margin: 0.35in; }
  html, body { -webkit-print-color-adjust: exact; print-color-adjust: exact; background: var(--bg); background-image: none; color: var(--ink);
    font-size: 7pt; line-height: 1.18; }
  .skip, header.top, .jump, .noprint, footer .fine, footer .cw, .gloss, .glossary, .screenonly { display: none !important; }
  .printonly { display: inline; }
  p.printonly { display: block; }
  footer { margin: 4pt 0 0; padding: 4pt 0 0; border-top: 2px solid var(--accent); }
  footer p { margin: 0; font-size: 7.5pt; color: var(--muted); }
  .refpage { padding: 0; column-count: 2; column-gap: 0.28in; }
  .refpage h1 { font-size: 17pt; margin: 0 0 3pt; padding-bottom: 2pt; border-bottom: 2px solid var(--accent); column-span: all; }
  .refpage > .intro { margin: 0 0 4pt; font-size: 8pt; column-span: all; color: var(--muted); }
  .refpage section { padding: 4pt 0 0; break-inside: avoid; }
  .refpage h2 { font-size: 10.5pt; padding-bottom: 1pt; margin: 0 0 3pt; border-bottom: 1px solid var(--accent); }
  .refpage h3 { font-size: 9pt; margin: 4pt 0 1pt; }
  .refpage p, .refpage li { margin: 0 0 2pt; max-width: none; }
  .refpage .intro { margin: 0 0 3pt; font-size: 7pt; color: var(--muted); }
  .refpage table { font-size: 7pt; background: var(--paper); border: 1px solid var(--rule); }
  .refpage th, .refpage td { padding: 1.5pt 4pt; border-bottom: 1px solid var(--rule); color: var(--ink); }
  .refpage th { color: var(--muted); background: var(--bg); font-size: 6.5pt; }
  .refpage td small { font-size: 6.5pt; color: var(--muted); margin: 0; }
  .refpage td.cls { font-size: 7.5pt; color: var(--accent); }
  .refpage .freq { font-size: 7pt; }
  .note-box { margin: 3pt 0; padding: 2pt 5pt; border-left: 3px solid var(--accent); background: var(--paper); font-size: 7pt; }
  .steps { margin: 0; padding-left: 14pt; }
  .steps li { margin: 0 0 1.5pt; }
  .steps li::marker { font-size: 7.5pt; color: var(--accent); }
  .phon { grid-template-columns: repeat(6, 1fr); gap: 1.5pt; margin: 2pt 0 0; }
  .phon li { padding: 0 2pt; white-space: nowrap; font-size: 6.5pt; border: 1px solid var(--rule); background: var(--paper); }
  .phon b { font-size: 7pt; color: var(--accent); min-width: 1.1em; }
  .qlist li { font-size: 7.5pt; }
  .refpage .fine { font-size: 6pt; line-height: 1.15; color: var(--muted); margin: 2pt 0 0; column-span: all; }
  .term { border-bottom: 0; color: var(--ink); }
  a { color: var(--ink); text-decoration: none; }
  .refpage .log { margin: 0; padding: 0; }
  .refpage .log li { margin: 0; padding: 0; font-size: 7.5pt; line-height: 1.2; }
  .refpage .log li > span:first-child { color: var(--accent); }
  .refpage .log span { font-size: 7.5pt; }
}
