/* v81: scoped structural repairs, loaded after legacy styles */
.category-page .category-hero{padding:34px 0;background:#f5f1e9;min-height:0}
.category-page .category-hero:before{display:none}
.category-page .category-hero-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:center;gap:40px}
.category-page .category-hero-grid>div{max-width:none;min-width:0}
.category-page .category-hero .editorial-category-photo{position:static;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;opacity:1;mask:none;filter:none;border-radius:5px;max-height:360px}
.category-page .category-hero h1{font-size:clamp(30px,3.1vw,46px);line-height:1.12}
.category-page .category-intro{max-width:none;font-size:15px;line-height:1.6}
.category-page .category-rail{display:flex;flex-wrap:wrap;overflow:visible;gap:7px;padding:22px 0;max-width:100%}
.category-page .category-rail a{flex:0 1 auto;padding:8px 11px;white-space:normal;font-size:12px;line-height:1.35}
.category-page .category-content-grid{grid-template-columns:minmax(0,1fr) 300px;gap:30px;align-items:start}
.category-page .category-sidebar{min-width:0;gap:20px}
.category-page .category-sidebar>*{width:100%;box-sizing:border-box;min-width:0}
.category-page .category-feature{padding:20px;display:flex;flex-direction:column;gap:12px}
.category-page .category-feature>.article-type,.category-page .category-feature h3,.category-page .category-feature .feature-link{padding:0;margin:0;min-height:0}
.category-page .category-feature .feature-link{margin-top:auto}
.category-page .category-article{grid-template-columns:minmax(0,1fr) 16px;align-items:center;min-width:0}
.category-page .category-article h3{line-height:1.4;overflow-wrap:break-word}
.category-page .category-article[hidden]{display:none}
.category-page .repaired-sidebar-guides{padding:20px;border:1px solid #ded8ce;background:#fffdf9;border-radius:5px}
.category-page .repaired-sidebar-guides h2{font:700 21px/1.2 Georgia,serif;color:#18364a;margin:0 0 12px}
.category-page .repaired-sidebar-guides a{display:block;padding:12px 0;border-top:1px solid #e5e0d8;font-size:14px;line-height:1.5;color:#314c62;overflow-wrap:break-word}
.category-page .category-toolbox a{font-size:14px;line-height:1.5}
.category-page .category-search input{box-sizing:border-box;min-width:0}
.category-page .bank-specific-category-guides{margin:15px 0 35px}
.category-page .bank-specific-shell{padding:26px}
.category-page .bank-specific-links a{font-size:14px;line-height:1.5}
.category-page .bank-profile-link{font-size:12px}
.banks-page .bank-feature-card,.banks-page .digital-feature-card{height:auto;min-height:230px}
.banks-page .digital-feature-copy{padding:18px;gap:6px}
.banks-page .digital-feature-copy .banks-premium-link{align-self:flex-start;margin:8px 0 0;position:static;flex-shrink:0}
.banks-page .digital-feature-card img{height:140px}
.banks-page .bank-feature-copy{padding:20px}
/* Empty ad placeholders always have their own contained layout. */
.mba-ad-slot{box-sizing:border-box;display:flex;justify-content:center;align-items:center;max-width:1180px;margin:24px auto;padding:18px;border:1px solid #ddd7cb;background:#f7f4ee;min-height:110px;text-align:center}
.mba-ad-slot .mba-ad-inner{position:static;max-width:100%;font:10px/1.4 Arial,sans-serif;color:#857b6a;letter-spacing:1px;text-transform:uppercase}
.tools-panel>a{display:flex;align-items:center;gap:12px;min-height:42px}
.tools-panel>a>b{margin-left:auto}
@media(max-width:900px){
 .category-page .category-content-grid{grid-template-columns:minmax(0,1fr) 260px;gap:20px}
 .category-page .category-hero-grid{gap:24px}
}
@media(max-width:760px){
 .category-page .category-hero-grid,.category-page .category-content-grid{grid-template-columns:1fr}
 .category-page .category-hero .editorial-category-photo{max-height:270px;object-fit:cover}
 .category-page .category-sidebar{display:grid;grid-template-columns:1fr}
 .category-page .category-chips{flex-wrap:wrap}
 .category-page .category-rail a{padding:8px 10px}
 .premium-nav{display:flex!important;flex-wrap:wrap;overflow:visible!important;justify-content:center;gap:16px}
 .mba-ad-slot{margin:18px;min-height:90px}
}
/* Keep original artwork while giving its content sufficient space. */
@media(min-width:901px){
 .home-v2:not(.concept-page):not(.category-page):not(.banks-page) .premium-hero{height:auto;min-height:470px}
 .home-v2:not(.concept-page):not(.category-page):not(.banks-page) .hero-content{padding-bottom:28px}
}
.mba-ad-slot .mba-ad-inner{width:100%;height:auto;min-height:0;border:0;background:transparent;display:block;padding:0}
.banks-page .tools-list a{display:flex;align-items:center;gap:10px;font-size:13px;line-height:1.4}
.banks-page .tools-list a svg{flex:0 0 18px;width:18px;height:18px}
.banks-page .tools-list a span:last-child{margin-left:auto}
.banks-page .trust-card .mini-kicker{color:#d1b071}
@media(max-width:900px){
 .banks-page .bank-hero-inner{width:100%;min-width:0}
 .banks-page .bank-hero-copy{width:calc(100% - 44px)!important;max-width:calc(100% - 44px)!important;margin:0 22px!important;padding:30px 0!important;box-sizing:border-box;min-width:0}
 .banks-page .bank-search{width:100%!important;max-width:100%;box-sizing:border-box}
 .banks-page .bank-search input{min-width:0;width:100%}
 .banks-page .bank-kicker{white-space:normal;line-height:1.6}
 .banks-page .bank-hero p{max-width:100%;width:auto}
 .banks-page .bank-pills{width:100%;flex-wrap:wrap}
 .banks-page .bank-hero h1{font-size:clamp(34px,7vw,52px)}
}
@media(max-width:600px){
 .concept-section-head{flex-wrap:wrap;gap:12px;align-items:flex-start}
 .concept-section-head>*{min-width:0;max-width:100%}
 .concept-link{white-space:normal}
}
@media(max-width:600px){
 .guides-page .footer-main{grid-template-columns:1fr;gap:24px;padding:28px 0;width:calc(100% - 40px)}
 .guides-page .footer-main>div{grid-column:auto;min-width:0}
 .banks-page .featured-bank-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .banks-page .featured-bank-card{min-width:0;padding:13px 10px}
 .banks-page .featured-bank-card .bank-logo img{max-width:100%}
 .banks-page .bank-search button{font-size:16px;line-height:1;white-space:nowrap;padding:0 9px}
}
@media(max-width:640px){
 .site-header .brand,.footer .brand{min-width:0;width:auto;max-width:100%}
 .site-header .brand-mark,.footer .brand-mark{flex:0 0 34px}
 .site-header .brand-text,.footer .brand-text{min-width:0;max-width:100%}
 .site-header .brand-main,.site-header .brand-gold,.footer .brand-main,.footer .brand-gold{font-size:25px}
 .site-header .nav-wrap{height:auto;min-height:72px;flex-wrap:wrap;gap:10px;padding:14px 0}
 .site-header .main-nav{display:flex;flex-wrap:wrap;gap:20px;margin:0;width:100%}
 .site-header .main-nav a{padding:4px 0}
 .footer .footer-grid{grid-template-columns:minmax(0,1fr)}
 .footer .footer-grid>div{min-width:0}
}
