/* Subtle Shift — single shared stylesheet. No web fonts, no external requests. */

:root {
  --ink: #1f2429;          /* charcoal */
  --ink-soft: #3d464f;
  --paper: #faf7f0;        /* oat */
  --paper-deep: #f1ebdd;
  --rule: #d9d0bd;
  --accent: #2f5572;       /* steel blue */
  --accent-deep: #22405800;
  --accent-ink: #24435c;
  --radius: 8px;
  --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(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.68;
  overflow-wrap: break-word;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper-deep);
  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.02rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand .mark {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

.nav-toggle {
  font-family: var(--sans);
  font-size: 0.95rem;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  padding: 6px 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(--accent-ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

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

@media (max-width: 719px) {
  .site-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 2px;
    padding: 8px 0 4px;
  }
  .site-nav a {
    display: block;
    padding: 9px 2px;
  }
  .header-inner { flex-wrap: wrap; }
}

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

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

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

main { display: block; }

.page-body { padding: 34px 0 10px; }

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

h1 { font-size: 1.95rem; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h2 { font-size: 1.35rem; margin: 2em 0 0.55em; }
h3 { font-size: 1.08rem; margin: 1.7em 0 0.45em; }

p { margin: 0 0 1.15em; }

a { color: var(--accent-ink); }
a:hover { color: var(--ink); }

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

ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: 0.55em; }

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

/* ---------- Step indicator in the wide margin ---------- */

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

@media (min-width: 1080px) {
  .step-indicator {
    position: absolute;
    left: -150px;
    top: 0;
    width: 130px;
    text-align: right;
  }
  .has-margin-number { position: relative; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 40px 0 6px;
}

.hero .lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
}

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

.disclosure {
  border: 1px solid var(--rule);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  background: var(--paper-deep);
  padding: 16px 18px;
  margin: 1.6em 0;
}

.disclosure p { margin: 0 0 0.8em; }
.disclosure p:last-child { margin-bottom: 0; }
.disclosure h2 {
  margin: 0 0 0.5em;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.callout,
.checklist,
.example,
.proscons,
.glossary,
.timeline,
.procedure,
.moveon {
  border: 1px solid var(--rule);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 16px 20px;
  margin: 1.8em 0;
}

.callout h3,
.checklist h2,
.checklist h3,
.example h3,
.proscons h3,
.glossary h3,
.timeline h3,
.procedure h3,
.moveon h3 { margin-top: 0.2em; }

.checklist { background: #ffffff; }

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

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

.checklist ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--ink-soft);
  border-radius: 2px;
  background: #ffffff;
}

.glossary dt {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.97rem;
  margin-top: 0.9em;
}
.glossary dd { margin: 0.15em 0 0.6em; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.97rem;
}
caption {
  font-family: var(--sans);
  font-size: 0.9rem;
  text-align: left;
  color: var(--ink-soft);
  margin-bottom: 0.5em;
}
th, td {
  border: 1px solid var(--rule);
  padding: 9px 11px;
  text-align: left;
  vertical-align: top;
}
th {
  font-family: var(--sans);
  font-size: 0.92rem;
  background: var(--paper-deep);
}

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

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

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

.contents {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  margin: 1.6em 0 2em;
}

.contents h2 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.6em;
  color: var(--ink-soft);
}

.contents ol { margin-bottom: 0; }
.contents li { margin-bottom: 0.3em; }

/* ---------- Step list on the homepage ---------- */

.steplist { counter-reset: none; }
.steplist li { margin-bottom: 0.9em; }
.steplist a { font-family: var(--sans); font-weight: 700; }
.steplist span { display: block; font-size: 0.98rem; color: var(--ink-soft); }

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

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

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

.print-button {
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 9px 16px;
  cursor: pointer;
}
.print-button:hover { background: var(--accent-ink); }

/* ---------- Illustration ---------- */

.figure {
  margin: 1.8em 0;
}
.figure svg { width: 100%; height: auto; display: block; }
.figure figcaption {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 0.5em;
}

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

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 3.5em;
  background: var(--paper-deep);
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.site-footer .wrap { padding-top: 26px; padding-bottom: 34px; }

.footer-publisher {
  font-style: normal;
  margin: 0 0 1em;
}
.footer-publisher .footer-sitename {
  font-weight: 700;
  color: var(--ink);
  display: block;
}

.footer-links { margin: 0 0 1em; }
.footer-links a { color: var(--accent-ink); }

.footer-notice { margin: 0 0 1em; }
.footer-reviewed { margin: 0; }

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

@media print {
  body {
    background: #ffffff;
    color: #000000;
    font-size: 12pt;
  }
  .site-header,
  .site-nav,
  .nav-toggle,
  .skip-link,
  .print-button,
  .pager,
  .no-print { display: none !important; }

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

  .checklist {
    border: 1px solid #000000;
    border-left: 3px solid #000000;
    page-break-inside: avoid;
    margin: 0 0 14pt;
    padding: 10pt 12pt;
  }
  .checklist ul li::before { border-color: #000000; }

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

  a { color: #000000; text-decoration: none; }
  h1 { font-size: 18pt; }
  h2 { font-size: 13pt; }
}
