/* P124: only validated native TOC targets and the new paginated-index wrapper. */
html body.single-post .entry-content h2 > span[data-p124-native-toc-target="1"],
html body.single-post .entry-content h3 > span[data-p124-native-toc-target="1"],
html body.single-post .entry-content h4 > span[data-p124-native-toc-target="1"],
html body.single-post .entry-content h5 > span[data-p124-native-toc-target="1"],
html body.single-post .entry-content h6 > span[data-p124-native-toc-target="1"] {
  scroll-margin-top: 200px !important;
}
html body.home.paged #main > [data-p124-index-header="1"] { margin: 0 0 20px !important; padding: 0 !important; }
html body.home.paged #main > [data-p124-index-header="1"] > h1 {
  margin: 0 0 12px !important; padding: 0 !important; border: 0 !important;
  background: none !important; color: #06182f !important; font-size: clamp(24px, 3vw, 36px) !important; line-height: 1.45 !important;
}
html body.home.paged #main > #codex-p124-index-guides {
  margin: 0 0 28px; padding: 0; border: 1px solid #cbd9e7; border-radius: 12px;
  color: #16324f; background: #f5f8fc; min-width: 0;
}
html body.home.paged #main > #codex-p124-index-guides > summary {
  min-height: 48px; padding: 14px 18px; cursor: pointer; font-size: 15px; font-weight: 700; line-height: 1.6;
  overflow-wrap: anywhere;
}
html body.home.paged #main > #codex-p124-index-guides > summary:focus-visible { outline: 3px solid #1662b3; outline-offset: 3px; }
html body.home.paged #main > #codex-p124-index-guides[open] > summary { border-bottom: 1px solid #cbd9e7; }
html body.home.paged #main > #codex-p124-index-guides > #custom_html-26 { margin: 0 !important; padding: 16px !important; }
html body.home.paged #codex-p124-index-guides [id] { scroll-margin-top: 200px; }
html body.home.paged #main[data-p124-compact-index="1"] > #list > a.entry-card-wrap > .codex-card-edition-v13 { display: none !important; }
html body.home.paged #main[data-p124-compact-index="1"] > .pagination { max-width: 100%; flex-wrap: wrap; }
