/* Production readiness: readable actions and content that fits its container. */
.btn:not(.ghost) { background:var(--accent); color:var(--bg); }
.btn:not(.ghost):hover { color:var(--bg); }
.btn.ghost:hover { color:var(--text); }
#view:empty { min-height:calc(100vh - 118px); }
#th-cookie-controls, #th-cookie-controls :is(h2,h3,button) { font-family:system-ui,-apple-system,'Segoe UI',sans-serif; }

@media (max-width:920px) {
  .app .side { min-height:157px; }
  .app .side:not(.iv-mobile-compact) { padding-top:12px; }
  .app .side:not(.iv-mobile-compact) .logo { padding-bottom:8px; }
  .app .side-nav:empty { min-height:138px; }
  .app .side-nav:not(:has(.iv-research-toggle[aria-expanded="true"])) > .iv-research-heading { display:none; }
  .app .side.iv-mobile-compact .side-nav > .iv-newsletter-link {
    display:flex!important; grid-column:1/-1; grid-row:3;
    min-height:40px; padding:7px 9px; margin:0; font-size:12px;
    justify-content:flex-start; white-space:normal;
  }
}

@media (max-width:920px), (pointer:coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=button]):not([type=submit]):not([type=reset]):not([type=hidden]),
  select, textarea { font-size:16px!important; }
}

@media (max-width:760px) {
  .app .maincol { min-width:0; overflow-x:visible; }
  #view .section-title:not(:has(.stock-identity)) {
    display:flex!important; flex-wrap:wrap!important; align-items:center;
    white-space:normal; overflow-wrap:anywhere; min-width:0; max-width:100%;
    gap:7px 10px;
  }
  #view .section-title:not(:has(.stock-identity)) > :is(span,a,button) {
    min-width:0; max-width:100%; white-space:normal;
  }
  #view .section-title:not(:has(.stock-identity)) > .shbtn {
    flex:0 0 auto; margin-left:0!important;
  }
  #view .section-title > .chip { font-size:11px!important; line-height:1.5; }
  #view .section-title:not(:has(.stock-identity)) > .st-link {
    flex-basis:100%; margin-top:0!important;
  }
  #view .section-title.pillar-title-si > span { flex-wrap:wrap!important; }
  #view :is(h1,h2,h3) { min-width:0; overflow-wrap:anywhere; }
  #view .card h3 { flex-wrap:wrap; }
  #view .card h3 > * { min-width:0; max-width:100%; }
  #view .chip { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
  #an-body .iv-disclosure > summary, #sec-senate { white-space:normal; }
  .stock-watch-action { min-width:0; }
  .stock-watch-action label { flex-wrap:wrap; }
  .stock-watch-action select { max-width:100%; }
}

/* Native WebKit select labels need the full phone column, including long scope options. */
@media (max-width:600px) {
  #mbc-filters { display:grid; grid-template-columns:minmax(0,1fr); }
  #mbc-filters > * { min-width:0; width:100%; max-width:100%; }
}
