@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800;900&family=IBM+Plex+Mono:wght@500;600;700&display=swap");

:root {
  --ink: #f3f7f5;
  --muted: #9eb1b3;
  --dim: #6f8587;
  --bg: #071114;
  --panel: rgba(12, 27, 31, 0.86);
  --panel-solid: #0d1e23;
  --panel-soft: #132a30;
  --line: rgba(184, 207, 202, 0.16);
  --line-strong: rgba(215, 236, 229, 0.28);
  --navy: #091b24;
  --deep: #031014;
  --water: #0b6f7c;
  --aqua: #31b7b1;
  --gold: #f4b84a;
  --copper: #c8793f;
  --marsh: #8ea766;
  --rose: #ff6f61;
  --good: #55c989;
  --warn: #e9a93f;
  --bad: #de5a52;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% -10%, rgba(49, 183, 177, 0.22), transparent 30rem),
    radial-gradient(circle at 85% 8%, rgba(244, 184, 74, 0.16), transparent 24rem),
    linear-gradient(180deg, #071114, #0b171a 46%, #061012);
  color: var(--ink);
  font-family: "Manrope", "Aptos", "Inter", "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-frame {
  min-height: 100vh;
}

.app-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px clamp(16px, 3vw, 34px);
  background: rgba(5, 17, 21, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-family: "IBM Plex Mono", monospace;
  color: #061014;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), transparent 35%),
    linear-gradient(135deg, var(--gold), var(--aqua));
  box-shadow: 0 10px 28px rgba(49, 183, 177, 0.28);
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
}

.brand-lockup strong {
  font-size: 1rem;
}

.brand-lockup small {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 0.88rem;
}

.top-nav a:hover,
.top-nav a:focus {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.top-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.top-actions input,
.ghost-btn,
.primary-btn {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.top-actions input {
  width: 142px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.06);
  color-scheme: dark;
}

.ghost-btn,
.primary-btn {
  cursor: pointer;
  padding: 0 13px;
  font-weight: 800;
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.05);
}

.primary-btn {
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold), #f28b44);
  color: #081318;
}

main {
  display: grid;
  gap: 20px;
}

.hero-brief {
  position: relative;
  min-height: min(820px, calc(100vh - 74px));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-art {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 16, 20, 0.92), rgba(4, 16, 20, 0.72) 42%, rgba(4, 16, 20, 0.42)),
    linear-gradient(0deg, rgba(4, 16, 20, 0.95), rgba(4, 16, 20, 0.2) 44%, rgba(4, 16, 20, 0.35)),
    url("/assets/marsh-hero.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 42px);
  display: grid;
  gap: 20px;
}

.location-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.location-tab {
  flex: 0 0 auto;
  min-width: 190px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.location-tab strong,
.location-tab span {
  display: block;
}

.location-tab span {
  color: var(--muted);
  font-size: 0.82rem;
}

.location-tab.active {
  background: rgba(49, 183, 177, 0.18);
  border-color: rgba(49, 183, 177, 0.72);
  box-shadow: inset 0 -3px 0 var(--aqua);
}

.brief-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.3fr) repeat(2, minmax(220px, 0.8fr));
  gap: 14px;
  align-items: stretch;
}

.brief-card,
.loading-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(8, 24, 30, 0.78);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.2vw, 24px);
  backdrop-filter: blur(18px);
}

.brief-card.primary {
  grid-row: span 2;
  min-height: 420px;
  display: grid;
  align-content: space-between;
  background:
    linear-gradient(160deg, rgba(11, 111, 124, 0.72), rgba(9, 27, 36, 0.9) 54%),
    radial-gradient(circle at 80% 20%, rgba(244, 184, 74, 0.2), transparent 18rem);
}

.brief-kicker,
.brief-label,
.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brief-card h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.4rem, 8vw, 6rem);
  line-height: 0.92;
}

.brief-card p {
  margin: 10px 0 0;
  color: #c6d5d4;
  line-height: 1.45;
}

.brief-card > strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.brief-card.danger {
  border-color: rgba(222, 90, 82, 0.42);
}

.score-orb {
  width: 142px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background: radial-gradient(circle at 35% 20%, #ffe7a4, var(--gold) 44%, #a75c2c);
  color: #061014;
  box-shadow: 0 18px 50px rgba(244, 184, 74, 0.26);
}

.score-orb strong {
  font-size: 3.5rem;
  line-height: 0.9;
}

.score-orb span {
  font-weight: 900;
}

.section-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 21, 25, 0.76);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.5vw, 26px);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
}

.section-heading.compact {
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 3px 0 0;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1;
}

.section-heading p {
  margin: 0;
}

.source-pill {
  align-self: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #d8e8e4;
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 11px;
  font-size: 0.8rem;
  font-weight: 800;
}

.forecast-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 10px;
}

.forecast-card {
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: linear-gradient(180deg, rgba(18, 42, 48, 0.96), rgba(10, 24, 28, 0.96));
  padding: 14px;
  display: grid;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}

.forecast-card.selected {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(244, 184, 74, 0.55);
}

.forecast-card > span,
.forecast-card em,
.forecast-card small {
  color: var(--muted);
  font-style: normal;
}

.forecast-card > strong {
  font-size: 3rem;
  line-height: 0.9;
}

.forecast-card.excellent > strong,
.forecast-card.good > strong {
  color: var(--good);
}

.forecast-card.average > strong {
  color: var(--warn);
}

.forecast-card.poor > strong {
  color: var(--bad);
}

.forecast-card dl,
.station-card dl {
  margin: 0;
  display: grid;
  gap: 7px;
}

.forecast-card dt,
.station-card dt {
  color: var(--dim);
  font-size: 0.74rem;
  text-transform: uppercase;
  font-weight: 900;
}

.forecast-card dd,
.station-card dd {
  margin: 0;
  color: #dce8e6;
}

.fish-marks {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 18px;
}

.fish-marks i {
  width: 25px;
  height: 14px;
  display: inline-block;
  opacity: 0.35;
  background: currentColor;
  color: #b7c5c5;
  clip-path: polygon(0 50%, 22% 10%, 70% 10%, 100% 50%, 70% 90%, 22% 90%);
}

.fish-marks i.on {
  color: var(--gold);
  opacity: 1;
}

.timeline-shell {
  display: grid;
  gap: 12px;
}

.timeline-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.86rem;
}

.timeline-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.timeline-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.major-dot { background: var(--gold); }
.tide-dot { background: var(--aqua); }
.sun-dot { background: var(--copper); }
.wind-dot { background: var(--marsh); }

.timeline-board {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 12.5% 100%,
    linear-gradient(180deg, #0b2027, #08161a);
}

.sun-marker {
  position: absolute;
  top: 0;
  bottom: 34px;
  width: 1px;
  color: var(--gold);
  background: rgba(244, 184, 74, 0.68);
  font-size: 0.72rem;
  font-weight: 900;
  padding-left: 6px;
  z-index: 4;
}

.sun-marker.sunset {
  color: #f59b58;
  background: rgba(245, 155, 88, 0.68);
}

.period-lane,
.event-lane,
.wind-lane {
  position: absolute;
  left: 18px;
  right: 18px;
}

.period-lane {
  top: 52px;
  height: 96px;
}

.period {
  position: absolute;
  top: 14px;
  min-width: 68px;
  height: 62px;
  border-radius: 8px;
  color: #081318;
  display: grid;
  align-content: center;
  padding: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  overflow: hidden;
}

.period b {
  display: block;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.period.major {
  background: linear-gradient(135deg, var(--gold), #ffd978);
}

.period.minor {
  background: linear-gradient(135deg, #7ecdc7, #c6f4ec);
}

.tide-svg {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 142px;
  width: calc(100% - 36px);
  height: 180px;
}

.tide-svg path {
  fill: none;
  stroke: var(--aqua);
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 12px rgba(49, 183, 177, 0.38));
}

.tide-point-layer {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  bottom: 0;
  z-index: 3;
  pointer-events: none;
}

.tide-point {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(49, 183, 177, 0.96);
  border-radius: 50%;
  background: #061014;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: auto;
}

.timeline-board:hover .tide-point {
  opacity: 0.72;
}

.tide-point:hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.event-lane {
  top: 306px;
  height: 46px;
}

.event {
  position: absolute;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 2px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
}

.event::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--aqua);
}

.event.low::before {
  background: var(--gold);
}

.event b {
  color: var(--muted);
  font-size: 0.72rem;
}

.wind-lane {
  bottom: 38px;
  height: 30px;
}

.wind-band {
  position: absolute;
  transform: translateX(-50%);
  min-width: 58px;
  text-align: center;
  border: 1px solid rgba(142, 167, 102, 0.48);
  border-radius: 999px;
  color: #e8f2de;
  background: rgba(142, 167, 102, 0.18);
  padding: 5px 7px;
  font-size: 0.72rem;
  font-weight: 800;
}

.period,
.event,
.wind-band {
  pointer-events: auto;
}

.timeline-tip {
  position: absolute;
  z-index: 8;
  max-width: 250px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(4, 16, 20, 0.96);
  color: var(--ink);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
  padding: 9px 11px;
  font-size: 0.82rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
  pointer-events: none;
}

.timeline-tip.show {
  opacity: 1;
  transform: translateY(0);
}

.hour-grid {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  color: var(--dim);
  font-size: 0.74rem;
}

.hour-grid span {
  text-align: center;
}

.split-section,
.notes-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: 18px;
}

.intel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.intel-card,
.station-card,
.insight-card,
.satellite-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 34, 39, 0.88);
  padding: 14px;
}

.intel-card span,
.station-card span,
.station-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.intel-card strong {
  display: block;
  margin-top: 5px;
  font-size: 1.65rem;
}

.intel-card p,
.station-card p,
.insight-card p,
.microcopy {
  color: #b8c9c8;
  line-height: 1.45;
  margin: 8px 0 0;
}

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

.station-card {
  display: grid;
  gap: 10px;
}

.station-card.live {
  border-left: 4px solid var(--good);
}

.station-card.quiet {
  opacity: 0.72;
  border-left: 4px solid var(--dim);
}

.station-card strong {
  display: block;
  font-size: 1.05rem;
}

.station-card dl {
  grid-template-columns: 1fr 1fr;
}

.hourly-table {
  overflow: hidden;
  border: 1px solid rgba(210, 232, 223, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(8, 23, 28, 0.98), rgba(4, 14, 17, 0.98)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 16px);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 50px rgba(0, 0, 0, 0.28);
}

.hourly-head,
.hourly-row {
  display: grid;
  grid-template-columns: minmax(76px, 0.7fr) minmax(230px, 2.05fr) minmax(92px, 0.85fr) minmax(112px, 1fr) minmax(128px, 1.08fr) minmax(92px, 0.85fr) minmax(120px, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
}

.hourly-head {
  color: rgba(213, 229, 225, 0.72);
  background: linear-gradient(180deg, rgba(19, 42, 48, 0.94), rgba(9, 26, 31, 0.94));
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(210, 232, 223, 0.2);
}

.hourly-row {
  min-height: 78px;
  border-bottom: 1px solid rgba(210, 232, 223, 0.12);
  background: linear-gradient(90deg, rgba(49, 183, 177, 0.05), rgba(255, 255, 255, 0.015));
  font-size: 1.02rem;
}

.hourly-row:hover {
  background: linear-gradient(90deg, rgba(244, 184, 74, 0.12), rgba(49, 183, 177, 0.08));
}

.hourly-row > div {
  min-width: 0;
}

.hourly-row:last-child {
  border-bottom: 0;
}

.hourly-day {
  position: relative;
  padding: 28px 18px 12px 34px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(244, 184, 74, 0.16), transparent 34%),
    rgba(3, 16, 20, 0.96);
  font-size: 1.35rem;
  font-weight: 900;
  border-top: 1px solid rgba(210, 232, 223, 0.12);
  border-bottom: 1px solid rgba(210, 232, 223, 0.14);
}

.hourly-day::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 28px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--aqua));
}

.hourly-time,
.hourly-temp,
.hourly-wind strong {
  font-weight: 900;
}

.hourly-time,
.hourly-temp,
.hourly-wind,
.tide-rating strong {
  font-family: "IBM Plex Mono", monospace;
}

.hourly-temp {
  font-size: 1.3rem;
  color: #f8d48a;
}

.hourly-condition {
  display: grid;
  grid-template-columns: 42px minmax(38px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.hourly-condition strong {
  font-size: 1.08rem;
  line-height: 1.25;
}

.rain-chance {
  color: #86c9d0;
  font-size: 0.84rem;
  font-weight: 900;
}

.wx-icon {
  width: 34px;
  height: 34px;
  position: relative;
  display: inline-block;
}

.wx-icon::before,
.wx-icon::after {
  content: "";
  position: absolute;
}

.wx-icon.cloud::before,
.wx-icon.partly::before,
.wx-icon.rain::before,
.wx-icon.storm::before {
  left: 4px;
  top: 13px;
  width: 26px;
  height: 14px;
  border-radius: 999px;
  background: #9fb7c2;
  box-shadow: 7px -7px 0 -1px #9fb7c2, -2px -4px 0 0 #9fb7c2;
}

.wx-icon.sun::before,
.wx-icon.partly::after {
  left: 5px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
}

.wx-icon.rain::after {
  left: 10px;
  top: 27px;
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: #4f95b4;
  box-shadow: 8px 0 0 #4f95b4, 16px 0 0 #4f95b4;
}

.wx-icon.storm::after {
  left: 15px;
  top: 23px;
  width: 10px;
  height: 14px;
  background: #d89b2b;
  clip-path: polygon(45% 0, 100% 0, 62% 45%, 100% 45%, 20% 100%, 45% 52%, 8% 52%);
}

.hourly-wind {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.hourly-wind span {
  color: var(--muted);
}

.tide-rating {
  display: inline-grid;
  gap: 2px;
  min-width: 112px;
  width: max-content;
  padding: 8px 10px;
  border: 1px solid rgba(210, 232, 223, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.tide-rating strong {
  color: var(--aqua);
  font-size: 1rem;
  line-height: 1;
}

.tide-rating strong span {
  color: var(--muted);
  font-size: 0.72rem;
}

.tide-rating em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.tide-rating.high {
  border-color: rgba(244, 184, 74, 0.46);
  background: rgba(244, 184, 74, 0.12);
}

.tide-rating.high strong {
  color: var(--gold);
}

.tide-rating.mid {
  border-color: rgba(49, 183, 177, 0.38);
  background: rgba(49, 183, 177, 0.1);
}

.tide-rating.low {
  border-color: rgba(222, 90, 82, 0.4);
  background: rgba(222, 90, 82, 0.1);
}

.tide-rating.low strong {
  color: var(--rose);
}

.tide-rating.unavailable {
  opacity: 0.62;
}

.wind-arrow {
  width: 13px;
  height: 13px;
  display: inline-block;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(calc(var(--dir) - 45deg));
  transform-origin: center;
}

.insight-stack {
  display: grid;
  gap: 12px;
}

.insight-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.insight-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 12px 0 0;
}

.insight-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.insight-card li span {
  color: var(--muted);
  text-align: right;
}

.satellite-panel img {
  display: block;
  width: 100% !important;
  inline-size: 100% !important;
  height: clamp(280px, 36vw, 520px);
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0b171a;
}

.modis-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.modis-day {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  min-height: 54px;
  padding: 8px;
  display: grid;
  gap: 2px;
  cursor: pointer;
}

.modis-day span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.modis-day strong {
  font-size: 0.78rem;
}

.modis-day.active {
  border-color: var(--gold);
  background: rgba(244, 184, 74, 0.14);
}

.modis-day:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.microcopy a {
  color: var(--gold);
}

.app-footer {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--dim);
  font-size: 0.86rem;
}

.source-warning #sourceStatus {
  color: var(--warn);
}

.loading-card {
  color: var(--muted);
}

@media (max-width: 1180px) {
  .app-top {
    grid-template-columns: 1fr;
  }

  .top-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .brief-grid {
    grid-template-columns: 1fr 1fr;
  }

  .brief-card.primary {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 360px;
  }

  .forecast-rail {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
  }

  .split-section,
  .notes-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-top {
    position: static;
    padding: 12px;
  }

  .brand-lockup small,
  .top-nav {
    display: none;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr auto auto;
  }

  .top-actions input {
    width: 100%;
  }

  .hero-brief {
    min-height: auto;
  }

  .hero-overlay {
    padding: 14px;
  }

  .location-tab {
    min-width: 160px;
  }

  .brief-grid,
  .intel-grid,
  .station-grid {
    grid-template-columns: 1fr;
  }

  .brief-card.primary {
    min-height: 420px;
  }

  .brief-card h1 {
    font-size: 3.1rem;
  }

  .section-shell {
    width: calc(100% - 20px);
    padding: 14px;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .forecast-rail {
    grid-template-columns: 1fr;
  }

  .forecast-card {
    min-height: 210px;
  }

  .timeline-board {
    min-height: 520px;
  }

  .hourly-table {
    overflow-x: auto;
  }

  .hourly-head,
  .hourly-row {
    min-width: 940px;
  }

  .modis-days {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .period-lane,
  .event-lane,
  .wind-lane,
  .tide-svg,
  .hour-grid {
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
  }

  .period {
    min-width: 58px;
    font-size: 0.68rem;
  }

  .wind-band {
    min-width: 48px;
    font-size: 0.66rem;
  }

  .app-footer {
    width: calc(100% - 20px);
    flex-direction: column;
  }
}
