/* Maryborough-WX: remaining public pages, mobile-only. No desktop overrides.
   Page class is added by JS only to the listed pages in top.php. */
.mwx-unified-mobile-menu {display:none;}
@media screen and (max-width:920px) {
  html.mwx-unified-mobile-ready, html.mwx-unified-mobile-ready body {
    max-width:100%!important;overflow-x:hidden!important;-webkit-text-size-adjust:100%;
  }
  html.mwx-unified-mobile-ready body {
    margin:0!important;font:13px/1.45 system-ui,-apple-system,'Segoe UI',Arial,sans-serif!important;
  }
  html.mwx-unified-mobile-ready body #page {
    box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;
    margin:0 auto!important;padding:0!important;border:0!important;background:#141b20!important;
  }
  html.mwx-unified-mobile-ready body #page #header {
    width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
    overflow:hidden!important;box-sizing:border-box!important;background:#1f252a!important;
  }
  html.mwx-unified-mobile-ready body #header>a,
  html.mwx-unified-mobile-ready body #header .headerTemp,
  html.mwx-unified-mobile-ready body #header .subHeader,
  html.mwx-unified-mobile-ready body #header .subHeaderRight {display:none!important;}
  html.mwx-unified-mobile-ready body #page #header > .subHeaderForecast {
    position:static!important;display:flex!important;flex-wrap:wrap!important;gap:5px 10px!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    float:none!important;clear:both!important;align-items:center!important;justify-content:center!important;
    margin:0!important;padding:9px 10px 11px!important;height:auto!important;min-height:0!important;max-height:none!important;
    border:0!important;overflow:visible!important;box-sizing:border-box!important;
  }
  html.mwx-unified-mobile-ready body #header .subHeaderForecast .mwxThemeSwitcher,
  html.mwx-unified-mobile-ready body #header .subHeaderForecast > .mwxThemeSwitcherHeader {display:none!important;}
  html.mwx-unified-mobile-ready body #page #header .site-strip-title {
    position:static!important;order:-1!important;float:none!important;transform:none!important;
    flex:1 1 100%!important;display:block!important;box-sizing:border-box!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    height:auto!important;min-height:0!important;max-height:none!important;
    margin:0!important;padding:3px 4px 8px!important;border:0!important;box-shadow:none!important;
    font:700 15px/1.45 Georgia,serif!important;color:#e7c46b!important;
    text-align:center!important;white-space:normal!important;overflow:visible!important;
  }
  html.mwx-unified-mobile-ready body #header .site-strip-title a.mwx-home-header-link {
    display:block!important;color:inherit!important;text-decoration:none!important;
    line-height:inherit!important;white-space:normal!important;border:0!important;box-shadow:none!important;
  }
  html.mwx-unified-mobile-ready body #page #header .station-status {
    order:2!important;position:static!important;transform:none!important;float:none!important;
    flex:1 1 100%!important;max-width:100%!important;width:100%!important;
    height:auto!important;margin:0!important;line-height:1.4!important;text-align:center!important;font-size:11px!important;
  }
  html.mwx-unified-mobile-ready body #header .subHeaderForecast .bom-warning-ticker,
  html.mwx-unified-mobile-ready body #header .subHeaderForecast .bom-no-warnings,
  html.mwx-unified-mobile-ready body #header .subHeaderForecast .warning-title-row {
    order:4!important;position:static!important;flex:1 1 100%!important;width:100%!important;max-width:100%!important;
    height:auto!important;min-height:0!important;margin:0!important;line-height:1.35!important;
    text-align:center!important;white-space:normal!important;
  }
  html.mwx-unified-mobile-ready body .leftSideBar {display:none!important;}
  html.mwx-unified-mobile-ready body :is(#main-copy,#main-copy-dark).mwx-page {
    box-sizing:border-box!important;float:none!important;clear:both!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    margin:0!important;padding:9px 9px 24px!important;border:0!important;
    background:#141b20!important;color:#edf0f2!important;text-align:left!important;
    font:13px/1.5 system-ui,-apple-system,'Segoe UI',Arial,sans-serif!important;
    overflow-wrap:break-word;
  }
  html.mwx-unified-mobile-ready body :is(#main-copy,#main-copy-dark).mwx-page *,
  html.mwx-unified-mobile-ready body :is(#main-copy,#main-copy-dark).mwx-page *::before,
  html.mwx-unified-mobile-ready body :is(#main-copy,#main-copy-dark).mwx-page *::after {box-sizing:border-box;}
  html.mwx-unified-mobile-ready body :is(#main-copy,#main-copy-dark).mwx-page > h1 {
    display:block!important;max-width:100%!important;font:700 18px/1.3 system-ui,Arial,sans-serif!important;
    color:#e8c477!important;background:transparent!important;
    margin:9px 0 12px!important;padding:4px 7px!important;
    border:0!important;border-left:4px solid #6e8798!important;border-bottom:1px solid #48535c!important;
  }
  html.mwx-unified-mobile-ready body :is(#main-copy,#main-copy-dark).mwx-page :is(h2,h3) {
    max-width:100%!important;font-size:15px!important;line-height:1.4!important;
  }
  html.mwx-unified-mobile-ready body :is(#main-copy,#main-copy-dark).mwx-page a {overflow-wrap:anywhere;}
  html.mwx-unified-mobile-ready body :is(#main-copy,#main-copy-dark).mwx-page :is(img,svg,video,iframe) {
    max-width:100%!important;
  }
  html.mwx-unified-mobile-ready body :is(#main-copy,#main-copy-dark).mwx-page iframe {
    display:block;width:100%!important;min-width:0!important;border:0!important;
  }
  html.mwx-unified-mobile-ready body :is(#main-copy,#main-copy-dark).mwx-page :is(input,select,button) {max-width:100%;}
  html.mwx-unified-mobile-ready body :is(#main-copy,#main-copy-dark).mwx-page button {touch-action:manipulation;}
  html.mwx-unified-mobile-ready body #footer {max-width:100%!important;}
  html.mwx-unified-mobile-ready body #page :is(#main-copy,#main-copy-dark) .mwx-unified-mobile-menu {
    display:block!important;margin:0 0 11px!important;padding:0!important;
    background:#242b30!important;border:1px solid #50565c!important;border-radius:7px!important;
    color:#e9eef1!important;
  }
  html.mwx-unified-mobile-ready body #page .mwx-unified-mobile-menu > summary {
    min-height:43px;padding:10px 12px;display:flex;align-items:center;gap:8px;
    font:750 13px/1.35 system-ui,Arial,sans-serif;color:#f0d083;cursor:pointer;list-style:none;
  }
  html.mwx-unified-mobile-ready body #page .mwx-unified-mobile-menu > summary::-webkit-details-marker {display:none;}
  html.mwx-unified-mobile-ready body #page .mwx-unified-mobile-menu > summary::before {content:'\2630';font-size:16px;}
  html.mwx-unified-mobile-ready body #page .mwx-unified-mobile-menu > summary::after {content:'+';font-size:17px;margin-left:auto;}
  html.mwx-unified-mobile-ready body #page .mwx-unified-mobile-menu[open] > summary::after {content:'\2212';}
  html.mwx-unified-mobile-ready body #page .mwx-unified-mobile-links {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:9px;border-top:1px solid #50565c;
  }
  html.mwx-unified-mobile-ready body #page .mwx-unified-mobile-links :is(a,span) {
    display:block;min-width:0;padding:9px 8px;border-radius:5px;
    background:#343c42;color:#efd18a!important;text-decoration:none!important;
    border:1px solid #545d63;font-size:12px;line-height:1.25;overflow-wrap:anywhere;
  }
  html.mwx-unified-mobile-ready body #page .mwx-unified-mobile-links [aria-current=page] {
    background:#44535c;color:#f3f6f7!important;font-weight:700;
  }
  html.mwx-unified-mobile-ready body #page .mwx-unified-mobile-theme {
    border-top:1px solid #50565c;padding:8px 10px;display:flex;justify-content:space-between;
    gap:8px;align-items:center;flex-wrap:wrap;
  }
  html.mwx-unified-mobile-ready body #page .mwx-unified-mobile-theme-label {font-size:11px;color:#ccd4d9;}
  html.mwx-unified-mobile-ready body #page .mwx-unified-mobile-theme-buttons {display:flex;gap:5px;}
  html.mwx-unified-mobile-ready body #page .mwx-unified-mobile-theme button {
    border:1px solid #5b666e;border-radius:5px;background:#30383c;color:#edf2f4;
    min-height:32px;padding:5px 10px;font:600 11px system-ui,Arial,sans-serif;
  }
  html.mwx-unified-mobile-ready body #page .mwx-unified-mobile-theme button[aria-pressed=true] {
    border-color:#aa905c;background:#5d5541;color:#f6dc9b;
  }
  html.mwx-unified-mobile-ready body #page .mwx-mobile-table-scroll {
    max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;
    border:1px solid #4b565e;border-radius:6px;margin:8px 0 13px;
  }
  html.mwx-unified-mobile-ready body #page .mwx-mobile-table-scroll table {
    min-width:580px;max-width:none!important;width:100%!important;margin:0!important;
  }
  html.mwx-unified-mobile-ready body #page .mwx-mobile-table-tip {
    color:#c0cbd2;font-size:11px;margin:4px 0 8px;
  }
  /* Astronomy retains its sun/moon data table; it scrolls instead of shrinking text. */
  html.mwx-unified-mobile-ready body #page #main-copy-dark table {max-width:none!important;}
  html.mwx-unified-mobile-ready body #page #main-copy-dark :is(td,th) {vertical-align:middle;}
  /* Graphs: keep existing Chart.js controller and interactive selectors. */
  html.mwx-unified-mobile-ready body #page #main-copy #chartcontainer {
    box-sizing:border-box!important;max-width:100%!important;width:100%!important;
    height:540px!important;min-height:480px;margin:0!important;padding:6px 3px!important;
  }
  html.mwx-unified-mobile-ready body #page #main-copy :is(#mainChartContainer,#navChartContainer) {
    width:100%!important;max-width:100%!important;min-width:0!important;
  }
  html.mwx-unified-mobile-ready body #page #main-copy .chart-buttons {
    display:flex;flex-wrap:wrap;justify-content:center;gap:6px;height:auto!important;min-height:30px;
  }
  html.mwx-unified-mobile-ready body #page #main-copy :is(.btn-group,#rangeButtons) {
    max-width:100%!important;display:flex;flex-wrap:wrap;gap:5px;justify-content:center;
  }
  /* Keep quake cards legible and buttons tappable, without altering feeds/sorting. */
  html.mwx-unified-mobile-ready body #page #main-copy .quake-controls {
    display:flex;gap:6px;flex-wrap:wrap;justify-content:center;
  }
  html.mwx-unified-mobile-ready body #page #main-copy .quake-controls .quake-button {
    min-height:37px;flex:1 1 42%;font-size:12px;padding:6px;
  }
  html.mwx-unified-mobile-ready body #page #main-copy .quake-shell {
    width:100%!important;max-width:100%!important;min-width:0!important;
  }
  html.mwx-unified-mobile-ready body #page #main-copy .quake-row {min-width:0!important;}
  html.mwx-unified-mobile-ready body #page #main-copy :is(.about-grid,.links-grid) {
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:9px!important;
  }
  html.mwx-unified-mobile-ready body #page #main-copy :is(.about-section,.about-card,.links-card) {
    max-width:100%!important;min-width:0!important;
  }
  html.mwx-unified-mobile-ready body #page #main-copy .mwx-embed {max-width:100%;width:100%;}
}
@media screen and (max-width:350px) {
  html.mwx-unified-mobile-ready body #page .mwx-unified-mobile-links {grid-template-columns:minmax(0,1fr);}
}
