/* Short unavailable readers use the same canvas across the whole viewport. */
body:has(#app>.official-reader){min-height:100vh;min-height:100dvh}
/* Keep native recording text below the title and its persistent Close control. */
#app:has(>.native-prayer)>#reader-contents>.dialog-heading{display:grid;grid-template-columns:minmax(0,1fr) 44px;grid-template-areas:"title close" "hint hint" "record record";gap:8px 12px;align-items:start}
#app:has(>.native-prayer)>#reader-contents>.dialog-heading>h2{grid-area:title;margin:0;min-width:0}
#app:has(>.native-prayer)>#reader-contents>.dialog-heading>.note{grid-area:hint;margin:0}
#app:has(>.native-prayer)>#reader-contents>.dialog-heading>[data-action=end-record]{grid-area:record;min-width:0;max-width:100%;width:100%;overflow-wrap:anywhere}
#app:has(>.native-prayer)>#reader-contents>.dialog-heading>[data-action=close-contents]{grid-area:close;justify-self:end;align-self:start;margin:0}


#reader-contents .contents-group-heading{margin:22px 0 6px;padding:0 4px;font:600 15px/1.4 system-ui,sans-serif;color:var(--ink)}
#reader-contents .contents-tree>li:first-child .contents-group-heading{margin-top:8px}
