/* Quiet Stance — shared stylesheet. No web fonts, no external requests. */

:root {
  --paper: #fbf9f4;
  --oat: #efe9dc;
  --oat-deep: #e3dac7;
  --charcoal: #22262b;
  --charcoal-soft: #4a515a;
  --steel: #27566f;
  --steel-deep: #1c4053;
  --rule: #d4ccbb;
  --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(--charcoal);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.68;
  overflow-wrap: break-word;
}

/* ---------- skip link ---------- */

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

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

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

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

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

.menu-btn {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--charcoal);
  background: var(--oat);
  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: 15px;
  color: var(--charcoal-soft);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a:focus { color: var(--steel-deep); border-bottom-color: var(--steel); }

@media (max-width: 719px) {
  .site-nav {
    display: none;
    width: 100%;
    padding: 6px 0 12px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav a { display: block; padding: 9px 2px; }
  .head-inner { flex-wrap: wrap; }
}
@media (min-width: 720px) {
  .menu-btn { display: none; }
}

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

main { display: block; }

.column {
  max-width: 660px;
  margin: 0 auto;
  padding: 34px 20px 10px;
}

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

h1, h2, h3, h4 {
  font-family: var(--sans);
  line-height: 1.26;
  color: var(--charcoal);
  margin: 1.8em 0 0.5em;
}

h1 { font-size: 30px; margin-top: 0.2em; letter-spacing: -0.01em; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }

@media (min-width: 720px) {
  h1 { font-size: 36px; }
  h2 { font-size: 25px; }
}

p { margin: 0 0 1.1em; }

a { color: var(--steel-deep); }
a:hover { color: var(--steel); }

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

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

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

/* ---------- step indicator ---------- */

.step-marker {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin: 0 0 10px;
}

@media (min-width: 1100px) {
  .step-marker {
    position: absolute;
    left: calc(50% - 480px);
    width: 150px;
    text-align: right;
    margin-top: 10px;
  }
  .has-rail { position: relative; }
}

/* ---------- boxes ---------- */

.note,
.disclosure,
.checklist,
.example,
.proscons,
.glossary,
.recap {
  background: var(--oat);
  border-left: 4px solid var(--steel);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 1.8em 0;
}

.note h2, .note h3,
.disclosure h2,
.checklist h2, .checklist h3,
.example h2, .example h3,
.proscons h3,
.glossary h3,
.recap h2, .recap h3 { margin-top: 0; }

.disclosure { border-left-color: var(--steel-deep); background: var(--oat-deep); }
.example { border-left-color: #6d7a5a; }
.recap { border-left-color: #8a6a3a; }
.glossary { border-left-color: #5c6672; }

.aff-note {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--charcoal-soft);
  margin: 6px 0 1.2em;
}

/* ---------- checklists ---------- */

.checklist ol,
.checklist ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 0.75em;
}

.checklist li::before {
  content: "";
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 6px;
  border: 1.5px solid var(--charcoal-soft);
  border-radius: 3px;
  background: #ffffff;
}

/* ---------- tables ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  margin: 1.6em 0;
  font-family: var(--sans);
}

caption {
  text-align: left;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--charcoal-soft);
  padding-bottom: 8px;
}

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

th { background: var(--oat); font-weight: 600; }

/* ---------- lists of steps on the homepage ---------- */

.step-list { counter-reset: none; padding-left: 1.25em; }
.step-list li { margin-bottom: 0.9em; }
.step-list a { font-family: var(--sans); font-weight: 600; text-decoration: none; }
.step-list a:hover { text-decoration: underline; }

/* ---------- contents ---------- */

.contents {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 2em;
  font-family: var(--sans);
  font-size: 15px;
}
.contents h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 8px; color: var(--charcoal-soft); }
.contents ul { margin: 0; padding-left: 1.1em; }
.contents li { margin-bottom: 4px; }

/* ---------- pagination ---------- */

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

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

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

/* ---------- figure ---------- */

figure { margin: 2em 0; }
figcaption {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--charcoal-soft);
}

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

.site-foot {
  border-top: 1px solid var(--rule);
  background: var(--oat);
  margin-top: 56px;
  padding: 26px 0 40px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--charcoal);
}

.site-foot .wide > * { margin: 0 0 10px; }
.site-foot address { font-style: normal; }
.site-foot .foot-links a { margin-right: 6px; }
.site-foot .foot-tm { color: var(--charcoal-soft); max-width: 70ch; }
.site-foot .foot-rev { color: var(--charcoal-soft); }

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

@media print {
  .site-head, .pager, .print-btn, .skip, .site-foot .foot-links { display: none; }
  body { background: #ffffff; font-size: 12pt; }
  .column, .wide { max-width: 100%; padding: 0; }
  .checklist, .note, .example, .recap, .glossary {
    background: #ffffff;
    border: 1px solid #999999;
    border-left: 3px solid #333333;
    page-break-inside: avoid;
  }
  .checklist li::before { border-color: #333333; }
  a { color: #000000; text-decoration: none; }
  h2 { page-break-after: avoid; }
  .site-foot { background: #ffffff; margin-top: 24pt; border-top: 1px solid #999999; }
}
