/* Macrofacet — shared stylesheet
   Palette: steel blue, oat, charcoal. No web fonts, no external requests. */

:root {
  --steel: #27566f;
  --steel-dark: #1b3e51;
  --oat: #f3eee3;
  --oat-deep: #e7dfcd;
  --charcoal: #262626;
  --charcoal-soft: #4a4a4a;
  --paper: #fdfcf9;
  --rule: #cfc6b2;
  --radius: 8px;
  --column: 660px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", 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: 18px;
  line-height: 1.68;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--charcoal);
  color: #ffffff;
  font-family: var(--sans);
  padding: 10px 16px;
  z-index: 50;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ---------- Header ---------- */

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

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

.brand {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--charcoal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand .mark {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: var(--radius);
  background: var(--steel);
  color: #ffffff;
  text-align: center;
  line-height: 26px;
  font-size: 0.85rem;
}

.menu-button {
  display: none;
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--charcoal);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 7px 12px;
  cursor: pointer;
}

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

.site-nav a {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--steel-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.site-nav a:hover,
.site-nav a:focus {
  border-bottom-color: var(--steel);
}

/* ---------- Layout ---------- */

main {
  display: block;
}

.wrap {
  max-width: var(--column);
  margin: 0 auto;
  padding: 0 20px 56px;
}

.wrap-wide {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px 56px;
}

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

h1 {
  font-size: 1.95rem;
  margin: 34px 0 14px;
}

h2 {
  font-size: 1.32rem;
  margin: 38px 0 10px;
}

h3 {
  font-size: 1.08rem;
  margin: 26px 0 8px;
}

p { margin: 0 0 16px; }

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

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

ul, ol { padding-left: 22px; }
li { margin-bottom: 8px; }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 34px 0;
}

/* ---------- Step indicator ---------- */

.step-indicator {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--steel-dark);
  margin: 30px 0 0;
}

/* ---------- Disclosure box ---------- */

.disclosure {
  border-left: 4px solid var(--steel);
  background: var(--oat);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 24px 0;
}

.disclosure p { margin: 0 0 10px; }
.disclosure p:last-child { margin-bottom: 0; }

.link-note {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--charcoal-soft);
  margin-top: -8px;
}

/* ---------- Callout, checklist, example ---------- */

.callout {
  border-left: 4px solid var(--steel);
  background: var(--oat);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 24px 0;
}

.example {
  border-left: 4px solid var(--oat-deep);
  background: #faf7f0;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 24px 0;
}

.checklist {
  border-left: 4px solid var(--steel);
  background: var(--oat);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 28px 0;
}

.checklist h2,
.checklist h3 { margin-top: 0; }

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

.checklist ul li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}

.checklist ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--steel);
  border-radius: 3px;
  background: var(--paper);
}

.glossary {
  border-left: 4px solid var(--steel);
  background: var(--oat);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 0.97rem;
}

.glossary dt {
  font-family: var(--sans);
  font-weight: 700;
  margin-top: 10px;
}

.glossary dd { margin: 2px 0 0; }

dl.checked dt {
  font-family: var(--sans);
  font-weight: 700;
  margin-top: 14px;
}

dl.checked dd { margin: 2px 0 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  border-bottom: 1px solid var(--rule);
  padding: 9px 10px;
  vertical-align: top;
}

th {
  font-family: var(--sans);
  background: var(--oat);
}

/* ---------- Contents list ---------- */

.contents {
  border-left: 4px solid var(--oat-deep);
  background: #faf7f0;
  border-radius: var(--radius);
  padding: 14px 18px 14px 20px;
  margin: 22px 0 30px;
}

.contents p {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.contents ol { margin: 0; }

/* ---------- Steps list on homepage ---------- */

.step-list { padding-left: 20px; }
.step-list > li { margin-bottom: 14px; }
.step-list a {
  font-family: var(--sans);
  font-weight: 700;
}

/* ---------- Pager ---------- */

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

/* ---------- Print button ---------- */

.print-button {
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--steel);
  color: #ffffff;
  border: 0;
  border-radius: var(--radius);
  padding: 10px 16px;
  cursor: pointer;
}

.print-button:hover { background: var(--steel-dark); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--oat);
  padding: 28px 20px 40px;
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--charcoal);
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
}

.footer-inner address {
  font-style: normal;
  margin: 0 0 14px;
}

.footer-links {
  margin: 0 0 14px;
}

.footer-links a { color: var(--steel-dark); }

.footer-note { margin: 0 0 12px; max-width: 70ch; }

.footer-reviewed { margin: 0; color: var(--charcoal-soft); }

/* ---------- Decorative rule art ---------- */

.rule-art {
  display: block;
  margin: 28px auto 0;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 720px) {
  .menu-button { display: inline-block; }
  .site-nav {
    display: none;
    width: 100%;
  }
  .site-nav.open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .site-nav ul {
    flex-direction: column;
    gap: 10px;
    padding: 10px 0 6px;
  }
  body { font-size: 17px; }
  h1 { font-size: 1.65rem; }
}

/* ---------- Wide screens: step numbers in the margin ---------- */

@media (min-width: 1100px) {
  .margin-number {
    position: absolute;
    left: calc(50% - 560px);
    width: 180px;
    text-align: right;
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--charcoal-soft);
  }
  .has-margin { position: relative; }
}

/* ---------- Print ---------- */

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

  body {
    font-size: 12pt;
    background: #ffffff;
    color: #000000;
  }

  .wrap, .wrap-wide { max-width: none; padding: 0; }

  .checklist {
    background: #ffffff;
    border: 1px solid #000000;
    border-left: 3px solid #000000;
    page-break-inside: avoid;
    margin: 14pt 0;
  }

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

  .site-footer {
    background: #ffffff;
    border-top: 1px solid #000000;
    font-size: 9pt;
  }

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

  h2 { page-break-after: avoid; }
}
