/* ============================================================================
   agentcensus — the policy pages

   What `/crawler.html` needs on top of `document.css`; this is the short list
   that file does not carry. `/abuse.html` used it too until that page was
   withdrawn on 2026-09-26 (ADR-020 amendment).

   A FILE and not a `<style>` block, for the reason `document.css` already gives
   at length: production ships `style-src 'self'` with no `'unsafe-inline'`
   (terraform/modules/edge), so a page that carries its CSS inline is served
   with the block dropped. Both of these pages did carry it inline, from launch
   until #1976 — and `/crawler.html` is the page deploy-web.yml's pre-soak 401
   body points a refused operator at to read how to make the crawl stop.

   No colour is defined here. The palette has one source (ADR-014, tokens.css).
   ========================================================================= */

/* A commitment or a refusal lifted out of the prose. Both pages use it. */
.box {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 11px;
  padding: 16px 18px;
  margin: 18px 0;
}

.box h3 {
  margin-top: 0;
}

/* The box's own padding is the bottom gap; the last paragraph's margin sits
   inside it and reads as too much air. This was nine `style="margin-bottom:0"`
   attributes across the two pages, and `style-src 'self'` blocks a style
   ATTRIBUTE exactly as it blocks a `<style>` block — so all nine were already
   being dropped in production, on the one box in ten that did not have one
   (crawler.html's egress box, whose last paragraph stage-static.mjs writes).
   As a rule it also covers a box that ends in a list or a table. */
.box > :last-child {
  margin-bottom: 0;
}

/* The crawler policy's tables, and only its. Two of the four key on a short
   first column (a source, a path), which is what nowrap is for. The
   "We may / We never" pair puts a sentence in that column instead, and nowrap
   there squeezed the second column to a few words a line — hence `table.split`,
   which fixes the layout and lets the first column wrap again.
   Every one of the four sits inside a `.scroller` (document.css), so a
   nowrapped column widens the table and not the page. */
td:first-child {
  white-space: nowrap;
}

table.split {
  table-layout: fixed;
}

table.split th:first-child {
  width: 62%;
}

table.split td:first-child {
  white-space: normal;
}
