/* policy-digest: one small stylesheet, no framework. */
:root {
  --ink: #222;
  --muted: #6b6b6b;
  --navy: #1f3a5f;
  --rule: #e2e2de;
  --paper: #fafaf8;
  --ok-bg: #e3f5ec; --ok-ink: #1e7f4f;
  --warn-bg: #fff6e0; --warn-ink: #8a5a00; --warn-rule: #e0a800;
  --low-bg: #ededeb; --low-ink: #555;
  --sans: Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { font-size: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); line-height: 1.5; background: #fff; }
a { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #f0b429; outline-offset: 2px;
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; top: 8px; }

.site-header { border-bottom: 3px solid var(--navy); }
.site-header .inner { max-width: 880px; margin: 0 auto; padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 20px; color: var(--navy); text-decoration: none; margin-right: auto; }
.brand-logo { width: 40px; height: 40px; flex: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.site-nav a[aria-current="page"] { font-weight: bold; text-decoration: none; border-bottom: 2px solid var(--navy); }
.site-nav .account { color: var(--muted); }
.inline-form { display: inline; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--navy); text-decoration: underline; cursor: pointer; }

main { max-width: 880px; margin: 32px auto; padding: 0 16px; }
main.narrow { max-width: 620px; }
.kicker { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 0 0 6px 0; }
h1 { font-size: 26px; color: var(--navy); font-weight: normal; margin: 0 0 12px 0; }
h2 { font-size: 18px; color: var(--navy); font-weight: normal; margin: 28px 0 8px 0; }
h3 { font-size: 18px; font-family: var(--serif); font-weight: normal; margin: 0 0 8px 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.notice { padding: 10px 14px; margin: 0 0 16px 0; background: var(--ok-bg); border-left: 3px solid var(--ok-ink); }
.notice--warn { background: var(--warn-bg); border-left-color: var(--warn-rule); }
.notice--info { background: #f3f5f8; border-left-color: var(--navy); }

.field { margin: 0 0 14px 0; }
.field label, fieldset legend { display: block; font-weight: bold; margin-bottom: 4px; }
.field .hint { font-weight: normal; color: var(--muted); font-size: 13px; }
input[type="text"], input[type="url"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; padding: 8px 10px; font: inherit; font-size: 15px; border: 1px solid #c9c9c9; border-radius: 4px; background: #fff;
}
textarea { min-height: 140px; }
fieldset { border: 1px solid var(--rule); padding: 10px 14px; margin: 0 0 14px 0; }
fieldset.choices label { display: inline-block; margin: 0 16px 4px 0; font-weight: normal; }
.button { display: inline-block; padding: 8px 16px; font: inherit; font-size: 14px; color: #fff; background: var(--navy); border: 0; border-radius: 4px; cursor: pointer; text-decoration: none; }
.button--secondary { color: var(--navy); background: #fff; border: 1px solid var(--navy); }
.button--small { padding: 4px 10px; font-size: 13px; }
.actions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; padding: 12px 14px; margin: 0 0 18px 0; background: var(--paper); border: 1px solid var(--rule); }
.filters .field { margin: 0; min-width: 140px; flex: 1 1 140px; }
.filters .field--wide { flex: 3 1 280px; }
.filters .field label { font-size: 13px; }

.card { padding: 16px 18px; margin: 0 0 14px 0; border: 1px solid var(--rule); background: var(--paper); }
.card .tag { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--navy); margin: 0 0 6px 0; }
.card p { margin: 0 0 10px 0; }
.card .sources { font-size: 13px; margin: 0 0 8px 0; }
.card:target { outline: 3px solid #f0b429; }
.previously { padding: 6px 12px; font-size: 13px; color: #4a4a4a; background: #f3f5f8; border-left: 3px solid var(--navy); }
.disagree { padding: 8px 12px; font-size: 13px; color: #5a3d00; background: var(--warn-bg); border-left: 3px solid var(--warn-rule); }

.badge { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 11px; font-weight: bold; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.badge--high { color: var(--ok-ink); background: var(--ok-bg); }
.badge--medium { color: var(--warn-ink); background: #fff4d6; }
.badge--low { color: var(--low-ink); background: var(--low-bg); }
.evidence { font-size: 12px; color: var(--muted); margin-left: 8px; }

table.data { border-collapse: collapse; width: 100%; font-size: 14px; }
table.data th, table.data td { padding: 6px 10px 6px 0; border-top: 1px solid #eee; text-align: left; vertical-align: top; }
table.data th { color: var(--muted); font-weight: normal; border-top: 0; }
table.data td.num { text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; }

.section-title { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy); border-bottom: 1px solid #d8dde6; padding-bottom: 6px; margin: 26px 0 10px 0; }
.method { padding: 16px 18px; background: #f7f7f5; border-top: 1px solid var(--rule); font-size: 13px; color: #555; }
.method h3 { font-family: var(--sans); font-size: 14px; }
.prose h1 { font-size: 26px; } .prose h2 { font-size: 20px; } .prose h3 { font-family: var(--sans); font-size: 17px; }
.prose img { max-width: 100%; }
.site-footer { max-width: 880px; margin: 40px auto 24px auto; padding: 12px 16px 0 16px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.site-footer a { margin-right: 14px; }
details summary { cursor: pointer; }
.flag-form { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.flag-form input[type="text"] { flex: 1 1 240px; width: auto; }
.vote-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vote-form input[type="text"] { flex: 1 1 160px; width: auto; font-size: 13px; padding: 4px 8px; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 8px 0; border-top: 1px solid #eee; }
.chip { display: inline-block; padding: 1px 8px; margin: 0 4px 4px 0; font-size: 12px; background: #eef1f5; border-radius: 10px; }
@media (max-width: 600px) { h1 { font-size: 22px; } .site-nav ul { gap: 4px 10px; } }

/* admin pages */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 0 0 20px 0; }
.admin-grid .card h3 { font-family: var(--sans); font-size: 16px; }
.admin-grid .card .count { font-size: 26px; color: var(--navy); margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }
pre.json { margin: 0; padding: 10px 12px; font-size: 12px; line-height: 1.4; background: var(--paper); border: 1px solid var(--rule); overflow: auto; max-height: 420px; white-space: pre-wrap; word-break: break-word; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; }
.form-grid .field--full { grid-column: 1 / -1; }
.decision-form { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 8px 4px 0; }
.decision-form input[type="number"], .decision-form input[type="text"], .decision-form select { width: auto; font-size: 13px; padding: 4px 8px; }
.status-ok { color: var(--ok-ink); } .status-partial, .status-waiting { color: var(--warn-ink); } .status-failed { color: #a11; font-weight: bold; }
.error-text { font-size: 12px; white-space: pre-wrap; word-break: break-word; max-width: 520px; color: #5a1a1a; }
.panel { padding: 14px 16px; margin: 0 0 18px 0; border: 1px solid var(--rule); background: var(--paper); }
.inactive { color: var(--muted); text-decoration: line-through; }

/* Utilities that replaced the former inline styles: the Content-Security-Policy allows no
   style attribute, so every rule lives here. */
.tight { margin-top: 0; }
.kind-nav { margin-bottom: 14px; }
.hit-text { margin: 0 0 6px 0; }
.item-title { margin-top: 0; font-family: var(--serif); font-size: 19px; color: var(--ink); }
.claim-link { text-decoration: none; color: inherit; }
.claim-heading { font-family: var(--serif); color: #111; }
.primary-mark { color: var(--ok-ink); }
table.data--auto { width: auto; }
svg.plot { font-family: var(--sans); font-size: 11px; }
.visually-hidden { position: absolute; left: -999px; }
.grow { flex: 1 1 240px; width: auto; }
.prewrap { white-space: pre-wrap; }
.status-form { margin-top: 12px; }
.members-title { margin: 10px 0 4px 0; }
textarea.short { min-height: 80px; }
textarea.editor { min-height: 420px; font-family: monospace; }
