:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-muted: #475569;
  --ink-soft: #64748b;
  --border: #e2e8f0;
  --accent: #0f172a;
  --warning-bg: #fef3c7;
  --warning-border: #fbbf24;
  --warning-ink: #78350f;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

header.site .wrap {
  padding-top: 1rem;
  padding-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

header.site a.brand {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

header.site nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
header.site nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.95rem;
}
header.site nav a:hover { color: var(--ink); }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.5rem; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }

p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.5rem; }
li { margin: 0.25rem 0; }

a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--ink-muted); }

.lede {
  color: var(--ink-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.draft-banner {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning-ink);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin: 1.5rem 0 2.5rem;
}

.draft-banner strong { font-weight: 700; }

.placeholder {
  background: #fff7ed;
  border-left: 3px solid #fb923c;
  padding: 0.25rem 0.5rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85em;
  color: #9a3412;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

dl { display: grid; grid-template-columns: minmax(160px, max-content) 1fr; column-gap: 1.25rem; row-gap: 0.5rem; }
dt { font-weight: 600; color: var(--ink-muted); }
dd { margin: 0; }

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}
th, td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th { color: var(--ink-muted); font-weight: 600; }

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  background: var(--surface);
  font-size: 0.9rem;
}

footer.site .wrap {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  color: var(--ink-soft);
}

footer.site nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
footer.site nav a { color: var(--ink-muted); text-decoration: none; }
footer.site nav a:hover { color: var(--ink); text-decoration: underline; }

/* Print = save-as-PDF for DPA */
@media print {
  header.site, footer.site, .draft-banner { display: none; }
  body { font-size: 11pt; }
  .wrap { max-width: none; padding: 0; }
  h1, h2, h3 { page-break-after: avoid; }
}
