/* Wrapped in `@layer base` so Tailwind's utilities, which live in
   `@layer utilities`, can override these element selectors. Unlayered rules
   beat every layered rule regardless of specificity, so without this a page
   writing `class="no-underline"` on a link, or `font-bold` on a heading, is
   silently ignored. Inside the base layer these still come after Tailwind's
   preflight, so they go on restoring what it strips.

   Divergence from the Kronos panel's copy — see docs/DEVIATIONS.md. */
@layer base {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  body {
    margin: 0;
    padding: 2px;
    background: transparent;
    font:
      15px/1.55 ui-sans-serif,
      system-ui,
      -apple-system,
      "Segoe UI",
      Roboto,
      sans-serif;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  img,
  svg,
  video,
  canvas,
  table {
    max-width: 100%;
  }
  table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
  }
  th,
  td {
    border: 1px solid var(--k-rule);
    padding: 6px 10px;
    text-align: left;
  }
  th {
    font-weight: 600;
  }
  /* Three of these restate what Tailwind's preflight, loaded just above, has
     already taken away: it sets headings to inherit their weight, strips list
     markers, and drops the underline from a link. A page written without a single
     utility class still has to render the way it always did. */
  h1,
  h2,
  h3,
  h4 {
    margin: 0 0 0.4em;
    line-height: 1.2;
    font-weight: 600;
  }
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  h3 {
    font-size: 1.05rem;
  }
  p,
  ul,
  ol {
    margin: 0 0 0.75em;
  }
  ul,
  ol {
    padding-left: 1.35em;
  }
  ul {
    list-style: disc;
  }
  ol {
    list-style: decimal;
  }
  pre {
    overflow: auto;
    padding: 0.6em 0.8em;
    border-radius: 6px;
    background: var(--k-inset);
  }
  code,
  pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9em;
  }
  a {
    color: inherit;
    text-decoration: underline;
  }

}
