/* MRLM dark theme for Cumulus data pages - matches gauges.htm.
   Load AFTER weatherstyle.css so these rules win. */

:root {
  color-scheme: dark;
  --navy-950: #06131f;
  --navy-900: #0a1d2c;
  --navy-800: #102c41;
  --blue: #36a9e1;
  --cyan: #6ed7ee;
  --red: #ef3340;
  --text: #f4f8fb;
  --muted: #9db1bf;
  --line: rgba(174, 211, 231, .15);
  --panel: rgba(14, 39, 57, .82);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: clamp(18px, 4vw, 48px) clamp(14px, 3vw, 32px);
  color: var(--text);
  background:
    radial-gradient(circle at 85% 5%, rgba(54, 169, 225, .18), transparent 30rem),
    linear-gradient(145deg, var(--navy-950), #071a29 52%, #0b2638);
  background-attachment: fixed;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .16;
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

#content {
  width: min(1100px, 100%);
  margin: 0 auto;
}

/* ---------- Header (location bar) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(125deg, rgba(16, 44, 65, .98), rgba(10, 29, 44, .84));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.hero::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  top: -85px;
  right: -50px;
  border: 32px solid rgba(54, 169, 225, .1);
  border-radius: 50%;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-family: inherit;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  text-align: left;
  text-transform: none;
}

.hero h1 span {
  color: var(--cyan);
}

.hero h2 {
  margin: 20px 0 0 !important;
  padding: 4px 10px;
  border-radius: 8px;
  color: #123146;
  font-size: clamp(.86rem, 2vw, 1rem);
  font-weight: 600;
  line-height: 1.7;
  text-align: center;
  text-transform: none;
}

/* ---------- Main panel ---------- */

.panel {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(7, 25, 39, .74);
  box-shadow: 0 14px 35px rgba(0, 0, 0, .2);
}

.panel>p:not(.credits) {
  margin: 0 0 12px;
  color: var(--text);
}

.panel b {
  color: var(--cyan);
}

a,
a:visited {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  color: #fff;
  text-decoration: none;
}

/* ---------- Data tables ---------- */

table {
  width: 100%;
  margin: 0 0 8px;
  border-collapse: collapse;
  font-family: inherit;
}

caption {
  padding: 18px 0 10px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: normal;
  text-align: left;
}

td {
  padding: 8px 12px;
  color: var(--text);
  font-size: .92rem;
  border-bottom: 1px solid var(--line);
}

.tableseparator_temp,
.tableseparator_rainfall,
.tableseparator_wind,
.tableseparator_pressure {
  padding: 10px 12px;
  border-bottom: 0;
  border-left: 4px solid var(--cyan);
  border-radius: 10px 10px 0 0;
  color: var(--text);
  background: rgba(16, 44, 65, .95);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

tr:not(:first-child)>.tableseparator_temp,
tr:not(:first-child)>.tableseparator_rainfall,
tr:not(:first-child)>.tableseparator_wind,
tr:not(:first-child)>.tableseparator_pressure {
  border-top: 16px solid transparent;
  background-clip: padding-box;
}

.tableseparator_temp {
  border-left-color: var(--red);
}

.tableseparator_rainfall {
  border-left-color: var(--blue);
}

.tableseparator_wind {
  border-left-color: var(--cyan);
}

.tableseparator_pressure {
  border-left-color: var(--muted);
}

.td_temperature_data,
.td_rainfall_data,
.td_wind_data,
.td_pressure_data {
  background: rgba(13, 42, 61, .55);
}

.td_temperature_data:nth-child(even),
.td_rainfall_data:nth-child(even),
.td_wind_data:nth-child(even),
.td_pressure_data:nth-child(even) {
  background: rgba(13, 42, 61, .8);
}

.td_temperature_data td:first-child,
.td_rainfall_data td:first-child,
.td_wind_data td:first-child,
.td_pressure_data td:first-child,
.main_table_text_labels {
  color: var(--muted);
}

.right_align_indented {
  text-align: right;
}

/* Almanac (index.htm) */
.labels {
  color: var(--muted);
  font-weight: 600;
  border-bottom: 0;
}

.site_data {
  color: var(--text);
  font-weight: 700;
  border-bottom: 0;
}

/* ---------- Buttons (month / chart selectors) ---------- */

input[type="button"],
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-height: 34px;
  margin: 5px 2px 0;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(3, 16, 26, .42);
  box-shadow: none;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: none;
  cursor: pointer;
  transition: .18s ease;
}

input[type="button"]:hover,
.button:hover {
  color: var(--text);
  border-color: rgba(110, 215, 238, .4);
  background: rgba(3, 16, 26, .42);
}

input[type="button"].is-active,
.button.is-active {
  color: #04141f;
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(110, 215, 238, .12);
}

input[type="button"]:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(110, 215, 238, .45);
  outline-offset: 2px;
}

/* ---------- Trends page ---------- */

#chartcontainer {
  margin: 20px 0 16px !important;
  overflow: hidden;
  border-radius: 16px;
}

#Graph_menu td {
  padding: 0;
  border-bottom: 0;
  color: var(--muted);
  text-align: center;
}

#Graph_menu .td_left {
  width: auto;
}

/* ---------- Navigation ---------- */

.td_navigation_bar {
  padding: 24px 10px 8px;
  border-bottom: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  letter-spacing: normal;
  text-align: center;
}

.td_navigation_bar a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 5px 3px 0;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(3, 16, 26, .42);
  font-size: .78rem;
  font-weight: 700;
  text-transform: capitalize;
  transition: .18s ease;
}

.td_navigation_bar a:hover {
  color: var(--text);
  border-color: rgba(110, 215, 238, .4);
}

.td_navigation_bar a[aria-current="page"] {
  color: #04141f;
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(110, 215, 238, .12);
}

/* ---------- Credits ---------- */

.credits {
  margin: 16px 0 0;
  color: var(--muted);
  font-family: inherit;
  font-size: .82rem;
  font-style: normal;
  line-height: 1.7;
  letter-spacing: normal;
  text-align: right;
  text-transform: none;
}

/* ---------- Small screens ---------- */

@media (max-width: 780px) {
  body {
    padding-inline: 12px;
  }

  .panel {
    overflow-x: auto;
  }

  td {
    padding: 7px 8px;
    font-size: .85rem;
  }
}

@media (max-width: 520px) {
  .hero {
    border-radius: 18px;
  }
}
