:root {
  --paper: #fffef9;
  --background: #f5f3ec;
  --ink: #22332f;
  --muted: #67736d;
  --line: #dedfd4;
  --accent: #286c5b;
  --soft: #e9f0e9;
  --warning: #875722;
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.6;
}
.masthead, nav, main, footer, #notice {
  width: min(100% - 32px, 820px);
  margin-inline: auto;
}
.masthead {
  padding: 28px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
  gap: 16px;
}
.brand {
  letter-spacing: 0.15em;
  font-weight: 750;
  color: var(--ink);
  text-decoration: none;
}
.brand span {
  font-weight: 350;
}
.edition, .eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  font-weight: 650;
}
.edition {
  color: var(--muted);
}
nav {
  display: flex;
  gap: 8px;
  padding: 16px 0 22px;
  flex-wrap: wrap;
}
button, .button {
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid var(--line);
  padding: 9px 15px;
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
}
button:hover, .button:hover {
  border-color: var(--accent);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #90bdb0;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary, button.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.quiet {
  background: transparent;
}
#signout {
  margin-left: auto;
}
#notice:empty {
  display: none;
}
#notice {
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--soft);
}
#notice.error {
  background: #f7ede1;
  color: var(--warning);
}
.paper {
  padding: 42px 46px;
  margin-bottom: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 5px 24px #243a2b06;
}
.eyebrow {
  color: var(--accent);
  margin: 0 0 12px;
}
h1, h2, h3, p {
  margin-top: 0;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5.3vw, 3.3rem);
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 16px;
}
h3 {
  font-size: 0.86rem;
  margin: 20px 0 8px;
}
.subtitle, .meta {
  color: var(--muted);
  font-size: 0.86rem;
}
.lede {
  font-size: 1.05rem;
  max-width: 55ch;
  color: var(--muted);
}
section.block {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 26px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.pill {
  display: inline-block;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.67rem;
  letter-spacing: 0.04em;
  background: var(--soft);
  color: var(--accent);
  white-space: nowrap;
}
.pill.warning {
  background: #f6ebd9;
  color: var(--warning);
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}
.field {
  display: block;
}
.field > span {
  display: block;
  font-size: 0.86rem;
  margin-bottom: 6px;
}
.field.wide {
  grid-column: 1/-1;
}
input, select, textarea {
  width: 100%;
  font: inherit;
  background: #fffefb;
  color: var(--ink);
  border: 1px solid #cbd1c5;
  border-radius: 4px;
  padding: 10px 11px;
  min-height: 44px;
}
textarea {
  min-height: 84px;
  resize: vertical;
}
input:disabled, textarea:disabled, select:disabled {
  background: #f1f1e9;
  color: var(--muted);
}
.field small {
  display: block;
  color: var(--muted);
  font-size: 0.73rem;
  margin-top: 4px;
}
ul.clean {
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.clean > li {
  padding: 10px 0;
  border-bottom: 1px solid #ecece3;
}
ul.clean > li:last-child {
  border-bottom: 0;
}
.empty {
  color: var(--muted);
  font-size: 0.86rem;
}
.missing {
  border-left: 3px solid #c89858;
  background: #fbf5e8;
  padding: 16px 18px;
  margin-top: 20px;
}
.missing p {
  margin-bottom: 8px;
}
.missing ul {
  font-size: 0.85rem;
  padding-left: 20px;
  margin: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px 0;
}
.metric strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.65rem;
  font-weight: 400;
}
.metric span {
  font-size: 0.7rem;
  color: var(--muted);
}
blockquote {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  margin: 0;
  line-height: 1.5;
}
blockquote cite {
  display: block;
  font: normal 0.78rem ui-sans-serif, system-ui, sans-serif;
  margin-top: 12px;
  color: var(--muted);
}
.track {
  padding: 16px 18px;
  background: var(--soft);
  margin-top: 20px;
  border-radius: 4px;
}
.track a {
  color: var(--accent);
}
.answer-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.answer-list dt {
  font-size: 0.75rem;
  color: var(--muted);
}
.answer-list dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.73rem;
  padding: 10px 0 30px;
}
a {
  color: var(--accent);
}
.file-label {
  font-size: 0.85rem;
  border: 1px solid var(--line);
  padding: 9px 15px;
  border-radius: 5px;
  cursor: pointer;
}
.file-label input {
  max-width: 240px;
  font-size: 0.75rem;
  border: 0;
  padding: 2px;
  min-height: auto;
}
.sources {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.archive-entry {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.archive-entry .actions {
  margin-top: 8px;
}
.date-picker {
  max-width: 190px;
}
.report-meta {
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  margin-bottom: 26px;
}
.document h2 {
  margin-bottom: 12px;
}
.document .report-notes {
  white-space: pre-wrap;
}
@media (max-width: 600px) {
  .masthead {
    padding-top: 18px;
  }
  .edition {
    display: none;
  }
  .paper {
    padding: 26px 22px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .field.wide {
    grid-column: auto;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .answer-list {
    grid-template-columns: 1fr;
  }
  .row {
    align-items: flex-start;
  }
  .row.wrap {
    flex-direction: column;
  }
  .file-label input {
    max-width: 180px;
  }
}
@media print {
  body {
    background: white;
  }
  .masthead, nav, footer, #notice, .actions, .no-print {
    display: none !important;
  }
  .paper {
    box-shadow: none;
    border: 0;
    padding: 0;
  }
  .block {
    break-inside: avoid;
  }
  main {
    width: 100%;
  }
  .document {
    font-size: 10pt;
  }
  @page {
    size: A4 portrait;
    margin: 18mm;
  }
}
