:root {
  --ink: #1a1a1a; --muted: #555; --line: #dcdde3; --brand: #3a39d9; --panel: #eef0fb;
  --ok-bg: #e5f4ea; --ok: #17643a; --warn-bg: #fdf1dc; --warn: #8a5300;
  --bad-bg: #fbe4e4; --bad: #9b1c1c; --info-bg: #e6eefc; --info: #1f4fae;
  --bg: #fff; --text2: #333; --link: #1a4fd6; --rule: #111; --code-bg: #f0f0f0; --pre-bg: #f3f3f5;
  --field: #b9bcc7; --thead: #f6f7fa; --chip: #fff; --chip-line: #c9ccd6;
  --src-bg: #eef0f3; --src: #3c4250; --src-line: #d5d9e0;
  --ours-bg: #fff1e0; --ours: #8a4300; --ours-line: #f1cfa4; --draft-bg: #fff3c4; --draft: #5c4400;
  color-scheme: light;
}
/* Dark mode follows the visitor's system setting. Screen only: printing / PDF stays light. */
@media screen and (prefers-color-scheme: dark) {
  :root {
    --ink: #e8e9ee; --muted: #a3a7b3; --line: #343846; --brand: #8f95ff; --panel: #1c1f33;
    --ok-bg: #12321f; --ok: #7fd6a0; --warn-bg: #3a2a0c; --warn: #f2c26b;
    --bad-bg: #3d1515; --bad: #ff9c9c; --info-bg: #142540; --info: #8fb6ff;
    --bg: #121318; --text2: #c9ccd6; --link: #8fb0ff; --rule: #6b7080; --code-bg: #262833; --pre-bg: #1d1f28;
    --field: #4a4f60; --thead: #1c1e27; --chip: #1c1e27; --chip-line: #4a4f60;
    --src-bg: #232631; --src: #c3c8d6; --src-line: #3b4050;
    --ours-bg: #3a250f; --ours: #ffbf80; --ours-line: #6b4a24; --draft-bg: #4a3b0a; --draft: #ffe28a;
    color-scheme: dark;
  }
  header.site .brand img { filter: brightness(0) invert(1); }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 Arial, Helvetica, sans-serif; }
a { color: var(--link); }
main, header.site, footer.site { max-width: 920px; margin: 0 auto; padding-inline: 20px; }
header.site { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding-block: 18px 14px; border-bottom: 2.5px solid var(--rule); margin-bottom: 22px; }
header.site .brand img { height: 34px; display: block; }
header.site nav { display: flex; gap: 18px; font-size: 14px; }
footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 16px 30px;
  color: var(--muted); font-size: 13.5px; }
.draft { background: var(--draft-bg); color: var(--draft); text-align: center; padding: 6px 12px; font-size: 13px;
  font-weight: 700; }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 18px; margin: 22px 0 6px; }
h3 { font-size: 16px; margin: 16px 0 4px; }
p { margin: 0 0 9px; }
ul, ol { margin: 4px 0 10px; padding-left: 24px; }
li { margin: 3px 0; }
code { font: 0.86em Consolas, "Courier New", monospace; background: var(--code-bg); padding: 0 4px; border-radius: 3px; }
pre { background: var(--pre-bg); padding: 10px 12px; overflow-x: auto; border-radius: 4px; margin: 6px 0 10px; }
pre code { background: none; padding: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.closing { break-inside: avoid; }
.lede { color: var(--text2); max-width: 760px; }

/* index */
.tools { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 18px 0 12px; }
.tools input[type=search] { flex: 1 1 260px; padding: 8px 10px; font: inherit; border: 1px solid var(--field); border-radius: 4px; background: var(--bg); color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  border-bottom: 1.5px solid var(--rule); padding: 6px 10px 6px 0; }
td { border-bottom: 1px solid var(--line); padding: 12px 10px 12px 0; vertical-align: top; }
td a { text-decoration: none; }
td a:hover { text-decoration: underline; }
.nowrap { white-space: nowrap; color: var(--muted); font-size: 14px; }
.upd { font-size: 12.5px; margin-top: 2px; }
.ids { color: var(--muted); font-size: 13px; margin-top: 2px; }
.sum { font-size: 14px; margin-top: 4px; }
.badge { display: inline-block; white-space: nowrap; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: var(--info-bg); color: var(--info); }

/* advisory */
.crumbs { font-size: 13.5px; margin-bottom: 10px; }
.date { color: var(--muted); margin-bottom: 14px; }
.status { background: var(--panel); border-left: 6px solid var(--brand); padding: 10px 16px 10px 20px; margin-bottom: 14px; }
.status div { margin: 3px 0; }
.status b { color: var(--brand); }
.statusline { margin-bottom: 6px !important; }
.signer { margin-top: 22px; }
.printbtn { margin-top: 24px; }
.printbtn button { font: inherit; font-size: 14px; padding: 7px 14px; border: 1px solid var(--field); background: var(--bg); color: var(--ink); border-radius: 4px; cursor: pointer; }
.runhead, .printlogo { display: none; }

@media (max-width: 560px) {
  h1 { font-size: 23px; }
  th:first-child, td:first-child, th:last-child, td:last-child { display: none; }
  .mbadge { display: block !important; margin-top: 6px; }
}
.mbadge { display: none; }

/* Print / Save as PDF: same look as the PDF bulletins */
@page {
  size: Letter;
  margin: 0.55in 0.9in 0.6in 0.9in;
  @bottom-left { content: "CUSTOMER COMMUNICATION"; font: 9pt Arial, Helvetica, sans-serif; color: #222; }
  @bottom-right { content: "Page " counter(page) " of " counter(pages); font: 9pt Arial, Helvetica, sans-serif; color: #222; }
}
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { font-size: 10.5pt; line-height: 1.42; }
  header.site, footer.site, .draft, .crumbs, .printbtn, .statusline { display: none !important; }
  main { max-width: none; padding: 0; }
  .runhead { display: block; text-align: right; font-size: 8pt; color: #222; }
  .printlogo { display: flex; justify-content: flex-end; margin: 6px 0 10px; padding-bottom: 14px; border-bottom: 2.5px solid #111; margin-bottom: 14px; }
  .printlogo img { height: 0.42in; }
  h1 { font-size: 19pt; margin-bottom: 6px; }
  h2 { font-size: 12.5pt; margin: 11px 0 3px; }
  a { color: #1a4fd6; }
  pre { font-size: 8.6pt; break-inside: avoid; }
}

/* source, product tags, impact grid, history */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.src, .ptag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.src.src-third { background: var(--src-bg); color: var(--src); border: 1px solid var(--src-line); }
.src.src-ours { background: var(--ours-bg); color: var(--ours); border: 1px solid var(--ours-line); font-weight: 700; }
.ptag { background: var(--chip); color: var(--text2); border: 1px solid var(--chip-line); }
.status .src { vertical-align: 1px; }
.flabel { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-right: 2px; }
.tools .filters { flex-basis: 100%; }
table.grid { width: auto; min-width: 60%; margin: 4px 0 16px; border: 1px solid var(--line); }
table.grid th, table.grid td { border: 1px solid var(--line); padding: 8px 12px; vertical-align: top; text-transform: none; letter-spacing: 0; }
table.grid thead th { background: var(--thead); color: var(--ink); font-size: 13px; }
table.grid tbody th { text-align: left; font-size: 14px; color: var(--ink); white-space: nowrap; }
table.grid .note { font-size: 13px; color: var(--text2); margin-top: 4px; max-width: 34ch; }
table.grid td.na { color: var(--muted); font-size: 13px; }
table.grid .pnote { font-size: 12px; font-weight: normal; color: var(--muted); margin-top: 2px; white-space: normal; }
ul.history { list-style: none; padding-left: 0; }
ul.history .hd { color: var(--muted); font-size: 13.5px; margin-right: 8px; white-space: nowrap; }
@media print { table.grid { break-inside: avoid; } }
