/* Lane Live — map-as-hero, overlay legend, editorial bands */

@keyframes live-rise {
  from {
    opacity: 0;
    transform: translateY(0.65rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes live-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.live-page.page-tight .live-stage {
  margin-top: 0;
}

.live-stage {
  padding-bottom: 3.5rem;
}

.live-stage-frame {
  background:
    radial-gradient(ellipse 90% 70% at 8% -10%, rgba(241, 183, 27, 0.16), transparent 52%),
    radial-gradient(ellipse 70% 55% at 92% 10%, rgba(79, 138, 91, 0.14), transparent 48%),
    linear-gradient(180deg, #1a2f3a 0%, #2f4858 55%, #243a46 100%);
  padding-bottom: 1rem;
}

/* —— Masthead —— */
.live-masthead {
  padding: 1.15rem 0 0.75rem;
  color: #f7f4ef;
}

.live-masthead-inner {
  display: block;
}

.live-masthead-copy {
  min-width: 0;
  max-width: 36rem;
  animation: live-rise 0.55s ease both;
}

.live-masthead-title {
  margin: 0;
  font-family: var(--font-display, Fraunces, serif);
  font-size: clamp(2.35rem, 5.5vw, 3.35rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
}

.live-masthead-lead {
  margin: 0.4rem 0 0;
  font-size: 1.05rem;
  line-height: 1.4;
  color: rgba(247, 244, 239, 0.88);
  max-width: 26rem;
}

/* —— Map + overlay legend —— */
.live-map-shell {
  animation: live-fade 0.7s ease 0.15s both;
}

.live-map-stack {
  position: relative;
}

.live-map {
  width: 100%;
  height: min(64vh, 620px);
  min-height: 340px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: #dfe8ee;
  z-index: 0;
  box-shadow: 0 18px 40px rgba(26, 47, 58, 0.28);
}

@media (min-width: 960px) {
  .live-map {
    height: min(78vh, 800px);
    min-height: 540px;
  }
}

.live-legend {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 500;
  max-width: calc(100% - 1.5rem);
  pointer-events: auto;
}

.live-legend-toggle {
  display: none;
}

.live-legend-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.4rem;
  font-size: 0.8125rem;
  color: var(--ink, #1e2a32);
  background: rgba(247, 244, 239, 0.94);
  border: 1px solid rgba(47, 72, 88, 0.14);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(26, 47, 58, 0.22);
  backdrop-filter: blur(8px);
}

@media (max-width: 640px) {
  .live-legend {
    top: 0.55rem;
    left: 0.55rem;
    right: auto;
    max-width: min(14.5rem, calc(100% - 3.5rem));
  }

  .live-legend-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    appearance: none;
    cursor: pointer;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--dark-blue, #2f4858);
    text-align: left;
    padding: 0.55rem 0.7rem;
    background: rgba(247, 244, 239, 0.96);
    border: 1px solid rgba(47, 72, 88, 0.16);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(26, 47, 58, 0.22);
    backdrop-filter: blur(8px);
  }

  .live-legend-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(241, 183, 27, 0.45);
  }

  .live-legend-chevron {
    margin-left: auto;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-1px, -1px);
    opacity: 0.65;
    transition: transform 0.15s ease;
  }

  .live-legend.is-open .live-legend-chevron {
    transform: rotate(-135deg) translate(-1px, -1px);
  }

  .live-legend-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.15rem;
    padding: 0.35rem;
    border-radius: 12px;
  }

  .live-legend.is-open .live-legend-menu {
    display: flex;
  }

  .live-legend-item {
    width: 100%;
    justify-content: flex-start;
    border-radius: 10px;
    padding: 0.5rem 0.65rem;
  }

  .live-map .leaflet-top.leaflet-left {
    top: 3.35rem;
  }

  .leaflet-popup-content-wrapper {
    border-radius: 10px;
  }

  .leaflet-popup-content {
    margin: 0.55rem 0.7rem;
    min-width: 0;
  }

  .live-popup-title {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }

  .live-popup-value {
    font-size: 0.84rem;
    margin-bottom: 0.3rem;
  }

  .live-popup-meta {
    font-size: 0.74rem;
    margin-bottom: 0.22rem;
    line-height: 1.35;
  }

  .live-popup-links {
    margin-top: 0.35rem;
    font-size: 0.75rem;
  }

  .live-popup-related {
    display: none;
  }

  .live-tide-list {
    font-size: 0.74rem;
  }
}

.live-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  user-select: none;
  appearance: none;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted, #5a6a74);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.35rem 0.7rem 0.35rem 0.5rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.live-legend-item:hover,
.live-legend-item:focus-visible {
  color: var(--ink, #1e2a32);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(47, 72, 88, 0.14);
  outline: none;
}

.live-legend-item:focus-visible {
  box-shadow: 0 0 0 3px rgba(241, 183, 27, 0.4);
}

.live-legend-item.is-focus {
  color: var(--dark-blue, #2f4858);
  background: #fff;
  border-color: rgba(47, 72, 88, 0.18);
  box-shadow: 0 1px 4px rgba(30, 42, 50, 0.1);
}

.live-legend-item.is-focus .live-dot {
  width: 0.8rem;
  height: 0.8rem;
  box-shadow: 0 0 0 2px rgba(241, 183, 27, 0.55);
}

/* Refresh control — stacks under Leaflet +/- */
.live-map .leaflet-top.leaflet-left .leaflet-control-live-refresh {
  margin-top: 0;
}

.live-map .leaflet-control-live-refresh a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  line-height: 1;
  color: #333;
  background: #fff;
}

.live-map .leaflet-control-live-refresh a:hover {
  background: #f4f4f4;
  color: #111;
}

.live-map .leaflet-control-live-refresh svg {
  width: 16px;
  height: 16px;
  display: block;
}

.live-map .leaflet-control-live-refresh.is-busy a {
  pointer-events: none;
  opacity: 0.7;
}

.live-map .leaflet-control-live-refresh.is-busy svg {
  animation: live-spin 0.75s linear infinite;
}

@keyframes live-spin {
  to {
    transform: rotate(360deg);
  }
}

.live-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.live-dot--river {
  background: #1d4ed8;
}

.live-dot--lake {
  background: #15803d;
}

.live-dot--air {
  background: #f1b71b;
}

.live-dot--outdoors {
  background: #c45c26;
}

.live-dot--events {
  background: #7c3aed;
}

.live-dot--tides {
  background: #c026d3;
}

.live-dot--reports {
  background: #be123c;
}

.live-map-note {
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  color: rgba(247, 244, 239, 0.72);
  min-height: 1.25em;
}

/* —— Editorial bands —— */
.live-bands {
  display: grid;
  gap: 0;
  margin-top: 0;
}

.live-band-head {
  margin-bottom: 1.25rem;
}

.live-band-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.live-band-aside {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #5a6a74);
}

.live-band-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-deep, #4f8a5b);
}

.live-band-head h2 {
  margin: 0;
  font-family: var(--font-display, Fraunces, serif);
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  font-weight: 600;
  font-style: italic;
  color: var(--ink, #1e2a32);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.live-muted {
  margin: 0;
  color: var(--muted, #5a6a74);
  font-size: 0.9375rem;
}

/* Right now — horizontal gauge chips */
.live-band--now {
  padding: 2.5rem 0 2rem;
  background:
    linear-gradient(180deg, rgba(47, 72, 88, 0.04), transparent 40%),
    var(--antique-cream, #f7f4ef);
}

.live-right-now {
  display: grid;
  gap: 1.25rem;
}

.live-flows {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.15rem 0.15rem 0.85rem;
  margin: 0 -0.15rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.live-flow-row {
  flex: 0 0 auto;
  width: min(11.5rem, 72vw);
  scroll-snap-align: start;
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem 0.95rem;
  background: #fff;
  border: 1px solid rgba(47, 72, 88, 0.1);
  border-radius: 4px;
  border-top: 3px solid #1d4ed8;
  box-shadow: 0 10px 28px rgba(47, 72, 88, 0.06);
}

.live-flow-name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted, #5a6a74);
  line-height: 1.25;
  min-width: 0;
}

.live-flow-cfs {
  font-family: var(--font-body, "Bricolage Grotesque", sans-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--dark-blue, #2f4858);
  line-height: 1.35;
  letter-spacing: 0;
}

.live-sidecar {
  display: grid;
  gap: 0.65rem;
  padding: 1.1rem 1.15rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(47, 72, 88, 0.18);
  border-radius: 4px;
  min-width: 0;
}

.live-right-now-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .live-right-now-grid.has-tides {
    grid-template-columns: minmax(0, 1.15fr) minmax(14rem, 0.85fr);
    gap: 1.25rem;
    align-items: stretch;
  }

  .live-sidecar {
    grid-template-columns: 1fr;
  }
}

.live-tides-col {
  padding: 1rem 1.1rem 1.1rem;
  background: #fff;
  border: 1px solid rgba(47, 72, 88, 0.12);
  border-radius: 4px;
  border-top: 3px solid #c026d3;
  box-shadow: 0 10px 28px rgba(47, 72, 88, 0.06);
  min-width: 0;
}

.live-tides-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.live-tides-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink, #1e2a32);
}

.live-tides-meta {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--muted, #5a6a74);
}

.live-tides-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-deep, #4f8a5b);
  text-decoration: none;
  white-space: nowrap;
}

.live-tides-link:hover,
.live-tides-link:focus-visible {
  text-decoration: underline;
}

.live-tide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.live-tide-table th,
.live-tide-table td {
  padding: 0.4rem 0.35rem;
  text-align: left;
  border-bottom: 1px solid rgba(47, 72, 88, 0.1);
  vertical-align: baseline;
}

.live-tide-table th {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted, #5a6a74);
  border-bottom-color: rgba(47, 72, 88, 0.18);
}

.live-tide-table tbody tr:last-child td {
  border-bottom: 0;
}

.live-tide-type {
  font-weight: 700;
  color: var(--ink, #1e2a32);
}

.live-tide-type--high {
  color: #9d174d;
}

.live-tide-type--low {
  color: #1d4ed8;
}

.live-tide-time {
  font-variant-numeric: tabular-nums;
  color: var(--ink, #1e2a32);
}

.live-tide-height {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right !important;
  color: var(--dark-blue, #2f4858);
}

.live-tide-table th:last-child {
  text-align: right;
}

.live-metric {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.75rem;
  align-items: baseline;
}

.live-metric-name {
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--ink, #1e2a32);
}

.live-metric-meta {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--muted, #5a6a74);
  line-height: 1.4;
}

.live-metric-value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.875rem;
  text-align: right;
  color: var(--dark-blue, #2f4858);
}

.live-metric-value a {
  color: var(--green-deep, #4f8a5b);
  text-decoration: none;
  font-weight: 700;
}

.live-metric-value a:hover {
  text-decoration: underline;
}

.live-status {
  display: inline-block;
  width: fit-content;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
}

.live-status--low {
  background: rgba(134, 187, 216, 0.35);
  color: #1e3a4a;
}

.live-status--good {
  background: rgba(79, 138, 91, 0.22);
  color: #1e4a28;
}

.live-status--high {
  background: rgba(241, 183, 27, 0.35);
  color: #5a4200;
}

.live-status--caution {
  background: rgba(242, 100, 25, 0.2);
  color: #7a2e0a;
}

.live-status--unknown {
  background: rgba(47, 72, 88, 0.1);
  color: #3a4a54;
}

.live-aqi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.55rem;
}

.live-aqi-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  background: rgba(241, 183, 27, 0.1);
  border-radius: 4px;
}

.live-aqi-name {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #5a6a74);
}

.live-aqi-val {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink, #1e2a32);
}

/* Pulse — dark statement band */
.live-band--pulse {
  padding: 0;
  border: 0;
  background:
    radial-gradient(ellipse 55% 90% at 100% 0%, rgba(241, 183, 27, 0.28), transparent 55%),
    radial-gradient(ellipse 40% 70% at 0% 100%, rgba(79, 138, 91, 0.25), transparent 50%),
    linear-gradient(160deg, #1a2f3a 0%, #2f4858 55%, #243a46 100%);
  color: #f7f4ef;
  animation: live-rise 0.6s ease 0.1s both;
}

.live-pulse-shell {
  padding: 2.75rem 0 3rem;
}

.live-band--pulse .live-band-kicker {
  color: var(--yellow-hot, #f1b71b);
}

.live-pulse-heading {
  margin: 0 0 1.35rem;
  font-family: var(--font-display, Fraunces, serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 14ch;
}

.live-pulse-row {
  display: grid;
  gap: 1.75rem;
  align-items: end;
}

@media (min-width: 860px) {
  .live-pulse-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3rem;
  }
}

.live-pulse-lead {
  margin: 0 0 1rem;
  font-family: var(--font-display, Fraunces, serif);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
  max-width: 36rem;
}

.live-pulse-rest {
  display: grid;
  gap: 0.55rem;
  max-width: 34rem;
  padding-left: 1rem;
  border-left: 3px solid rgba(241, 183, 27, 0.65);
}

.live-pulse-rest p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(247, 244, 239, 0.88);
}

.live-pulse-rest a {
  color: var(--yellow-hot, #f1b71b);
  font-weight: 600;
  text-decoration: none;
}

.live-pulse-rest a:hover,
.live-pulse-rest a:focus-visible {
  text-decoration: underline;
  color: #fff;
}

.live-ozzi-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 1.15rem 1.25rem;
  background: rgba(247, 244, 239, 0.08);
  border: 1px solid rgba(247, 244, 239, 0.2);
  border-radius: 4px;
  min-width: min(100%, 16rem);
}

.live-ozzi-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow-hot, #f1b71b);
}

.live-ozzi-btn {
  white-space: nowrap;
}

/* Go & gather */
.live-band--gather {
  padding: 2.75rem 0 1rem;
  background:
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(196, 92, 38, 0.08), transparent 55%),
    var(--antique-cream, #f7f4ef);
}

.live-gather-grid {
  display: grid;
  gap: 2.5rem 3rem;
}

@media (min-width: 860px) {
  .live-gather-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.live-gather-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.15rem;
  font-family: var(--font-body, "Bricolage Grotesque", sans-serif);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink, #1e2a32);
}

.live-gather-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.live-gather-dot--outdoors {
  background: #c45c26;
}

.live-gather-dot--events {
  background: #7c3aed;
}

.live-gather-dot--reports {
  background: #be123c;
}

.live-reports-block {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(47, 72, 88, 0.12);
}

.live-reports {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 800px) {
  .live-reports {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1.25rem;
  }
}

.live-report-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(47, 72, 88, 0.1);
  border-radius: 4px;
  border-left: 3px solid #be123c;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.live-report-card:hover,
.live-report-card:focus-visible {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 8px 22px rgba(47, 72, 88, 0.08);
  outline: none;
}

.live-report-card:focus-visible {
  outline: 2px solid var(--yellow-hot, #f1b71b);
  outline-offset: 2px;
}

.live-report-kicker {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted, #5a6a74);
}

.live-report-title {
  margin: 0;
  font-family: var(--font-display, Fraunces, serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink, #1e2a32);
  line-height: 1.25;
}

.live-report-species {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #be123c;
}

.live-report-summary {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted, #5a6a74);
}

.live-report-updated {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted, #5a6a74);
}

.live-featured,
.live-events {
  display: grid;
  gap: 0.15rem;
}

.live-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem 1rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
  padding: 0.85rem 0.35rem 0.85rem 0;
  border-bottom: 1px solid rgba(47, 72, 88, 0.1);
  transition: background 0.15s ease;
}

.live-card:last-child {
  border-bottom: 0;
}

.live-card:hover,
.live-card:focus-visible {
  background: rgba(255, 255, 255, 0.55);
}

.live-card:focus-visible {
  outline: 2px solid var(--yellow-hot, #f1b71b);
  outline-offset: 2px;
}

.live-card-index {
  font-family: var(--font-display, Fraunces, serif);
  font-size: 1.65rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  color: rgba(196, 92, 38, 0.85);
  min-width: 2rem;
  padding-top: 0.1rem;
}

.live-card-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.45rem 0.35rem;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 4px;
  line-height: 1;
}

.live-card-day {
  font-family: var(--font-display, Fraunces, serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: #5b21b6;
}

.live-card-mon {
  margin-top: 0.2rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6d28d9;
}

.live-card-body {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.live-card-kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted, #5a6a74);
}

.live-card-title {
  font-family: var(--font-display, Fraunces, serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink, #1e2a32);
  line-height: 1.25;
  transition: color 0.15s ease;
}

.live-card:hover .live-card-title,
.live-card:focus-visible .live-card-title {
  color: var(--green-deep, #4f8a5b);
}

.live-card-meta {
  font-size: 0.8125rem;
  color: var(--muted, #5a6a74);
  line-height: 1.35;
}

.live-panel-link {
  margin: 1.15rem 0 0;
  font-size: 0.9375rem;
}

.live-panel-link a {
  color: var(--green-deep, #4f8a5b);
  font-weight: 700;
  text-decoration: none;
}

.live-panel-link a:hover,
.live-panel-link a:focus-visible {
  text-decoration: underline;
}

.live-foot-links {
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(47, 72, 88, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted, #5a6a74);
}

.live-foot-links a {
  color: var(--dark-blue, #2f4858);
  text-decoration: none;
}

.live-foot-links a:hover,
.live-foot-links a:focus-visible {
  color: var(--green-deep, #4f8a5b);
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Leaflet marker icons */
.live-marker-icon {
  background: transparent !important;
  border: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.live-marker {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(30, 42, 50, 0.35);
  box-sizing: border-box;
  transform-origin: center center;
  transition: width 0.15s ease, height 0.15s ease, box-shadow 0.15s ease;
}

.live-marker--river {
  background: #1d4ed8;
}

.live-marker--lake {
  background: #15803d;
}

.live-marker--air {
  background: #f1b71b;
  width: 14px;
  height: 14px;
}

.live-marker--outdoors {
  background: #c45c26;
  width: 14px;
  height: 14px;
}

.live-marker--events {
  background: #7c3aed;
  width: 14px;
  height: 14px;
}

.live-marker--tides {
  background: #c026d3;
  width: 14px;
  height: 14px;
}

.live-marker--reports {
  background: #be123c;
  width: 14px;
  height: 14px;
}

.live-map[data-focus="rivers"] .live-marker--river,
.live-map[data-focus="lakes"] .live-marker--lake,
.live-map[data-focus="air"] .live-marker--air,
.live-map[data-focus="outdoors"] .live-marker--outdoors,
.live-map[data-focus="events"] .live-marker--events,
.live-map[data-focus="tides"] .live-marker--tides,
.live-map[data-focus="reports"] .live-marker--reports {
  width: 22px;
  height: 22px;
  border-width: 3px;
  box-shadow: 0 0 0 3px rgba(241, 183, 27, 0.45), 0 2px 6px rgba(30, 42, 50, 0.4);
  z-index: 2;
}

.live-tide-list {
  margin: 0.35rem 0 0.5rem;
  padding-left: 1.1rem;
  font-size: 0.8125rem;
  color: var(--ink, #1e2a32);
}

.live-tide-list li {
  margin: 0.15rem 0;
}

.live-marker--status-caution {
  box-shadow: 0 0 0 3px rgba(242, 100, 25, 0.45), 0 1px 4px rgba(30, 42, 50, 0.35);
}

.live-marker--status-high {
  box-shadow: 0 0 0 3px rgba(241, 183, 27, 0.45), 0 1px 4px rgba(30, 42, 50, 0.35);
}

.leaflet-popup-content-wrapper {
  border-radius: 12px;
  font-family: var(--font-body, "Bricolage Grotesque", sans-serif);
}

.leaflet-popup-content {
  margin: 0.85rem 1rem;
  min-width: 180px;
}

.live-popup-title {
  font-family: var(--font-display, Fraunces, serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--ink, #1e2a32);
}

.live-popup-meta {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  color: var(--muted, #5a6a74);
}

.live-popup-value {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dark-blue, #2f4858);
}

.live-popup-links {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
}

.live-popup-links a {
  color: var(--green-deep, #4f8a5b);
  font-weight: 600;
  text-decoration: none;
}

.live-popup-links a:hover {
  text-decoration: underline;
}

.live-popup-related {
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(47, 72, 88, 0.12);
}

.live-popup-related-label {
  margin: 0 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #5a6a74);
}

/* Keep Leaflet zoom clear of overlay legend */
.live-map .leaflet-top.leaflet-left {
  top: 4.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .live-masthead-copy,
  .live-map-shell,
  .live-band--pulse,
  .live-map .leaflet-control-live-refresh.is-busy svg {
    animation: none;
  }
}
