/* Tide chart on the home page (app/javascript/controllers/tide_controller.js) */
.tide-widget {
  max-width: 760px;
  margin: 1.5rem 0;
}

.tide-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.tide-date {
  font-weight: 400;
  color: #666;
}

.tide-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.tide-loading,
.tide-note-error {
  color: #666;
  font-size: 0.9rem;
}

.tide-line {
  fill: none;
  stroke: #1b6ca8;
  stroke-width: 2;
  stroke-linejoin: round;
}

.tide-area {
  fill: rgba(27, 108, 168, 0.14);
}

.tide-grid {
  stroke: #e2e2e2;
  stroke-width: 1;
}

.tide-baseline {
  stroke: #b8b8b8;
  stroke-width: 1;
}

.tide-tick {
  fill: #777;
  font-size: 11px;
  font-family: inherit;
}

.tide-now {
  stroke: #c0392b;
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}

.tide-now-label {
  fill: #c0392b;
}

.tide-events {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0.75rem 0 0.5rem;
  padding: 0;
  list-style: none;
}

.tide-event {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.tide-event-kind {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.tide-event-H .tide-event-kind {
  color: #1b6ca8;
}

.tide-event-L .tide-event-kind {
  color: #8c6239;
}

.tide-event-height {
  color: #555;
}

/* The next tide is the useful one; earlier and later today are muted. */
.tide-event.tide-next {
  background: #eaf3fa;
}

.tide-note {
  margin: 0;
  font-size: 0.8rem;
  color: #666;
}
