/* TopStoryDesk layout refinements - keep the news itself above archive controls */
.news-pager:empty{display:none!important}
.news-pager:not(:empty){margin-top:10px;margin-bottom:10px}
.date-search-controls{margin:18px 0 26px!important}
@media(max-width:700px){
  main{padding-left:16px!important;padding-right:16px!important}
  .basic-mode .hero{padding:18px 0 14px!important}
  .basic-mode .hero>.eyebrow{margin-bottom:8px!important}
  .basic-mode .hero h1{font-size:clamp(2.45rem,9.8vw,3.35rem)!important;line-height:.98!important}
  .basic-mode .hero-copy{margin:11px 0 0!important;font-size:1.05rem!important;line-height:1.35!important}
  .editorial-intro{font-size:.94rem!important;line-height:1.42!important;margin:10px 0 0!important;max-width:650px}
  .basic-mode .news-section{padding-top:10px!important}
  .basic-mode .section-heading{margin-bottom:8px!important}
  .basic-mode .section-heading h2{font-size:clamp(1.8rem,7vw,2.25rem)!important;line-height:1.02!important}
  .date-search-controls{margin:18px 0 24px!important;padding:12px!important;gap:8px!important}
  .date-search-controls label{font-size:.74rem!important}
  .date-search-controls input,.date-search-controls select{height:40px!important;font-size:.84rem!important}
  .date-search-controls button{height:40px!important;min-height:40px!important;font-size:.86rem!important}
  .news-grid{gap:12px!important}
  .news-card,.news-card:nth-child(n){min-height:0!important;padding:16px!important}
  .news-card h3{margin:12px 0 8px!important;font-size:1.35rem!important;line-height:1.12!important}
  .news-card p{font-size:.92rem!important;line-height:1.5!important}
  .news-card img,.news-card:nth-child(n) img{width:100%!important;height:auto!important;aspect-ratio:16/9;object-fit:cover;margin:0 0 12px!important;border-radius:10px}
}
@media(max-width:380px){
  .basic-mode .hero h1{font-size:clamp(2.25rem,9.4vw,2.8rem)!important}
  .date-search-controls{padding:10px!important}
}

/* Larger, legible mobile masthead */
.site-header>.brand{background:rgba(255,255,255,.82);border:1px solid rgba(216,209,196,.72);border-radius:14px;padding:5px 7px;box-shadow:0 3px 12px rgba(30,24,18,.045)}
.site-header .brand-logo{height:auto!important}
@media(max-width:760px){
 .site-header{min-height:58px!important;gap:4px!important;padding:6px 7px!important}
 .site-header>.brand{flex:0 0 132px!important;width:132px!important;min-width:132px!important;height:46px!important;padding:4px 5px!important}
 .site-header .brand-logo{width:132px!important;height:auto!important;max-width:100%;flex:0 0 132px!important}
 .site-header>.header-tools{gap:3px!important}
 .header-tools .mode-switch{padding:2px!important}
 .header-tools .mode-pill{padding:5px 5px!important;font-size:.68rem!important}
 .header-tools .pill,.header-tools .account-button{min-height:36px!important;padding:5px 6px!important;font-size:.72rem!important}
}
@media(max-width:380px){
 .site-header{gap:3px!important;padding-left:5px!important;padding-right:5px!important}
 .site-header>.brand{flex-basis:120px!important;width:120px!important;min-width:120px!important;height:44px!important}
 .site-header .brand-logo{width:120px!important;flex-basis:120px!important}
 .header-tools{gap:2px!important}
 .header-tools .mode-pill{padding:4px 4px!important;font-size:.62rem!important}
 .header-tools .pill,.header-tools .account-button{padding:4px 5px!important;font-size:.67rem!important}
}


/* Final cross-mode responsive polish: shared masthead and balanced Premium layout */
@media(min-width:761px){
  .site-header>.brand{flex:0 0 224px!important;width:224px!important;min-width:224px!important;height:58px!important;padding:5px 10px!important}
  .site-header .brand-logo{width:224px!important;height:auto!important;max-width:100%;flex:0 0 224px!important}
  .site-header>.header-tools{gap:8px!important}
}
@media(max-width:760px){
  .site-header>.brand{flex:0 0 132px!important;width:132px!important;min-width:132px!important;height:46px!important;padding:4px 5px!important}
  .site-header .brand-logo{width:132px!important;height:auto!important;max-width:100%;flex:0 0 132px!important}
  .premium-mode .premium-hero{gap:12px!important;padding:18px 0 14px!important}
  .premium-mode .premium-hero h2{font-size:clamp(2.1rem,8vw,3.1rem)!important;line-height:1.02!important;margin:6px 0 9px!important}
  .premium-mode .premium-hero .muted{font-size:.94rem!important;line-height:1.42!important;margin:0!important}
  .premium-mode .premium-hero .secondary{min-height:40px!important;padding:8px 12px!important}
  .premium-mode .premium-toolbar{gap:7px!important;margin:12px 0!important}
  .premium-mode .premium-toolbar span{padding:7px 9px!important;font-size:.78rem!important}
  .premium-mode .premium-grid{gap:12px!important}
  .premium-mode .premium-card{min-height:0!important;padding:15px!important}
  .premium-mode .premium-card h3{font-size:1.3rem!important;line-height:1.12!important;margin:10px 0 7px!important}
  .premium-mode .premium-card p{font-size:.92rem!important;line-height:1.45!important}
  .premium-mode .date-search-controls{margin:14px 0 22px!important}
}
@media(max-width:380px){
  .site-header>.brand{flex-basis:120px!important;width:120px!important;min-width:120px!important;height:44px!important}
  .site-header .brand-logo{width:120px!important;flex-basis:120px!important}
}
@media(min-width:761px){
  .premium-mode .premium-hero{gap:22px!important;padding:28px 0 22px!important}
  .premium-mode .premium-hero h2{line-height:1.02!important}
  .premium-mode .premium-grid{gap:20px!important}
  .premium-mode .premium-card{min-height:0!important}
  .premium-mode .date-search-controls{margin:18px 0 26px!important}
}
