/* The look of affiliates and onboarding, as the human's brief of 2026-11-16 states it:
   a Swiss grid, one sans-serif family, black on off-white, one red accent for
   keyboard focus only, square corners, no shadow or gradient, rules of 2 and 4 px. */

:root {
  --ink: #111;
  --muted: #5c5c5c;
  --paper: #f8f8f5;
  --rule: #111;
  --hair: #cfcfca;
  --focus: #c8102e;
  --attention: #f2e1a6;   /* the one attention state: not met */
  --met: #1e6b3a;         /* text colour of a met rule */
  --quiet: #8a8a85;       /* not applicable */
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; border-radius: 0; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.4; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px 12px; border-bottom: 4px solid var(--rule); gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.square { width: 22px; height: 22px; background: var(--focus); display: inline-block; }
.name { font-weight: 900; font-size: 30px; letter-spacing: -0.02em; }
.who { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.who .role { font-family: var(--mono); font-size: 13px; }

button, .button { font: inherit; font-weight: 700; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: 8px 16px; cursor: pointer; }
button.solid { background: var(--ink); color: var(--paper); }
button:disabled { opacity: 0.45; cursor: default; }
.inert { opacity: 0.45; cursor: default; }
.reason { color: var(--muted); font-size: 13px; margin-top: 4px; }

.tabs { display: flex; gap: 0; padding: 0 28px; border-bottom: 2px solid var(--hair); }
.tabs a { padding: 12px 16px; font-weight: 700; text-decoration: none; }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--paper); }

.page { padding: 0 28px 64px; }
h1 { font-size: 64px; font-weight: 900; letter-spacing: -0.03em; margin: 32px 0 12px; line-height: 1; }
.headline { border-bottom: 4px solid var(--rule); padding-bottom: 12px; font-weight: 700; font-size: 20px; }
.headline .n { font-variant-numeric: tabular-nums; }
.question { color: var(--muted); margin: 16px 0 8px; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0 12px; border-bottom: 2px solid var(--rule); }
.chip { font-weight: 600; font-size: 14px; border: 2px solid var(--ink); background: var(--paper); padding: 4px 10px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chipgroup { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-right: 14px; }
.chipgroup .lbl { font-size: 12px; color: var(--muted); margin-right: 2px; }
.counter { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }

.selbar { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.selbar .ceiling { color: var(--muted); font-size: 14px; }

.row { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 2px solid var(--hair); align-items: start; }
.row.overdue { outline: 2px dashed var(--ink); outline-offset: -2px; }
.row.selected { outline: 2px solid var(--ink); outline-offset: -2px; }
.row.s-not_met { background: var(--attention); }
.row.s-met .title { color: var(--met); }
.row.s-not_applicable { color: var(--quiet); }
.pick { width: 20px; height: 20px; border: 2px solid var(--ink); background: var(--paper); padding: 0; margin-top: 2px; }
.pick[aria-checked="true"] { background: var(--ink); }
.opener { background: none; border: 0; padding: 0; text-align: left; font-weight: 700; cursor: pointer; }
.meta { color: var(--muted); font-size: 14px; }
.state { font-weight: 700; font-size: 14px; white-space: nowrap; }

.open { grid-column: 2 / 4; border-top: 2px solid var(--rule); margin-top: 10px; padding-top: 12px; }
.open dl { display: grid; grid-template-columns: 220px 1fr; gap: 6px 16px; margin: 0 0 16px; }
.open dt { font-weight: 700; }
.open dd { margin: 0; white-space: pre-wrap; }
.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.linkish { background: none; border: 0; padding: 0; text-decoration: underline; font-weight: 600; cursor: pointer; }
.section { font-weight: 700; margin: 18px 0 6px; padding-bottom: 4px; border-bottom: 2px solid var(--hair); }

.form { display: grid; gap: 10px; max-width: 760px; margin-top: 8px; }
.form .states { display: flex; gap: 8px; flex-wrap: wrap; }
.form .states button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.form textarea, .form input[type=text], .form input[type=date], .form select { font: inherit; border: 2px solid var(--ink); background: #fff; padding: 8px; width: 100%; }
.form .error { color: var(--ink); font-size: 13px; border-left: 4px solid var(--ink); padding-left: 8px; }
.form .actions { display: flex; gap: 8px; align-items: center; }
.proofpick { display: flex; flex-wrap: wrap; gap: 6px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 13px; border: 1px solid var(--ink); padding: 1px 6px; }

.more { margin: 16px 0; }
.empty { padding: 24px 0; color: var(--muted); }

.toasts { position: fixed; left: 28px; bottom: 24px; display: grid; gap: 8px; pointer-events: none; z-index: 10; }
.toast { background: var(--ink); color: var(--paper); padding: 10px 14px; font-weight: 600; max-width: 520px; pointer-events: auto; }

.signin { max-width: 1100px; padding: 24px 28px; }
.signin .big { font-size: 96px; font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; margin: 40px 0 16px; padding-bottom: 12px; border-bottom: 8px solid var(--rule); }
.signin .bar { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 22px 22px; margin-top: 20px; font-size: 18px; }
.signin .facts { display: flex; gap: 48px; color: var(--muted); font-size: 15px; margin-top: 8px; flex-wrap: wrap; }

@media (max-width: 760px) {
  h1 { font-size: 40px; }
  .signin .big { font-size: 52px; }
  .open dl { grid-template-columns: 1fr; }
}
