/* Decisions, Reports and Docs pages (2026-10-24). Loaded after site.css, so it uses the same tokens: no new colours.

   WHY the status chips are not traffic lights: warning colour belongs to diagnostics (Zach, 2026-10-23: "Serverse that
   color for annotating true diagonistics warning and errors and nothing else!!!"), and this is a page about a quiet
   tool. Accepted is a solid outline in the accent, Proposed is dashed in the text colour, Superseded is struck through
   and muted. */

main.page { padding: 40px 0 72px; }
main.page > .wrap > * { min-width: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); }
h1.page-title { font-size: clamp(26px, 4.6vw, 38px); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 12px; max-width: 820px; }
.page .lead { margin-bottom: 24px; }
.page p, .page li { max-width: 760px; }
.page p code, .page li code { overflow-wrap: anywhere; }

dl.meta { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0 0 28px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
dl.meta div { display: flex; gap: 8px; align-items: baseline; }
dl.meta dt { color: var(--muted); }
dl.meta dd { margin: 0; }
.status { display: inline-block; font-size: 12px; font-weight: 650; letter-spacing: 0.02em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.status[data-status="Accepted"] { color: var(--accent); }
.status[data-status="Proposed"] { color: var(--fg); border-style: dashed; }
.status[data-status="Superseded"] { color: var(--muted); text-decoration: line-through; }
.area { display: inline-block; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; white-space: nowrap; }

.adr-sec { padding: 26px 0 4px; border-top: 1px solid var(--line); }
.adr-sec.first { border-top: 0; padding-top: 4px; }
.adr-sec h2 { font-size: 21px; margin: 0 0 12px; }
.adr-sec blockquote { max-width: 720px; margin-top: 14px; }
.adr-sec blockquote + p { margin-top: 16px; }
.adr-sec ul { padding-left: 20px; margin: 0 0 14px; }
.adr-sec li { margin-bottom: 6px; }
.banner { border: 1px dashed var(--line); background: var(--soft); border-radius: 10px; padding: 12px 16px; margin: 0 0 26px; font-size: 15px; }
.banner p { margin: 0; }
.banner p + p { margin-top: 6px; }

.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 10px; }
table.tbl { border-collapse: collapse; width: 100%; font-size: 15px; }
table.tbl th, table.tbl td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl th { background: var(--soft); font-size: 13px; color: var(--muted); font-weight: 650; }
table.tbl td code { overflow-wrap: anywhere; }
@media (max-width: 720px) { table.tbl { min-width: 560px; } }

ul.evidence { list-style: none; padding: 0; margin: 0 0 14px; }
ul.evidence li { padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; }
ul.evidence li:last-child { border-bottom: 0; }
ul.evidence .what { color: var(--muted); font-size: 14px; display: block; }
ul.commits { font-size: 14px; color: var(--muted); list-style: none; padding: 0; }
ul.commits code { background: none; border: 0; padding: 0; color: var(--fg); }

/* the index of decisions: date, status, the decision and its area; the link is the whole row */
ol.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
ol.rows > li { border-bottom: 1px solid var(--line); max-width: none; margin: 0; }
a.row { display: grid; grid-template-columns: 96px 110px 1fr auto; gap: 6px 18px; align-items: baseline; padding: 14px 4px; color: var(--fg); text-decoration: none; }
a.row:hover { background: var(--soft); }
a.row .date { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
a.row .num { color: var(--muted); font-size: 12px; margin-right: 8px; font-variant-numeric: tabular-nums; }
a.row .decision { font-weight: 600; line-height: 1.35; }
a.row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 720px) {
  a.row { grid-template-columns: 1fr auto; padding: 14px 2px; }
  a.row .date { grid-column: 1; }
  a.row .st { grid-column: 2; justify-self: end; }
  a.row .decision { grid-column: 1 / -1; }
  a.row .area { grid-column: 1; justify-self: start; }
}

/* report cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0 0 40px; }
.rcard { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; background: var(--bg); }
.rcard h3 { margin: 0 0 4px; font-size: 18px; }
.rcard .meta-line { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.rcard p { margin: 0 0 8px; }
.rcard .backs { font-size: 14px; color: var(--muted); margin: 0; }
.rcard .internal { color: var(--muted); font-style: italic; }

/* contract docs rendered from Markdown */
.prose h1 { font-size: clamp(26px, 4.6vw, 36px); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 12px; }
.prose h2 { font-size: 22px; margin: 34px 0 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose p, .prose li { max-width: 760px; }
.prose pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; line-height: 1.5; font-size: 13px; margin: 0 0 14px; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose blockquote { max-width: 720px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 7px 10px; border: 1px solid var(--line); }
.prose th { background: var(--soft); }
.prose img { max-width: 100%; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
@media (max-width: 720px) { .prose table { min-width: 520px; } }

.prose { overflow-wrap: anywhere; }
