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

:root {
  --bg: #f7f3ea;
  --surface: #fffdf8;
  --ink: #23282c;
  --muted: #4f5a63;
  --rule: #d6cab4;
  --accent: #35607f;
  --accent-soft: #e9eef2;
  --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;
}

*, *::before, *::after { box-sizing: border-box; }

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

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

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent); }
a:hover { text-decoration: none; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 50;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

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

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

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

.site-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}
.site-name span { color: var(--accent); }

.nav-toggle {
  font-family: var(--sans);
  font-size: 0.92rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.35rem 0.7rem;
  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.95rem;
  text-decoration: none;
  color: var(--ink);
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

@media (max-width: 719px) {
  .site-nav {
    display: none;
    width: 100%;
    padding-bottom: 0.6rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.5rem; }
  .header-inner { flex-wrap: wrap; }
}

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

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

main { display: block; }

.column {
  max-width: 660px;
  margin: 0 auto;
  padding: 2rem 1.1rem 3rem;
}

@media (min-width: 1100px) {
  .column { padding-left: 0; padding-right: 0; }
}

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

h1 { font-size: 1.85rem; margin: 0 0 0.8rem; }
h2 { font-size: 1.3rem; margin: 2.3rem 0 0.7rem; }
h3 { font-size: 1.08rem; margin: 1.7rem 0 0.5rem; }
h4 { font-size: 0.98rem; margin: 1.3rem 0 0.4rem; }

p, li { color: var(--ink); }
p { margin: 0 0 1.05rem; }

.lede { font-size: 1.12rem; }

.meta-line {
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0 0 1.2rem;
}

/* Step indicator — plain text, no animation, no filling bar. */
.step-indicator {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.2rem 0.55rem;
  display: inline-block;
  margin-bottom: 0.9rem;
}

/* Step number set in the side margin on wide screens. */
.step-marginal {
  display: none;
}
@media (min-width: 1100px) {
  .step-marginal {
    display: block;
    position: absolute;
    left: calc(50% - 540px);
    width: 180px;
    font-family: var(--sans);
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--muted);
    text-align: right;
  }
  .step-marginal strong { display: block; font-size: 2.6rem; color: var(--rule); }
  .has-marginal { position: relative; }
}

/* ---------- Boxes ---------- */

.disclosure,
.callout,
.checklist,
.example,
.procedure,
.recap {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 1.5rem 0;
}

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

.disclosure { border-left-color: #8a6a2f; }
.example { border-left-color: #5c7a52; }
.recap { border-left-color: #6b5f8a; }

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

.link-note {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.3rem 0 1.05rem;
}

.offer-row { margin: 1.3rem 0 0.2rem; }

.offer-link {
  font-family: var(--sans);
  font-size: 0.97rem;
  display: inline-block;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.45rem 0.85rem;
  text-decoration: none;
  color: var(--accent);
  background: var(--accent-soft);
}
.offer-link:hover { text-decoration: underline; }

/* ---------- Lists ---------- */

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

.contents {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin: 1.4rem 0 2rem;
}
.contents ol { margin: 0; padding-left: 1.25rem; }
.contents li { margin-bottom: 0.25rem; }
.contents a { font-family: var(--sans); font-size: 0.95rem; }

/* Static printed boxes — nothing is stored, nothing is clickable. */
.checklist ol,
.checklist ul { list-style: none; margin: 0; padding: 0; }

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

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.38em;
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid var(--muted);
  border-radius: 3px;
  background: #fff;
}

.glossary { margin: 1.5rem 0; }
.glossary dt {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 0.8rem;
}
.glossary dd { margin: 0.1rem 0 0 0; }

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

.proscons { display: grid; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 620px) { .proscons { grid-template-columns: 1fr 1fr; } }
.proscons > div {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.proscons ul { margin: 0; padding-left: 1.2rem; }
.proscons li { margin-bottom: 0.4rem; }

.print-button {
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  margin: 0.5rem 0 1.5rem;
}

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

.figure {
  margin: 1.6rem 0;
  text-align: center;
}
.figure figcaption {
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

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

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--surface);
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
}

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

.footer-inner address {
  font-style: normal;
  line-height: 1.55;
  margin: 0 0 0.9rem;
}
.footer-inner .publisher { color: var(--ink); font-weight: 700; }
.footer-links { margin: 0 0 0.9rem; }
.footer-links a { margin-right: 0.35rem; }
.footer-notice { margin: 0 0 0.9rem; }
.footer-reviewed { margin: 0; }

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

@media print {
  :root { --bg: #fff; --surface: #fff; }
  body { background: #fff; font-size: 11.5pt; }
  .site-header, .nav-toggle, .print-button, .pager, .site-nav, .skip-link, .no-print { display: none !important; }
  .column { max-width: none; padding: 0; }
  .checklist, .callout, .disclosure, .example, .recap, .contents {
    border: 1px solid #999;
    border-left: 3px solid #333;
    break-inside: avoid;
  }
  .checklist li::before { border-color: #333; }
  h2 { break-after: avoid; }
  a { color: #000; text-decoration: underline; }
  .site-footer { border-top: 1px solid #999; }
}
