/* BU1ST Technologies Sydney · V10.1 narrow-screen emergency fix.
   Android Messenger webview: single information hierarchy, no clipped Parliament. */
.v101-coalition-cta {display:none}
@media(max-width:900px) {
  /* Only bottom nav on phones; hide duplicate horizontal switcher. */
  .overview-panel-switcher {display:none!important}
  .page.page-active[data-page="overview"] {display:block!important; min-width:0!important; overflow-x:hidden!important;}
  .page[data-page="overview"] .overview-top,
  .page[data-page="overview"] .overview-bottom {display:contents!important}
  /* Keep overview intentionally to a SINGLE reliable polling panel.
     All other information remains accessible via bottom navigation / More sheet. */
  .page[data-page="overview"] .overview-top > .panel,
  .page[data-page="overview"] .overview-bottom > .panel {display:none!important}
  .page[data-page="overview"] .overview-top > .poll-overview {display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important;height:auto!important;}
  .page[data-page="overview"] .editorial-intro {min-height:0!important;padding:12px!important;margin-bottom:10px!important;gap:7px;}
  .page[data-page="overview"] .editorial-intro h2 {font-size:clamp(17px,4.4vw,20px)!important;line-height:1.17!important;}
  .page[data-page="overview"] .editorial-figures {max-width:76px!important;}
  .page[data-page="overview"] .editorial-figure:first-child{min-width:69px!important;padding:7px 5px!important;}
  .page[data-page="overview"] .editorial-figure strong{font-size:18px!important;}
  .hero {height:78px!important;min-height:78px!important;}
  .hero-inner {padding:6px 16px!important;}
  .hero-kicker {display:none!important}
  .hero h1 {font-size:clamp(18px,5.2vw,25px)!important;margin:0 0 4px!important;letter-spacing:-1px!important;}
  .hero p {font-size:10px!important;max-width:290px!important;line-height:1.3!important;}
  .state-strip {min-height:30px!important;padding:4px 3px 6px!important;}
  .data-pill {padding:5px 7px!important;}
  .page[data-page="overview"] .poll-overview .panel-head {margin-bottom:9px!important;}
  .page[data-page="overview"] .poll-overview .panel-head p {font-size:10px!important;}
  .page[data-page="overview"] .poll-overview-bars {gap:5px!important;}
  .page[data-page="overview"] .poll-bar-row {grid-template-columns:minmax(89px,108px) minmax(0,1fr) 49px!important;min-height:29px!important;gap:6px!important;}
  .page[data-page="overview"] .party-name-line {font-size:11px!important;min-width:0!important;overflow:hidden!important;}
  .page[data-page="overview"] .party-name-line > span:last-child {overflow:hidden!important;text-overflow:ellipsis!important;}
  .page[data-page="overview"] .poll-number {font-size:13px!important;}
  .page[data-page="overview"] .micro-disclaimer {margin-top:8px!important;}
  .v101-coalition-cta {display:flex!important;align-items:center;justify-content:space-between;width:100%;min-height:47px;margin:10px 0 18px;padding:11px 16px;border-radius:15px;color:#075f88;border:1px solid rgba(255,255,255,.94);background:linear-gradient(135deg,#f7fdff,#daf3fc);box-shadow:0 8px 20px rgba(29,113,148,.08);font:800 13px 'DM Sans',system-ui,sans-serif;}
  .v101-coalition-cta span{font-size:19px;}
  /* No oversized drawings or overflowing legends in coalition calculator. */
  .page[data-page="coalitions"],
  .page[data-page="coalitions"] .coalition-detail-grid,
  .page[data-page="coalitions"] .panel,
  .page[data-page="coalitions"] .large-seat-arc {max-width:100%!important;min-width:0!important;overflow-x:hidden!important;}
  .page[data-page="coalitions"] .large-seat-arc svg {display:block!important;max-width:100%!important;width:100%!important;height:auto!important;max-height:210px!important;overflow:hidden!important;margin:0 auto!important;}
  .page[data-page="coalitions"] .big-legend {display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:6px 10px!important;max-width:100%!important;}
  .page[data-page="coalitions"] .majority-tape {min-width:0!important;}
  .page[data-page="coalitions"] .page-heading {max-width:100%!important;min-width:0!important;}
}
@media(max-width:380px){
  .page[data-page="overview"] .poll-bar-row {grid-template-columns:minmax(83px,96px) minmax(0,1fr) 45px!important;}
  .page[data-page="overview"] .party-name-line{font-size:10px!important;}
  .hero{height:70px!important;min-height:70px!important;}
}
