.stand {
  max-width: 980px;
  margin: 0 auto;
  padding: calc(var(--ticker-h) * 2 + 32px) 28px calc(var(--bottom-stack-h) + 64px);
  color: var(--ink);
}
@media (max-width: 720px) {
  .stand { padding: calc(var(--ticker-h) * 2 + 20px) 16px calc(var(--bottom-stack-h) + 40px); }
  .stand__title { font-size: 28px; }
  .stand__panel { padding: 16px; }
  .tide-chart { height: 180px; }
}

.stand__loading,
.stand__notfound {
  text-align: center; padding: 80px 20px;
  color: #6e7a7d;
}

.stand__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--bondi); text-decoration: none;
  margin-bottom: 18px;
}
.stand__back:hover { text-decoration: underline; }

.stand__type {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bondi);
  margin-bottom: 10px;
}
.stand__type--alert     { color: var(--coral); }
.stand__type--project   { color: var(--saffron); }
.stand__type--gazette   { color: #6b5b95; }
.stand__type--transport { color: #8a6d3b; }
.stand__type--listing   { color: #2a7a4f; }

.stand__title {
  font-weight: 900;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.stand__lede {
  font-size: 18px; font-weight: 400; color: #4a5a5e;
  margin: 0 0 28px;
}

.stand__panel {
  background: #fff;
  border: 1px solid #e8e4da;
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 18px;
}
.stand__panel h3 {
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #6e7a7d;
  margin: 0 0 14px;
}

.stand__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  list-style: none; padding: 0; margin: 0;
}
.stand__stat { display: flex; flex-direction: column; }
.stand__stat-value { font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.stand__stat-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #6e7a7d; margin-top: 4px; }

.stand__meta { font-size: 14px; color: #4a5a5e; line-height: 1.7; }
.stand__meta dt { font-weight: 700; color: var(--ink); display: inline; }
.stand__meta dd { display: inline; margin: 0 0 0 6px; }
.stand__meta dd::after { content: ""; display: block; }

.stand__source {
  margin-top: 28px;
  padding: 14px 18px;
  background: #f6f4ef;
  border-radius: 6px;
  font-size: 13px; color: #4a5a5e;
}
.stand__source a { color: var(--bondi); text-decoration: none; font-weight: 600; }
.stand__source a:hover { text-decoration: underline; }

/* Tide chart panel header */
.stand__panel--tide { padding: 22px 22px 18px; }
.tide-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.tide-header h3 { margin: 0; }

.moon { display: inline-flex; align-items: center; gap: 8px; }
.moon__label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #6e7a7d; }

/* Tide chart SVG */
.tide-chart { width: 100%; height: 280px; display: block; margin: 6px 0 4px; }
.tide-chart .axis,
.tide-chart .axis-tick { stroke: #c8c2b3; stroke-width: 1; }
.tide-chart .grid { stroke: #ece8de; stroke-width: 1; }
.tide-chart .datum { stroke: #8a8473; stroke-width: 1; stroke-dasharray: 2 3; opacity: 0.5; }
.tide-chart .daylight { fill: #fffaee; opacity: 0.55; }
.tide-chart .curve { fill: none; stroke: var(--bondi); stroke-width: 2.5; stroke-linejoin: round; }
.tide-chart .curve-fill { stroke: none; }
.tide-chart .now-line { stroke: var(--coral); stroke-width: 1.4; stroke-dasharray: 4 4; }
.tide-chart .now-dot { fill: var(--coral); }
.tide-chart .now-badge { fill: var(--coral); }
.tide-chart .now-badge-text { fill: #fff; font-size: 11px; font-weight: 700; font-family: "Montserrat", sans-serif; }
.tide-chart .label,
.tide-chart .datum-label { fill: #5a6266; font-size: 11px; font-family: "Montserrat", sans-serif; }
.tide-chart .datum-label { font-weight: 600; }
.tide-chart .event circle { fill: var(--bondi); }
.tide-chart .event--low circle { fill: #4a8d92; }
.tide-chart .event-label { fill: var(--ink); font-size: 11px; font-weight: 700; font-family: "Montserrat", sans-serif; }
.tide-chart .sun-glyph { fill: none; stroke: #c8a04a; stroke-width: 1.5; stroke-linecap: round; }
.tide-chart .sun-glyph circle { fill: #f2c14a; stroke: #c8a04a; }
.tide-chart .sun-glyph text { fill: #8a6d2a; font-size: 10px; font-weight: 600; font-family: "Montserrat", sans-serif; stroke: none; }
.tide-chart .sun-glyph--set circle { fill: #e6883d; stroke: #a85f1f; }
.tide-chart .sun-glyph--set { stroke: #a85f1f; }
.tide-chart .sun-glyph--set text { fill: #6e3f12; }

/* Next-events strip */
.tide-events {
  list-style: none; padding: 0; margin: 14px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.tide-event {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px;
  border-left: 3px solid var(--bondi);
  background: #f6f4ef;
  border-radius: 3px;
}
.tide-event--low { border-left-color: #4a8d92; }
.tide-event__kind { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #6e7a7d; }
.tide-event__time { font-size: 16px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.tide-event__height { font-size: 13px; font-weight: 600; color: #4a5a5e; }

.tide-foot { margin: 14px 0 0; font-size: 12px; color: #6e7a7d; }

@media (max-width: 720px) {
  .tide-chart { height: 220px; }
  .tide-events { grid-template-columns: repeat(2, 1fr); }
  .moon__label { display: none; }
}

/* Listing bar chart */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; padding: 0; margin: 0; list-style: none; }
.bars li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bars .bar { width: 100%; background: var(--bondi); border-radius: 3px 3px 0 0; min-height: 2px; }
.bars .bar-val { font-size: 13px; font-weight: 700; }
.bars .bar-label { font-size: 11px; color: #6e7a7d; letter-spacing: 0.04em; text-transform: uppercase; }
