/* metr12 speed (Grok Bot 2026-11-29). Linked for everyone from main.tpl. */

/* Portrait nav before navigation.js (main.js breakpoint is 992).
   Keep height at 60px: the mobile logo is 60px, and that is the live height after JS.
   A previous 48px attempt fought the logo and left the landscape menu in flow. */
@media (max-width: 992px) {
  .navigation.ts-main-menu,
  .navigation.navigation-portrait,
  .navigation.navigation-landscape {
    height: 60px !important;
    overflow: hidden;
  }
  .navigation .nav-toggle { display: block; }
  .navigation .nav-brand,
  .navigation .mobile-logo,
  .navigation .l3c.m {
    height: 60px !important;
    line-height: 60px !important;
  }
  .navigation .nav-menus-wrapper {
    width: 320px;
    height: 100%;
    top: 0;
    left: -400px;
    position: fixed !important;
    background-color: #fff;
    z-index: 20000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-transition-duration: .8s;
    transition-duration: .8s;
    transition-timing-function: ease;
  }
  .navigation .nav-menus-wrapper.nav-menus-wrapper-open { left: 0; }
  .navigation .nav-menus-wrapper.nav-menus-wrapper-right { left: auto; right: -400px; }
  .navigation .nav-menus-wrapper.nav-menus-wrapper-right.nav-menus-wrapper-open { left: auto; right: 0; }
  .navigation .nav-search { height: 60px; padding: 0 10px; margin-right: 52px; }

  /* Owl carousel grows the ticker from ~38px to 90px after main.js. */
  .ts-breaking-news { min-height: 90px; box-sizing: border-box; }
}

/* Now-playing strip starts as [hidden] (display:none) and is filled by nowplaying.js.
   That late 95px appearance is the 0.079 CLS. Reserve the wrapper, not the hidden child. */
@media (max-width: 767px) {
  .container:has(>#np-strip) { min-height: 96px; }
}
