/* =====================================================
   The Privacy Diet — Book Page
   ===================================================== */

/* 1. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #f8f7f4;
  color: #1a1a1a;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* 2. Tokens */
:root {
  --black:      #111111;
  --charcoal:   #1a1a1a;
  --gold:       #C9A030;
  --gold-light: #E8C05A;
  --gold-dim:   #8a6d1f;
  --white:      #ffffff;
  --off-white:  #f8f7f4;
  --warm-gray:  #ede9e2;
  --text-dark:  #1a1a1a;
  --text-mid:   #444444;
  --text-muted: #777777;
  --border:     #e2ddd6;
  --sidebar-w:  260px;
  --mobile-h:   52px;
  --max-w:      740px;
  --radius:     8px;
  --radius-sm:  4px;
  --shadow:     0 4px 16px rgba(0,0,0,.10);
}

/* 3. Typography */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-dark);
}
h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 20px 0 8px;
}
h3 { font-size: clamp(1.1rem, 1.6vw, 1.25rem); margin: 32px 0 12px; }
p  { font-size: 1rem; color: var(--text-mid); margin-bottom: 1em; line-height: 1.8; }
p, li, td { overflow-wrap: break-word; }
p:last-child { margin-bottom: 0; }
strong { color: var(--text-dark); font-weight: 600; }
em     { font-style: italic; }
code   { font-family: 'Courier New', monospace; font-size: .875em; background: var(--warm-gray); padding: 1px 5px; border-radius: 3px; }
a[href] { color: var(--gold-dim); text-decoration: underline; text-underline-offset: 3px; }
a[href]:hover { color: var(--gold); }

/* Override link style for nav/buttons — restored below */

/* 4. Layout */
.book-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}
.book-main {
  grid-column: 2;
  padding: clamp(48px, 6vw, 80px) clamp(20px, 5vw, 72px);
  min-width: 0; /* grid item: don't let wide children (tables) stretch the column past the viewport */
}
.book-main > * { max-width: var(--max-w); }

/* 5. Sidebar */
.book-sidebar {
  grid-column: 1;
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  overflow-y: auto;
  background: var(--charcoal);
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  z-index: 200;
}
.sidebar-top {
  padding: 20px 20px 0;
  flex-shrink: 0;
}
.sidebar-home {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .7rem;
  font-weight: 500;
  color: rgba(255,255,255,.35);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  transition: color .2s;
  text-decoration: none;
}
.sidebar-home:hover { color: var(--gold); }
.sidebar-title {
  font-family: 'Playfair Display', serif;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.sidebar-progress-wrap {
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.sidebar-progress-label {
  display: block;
  font-size: .6rem;
  color: rgba(255,255,255,.25);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.sidebar-progress-track {
  height: 2px;
  background: rgba(255,255,255,.06);
  border-radius: 1px;
  overflow: hidden;
}
.sidebar-progress-bar {
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width .15s linear;
}
.sidebar-nav {
  flex: 1;
  padding: 6px 0 12px;
}
.sidebar-nav li { list-style: none; }
.sidebar-part {
  font-size: .6rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 20px 5px;
  display: block;
}
.sidebar-link {
  display: block;
  padding: 6px 20px 6px 24px;
  font-size: .8rem;
  font-weight: 400;
  color: rgba(255,255,255,.45);
  transition: color .15s, background .15s;
  line-height: 1.35;
  border-left: 2px solid transparent;
  text-decoration: none;
}
.sidebar-link:hover { color: rgba(255,255,255,.8); }
.sidebar-link.is-active {
  color: var(--gold-light);
  border-left-color: var(--gold);
  background: rgba(201,160,48,.06);
  font-weight: 500;
}
.sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,.06);
  margin: 6px 20px;
}
.sidebar-bottom {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.sidebar-pdf-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px;
  background: rgba(201,160,48,.1);
  border: 1px solid rgba(201,160,48,.25);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold);
  transition: background .2s, border-color .2s;
  text-decoration: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  box-shadow: none;
  outline: none;
}
.sidebar-pdf-btn:hover {
  background: rgba(201,160,48,.18);
  border-color: rgba(201,160,48,.45);
}

/* 6. Mobile header */
.mobile-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--mobile-h);
  background: var(--charcoal);
  border-bottom: 1px solid rgba(255,255,255,.07);
  z-index: 300;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}
.mobile-menu-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.65);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  line-height: 1;
}
.mobile-chapter-name {
  flex: 1;
  font-size: .8125rem;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-home-btn {
  font-size: .75rem;
  color: var(--gold);
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 150;
}
.sidebar-overlay.is-visible { display: block; }

/* 7. Reading progress */
#reading-progress {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  height: 3px;
  background: var(--gold);
  z-index: 400;
  width: 0%;
  transition: width .1s linear;
  pointer-events: none;
}

/* 8. Hero */
.book-hero {
  padding-bottom: clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(48px, 6vw, 72px);
}
.hero-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-style: italic;
}
.book-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  margin-bottom: 12px;
  line-height: 1.08;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-style: italic;
}
.hero-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--gold);
  color: var(--black);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .3px;
  transition: background .2s, transform .15s;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  outline: none;
}
.hero-pdf-btn:hover { background: var(--gold-light); transform: translateY(-1px); }

/* 9. Part headers */
.part-header {
  background: var(--charcoal);
  padding: 36px 40px;
  border-radius: var(--radius);
  margin: clamp(56px, 7vw, 88px) 0 40px;
  position: relative;
  overflow: hidden;
  max-width: var(--max-w);
}
.part-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(to bottom, var(--gold), transparent 80%);
}
.part-label {
  font-size: .65rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.part-header h2 {
  color: var(--white);
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}
.part-subtitle {
  color: rgba(255,255,255,.45);
  font-size: .8rem;
  margin-top: 8px;
  letter-spacing: .5px;
}

/* 10. Sections */
.book-section {
  margin-bottom: clamp(64px, 8vw, 100px);
  scroll-margin-top: 24px;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* 11. Body lists */
ul.body-list, ol.body-list {
  padding-left: 1.5em;
  margin: 12px 0 18px;
}
ul.body-list { list-style: disc; }
ol.body-list { list-style: decimal; }
.body-list li {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: .5em;
  line-height: 1.75;
}

/* 12. Pull quotes */
.pull-quote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--gold);
  background: rgba(201,160,48,.04);
  font-size: 1rem;
  font-style: italic;
  color: var(--text-mid);
  line-height: 1.75;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.pull-quote p { margin: 0; font-style: italic; color: var(--text-mid); }
.pull-quote cite {
  display: block;
  font-size: .8125rem;
  font-style: normal;
  color: var(--text-muted);
  margin-top: 8px;
}

/* 13. Callouts */
.callout--info,
.callout--warn,
.callout--summary,
.callout--danger {
  margin: 24px 0;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: .9375rem;
  line-height: 1.7;
}
.callout--info    { background: rgba(40,130,200,.06); border: 1px solid rgba(40,130,200,.2); color: #1e3a52; }
.callout--warn    { background: rgba(200,140,20,.07); border: 1px solid rgba(200,140,20,.25); color: #4a3000; }
.callout--summary { background: rgba(201,160,48,.07); border: 1px solid rgba(201,160,48,.25); color: var(--text-mid); }
.callout--danger  { background: rgba(200,50,50,.06);  border: 1px solid rgba(200,50,50,.2);  color: #4a1010; }
.callout--info strong, .callout--warn strong,
.callout--summary strong, .callout--danger strong { display: block; margin-bottom: 6px; font-size: 1rem; }

/* 14. Win cards */
.win-grid {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 28px 0;
}
.win-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0 20px;
  padding: 26px 22px;
  background: var(--white);
  border: 1px solid var(--border);
}
.win-grid .win-card:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.win-grid .win-card:last-child  { border-radius: 0 0 var(--radius) var(--radius); }
.win-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--black);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  grid-row: 1 / 999;
  align-self: start;
}
.win-title {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 4px;
  align-self: center;
}
.win-impact {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 14px;
}
.win-card p { font-size: .9375rem; margin-bottom: .6em; }
.win-card p.win-impact { margin-bottom: 14px; }
.win-card p:last-child { margin-bottom: 0; }
.win-card ul.body-list, .win-card ol.body-list { font-size: .9375rem; }
.win-card .checklist { font-size: .9375rem; }
.win-body { /* inherits from win-card p */ }

/* 15. Checklist */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
  list-style: none;
  padding: 0;
}
.checklist-item {
  list-style: none;
}
.checklist-item label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: .9375rem;
  color: var(--text-mid);
  line-height: 1.55;
}
.checklist-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  min-width: 17px;
  border: 2px solid var(--border);
  border-radius: 3px;
  background: var(--white);
  cursor: pointer;
  position: relative;
  margin-top: 2px;
  transition: background .15s, border-color .15s;
}
.checklist-item input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.checklist-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 1px; left: 4px;
  width: 5px; height: 9px;
  border: 2px solid var(--black);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.checklist-item.is-checked label {
  text-decoration: line-through;
  opacity: .55;
}

/* 16. Weekend summary table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: .9375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table th {
  background: var(--charcoal);
  color: rgba(255,255,255,.55);
  padding: 9px 14px;
  text-align: left;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table td:first-child { width: 40px; text-align: center; }
.data-table td:last-child  { text-align: right; font-weight: 600; color: var(--gold-dim); }

/* 17. Chapter prev/next */
.chapter-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  max-width: var(--max-w);
}
.chapter-nav-btn {
  font-size: .875rem;
  font-weight: 500;
  color: var(--gold-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.chapter-nav-btn:hover { color: var(--gold); }
.chapter-nav-next { margin-left: auto; }

/* 18. Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: rgba(255,255,255,.55);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s, color .2s;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.is-visible { opacity: 1; transform: none; }
.back-to-top:hover { color: var(--gold); }

/* 19. Book footer */
.book-footer {
  max-width: var(--max-w);
  padding: 40px 0 0;
  margin-top: 40px;
  border-top: 1px solid var(--border);
}
.book-footer p { font-size: .8125rem; color: var(--text-muted); }

/* 20. Code blocks */
.code-block {
  margin: 18px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
}
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0a0a0a;
  padding: 7px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.code-header span { font-size: .6rem; color: rgba(255,255,255,.3); letter-spacing: 1.5px; text-transform: uppercase; }
.copy-btn {
  background: rgba(201,160,48,.12);
  border: 1px solid rgba(201,160,48,.28);
  color: var(--gold);
  font-size: .65rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .2s;
  font-family: 'Inter', sans-serif;
  letter-spacing: .5px;
}
.copy-btn:hover { background: rgba(201,160,48,.22); }
.code-block pre {
  background: #0d0d0d;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 0;
}
.code-block code {
  font-family: 'Courier New', monospace;
  font-size: .8125rem;
  color: #c8c8c8;
  line-height: 1.75;
  white-space: pre;
  background: none;
  padding: 0;
}

/* 21. Process steps */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 20px 0;
  list-style: none;
  padding: 0;
}
.process-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--border);
}
.process-steps .process-step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.process-steps .process-step:last-child  { border-radius: 0 0 var(--radius) var(--radius); }
.step-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--charcoal);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: .85rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 1px;
}
.process-step > div p { font-size: .9375rem; margin: 0; line-height: 1.65; }
.process-step > div strong { font-size: .9375rem; color: var(--text-dark); }

/* 22. Settings tables */
.settings-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: .9375rem;
}
.settings-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-mid);
  line-height: 1.6;
}
.settings-table tr:last-child td { border-bottom: none; }
.settings-table td:first-child {
  font-weight: 600;
  color: var(--text-dark);
  font-size: .875rem;
  font-family: 'Courier New', monospace;
  background: rgba(0,0,0,.02);
  width: 40%;
}

/* 23. Badge and settings path */
.badge-advanced {
  display: inline-block;
  background: rgba(80,80,100,.08);
  color: #3d3d55;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid rgba(80,80,100,.22);
  margin-bottom: 20px;
}
.badge-beginner {
  display: inline-block;
  background: rgba(201,160,48,.12);
  color: var(--gold-dim);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid rgba(201,160,48,.3);
  margin-bottom: 20px;
}
.settings-path {
  font-family: 'Courier New', monospace;
  font-size: .8rem;
  color: var(--text-mid);
  background: var(--warm-gray);
  border-left: 3px solid var(--gold);
  padding: 6px 12px;
  margin: 20px 0 8px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  word-break: break-all;
}
.settings-table th {
  background: var(--charcoal);
  color: rgba(255,255,255,.55);
  padding: 7px 14px;
  text-align: left;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

/* 24. ROM / comparison tables */
.rom-table, .compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: .875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.rom-table th, .compare-table th {
  background: var(--charcoal);
  color: rgba(255,255,255,.55);
  padding: 9px 13px;
  text-align: left;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.rom-table td, .compare-table td {
  padding: 10px 13px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  vertical-align: top;
  line-height: 1.5;
}
.rom-table tr:last-child td, .compare-table tr:last-child td { border-bottom: none; }
.rom-table tr:nth-child(even) td, .compare-table tr:nth-child(even) td { background: rgba(0,0,0,.018); }
.rom-table td:first-child, .compare-table td:first-child { font-weight: 600; color: var(--text-dark); }

/* 24. Responsive */
@media (max-width: 960px) {
  :root { --sidebar-w: 220px; }
}
@media (max-width: 800px) {
  .book-sidebar {
    transform: translateX(-100%);
    transition: transform .28s ease;
  }
  .book-sidebar.is-open { transform: none; }
  .book-layout { grid-template-columns: 1fr; }
  .book-main {
    grid-column: 1;
    padding-top: calc(var(--mobile-h) + 32px);
  }
  .mobile-header { display: flex; }
  #reading-progress { top: var(--mobile-h); left: 0; }
  .back-to-top { bottom: 16px; right: 14px; }

  /* Tables: scroll horizontally inside their own box instead of pushing the page wider */
  .data-table, .settings-table, .rom-table, .compare-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .rom-table th, .rom-table td,
  .compare-table th, .compare-table td { min-width: 120px; }
  .settings-table td:first-child { width: auto; min-width: 130px; }

  .part-header { padding: 26px 22px; }
}
@media (max-width: 560px) {
  .book-hero h1 { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .win-card { grid-template-columns: 34px 1fr; gap: 0 14px; padding: 20px 16px; }
  .win-number { width: 32px; height: 32px; font-size: .9rem; }
  .chapter-nav { flex-direction: column; }
  .chapter-nav-next { margin-left: 0; }
  .pull-quote { padding: 16px 16px; }
  .code-block pre { padding: 14px; }
}

/* 25. Print / Save as PDF */
@media print {
  .book-sidebar, .sidebar-overlay, .mobile-header,
  .back-to-top, #reading-progress, .chapter-nav,
  .copy-btn, .hero-pdf-btn, .sidebar-pdf-btn { display: none !important; }

  body { background: #fff; color: #111; font-size: 11pt; }
  .book-layout { display: block; }
  .book-main { padding: 0; max-width: 100%; }

  .book-section { margin-bottom: 2em; page-break-inside: avoid; }
  h2, h3, h4 { page-break-after: avoid; }
  .pull-quote, .callout--info, .callout--warn,
  .callout--summary, .callout--danger { page-break-inside: avoid; }

  .code-block pre { background: #f4f4f4; color: #111; border: 1px solid #ccc; }
  .code-header { background: #e8e8e8; }
  .part-header { background: #222; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  a[href]::after { content: none; }
  .book-footer { border-top: 1px solid #ccc; padding-top: 12px; margin-top: 2em; }
}
