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

:root {
  --steel: #2f5168;
  --steel-dark: #233f51;
  --oat: #f2ebdd;
  --paper: #fcfaf6;
  --charcoal: #23272b;
  --charcoal-soft: #4a5158;
  --rule: #d9d1c2;
  --radius: 8px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, 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(--charcoal);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
}

h1, h2, h3, h4,
.site-header, .step-indicator, .crumb, .footer, nav, .btn, caption, th {
  font-family: var(--sans);
}

h1 {
  font-size: 1.95rem;
  line-height: 1.25;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 2.4rem 0 0.7rem;
}

h3 {
  font-size: 1.08rem;
  margin: 1.8rem 0 0.5rem;
}

p { margin: 0 0 1.05rem; }

a { color: var(--steel); }

a:hover { color: var(--charcoal); }

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

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

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

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

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

.header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: none;
  font: inherit;
  font-size: 0.9rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.4rem 0.7rem;
  color: var(--charcoal);
  cursor: pointer;
}

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

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--charcoal-soft);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--steel);
  text-decoration: underline;
}

@media (max-width: 620px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.5rem 0 0.3rem;
  }
  .site-nav a {
    display: block;
    padding: 0.45rem 0;
  }
  .header-inner { flex-wrap: wrap; }
}

/* ---------- layout ---------- */

main {
  display: block;
  max-width: 660px;
  margin: 0 auto;
  padding: 1.8rem 1rem 3rem;
}

.step-indicator {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin: 0 0 0.6rem;
}

@media (min-width: 1100px) {
  .step-indicator {
    position: absolute;
    left: 50%;
    margin-left: -400px;
    width: 180px;
    text-align: right;
  }
}

.lede {
  font-size: 1.14rem;
  color: var(--charcoal);
}

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

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

.callout { border-left-color: var(--charcoal-soft); }
.example { background: #f6f2ea; border-left-color: var(--charcoal-soft); }
.summary-box { background: #eef1f3; border-left-color: var(--steel); }
.glossary { background: #f6f2ea; }

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

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

.affiliate-note {
  font-size: 0.93rem;
  color: var(--charcoal-soft);
  margin: 0.35rem 0 1.1rem;
}

/* static checklist: printed boxes, no stored state */

.checklist ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.75rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.38em;
  width: 1rem;
  height: 1rem;
  border: 1.5px solid var(--charcoal-soft);
  border-radius: 3px;
  background: var(--paper);
}

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

.timeline {
  list-style: none;
  margin: 1.4rem 0;
  padding: 0 0 0 1.2rem;
  border-left: 3px solid var(--rule);
}

.timeline li {
  margin-bottom: 1rem;
  padding-left: 0.4rem;
}

.timeline strong { font-family: var(--sans); font-size: 0.95rem; }

.proscons {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .proscons { grid-template-columns: 1fr 1fr; }
}

.proscons > div {
  border: 1px solid var(--rule);
  border-left: 4px solid var(--steel);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}

.proscons h3 { margin-top: 0; }

dl.checked dt {
  font-family: var(--sans);
  font-weight: 600;
  margin-top: 0.9rem;
}

dl.checked dd { margin: 0.15rem 0 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: 0.97rem;
}

th, td {
  border: 1px solid var(--rule);
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

th { background: var(--oat); }

.contents {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin: 1.5rem 0 2rem;
}

.contents ol { margin: 0; padding-left: 1.2rem; }
.contents li { margin-bottom: 0.3rem; }

.steplist { padding-left: 1.3rem; }
.steplist li { margin-bottom: 0.8rem; }

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

.btn {
  display: inline-block;
  font: inherit;
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--steel);
  color: #fff;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { background: var(--steel-dark); color: #fff; }

.figure {
  margin: 1.6rem 0;
  text-align: center;
}

.figure figcaption {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  margin-top: 0.4rem;
}

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

.footer {
  border-top: 1px solid var(--rule);
  background: var(--oat);
  font-size: 0.9rem;
  color: var(--charcoal);
}

.footer-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.6rem 1rem 2.2rem;
}

.footer address {
  font-style: normal;
  line-height: 1.55;
  margin: 0 0 0.9rem;
}

.footer-links {
  margin: 0 0 0.8rem;
}

.footer-links a { margin-right: 0.35rem; }

.footer p { margin: 0 0 0.7rem; }

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

@media print {
  .site-header,
  .pager,
  .no-print,
  .btn { display: none !important; }

  body {
    background: #fff;
    color: #000;
    font-size: 11.5pt;
  }

  main { max-width: none; padding: 0; }

  .checklist,
  .callout,
  .summary-box,
  .disclosure {
    background: #fff;
    border: 1px solid #999;
    border-left: 3px solid #333;
    break-inside: avoid;
  }

  .checklist li::before { border-color: #000; }

  h2 { break-after: avoid; }

  a { color: #000; text-decoration: underline; }

  .footer { background: #fff; border-top: 1px solid #999; }
}
