/* Quality Death — doula training + health-system pages. Tokens match grief.html / doulas.html. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --green: #436438; --green-dark: #2d4424; --green-deeper: #1a2a15;
  --green-light: #c6eeb5; --green-mid: #aad19b;
  --amethyst: #6b4a7a; --amethyst-soft: #e9dff0; --amber: #b87333;
  --cream: #fcf9f8; --warm-white: #f6f3f2;
  --text: #1c1b1b; --text-mid: #43483f; --text-light: #6a7064;
  --border: #c3c8bc; --shadow: rgba(67,100,56,0.18);
  --ok: #2f6b3a; --ok-soft: #e6f3df; --no: #8a3b2e; --no-soft: #f8e7e2;
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px; line-height: 1.7; color: var(--text); background: var(--cream); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Manrope', Manrope, Arial, sans-serif; color: var(--green-deeper); line-height: 1.25; }
a { color: var(--green); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--amethyst); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green-light); color: var(--green-deeper); padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }

nav:not(.pager) { position: sticky; top: 0; z-index: 100; background: var(--green-deeper); border-bottom: 1px solid rgba(198,238,181,0.12); padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 56px; }
.nav-brand { font-size: 15px; font-weight: 700; color: var(--green-light); text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 500; color: rgba(198,238,181,0.85); text-decoration: none; white-space: nowrap; }
.nav-links a:hover { color: var(--green-light); }
.nav-cta { font-size: 13px; font-weight: 600; color: var(--green-deeper) !important; background: var(--green-light); padding: 8px 16px; border-radius: 8px; text-decoration: none; }
nav:not(.pager) a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 820px) { .nav-links { display: none; } }

.hero { background: var(--green-deeper); color: var(--cream); padding: 60px 24px 56px; }
.hero-inner { max-width: 860px; margin: 0 auto; }
.crumbs { font-size: 13px; color: var(--green-mid); margin-bottom: 14px; }
.crumbs a { color: var(--green-light); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-mid); margin-bottom: 16px; }
.hero h1 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: clamp(30px, 5vw, 46px); line-height: 1.14; letter-spacing: -0.01em; margin-bottom: 18px; color: var(--cream); text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--green-light); }
.hero p { font-size: clamp(16px, 2.2vw, 19px); line-height: 1.65; color: rgba(252,249,248,0.86); max-width: 640px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { font-size: 12.5px; font-weight: 600; color: var(--green-light); border: 1px solid rgba(198,238,181,0.35); border-radius: 100px; padding: 5px 13px; }

.sheet { max-width: 860px; margin: -30px auto 0; padding: 0 20px 40px; position: relative; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 18px 50px -30px var(--shadow); padding: clamp(22px, 4vw, 44px); }
.card > * + * { margin-top: 26px; }
.lesson h2 { font-size: clamp(21px, 3vw, 26px); margin-bottom: 12px; }
.lesson h3 { font-size: 18px; margin: 20px 0 8px; }
.lesson p, .lesson li { color: var(--text-mid); font-size: 16.5px; }
.lesson p + p { margin-top: 12px; }
.lesson ul, .lesson ol { margin: 10px 0 10px 22px; display: flex; flex-direction: column; gap: 6px; }
.lesson strong { color: var(--text); }
.lesson table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 14px 0; display: block; overflow-x: auto; }
.lesson th, .lesson td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; vertical-align: top; }
.lesson th { background: var(--warm-white); font-family: 'Manrope', sans-serif; color: var(--green-deeper); }
.lesson blockquote { border-left: 3px solid var(--amber); background: #fbf7f2; padding: 14px 18px; border-radius: 0 10px 10px 0; font-family: 'Fraunces', Georgia, serif; font-style: italic; color: var(--text); }
.tag-doc, .tag-prop { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 6px; padding: 2px 8px; margin-right: 6px; vertical-align: 1px; }
.tag-doc { background: var(--ok-soft); color: var(--ok); }
.tag-prop { background: var(--amethyst-soft); color: var(--amethyst); }

.box { border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; background: var(--warm-white); }
.box h2, .box h3 { font-size: 16px; margin-bottom: 8px; }
.box ul { margin: 6px 0 0 20px; display: flex; flex-direction: column; gap: 5px; font-size: 15px; color: var(--text-mid); }
.box.objectives { background: #f4f8ef; border-color: var(--green-mid); }
.scope { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 680px) { .scope { grid-template-columns: 1fr 1fr; } }
.scope > div { border-radius: 14px; padding: 18px 20px; border: 1px solid var(--border); }
.scope .may { background: var(--ok-soft); border-color: #b9d8ae; }
.scope .hand { background: var(--amethyst-soft); border-color: #d8c6e2; }
.scope h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.scope .may h3 { color: var(--ok); } .scope .hand h3 { color: var(--amethyst); }
.scope ul { margin: 0 0 0 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: var(--text-mid); }
.box.warn { background: #fbf3ec; border-color: #e3c7a8; }
.box.warn h2, .box.warn h3 { color: #7a4a1c; }

.case { border: 1px solid var(--amethyst); border-radius: 14px; padding: 22px; background: #fbf9fc; }
.case h2 { font-size: 18px; color: var(--amethyst); margin-bottom: 10px; }
.case .fiction { font-size: 12.5px; color: var(--text-light); margin-top: 10px; }

details { border: 1px solid var(--border); border-radius: 10px; background: #fff; }
details > summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: 14.5px; color: var(--green-dark); min-height: 44px; display: flex; align-items: center; }
details[open] > summary { border-bottom: 1px solid var(--border); }
details > *:not(summary) { padding: 12px 16px; font-size: 15px; color: var(--text-mid); }
details > *:not(summary) + *:not(summary) { padding-top: 0; }

.quiz h2 { font-size: 20px; margin-bottom: 4px; }
.quiz .sub { font-size: 14px; color: var(--text-light); margin-bottom: 14px; }
.q { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-top: 14px; background: #fff; }
.q legend { font-weight: 600; color: var(--text); font-size: 15.5px; padding: 0 6px; }
.q label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 6px; min-height: 44px; font-size: 15px; color: var(--text-mid); cursor: pointer; border-radius: 8px; }
.q label:hover { background: var(--warm-white); }
.q input[type=radio] { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.q.right { border-color: #9cc78e; background: var(--ok-soft); }
.q.wrong { border-color: #d9a597; background: var(--no-soft); }
.q .verdict { font-size: 13px; font-weight: 700; margin-top: 8px; }
.q.right .verdict { color: var(--ok); } .q.wrong .verdict { color: var(--no); }
.q details { margin-top: 10px; }
.btn { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700; color: #fff; background: var(--green); border: none; border-radius: 100px; padding: 11px 22px; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.btn:hover { background: var(--green-dark); }
.btn.ghost { background: #fff; color: var(--green-dark); border: 1px solid var(--green); }
.btn.ghost:hover { background: var(--green-light); }
.btn[aria-pressed="true"] { background: var(--ok); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.result { font-size: 14.5px; font-weight: 600; color: var(--green-dark); }

.reflect label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--green-deeper); }
.reflect textarea { width: 100%; min-height: 130px; font: inherit; font-size: 15.5px; line-height: 1.6; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); resize: vertical; }
.reflect .hint { font-size: 13px; color: var(--text-light); margin-top: 6px; }

.pager { display: grid; grid-template-columns: 1fr; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border); }
@media (min-width: 620px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a { display: block; text-decoration: none; border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; background: #fff; min-height: 44px; }
.pager a:hover { border-color: var(--green-mid); }
.pager .dir { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); }
.pager .ttl { font-family: 'Manrope', sans-serif; font-weight: 700; color: var(--green-deeper); font-size: 15.5px; }
.pager .next { text-align: right; }

.progress { border: 1px solid var(--border); border-radius: 14px; background: #fff; padding: 18px 20px; }
.progress .bar { height: 10px; background: var(--warm-white); border-radius: 100px; overflow: hidden; border: 1px solid var(--border); margin: 10px 0 6px; }
.progress .bar > i { display: block; height: 100%; width: 0; background: var(--green); transition: width .3s; }
.progress p { font-size: 14px; color: var(--text-mid); }

.grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 680px) { .grid.two { grid-template-columns: 1fr 1fr; } }
.tile { display: block; text-decoration: none; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; background: #fff; position: relative; transition: border-color .15s, transform .12s; }
.tile:hover { border-color: var(--green-mid); transform: translateY(-2px); }
.tile .nk { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); margin-bottom: 4px; }
.tile h3 { font-size: 16.5px; margin: 0 0 4px; }
.tile p { font-size: 14px; color: var(--text-mid); line-height: 1.5; }
.tile .done { display: none; position: absolute; top: 12px; right: 14px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ok); background: var(--ok-soft); border-radius: 100px; padding: 2px 10px; }
.tile.is-done .done { display: inline-block; }
.tile.primary { background: var(--green-deeper); border-color: var(--green-deeper); }
.tile.primary h3 { color: #fff; } .tile.primary p { color: rgba(252,249,248,0.75); } .tile.primary .nk { color: var(--green-mid); }
.track-h { margin-top: 30px; }
.track-h h2 { font-size: 22px; }
.track-h p { font-size: 15px; color: var(--text-mid); margin-top: 4px; }

.checklist { list-style: none; margin: 10px 0 0 0 !important; display: flex; flex-direction: column; gap: 8px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; min-height: 44px; }
.checklist input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.checklist label { cursor: pointer; font-size: 15px; color: var(--text-mid); }

.xp-section { padding: 6px 0 0; }
.xp-section h2 { font-size: 18px; margin-bottom: 10px; color: var(--green-deeper); }
.xp-section figure { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.xp-section figcaption { padding: 12px 18px 16px; font-size: 13.5px; color: var(--text-mid); }
.xp-section figcaption ol { margin: 6px 0 0 20px; display: flex; flex-direction: column; gap: 4px; }

.sources { max-width: 860px; margin: 0 auto; padding: 8px 24px 50px; }
.sources h2 { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); margin-bottom: 10px; font-family: 'Inter', sans-serif; }
.sources ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sources li, .sources p { font-size: 12.5px; color: var(--text-light); line-height: 1.6; }
.sources p + p { margin-top: 8px; }
.sources .noaccred { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }

footer { border-top: 1px solid rgba(0,0,0,0.08); background: var(--cream); padding: 24px; font-size: 13px; line-height: 1.7; color: #4a4a4a; text-align: center; }
footer p { max-width: 860px; margin: 0 auto; }
footer a { color: var(--green); display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }

@media print {
  @page { margin: 14mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  nav, .pager, .row, footer, .skip, .xp-section, .quiz .btn, .no-print { display: none !important; }
  .hero { background: #fff; color: #000; padding: 0 0 10px; border-bottom: 2px solid #000; }
  .hero h1, .hero h1 em { color: #000; } .hero p, .hero .eyebrow, .crumbs, .crumbs a { color: #222; }
  .sheet { margin: 12px auto 0; padding: 0; max-width: 100%; }
  .card { box-shadow: none; border: none; padding: 0; }
  .box, .case, .q { break-inside: avoid; background: #fff !important; border: 1px solid #999 !important; }
  details { display: block; } details > * { display: block !important; }
  a { color: #000; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tile, .progress .bar > i { transition: none; } .tile:hover { transform: none; } }
