/* wtcy.org tables of results on the mail pages, rev1, 23 Nov 2026: a row that needs a look has a lamp-coloured bar.
   Below 48rem a row of a results table becomes a block, and each cell that the script labels (data-label) says what it is;
   below 40rem the reference tables (table.codes) do the same, as they do on the pages that load lookup.css. */
table.rows td code { white-space: normal; overflow-wrap: break-word; }
/* A cell that holds what was pasted (a whole field, a token, a URL) may break anywhere, so a long value cannot make the table
   wider than the page and push the last columns out of sight. */
table.rows td.long, table.rows td.long code { overflow-wrap: anywhere; }
/* On a wide screen, not narrower than a host name or a URL needs to read well: the Microsoft 365 values and the dsregcmd
   values. Headings may wrap, so that many columns still fit a narrower window. */
@media (min-width: 60rem) {
  #eh-ms td.long { min-width: 12rem; }
  #dr-fields td.long { min-width: 18rem; }
}
table.rows th { white-space: normal; }
/* A short name of the page's own (an example A-label) stays on one line, so xn-- is never split from the rest. */
table.codes td.keep code, code.keep { white-space: nowrap; }
table.rows tr[data-level] td:first-child { box-shadow: inset 4px 0 0 var(--rail); padding-left: 0.7rem; }
table.rows tr[data-level="caution"] td:first-child { box-shadow: inset 4px 0 0 var(--caution); }
table.rows tr[data-level="stop"] td:first-child { box-shadow: inset 4px 0 0 var(--stop); }
table.rows tr.group th { padding-top: 1.2rem; }
@media (max-width: 48rem) {
  table.rows thead { display: none; }
  table.rows tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.9rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
  table.rows td, table.rows th { border: 0; padding: 0; }
  table.rows td, table.rows td code { overflow-wrap: anywhere; }
  table.rows td:last-child { flex-basis: 100%; }
  table.rows tr[data-level] { box-shadow: inset 4px 0 0 var(--rail); padding-left: 0.7rem; }
  table.rows tr[data-level="caution"] { box-shadow: inset 4px 0 0 var(--caution); }
  table.rows tr[data-level="stop"] { box-shadow: inset 4px 0 0 var(--stop); }
  table.rows tr[data-level] td:first-child { box-shadow: none; padding-left: 0; }
  table.rows td[data-label]::before { content: attr(data-label) " "; color: var(--muted); }
  table.rows td.num, table.rows th.num { text-align: left; }
}
@media (max-width: 40rem) {
  table.codes thead { display: none; }
  table.codes tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.9rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
  table.codes td { border: 0; padding: 0; }
  table.codes td:last-child { flex-basis: 100%; }
  table.codes td code { white-space: normal; overflow-wrap: anywhere; }
  td.num, th.num { text-align: left; }
}
