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

:root {
  --steel: #2b5a78;
  --steel-dark: #1f4259;
  --oat: #f2ece0;
  --oat-deep: #e5dcc9;
  --paper: #fbf9f4;
  --charcoal: #22262a;
  --charcoal-soft: #474e55;
  --rule: #cfc7b6;
  --radius: 8px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, 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: 1.0625rem;
  line-height: 1.75;
}

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

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

.skip-link:focus {
  left: 0;
}

/* ---------- 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 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-mark {
  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: 0.5rem;
}

.site-mark .mark-glyph {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

.site-mark:hover { color: var(--steel-dark); }

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

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

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--steel-dark);
  border-bottom-color: var(--steel);
}

@media (max-width: 719px) {
  .site-nav {
    display: none;
    width: 100%;
  }
  .site-nav.is-open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .site-nav ul {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.5rem 0 0.3rem;
  }
  .site-nav a {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--rule);
  }
}

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

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

main {
  display: block;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.15rem;
}

.column {
  max-width: 660px;
  margin: 0 auto;
}

/* Side margins carry the step number on wide screens. */
.step-shell {
  position: relative;
}

.step-margin-number {
  display: none;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}

@media (min-width: 1040px) {
  .step-margin-number {
    display: block;
    position: absolute;
    top: 2.6rem;
    left: -2.5rem;
    writing-mode: vertical-rl;
  }
}

/* ---------- Typography ---------- */

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

h1 {
  font-size: 1.95rem;
  margin: 2rem 0 0.85rem;
}

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

h3 {
  font-size: 1.1rem;
  margin: 1.8rem 0 0.55rem;
}

p { margin: 0 0 1.05rem; }

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

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

:focus-visible {
  outline: 3px solid var(--steel);
  outline-offset: 2px;
}

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

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

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

.disclosure {
  border: 1px solid var(--rule);
  border-left: 5px solid var(--steel);
  border-radius: var(--radius);
  background: var(--oat);
  padding: 1rem 1.15rem;
  margin: 1.6rem 0;
}

.disclosure h2 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

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

/* ---------- Callouts, checklists, examples ---------- */

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

.example { border-left-color: var(--charcoal-soft); }
.summary-box { border-left-color: var(--steel-dark); background: var(--oat-deep); }
.glossary { border-left-color: var(--charcoal-soft); background: var(--oat-deep); }

.callout h2, .callout h3,
.checklist h2, .checklist h3,
.example h2, .example h3,
.summary-box h2, .summary-box h3,
.glossary h2, .glossary h3 {
  margin-top: 0;
}

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

/* Printed boxes: a drawn square, not an interactive control. */
.checklist ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 2rem;
  margin: 0 0 0.75rem;
}

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

ol, ul { padding-left: 1.3rem; }

ol li, ul li { margin-bottom: 0.6rem; }

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

.steps-overview {
  counter-reset: none;
  padding-left: 1.3rem;
}

.steps-overview li { margin-bottom: 0.9rem; }

.steps-overview a { font-weight: 600; }

/* ---------- Tables ---------- */

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

caption {
  font-family: var(--sans);
  font-size: 0.9rem;
  text-align: left;
  color: var(--charcoal-soft);
  padding-bottom: 0.5rem;
}

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

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

/* ---------- Definition lists ---------- */

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

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

/* ---------- Affiliate link note ---------- */

.aff-note {
  display: block;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--charcoal-soft);
  margin-top: 0.3rem;
}

/* ---------- Step navigation ---------- */

.step-nav {
  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.97rem;
}

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

.contents-box h2 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: var(--charcoal-soft);
}

.contents-box ol { margin: 0; }

.contents-box li { margin-bottom: 0.3rem; }

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

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

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

/* ---------- Figure ---------- */

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

figcaption {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--charcoal-soft);
  margin-top: 0.5rem;
}

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

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--oat);
  margin-top: 3.5rem;
  padding: 1.8rem 1.15rem 2.4rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--charcoal);
}

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

.footer-inner address {
  font-style: normal;
  margin: 0 0 0.9rem;
}

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

.footer-notice,
.footer-reviewed {
  margin: 0 0 0.6rem;
  color: var(--charcoal);
}

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

@media print {
  :root { --paper: #ffffff; }
  body {
    background: #ffffff;
    color: #000000;
    font-size: 11.5pt;
    line-height: 1.45;
  }
  .site-header,
  .site-nav,
  .menu-toggle,
  .print-button,
  .step-nav,
  .contents-box,
  .skip-link,
  .disclosure {
    display: none !important;
  }
  main { max-width: none; padding: 0; }
  .column { max-width: none; }
  .checklist,
  .callout,
  .summary-box,
  .example,
  .glossary {
    background: #ffffff;
    border: 1px solid #666666;
    border-left: 3px solid #000000;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .checklist li::before { border-color: #000000; }
  h2 { page-break-after: avoid; }
  a { color: #000000; text-decoration: none; }
  .site-footer {
    background: #ffffff;
    border-top: 1px solid #000000;
    font-size: 9pt;
  }
}
