/* Important layer outranks old page-specific important rules without ID overrides. */
@layer nasabu-heading-hierarchy {
 :root{--reading-body-size:18px;--heading-major:clamp(30px,4vw,40px);--heading-middle:clamp(26px,3vw,32px);--heading-minor:22px;--heading-gold:#FFD76A;--heading-weight:800}
 html body main :is(h1,h2,h3,h4,h5):not(:where(.approved-chart *, .chart-zoom-dialog *, button *, [role="button"] *)){
  min-width:0!important;max-width:100%!important;box-sizing:border-box!important;height:auto!important;white-space:normal!important;word-break:keep-all!important;overflow-wrap:break-word!important;line-height:1.45!important;font-weight:var(--heading-weight)!important;letter-spacing:normal!important;
 }
 html body main h1:not(:where(.approved-chart *)){font-size:var(--heading-major)!important;margin-block:0 16px!important}
 html body main h2:not(:where(.approved-chart *)){font-size:var(--heading-middle)!important;margin-block:18px 12px!important}
 html body main :is(h3,h4,h5):not(:where(.approved-chart *, .chart-zoom-dialog *, button *, [role="button"] *)){
  font-size:var(--heading-minor)!important;color:var(--heading-gold)!important;-webkit-text-fill-color:var(--heading-gold)!important;margin-block:20px 10px!important;padding:0 0 0 10px!important;border-left:3px solid var(--heading-gold)!important;
 }
 html body main .organ-illness-title{font-size:var(--heading-middle)!important;margin-block:12px!important}
 /* The same gold remains readable on the information pages' ivory background. */
 html body:not(.premium-dark) main :is(h3,h4,h5):not(:where(.approved-chart *, .chart-zoom-dialog *, button *, [role="button"] *)){
  background:#173240!important;border-radius:0 6px 6px 0!important;padding:8px 10px!important;
 }
 @media(max-width:760px){html body main :is(h3,h4,h5):not(:where(.approved-chart *, .chart-zoom-dialog *, button *, [role="button"] *)){margin-block:18px 8px!important}}
}
