/* CSS for the weewx Seasons skin
 * Copyright (c) Tom Keffer, Matthew Wall
 * Distributed under terms of GPLv3.  See LICENSE.txt for your rights.
 */

:root {
    --background-color:#ffffff;
    --title-background-color:#dddddd;
    --button-background-color:#bbbbbb;
    --element-background-color:#d2e8e8;
    --section-border-color:#aaaaaa;
    --cell-border-color:#dddddd;
    --highlight-color:#4282b4;
    --link-color:#4282b4;
    --visited-color:#4282b4;
    --hover-color:#4282b4;
    --timestamp-color:#aaaaaa;
    --hival-color:#aa4444;
    --loval-color:#4444aa;
    --ok-color:#44aa44;
    --low-color:#aa4444;
    --unknown-color:#dfdfdf;
}

/* use the fonts from google */
/* @import url('https://fonts.googleapis.com/css?family=Open+Sans'); */

/* use the local fonts */
@font-face {
    font-family: 'Open Sans';
    src: url('font/OpenSans.woff2') format('woff2'),
        url('font/OpenSans.woff') format('woff');
}

body {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: 'Open Sans', arial, sans-serif;
    background-color: var(--background-color);
}

a {
    text-decoration: none;
    cursor: pointer;
    color: var(--link-color);
}

a:link {
    color: var(--link-color);
}
a:visited {
    color: var(--visited-color);
}
a:hover {
    color: var(--hover-color);
}

#widget_group {
    float: left;
    margin-right: 40px;
}

#plot_group {
    overflow: hidden;
}

#title_bar {
    overflow: auto;
    margin-bottom: 5px;
    background-color: var(--element-background-color);
    border: 1px solid var(--section-border-color);
}

#contents {
    clear: both;
    margin: 20px;
}

#title {
    float: left;
    margin-left: 10px;
}

#rss_link {
    float: right;
    margin-top: 6px;
    margin-right: 20px;
    padding-left: 8px;
    padding-right: 8px;
    background-color: var(--background-color);
    border: 1px solid var(--section-border-color);
    webkit-radius: 5px;
    moz-radius: 5px;
    border-radius: 5px;
}

#reports {
    float: right;
    margin-top: 5px;
    margin-right: 10px;
    margin-bottom: 5px;
    text-align: right;
}

.footnote {
    font-size: 80%;
    font-style: italic;
    clear: both;
    padding-left: 20px;
}

.page_title {
    font-size: 140%;
    line-height: 50%;
}

.lastupdate {
    font-size: 80%;
    line-height: 50%;
}

.widget {
    margin-bottom: 30px;
    clear: both;
}

.widget_title {
    font-weight: bold;
    padding: 2px 10px 2px 10px;
    /* underlined titles */
    border-bottom: 2px solid var(--section-border-color);
    /* outlined titles */
/*
    background-color: var(--title-background-color);
    border: 1px solid var(--section-border-color);
*/
}

.label {
    font-size: 80%;
    vertical-align: top;
    text-align: right;
    padding-top: 4px;
    padding-right: 5px;
}

.data {
    font-weight: bold;
    font-size: 80%;
    vertical-align: top;
    text-align: left;
    padding-top: 4px;
}

.units {
    font-size: 80%;
    vertical-align: top;
    padding-top: 4px;
}

.timestamp {
    font-size: 80%;
    font-weight: normal;
}

.hival {
    color: var(--hival-color);
}

.loval {
    color: var(--loval-color);
}

.status_ok {
    color: var(--ok-color);
}

.status_low {
    color: var(--low-color);
}

.status_unknown {
    color: var(--unknown-color);
}

.button {
    cursor: pointer;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 0px;
    padding-bottom: 0px;
    /* rounded box buttons */
/*
    border: 1px solid var(--section-border-color);
    webkit-radius: 3px;
    moz-radius: 3px;
    border-radius: 3px;
*/
}

.button_selected {
    cursor: pointer;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 0px;
    padding-bottom: 0px;
    /* underlined buttons */
    border-bottom: 5px solid var(--highlight-color);
    /* rounded box buttons */
/*
    background-color: var(--button-background-color);
    border: 1px solid var(--section-border-color);
    webkit-radius: 3px;
    moz-radius: 3px;
    border-radius: 3px;
*/
}

.widget_control {
    float: right;
    cursor: pointer;
    margin-left: 20px;
    margin-right: 5px;
}

.widget img {
    width: 350px;
    border: 1px solid var(--section-border-color);
    margin-top: 4px;
}

.new_row {
    border-top: 1px solid var(--cell-border-color);
}

.celestial_body {
    margin-bottom: 30px;
    float: left;
}

.widget table th {
    font-weight: normal;
    text-align: right;
    border-bottom: 1px solid var(--cell-border-color);
}

#hilo_widget table th {
    font-size: 80%;
    text-align: right;
    border-bottom: none;
}

#hilo_widget .data {
    font-weight: bold;
    font-size: 80%;
    text-align: right;
    padding-left: 10px;
}

#totals_widget table th {
    font-size: 80%;
    text-align: right;
    border-bottom: none;
}

#totals_widget .data {
    font-weight: bold;
    font-size: 80%;
    text-align: right;
    padding-left: 10px;
}

#sensors_widget table th {
    padding-top: 10px;
}

#history_widget img {
    border: none;
    margin-bottom: 10px;
    width: 500px; /* should match the image width in skin.conf */
}

#history_widget.widget_title {
    min-width: 500px;
}

.plot_container {
    margin-top: 4px;
}

#map_canvas {
    width: 350px;
    height: 350px;
    margin-top: 4px;
}


@media (max-width:800px) {
    #plot_group { overflow: visible; float: left; }
}
@media (min-width:801px) {
    #plot_group { overflow: hidden; float: none; }
}

/* WLAC airfield weather panel */

.wlac-current .widget_contents {
  padding: 10px;
}

.wlac-panel-intro {
  background: #e8eef0;
  border-left: 5px solid #1f4e5f;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.4;
}

.wlac-weather-card {
  background: #ffffff;
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  padding: 12px;
  margin: 0 0 12px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.wlac-wind-card {
  border-left: 6px solid #1f4e5f;
}

.wlac-card-label {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #4f6170;
  font-weight: bold;
  margin-bottom: 6px;
}

.wlac-card-main {
  font-size: 26px;
  line-height: 1.2;
  font-weight: bold;
  color: #1f2d3a;
  margin-bottom: 6px;
}

.wlac-card-sub {
  font-size: 14px;
  line-height: 1.4;
  color: #333333;
}

.wlac-note-card {
  background: #fff8e1;
  border-color: #e0c36d;
}

.wlac-card-note {
  font-size: 12px;
  line-height: 1.45;
  color: #333333;
}


/* WLAC layout emphasis: weather first, graphs second */

#contents.wlac-layout {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

#widget_group.wlac-left {
  width: 42%;
  min-width: 360px;
}

#plot_group.wlac-right {
  width: 58%;
}

#history_widget {
  opacity: 0.88;
}

#history_widget .widget_title {
  font-size: 15px;
  padding: 8px 10px;
}

#history_widget img {
  max-width: 100%;
  height: auto;
  opacity: 0.85;
}

.wlac-current .widget_title {
  font-size: 20px;
  padding: 10px 12px;
}

.wlac-card-main {
  font-size: 32px;
}

.wlac-card-sub {
  font-size: 16px;
}

.wlac-weather-card {
  padding: 14px;
  margin-bottom: 14px;
}

/* Keep the page usable on tablets / narrow screens */
@media screen and (max-width: 900px) {
  #contents.wlac-layout {
    display: block;
  }

  #widget_group.wlac-left,
  #plot_group.wlac-right {
    width: 100%;
    min-width: 0;
  }
}


/* WLAC layout correction: current weather dominant, graphs secondary */

#contents.wlac-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

#widget_group.wlac-left {
  width: 60%;
  min-width: 420px;
}

#plot_group.wlac-right {
  width: 40%;
  max-width: 620px;
}

#history_widget {
  opacity: 0.78;
}

#history_widget img {
  max-width: 460px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 14px auto;
}

#plot_title.widget_title {
  font-size: 14px;
}


/* WLAC layout revision: weather first, readable graphs below */

#contents.wlac-layout {
  display: block !important;
}

#widget_group.wlac-left {
  width: 100% !important;
  min-width: 0 !important;
}

#plot_group.wlac-right {
  width: 100% !important;
  max-width: none !important;
  margin-top: 24px;
}

#history_widget {
  opacity: 0.9;
}

#history_widget img {
  max-width: 760px !important;
  width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0 0 18px 0;
}

#plot_title.widget_title {
  font-size: 15px;
  margin-top: 10px;
}


/* WLAC page width and header styling */

body {
  background: #f4f6f6 !important;
}

#title_bar {
  max-width: 1140px !important;
  margin: 0 auto !important;
  background: #1f4e5f !important;
  color: #ffffff !important;
  border-bottom: none !important;
  padding: 14px 20px !important;
  box-sizing: border-box !important;
}

#title_bar h1,
#title_bar .page_title {
  color: #ffffff !important;
  font-size: 26px !important;
  margin: 0 !important;
}

#title_bar .lastupdate {
  color: #e7f0f2 !important;
  font-size: 14px !important;
  margin: 4px 0 0 0 !important;
}

#contents.wlac-layout {
  max-width: 1140px !important;
  margin: 18px auto 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

.wlac-footnote {
  max-width: 1140px !important;
  margin: 18px auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

#history_widget img {
  max-width: 900px !important;
}


/* WLAC header refinement */

#title_bar {
  background: #4982ab !important;
  min-height: 72px !important;
  padding: 18px 24px 16px 24px !important;
  line-height: 1.25 !important;
}

#title_bar #title {
  display: block !important;
}

#title_bar h1,
#title_bar .page_title {
  font-size: 28px !important;
  line-height: 1.15 !important;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
}

#title_bar .lastupdate {
  display: block !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
}


/* WLAC logo header */

#wlac_header_inner {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
}

#wlac_logo_wrap {
  flex: 0 0 auto !important;
}

#wlac_logo {
  height: 56px !important;
  width: auto !important;
  display: block !important;
  background: #ffffff !important;
  border-radius: 6px !important;
  padding: 3px !important;
}

#title_bar #title {
  flex: 1 1 auto !important;
}


/* WLAC chart readability refinement */

#history_widget {
  opacity: 1 !important;
}

#history_widget img {
  opacity: 1 !important;
  background: #ffffff !important;
  padding: 8px !important;
  border: 1px solid #d5dde2 !important;
  border-radius: 6px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
  box-sizing: border-box !important;
}


/* WLAC header final prominence */

#title_bar {
  min-height: 92px !important;
  padding: 22px 28px 20px 28px !important;
}

#wlac_logo {
  height: 68px !important;
}

#title_bar h1,
#title_bar .page_title {
  font-size: 32px !important;
  line-height: 1.15 !important;
}

#title_bar .lastupdate {
  font-size: 15px !important;
}


/* WLAC wind emphasis */

.wlac-wind-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #e6ecef;
}

.wlac-wind-row:last-child {
  border-bottom: none;
}

.wlac-wind-label {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #4f6170;
  font-weight: bold;
}

.wlac-wind-value {
  font-size: 32px;
  line-height: 1.15;
  font-weight: bold;
  color: #1f2d3a;
}


/* WLAC header stronger height override */

#title_bar {
  min-height: 110px !important;
  height: auto !important;
  padding: 26px 32px 24px 32px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

#wlac_header_inner {
  min-height: 76px !important;
  align-items: center !important;
}

#wlac_logo {
  height: 76px !important;
  max-height: 76px !important;
}

#title_bar h1,
#title_bar .page_title {
  font-size: 34px !important;
  line-height: 1.2 !important;
  margin-bottom: 8px !important;
}

#title_bar .lastupdate {
  font-size: 16px !important;
  line-height: 1.35 !important;
}


/* WLAC consistent card styling */

.wlac-panel-intro,
.wlac-weather-card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.12) !important;
}


/* WLAC flat card styling - remove all shadows from current weather panel */

#current_widget .widget_contents > div,
.wlac-panel-intro,
.wlac-weather-card,
.wlac-wind-card,
.wlac-note-card {
  box-shadow: none !important;
}


/* WLAC remove left accent bars so all cards match */

.wlac-panel-intro,
.wlac-weather-card,
.wlac-wind-card,
.wlac-note-card {
  border-left: 1px solid #cfd8dc !important;
  box-shadow: none !important;
}

.wlac-panel-intro {
  background: #e8eef0 !important;
}


/* WLAC 10-minute wind summary */

.wlac-wind-summary {
  margin-top: 12px;
  padding: 10px 12px;
  background: #f1f5f7;
  border: 1px solid #d5dde2;
  border-radius: 6px;
}

.wlac-summary-title {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #4f6170;
  font-weight: bold;
  margin-bottom: 6px;
}

.wlac-summary-line {
  font-size: 16px;
  line-height: 1.45;
  color: #1f2d3a;
  font-weight: 600;
}



/* WLAC clean 10-minute wind summary */

.wlac-wind-summary {
  margin-top: 12px;
  padding: 10px 12px;
  background: #f1f5f7;
  border: 1px solid #d5dde2;
  border-radius: 6px;
}

.wlac-summary-title {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #4f6170;
  font-weight: bold;
  margin-bottom: 6px;
}

.wlac-summary-line {
  font-size: 16px;
  line-height: 1.45;
  color: #1f2d3a;
  font-weight: 600;
}


/* WLAC final page width correction */

#title_bar {
  max-width: 1380px !important;
}

#contents.wlac-layout {
  max-width: 1380px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

.wlac-footnote {
  max-width: 1380px !important;
}

#widget_group.wlac-left {
  width: 100% !important;
  min-width: 0 !important;
}

#plot_group.wlac-right {
  width: 100% !important;
  max-width: none !important;
}

#current_widget {
  width: 100% !important;
}

.wlac-weather-card,
.wlac-panel-intro {
  width: 100% !important;
  box-sizing: border-box !important;
}


/* WLAC final header sizing after page-width correction */

#title_bar {
  background: #4982ab !important;
  max-width: 1380px !important;
  min-height: 105px !important;
  padding: 24px 30px !important;
  box-sizing: border-box !important;
}

#wlac_header_inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 22px !important;
  min-height: 76px !important;
}

#wlac_logo {
  height: 76px !important;
  max-height: 76px !important;
  width: auto !important;
}

#title_bar h1,
#title_bar .page_title {
  font-size: 34px !important;
  line-height: 1.15 !important;
  margin: 0 0 7px 0 !important;
  color: #ffffff !important;
}

#title_bar .lastupdate {
  font-size: 16px !important;
  line-height: 1.3 !important;
  color: #ffffff !important;
}

/* Mobile/tablet header readability without shrinking the whole page */
@media screen and (max-width: 900px) {
  #title_bar {
    min-height: 92px !important;
    padding: 14px 16px !important;
  }

  #wlac_header_inner {
    gap: 12px !important;
    min-height: 62px !important;
  }

  #wlac_logo {
    height: 58px !important;
    max-height: 58px !important;
  }

  #title_bar h1,
  #title_bar .page_title {
    font-size: 22px !important;
    line-height: 1.15 !important;
    margin-bottom: 4px !important;
  }

  #title_bar .lastupdate {
    font-size: 12px !important;
    line-height: 1.25 !important;
  }
}


/* WLAC final width and deeper header refinement */

#title_bar {
  max-width: 1280px !important;
  min-height: 122px !important;
  padding: 28px 34px !important;
  background: #4982ab !important;
  box-sizing: border-box !important;
}

#contents.wlac-layout {
  max-width: 1280px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

.wlac-footnote {
  max-width: 1280px !important;
}

#wlac_header_inner {
  min-height: 86px !important;
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
}

#wlac_logo {
  height: 86px !important;
  max-height: 86px !important;
  width: auto !important;
}

#title_bar h1,
#title_bar .page_title {
  font-size: 36px !important;
  line-height: 1.15 !important;
  margin: 0 0 8px 0 !important;
  color: #ffffff !important;
}

#title_bar .lastupdate {
  font-size: 16px !important;
  line-height: 1.3 !important;
  color: #ffffff !important;
}

@media screen and (max-width: 900px) {
  #title_bar {
    max-width: 1280px !important;
    min-height: 96px !important;
    padding: 16px 16px !important;
  }

  #wlac_header_inner {
    min-height: 66px !important;
    gap: 12px !important;
  }

  #wlac_logo {
    height: 62px !important;
    max-height: 62px !important;
  }

  #title_bar h1,
  #title_bar .page_title {
    font-size: 22px !important;
    line-height: 1.15 !important;
    margin-bottom: 4px !important;
  }

  #title_bar .lastupdate {
    font-size: 12px !important;
    line-height: 1.25 !important;
  }
}


/* WLAC final wind value balance */

.wlac-wind-card .wlac-wind-value {
  font-size: 38px !important;
  line-height: 1.1 !important;
}

.wlac-wind-card .wlac-summary-line {
  font-size: 21px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
}

.wlac-wind-card .wlac-summary-title {
  font-size: 14px !important;
}

@media screen and (max-width: 900px) {
  .wlac-wind-card .wlac-wind-value {
    font-size: 30px !important;
  }

  .wlac-wind-card .wlac-summary-line {
    font-size: 18px !important;
  }

  .wlac-wind-card .wlac-summary-title {
    font-size: 13px !important;
  }
}

sudo tee -a /etc/weewx/skins/WLAC/seasons.css > /dev/null <<'EOF'

/* WLAC recent weather summary */

.wlac-history-summary {
  margin-bottom: 24px;
}

.wlac-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wlac-summary-card {
  background: #ffffff;
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  padding: 14px 16px;
  box-sizing: border-box;
}

.wlac-summary-card h3 {
  margin: 0 0 10px 0;
  color: #1f2d3a;
  font-size: 20px;
}

.wlac-summary-card table {
  width: 100%;
  border-collapse: collapse;
}

.wlac-summary-card td {
  padding: 6px 0;
  border-bottom: 1px solid #e6ecef;
  font-size: 15px;
}

.wlac-summary-card tr:last-child td {
  border-bottom: none;
}

.wlac-summary-card td:first-child {
  color: #4f6170;
  font-weight: 600;
}

.wlac-summary-card td:last-child {
  text-align: right;
  font-weight: 700;
  color: #1f2d3a;
}

@media screen and (max-width: 900px) {
  .wlac-summary-grid {
    grid-template-columns: 1fr;
  }
}

EOF

/* WLAC website-style header */

#title_bar.wlac-site-header {
  background: #6f8ead !important;
  max-width: 1280px !important;
  min-height: 210px !important;
  margin: 0 auto !important;
  padding: 18px 36px 20px 36px !important;
  box-sizing: border-box !important;
}

#title_bar #wlac_header_inner {
  display: flex !important;
  align-items: flex-start !important;
  gap: 34px !important;
  min-height: 170px !important;
}

#title_bar #wlac_logo {
  height: 178px !important;
  max-height: 178px !important;
  width: auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

#title_bar .wlac-header-text {
  padding-top: 58px !important;
}

#title_bar h1.page_title {
  color: #dce94a !important;
  font-size: 54px !important;
  line-height: 1.05 !important;
  font-weight: 400 !important;
  letter-spacing: 0.06em !important;
  margin: 0 !important;
}

#title_bar .wlac-motto {
  color: #dce94a !important;
  font-size: 28px !important;
  line-height: 1.2 !important;
  margin: 58px 0 0 -270px !important;
  letter-spacing: 0.02em !important;
}

.wlac-weather-page-title {
  max-width: 1280px;
  margin: 18px auto 8px auto;
  padding: 0 20px;
  box-sizing: border-box;
  font-size: 28px;
  font-weight: 700;
  color: #1f2d3a;
}

/* Mobile/tablet adjustment */
@media screen and (max-width: 900px) {
  #title_bar.wlac-site-header {
    min-height: 120px !important;
    padding: 14px 16px !important;
  }

  #title_bar #wlac_header_inner {
    gap: 14px !important;
    min-height: 92px !important;
    align-items: center !important;
  }

  #title_bar #wlac_logo {
    height: 86px !important;
    max-height: 86px !important;
  }

  #title_bar .wlac-header-text {
    padding-top: 0 !important;
  }

  #title_bar h1.page_title {
    font-size: 26px !important;
    letter-spacing: 0.04em !important;
  }

  #title_bar .wlac-motto {
    font-size: 15px !important;
    margin: 8px 0 0 0 !important;
  }

  .wlac-weather-page-title {
    font-size: 22px;
    margin-top: 14px;
  }
}

sudo nano /etc/weewx/skins/WLAC/seasons.css

EOF'
sudo nano /etc/weewx/skins/WLAC/seasons.css

sudo tee -a /etc/weewx/skins/WLAC/seasons.css > /dev/null <<'EOF'

/* WLAC compact website-style header */

#title_bar.wlac-site-header {
  background: #6f8ead !important;
  max-width: 1280px !important;
  min-height: 145px !important;
  margin: 0 auto !important;
  padding: 16px 34px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

#title_bar.wlac-site-header #wlac_header_inner {
  display: flex !important;
  align-items: center !important;
  gap: 32px !important;
  min-height: 110px !important;
}

#title_bar.wlac-site-header #wlac_logo {
  height: 120px !important;
  max-height: 120px !important;
  width: auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

#title_bar.wlac-site-header .wlac-header-text {
  padding: 0 !important;
}

#title_bar.wlac-site-header h1.page_title {
  color: #dce94a !important;
  font-size: 46px !important;
  line-height: 1.05 !important;
  font-weight: 400 !important;
  letter-spacing: 0.06em !important;
  margin: 0 0 20px 0 !important;
}

#title_bar.wlac-site-header .wlac-motto {
  color: #dce94a !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  letter-spacing: 0.02em !important;
}

.wlac-weather-page-title {
  max-width: 1280px !important;
  margin: 18px auto 8px auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #1f2d3a !important;
}

/* Smaller screens */
@media screen and (max-width: 900px) {
  #title_bar.wlac-site-header {
    min-height: 95px !important;
    padding: 10px 14px !important;
  }

  #title_bar.wlac-site-header #wlac_header_inner {
    gap: 12px !important;
    min-height: 75px !important;
  }

  #title_bar.wlac-site-header #wlac_logo {
    height: 72px !important;
    max-height: 72px !important;
  }

  #title_bar.wlac-site-header h1.page_title {
    font-size: 24px !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: 0.04em !important;
  }

  #title_bar.wlac-site-header .wlac-motto {
    font-size: 13px !important;
  }

  .wlac-weather-page-title {
    font-size: 22px !important;
    margin-top: 14px !important;
  }
}

EOF
/* WLAC header image sizing */

#title_bar.wlac-header-image {
  max-width: 1280px !important;
  height: 170px !important;
  margin: 0 auto 18px auto !important;
  padding: 0 !important;
  background: #4982ab !important;
  overflow: hidden !important;
}

#title_bar.wlac-header-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}
/* WLAC final image header sizing */

#title_bar.wlac-header-image {
  max-width: 1280px !important;
  width: 100% !important;
  height: 150px !important;
  min-height: 150px !important;
  margin: 0 auto 18px auto !important;
  padding: 0 !important;
  background: #4982ab !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

#title_bar.wlac-header-image img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 150px !important;
  max-height: 150px !important;
  object-fit: cover !important;
  object-position: center center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.wlac-weather-page-title {
  max-width: 1280px !important;
  margin: 18px auto 8px auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;

/* WLAC final image header - show full banner */

#title_bar.wlac-header-image {
  max-width: 1280px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 auto 18px auto !important;
  padding: 0 !important;
  background: #4982ab !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

#title_bar.wlac-header-image img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}
/* WLAC image header - final override */

body #title_bar.wlac-header-image {
  max-width: 1280px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 auto 18px auto !important;
  padding: 0 !important;
  background: #4982ab !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body #title_bar.wlac-header-image img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* WLAC website-style masthead recreation */

#title_bar.wlac-site-header {
  max-width: 1280px !important;
  margin: 0 auto 18px auto !important;
  padding: 14px 28px 12px 28px !important;
  background: #4982ab !important;
  min-height: 150px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

#title_bar .wlac-logo-wrapper {
  position: relative !important;
  min-height: 126px !important;
}

#title_bar .wlac-logo-link {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
}

#title_bar .wlac-website-badge {
  width: 132px !important;
  height: auto !important;
  max-height: 130px !important;
  margin-right: 32px !important;
  flex: 0 0 auto !important;
}

#title_bar .wlac-site-title {
  color: #dce94a !important;
  font-size: 48px !important;
  line-height: 1.1 !important;
  font-weight: 400 !important;
  letter-spacing: 0.05em !important;
  white-space: nowrap !important;
}

#title_bar .wlac-site-description {
  color: #dce94a !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
  font-style: italic !important;
  margin: 8px 0 0 0 !important;
}

/* Weather page title below masthead */

.wlac-weather-page-title {
  max-width: 1280px !important;
  margin: 18px auto 8px auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #1f2d3a !important;
}

/* Smaller screens */

@media screen and (max-width: 900px) {
  #title_bar.wlac-site-header {
    min-height: 105px !important;
    padding: 10px 14px !important;
  }

  #title_bar .wlac-logo-wrapper {
    min-height: 84px !important;
  }

  #title_bar .wlac-website-badge {
    width: 78px !important;
    max-height: 80px !important;
    margin-right: 14px !important;
  }

  #title_bar .wlac-site-title {
    font-size: 24px !important;
    letter-spacing: 0.03em !important;
    white-space: normal !important;
  }

  #title_bar .wlac-site-description {
    font-size: 13px !important;
    margin-top: 4px !important;
  }

  .wlac-weather-page-title {
    font-size: 22px !important;
  }
}
sudo tee -a /etc/weewx/skins/WLAC/seasons.css > /dev/null <<'EOF'

/* WLAC restore simple working header after masthead experiment */

#title_bar {
  background: #4982ab !important;
  max-width: 1280px !important;
  min-height: 105px !important;
  padding: 24px 30px !important;
  box-sizing: border-box !important;
  margin: 0 auto 18px auto !important;
  overflow: visible !important;
}

#wlac_header_inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 22px !important;
  min-height: 76px !important;
}

#wlac_logo {
  height: 76px !important;
  max-height: 76px !important;
  width: auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

#title_bar h1,
#title_bar .page_title {
  font-size: 34px !important;
  line-height: 1.15 !important;
  margin: 0 0 7px 0 !important;
  color: #ffffff !important;
}

#title_bar .lastupdate {
  font-size: 16px !important;
  line-height: 1.3 !important;
  color: #ffffff !important;
}

.wlac-weather-page-title {
  max-width: 1280px !important;
  margin: 18px auto 8px auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #1f2d3a !important;
}

EOF
sudo tee -a /etc/weewx/skins/WLAC/seasons.css > /dev/null <<'EOF'

/* WLAC simple working header with motto */

#title_bar {
  background: #4982ab !important;
  max-width: 1280px !important;
  min-height: 120px !important;
  margin: 0 auto 18px auto !important;
  padding: 20px 30px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

#wlac_header_inner {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  min-height: 82px !important;
}

#wlac_logo_wrap {
  flex: 0 0 auto !important;
}

#wlac_logo {
  height: 88px !important;
  max-height: 88px !important;
  width: auto !important;
  display: block !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

#title_bar #title {
  flex: 1 1 auto !important;
}

#title_bar h1,
#title_bar .page_title {
  color: #ffffff !important;
  font-size: 32px !important;
  line-height: 1.15 !important;
  margin: 0 0 5px 0 !important;
}

#title_bar .lastupdate {
  color: #ffffff !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
  margin: 0 0 4px 0 !important;
}

#title_bar .wlac-motto-line {
  color: #ffffff !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  opacity: 0.95 !important;
}

/* Smaller screens */
@media screen and (max-width: 900px) {
  #title_bar {
    min-height: 95px !important;
    padding: 14px 16px !important;
  }

  #wlac_header_inner {
    gap: 14px !important;
    min-height: 66px !important;
  }

  #wlac_logo {
    height: 64px !important;
    max-height: 64px !important;
  }

  #title_bar h1,
  #title_bar .page_title {
    font-size: 22px !important;
    margin-bottom: 3px !important;
  }

  #title_bar .lastupdate {
    font-size: 12px !important;
  }

  #title_bar .wlac-motto-line {
    font-size: 11px !important;
  }
}

EOF
/* WLAC badge and motto final styling */

#wlac_logo {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#title_bar .wlac-motto-line {
  color: #dce94a !important;
  font-style: italic !important;
}
/* WLAC force motto yellow */

#title_bar p.wlac-motto-line,
#title_bar .wlac-motto-line,
p.wlac-motto-line {
  color: #dce94a !important;
}

/* WLAC force motto text and italic element yellow */

#title_bar .wlac-motto-line,
#title_bar .wlac-motto-line em,
.wlac-motto-line,
.wlac-motto-line em {
  color: #dce94a !important;
}

