/* Maryborough-WX Station History: isolated mobile presentation.
 * Desktop NOAA report layout, figures, sorting and the original theme remain intact.
 * Breakpoint mirrors the other secondary mobile pages (max-width 920px).
 */
#main-copy.mwx-noaa-page .mwx-noaa-mobile-site-menu,
#main-copy.mwx-noaa-page .mwx-noaa-mobile-archive-chooser,
#main-copy.mwx-noaa-page .mwx-noaa-mobile-swipe {display:none}

@media screen and (max-width:920px) {
  html.mwx-noaa-mobile-ready,
  html.mwx-noaa-mobile-ready body {max-width:100%!important;overflow-x:hidden!important;-webkit-text-size-adjust:100%}
  html.mwx-noaa-mobile-ready body {margin:0!important;font:12px/1.4 system-ui,-apple-system,"Segoe UI",Arial,sans-serif!important}
  html.mwx-noaa-mobile-ready body #page {
    width:100%!important;max-width:100%!important;min-width:0!important;
    margin:0 auto!important;padding:0!important;border:0!important;box-sizing:border-box!important
  }
  /* Compact common site header, matching the other mobile pages. */
  html.mwx-noaa-mobile-ready body #header {
    height:auto!important;min-height:0!important;max-width:100%!important;
    box-sizing:border-box!important;overflow:hidden!important;background:#1f252a!important
  }
  html.mwx-noaa-mobile-ready body #header>a,
  html.mwx-noaa-mobile-ready body #header .headerTemp,
  html.mwx-noaa-mobile-ready body #header .subHeader,
  html.mwx-noaa-mobile-ready body #header .subHeaderRight {display:none!important}
  html.mwx-noaa-mobile-ready body #header .subHeaderForecast {
    position:static!important;display:flex!important;flex-wrap:wrap!important;
    gap:5px 10px!important;justify-content:space-between!important;align-items:center!important;
    float:none!important;clear:both!important;width:100%!important;max-width:100%!important;
    box-sizing:border-box!important;min-height:0!important;height:auto!important;
    padding:8px 9px!important;margin:0!important;line-height:1.3!important
  }
  html.mwx-noaa-mobile-ready body #header .subHeaderForecast .mwxThemeSwitcher,
  html.mwx-noaa-mobile-ready body #header .station-status,
  html.mwx-noaa-mobile-ready body #header .site-strip-title {
    position:static!important;transform:none!important;float:none!important;margin:0!important;height:auto!important;line-height:1.3!important
  }
  html.mwx-noaa-mobile-ready body #header .site-strip-title {
    order:-1!important;flex:1 1 100%!important;text-align:center!important;
    font:bold 15px/1.35 Georgia,serif!important;letter-spacing:0!important;
    white-space:normal!important;max-width:100%!important;color:#e7c46b!important
  }
  html.mwx-noaa-mobile-ready body #header .station-status {font-size:11px!important;max-width:50%!important}
  html.mwx-noaa-mobile-ready body #header .subHeaderForecast .mwxThemeSwitcher {max-width:48%!important}
  html.mwx-noaa-mobile-ready body #header .subHeaderForecast .bom-warning-ticker,
  html.mwx-noaa-mobile-ready body #header .subHeaderForecast .bom-no-warnings,
  html.mwx-noaa-mobile-ready body #header .subHeaderForecast .warning-title-row {
    order:5!important;flex:1 1 100%!important;min-width:0!important;max-width:100%!important;
    box-sizing:border-box!important;width:100%!important;margin:0!important;height:auto!important;
    text-align:center!important;font-size:11px!important;white-space:normal!important;line-height:1.4!important
  }
  html.mwx-noaa-mobile-ready body .leftSideBar {display:none!important}
  html.mwx-noaa-mobile-ready body #main-copy.mwx-noaa-page {
    width:100%!important;max-width:100%!important;min-width:0!important;float:none!important;
    box-sizing:border-box!important;margin:0!important;padding:8px 8px 16px!important;border:0!important;
    font:12px/1.4 system-ui,-apple-system,"Segoe UI",Arial,sans-serif!important;
    text-align:left!important
  }
  html.mwx-noaa-mobile-ready body #main-copy.mwx-noaa-page * {box-sizing:border-box}
  html.mwx-noaa-mobile-ready body #main-copy.mwx-noaa-page .mwx-noaa-page-title {
    font:700 17px/1.3 system-ui,-apple-system,"Segoe UI",Arial,sans-serif!important;
    padding:5px 7px!important;margin:4px 0 8px!important;letter-spacing:0
  }
  /* Mobile menu cloned from existing sidebar: all real page links preserved. */
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-mobile-site-menu {
    display:block!important;margin:0 0 9px!important;padding:0!important;
    border:1px solid #50565c;border-radius:7px;background:#242b30;color:#e9eef1
  }
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-mobile-site-menu>summary {
    cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px;
    padding:9px 12px;min-height:40px;font:750 12px/1.3 system-ui,Arial,sans-serif;color:#f0d083
  }
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-mobile-site-menu>summary::-webkit-details-marker {display:none}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-mobile-site-menu>summary:before {content:'\2630';font-size:17px}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-mobile-site-menu>summary:after {content:'+';font-size:17px;margin-left:auto}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-mobile-site-menu[open]>summary:after {content:'\2212'}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-mobile-menu-links {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;
    padding:8px;border-top:1px solid #50565c
  }
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-mobile-menu-links a,
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-mobile-menu-current {
    display:block;min-width:0;padding:9px 8px!important;border:1px solid #545d63;border-radius:5px;
    background:#343c42!important;color:#edd38e!important;text-decoration:none!important;
    font:600 12px/1.25 system-ui,Arial,sans-serif;overflow-wrap:anywhere
  }
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-mobile-menu-current {background:#425057!important;color:#f3f6f7!important;font-weight:750}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-mobile-theme {
    padding:8px 10px;border-top:1px solid #50565c;display:flex;justify-content:space-between;align-items:center;gap:7px;
    font:650 11px system-ui,Arial,sans-serif
  }
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-mobile-theme-buttons {display:flex;gap:4px}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-mobile-theme button {
    min-height:32px;padding:5px 10px;border:1px solid #5b666e;border-radius:5px;
    background:#30383c;color:#e9eef1;font:600 11px system-ui,Arial,sans-serif
  }
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-mobile-theme button[aria-pressed="true"] {background:#5d5541;color:#f6dc9b;border-color:#aa905c}

  /* Keep active month + previous/next links visible, fold the full archive grid. */
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-archive-compact {padding:8px!important;margin:0 0 9px!important}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-archive-first {margin:0!important;display:flex!important;align-items:center!important;gap:6px!important}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-active-period {font-size:15px!important;flex:1 1 100%;white-space:normal!important}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-archive-first>.mwx-noaa-years,
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-archive-first>.mwx-noaa-annual-link,
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-archive-compact>.mwx-noaa-monthgrid {display:none!important}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-nav {width:100%!important;margin:0!important;display:flex!important;flex-wrap:wrap!important;gap:5px!important}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-nav>a {flex:1 0 auto;min-height:35px!important;font-size:11px!important;padding:6px 7px!important}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-mobile-archive-chooser {
    display:block!important;margin-top:7px;border-top:1px solid var(--noaa-border);color:var(--noaa-text)
  }
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-mobile-archive-chooser>summary {
    cursor:pointer;list-style:none;min-height:36px;padding:9px 4px 6px;
    display:flex;gap:7px;align-items:center;font:700 12px system-ui,Arial,sans-serif;color:var(--noaa-accent)
  }
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-mobile-archive-chooser>summary::-webkit-details-marker {display:none}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-mobile-archive-chooser>summary:after {content:'+';margin-left:auto;font-size:16px}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-mobile-archive-chooser[open]>summary:after {content:'\2212'}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-mobile-archive-links {
    padding:8px 0 2px;border-top:1px solid var(--noaa-border);display:grid;gap:6px
  }
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-mobile-archive-links>strong {color:var(--noaa-text);font-size:11px}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-mobile-archive-links .mwx-noaa-years {display:flex!important;width:auto!important;flex-wrap:wrap!important;margin:0!important}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-mobile-archive-links .mwx-noaa-monthgrid {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-mobile-archive-links .mwx-noaa-chip,
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-mobile-archive-links .mwx-noaa-month {min-height:36px!important;font-size:12px!important;padding:6px!important}

  /* Actual report table scrolls independently; freeze the day/month label. */
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-observations-panel {padding:8px!important}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-table-toolbar {display:flex!important;gap:6px!important;align-items:center!important;margin-bottom:5px!important}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-table-toolbar .mwx-noaa-section-title {font-size:14px!important;margin:0!important}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-table-toolbar .mwx-noaa-day-controls {display:flex;gap:5px;align-items:center}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-table-toolbar .mwx-noaa-day-controls select {min-height:35px!important;max-width:120px}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-mobile-swipe {display:block!important;margin:2px 0 7px!important;font-size:10px;color:var(--noaa-muted)}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-scroll {
    display:block;overflow-x:auto!important;overflow-y:hidden!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    -webkit-overflow-scrolling:touch;overscroll-behavior-x:contain
  }
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page table.mwx-noaa-table {min-width:725px!important;width:725px!important;max-width:none!important;font-size:11px!important}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page table.mwx-noaa-table td {padding:8px 6px!important}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page table.mwx-noaa-table th {padding:9px 6px!important;top:0}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page table.mwx-noaa-table th:first-child {position:sticky!important;left:0;z-index:5!important;min-width:67px;background:#2f5064!important}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page table.mwx-noaa-table td:first-child {position:sticky!important;left:0;z-index:2;min-width:67px;background:var(--noaa-surface)!important}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page table.mwx-noaa-table tbody tr:nth-child(even) td:first-child {background:var(--noaa-alt)!important}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page table.mwx-noaa-table tbody tr.mwx-noaa-selected td:first-child,
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page table.mwx-noaa-table tbody tr:hover td:first-child {background:var(--noaa-active)!important}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-day-panel {padding:10px!important;margin-top:9px!important;scroll-margin-top:15px}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-day-heading {font-size:14px!important;margin-bottom:7px!important}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-day-controls {gap:6px!important}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-day-panel .mwx-noaa-day-controls button {flex:1 1 44%;min-height:35px!important;max-width:none!important}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-day-detailgrid {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-day-detailgrid>div {min-width:0;padding:8px!important;border-radius:3px}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-day-detailgrid strong {display:block;overflow-wrap:anywhere;font-size:12px!important}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-metrics {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-metric {padding:8px!important;min-height:56px!important}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-original pre {max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
}
@media screen and (max-width:360px) {
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-table-toolbar {flex-wrap:wrap!important}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-table-toolbar .mwx-noaa-day-controls {width:100%;justify-content:flex-start}
  html.mwx-noaa-mobile-ready #main-copy.mwx-noaa-page .mwx-noaa-mobile-archive-links .mwx-noaa-monthgrid {grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

/* Shared compact-header improvement: title is a one-tap homepage link.
   Give wrapped text its natural height; older desktop theme CSS fixed it to
   30px, clipping the Maryborough, Queensland line on narrow screens. */
html.mwx-noaa-mobile-ready body #header .site-strip-title a.mwx-home-header-link,
html.mwx-noaa-mobile-ready body #header .site-strip-title a.mwx-home-header-link:visited {
  color: inherit !important;
  text-decoration: none !important;
  cursor: pointer;
}
html.mwx-noaa-mobile-ready body #header .site-strip-title a.mwx-home-header-link:focus-visible {
  outline: 2px solid #f1d78a;
  outline-offset: 2px;
  border-radius: 3px;
}
@media screen and (max-width: 920px) {
  html.mwx-noaa-mobile-ready body #header,
  html.mwx-noaa-mobile-ready body #header .subHeaderForecast {
    overflow: visible !important;
  }
  html.mwx-noaa-mobile-ready body #header .site-strip-title {
    position: static !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    padding: 4px 7px 7px !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    text-align: center !important;
    overflow-wrap: break-word !important;
  }
  html.mwx-noaa-mobile-ready body #header .site-strip-title a.mwx-home-header-link {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 40px !important;
    line-height: inherit !important;
    white-space: normal !important;
    padding: 2px 0 !important;
    box-sizing: border-box !important;
  }
}
