/* Clear Volume — shared stylesheet. No web fonts, no external requests. */

:root {
  --steel: #2f536b;
  --steel-deep: #21394a;
  --oat: #f4efe4;
  --paper: #fcfaf5;
  --charcoal: #22262b;
  --ink: #2b3036;
  --muted: #55606a;
  --rule: #d8d0bf;
  --radius: 8px;
  --col: 660px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.72;
}

h1, h2, h3, h4,
.brand, .site-nav, .menu-btn, .step-of, .kicker, .btn, .foot a, .tag {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1 { font-size: 1.95rem; line-height: 1.25; margin: 0 0 .6em; color: var(--charcoal); letter-spacing: -.01em; }
h2 { font-size: 1.38rem; line-height: 1.3; margin: 2.2em 0 .5em; color: var(--charcoal); }
h3 { font-size: 1.1rem; line-height: 1.35; margin: 1.8em 0 .4em; color: var(--charcoal); }
p { margin: 0 0 1.1em; }
a { color: var(--steel-deep); }
a:hover { color: var(--charcoal); }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--charcoal);
  color: #fff;
  padding: .6em 1em;
  z-index: 50;
}
.skip:focus { left: 0; }

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

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

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 1.1rem;
  max-width: 920px;
  margin: 0 auto;
}

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

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--charcoal);
  font-size: .92rem;
  padding: .35em .8em;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  gap: 1.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-size: .95rem;
  text-decoration: none;
  color: var(--charcoal);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.site-nav a:hover { border-bottom-color: var(--steel); }

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

.wrap {
  max-width: var(--col);
  margin: 0 auto;
  padding: 2.2rem 1.1rem 3rem;
}

main { display: block; }

.step-of {
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .7rem;
}

.lede { font-size: 1.08rem; color: var(--ink); }

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

/* ---------- disclosure and affiliate lines ---------- */

.disclosure {
  border-left: 5px solid var(--steel);
  background: var(--oat);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1.8rem 0;
}
.disclosure p { margin: 0 0 .7em; }
.disclosure p:last-child { margin-bottom: 0; }

.aff {
  border-left: 5px solid var(--rule);
  padding: .55rem 0 .55rem 1rem;
  margin: 1.5rem 0;
}
.aff a { font-weight: 600; }
.aff-note {
  display: block;
  font-size: .9rem;
  color: var(--muted);
  margin-top: .25em;
}

/* ---------- body units ---------- */

.callout,
.checklist,
.example,
.summary,
.procedure,
.glossary,
.proscons {
  border-left: 5px solid var(--steel);
  background: #fff;
  border-radius: var(--radius);
  padding: 1.05rem 1.2rem;
  margin: 1.9rem 0;
}

.example { border-left-color: #8a7a52; background: var(--oat); }
.summary { border-left-color: var(--charcoal); background: var(--oat); }
.glossary { border-left-color: #8a7a52; }
.proscons { border-left-color: #6b7a84; }

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

.kicker {
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .4rem;
}

.checklist ul { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding: .32em 0 .32em 2.1rem;
  border-bottom: 1px dotted var(--rule);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--steel);
  border-radius: 3px;
}

ol.steps-list { padding-left: 1.3rem; }
ol.steps-list li { margin-bottom: .75em; }

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

.glossary dl { margin: 0; }
.glossary dt { font-weight: 700; margin-top: .8em; }
.glossary dd { margin: 0 0 .2em; }

.proscons .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.proscons ul { margin: 0; padding-left: 1.1rem; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
  font-size: .97rem;
}
caption { text-align: left; color: var(--muted); font-size: .9rem; padding-bottom: .5em; }
th, td {
  border: 1px solid var(--rule);
  padding: .5em .65em;
  text-align: left;
  vertical-align: top;
}
th { background: var(--oat); }

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

.toc {
  background: var(--oat);
  border-radius: var(--radius);
  padding: .9rem 1.2rem;
  margin: 1.6rem 0 2.2rem;
}
.toc p { margin: 0 0 .4em; font-weight: 700; font-size: .95rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin: .15em 0; }

.btn {
  display: inline-block;
  background: var(--steel-deep);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: .6em 1.1em;
  font-size: .95rem;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--charcoal); color: #fff; }

figure.diagram { margin: 2rem 0; }
figure.diagram svg { width: 100%; height: auto; display: block; }
figcaption { font-size: .9rem; color: var(--muted); margin-top: .5em; }

/* wide screens: step numbers in the margin */
@media (min-width: 1040px) {
  .marginal {
    position: relative;
  }
  .marginal::before {
    content: attr(data-mark);
    position: absolute;
    left: -5.6rem;
    top: .35em;
    width: 4.6rem;
    text-align: right;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: .78rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

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

.foot {
  border-top: 1px solid var(--rule);
  background: var(--oat);
  padding: 2rem 1.1rem 2.6rem;
  font-size: .92rem;
  color: var(--muted);
}
.foot-inner { max-width: var(--col); margin: 0 auto; }
.foot .pub { font-style: normal; margin: 0 0 1em; line-height: 1.6; }
.foot .pub .name { font-weight: 700; color: var(--charcoal); display: block; }
.foot .foot-links { margin: 0 0 1em; }
.foot .foot-links a { text-decoration: none; }
.foot .foot-links a:hover { text-decoration: underline; }
.foot .tm { margin: 0 0 1em; }
.foot .reviewed { margin: 0; }

/* ---------- small screens ---------- */

@media (max-width: 680px) {
  body { font-size: 17px; }
  h1 { font-size: 1.6rem; }
  .menu-btn { display: inline-block; }
  .site-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: .2rem; padding: .6rem 0 .2rem; }
  .site-nav a { display: block; padding: .4em 0; }
  .head-row { flex-wrap: wrap; }
  .proscons .two { grid-template-columns: 1fr; }
}

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

@media print {
  body { background: #fff; color: #000; font-size: 11.5pt; }
  .site-head, .pager, .toc, .btn, .skip, .foot .foot-links { display: none !important; }
  .wrap { max-width: 100%; padding: 0; }
  .checklist {
    break-inside: avoid;
    page-break-inside: avoid;
    border-left: 2px solid #000;
    background: #fff;
    padding-left: .8rem;
  }
  .checklist li::before { border-color: #000; }
  a { color: #000; text-decoration: none; }
  .aff, .disclosure { border-left: 2px solid #000; background: #fff; }
  .foot { background: #fff; border-top: 1px solid #000; padding: .8rem 0 0; }
}
