:root {
  --paper: #f3eee6; --ink: #161714; --muted: #6d6b64; --line: #d8d0c4;
  --teal: #125e57; --copper: #c45c26; --card: #fff;
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #e7e0d4; color: var(--ink); font-family: var(--sans); }
.toolbar {
  position: sticky; top: 0; z-index: 10; background: #161714; color: #f3eee6;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 20px; font-size: 13px;
}
.toolbar a, .toolbar button {
  color: #f3eee6; background: #125e57; border: 0; border-radius: 999px;
  padding: 8px 12px; font: 700 12px var(--sans); text-decoration: none; cursor: pointer;
}
.pages { padding: 24px 0 60px; }
.page {
  width: 8.5in; min-height: 11in; height: 11in; margin: 0 auto 24px;
  background: var(--paper); padding: 0.55in 0.6in 0.5in;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
}
.watermark {
  position: absolute; inset: 0; display: grid; place-items: center;
  pointer-events: none; font-family: var(--serif); font-size: 90px;
  color: rgba(22,23,20,0.05); transform: rotate(-22deg); font-weight: 600;
  letter-spacing: 0.08em; z-index: 2;
}
.page-header, .page-footer {
  display: flex; justify-content: space-between; font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.page-header { border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 18px; }
.page-footer { position: absolute; left: 0.6in; right: 0.6in; bottom: 0.38in; border-top: 1px solid var(--line); padding-top: 8px; }
.kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
h1 { font-family: var(--serif); font-weight: 520; font-size: 42px; line-height: 1.05; letter-spacing: -0.03em; margin: 10px 0 12px; }
h2 { font-family: var(--serif); font-weight: 520; font-size: 28px; letter-spacing: -0.03em; margin: 0 0 10px; }
.takeaway {
  font-size: 15px; background: #fff; border-left: 3px solid var(--teal);
  padding: 10px 12px; margin: 6px 0 12px;
}
.sample-tag {
  font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--copper); border: 1px solid #ecc3a8; background: #f8e6d8;
  border-radius: 999px; padding: 3px 8px;
}
.meta { color: var(--muted); font-size: 13px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.plan-block { margin-bottom: 14px; }
.plan-block h3 { margin: 0 0 6px; font-size: 15px; }
.plan-block ol { margin: 0; padding-left: 18px; color: #3c3b36; font-size: 13px; }

.hdr-brand { display: inline-flex; align-items: center; gap: 8px; }
.hdr-brand .kestrel-mark { width: 18px; height: 18px; border-radius: 4px; }
.cover-brand { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.cover-brand .kestrel-mark { width: 56px; height: 56px; border-radius: 14px; }
.cover-name { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.cover-tag { font-size: 13px; color: var(--muted); margin-top: 4px; }
.chart-label { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.heat-legend { display: flex; gap: 16px; font-size: 11px; color: var(--muted); margin-top: 12px; }
.heat-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.heat-legend .h0 { background: #e7e0d4; border: 1px solid #d8d0c4; }
.heat-legend .h1 { background: #9bb8b4; }
.heat-legend .h2 { background: #125e57; }
.heat-legend .h3 { background: #c45c26; }
.note-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.note-claim { font-size: 12px; color: var(--muted); }
.note-truth { font-size: 13px; margin-top: 4px; }
.gap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.gap-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.gap-title { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.gap-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; font-size: 12px; }
.tiny { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.stat-tiles { margin-top: 18px; }
.cover-mark { display: none; }
.toc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toc-grid div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.toc-grid span { font-weight: 800; letter-spacing: 0.08em; color: var(--teal); font-size: 11px; margin-right: 6px; }
table.compact td, table.compact th { padding: 6px 8px; font-size: 12px; }
table.compact { margin-top: 10px; }



@media print {
  .toolbar { display: none !important; }
  body { background: #fff; }
  .pages { padding: 0; }
  .page {
    box-shadow: none; margin: 0; width: 8.5in; height: 11in;
    page-break-after: always; break-after: page;
  }
  .page:last-child { page-break-after: auto; }
  @page { size: letter; margin: 0; }
}
