/* Book styling — readable line length, calm palette, clear callouts. */

:root {
  --ec-accent: #1a7f5a;
  --ec-fire: #b30000;
}

.sidebar-title { font-weight: 700; }

/* Readable measure for body text */
main p, main li { max-width: 40rem; line-height: 1.65; }

/* Tables: numbers should line up and read quickly */
main table { font-size: 0.94rem; }
main table td, main table th { padding: 0.35rem 0.6rem; }
main thead th { border-bottom: 2px solid rgba(128, 128, 128, 0.45); }

/* Figures sit centred with a little breathing room */
figure { margin: 1.6rem auto; }
figure img { border-radius: 4px; }
figcaption { font-size: 0.88rem; opacity: 0.82; margin-top: 0.5rem; }

/* Code blocks */
pre.sourceCode { border-radius: 5px; font-size: 0.88rem; }

/* Make the "honesty" callouts visually distinct — they carry the caveats */
div.callout-important { border-left-color: var(--ec-fire) !important; }
div.callout-warning { border-left-color: #d98324 !important; }

/* Part dividers in the sidebar */
.sidebar-item-section > .sidebar-item-container { font-weight: 600; }
