/* Maryborough-WX shared styles for secondary/menu pages.
   Loaded after the active Saratoga theme so these rules only override pages
   that opt in with class="mwx-page". */

#main-copy.mwx-page,
#main-copy-dark.mwx-page {
  color: #202020;
  text-align: left;
  line-height: 1.5;
  padding: 12px 16px 18px 16px;
  box-sizing: border-box;
}

.mwx-page h1 {
  margin: 2px 0 9px 0 !important;
  padding: 2px 0 7px 10px !important;
  border: 0 !important;
  border-left: 4px solid #587184 !important;
  border-bottom: 1px solid #8B9398 !important;
  border-radius: 0;
  background: transparent !important;
  color: #2A3B47 !important;
  font-family: Arial, Verdana, Helvetica, sans-serif;
  font-size: 21px !important;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}

.mwx-page h2,
.mwx-page h3 {
  margin: 20px 0 9px 0;
  padding: 0 0 5px 0;
  border-bottom: 1px solid #8A8A8A;
  background: transparent;
  color: #303030;
  font-family: Arial, Verdana, Helvetica, sans-serif;
  font-weight: 700;
  text-align: left;
}

.mwx-page h2 { font-size: 17px; }
.mwx-page h3 { font-size: 15px; }

/* Replace the bright theme link colour on these pages only. */
.mwx-page a,
.mwx-page a:link,
.mwx-page a:visited {
  color: #244B67;
  background: transparent;
  text-decoration: underline;
}

.mwx-page a:hover,
.mwx-page a:active {
  color: #102E43;
  text-decoration: none;
}

.mwx-page-intro {
  margin: 0 2px 5px 12px;
  color: #444444;
  font-size: 13px;
}

.mwx-source {
  margin: 0 2px 10px 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #666666;
  font-size: 11px;
  text-align: right;
}

.mwx-source a,
.mwx-source a:link,
.mwx-source a:visited {
  color: #3E596B !important;
  font-weight: 600;
  text-decoration: none;
}

.mwx-source a:hover,
.mwx-source a:active {
  color: #233C4C !important;
  text-decoration: underline;
}

.mwx-source-bottom { margin: 10px 2px 0 0; }

.mwx-embed {
  padding: 0;
  border: 1px solid #858D92;
  border-radius: 2px;
  background: transparent;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
  overflow: hidden;
}

.mwx-embed iframe {
  display: block;
  width: 100%;
  min-height: 720px;
  height: 120vh;
  border: 0;
  background: #FFFFFF;
}

/* Keep wide data tables usable instead of forcing the whole page wider. */
.mwx-page table { max-width: 100%; }
.mwx-page pre { max-width: 100%; box-sizing: border-box; }

/* Existing Station History intro should use the shared page treatment. */
.mwx-page .wxHistoryIntro {
  margin: 0 0 14px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
}
.mwx-page .wxHistoryIntro a,
.mwx-page .wxHistoryIntro a:visited { color: #244B67 !important; }

/* NOAA report navigation: keep it neutral and consistent with the rest. */
.mwx-page .noaa_rep_nav {
  color: #222222 !important;
  background: #AFAFAF !important;
  border-color: #777777 !important;
}
.mwx-page a.noaa_rep_nav:hover {
  color: #111111 !important;
  background: #C7C7C7 !important;
}

@media (max-width: 760px) {
  #main-copy.mwx-page,
  #main-copy-dark.mwx-page { padding: 10px; }
  .mwx-page h1 { font-size: 19px !important; }
  .mwx-embed iframe { min-height: 620px; }
}
