/* Only the AHU overview opts in. Shared shell and child tools remain unchanged. */
body[data-ahu-root-clearance] { --header-height: inherit; }
html:has(body[data-ahu-root-clearance]) { scroll-padding-bottom: calc(var(--ahu-root-dock-height, 0px) + 12px); }
body[data-ahu-root-clearance] .ahu-reader-panel {
  max-height: calc(100dvh - var(--header-height, 70px) - var(--ahu-reader-bar-height) - var(--ahu-root-dock-height, 70px) - 20px);
}
body[data-ahu-root-clearance] .ahu-reference :is(a,button,input,select,textarea,summary,[tabindex]) { scroll-margin-bottom: 12px; }
/* Retain the full definition above the mobile dock on a short phone viewport. */
@media (max-width: 600px) and (max-height: 640px) {
  body[data-ahu-root-clearance] .ahu-crumbs { margin-block: 8px; }
  body[data-ahu-root-clearance] .ahu-editorial .ahu-reader-bar { margin-bottom: 8px; }
  body[data-ahu-root-clearance] .ahu-editorial .ahu-heading-with-media { margin-top: 0; padding-top: 4px; gap: .4rem; }
  body[data-ahu-root-clearance] .ahu-editorial .ahu-heading-copy > .ahu-editorial-eyebrow { margin: 0; font-size: .75rem; line-height: 1.4; }
  body[data-ahu-root-clearance] .ahu-editorial .ahu-heading-copy > h1 { margin: 0 0 .4rem; }
  body[data-ahu-root-clearance] .ahu-editorial .ahu-heading-copy > .ahu-editorial-lead { margin: 0; font-size: 1.125rem; line-height: 1.45; }
}
