:root {
  --navy: #071d4a;
  --blue: #123f86;
  --gold: #f0b62c;
  --link: #002c99;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: #101010;
  background-color: #051638;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.035) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.035) 75%),
    linear-gradient(45deg, rgba(255,255,255,.035) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.035) 75%);
  background-position: 0 0, 4px 4px;
  background-size: 8px 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

a { color: var(--link); }
a:hover, a:focus { color: #b30000; }

.site-shell {
  width: 760px;
  margin: 18px auto 40px;
  border: 2px solid #b7c8e4;
  background: #f4f1dc;
  box-shadow: 8px 8px 0 rgba(0,0,0,.38);
}

.masthead {
  position: relative;
  display: flex;
  align-items: center;
  height: 140px;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(180deg, rgba(29,101,166,.8), rgba(3,24,66,.92)),
    url('/channel78/town-night.png') center 58% / cover;
  border-bottom: 4px solid var(--gold);
}

.masthead::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0, rgba(255,255,255,.025) 1px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 3px);
}

.masthead-stripe {
  align-self: stretch;
  width: 12px;
  margin-right: 8px;
  background: repeating-linear-gradient(180deg, #f3b52b 0 9px, #14386f 9px 18px);
}

.station-logo {
  position: relative;
  z-index: 1;
  width: 238px;
  height: auto;
  margin: 6px 18px 0 8px;
  filter: drop-shadow(4px 4px 0 rgba(0,0,0,.65));
}

.masthead-copy {
  position: relative;
  z-index: 1;
  padding: 9px 16px 8px;
  border-left: 1px solid rgba(255,255,255,.55);
  text-shadow: 2px 2px #001138;
}

.masthead-copy p { margin: 0; }
.online-title {
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-size: 23px;
  font-weight: bold;
  letter-spacing: 1px;
}
.service-area { margin-top: 7px !important; font-size: 14px; }

.notice-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 5px 8px;
  color: white;
  background: #153d78;
  border-bottom: 1px solid #071d4a;
  font: bold 10px Verdana, Arial, sans-serif;
  letter-spacing: .4px;
}
.notice-divider { color: var(--gold); }

.page-grid { display: grid; grid-template-columns: 164px 1fr; }
.sidebar {
  min-height: 930px;
  padding: 12px 9px 20px;
  color: white;
  background: #0c3974;
  border-right: 3px ridge #b9c8dc;
}

.nav-heading {
  padding: 5px 7px;
  color: #061844;
  background: #f0b62c;
  border: 2px outset #ffe5a3;
  font: bold 11px Verdana, Arial, sans-serif;
  text-align: center;
}

.nav-link {
  display: block;
  padding: 7px 4px;
  color: white;
  border-bottom: 1px dotted #9ab0d1;
  font-size: 12px;
  text-decoration: none;
}
.nav-link span { color: #ffc738; font-size: 9px; }
.nav-link:hover, .nav-link:focus { color: #ffe163; background: #082a5d; }

.sidebar-box {
  margin-top: 18px;
  padding: 7px;
  border: 1px solid #9bb0d2;
  background: #082b60;
  text-align: center;
}
.sidebar-box h2 {
  margin: -7px -7px 7px;
  padding: 4px;
  color: #071d4a;
  background: #f5c345;
  font: bold 11px Verdana, Arial, sans-serif;
}
.sidebar-box p { margin: 6px 0; }
.phone { color: #fff26e; font-size: 15px; font-weight: bold; white-space: nowrap; }
.phone:hover, .phone:focus { color: white; }
.small-copy { font-size: 10px; }
.counter-box { font-size: 10px; }
.counter {
  padding: 3px;
  color: #53f061;
  background: black;
  border: 2px inset #8090a8;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  letter-spacing: 1px;
}
.guestbook-link { margin: 14px 0 0; text-align: center; }
.guestbook-link a { color: #fff26e; font-size: 11px; }
.guestbook-link a:hover, .guestbook-link a:focus { color: white; }
.browser-note { margin-top: 20px; color: #c9d7eb; font-size: 9px; line-height: 1.5; text-align: center; }

.content-column { padding: 15px 16px 24px; background: #fffdf0; }
.last-updated { float: right; margin: 2px 0 6px 12px; color: #666; font: italic 10px Verdana, Arial, sans-serif; }
.welcome h1 { margin: 0; color: #153d78; font: bold 24px 'Times New Roman', serif; }
.welcome p { line-height: 1.45; }
.rule { height: 4px; margin: 5px 0 10px; background: linear-gradient(90deg, #143f7d 70%, #efb529 70%); }
.station-message { padding: 8px; border: 1px dashed #ba8d1d; background: #fff6c9; }

.forecast-panel { margin-top: 17px; border: 2px ridge #adc0dd; background: white; }
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  color: white;
  background: #164684;
}
.section-title h2 { margin: 0; font: bold 15px Verdana, Arial, sans-serif; }
.section-title span { font-size: 10px; }
.forecast-body { display: flex; align-items: center; min-height: 112px; padding: 12px 18px; }
.weather-symbol { position: relative; width: 125px; height: 80px; flex: 0 0 125px; }
.sun {
  position: absolute;
  width: 58px;
  height: 58px;
  left: 20px;
  top: 1px;
  border: 4px solid #e89713;
  border-radius: 50%;
  background: #ffd74d;
  box-shadow: 0 0 0 4px #fff8bb inset;
}
.cloud {
  position: absolute;
  left: 26px;
  bottom: 5px;
  width: 83px;
  height: 32px;
  border: 3px outset #d5d9de;
  border-radius: 25px 25px 8px 8px;
  background: #eceff1;
}
.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  bottom: 12px;
  border: 2px solid #bfc4c9;
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  background: #eceff1;
}
.cloud::before { left: 9px; width: 31px; height: 28px; }
.cloud::after { right: 8px; width: 37px; height: 38px; }
.conditions { border-left: 1px solid #9eb1cb; padding-left: 20px; }
.conditions p { margin: 5px 0; }
.condition-name { color: #17457c; font: bold 18px 'Arial Narrow', Arial, sans-serif; }
.forecast-disclaimer { margin: 0; padding: 5px 8px; border-top: 1px solid #bac6d8; background: #edf1f6; font-size: 9px; }

.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.content-box, .station-section, .contact-section { border: 1px solid #8198b9; background: white; }
.content-box h2, .station-section h2, .contact-section h2 {
  margin: 0;
  padding: 5px 7px;
  color: white;
  background: #21528d;
  font: bold 13px Verdana, Arial, sans-serif;
}
.content-box ul { margin: 10px 10px 6px 26px; padding: 0; }
.content-box li { margin-bottom: 7px; line-height: 1.3; }
.more-link { margin: 8px; font-size: 11px; }
.more-link a { color: #002c99; text-decoration: underline; }
.picture-box { padding-bottom: 6px; text-align: center; }
.picture-box img { display: block; width: calc(100% - 12px); height: 122px; margin: 7px 6px 4px; border: 1px solid #071d4a; object-fit: cover; }
.picture-box p { margin: 4px 8px; font-size: 10px; font-style: italic; }
.station-section, .contact-section { margin-top: 16px; }
.station-section > p, .contact-section > p { margin: 9px; line-height: 1.4; }
.contact-section table { width: calc(100% - 18px); margin: 9px; border-collapse: collapse; }
.contact-section th, .contact-section td { padding: 5px; border: 1px solid #b6c1d0; text-align: left; }
.contact-section th { width: 43%; background: #edf1f6; }

footer {
  padding: 13px 10px;
  color: white;
  background: #08295b;
  border-top: 4px solid #f0b62c;
  font-size: 10px;
  text-align: center;
}
footer p { margin: 4px; }
footer a { color: #ffdf72; }
footer a:hover, footer a:focus { color: white; }
.webmaster { color: #b9cae2; }

@media (max-width: 790px) {
  .site-shell { width: calc(100% - 16px); margin: 8px; }
  .masthead { height: auto; min-height: 120px; }
  .station-logo { width: 42%; margin-right: 8px; }
  .online-title { font-size: clamp(15px, 4vw, 23px); }
  .page-grid { grid-template-columns: 145px 1fr; }
  .sidebar { min-height: 0; }
  .notice-bar { flex-wrap: wrap; gap: 5px; }
  .two-column { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  body { font-size: 12px; }
  .masthead { flex-wrap: wrap; justify-content: center; padding: 8px; }
  .masthead-stripe { display: none; }
  .station-logo { width: 220px; max-width: 62%; }
  .masthead-copy { padding: 5px 10px; text-align: center; border-left: 0; }
  .service-area { font-size: 12px; }
  .page-grid { display: block; }
  .sidebar { padding-bottom: 12px; border-right: 0; border-bottom: 3px ridge #b9c8dc; }
  .sidebar nav { display: grid; grid-template-columns: 1fr 1fr; }
  .nav-heading { grid-column: 1 / -1; }
  .nav-link { padding-left: 8px; }
  .sidebar-box, .browser-note { display: none; }
  .content-column { padding: 12px 10px 18px; }
  .last-updated { float: none; }
  .welcome h1 { font-size: 21px; }
  .section-title { display: block; }
  .section-title span { display: block; margin-top: 3px; }
  .forecast-body { padding: 8px; }
  .weather-symbol { width: 100px; flex-basis: 100px; transform: scale(.82); transform-origin: left center; }
  .conditions { margin-left: -12px; padding-left: 10px; }
  .condition-name { font-size: 15px; }
  .contact-section th, .contact-section td { display: block; width: 100%; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
