/* Scoped corrections from the independent October 2026 UX review. */
/* Keep the established display fonts while allowing marks above and below capitals. */
html:not([lang=ja]) .fd-hero h1,
html:not([lang=ja]) .fd-hero h1 span{line-height:1.2}
html:not([lang=ja]) .ic-page h1,
html:not([lang=ja]) .ic-page h2,
html:not([lang=ja]) .ic-song h3,
html:not([lang=ja]) .ic-latest-head h2,
html:not([lang=ja]) body[data-ic-template=home] h2.display,
html:not([lang=ja]) #reading-panel .chapter-head h2.display{line-height:1.2}
html:not([lang=ja]) body[data-ic-ux-family=animal-post] h1,
html:not([lang=ja]) .sword h1{line-height:1.2}
/* A title's available width is the text column, not the viewport. */
.fd-hero .hero-content{container-type:inline-size}
@supports(font-size:1cqi){
 html:not([lang=ja]) .fd-hero h1{font-size:clamp(38px,19cqi,142px)}
}
html[lang=uk] body[data-ic-template=juana] .opening-copy{container-type:inline-size}
html[lang=uk] body[data-ic-template=juana] .opening h1{font-size:clamp(48px,6.6vw,104px);line-height:1.2;overflow-wrap:normal}
@supports(font-size:1cqi){html[lang=uk] body[data-ic-template=juana] .opening h1{font-size:clamp(32px,21cqi,104px)}}
/* The catalogue form lives in a narrow hero column at every screen width. */
.sword-index .ic-search-moved .index-controls{grid-template-columns:minmax(0,1fr);gap:18px;padding:24px 0;align-items:end}
.sword-index .ic-search-moved .index-controls>*,
.sword-index .ic-search-moved .index-controls>div:first-child,
.sword-index .ic-search-moved .index-controls button{grid-column:1/-1;min-width:0}
.sword-index .ic-search-moved .index-controls label{line-height:1.5}
@media(min-width:1200px){
 .sword-index .ic-search-moved .index-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sword-index .ic-search-moved .index-controls>div:not(:first-child){grid-column:auto}
}
/* Keep a real table, with an explicit cue whenever sideways movement is needed. */
.ic-table-hint{font:700 13px/1.5 Arial,sans-serif;margin:14px 0 8px;color:#733020}
.ic-table-hint[hidden]{display:none}
.z-table:focus-visible{outline:3px solid #8b2b20;outline-offset:4px}
#timeline .ch-table td:first-child{white-space:normal;min-width:6.5em}

/* Extra clearance for stacked ogonek and dotted capitals in Baldwin chapters. */
html:not([lang=ja]) #reading-panel .chapter-head h2.display{line-height:1.28}
