/* Neutralform — shared stylesheet. No external requests, no web fonts. */

:root {
  --steel: #2f4f68;
  --steel-dark: #22394c;
  --oat: #f4efe6;
  --paper: #fcfaf6;
  --charcoal: #24262a;
  --ink: #2b2d31;
  --muted: #55585e;
  --rule: #d9d2c5;
  --radius: 8px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--charcoal);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 50;
}
.skip:focus { left: 0; }

a { color: var(--steel-dark); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--steel);
  outline-offset: 2px;
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--oat);
  border-bottom: 1px solid var(--rule);
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 56px;
}

.brand {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--charcoal);
}

.menu-btn {
  font-family: var(--sans);
  font-size: 0.9rem;
  background: var(--paper);
  color: var(--charcoal);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}

#site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
}

#site-nav a {
  font-family: var(--sans);
  font-size: 0.93rem;
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 0.2rem 0;
}
#site-nav a:hover { border-bottom-color: var(--steel); }

@media (max-width: 599px) {
  #site-nav { flex-basis: 100%; display: none; }
  #site-nav.open { display: block; }
  #site-nav ul { flex-direction: column; gap: 0.2rem; padding-bottom: 0.7rem; }
  #site-nav a { display: block; padding: 0.45rem 0; }
}

@media (min-width: 600px) {
  .menu-btn { display: none; }
}

/* ---------- main ---------- */

main { padding: 2rem 0 3rem; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--charcoal);
  line-height: 1.25;
  margin: 2rem 0 0.6rem;
}

h1 { font-size: 1.85rem; margin-top: 0.5rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.07rem; }
h4 { font-size: 0.98rem; }

p { margin: 0 0 1.1rem; }

.lede { font-size: 1.14rem; }

.step-indicator {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

/* Step numbers in the side margin on wide screens. */
.step-mark {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.3rem;
}

@media (min-width: 1100px) {
  .step-mark {
    position: absolute;
    left: -7.5rem;
    width: 6.5rem;
    text-align: right;
    margin: 0;
  }
  main .wrap { position: relative; }
}

/* ---------- blocks ---------- */

.disclosure,
.callout,
.checklist,
.example,
.summary {
  border-left: 4px solid var(--steel);
  background: var(--oat);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 0.6rem;
  margin: 1.6rem 0;
}

.callout { border-left-color: var(--charcoal); }
.summary { border-left-color: #7a6a4f; }
.example { background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--steel); }

.disclosure p:last-child,
.callout p:last-child,
.checklist p:last-child,
.example p:last-child,
.summary p:last-child { margin-bottom: 0.6rem; }

.block-title {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.aff-note {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}

/* Static printed boxes — no stored state. */
.checklist ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
}
.checklist li {
  position: relative;
  padding: 0.3rem 0 0.3rem 2rem;
  border-bottom: 1px dotted var(--rule);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 1.05rem;
  height: 1.05rem;
  border: 1.5px solid var(--charcoal);
  border-radius: 3px;
  background: #fff;
}

ol.procedure { padding-left: 1.3rem; }
ol.procedure li { margin-bottom: 0.7rem; }

.glossary {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.9rem 0;
  margin: 1.6rem 0;
}
.glossary dl { margin: 0; }
.glossary dt { font-family: var(--sans); font-size: 0.95rem; font-weight: 700; margin-top: 0.6rem; }
.glossary dd { margin: 0.15rem 0 0; }

.timeline { list-style: none; padding: 0; margin: 1.4rem 0; }
.timeline li {
  border-left: 2px solid var(--rule);
  padding: 0 0 0.9rem 1rem;
  margin: 0;
}
.timeline li strong { font-family: var(--sans); font-size: 0.95rem; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: 0.98rem;
}
th, td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
th { font-family: var(--sans); font-size: 0.9rem; background: var(--oat); }

.steps-list { padding-left: 1.3rem; }
.steps-list li { margin-bottom: 0.6rem; }

.contents {
  background: var(--oat);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin: 1.5rem 0 2rem;
}
.contents p { margin: 0 0 0.4rem; font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contents ol { margin: 0; padding-left: 1.2rem; }
.contents li { margin-bottom: 0.2rem; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.print-btn {
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--steel);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 0.55rem 1rem;
  cursor: pointer;
}

figure.diagram { margin: 1.6rem 0; }
figure.diagram svg { width: 100%; height: auto; display: block; }
figcaption { font-size: 0.92rem; color: var(--muted); margin-top: 0.4rem; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--rule);
  background: var(--oat);
  padding: 1.8rem 0 2.2rem;
  font-size: 0.93rem;
  color: var(--ink);
}
.site-foot .pub { line-height: 1.6; margin-bottom: 0.9rem; }
.site-foot .pub span { font-family: var(--sans); font-weight: 700; }
.foot-links { margin-bottom: 0.9rem; }
.site-foot .notice { color: var(--muted); }
.site-foot .reviewed { color: var(--muted); margin-bottom: 0; }

/* ---------- print ---------- */

@media print {
  .site-head, .pager, .print-btn, .skip, .contents, #site-nav { display: none !important; }
  body { background: #fff; color: #000; font-size: 11.5pt; }
  .wrap { max-width: none; padding: 0; }
  .checklist, .callout, .summary, .example, .disclosure {
    background: #fff;
    border: 1px solid #999;
    border-left: 3px solid #333;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .checklist li::before { border-color: #000; }
  h2 { page-break-after: avoid; }
  a { color: #000; text-decoration: none; }
  .site-foot { border-top: 1px solid #999; font-size: 9pt; }
}
