/* Shared search page, header link, publication accordion and mobile containment. */
.reference-header .sc-search-link{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:44px;padding:8px;margin-left:8px;color:#3c485c;text-decoration:none}
.sc-search-link svg{width:25px;height:25px}
.sc-search-page{padding-top:32px;padding-bottom:48px;min-width:0}
.sc-search-hero{padding:32px;border:1px solid #e1e7ed;border-top:3px solid var(--brand);border-radius:16px;background:#fff;text-align:center}
.sc-search-emblem{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 15px;border-radius:16px;background:color-mix(in srgb,var(--brand) 9%,white);color:var(--brand)}
.sc-search-emblem svg{width:28px;height:28px}
.sc-search-eyebrow{font-size:10px;font-weight:800;letter-spacing:1.8px;color:var(--brand);margin:0 0 7px}
.sc-search-hero h1{font-size:32px;line-height:1.2;margin:0 0 10px;color:#172535}
.sc-search-hero>p:not(.sc-search-eyebrow){font-size:14px;color:#677787;margin:0 0 24px}
.sc-search-hero .content-search{display:flex;gap:8px;width:100%;max-width:680px;margin:0 auto;min-width:0}
.content-search button{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:var(--brand);color:var(--sc-breaking-fg,#fff);border:0;border-radius:8px;padding:12px 18px;font-weight:700;cursor:pointer}
.content-search button svg{width:20px;height:20px;flex-shrink:0}
.sc-search-hero .content-search input{font-size:16px;padding:15px;border-radius:8px;min-width:0;flex:1;width:0}
.sc-search-results{margin-top:28px;min-width:0}
.sc-search-summary{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:20px}
.sc-search-summary h2{font-size:20px;line-height:1.4;margin:0;overflow-wrap:anywhere;min-width:0}
.sc-search-summary>span{font-size:12px;font-weight:700;color:var(--brand)}
.sc-search-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.sc-search-grid .news-card{min-width:0;overflow-wrap:anywhere}
.sc-search-grid .news-card>a{display:block}
.sc-search-grid .news-card img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.sc-search-grid .news-card h2{font-size:18px;line-height:1.4}
.sc-search-empty{text-align:center;background:#fff;border:1px dashed #dbe3ea;border-radius:12px;padding:32px 20px;margin-top:24px;overflow-wrap:anywhere;color:#677787}
.sc-search-empty>svg{width:32px;height:32px;color:var(--brand)}
.sc-search-empty h2,.sc-search-empty h3{color:#25374a;font-size:19px;margin:10px 0}
.sc-search-empty p{font-size:14px;margin:0}
.sc-search-pagination ul{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:28px 0 0}
.sc-search-pagination .page-numbers a,.sc-search-pagination .page-numbers span{display:grid;place-items:center;min-width:40px;min-height:40px;padding:8px 12px;background:#fff;border:1px solid #dfe6ed;border-radius:8px;font-size:13px}
.sc-search-pagination .page-numbers .current{background:var(--brand);color:var(--sc-breaking-fg,#fff);border-color:var(--brand)}
.sc-network-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;letter-spacing:inherit;text-align:left}
.sc-network-toggle:disabled{opacity:1;color:inherit}
.sc-network-toggle svg{display:none;flex-shrink:0;transition:transform .2s}
.sc-network-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
.footer-network [hidden]{display:none!important}
@media(max-width:800px){
 .reference-header .reference-masthead .sc-search-link{grid-column:3;grid-row:1;order:0;width:44px;height:44px;padding:9px;margin:0;border-radius:6px}
 .reference-header .reference-masthead .sc-search-link svg{width:26px;height:26px}
 .sc-search-link:focus-visible,.sc-network-toggle:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
 .sc-network-toggle{min-height:44px;padding:8px 0;cursor:pointer}
 .sc-footer-fold-ready .sc-network-toggle svg{display:block}
 .reference-footer .footer-network-heading{padding-top:8px;padding-bottom:8px}
 .single-post .article-layout>.article-sidebar{display:none!important}
 .single-post .article-layout{display:block;grid-template-columns:minmax(0,1fr)}
 .sc-search-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 .sc-search-hero{padding:24px 18px}
 .sc-search-hero h1{font-size:26px}
 .sc-search-page{padding-top:20px;padding-bottom:32px}
 /* Bound expanding flex/grid items at their actual containers, retaining local rails. */
 .home-main,.detail-main,.editorial-archive,.sc-search-page,.article-layout,.archive-layout,.article-column,.sc-news-stream,.sc-stream-layout{min-width:0;max-width:100%}
 .national-lead,.national-columns{grid-template-columns:minmax(0,1fr)}
 .module-track,.market-strip,.sc-eq-grid,.slide-numbers{contain:inline-size}
 .reference-module .module-actions{flex-wrap:wrap;width:auto}
 .article-meta.sc-modern-meta>span,.article-tags a,.article-end,.comment-content,.comment-author{min-width:0;max-width:100%;overflow-wrap:anywhere}
 .article-tags{flex-wrap:wrap}
 .article-content .alignwide,.article-content .alignfull,.sc-institutional-content .alignwide,.sc-institutional-content .alignfull{width:auto;max-width:100%;margin-left:0;margin-right:0}
 .article-content .wp-block-columns,.sc-institutional-content .wp-block-columns{flex-wrap:wrap!important;min-width:0;max-width:100%}
 .article-content .wp-block-column,.sc-institutional-content .wp-block-column{flex-basis:100%!important;min-width:0;max-width:100%}
 .article-content .wp-block-embed__wrapper,.sc-institutional-content .wp-block-embed__wrapper{max-width:100%;min-width:0;overflow-x:auto}
 .article-content figure,.sc-institutional-content figure{width:auto;max-width:100%}
 .article-content audio,.sc-institutional-content audio,.sc-institutional-content iframe,.sc-institutional-content video{max-width:100%}
 .reference-footer .footer-network nav:not([hidden])>ul:not(.sc-logo-grid){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .reference-footer .footer-network a{min-width:0;max-width:100%;overflow-wrap:anywhere;font-size:13px;letter-spacing:0}
 .reference-footer .footer-network nav,.reference-footer .footer-network-heading{min-width:0}
 .content-search input,.comments-area input:not([type=checkbox]):not([type=submit]),.comments-area textarea,.sc-weather-city-select{font-size:16px}
 .sc-weather-city-select{max-width:150px}
}
@media(max-width:520px){
 .sc-search-grid{grid-template-columns:minmax(0,1fr)}
 .sc-search-hero{padding:22px 14px}
 .sc-search-hero .content-search{gap:6px}
 .sc-search-hero .content-search button{padding:12px}
 .sc-search-hero .content-search button span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .sc-search-summary h2{font-size:18px}
}
@media(prefers-reduced-motion:reduce){.sc-network-toggle svg{transition:none}}
/* A common article information block for the first story and every continuation. */
.article-meta.sc-modern-meta{column-gap:18px;row-gap:9px}
.article-meta.sc-modern-meta>span{min-width:0;flex-wrap:wrap;gap:5px;margin-left:0}
.article-meta.sc-modern-meta time{font-variant-numeric:tabular-nums;white-space:nowrap}
.article-meta.sc-modern-meta .sc-editor-name{min-width:0;overflow-wrap:anywhere}
@media(max-width:800px){
 .article-meta.sc-modern-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:13px 0;font-size:11px;line-height:1.5}
 .article-meta.sc-modern-meta>span{display:flex;align-items:center;gap:5px;margin:0;flex-basis:auto}
 .article-meta.sc-modern-meta>.sc-meta-editor{grid-column:1 / -1;margin:0}
 .article-meta.sc-modern-meta>.sc-meta-published,.article-meta.sc-modern-meta>.sc-meta-updated{display:grid;grid-template-columns:15px minmax(0,1fr);gap:3px 5px}
 .article-meta.sc-modern-meta>.sc-meta-published time,.article-meta.sc-modern-meta>.sc-meta-updated time{grid-column:2;font-size:11px}
 .article-meta.sc-modern-meta svg{width:15px;height:15px}
 .article-tools.sc-modern-tools{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;padding:12px 0;margin:0;justify-content:normal}
 .article-tools.sc-modern-tools .share-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;min-width:0;width:100%}
 .article-tools.sc-modern-tools .sc-share-label{display:none}
 .article-tools.sc-modern-tools .share-links>a,.article-tools.sc-modern-tools .share-links>button{width:100%;min-width:0;height:40px;padding:8px;border-radius:9px;box-shadow:none}
 .article-tools.sc-modern-tools .sc-copy-button [data-copy-label]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .article-tools.sc-modern-tools .share-links svg{width:20px;height:20px}
 .article-tools.sc-modern-tools .reading-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;width:100%;margin:0;padding:3px;border:1px solid #e9edf1;border-radius:9px;background:#f5f7f9}
 .article-tools.sc-modern-tools .reading-tools button{width:100%;min-width:0;height:34px;margin:0;padding:6px;border-radius:6px}
 .article-tools.sc-modern-tools .reading-tools button+button{border-left:1px solid #e2e8ee}
 .article-tools.sc-modern-tools .reading-tools svg{width:19px;height:19px}
}
@media(min-width:600px) and (max-width:800px){
 .article-meta.sc-modern-meta{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media print{
 .sc-printing .article-layout:not(.sc-print-row),.sc-printing .sc-news-stream:not(.sc-print-stream){display:none!important}
 .sc-printing .sc-news-stream.sc-print-stream{display:block!important;margin:0}
 .sc-printing .sc-stream-divider,.sc-printing .sc-stream-open,.sc-printing .sc-stream-sentinel{display:none!important}
 .sc-printing .sc-print-row{display:block!important;margin:0}
 .sc-printing .sc-print-row .article-sheet{max-width:none;width:100%;margin:0}
}

/* Avoid stacking final category margin, main padding and feed padding. */
.home-main.sc-home-with-feeds{padding-bottom:0}
.home-main.sc-home-with-feeds>:last-child{margin-bottom:0}
.home-main.sc-home-with-feeds+.sc-footer-news{padding-top:18px}
@media(max-width:800px){.home-main.sc-home-with-feeds+.sc-footer-news{padding-top:14px}}

/* Explicit mobile heading budget: preserve whole category words beside actions. */
@media(max-width:800px){
 html{overscroll-behavior-x:none}
 .site-shell{overflow-x:clip;overflow-y:visible}
 .reference-module .module-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;max-width:100%}
 .reference-module .module-heading h2{display:flex;min-width:0;max-width:100%;gap:6px;padding:7px 0 7px 7px;font:700 17px/1.3 Arial,Helvetica,sans-serif;letter-spacing:-.3px;white-space:nowrap;overflow:hidden;overflow-wrap:normal}
 .reference-module .module-heading h2 svg{width:18px;height:18px;flex:0 0 18px}
 .reference-module .module-heading h2 a,.reference-module .module-heading h2>span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal}
 .reference-module .module-actions{display:flex;flex-wrap:nowrap;width:auto;margin:0;gap:6px;min-width:0;max-width:100%}
 .reference-module .all-news{font-size:8.5px;letter-spacing:0;padding:8px 7px;gap:0;white-space:nowrap}
 .reference-module .all-news svg{display:none}
 .reference-module .module-buttons{gap:4px}
 .reference-module .module-buttons button{width:28px;height:32px;min-width:28px;padding:0;font-size:24px;line-height:30px}
 .reference-module,.reference-module .module-track{width:100%;max-width:100%;min-width:0}
 .reference-module .module-track{overflow-x:auto;overscroll-behavior-x:contain;touch-action:auto}
}

/* Preserve the rail shadow gutter but remove the stacked section gap above earthquakes. */
.home-main>.reference-module:has(+.sc-earthquakes){margin-bottom:0}
.home-main>.reference-module+.sc-earthquakes{margin-top:12px}
@media(max-width:800px){.home-main>.reference-module+.sc-earthquakes{margin-top:10px}}

/* One spacing policy for every sortable homepage module. Category rails retain
   their 14px shadow gutter, which is deducted from the following module gap. */
.home-main>:is(.reference-module,.sc-earthquakes,.sc-standings,.sc-home-rates){margin-top:0;margin-bottom:0}
.home-main>:is(.reference-module,.sc-earthquakes,.sc-standings,.sc-home-rates)+:is(.reference-module,.sc-earthquakes,.sc-standings,.sc-home-rates){margin-top:28px}
.home-main>.reference-module+:is(.reference-module,.sc-earthquakes,.sc-standings,.sc-home-rates){margin-top:14px}
@media(max-width:800px){
 .home-main>:is(.reference-module,.sc-earthquakes,.sc-standings,.sc-home-rates)+:is(.reference-module,.sc-earthquakes,.sc-standings,.sc-home-rates){margin-top:24px}
 .home-main>.reference-module+:is(.reference-module,.sc-earthquakes,.sc-standings,.sc-home-rates){margin-top:10px}
}
