:root {
    --bg: #ffffff; --fg: #1a1a1a; --muted: #4a4a4a; --link: #0842a0; --line: #c8c8c8; --panel: #f3f4f6;
    --focus: #8f1d16; --ok: #155c30;
    --critical: #8b0000; --serious: #8f1d16; --moderate: #6b4600; --minor: #3d5a80;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #121212; --fg: #e8e8e8; --muted: #b8b8b8; --link: #8ab4f8; --line: #444; --panel: #1e1e1e;
      --focus: #ffb4ab; --ok: #7fd49b;
    }
  }
  :root[data-theme="dark"] {
      --bg: #121212; --fg: #e8e8e8; --muted: #b8b8b8; --link: #8ab4f8; --line: #444; --panel: #1e1e1e;
      --focus: #ffb4ab; --ok: #7fd49b;
    }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--bg); color: var(--fg); font: 1.0625rem/1.55 system-ui, sans-serif; }
  .wrap { max-width: 62rem; margin: 0 auto; padding: 0 1rem; }
  .main { padding-bottom: 2.5rem; }
  a { color: var(--link); }
  :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
  .skip { position: absolute; left: -9999px; }
  .skip:focus { position: static; display: inline-block; margin: .5rem 0; }
  .visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  header { border-bottom: 1px solid var(--line); padding: .75rem 0; }
  header .bar { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; }
  .product { margin: 0; font-weight: 600; }
  /* The logo is the icon from the app shortcut; its white rim shows on a dark page, and it's decorative
     (aria-hidden), since the name is written next to it. */
  .product { display: flex; align-items: center; gap: .5rem; }
  .logo { height: 2rem; width: auto; flex: none; }
  nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
  .variants a { display: inline-block; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: .4rem;
    text-decoration: none; }
  .variants a[aria-current="page"] { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 600; }
  form { margin: 0; }
  .actions { display: flex; gap: .5rem; align-items: center; }
  button[disabled] { opacity: .7; cursor: progress; }
  button { font: inherit; padding: .4rem 1rem; border: 1px solid var(--fg); border-radius: .4rem;
    background: var(--panel); color: var(--fg); cursor: pointer; }
  h1 { font-size: 1.6rem; line-height: 1.25; margin: 1.25rem 0 .5rem; overflow-wrap: anywhere; }
  h2 { font-size: 1.4rem; margin-top: 2.5rem; border-bottom: 2px solid var(--line); padding-bottom: .25rem; }
  h3 { font-size: 1.2rem; margin-top: 2rem; }
  h4 { font-size: 1.05rem; margin-top: 1.5rem; overflow-wrap: anywhere; }
  code { font-size: .92em; background: var(--panel); padding: .05rem .3rem; border-radius: .25rem; overflow-wrap: anywhere; }
  blockquote { margin: 1rem 0; padding: .5rem 1rem; border-left: 4px solid var(--line); background: var(--panel); }
  img { max-width: 100%; height: auto; border: 1px solid var(--line); background: #fff; }
  li > img { vertical-align: top; }  /* the bullet beside the image's top, not its bottom */
  li.item { list-style: none; margin: .5rem 0 .5rem -1.4rem; }
  #checklist-part li > ul > li { list-style: none; }  /* a detail under its line: indented, no bullet */
  li.item > input { width: 1.2rem; height: 1.2rem; margin-right: .4rem; vertical-align: -0.2rem; }
  .table-scroll { overflow-x: auto; margin: .75rem 0; }
  table { border-collapse: collapse; width: 100%; }
  caption { text-align: left; font-weight: 600; padding-bottom: .25rem; }
  th, td { border: 1px solid var(--line); padding: .35rem .5rem; text-align: left; vertical-align: top; }
  td ul { margin: 0; padding-left: 1.1rem; }
  .sev { display: inline-block; padding: 0 .45rem; border-radius: .3rem; color: #fff; font-weight: 600; }
  .sev-critical { background: var(--critical); } .sev-serious { background: var(--serious); }
  .sev-moderate { background: var(--moderate); } .sev-minor { background: var(--minor); }
  #status { min-height: 1.5rem; color: var(--ok); font-weight: 600; }
  .on-page { margin: .25rem 0 0; color: var(--muted); }
  details.part { margin-top: 2rem; border-top: 2px solid var(--line); }
  details.part > summary { cursor: pointer; padding: .5rem 0; }
  details.part > summary h2 { display: inline; margin: 0; border: 0; padding: 0; }
  details.part > summary .count { margin-left: .75rem; color: var(--muted); }
  .to-top { margin-top: 3rem; }
  /* The footer's line runs the full width, like the header's. */
  footer { border-top: 1px solid var(--line); padding: .75rem 0; }
  footer p { margin: 0; }

  .sample-note { margin: 1rem 0; padding: 0.75rem 1rem; background: var(--panel); border-left: 4px solid var(--link); }
