:root {
  color-scheme: light;
  --pool-ink: #1f2928;
  --pool-muted: #5e6869;
  --pool-faint: #899091;
  --pool-line: #d9ddd5;
  --pool-paper: #f3f0e6;
  --pool-panel: #fffefa;
  --pool-forest: #244c3d;
  --pool-forest-deep: #1c382f;
  --pool-water: #d7edf1;
  --pool-water-deep: #2f6f85;
  --pool-clay: #a34d35;
  --pool-gold: #c48a22;
  --pool-red: #b43f35;
  --pool-purple: #7653a6;
  --pool-blue: #266f9f;
  --pool-shadow: 0 12px 32px rgba(31, 41, 40, 0.08);
  --pool-content: 1120px;
  --pool-radius: 8px;
  --pool-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino,
    Georgia, Cambria, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.pool-page {
  margin: 0;
  color: var(--pool-ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--pool-paper);
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: var(--pool-forest);
  font-weight: 700;
  text-underline-offset: 3px;
}

.pool-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--pool-line);
  background: rgba(243, 240, 230, 0.94);
  backdrop-filter: blur(10px);
}

.pool-header-inner,
.pool-status-inner,
.pool-current-inner,
.pool-section-inner,
.pool-footer-inner {
  width: min(var(--pool-content), 100%);
  margin-inline: auto;
}

.pool-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
}

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

.pool-mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 111, 133, 0.2);
  border-radius: var(--pool-radius);
  background: var(--pool-water);
  color: var(--pool-water-deep);
}

.pool-mark svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.pool-mark circle {
  fill: #f2be58;
  stroke: #b87522;
}

.pool-eyebrow,
.pool-kicker {
  margin: 0;
  color: var(--pool-faint);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pool-brand-title {
  display: block;
  color: var(--pool-forest-deep);
  font-family: var(--pool-serif);
  font-size: 1.32rem;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: 0;
}

.pool-nav {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pool-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--pool-line);
  border-radius: var(--pool-radius);
  padding: 0 12px;
  background: var(--pool-panel);
  color: var(--pool-forest);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.pool-nav a:hover,
.pool-nav a:focus-visible {
  border-color: var(--pool-forest);
  background: #edf3ee;
}

.pool-nav svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.pool-status-band {
  border-bottom: 1px solid var(--pool-line);
  background: #ebe7d9;
}

.pool-status-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 22px;
  align-items: stretch;
  padding: 30px 24px;
}

.pool-status-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(36, 76, 61, 0.14);
  border-radius: var(--pool-radius);
  padding: 28px;
  background: var(--pool-panel);
  box-shadow: var(--pool-shadow);
}

.pool-status-panel h1 {
  margin: 8px 0 10px;
  color: var(--pool-forest-deep);
  font-family: var(--pool-serif);
  font-size: 3.15rem;
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: 0;
}

.pool-summary {
  max-width: 58ch;
  margin: 0;
  color: var(--pool-ink);
  font-size: 1.08rem;
}

.pool-action-note {
  max-width: 62ch;
  margin: 12px 0 0;
  color: var(--pool-muted);
}

.pool-command-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pool-refresh,
.pool-action-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--pool-radius);
  padding: 0 14px;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
}

.pool-refresh {
  border: 0;
  background: var(--pool-forest);
  color: #fff;
  cursor: pointer;
}

.pool-refresh:hover,
.pool-refresh:focus-visible {
  background: var(--pool-forest-deep);
}

.pool-refresh:disabled {
  cursor: wait;
  opacity: 0.68;
}

.pool-refresh svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.pool-action-link {
  border: 1px solid var(--pool-line);
  background: #fff;
  color: var(--pool-forest);
}

.pool-action-link:hover,
.pool-action-link:focus-visible {
  border-color: var(--pool-forest);
  background: #edf3ee;
}

.pool-status-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 0 0;
  border: 1px solid var(--pool-line);
  border-radius: var(--pool-radius);
  overflow: hidden;
  background: var(--pool-line);
}

.pool-status-meta div {
  min-width: 0;
  padding: 13px 14px;
  background: #fff;
}

.pool-status-meta dt {
  margin: 0 0 4px;
  color: var(--pool-faint);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pool-status-meta dd {
  margin: 0;
  color: var(--pool-ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.pool-alert {
  margin: 16px 0 0;
  border-left: 3px solid var(--pool-clay);
  border-radius: 0 var(--pool-radius) var(--pool-radius) 0;
  padding: 10px 12px;
  background: #f5ece5;
  color: #6d3425;
  font-weight: 700;
}

.pool-photo {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--pool-radius);
  background: var(--pool-water);
  box-shadow: var(--pool-shadow);
}

.pool-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pool-photo figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  border-radius: var(--pool-radius);
  padding: 6px 9px;
  background: rgba(31, 41, 40, 0.75);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.pool-current-strip {
  background: var(--pool-forest-deep);
  color: #fff;
}

.pool-current-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px;
}

.pool-status-dot,
.pool-legend-dot {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: #9aa1a2;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.pool-current-label {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.pool-current-inner strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.25;
}

.pool-section {
  border-bottom: 1px solid var(--pool-line);
  background: var(--pool-paper);
}

.pool-legend-section {
  background: #fffefa;
}

.pool-section-inner {
  padding: 30px 24px;
}

.pool-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.pool-section-heading h2 {
  margin: 3px 0 0;
  color: var(--pool-forest-deep);
  font-family: var(--pool-serif);
  font-size: 1.85rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.pool-legend-list,
.pool-info-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pool-legend-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.pool-legend-list li {
  min-width: 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--pool-line);
  border-radius: var(--pool-radius);
  padding: 13px;
  background: #fff;
}

.pool-legend-list strong,
.pool-legend-list span {
  display: block;
}

.pool-legend-list strong {
  margin-bottom: 4px;
  color: var(--pool-ink);
  line-height: 1.2;
}

.pool-legend-list span {
  color: var(--pool-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.pool-info-section {
  background: var(--pool-paper);
}

.pool-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pool-info-card {
  min-width: 0;
  border: 1px solid var(--pool-line);
  border-radius: var(--pool-radius);
  padding: 16px;
  background: var(--pool-panel);
}

.pool-info-card h3 {
  margin: 0 0 10px;
  color: var(--pool-forest-deep);
  font-size: 1rem;
  letter-spacing: 0;
}

.pool-info-card p,
.pool-info-card dl {
  margin: 0;
  color: var(--pool-muted);
  font-size: 0.93rem;
}

.pool-info-card p + p,
.pool-info-card dl div + div {
  margin-top: 10px;
}

.pool-info-card dt {
  margin: 0 0 2px;
  color: var(--pool-ink);
  font-weight: 800;
}

.pool-info-card dd {
  margin: 0;
}

.pool-footer {
  background: #ebe7d9;
  color: var(--pool-muted);
}

.pool-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px 26px;
  font-size: 0.78rem;
}

.pool-footer p {
  max-width: 78ch;
  margin: 0;
}

.pool-maker-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--pool-forest);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.pool-maker-link img {
  width: 20px;
  height: 20px;
}

.pool-status-dot[data-state="open"],
.pool-legend-dot[data-state="open"] {
  background: #3f7d5f;
}

.pool-status-dot[data-state="temporarily-closed"],
.pool-legend-dot[data-state="temporarily-closed"] {
  background: var(--pool-gold);
}

.pool-status-dot[data-state="closed"],
.pool-legend-dot[data-state="closed"] {
  background: var(--pool-red);
}

.pool-status-dot[data-state="event-only"],
.pool-legend-dot[data-state="event-only"] {
  background: var(--pool-purple);
}

.pool-status-dot[data-state="at-capacity"],
.pool-legend-dot[data-state="at-capacity"] {
  background: var(--pool-blue);
}

.pool-status-dot[data-state="unknown"],
.pool-status-dot[data-state="loading"],
.pool-legend-dot[data-state="unknown"] {
  background: #8d9492;
}

body[data-pool-state="open"] .pool-status-panel {
  border-color: rgba(63, 125, 95, 0.38);
}

body[data-pool-state="temporarily-closed"] .pool-status-panel,
body[data-pool-state="at-capacity"] .pool-status-panel {
  border-color: rgba(196, 138, 34, 0.42);
}

body[data-pool-state="closed"] .pool-status-panel {
  border-color: rgba(180, 63, 53, 0.36);
}

body[data-pool-state="event-only"] .pool-status-panel {
  border-color: rgba(118, 83, 166, 0.36);
}

@media (max-width: 980px) {
  .pool-status-inner,
  .pool-info-grid,
  .pool-legend-list {
    grid-template-columns: 1fr 1fr;
  }

  .pool-photo {
    min-height: 300px;
  }
}

@media (max-width: 720px) {
  .pool-header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
  }

  .pool-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .pool-status-inner,
  .pool-info-grid,
  .pool-legend-list {
    grid-template-columns: 1fr;
  }

  .pool-status-inner,
  .pool-section-inner,
  .pool-current-inner,
  .pool-footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pool-status-inner {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .pool-status-panel {
    padding: 20px;
  }

  .pool-status-panel h1 {
    font-size: 2.35rem;
  }

  .pool-summary {
    font-size: 1rem;
  }

  .pool-status-meta {
    grid-template-columns: 1fr;
  }

  .pool-photo {
    min-height: 230px;
  }

  .pool-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .pool-section-heading h2 {
    font-size: 1.55rem;
  }

  .pool-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
