:root {
  color-scheme: light;
  --page: #f1f9fa;
  --surface: #fff;
  --ink: #102f3e;
  --muted: #42616d;
  --deep: #083748;
  --pool: #006d73;
  --pool-light: #dff5f1;
  --stroke: #b6d1d8;
  --warning: #5c4008;
  --warning-light: #fff1cb;
  --white: #fff;
  font: 1rem/1.55 "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--ink); }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: var(--pool); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, select, input { font: inherit; }
:focus-visible { outline: 3px solid #00858d; outline-offset: 4px; }
.site-width { width: min(74rem, calc(100% - 3rem)); margin-inline: auto; }
.skip-link {
  position: absolute;
  inset-block-start: -6rem;
  inset-inline-start: 1rem;
  z-index: 2;
  background: var(--white);
  padding: .6rem .9rem;
}
.skip-link:focus { inset-block-start: .5rem; }

.site-header { background: var(--deep); border-bottom: .25rem solid #119796; }
.header-layout { display: flex; align-items: center; justify-content: space-between; gap: .15rem 1rem; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  min-height: 3.7rem;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 780;
  letter-spacing: -.03em;
  text-decoration: none;
}
.pool-sign {
  position: relative;
  inline-size: 1.62rem;
  block-size: 1.62rem;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: .32rem;
  color: #91ebe4;
}
.pool-sign::before {
  content: "";
  position: absolute;
  inset: .24rem .35rem auto;
  height: .66rem;
  border: 2px solid currentColor;
  border-width: 0 2px 2px;
  background: linear-gradient(currentColor, currentColor) center 43% / 100% 2px no-repeat;
}
.pool-sign::after {
  content: "";
  position: absolute;
  inset: auto .19rem .27rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.wordmark[aria-current] .pool-sign { background: #91ebe4; color: var(--deep); }
.city-nav { display: flex; gap: 0 1rem; flex-wrap: wrap; }
.city-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  border-block-end: 2px solid transparent;
  color: #d4f3f2;
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
}
.city-nav a:hover { color: var(--white); text-decoration: underline; }
.city-nav a[aria-current] { color: var(--white); border-color: #91ebe4; }
.site-header :focus-visible { outline-color: #80ebe3; }

.intro { padding-block: 2.2rem 1.2rem; }
h1 {
  font-size: clamp(2.3rem, 5.8vw, 4.05rem);
  line-height: 1.03;
  letter-spacing: -.055em;
  font-weight: 770;
  overflow-wrap: anywhere;
}
.intro p { margin-top: .52rem; max-width: 52ch; color: var(--muted); }
h2 { font-size: 1.38rem; line-height: 1.2; letter-spacing: -.02em; }
h3 { font-size: 1.27rem; line-height: 1.23; letter-spacing: -.016em; }

.lookup {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(9.5rem, auto) auto auto;
  gap: .68rem;
  align-items: end;
  padding: .85rem;
  border: 1px solid var(--stroke);
  border-radius: .55rem;
  background: var(--surface);
}
.lookup:not(:has(.lookup-city)) { grid-template-columns: minmax(12rem, 1fr) auto auto; }
.lookup label {
  display: grid;
  gap: .22rem;
  min-inline-size: 0;
  font-size: .875rem;
  font-weight: 660;
}
.lookup input, .lookup select, .lookup button {
  min-inline-size: 0;
  min-block-size: 2.75rem;
  border-radius: .35rem;
  font-size: 1rem;
}
.lookup input, .lookup select {
  width: 100%;
  border: 1px solid #789da8;
  background: var(--surface);
  color: var(--ink);
  padding: .4rem .65rem;
  font-weight: 450;
}
.lookup input::placeholder { color: var(--muted); }
.select-wrap { position: relative; min-inline-size: 0; }
.select-wrap select { appearance: none; padding-inline-end: 1.8rem; }
.select-wrap::after {
  content: "";
  position: absolute;
  inset-inline-end: .75rem;
  inset-block-start: 50%;
  width: .43rem;
  height: .43rem;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.lookup button {
  border: 1px solid var(--pool);
  padding: .36rem .85rem;
  background: var(--pool);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}
.lookup button:hover, .direction-link:hover { background: var(--deep); }
.lookup button.button-reset { background: var(--surface); color: var(--pool); }
.lookup button.button-reset:hover { background: var(--pool-light); }

.results { margin-block-start: 1.72rem; }
.results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem .75rem;
  margin-bottom: .65rem;
}
.result-count, .sources-date { font-size: .9rem; color: var(--muted); }
.park-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18.5rem, 100%), 1fr));
  gap: .75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.park-card {
  display: flex;
  flex-direction: column;
  gap: .21rem;
  min-width: 0;
  padding: .85rem .9rem;
  border: 1px solid var(--stroke);
  border-radius: .55rem;
  background: var(--surface);
  overflow-wrap: anywhere;
}
.park-city { color: var(--muted); font-size: .875rem; font-weight: 650; }
.park-title a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-block-size: 2.75rem;
  color: var(--ink);
  text-decoration: none;
}
.park-title a span {
  flex: 0 0 auto;
  inline-size: .58rem;
  block-size: .58rem;
  margin-inline: .15rem;
  border: solid var(--pool);
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}
.park-title a:hover, .park-title a:focus-visible { color: var(--pool); text-decoration: underline; }
.park-address { color: var(--muted); font-size: .95rem; }
.address-note { color: var(--muted); font-size: .875rem; }
.card-facts {
  display: grid;
  gap: .38rem;
  margin-top: .38rem;
  padding-top: .45rem;
  border-top: 1px solid var(--stroke);
}
.card-facts div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .2rem .5rem; align-items: start; }
.card-facts dt { color: var(--muted); font-size: .875rem; font-weight: 650; }
.card-facts dd { font-size: .875rem; }
.admission {
  display: inline-block;
  max-width: 100%;
  border-inline-start: .18rem solid var(--pool);
  border-radius: .2rem;
  padding: .06rem .38rem;
  color: var(--deep);
  background: var(--pool-light);
}
.admission--unknown { border-color: #946613; background: var(--warning-light); color: var(--warning); }
.card-actions { margin-block-start: auto; padding-block-start: .38rem; }
.card-directions {
  display: inline-flex;
  align-items: center;
  gap: .52rem;
  min-block-size: 2.75rem;
  font-size: .875rem;
  font-weight: 680;
}
.card-directions::after {
  content: "";
  inline-size: .55rem;
  block-size: .55rem;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
}
.empty { padding: .95rem; border: 1px solid var(--stroke); border-radius: .55rem; background: var(--surface); }

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .1rem .4rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: .875rem;
}
.breadcrumbs li + li::before { content: "/"; margin-inline-end: .4rem; color: #587783; }
.profile-intro { padding-block-start: 1.15rem; }
.profile-intro .address-note { font-size: .9rem; }
.direction-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: .78rem;
  border-radius: .35rem;
  padding: .36rem .85rem;
  color: var(--white);
  background: var(--pool);
  font-weight: 670;
  text-decoration: none;
}
.visit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.profile-section {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--stroke);
  border-radius: .55rem;
  background: var(--surface);
  overflow-wrap: anywhere;
}
.water-section { border-top: .22rem solid var(--pool); }
.visit-grid + .profile-section, .profile-section + .profile-section { margin-block-start: .75rem; }
.visit-grid .profile-section { margin-block-start: 0; }
.profile-section h2 { margin-bottom: .56rem; }
.detail-facts { display: grid; gap: .64rem; }
.detail-facts div + div { border-top: 1px solid var(--stroke); padding-top: .55rem; }
.detail-facts dt { font-size: .875rem; color: var(--muted); font-weight: 650; }
.detail-facts dd { margin-top: .09rem; }
.unconfirmed { color: var(--warning); }
.amenity-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0;
  padding: 0;
}
.amenity-list li { background: var(--pool-light); border-radius: .24rem; padding: .12rem .44rem; }
.source-list { margin: .54rem 0 0; padding-left: 1.2rem; }
.source-list li + li { margin-top: .45rem; }
.source-list p { font-size: .875rem; color: var(--muted); }
.source-section { margin-block-end: 2rem; }
.site-footer { padding-block: 1.1rem 2rem; color: var(--muted); font-size: .875rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-block-end: .35rem; }
.footer-links a { display: inline-flex; align-items: center; min-block-size: 2.75rem; font-weight: 650; }
.footer-links a[aria-current] { text-decoration-thickness: 2px; }
.guide-jump { font-size: .9rem; font-weight: 650; }
.coverage-note, .profile-intro p.coverage-note { color: var(--pool); font-size: .875rem; font-weight: 650; }
.planning-guide { margin-top: 1rem; }
.planning-guide div + div, .reader-page h2:not(:first-child) { margin-top: 1rem; }
.planning-guide h3 { margin-bottom: .35rem; }
.reader-page { max-width: 50rem; }
.reader-page p + p { margin-top: .65rem; }

@media (max-width: 39rem) {
  .site-width { width: calc(100% - 2rem); }
  .header-layout { flex-wrap: wrap; }
  .wordmark { min-height: 3.15rem; }
  .city-nav { gap: 0 .88rem; }
  .intro { padding-block: 1.2rem .82rem; }
  .lookup { grid-template-columns: minmax(0, 1fr) auto auto; padding: .65rem; gap: .48rem; }
  .lookup-query { grid-column: 1 / -1; }
  .lookup:not(:has(.lookup-city)) { grid-template-columns: minmax(0, 1fr) auto; }
  .lookup:not(:has(.lookup-city)) button[type="submit"] { justify-self: start; }
  .lookup button { padding-inline: .62rem; }
  .results { margin-block-start: 1rem; }
  .visit-grid { grid-template-columns: 1fr; }
  .detail-facts { gap: .55rem; }
}

@media (max-width: 22rem) {
  .header-layout { gap: 0; }
  .city-nav { flex-basis: 100%; }
  .wordmark { min-height: 2.7rem; }
  .city-nav a { min-height: 2.4rem; }
  .card-facts div { grid-template-columns: 6rem minmax(0, 1fr); }
}
