/*! Site stylesheet (unified look) */
/* =========================
 * * Root variables (site + wxdata)
 * * ========================= */
:root {
  /* Existing site palette */
  --lakeOrig: #00A4B3;
  --lake: #00838F;
  --sunsetOrig: #ED3554;
  --sunset: #DD314E;
  --midnight: #000C1F;
  --moss: #00FFB5;
  --ice: #F3F2F1;
  --stone: #82A6B4;
  /* From wxdata.html */
  --bg: #ffffff;
  --text: #111111;
  --muted: #444444;
  --grid: #cfcfcf;
  --axis: #222222;
  --focus: #145cff;
  /* High-contrast series colors (used by charts) */
  --c-red: #a61c00;
  --c-blue: #0b5394; /* Outgoing SW (dashed) */
  --c-green: #38761d;
  --c-orange:#b45f06; /* Incoming SW (solid + fill) */
  --c-violet:#5b3694;
  --c-pink: #9e005d;
  --c-brown:#5a3a1c;
  --c-gray: #333333;
}
/* =========================
 * * Base & typography
 * * ========================= */
html { color: #222; font-size: 1em; line-height: 1.4; }
html { font-family: "Darker Grotesque", sans-serif; font-size: 1.2rem; }
body,
button,
input,
select,
optgroup,
textarea {
  color: #404040;
  font-family: "Darker Grotesque", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}
/* Selection */
::-moz-selection { background: #b3d4fc; text-shadow: none; }
::selection { background: #b3d4fc; text-shadow: none; }
/* Media baseline */
audio, canvas, iframe, img, svg, video { vertical-align: middle; }
/* Forms baseline */
fieldset { border: 0; margin: 0; padding: 0; }
textarea { resize: vertical; }
.fsBody input { font-size: 100%; line-height: 1.15em; }
/* Headings */
h1, h2, h3, h4, h5, h6 { clear: both; margin: 0.5em 0; line-height: 1em; }
h1 { font-size: 3rem; } @media print { h1 { font-size: 2.5rem; } }
h2 { font-size: 2rem; } @media print { h2 { font-size: 1.5rem; } }
h3 { font-size: 1.5rem; } @media print { h3 { font-size: 1.2rem; } }
h4 { font-size: 1.5rem; } @media print { h4 { font-size: 1.2rem; } }
/* Paragraphs */
p { margin-top: 0.5em; margin-bottom: 0.5em; }
p.sans-serif-font { font-size: 1.2rem; }
@media screen and (min-width:876px) { p.sans-serif-font { font-size: 1.3rem; } }
@media print { p.sans-serif-font { font-size: 1rem; } }
/* Emphasis & misc */
dfn, cite, em, i { font-style: italic; }
blockquote { margin: 0; }
.wp-block-quote { font-family: "Source Serif Pro", serif; }
address { margin: 0 0 1.5em; }
pre {
  background: #eee;
  font-family: "Courier 10 Pitch", courier, monospace;
  line-height: 1.6;
  margin-bottom: 1.6em;
  max-width: 100%;
  overflow: auto;
  padding: 1.6em;
}
code, kbd, tt, var { font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace; }
abbr, acronym { border-bottom: 1px dotted #666; cursor: help; }
mark, ins { background: #fff9c0; text-decoration: none; }
big { font-size: 125%; }
/* =========================
 * * Utilities
 * * ========================= */
.desktop-only { display: none; }
@media screen and (min-width: 876px) { .desktop-only { display: block; } }
.center-text-inside { text-align: center; }
.center { text-align: center; }
.font-large { font-size: 2.3rem; }
.serif-font { font-family: "Source Serif Pro", serif; }
.sans-serif-font { font-family: "Darker Grotesque", sans-serif; }
.padding-01 { padding: 1rem; box-sizing: border-box; }
.max-width { max-width: 60rem; margin: 0 auto; }
.max-width-narrow { max-width: 40rem; margin: 0 auto; }
.relative { position: relative; }
@media screen and (min-width: 600px) { .mobile-only { display: none; } }
/* Color helpers */
.has-lake-color { color: #00838F; }
.has-sunset-color { color: #DD314E; }
.has-midnight-color { color: #000C1F; }
.has-ice-color { color: #F3F2F1; }
.has-moss-color { color: #00FFB5; }
.has-stone-color { color: #82A6B4; }
.has-lake-background-color { background-color: #00838F; }
.has-sunset-background-color { background-color: #DD314E; }
.has-midnight-background-color { background-color: #000C1F; }
.has-ice-background-color { background-color: #F3F2F1; }
.has-moss-background-color { background-color: #00FFB5; }
.has-stone-background-color { background-color: #82A6B4; }
.ice-bg { background-color: var(--ice); }
.midnight-bg { background-color: var(--midnight); }
.lake-text { color: var(--lake); }
.sunset-text { color: var(--sunset); }
.ice-text { color: var(--ice); }
.midnight-text { color: var(--midnight); }
/* =========================
 * * Links
 * * ========================= */
a { color: #006c76; text-decoration: underline; }
a:visited { color: #002629; text-decoration: underline; }
a:hover, a:focus, a:active { color: #002629; text-decoration: underline; }
a:focus-visible { outline: 0.1rem dotted; }
a:hover, a:active { outline: 0; }
/* =========================
 * * Tabs UI
 * * ========================= */
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
}
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 17px;
}
.tab button:hover { background-color: #ddd; }
.tab button.active { background-color: #ccc; }
/* Panel visibility (ARIA toggles [hidden]) */
.tabcontent {
  display: block; /* visible by default */
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}
.tabcontent[hidden] { display: none; }
/* Program Info external link styled like buttons (and vertically centered) */
.tab a.tablink-external {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 17px;
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center; /* vertical centering */
  gap: 0.5rem;
  line-height: 1.5;
}
.tab a.tablink-external:hover { background-color: #ddd; }
.tab a.tablink-external:focus-visible { outline: 2px solid #168eff; outline-offset: 2px; }
/* =========================
 * * Weather Station layout
 * * ========================= */
@media only screen and (min-width: 35em) {
  #weather-sbs { display: flex; flex-direction: row-reverse; padding-left: 0; }
}
/* Pixel 7 gap fix: wider and less left padding on narrow widths */
#sidebar { max-width: 22rem; padding-bottom: 2rem; padding-left: 2rem; }
@media (max-width: 28rem) { #sidebar { padding-left: 1rem; } }
/* WeatherStation block */
.WeatherStation { width: 100%; }
.WeatherStation h3 { font-family: "Darker Grotesque", sans-serif; text-align: center; }
.WeatherStation .current-conditions { border-top: 3px solid #00A6B4; }
.WeatherStation .current-conditions h3,
.WeatherStation .current-conditions h3 span { font-family: "Darker Grotesque", sans-serif; }
/* Big temperature line (tighter spacing) */
.WeatherStation .current-temperature {
  font-size: 4.5rem;
  font-family: "Darker Grotesque", sans-serif;
  text-align: center;
  line-height: 1em;
  font-weight: bold;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}
.WeatherStation .current-temperature-celsius { text-align: center; font-size: 1.2rem; }
/* Definition list visuals */
.WeatherStation dl { font-size: 1rem; }
.WeatherStation dl dt {
  width: 100%;
  display: inline-block;
  padding: .5rem;
  background: #ccc;
  box-sizing: border-box;
  font-family: "Darker Grotesque", sans-serif;
}
.WeatherStation dl dt:first-child { border-top-right-radius: 0.25rem; border-top-left-radius: 0.25rem; }
.WeatherStation dl dd {
  display: inline-block;
  margin: 0;
  border: 1px solid #ddd;
  border-top: none;
  padding: .5rem;
  box-sizing: border-box;
  width: 100%;
}
.WeatherStation dl dd:last-child { border-bottom-right-radius: 0.25rem; border-bottom-left-radius: 0.25rem; }
/* =========================
 * * Accordion (Daily Summary)
 * * ========================= */
/* Red bar with centered white text — applied to the trigger element */
.station-accordion {
  font-size:1.5rem;
  font-weight:700;
  position: relative;
  display: block;
  margin: .75rem 0 0;
  padding: .75rem .75rem .75rem 3.25rem; /* room for icon square on left */
  background-color: #DD314E; /* brand red */
  color: #ffffff; /* white text */
  border-radius: .25rem;
  border: 1px solid #b4273e;
  box-shadow: rgba(0,0,0,.25) 0 2px 8px;
  line-height: 1.2;
  text-align: center; /* center the two-line title */
  cursor: pointer;
  width: 100%;
  border-width: 1px;
  /* If this is a <button>, make sure it looks consistent */
  appearance: none;
  background-clip: padding-box;
  border-style: solid;
}
.station-accordion .accordion-subtitle {
  color: rgba(255,255,255,.92);
  font-weight: 600;
  font-size: 0.95rem;
}
.station-accordion:focus-visible {
  outline: 3px solid #168eff;
  outline-offset: 3px;
}
/* Base icon rule */
.station-accordion::before {
  content: '+';
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-sizing: border-box;
  font-family: "Darker Grotesque", sans-serif;
  font-weight: 900;
  font-size: 2rem;
  text-align: center;
  padding-bottom: 0.5rem;
}
.station-accordion[aria-expanded="true"]::before { content: '−'; }
/* Content panel border harmony with bar */
.station-accordion-content {
  /* visible by default; use [hidden] to conceal */
  display: block;
  padding: .5rem;
  border: 2px solid #DD314E;
  border-top: none;
  border-bottom-left-radius: .25rem;
  border-bottom-right-radius: .25rem;
}
.station-accordion-content[hidden] { display: none; }

/* =========================
 * * Lists
 * * ========================= */
ul, ol { margin: 0 0 1.5em 1em; padding-left: 1em; }
ul { list-style: disc; }
ol { list-style: decimal; }
li > ul, li > ol { margin-bottom: 0; margin-left: 1.5em; }
dt { font-weight: 700; }
dd { margin: 0 1.5em 1.5em; }
li { font-size: 1.2rem; }
@media screen and (min-width: 600px) { li { font-size: 1.0rem; } }
@media print { li { font-size: 1rem; } }
/* =========================
 * * Helper classes
 * * ========================= */
.hidden, [hidden] { display: none !important; } /* hide for all/AT */
.visually-hidden {
  border: 0; clip: rect(0, 0, 0, 0); height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; white-space: nowrap; width: 1px;
}
.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto; height: auto; margin: 0; overflow: visible; position: static; white-space: inherit; width: auto;
}
.invisible { visibility: hidden; }
.clearfix::before, .clearfix::after { content: ""; display: table; }
.clearfix::after { clear: both; }
/* =========================
 * * Print styles
 * * ========================= */
@media print {
  *, *::before, *::after {
    background: #fff !important; color: #000 !important;
    box-shadow: none !important; text-shadow: none !important;
  }
  a, a:visited { text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; }
  abbr[title]::after { content: " (" attr(title) ")"; }
  a[href^="#"]::after, a[href^="javascript:"]::after { content: ""; }
  pre { white-space: pre-wrap !important; }
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  tr, img { page-break-inside: avoid; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3 { page-break-after: avoid; }
}
/* =========================
 * * Merged inline bit from older HTML head
 * * ========================= */
.controls input[type="checkbox"]:focus {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
}
/* =========================
 * * Global unified look from wxdata.html
 * * ========================= */
/* Controls — global (layout only; spacing unchanged elsewhere) */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .5rem;
  align-items: end;
  margin: .75rem 0 1rem;
}
.controls > div { display: inline-flex; align-items: center; }
.controls label { font-weight: 600; margin-right: .25rem; }
.controls input[type="date"] {
  padding: .30rem .45rem;
  border: 1px solid var(--axis);
  border-radius: .25rem;
}
@media (max-width: 430px) {
  .controls { gap: .25rem .375rem; }
  .controls label { margin-right: .20rem; }
  .controls input[type="date"] {
    padding: .26rem .40rem;
    width: 11ch; /* keep date inputs compact on phones */
    min-width: 0; /* allow shrink */
    flex: 0 0 auto; /* prevent flex from stretching */
  }
}
/* Calendar button */
.calendar-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.1rem;
  margin-left: .35rem;
  border: 1px solid var(--axis);
  border-radius: .25rem;
  background-color: #fff;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002629' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\
<rect x='3' y='4' width='18' height='18' rx='2' ry='2'/>\
<line x1='16' y1='2' x2='16' y2='6'/>\
<line x1='8' y1='2' x2='8' y2='6'/>\
<line x1='3' y1='10' x2='21' y2='10'/>\
</svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.15rem;
}
.calendar-trigger:hover { background-color: #f7f7f7; }
.calendar-trigger:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ui-datepicker-trigger .ui-button-text,
.calendar-trigger .ui-button-text { display: none; }
/* Off-screen proxy inputs for datepicker popup */
.dp-proxy {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  border: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
/* Buttons — global wxdata (blue/white) */
.button {
  padding: .5rem .875rem;
  background-color: #0b5394;
  color: #fff;
  border: 2px solid #0b5394;
  border-radius: .25rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-block;
  flex: 0 0 auto;
  text-decoration: none;
  letter-spacing: .01em;
}
.button:hover { background-color: #083a66; border-color: #083a66; }
.button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
/* Figures — global spacing */
figure { margin: 1.25rem 0; }
figcaption { margin: .25rem 0 0; color: var(--text); font-size: 0.95rem; }
/* =========================
 * * Meteogram-specific (scoped)
 * * ========================= */
.meteogram .hint { color: var(--muted); font-size: 0.95rem; margin: 0.25rem 0 1rem; }
.meteogram hr { border: 0; border-top: 1px solid var(--grid); margin: .5rem 0 1rem; }
.meteogram .chart {
  width: 100%;
  height: 50vh;
  border: 1px solid var(--grid);
  border-radius: .25rem;
}
.meteogram .chart:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }
@media (max-width: 640px) { .meteogram .chart { height: 46vh; } }
.meteogram #message { margin: .25rem 0 .75rem; }
.meteogram #message.error { color: #b00020; }
/* =========================
 * * CTA styling for the two meteogram buttons ONLY
 * * ========================= */
.button.cta-btn,
#plotBtn.button.cta-btn,
#todayBtn.button.cta-btn {
  background-color: #00838F; /* VTSU teal */
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
  border-radius: 0.1rem;
  transition: all 0.3s;
  appearance: none;
  border: none;
  cursor: pointer;
  line-height: 1.5em;
  font-family: "Darker Grotesque", sans-serif;
}
.button.cta-btn:hover,
#plotBtn.button.cta-btn:hover,
#todayBtn.button.cta-btn:hover {
  background-color: #006c76;
  color: #ffffff;
  box-shadow: rgba(0, 131, 143, 0.5) 0.25rem 0.25rem 0rem;
}
.button.cta-btn:focus-visible,
#plotBtn.button.cta-btn:focus-visible,
#todayBtn.button.cta-btn:focus-visible {
  background-color: #168eff;
  border-color: #168eff;
  color: #ffffff;
  box-shadow: rgba(22, 142, 255, 0.5) 0.25rem 0.25rem 0rem;
  outline: none;
}
/* =========================
 * * Headings & button font/color guarantee
 * * ========================= */
h1, h2, h3,
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.tab button,
.button {
  font-family: "Darker Grotesque", sans-serif !important;
  color: inherit;
}
/* =========================================================
 * * FINAL OVERRIDE — Daily Summary icon box (wins specificity)
 * * Apply to .station-accordion (works for both <h4> or <button>)
 * * Keep this at the very end so it always wins the cascade.
 * * ========================================================= */
.WeatherStation .station-accordion::before {
  position: absolute !important;
  left: .75rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2rem !important;
  height: 2rem !important;
  border: 2px solid #fff !important;
  box-sizing: border-box !important;
  text-align: center !important;
  font-size: 2rem !important;
  color: #fff !important;
  font-weight: 900 !important;
  font-family: "Darker Grotesque", sans-serif !important;
  content: '+' !important;
}
.WeatherStation .station-accordion[aria-expanded="true"]::before {
  content: '−' !important; /* U+2212 minus sign */
}

/* ==== Resource Links Table (moved from inline) ==== */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.resource-links {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto; /* let columns size to content */
}
.resource-links th,
.resource-links td {
  padding: .6rem .75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e0e0e0;
}
/* Keep header visible when horizontally scrolling long tables */
.resource-links thead th {
  position: sticky;
  top: 0;
  background: var(--table-header-bg, #fff);
  z-index: 1;
}
/* Zebra striping */
.resource-links tbody tr:nth-child(even) {
  background: var(--table-zebra, #f7f9fc);
}
/* Column wrapping (4-col layout)
 (1) Category & (4) File Format: keep tight/no wrap
 (2) Page Title: normal wrap
 (3) Description: normal wrap */
.resource-links td:nth-child(1),
.resource-links td:nth-child(4) { white-space: nowrap; }
.resource-links td:nth-child(2),
.resource-links td:nth-child(3) { white-space: normal; }
/* Desktop/tablet sizing guidance */
.resource-links th:nth-child(1), .resource-links td:nth-child(1) { width: 12ch; } /* Category */
.resource-links th:nth-child(2), .resource-links td:nth-child(2) { min-width: 28ch; } /* Title */
.resource-links th:nth-child(3), .resource-links td:nth-child(3) { min-width: 32ch; } /* Description */
.resource-links th:nth-child(4), .resource-links td:nth-child(4) { width: 12ch; } /* File Format */
/* Mobile tweaks (≤ 640px) — denser spacing */
@media (max-width: 640px) {
  .resource-links th,
  .resource-links td {
    font-size: .90rem;
    line-height: 1.35;
    padding: .45rem .55rem;
  }
  .resource-links th:nth-child(2),
  .resource-links td:nth-child(2) { min-width: 16rem; } /* Title */
  .resource-links th:nth-child(3),
  .resource-links td:nth-child(3) { min-width: 18rem; } /* Description */
}
/* Very small phones (≤ 400px) — extra dense */
@media (max-width: 400px) {
  .resource-links th,
  .resource-links td {
    font-size: .86rem;
    line-height: 1.3;
    padding: .40rem .50rem;
  }
  .resource-links th:nth-child(2),
  .resource-links td:nth-child(2) { min-width: 14rem; } /* Title */
  .resource-links th:nth-child(3),
  .resource-links td:nth-child(3) { min-width: 16rem; } /* Description */
}
