:root {
  color-scheme: dark;
  --bg: #061012;
  --bg-deep: #03090a;
  --panel: rgba(12, 28, 30, 0.76);
  --panel-solid: #0b1a1c;
  --line: rgba(189, 243, 229, 0.12);
  --line-strong: rgba(189, 243, 229, 0.22);
  --text: #edfff9;
  --muted: #8ca7a2;
  --cyan: #63f5dc;
  --cyan-soft: rgba(99, 245, 220, 0.12);
  --lime: #c7ff69;
  --orange: #ffb45f;
  --danger: #ff7777;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Avenir Next", Avenir, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(180deg, rgba(2, 12, 14, 0.45), rgba(2, 8, 9, 0.96)),
    radial-gradient(circle at 50% -15%, #123b3c 0, transparent 44%),
    var(--bg-deep);
  content: "";
}

a {
  color: inherit;
}

button {
  color: inherit;
  font: inherit;
}

.ambient {
  position: fixed;
  z-index: -3;
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
}

.ambient-one {
  top: 15vh;
  left: -180px;
  width: 480px;
  height: 480px;
  background: var(--cyan);
}

.ambient-two {
  top: 45vh;
  right: -230px;
  width: 560px;
  height: 560px;
  background: #377fdd;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(122, 184, 174, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 184, 174, 0.1) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  pointer-events: none;
}

.shell {
  width: min(1400px, calc(100% - 56px));
  margin: 0 auto;
  padding-bottom: 44px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.brand-mark svg {
  width: 27px;
  fill: rgba(99, 245, 220, 0.16);
  stroke: var(--cyan);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.slash {
  color: var(--cyan);
}

.live-state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255, 180, 95, 0.08), 0 0 18px rgba(255, 180, 95, 0.65);
}

.live-state.ready .live-dot {
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(99, 245, 220, 0.08), 0 0 18px rgba(99, 245, 220, 0.7);
  animation: pulse 2.6s infinite;
}

.live-state.error .live-dot {
  background: var(--danger);
  box-shadow: 0 0 0 5px rgba(255, 119, 119, 0.08);
}

@keyframes pulse {
  50% { opacity: 0.42; }
}

.hero {
  padding: 88px 0 62px;
}

.eyebrow,
.section-kicker {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow i {
  width: 18px;
  height: 1px;
  background: var(--line-strong);
}

.hero h1 {
  max-width: 970px;
  margin: 22px 0 36px;
  font-size: clamp(3.3rem, 7.8vw, 7.6rem);
  font-weight: 560;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(100deg, var(--cyan), var(--lime) 75%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lower {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.hero-copy {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.65;
}

.refresh-button,
.error-state button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.refresh-button:hover,
.error-state button:hover {
  border-color: rgba(99, 245, 220, 0.55);
  background: var(--cyan-soft);
  transform: translateY(-2px);
}

.refresh-button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.refresh-button:focus-visible,
.day-tab:focus-visible,
.error-state button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.refresh-button svg {
  width: 18px;
  fill: none;
  stroke: var(--cyan);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.refresh-button.loading svg {
  animation: rotate 800ms linear infinite;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.summary-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.summary-card,
.forecast-panel,
.info-panel,
.week-panel {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(16, 37, 39, 0.84), rgba(7, 18, 20, 0.82));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.summary-card {
  position: relative;
  display: flex;
  min-height: 148px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 24px;
  border-radius: 20px;
}

.summary-card::after {
  position: absolute;
  right: -50px;
  bottom: -80px;
  width: 180px;
  height: 180px;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.summary-card.featured {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  background: linear-gradient(135deg, rgba(24, 64, 62, 0.9), rgba(8, 27, 28, 0.9));
}

.summary-icon {
  display: grid;
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  place-items: center;
  border: 1px solid rgba(99, 245, 220, 0.3);
  border-radius: 50%;
  background: rgba(99, 245, 220, 0.07);
  box-shadow: inset 0 0 30px rgba(99, 245, 220, 0.06);
}

.summary-icon svg {
  width: 39px;
  fill: rgba(99, 245, 220, 0.13);
  stroke: var(--cyan);
  stroke-width: 1.3;
}

.summary-index {
  position: absolute;
  top: 18px;
  right: 21px;
  color: rgba(237, 255, 249, 0.16);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.summary-card > div:not(.summary-icon) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.summary-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.summary-card strong {
  overflow: hidden;
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  font-weight: 590;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-card small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.75rem;
}

.forecast-panel,
.week-panel {
  overflow: hidden;
  border-radius: var(--radius);
}

.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 27px 30px;
}

.panel-heading.compact {
  align-items: center;
  padding: 26px 28px 18px;
}

.panel-heading h2 {
  margin: 7px 0 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 570;
  letter-spacing: -0.035em;
}

.unit-legend {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.7rem;
}

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

.unit-legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.legend-wave { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.legend-wind { background: var(--lime); box-shadow: 0 0 10px var(--lime); }

.day-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(100px, 1fr));
  overflow-x: auto;
  padding: 0 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.day-tab {
  position: relative;
  min-width: 100px;
  padding: 18px 10px 17px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.day-tab:last-child {
  border-right: 0;
}

.day-tab::after {
  position: absolute;
  right: 9px;
  bottom: -1px;
  left: 9px;
  height: 2px;
  border-radius: 3px 3px 0 0;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(99, 245, 220, 0.8);
  content: "";
  opacity: 0;
  transform: scaleX(0.2);
  transition: opacity 180ms ease, transform 180ms ease;
}

.day-tab:hover,
.day-tab[aria-selected="true"] {
  color: var(--text);
  background: rgba(99, 245, 220, 0.035);
}

.day-tab[aria-selected="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.day-tab span,
.day-tab small {
  display: block;
}

.day-tab span {
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.day-tab small {
  margin-top: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem;
}

.table-frame {
  position: relative;
  min-height: 390px;
}

.loading-state,
.error-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  color: var(--muted);
}

.error-state[hidden],
.loading-state[hidden] {
  display: none;
}

.error-state strong {
  color: var(--text);
  font-size: 1.1rem;
}

.error-state p {
  max-width: 460px;
  margin: -6px 20px 2px;
  text-align: center;
}

.loader-wave {
  width: 64px;
  height: 21px;
  border: solid var(--cyan);
  border-width: 0 0 2px 0;
  border-radius: 50%;
  filter: drop-shadow(0 0 7px var(--cyan));
  animation: breathe 1.4s ease-in-out infinite;
}

@keyframes breathe {
  50% { opacity: 0.35; transform: scaleX(0.72) translateY(4px); }
}

.table-scroll {
  overflow-x: auto;
  scrollbar-color: rgba(99, 245, 220, 0.3) transparent;
}

.forecast-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
  table-layout: fixed;
}

.forecast-table th,
.forecast-table td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.forecast-table tr:last-child th,
.forecast-table tr:last-child td {
  border-bottom: 0;
}

.forecast-table th:last-child,
.forecast-table td:last-child {
  border-right: 0;
}

.forecast-table thead th {
  height: 54px;
  background: rgba(2, 10, 11, 0.36);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.forecast-table .corner-cell,
.forecast-table tbody th {
  width: 150px;
  padding-left: 27px;
  text-align: left;
}

.forecast-table tbody th {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.forecast-table tbody td {
  position: relative;
  height: 82px;
  padding: 12px 9px;
  text-align: center;
}

.forecast-table tbody tr:hover td,
.forecast-table tbody tr:hover th {
  background: rgba(99, 245, 220, 0.025);
}

.metric-main {
  display: block;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.metric-sub {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem;
}

.wave-cell {
  overflow: hidden;
}

.wave-cell::before {
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: max(2px, calc(var(--wave-level, 0) * 1%));
  max-height: 60%;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, rgba(99, 245, 220, 0.02), rgba(99, 245, 220, 0.1));
  content: "";
  pointer-events: none;
}

.direction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.direction-arrow {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 0.8rem;
  transform: rotate(var(--direction, 0deg));
}

.wind-row .direction-arrow {
  color: var(--lime);
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rating-pill::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  box-shadow: 0 0 9px currentColor;
}

.rating-pill.good,
.rating-pill.excellent { color: var(--cyan); border-color: rgba(99, 245, 220, 0.24); }
.rating-pill.average { color: var(--orange); border-color: rgba(255, 180, 95, 0.24); }
.rating-pill.poor { color: #e98f82; border-color: rgba(233, 143, 130, 0.2); }

.empty-value {
  color: rgba(140, 167, 162, 0.38);
}

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  align-items: stretch;
  gap: 18px;
  margin-top: 18px;
}

.info-panel {
  min-height: 300px;
  overflow: hidden;
  border-radius: var(--radius);
}

.report-panel,
.tide-panel {
  min-height: 490px;
}

.commentary-panel {
  grid-column: 1 / -1;
}

.channel-link,
.data-source,
.report-copy a,
.video-empty a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.channel-link:hover,
.data-source:hover,
.report-copy a:hover,
.video-empty a:hover {
  color: var(--cyan);
}

.video-report {
  padding: 6px 28px 28px;
}

.video-frame,
.video-skeleton {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #020708;
}

.video-frame iframe,
.video-cover,
.video-cover img,
.video-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-frame iframe {
  border: 0;
}

.video-cover {
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #020708;
  cursor: pointer;
}

.video-cover img {
  object-fit: cover;
  transition: filter 300ms ease, transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.video-shade {
  background:
    linear-gradient(180deg, rgba(1, 8, 9, 0.08), rgba(1, 8, 9, 0.5)),
    radial-gradient(circle at center, transparent 0, rgba(1, 8, 9, 0.16) 60%, rgba(1, 8, 9, 0.58) 100%);
}

.video-cover:hover img {
  filter: saturate(1.15) contrast(1.04);
  transform: scale(1.025);
}

.video-cover:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -4px;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid rgba(237, 255, 249, 0.48);
  border-radius: 50%;
  background: rgba(4, 15, 16, 0.68);
  box-shadow: 0 0 50px rgba(99, 245, 220, 0.2);
  backdrop-filter: blur(12px);
  transform: translate(-50%, -50%);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.play-button i {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid var(--text);
}

.video-cover:hover .play-button {
  border-color: var(--cyan);
  background: rgba(10, 39, 38, 0.88);
  transform: translate(-50%, -50%) scale(1.05);
}

.video-status {
  position: absolute;
  top: 15px;
  left: 15px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(237, 255, 249, 0.22);
  border-radius: 999px;
  background: rgba(3, 12, 13, 0.7);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.video-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.report-copy {
  padding: 20px 2px 0;
}

.report-date {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: capitalize;
}

.report-copy h3 {
  margin: 8px 0 8px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 590;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.report-copy p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.video-empty {
  display: grid;
  min-height: 330px;
  place-items: center;
  align-content: center;
  gap: 13px;
  border: 1px dashed var(--line-strong);
  border-radius: 17px;
  color: var(--muted);
  text-align: center;
}

.video-empty-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--cyan);
}

.video-empty strong {
  display: block;
  color: var(--text);
}

.video-empty p {
  margin: 6px 0 0;
}

.tide-orbit {
  width: 48px;
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
}

.tide-orbit circle:nth-child(2),
.tide-orbit path {
  stroke: var(--cyan);
}

.tide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 6px 28px 18px;
}

.tide-event {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  min-height: 116px;
  gap: 9px;
  padding: 16px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.018);
}

.tide-event.high {
  background: linear-gradient(145deg, rgba(99, 245, 220, 0.055), rgba(255, 255, 255, 0.012));
}

.tide-symbol {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 0.9rem;
}

.tide-event.low .tide-symbol {
  color: var(--muted);
}

.tide-event-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
}

.tide-event-copy small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tide-event-copy strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.15rem;
  font-weight: 550;
}

.tide-event-copy > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tide-empty {
  display: flex;
  min-height: 242px;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  border: 1px dashed var(--line-strong);
  border-radius: 15px;
  color: var(--muted);
  text-align: center;
}

.tide-empty > span {
  color: var(--cyan);
  font-size: 2rem;
}

.tide-empty strong {
  color: var(--text);
}

.tide-empty small {
  font-size: 0.78rem;
}

.data-source {
  margin: 0 28px 25px;
  font-size: 0.68rem;
}

.skeleton-line {
  opacity: 0.5;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
  to { background-position: -220% 0; }
}

.signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
}

.signal-bars i {
  width: 3px;
  border-radius: 3px;
  background: var(--cyan);
  opacity: 0.7;
}

.signal-bars i:nth-child(1) { height: 8px; }
.signal-bars i:nth-child(2) { height: 14px; }
.signal-bars i:nth-child(3) { height: 21px; }
.signal-bars i:nth-child(4) { height: 27px; opacity: 0.25; }

.commentary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 30px;
  gap: 0;
  padding: 6px 28px 28px;
}

.commentary-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 13px;
  margin: 0;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  color: #c2d4d0;
  font-size: 0.84rem;
  line-height: 1.55;
}

.commentary-item span {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
}

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

.week-panel {
  margin-top: 18px;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.week-card {
  min-width: 130px;
  padding: 21px 18px 23px;
  border-right: 1px solid var(--line);
}

.week-card:last-child {
  border-right: 0;
}

.week-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.week-card header strong {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.week-card header span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.61rem;
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 44px;
  margin: 20px 0 14px;
}

.mini-chart i {
  width: 100%;
  min-height: 3px;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(to top, rgba(99, 245, 220, 0.2), var(--cyan));
  opacity: 0.62;
}

.week-best {
  color: var(--muted);
  font-size: 0.68rem;
}

.week-best b {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 0.83rem;
  font-weight: 600;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 4px 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
}

footer > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

footer p {
  margin: 0;
}

footer a:hover {
  color: var(--cyan);
}

.footer-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--cyan);
  font-weight: 800;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 900px) {
  .shell { width: min(100% - 32px, 1400px); }
  .hero { padding-top: 68px; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-card.featured { grid-column: 1 / -1; }
  .lower-grid { grid-template-columns: 1fr; }
  .report-panel,
  .tide-panel { min-height: auto; }
  .day-tabs { grid-template-columns: repeat(7, 116px); }
  .week-grid { grid-template-columns: repeat(7, 150px); }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 22px, 1400px); }
  .topbar { min-height: 74px; }
  .brand { font-size: 0.7rem; letter-spacing: 0.11em; }
  .brand-mark { width: 34px; height: 34px; }
  .live-state span:last-child { display: none; }
  .hero { padding: 58px 2px 43px; }
  .hero h1 { margin: 18px 0 26px; font-size: clamp(3rem, 16vw, 5rem); line-height: 0.92; }
  .hero-lower { align-items: flex-start; flex-direction: column; }
  .refresh-button { min-height: 44px; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-card.featured { grid-column: auto; }
  .summary-card { min-height: 132px; }
  .panel-heading { align-items: flex-start; padding: 23px 20px; }
  .unit-legend { display: none; }
  .day-tabs { padding: 0 8px; }
  .forecast-table .corner-cell,
  .forecast-table tbody th { width: 116px; padding-left: 18px; }
  .forecast-table { min-width: 760px; }
  .lower-grid { margin-top: 12px; gap: 12px; }
  .panel-heading.compact { padding: 23px 21px 16px; }
  .video-report { padding: 4px 21px 23px; }
  .report-copy { padding-top: 17px; }
  .tide-list,
  .commentary-list { padding-right: 21px; padding-left: 21px; }
  .commentary-list { grid-template-columns: 1fr; }
  .data-source { margin-right: 21px; margin-left: 21px; }
  .week-panel { margin-top: 12px; }
  footer { align-items: flex-start; flex-direction: column; padding-bottom: 8px; }
}

@media (max-width: 420px) {
  .tide-list { grid-template-columns: 1fr; }
  .tide-event { min-height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
