/* Cross-page reading and form layout, without overriding authored rich-text sizes. */
html{scroll-behavior:auto;scroll-padding-top:calc(var(--ys-header-height,178px) + 24px)}
body{overflow-wrap:break-word;-webkit-text-size-adjust:100%;text-size-adjust:100%}
main,main section,main article,main form,main fieldset{min-width:0}
main :is(h1,h2,h3,h4){word-break:keep-all;overflow-wrap:anywhere;text-wrap:balance}
main :is(p,li,dd,label,figcaption){overflow-wrap:anywhere}
main :is(input,select,textarea){max-width:100%;min-width:0}
.story-card-text,.story-card-author,.author-link,.profile-card,.category-copy,.step-copy{min-width:0}
.story-card-text h3,.profile-post-card h3{line-height:1.5;text-wrap:balance}
.story-card-text p,.story-fiction-note,.local-note,.preview-note,.consult-note,.partner-preview{line-height:1.75;word-break:keep-all;overflow-wrap:anywhere;text-wrap:pretty}
.rt-toc-number,.rt-chapter-number,.story-section-meta{font-variant-numeric:tabular-nums}
.rt-toc-number,.rt-chapter-number{white-space:nowrap;flex-shrink:0}
/* Shared alignment contracts: preserve full article copy, align utilities independently. */
.related-stories>a{display:grid;grid-template-columns:120px minmax(0,1fr) 20px;align-items:center;gap:18px}
.related-stories>a>span{min-width:0;text-align:left;word-break:keep-all;overflow-wrap:anywhere}
.related-stories .related-arrow{font-style:normal;justify-self:end;white-space:nowrap}
.space-reading-product li{display:flex;flex-direction:column;align-items:stretch}
.space-reading-product li>a{flex:1}
.space-reading-product li>[data-locate-product]{align-self:flex-end;margin-top:12px}
.story-next-step{text-align:left}
@media(max-width:700px){
 .related-stories>a{grid-template-columns:80px minmax(0,1fr) 18px;gap:12px}
 .related-stories>a>img{width:80px;max-width:100%;height:72px;object-fit:cover}
 .story-next-step{grid-template-columns:40px minmax(0,1fr);gap:12px;align-items:center}
 .story-next-copy{display:contents}
 .story-next-copy>p{grid-column:2;margin:0}
 .story-next-copy>h2,.story-next-copy>span{grid-column:1/-1;margin:0;text-align:left}
 .story-next-copy>h2{font-size:21px;line-height:1.5;text-wrap:pretty}
 .story-next-step>a{grid-column:1/-1;margin-top:6px}
 main input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]),main select,main textarea{font-size:16px}
 main :is(.tags,.profile-filters,.filter-row,.actions){max-width:100%}
 main :is(.tags,.profile-filters,.filter-row){flex-wrap:wrap}
 .story-card-text h3{font-size:18px}
}
