/* Important titles use the available card width and the reader's text size.
   Semantic heading levels, colours, emphasis and authored margins stay intact. */
#main [data-heading-card] {
 min-inline-size:0;
}
/* Native disclosure titles inherit the surrounding size context. Containment
   on details or summary can make WebKit scroll a revealed button between
   pointerdown and pointerup, changing which control receives the click. */
#main [data-heading-card]:not(details) {container-type:inline-size}
#main .card-summary-title {display:inline-block}
#main [data-card-heading] {
 min-inline-size:0;
 max-inline-size:100%;
 overflow-wrap:anywhere;
 text-wrap:balance;
 font-size:clamp(1.25rem,calc(1rem + 1vw),1.8rem);
 font-size:clamp(1.25rem,calc(1rem + 2cqi),1.8rem);
 line-height:1.3;
}
#main [data-card-heading="feature"] {
 font-size:clamp(1.75rem,calc(1rem + 2.5vw),3.25rem);
 font-size:clamp(1.75rem,calc(1rem + 5cqi),3.25rem);
 line-height:1.15;
}
#main [data-card-heading="compact"] {
 font-size:clamp(1.0625rem,calc(.95rem + .625vw),1.4rem);
 font-size:clamp(1.0625rem,calc(.95rem + 1.25cqi),1.4rem);
 line-height:1.4;
}
#main .card-summary-title {display:inline-block;vertical-align:top}
html:lang(ar) #main [data-card-heading] {letter-spacing:normal;line-height:1.55}
html:lang(zh) #main [data-card-heading] {letter-spacing:normal;line-height:1.45}

/* Secondary headings are immediately readable in cards, disclosures and
   dialogs. The motion controller also keeps their ancestors free of fades.
   The requested opening sequence owns its specific "Two perspectives" title;
   all other secondary headings retain this immediate, stationary rendering. */
:is(h2,h3,h4,h5,h6,summary,[data-card-heading]:not(h1),[role="heading"]:not([aria-level="1"])):not(:where(.reference-landing .landing-instructions > #perspectives-title)) {
 animation:none!important;
 opacity:1!important;
 transform:none!important;
}
