/* Mobile overflow fixes; no page-wide clipping and no desktop restyling. */
@media(max-width:900px){
 .home-journal .home-contents>div,.home-journal .home-topic-links{flex-wrap:wrap;white-space:normal;overflow:visible;min-width:0}
 .home-journal .home-contents a,.home-journal .home-topic-links a{max-width:100%;white-space:normal;overflow-wrap:anywhere;min-height:40px}
 .home-markets-scroll{overflow:visible;max-width:100%}
 .home-markets-lane{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0;gap:12px}
 .home-markets-lane .home-market-item{min-width:0;max-width:100%;padding:8px 7px 5px 0}
 .home-market-item:nth-child(even){border-right:0}
 .home-market-label,.home-market-quote{flex-wrap:wrap;white-space:normal;min-width:0;overflow-wrap:anywhere}
 .home-market-quote{gap:3px 7px;align-items:baseline}
 .home-market-quote strong,.home-market-quote>span,.home-market-basis{max-width:100%;overflow-wrap:anywhere}
 .home-markets-head,.home-markets-head>div,.home-markets-foot{flex-wrap:wrap;min-width:0}
 .home-markets-foot>details{margin-left:auto;max-width:100%}
 .home-markets-tools [data-markets-next]{display:none}
 .home-market-sources{max-width:calc(100vw - 36px);overflow-wrap:anywhere}
 .home-journal .home-story-copy>p,.home-journal .home-topic-note p{display:block;-webkit-line-clamp:unset;line-clamp:unset;max-height:none;height:auto;overflow:visible;overflow-wrap:anywhere}
 .home-journal .home-story--note .home-story-copy>p,.home-journal .home-learning-grid .home-story-copy>p,.home-journal .home-story--lesson .home-story-copy>p{display:none}
 .home-journal .home-about{white-space:normal;overflow-wrap:anywhere}
 .home-journal .home-section-head,.home-journal .home-study-panel>header{flex-wrap:wrap;min-width:0}
 .home-journal .home-learning-tabs,.home-journal .home-community-links,.home-journal .home-contents{min-width:0;max-width:100%;flex-wrap:wrap}
 .home-journal .home-learning-tabs a,.home-journal .home-community-links a{white-space:normal;overflow-wrap:anywhere;min-width:0;max-width:100%}
 .member-panel,.community-toolbar,.comments-area,.ant-related{min-width:0;max-width:100%;box-sizing:border-box}
 .member-panel{padding:24px 20px}
 .member-panel h1,.member-panel p,.member-status,.member-note,.community-topic h2,.footer-brand-copy,.site-footer .copyright{overflow-wrap:anywhere}
 .community-toolbar{flex-wrap:wrap;gap:10px}
 .member-form input,.member-form textarea,.member-panel .social-button,.comments-area textarea{min-width:0;max-width:100%;box-sizing:border-box}
 .member-panel .social-button{height:auto;white-space:normal;overflow-wrap:anywhere;line-height:1.6;padding:12px}
 .mobile-navigation-panel a{min-width:0;overflow-wrap:anywhere}
 /* Retain native two-column / complex tables, but let text wrap within their cells. */
 .article-body .ant-table-wrap,.article-body .ant-table-scroll,.article-body .sr-table-scroll{min-width:0;max-width:100%}
 .article-shell .article-body :is(.ant-table-wrap,.ant-table-scroll,.sr-table-scroll) table{width:100%;min-width:0;table-layout:fixed}
 .article-shell .article-body :is(.ant-table-wrap,.ant-table-scroll,.sr-table-scroll) caption{white-space:normal;overflow-wrap:anywhere;max-width:100%}
 .article-body :is(.ant-table-wrap,.ant-table-scroll,.sr-table-scroll) :is(th,td){min-width:0;white-space:normal;overflow-wrap:anywhere;padding:10px 8px;box-sizing:border-box}
 .article-body .sr-table-scroll::before{display:none}
 /* Simple rectangular comparison tables become labelled rows. Nodes/text stay in place. */
 .article-shell .article-body table[data-mobile-table=stack],table[data-mobile-table=stack]{display:block;width:100%;min-width:0;max-width:100%;table-layout:auto;border:0;border-collapse:separate}
 table[data-mobile-table=stack] caption{display:block;width:100%;white-space:normal;overflow-wrap:anywhere;text-align:left}
 table[data-mobile-table=stack] thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 table[data-mobile-table=stack] tbody{display:block;width:100%;min-width:0}
 table[data-mobile-table=stack] tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;padding:13px 10px;border-bottom:1px solid var(--line)}
 .article-body table[data-mobile-table=stack] tbody tr>*,table[data-mobile-table=stack] tbody tr>*{display:block;min-width:0;max-width:100%;width:auto;white-space:normal;overflow-wrap:anywhere;padding:0;border:0;background:transparent;text-align:left;font-size:12px;line-height:1.7;box-sizing:border-box}
 table[data-mobile-table=stack] tbody tr>*:first-child{grid-column:1/-1;font-weight:700;font-size:13px;color:var(--ink)}
 table[data-mobile-table=stack] tbody tr>*:not(:first-child)::before{content:attr(data-mobile-label);display:block;font-size:10px;line-height:1.6;color:var(--muted);font-weight:400;margin-bottom:3px;overflow-wrap:anywhere}
 table[data-mobile-columns="4"] tbody tr>*:last-child,table[data-mobile-columns="6"] tbody tr>*:last-child{grid-column:1/-1}
 .research-workspace .research-comparison-table[data-mobile-table=stack] tbody tr>*{width:auto;min-width:0;padding:0;border:0}
}
