:root {
  --ink: #15323a;
  --ink-soft: #38535a;
  --lake: #006d77;
  --lake-dark: #064b59;
  --lake-light: #dff4f2;
  --sky: #e8f5fa;
  --sand: #f6f0e4;
  --paper: #fffdf8;
  --white: #fff;
  --line: #d8e1dd;
  --good: #177657;
  --good-soft: #e2f5ec;
  --excellent: #0f6b70;
  --mixed: #9a6700;
  --mixed-soft: #fff3ce;
  --danger: #b42318;
  --danger-soft: #fee9e7;
  --advisory: #9a5b00;
  --advisory-soft: #fff2cc;
  --unknown: #68777a;
  --shadow-sm: 0 8px 24px rgba(14, 54, 62, 0.08);
  --shadow-lg: 0 20px 60px rgba(8, 45, 54, 0.18);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.dialog-open {
  overflow: hidden;
}

img {
  max-width: 100%;
}

a {
  color: var(--lake);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 3px solid #f4b942;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--lake-dark);
  color: var(--white);
}

.site-header-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 20px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 600px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(4, 42, 51, 0.9) 0%, rgba(4, 42, 51, 0.72) 44%, rgba(4, 42, 51, 0.24) 72%, rgba(4, 42, 51, 0.08) 100%),
    url("/assets/beach-report/sleeping-bear-beach-nps.jpg") center 62% / cover no-repeat;
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(2, 35, 43, 0.36));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 68px 0 88px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #bbf1ed;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #60d6ac;
  box-shadow: 0 0 0 5px rgba(96, 214, 172, 0.16);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.99;
  text-wrap: balance;
}

.hero-lede {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.hero-truth {
  max-width: 700px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.search-deck {
  max-width: 820px;
  margin-top: 36px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-lg);
}

.search-field {
  position: relative;
}

.search-field svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--ink-soft);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px 12px 48px;
  border: 0;
  border-radius: 12px;
  background: #f5f8f6;
  color: var(--ink);
  font-size: 16px;
}

.search-field input::placeholder {
  color: #687b80;
}

.button {
  min-height: 50px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--lake);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--lake-dark);
}

.button-secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--lake);
  background: var(--lake-light);
}

.button svg {
  width: 18px;
  height: 18px;
}

.live-ribbon {
  border-bottom: 1px solid #cce4e1;
  background: #edf9f7;
}

.live-ribbon-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: 54px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  color: var(--lake-dark);
  font-size: 13px;
}

.live-ribbon-status,
.source-health {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.source-health {
  color: var(--ink-soft);
}

.source-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--unknown);
}

.source-dot.live {
  background: var(--good);
}

.source-dot.partial {
  background: var(--mixed);
}

.source-dot.unavailable {
  background: var(--danger);
}

.page-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 84px;
}

.section {
  margin-top: 72px;
}

.section:first-child {
  margin-top: 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-kicker {
  margin: 0 0 7px;
  color: var(--lake);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section h2,
.content-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.section-intro {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.season-panel {
  position: relative;
  padding: 24px 26px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  border: 1px solid #bee0dc;
  border-radius: var(--radius);
  background: linear-gradient(110deg, #e7f8f5, #f8fbf5);
}

.season-panel::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(0, 109, 119, 0.08);
}

.season-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--lake);
  font-size: 26px;
}

.season-panel strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.season-panel p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.season-panel.is-paused {
  border-color: #d8d3c5;
  background: linear-gradient(110deg, #f4f0e8, #f8faf8);
}

.alert-panel {
  margin-top: 16px;
  padding: 18px 20px;
  display: none;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid #efb3ad;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: #74251d;
}

.alert-panel.show {
  display: grid;
}

.alert-panel strong {
  display: block;
}

.alert-panel p {
  margin: 2px 0 0;
  font-size: 14px;
}

.alert-panel a {
  color: #74251d;
  font-weight: 800;
}

.daily-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.daily-card,
.beach-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.daily-card:hover,
.beach-card:hover {
  transform: translateY(-3px);
  border-color: #9ccbc7;
  box-shadow: 0 16px 36px rgba(11, 59, 67, 0.13);
}

.daily-card {
  min-height: 330px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.daily-card:first-child {
  color: var(--white);
  background:
    linear-gradient(160deg, rgba(3, 70, 79, 0.97), rgba(0, 109, 119, 0.92)),
    var(--lake);
}

.daily-rank {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--sand);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
}

.daily-card:first-child .daily-rank {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.daily-title {
  margin: 22px 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1.12;
}

.daily-meta {
  color: var(--ink-soft);
  font-size: 13px;
}

.daily-card:first-child .daily-meta {
  color: rgba(255, 255, 255, 0.72);
}

.score-row {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.score-value {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.score-value small {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
}

.score-label {
  max-width: 140px;
  text-align: right;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.condition-chips {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.condition-chip,
.trait-chip {
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf4f2;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
}

.daily-card:first-child .condition-chip {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.explorer-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #f8faf7;
  box-shadow: var(--shadow-sm);
}

.explorer-toolbar {
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.explorer-toolbar .search-field input {
  border: 1px solid var(--line);
  background: #f8faf8;
}

.select-wrap select {
  min-height: 50px;
  padding: 10px 38px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
}

.filter-row {
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfb;
}

.filter-button {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.active {
  border-color: var(--lake);
  background: var(--lake-light);
  color: var(--lake-dark);
}

.explorer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  min-height: 680px;
}

.beach-list-panel {
  padding: 20px;
}

.result-summary {
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 13px;
}

.beach-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.beach-card {
  padding: 17px;
  text-align: left;
  cursor: pointer;
}

.beach-card[hidden] {
  display: none;
}

.beach-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.beach-card h3,
.beach-card-title {
  display: block;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.18;
}

.beach-card-meta {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
}

.mini-score {
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--good-soft);
  color: var(--good);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
}

.mini-score[data-level="mixed"],
.mini-score[data-level="caution"] {
  background: var(--mixed-soft);
  color: var(--mixed);
}

.mini-score[data-level="closed"],
.mini-score[data-level="advisory"],
.mini-score[data-level="danger"] {
  background: var(--danger-soft);
  color: var(--danger);
}

.mini-score[data-level="unknown"] {
  background: #edf0ef;
  color: var(--unknown);
}

.card-status {
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 800;
}

.card-facts {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.card-fact {
  padding: 8px;
  border-radius: 8px;
  background: #f5f8f6;
}

.card-fact span {
  display: block;
  color: #718185;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-fact strong {
  display: block;
  margin-top: 2px;
  font-size: 12px;
}

.map-panel {
  position: sticky;
  top: 0;
  min-height: 680px;
  border-left: 1px solid var(--line);
  background: #dce9e8;
}

#beachMap {
  width: 100%;
  height: 100%;
  min-height: 680px;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  min-height: 680px;
  display: grid;
  place-items: center;
  padding: 30px;
  color: var(--ink-soft);
  text-align: center;
}

.leaflet-container {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.leaflet-popup-content-wrapper {
  border-radius: 14px;
}

.map-popup {
  min-width: 190px;
}

.map-popup strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.map-popup span {
  color: var(--ink-soft);
  font-size: 12px;
}

.map-popup button {
  margin-top: 10px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: var(--lake);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 42px 20px;
  color: var(--ink-soft);
  text-align: center;
}

.loading-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.skeleton {
  min-height: 260px;
  border-radius: var(--radius);
  background:
    linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, 0.72) 45%, transparent 65%) 0 0 / 220% 100%,
    #e7eeeb;
  animation: shimmer 1.4s infinite linear;
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

.error-card {
  padding: 28px;
  border: 1px solid #e6c4bf;
  border-radius: var(--radius);
  background: #fff8f6;
}

.error-card h3 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.error-card p {
  margin: 0;
  color: var(--ink-soft);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 54px;
}

.content-section {
  max-width: 780px;
}

.content-section h2 {
  margin-top: 48px;
  font-size: 34px;
}

.content-section h2:first-child {
  margin-top: 0;
}

.content-section h3 {
  margin: 28px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.content-section p {
  color: #334b52;
}

.content-section li + li {
  margin-top: 7px;
}

.source-card,
.method-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.source-card {
  position: sticky;
  top: 20px;
}

.source-card h3,
.method-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
}

.source-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.source-list a {
  font-weight: 800;
}

.source-list span {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 12px;
}

.safety-note {
  margin-top: 18px;
  padding: 16px;
  border-left: 4px solid var(--mixed);
  background: var(--mixed-soft);
  color: #664700;
  font-size: 13px;
}

.photo-credit {
  margin: 0;
  padding: 10px 16px;
  background: #f2f5f3;
  color: #607175;
  font-size: 11px;
  text-align: center;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #f2f5f2;
}

.site-footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 13px;
}

.detail-dialog {
  width: min(760px, calc(100% - 24px));
  max-height: min(88vh, 900px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(4, 38, 45, 0.34);
}

.detail-dialog::backdrop {
  background: rgba(4, 29, 35, 0.65);
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: sticky;
  z-index: 4;
  top: 14px;
  float: right;
  width: 42px;
  height: 42px;
  margin: 14px 14px -56px 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(10, 45, 53, 0.7);
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.dialog-hero {
  padding: 34px;
  background: linear-gradient(145deg, var(--lake-dark), var(--lake));
  color: var(--white);
}

.dialog-hero h2 {
  margin: 0;
  padding-right: 44px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  line-height: 1.08;
}

.dialog-hero p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.dialog-score {
  margin-top: 24px;
  display: flex;
  align-items: end;
  gap: 14px;
}

.dialog-score strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 66px;
  letter-spacing: -0.06em;
  line-height: 0.85;
}

.dialog-score span {
  max-width: 220px;
  padding-bottom: 5px;
  font-size: 14px;
  font-weight: 800;
}

.dialog-body {
  padding: 28px 34px 36px;
}

.truth-status {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--good-soft);
  color: #0d5a41;
}

.truth-stack {
  display: grid;
  gap: 10px;
}

.truth-status[data-state="closure"],
.truth-status[data-state="advisory"],
.truth-status[data-state="high"] {
  background: var(--danger-soft);
  color: #7c211a;
}

.truth-status[data-state="moderate"] {
  background: var(--mixed-soft);
  color: #735407;
}

.truth-status[data-state="unavailable"],
.truth-status[data-state="unknown"] {
  background: #edf0ef;
  color: var(--ink-soft);
}

.truth-status strong {
  display: block;
}

.truth-status p {
  margin: 4px 0 0;
  font-size: 13px;
}

.metric-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.metric span {
  display: block;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.reason-list {
  margin: 20px 0 0;
  padding-left: 20px;
}

.reason-list li + li {
  margin-top: 7px;
}

.dialog-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.beach-detail-layout {
  margin-top: -70px;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 22px;
}

.beach-detail-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.beach-detail-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.beach-detail-card .detail-summary {
  color: var(--ink-soft);
}

.daily-list {
  display: grid;
  gap: 12px;
}

.daily-list-row {
  width: 100%;
  padding: 18px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-align: left;
  cursor: pointer;
}

.daily-list-rank {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--sand);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
}

.daily-list-row h3,
.daily-list-title {
  display: block;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 700;
}

.daily-list-row p,
.daily-list-meta {
  display: block;
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.daily-list-score {
  color: var(--lake);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
}

.noscript {
  padding: 20px;
  border-bottom: 1px solid #e1bd8d;
  background: #fff2d8;
  color: #62430e;
  text-align: center;
}

@media (max-width: 960px) {
  .daily-grid,
  .loading-grid {
    grid-template-columns: 1fr 1fr;
  }

  .daily-card:first-child {
    grid-column: 1 / -1;
  }

  .explorer-layout {
    grid-template-columns: 1fr;
  }

  .map-panel {
    position: relative;
    order: -1;
    min-height: 440px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  #beachMap,
  .map-placeholder {
    min-height: 440px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .source-card {
    position: static;
  }

  .beach-detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header-inner {
    min-height: 60px;
  }

  .site-nav a:not(:last-child) {
    display: none;
  }

  .hero {
    min-height: 640px;
    align-items: end;
    background:
      linear-gradient(0deg, rgba(3, 43, 51, 0.96) 0%, rgba(3, 43, 51, 0.68) 58%, rgba(3, 43, 51, 0.2) 100%),
      url("/assets/beach-report/sleeping-bear-beach-nps.jpg") center / cover no-repeat;
  }

  .hero-inner {
    padding: 88px 0 52px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .search-deck {
    grid-template-columns: 1fr 1fr;
  }

  .search-field {
    grid-column: 1 / -1;
  }

  .search-deck .button {
    padding-inline: 10px;
  }

  .live-ribbon-inner {
    padding: 10px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .page-shell {
    padding-top: 38px;
  }

  .section {
    margin-top: 56px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .season-panel,
  .alert-panel {
    grid-template-columns: auto 1fr;
  }

  .season-panel .button,
  .alert-panel a {
    grid-column: 1 / -1;
  }

  .daily-grid,
  .loading-grid {
    grid-template-columns: 1fr;
  }

  .daily-card:first-child {
    grid-column: auto;
  }

  .explorer-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .explorer-toolbar .search-field {
    grid-column: 1 / -1;
  }

  .beach-list {
    grid-template-columns: 1fr;
  }

  .map-panel,
  #beachMap,
  .map-placeholder {
    min-height: 360px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-dialog {
    width: 100%;
    max-height: 92vh;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
  }

  .dialog-hero,
  .dialog-body {
    padding-left: 22px;
    padding-right: 22px;
  }

  .dialog-hero h2 {
    font-size: 30px;
  }

  .daily-list-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .daily-list-score {
    grid-column: 2;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .search-deck {
    grid-template-columns: 1fr;
  }

  .search-field,
  .search-deck .button {
    grid-column: auto;
  }

  .explorer-toolbar {
    grid-template-columns: 1fr;
  }

  .explorer-toolbar .search-field {
    grid-column: auto;
  }

  .card-facts,
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
