* { box-sizing: border-box; }
body { margin: 0; background: #f7f2ea; }
html, main { min-width: 0; }
.reading-page {
  max-width: 860px; margin: 0 auto; padding: 32px 24px 48px;
  font: 400 16px/1.85 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #514d48; overflow-wrap: break-word;
}
.reading-page h1, .reading-page h2, .reading-page h3,
.editorial-content h2, .editorial-content h3 { color: #24221f; font-weight: 700; line-height: 1.45; }
.reading-page h1 { margin: 8px 0 16px; font-size: 32px; }
.reading-page h2 { margin: 0 0 16px; font-size: 24px; }
.reading-page h3 { margin: 24px 0 8px; font-size: 18px; }
.reading-page p { margin: 14px 0; }
.reading-page article > section { border-top: 1px solid #ded5c8; margin-top: 32px; padding-top: 28px; scroll-margin-top: 24px; }
.reading-page a, .editorial-content a { color: #80532f; text-underline-offset: 4px; }
.reading-page a:hover, .editorial-content a:hover { text-decoration-thickness: 2px; }
.reading-page li { margin: 10px 0; padding-left: 4px; }
.reading-page ol, .reading-page ul { padding-left: 24px; }
.reading-page dt { font-weight: 700; color: #24221f; margin-top: 20px; }
.reading-page dd { margin: 6px 0 16px 0; }
.reading-page .brand { color: #80532f; font-size: 18px; font-weight: 700; margin-bottom: 0; }
.reading-page .lead { font-size: 17px; }
.article-meta { color: #71665e; font-size: 13px; }
.article-header { margin-bottom: 24px; }
.article-footer { margin-top: 40px; border-top: 1px solid #ded5c8; padding-top: 20px; font-size: 14px; }
.site-nav {
  display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0 0 20px;
  margin-bottom: 28px; border-bottom: 1px solid #ded5c8; font-size: 14px;
}
.site-nav a {
  display: inline-flex; align-items: center; min-height: 36px;
  color: #5e564e; text-decoration: none; font-weight: 600;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: #8b5e3c; text-decoration: underline; text-underline-offset: 5px;
}
.page-toc { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 16px 0; font-size: 14px; }
.note, .formula { border-left: 3px solid #4f8f81; background: #fff; padding: 16px 20px; }
.formula { font-variant-numeric: tabular-nums; color: #24221f; }
.table-scroll { max-width: 100%; overflow-x: auto; border-radius: 6px; margin: 20px 0; }
.table-scroll table { border-collapse: collapse; min-width: 560px; width: 100%; background: #fff; font-size: 15px; }
.table-scroll caption { text-align: left; color: #71665e; padding-bottom: 10px; font-size: 14px; }
.table-scroll th, .table-scroll td { white-space: nowrap; padding: 12px 16px; border-bottom: 1px solid #e5ddd1; text-align: left; }
.table-scroll thead th { background: #eee8df; color: #24221f; }
.table-scroll tbody th { font-weight: 600; }
#retention table { min-width: 660px; }
#retention th, #retention td { white-space: normal; min-width: 160px; vertical-align: top; }
.editorial-content {
  max-width: 1280px; margin: 0 auto; padding: 24px 40px 40px;
  font: 400 16px/1.8 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #514d48; overflow-wrap: anywhere;
}
.editorial-content > header { padding-top: 28px; border-top: 1px solid #ded5c8; }
.editorial-content h2 { font-size: 26px; margin: 8px 0 16px; }
.editorial-content h3 { font-size: 20px; margin: 20px 0 10px; }
.editorial-content p { margin: 12px 0; }
.editorial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; }
.editorial-grid article { min-width: 0; border-top: 1px solid #ded5c8; padding-top: 8px; }
.editorial-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; margin: 16px 0; }
.editorial-footer { border-top: 1px solid #ded5c8; margin-top: 28px; padding-top: 16px; font-size: 13px; }
@media (max-width: 639px) {
  .reading-page { padding: 20px 20px 36px; }
  .reading-page h1 { font-size: 28px; }
  .reading-page h2 { font-size: 22px; }
  .reading-page .lead { font-size: 16px; }
  .editorial-content { padding: 16px 20px 32px; }
  .editorial-content h2 { font-size: 24px; }
  .editorial-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
