/* ============================================================
   Soaking Springs — Editorial Nature Journal
   Typography: Fraunces (serif display) + Commissioner (sans body)
   Palette: Mineral blues, terracotta, travertine cream
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Commissioner:wght@300;400;500;600;700&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,400&display=swap');

:root {
  /* Geological palette */
  --mineral: #1b4d6e;
  --mineral-deep: #0f2e42;
  --mineral-light: #dceaf3;
  --terra: #c75c2e;
  --terra-light: #fceee7;
  --terra-glow: #e8875e;
  --sage: #5a7c65;
  --sage-light: #e4ede6;
  --gold: #c9a84c;
  --gold-light: #faf4e0;
  --cream: #f5f0e8;
  --parchment: #faf7f2;
  --surface: #ffffff;
  --stone: #2b2118;
  --stone-mid: #6b5e52;
  --stone-light: #9c9287;
  --stone-faint: #d4cdc4;
  --stone-wash: #ece7df;
  --stone-whisper: #f3f0eb;

  /* Typography */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Commissioner", "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", monospace;

  /* Spacing & Shape */
  --max-width: 1140px;
  --radius: 6px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-subtle: 0 1px 2px rgba(43,33,24,0.04);
  --shadow-card: 0 2px 8px rgba(43,33,24,0.06), 0 1px 2px rgba(43,33,24,0.04);
  --shadow-lift: 0 8px 24px rgba(43,33,24,0.1), 0 2px 6px rgba(43,33,24,0.06);
  --shadow-deep: 0 16px 48px rgba(43,33,24,0.12), 0 4px 12px rgba(43,33,24,0.08);

  /* Noise texture (grain overlay) */
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");

  /* Topographic pattern */
  --topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cellipse cx='150' cy='150' rx='140' ry='120' fill='none' stroke='%231b4d6e' stroke-width='0.6' opacity='0.06'/%3E%3Cellipse cx='150' cy='155' rx='110' ry='90' fill='none' stroke='%231b4d6e' stroke-width='0.6' opacity='0.05'/%3E%3Cellipse cx='145' cy='160' rx='80' ry='60' fill='none' stroke='%231b4d6e' stroke-width='0.6' opacity='0.04'/%3E%3Cellipse cx='140' cy='162' rx='50' ry='35' fill='none' stroke='%231b4d6e' stroke-width='0.6' opacity='0.03'/%3E%3Cellipse cx='138' cy='160' rx='22' ry='14' fill='none' stroke='%231b4d6e' stroke-width='0.6' opacity='0.025'/%3E%3C/svg%3E");
}


/* === Reset & Base === */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--stone);
  background: var(--parchment);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main { flex: 1; }

a {
  color: var(--mineral);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--terra); }

img { max-width: 100%; height: auto; display: block; }

::selection {
  background: var(--terra-light);
  color: var(--stone);
}


/* === Typography === */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--stone);
}

h1 { font-size: 2.75rem; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--stone-light);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}


/* ============================================================
   Navigation
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid rgba(212, 205, 196, 0.5);
}

/* Thin accent bar at very top */
.site-header::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--terra), var(--gold), var(--sage), var(--mineral));
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--stone);
  transition: opacity 0.2s;
}
.site-logo:hover { opacity: 0.75; text-decoration: none; color: var(--stone); }

.logo-icon {
  font-size: 1.65rem;
  color: var(--mineral);
  line-height: 1;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--stone-mid);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terra);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--stone); text-decoration: none; }
.nav-links a:hover::after { width: 100%; }


/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--stone);
  color: var(--stone-light);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  font-size: 0.875rem;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terra), var(--gold), var(--sage), var(--mineral));
}

.site-footer a { color: var(--stone-faint); }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: var(--stone-faint); margin-bottom: 0.75rem; letter-spacing: 0.1em; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.4rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--stone-mid);
}


/* ============================================================
   Scroll-triggered Reveals
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger > .reveal:nth-child(7) { transition-delay: 0.48s; }
.reveal-stagger > .reveal:nth-child(8) { transition-delay: 0.56s; }
.reveal-stagger > .reveal:nth-child(9) { transition-delay: 0.64s; }


/* ============================================================
   Breadcrumbs
   ============================================================ */

.breadcrumbs {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.breadcrumbs a { opacity: 0.7; transition: opacity 0.2s; }
.breadcrumbs a:hover { opacity: 1; text-decoration: none; }
.breadcrumbs .sep { margin: 0 0.5rem; opacity: 0.4; }


/* ============================================================
   Tags / Badges
   ============================================================ */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: var(--stone-whisper);
  color: var(--stone-mid);
}
.tag-temp { background: var(--terra-light); color: var(--terra); }
.tag-access { background: var(--mineral-light); color: var(--mineral); }
.tag-public { background: var(--sage-light); color: var(--sage); }
.tag-backcountry { background: #f7e8e0; color: #9e4a2a; }
.tag-distance { background: var(--gold-light); color: #8b7530; }


/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--mineral);
  color: #fff;
  box-shadow: 0 2px 8px rgba(27,77,110,0.25);
}
.btn-primary:hover {
  background: var(--mineral-deep);
  color: #fff;
  box-shadow: 0 4px 16px rgba(27,77,110,0.3);
}

.btn-terra {
  background: var(--terra);
  color: #fff;
  box-shadow: 0 2px 8px rgba(199,92,46,0.25);
}
.btn-terra:hover {
  background: #b04f24;
  color: #fff;
  box-shadow: 0 4px 16px rgba(199,92,46,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--mineral);
  border: 1.5px solid var(--stone-faint);
}
.btn-outline:hover {
  border-color: var(--mineral);
  background: var(--mineral-light);
  color: var(--mineral);
}


/* ============================================================
   Grid Layouts
   ============================================================ */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.section { padding: 3.5rem 0; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--terra);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--stone);
  margin-bottom: 2rem;
}


/* ============================================================
   City Card (state page)
   ============================================================ */

.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}

.city-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.2rem;
  background: var(--surface);
  border-radius: var(--radius);
  color: var(--stone);
  box-shadow: var(--shadow-subtle);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-left: 3px solid transparent;
}
.city-card:hover {
  text-decoration: none;
  color: var(--stone);
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
  border-left-color: var(--mineral);
}

.city-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.city-card-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

.city-card-county {
  font-size: 0.75rem;
  color: var(--stone-light);
}

.city-card-springs {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--mineral);
}


/* ============================================================
   Spring Card (listing item)
   ============================================================ */

.spring-card {
  display: block;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--stone);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}
.spring-card:hover {
  text-decoration: none;
  color: var(--stone);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.spring-card-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--terra), var(--gold));
}

.spring-card-body { padding: 1.4rem 1.5rem 1.25rem; }

.spring-card-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.spring-card-location {
  font-size: 0.82rem;
  color: var(--stone-light);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.spring-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}


/* ============================================================
   State Card
   ============================================================ */

.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.state-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  color: var(--stone);
  box-shadow: var(--shadow-subtle);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 3px solid transparent;
}
.state-card:hover {
  text-decoration: none;
  color: var(--stone);
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
  border-left-color: var(--terra);
}

.state-card-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.state-card-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--stone-light);
  background: var(--stone-whisper);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}


/* ============================================================
   Homepage
   ============================================================ */

.home-hero {
  position: relative;
  background: var(--mineral-deep);
  color: #fff;
  padding: 7rem 0 6rem;
  text-align: center;
  overflow: hidden;
}

/* Layered gradient background */
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(199,92,46,0.2), transparent),
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(90,124,101,0.15), transparent),
    radial-gradient(ellipse 70% 80% at 80% 10%, rgba(27,77,110,0.3), transparent),
    linear-gradient(175deg, #0f2e42 0%, #1b4d6e 40%, #1f5a7a 100%);
}

/* Topographic texture */
.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--topo);
  background-size: 300px 300px;
  opacity: 0.6;
  pointer-events: none;
}

.home-hero .container { position: relative; z-index: 2; }

.home-hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.home-hero-sub {
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
  opacity: 0.85;
  font-weight: 300;
}

/* Steam wisps */
@keyframes steam-rise {
  0% { transform: translateY(0) scaleX(1); opacity: 0; }
  20% { opacity: 0.08; }
  100% { transform: translateY(-160px) scaleX(2.5); opacity: 0; }
}

.steam-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.steam-wisp {
  position: absolute;
  bottom: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
  animation: steam-rise 6s ease-in-out infinite;
}
.steam-wisp:nth-child(1) { left: 15%; animation-delay: 0s; animation-duration: 7s; }
.steam-wisp:nth-child(2) { left: 35%; animation-delay: 2s; animation-duration: 5.5s; width: 90px; height: 90px; }
.steam-wisp:nth-child(3) { left: 55%; animation-delay: 1s; animation-duration: 6.5s; width: 140px; height: 140px; }
.steam-wisp:nth-child(4) { left: 75%; animation-delay: 3.5s; animation-duration: 5s; width: 100px; height: 100px; }
.steam-wisp:nth-child(5) { left: 90%; animation-delay: 1.5s; animation-duration: 8s; width: 80px; height: 80px; }

/* Bottom fade to page bg */
.home-hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--parchment), transparent);
  z-index: 3;
}

.home-stat-bar {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.home-stat { text-align: center; }
.home-stat-number {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 900;
  display: block;
  letter-spacing: -0.02em;
  line-height: 1;
}
.home-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
  margin-top: 0.35rem;
  display: block;
}


/* ============================================================
   Homepage — Superlatives, Glance, Top States
   ============================================================ */

.home-superlatives {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.home-glance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.home-glance-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.home-glance-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mineral), var(--sage));
}
.home-glance-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--noise);
  pointer-events: none;
  border-radius: var(--radius-lg);
}

.home-glance-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--stone);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.home-glance-text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--stone-light);
  position: relative;
  z-index: 1;
}

.home-top-states {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 720px;
}

.home-top-state-row {
  display: grid;
  grid-template-columns: 28px 140px 1fr 48px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius);
  color: var(--stone);
  transition: background 0.2s, transform 0.2s;
}
.home-top-state-row:hover {
  text-decoration: none;
  color: var(--stone);
  background: var(--surface);
  transform: translateX(4px);
}

.home-top-state-rank {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--stone-faint);
  text-align: center;
}
.home-top-state-row:first-child .home-top-state-rank { color: var(--terra); }

.home-top-state-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.home-top-state-bar-wrap {
  height: 20px;
  background: var(--stone-whisper);
  border-radius: 4px;
  overflow: hidden;
}

.home-top-state-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--terra), var(--terra-glow));
  border-radius: 4px;
  min-width: 8px;
  transition: width 0.6s ease;
}

.home-top-state-count {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--stone-mid);
  text-align: right;
}


/* ============================================================
   Homepage — pH Extremes
   ============================================================ */

.home-ph-extremes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.home-ph-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--stone);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.home-ph-card:hover {
  text-decoration: none;
  color: var(--stone);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.home-ph-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  gap: 0.75rem;
}
.home-ph-acidic .home-ph-side { background: var(--terra-light); }
.home-ph-alkaline .home-ph-side { background: var(--mineral-light); }

.home-ph-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}
.home-ph-acidic .home-ph-value { color: var(--terra); }
.home-ph-alkaline .home-ph-value { color: var(--mineral); }

.home-ph-scale { width: 100%; }
.home-ph-scale-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--terra), #d4a53c, var(--sage), var(--mineral));
  position: relative;
}
.home-ph-scale-marker {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--stone);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transform: translate(-50%, -50%);
}

.home-ph-info {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-ph-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--stone-light);
  margin-bottom: 0.4rem;
}

.home-ph-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.15rem;
}

.home-ph-location {
  font-size: 0.78rem;
  color: var(--stone-light);
}


/* ============================================================
   Homepage — Mineral Leaders
   ============================================================ */

.home-mineral-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.home-mineral-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-card);
  color: var(--stone);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.home-mineral-card:hover {
  text-decoration: none;
  color: var(--stone);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.home-mineral-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--noise);
  pointer-events: none;
  border-radius: var(--radius-lg);
}

/* Per-mineral left accent */
.home-mineral-card { border-left: 3px solid var(--stone-faint); }
[data-mineral="tds"] .home-mineral-card,
.home-mineral-card[data-mineral="tds"] { border-left-color: var(--gold); }
[data-mineral="calcium"] .home-mineral-card,
.home-mineral-card[data-mineral="calcium"] { border-left-color: #c9a84c; }
[data-mineral="magnesium"] .home-mineral-card,
.home-mineral-card[data-mineral="magnesium"] { border-left-color: var(--sage); }
[data-mineral="sodium"] .home-mineral-card,
.home-mineral-card[data-mineral="sodium"] { border-left-color: var(--mineral); }
[data-mineral="sulfate"] .home-mineral-card,
.home-mineral-card[data-mineral="sulfate"] { border-left-color: var(--terra); }
[data-mineral="chloride"] .home-mineral-card,
.home-mineral-card[data-mineral="chloride"] { border-left-color: var(--mineral); }
[data-mineral="iron"] .home-mineral-card,
.home-mineral-card[data-mineral="iron"] { border-left-color: var(--terra); }

.home-mineral-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.home-mineral-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.home-mineral-icon::before {
  content: '';
  display: block;
}

/* Reuse mineral icon backgrounds from card system */
[data-mineral="tds"] .home-mineral-icon { background: var(--gold-light); }
[data-mineral="calcium"] .home-mineral-icon { background: var(--cream); }
[data-mineral="magnesium"] .home-mineral-icon { background: var(--sage-light); }
[data-mineral="sodium"] .home-mineral-icon { background: var(--mineral-light); }
[data-mineral="sulfate"] .home-mineral-icon { background: var(--terra-light); }
[data-mineral="chloride"] .home-mineral-icon { background: var(--mineral-light); }
[data-mineral="iron"] .home-mineral-icon { background: var(--terra-light); }

/* Mineral icon shapes */
[data-icon="layers"].home-mineral-icon::before {
  width: 16px; height: 4px;
  background: var(--gold);
  border-radius: 2px;
  box-shadow: 0 -7px 0 var(--gold), 0 7px 0 var(--gold);
}
[data-icon="bone"].home-mineral-icon::before {
  width: 14px; height: 14px;
  background: #c9a84c;
  transform: rotate(45deg);
  border-radius: 2px;
}
[data-icon="sparkles"].home-mineral-icon::before {
  width: 18px; height: 18px;
  background: var(--sage);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
[data-icon="droplets"].home-mineral-icon::before {
  width: 10px; height: 10px;
  background: var(--mineral);
  border-radius: 50%;
  box-shadow: 11px 0 0 var(--mineral), 5px -9px 0 var(--mineral);
}
[data-icon="flame"].home-mineral-icon::before {
  width: 16px; height: 20px;
  background: var(--terra);
  clip-path: polygon(50% 0%, 80% 40%, 100% 100%, 50% 80%, 0% 100%, 20% 40%);
}
[data-icon="shield"].home-mineral-icon::before {
  width: 16px; height: 20px;
  background: var(--mineral);
  clip-path: polygon(50% 0%, 100% 20%, 100% 60%, 50% 100%, 0% 60%, 0% 20%);
}
[data-icon="gem"].home-mineral-icon::before {
  width: 20px; height: 18px;
  background: var(--terra);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.home-mineral-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.home-mineral-hint {
  font-size: 0.72rem;
  color: var(--stone-light);
  line-height: 1.4;
  margin-top: 0.1rem;
}

.home-mineral-reading {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  position: relative;
  z-index: 1;
}

.home-mineral-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--stone);
  letter-spacing: -0.01em;
}

.home-mineral-unit {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--stone-light);
}

.home-mineral-spring {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--stone-whisper);
  position: relative;
  z-index: 1;
}

.home-mineral-spring-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--stone);
}

.home-mineral-spring-state {
  font-size: 0.72rem;
  color: var(--stone-light);
}


/* ============================================================
   Page Hero (states, cities)
   ============================================================ */

.page-hero {
  position: relative;
  background: var(--mineral-deep);
  color: #fff;
  padding: 3.5rem 0 3rem;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(199,92,46,0.15), transparent),
    linear-gradient(175deg, #0f2e42 0%, #1b4d6e 40%, #1f5a7a 100%);
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--topo);
  background-size: 300px 300px;
  opacity: 0.4;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }

.page-hero .breadcrumbs { margin-bottom: 1rem; }
.page-hero .breadcrumbs a { color: rgba(255,255,255,0.6); }
.page-hero .breadcrumbs a:hover { color: #fff; }
.page-hero .breadcrumbs .sep { color: rgba(255,255,255,0.3); }
.page-hero .breadcrumbs span { color: rgba(255,255,255,0.8); }

.page-hero h1 {
  font-size: 2.75rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.page-hero p {
  font-size: 1.1rem;
  opacity: 0.8;
  font-weight: 300;
}
.page-hero .subtitle { font-size: 1.05rem; opacity: 0.75; margin-top: 0.25rem; }


/* ============================================================
   Spring Show — Hero
   ============================================================ */

.spring-hero {
  position: relative;
  background: var(--mineral-deep);
  color: #fff;
  padding: 3rem 0 2.5rem;
  overflow: hidden;
}
.spring-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(199,92,46,0.15), transparent),
    linear-gradient(175deg, #0f2e42 0%, #1b4d6e 40%, #1f5a7a 100%);
}
.spring-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--topo);
  background-size: 300px 300px;
  opacity: 0.4;
  pointer-events: none;
}
.spring-hero .container { position: relative; z-index: 2; }

.spring-hero .breadcrumbs { margin-bottom: 1.25rem; }
.spring-hero .breadcrumbs a { color: rgba(255,255,255,0.6); }
.spring-hero .breadcrumbs a:hover { color: #fff; }
.spring-hero .breadcrumbs .sep { color: rgba(255,255,255,0.3); }
.spring-hero .breadcrumbs span { color: rgba(255,255,255,0.8); }

.spring-hero h1 {
  font-size: 2.75rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.spring-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 300;
  opacity: 0.85;
}
.spring-hero-meta .dot { opacity: 0.4; }
.hero-town-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: color 0.2s, border-color 0.2s;
}
.hero-town-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.spring-hero-aka {
  font-size: 0.88rem;
  font-weight: 400;
  font-style: italic;
  opacity: 0.7;
  margin-bottom: 0.35rem;
}

.spring-hero-coords {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  opacity: 0.5;
  margin-top: 0.6rem;
  letter-spacing: 0.02em;
}


/* ============================================================
   Spring Show — Two-Column Layout
   ============================================================ */

.spring-content {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  padding: 2.5rem 0 0;
}

.spring-sidebar {
  margin-top: -5rem;
  position: relative;
  z-index: 4;
}


/* ============================================================
   Spring Show — Photo & Extract
   ============================================================ */

.spring-photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-deep);
}
.spring-photo img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.spring-photo-credit {
  padding: 0.5rem 1rem;
  font-size: 0.72rem;
  color: var(--stone-light);
  background: var(--stone-whisper);
  letter-spacing: 0.01em;
}

.spring-extract {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--stone);
  margin-bottom: 0.75rem;
}
.spring-extract-source {
  font-size: 0.85rem;
  color: var(--stone-light);
  font-style: italic;
  margin-bottom: 2.5rem;
}
.spring-description-lead {
  font-size: 1.15rem;
  line-height: 1.75;
  font-weight: 500;
  color: var(--earth);
  margin-bottom: 1.25rem;
}
.spring-description-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--stone);
  margin-bottom: 1rem;
}
.spring-description-body p:last-child {
  margin-bottom: 0.75rem;
}

/* Structured narrative sections */
.spring-narrative {
  margin-bottom: 2rem;
}
.spring-narrative-overview p {
  font-size: 1.2rem;
  font-family: var(--font-display);
  line-height: 1.75;
  font-weight: 600;
  color: var(--earth, var(--stone));
  margin-bottom: 1.5rem;
}
.spring-narrative-setting p {
  font-size: 1.05rem;
  font-family: var(--font-body);
  line-height: 1.9;
  color: var(--stone);
  margin-bottom: 1.75rem;
}
.spring-narrative-label {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-light);
  margin-bottom: 0.5rem;
}
.spring-narrative-history {
  border-left: 3px solid var(--mineral);
  background: var(--stone-whisper);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}
.spring-narrative-history p {
  font-size: 1.05rem;
  line-height: 1.85;
  font-style: italic;
  color: var(--stone);
  margin: 0;
}
.spring-narrative-tips {
  border-top: 1px solid var(--stone-wash);
  background: var(--cream);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.25rem 1.5rem;
  padding-top: 2rem;
  margin-bottom: 1.25rem;
  position: relative;
}
.spring-narrative-tips::before {
  content: "PLANNING YOUR VISIT";
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--stone-light);
  margin-bottom: 0.6rem;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
}
.spring-narrative-tips p {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--stone-mid);
  margin: 0;
}


/* ============================================================
   Spring Show — Sidebar Info Cards
   ============================================================ */

.info-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

/* Colored top accent per card type */
.info-card-temp::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terra), var(--gold));
}
.info-card-access::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mineral), var(--sage));
}
.info-card-land::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sage), var(--gold));
}

.info-card-header {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--stone-light);
  margin-bottom: 1rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.88rem;
}
.info-row + .info-row { border-top: 1px solid var(--stone-whisper); }
.info-row-label { color: var(--stone-light); flex-shrink: 0; }
.info-row-value { font-weight: 600; color: var(--stone); }
.info-row-value-wrap {
  text-align: right;
  white-space: normal;
  word-break: break-word;
  max-width: 60%;
}


/* ============================================================
   Temperature Display
   ============================================================ */

.temp-display {
  margin-bottom: 1rem;
}

.temp-big {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, var(--terra), var(--terra-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.temp-unit {
  font-size: 1.5rem;
  font-weight: 400;
  opacity: 0.6;
}

/* Thermal gauge bar */
.thermal-gauge {
  margin: 0.75rem 0 1rem;
}
.thermal-gauge-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #4a90b8, #6bab5e, #d4a53c, #c75c2e, #8b2020);
  position: relative;
}
.thermal-gauge-marker {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--terra);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transform: translate(-50%, -50%);
  transition: left 0.6s ease;
}
.thermal-gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stone-light);
  margin-top: 0.35rem;
}

/* Temperature — unknown state */
.temp-unknown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0 0.5rem;
  color: var(--stone-faint);
}
.temp-unknown-icon {
  width: 36px;
  height: 36px;
  opacity: 0.5;
}
.temp-unknown-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--stone-light);
}


/* ============================================================
   Access Badge
   ============================================================ */

.access-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.access-badge-public { background: var(--sage-light); color: var(--sage); }
.access-badge-commercial { background: var(--mineral-light); color: var(--mineral); }
.access-badge-private { background: var(--terra-light); color: var(--terra); }


/* ============================================================
   Climate Section
   ============================================================ */

.climate-section {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.climate-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--noise);
  pointer-events: none;
  border-radius: var(--radius-xl);
}

.climate-section .info-card-header { margin-bottom: 1.5rem; }

.climate-chart {
  display: flex;
  align-items: flex-end;
  height: 200px;
  padding: 0 0.25rem;
  margin-bottom: 1.25rem;
  gap: 4px;
}

.climate-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.climate-bar {
  width: 100%;
  border-radius: 4px 4px 2px 2px;
  min-height: 2px;
  position: relative;
  transition: opacity 0.2s;
}
.climate-bar:hover { opacity: 0.8; }

/* Temperature-based bar colors via inline style override */
.climate-bar-cool { background: linear-gradient(to top, #4a90b8, #6baacc); }
.climate-bar-mild { background: linear-gradient(to top, #6bab5e, #8dc47e); }
.climate-bar-warm { background: linear-gradient(to top, #d4a53c, #e0be6a); }
.climate-bar-hot { background: linear-gradient(to top, #c75c2e, #d97a52); }

.climate-bar-label {
  font-size: 0.7rem;
  color: var(--stone-light);
  margin-top: 0.5rem;
  font-weight: 500;
}

.climate-bar-value {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--stone-mid);
  margin-bottom: 0.3rem;
  font-family: var(--font-mono);
}

.climate-stats {
  display: flex;
  gap: 2.5rem;
  font-size: 0.88rem;
  color: var(--stone-light);
  padding-top: 1rem;
  border-top: 1px solid var(--stone-whisper);
}
.climate-stats strong { color: var(--stone); font-weight: 600; }


/* ============================================================
   USGS Field Measurements
   ============================================================ */

.field-measurements-section {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.field-measurements-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mineral), var(--sage));
}
.field-measurements-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--noise);
  pointer-events: none;
  border-radius: var(--radius-xl);
}

.field-measurements-section .info-card-header { margin-bottom: 1.25rem; }

.field-measurements-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field-measurement {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 1rem;
  background: var(--stone-whisper);
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
}

.field-measurement-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--stone-light);
}

.field-measurement-value {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--stone);
  letter-spacing: -0.01em;
}

.field-measurement-detail {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--stone-light);
}

.field-measurement-date {
  font-size: 0.72rem;
  color: var(--stone-light);
  font-style: italic;
}


/* ============================================================
   Water Chemistry — Analysis Report
   ============================================================ */

.chemistry-section {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.chemistry-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sage), var(--mineral), var(--gold));
}
.chemistry-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--noise);
  pointer-events: none;
  border-radius: var(--radius-xl);
}

.chemistry-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.chemistry-header .info-card-header { margin-bottom: 0; }

.chemistry-date {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--stone-light);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

.chemistry-readings {
  display: flex;
  flex-direction: column;
}

.chemistry-reading {
  display: flex;
  flex-direction: column;
  padding: 0.7rem 0.85rem;
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
  z-index: 1;
}
.chemistry-reading + .chemistry-reading {
  border-top: 1px solid var(--stone-whisper);
}
.chemistry-reading:hover {
  background: var(--stone-whisper);
}

/* Per-mineral hover accent colors */
.chemistry-reading[data-mineral="ph"]:hover { border-left-color: var(--mineral); }
.chemistry-reading[data-mineral="tds"]:hover { border-left-color: var(--gold); }
.chemistry-reading[data-mineral="calcium"]:hover { border-left-color: #c9a84c; }
.chemistry-reading[data-mineral="magnesium"]:hover { border-left-color: var(--sage); }
.chemistry-reading[data-mineral="sodium"]:hover { border-left-color: var(--mineral); }
.chemistry-reading[data-mineral="sulfate"]:hover { border-left-color: var(--terra); }
.chemistry-reading[data-mineral="chloride"]:hover { border-left-color: var(--mineral); }
.chemistry-reading[data-mineral="iron"]:hover { border-left-color: var(--terra); }

.chemistry-reading-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.chemistry-reading-label {
  font-size: 0.9rem;
  color: var(--stone);
  font-weight: 500;
}
.chemistry-reading-label a {
  color: var(--stone);
  text-decoration: none;
  border-bottom: 1px dotted var(--stone-faint);
  transition: color 0.2s, border-color 0.2s;
}
.chemistry-reading-label a:hover {
  color: var(--mineral);
  border-bottom-color: var(--mineral);
}

.chemistry-reading-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--stone);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.chemistry-reading-number { letter-spacing: -0.01em; }
.chemistry-reading-unit {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--stone-light);
}
.chemistry-reading-qualifier {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--mineral);
  background: var(--mineral-light);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

.chemistry-reading-hint {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--stone-light);
  margin-top: 0.2rem;
  line-height: 1.4;
}


/* ============================================================
   Mineral Card — Specimen Collection
   ============================================================ */

.mineral-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.mineral-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--stone);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.mineral-card:hover {
  text-decoration: none;
  color: var(--stone);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.mineral-card:hover .mineral-card-arrow {
  transform: translateX(4px);
  color: var(--terra);
}

.mineral-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.mineral-card-icon::before {
  content: '';
  display: block;
  width: 28px;
  height: 28px;
}

/* Per-mineral icon column background colors */
[data-mineral="ph"] .mineral-card-icon { background: var(--mineral-light); }
[data-mineral="tds"] .mineral-card-icon { background: var(--gold-light); }
[data-mineral="calcium"] .mineral-card-icon { background: var(--cream); }
[data-mineral="magnesium"] .mineral-card-icon { background: var(--sage-light); }
[data-mineral="sodium"] .mineral-card-icon { background: var(--mineral-light); }
[data-mineral="sulfate"] .mineral-card-icon { background: var(--terra-light); }
[data-mineral="chloride"] .mineral-card-icon { background: var(--mineral-light); }
[data-mineral="iron"] .mineral-card-icon { background: var(--terra-light); }

/* CSS-only icon shapes */
[data-icon="droplet"] .mineral-card-icon::before {
  width: 20px;
  height: 26px;
  background: var(--mineral);
  border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
}
[data-icon="layers"] .mineral-card-icon::before {
  width: 24px;
  height: 6px;
  background: var(--gold);
  border-radius: 2px;
  box-shadow: 0 -10px 0 var(--gold), 0 10px 0 var(--gold);
}
[data-icon="bone"] .mineral-card-icon::before {
  width: 20px;
  height: 20px;
  background: #c9a84c;
  transform: rotate(45deg);
  border-radius: 3px;
}
[data-icon="sparkles"] .mineral-card-icon::before {
  width: 24px;
  height: 24px;
  background: var(--sage);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
[data-icon="droplets"] .mineral-card-icon::before {
  width: 12px;
  height: 12px;
  background: var(--mineral);
  border-radius: 50%;
  box-shadow: 14px 0 0 var(--mineral), 7px -12px 0 var(--mineral);
}
[data-icon="flame"] .mineral-card-icon::before {
  width: 22px;
  height: 26px;
  background: var(--terra);
  clip-path: polygon(50% 0%, 80% 40%, 100% 100%, 50% 80%, 0% 100%, 20% 40%);
}
[data-icon="shield"] .mineral-card-icon::before {
  width: 22px;
  height: 26px;
  background: var(--mineral);
  clip-path: polygon(50% 0%, 100% 20%, 100% 60%, 50% 100%, 0% 60%, 0% 20%);
}
[data-icon="gem"] .mineral-card-icon::before {
  width: 26px;
  height: 24px;
  background: var(--terra);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.mineral-card-body {
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
}

.mineral-card-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--stone-light);
  font-variant: small-caps;
  margin-bottom: 0.2rem;
}

.mineral-card-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.mineral-card-hint {
  font-size: 0.82rem;
  color: var(--stone-light);
  line-height: 1.5;
  margin-bottom: 0.65rem;
  flex: 1;
}

.mineral-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mineral-card-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--mineral);
}

.mineral-card-arrow {
  font-size: 1rem;
  color: var(--stone-faint);
  transition: transform 0.3s ease, color 0.3s ease;
}


/* ============================================================
   Mineral Show — Profile Banner
   ============================================================ */

.mineral-profile {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 2.5rem;
}

.mineral-profile-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.mineral-profile-icon::before {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
}

/* Per-mineral profile icon backgrounds */
[data-mineral="ph"] .mineral-profile-icon { background: var(--mineral-light); }
[data-mineral="tds"] .mineral-profile-icon { background: var(--gold-light); }
[data-mineral="calcium"] .mineral-profile-icon { background: var(--cream); }
[data-mineral="magnesium"] .mineral-profile-icon { background: var(--sage-light); }
[data-mineral="sodium"] .mineral-profile-icon { background: var(--mineral-light); }
[data-mineral="sulfate"] .mineral-profile-icon { background: var(--terra-light); }
[data-mineral="chloride"] .mineral-profile-icon { background: var(--mineral-light); }
[data-mineral="iron"] .mineral-profile-icon { background: var(--terra-light); }

/* Profile icon shapes — same as card icons */
[data-icon="droplet"] .mineral-profile-icon::before {
  width: 18px; height: 22px;
  background: var(--mineral);
  border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
}
[data-icon="layers"] .mineral-profile-icon::before {
  width: 22px; height: 5px;
  background: var(--gold);
  border-radius: 2px;
  box-shadow: 0 -9px 0 var(--gold), 0 9px 0 var(--gold);
}
[data-icon="bone"] .mineral-profile-icon::before {
  width: 18px; height: 18px;
  background: #c9a84c;
  transform: rotate(45deg);
  border-radius: 3px;
}
[data-icon="sparkles"] .mineral-profile-icon::before {
  width: 22px; height: 22px;
  background: var(--sage);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
[data-icon="droplets"] .mineral-profile-icon::before {
  width: 11px; height: 11px;
  background: var(--mineral);
  border-radius: 50%;
  box-shadow: 13px 0 0 var(--mineral), 6px -11px 0 var(--mineral);
}
[data-icon="flame"] .mineral-profile-icon::before {
  width: 20px; height: 24px;
  background: var(--terra);
  clip-path: polygon(50% 0%, 80% 40%, 100% 100%, 50% 80%, 0% 100%, 20% 40%);
}
[data-icon="shield"] .mineral-profile-icon::before {
  width: 20px; height: 24px;
  background: var(--mineral);
  clip-path: polygon(50% 0%, 100% 20%, 100% 60%, 50% 100%, 0% 60%, 0% 20%);
}
[data-icon="gem"] .mineral-profile-icon::before {
  width: 24px; height: 22px;
  background: var(--terra);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.mineral-profile-meta {
  display: flex;
  flex-direction: column;
}
.mineral-profile-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--stone-light);
  margin-bottom: 0.15rem;
}
.mineral-profile-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--stone);
  line-height: 1.2;
}
.mineral-profile-unit {
  font-size: 0.8rem;
  color: var(--stone-light);
  margin-top: 0.15rem;
}


/* ============================================================
   Mineral Article — Decorative Prose Wrapper
   ============================================================ */

.mineral-article {
  margin-bottom: 1rem;
}

.mineral-article .prose {
  position: relative;
  padding-left: 1.75rem;
}
.mineral-article .prose::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--terra), var(--gold), transparent);
}

.mineral-article .prose p:last-child {
  background: var(--stone-whisper);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-top: 1.5rem;
}


/* ============================================================
   Mineral Springs Section Header
   ============================================================ */

.mineral-springs-section {
  padding: 3rem 0 2rem;
}

.mineral-springs-header {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}
.mineral-springs-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--terra), var(--gold));
}
.mineral-springs-header .section-label { margin-bottom: 0.5rem; }
.mineral-springs-header .section-title { margin-bottom: 0; }


/* ============================================================
   Campground
   ============================================================ */

.campground-section {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--stone-wash);
}

.campground-icon-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.campground-icon {
  width: 28px;
  height: 28px;
  color: var(--sage);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.campground-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 0.15rem;
}
.campground-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
.campground-distance {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sage);
  background: var(--sage-light);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.campground-description {
  font-size: 0.88rem;
  color: var(--stone-mid);
  line-height: 1.65;
  margin-bottom: 1.15rem;
}

.campground-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.campground-detail {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius);
  background: var(--stone-whisper);
  color: var(--stone-mid);
}
.campground-detail-label {
  font-weight: 600;
  color: var(--stone);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.campground-detail-label::after {
  content: ':';
}
.campground-detail-value {
  font-weight: 500;
}


/* ============================================================
   Location Map
   ============================================================ */

.map-section {
  margin-bottom: 2rem;
}
.map-section .info-card-header {
  margin-bottom: 0.75rem;
}
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--stone-wash);
  background: var(--stone-whisper);
}
.map-container iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}
.map-actions {
  margin-top: 0.65rem;
}
.map-distance {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--stone-light);
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}
.map-cta-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.map-cta-row .btn { font-size: 0.82rem; padding: 0.55rem 1.25rem; }
.map-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mineral);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}
.map-link:hover {
  color: var(--terra);
}


/* ============================================================
   References Section
   ============================================================ */

.references-section {
  margin-bottom: 2rem;
}
.references-section .info-card-header {
  margin-bottom: 0.75rem;
}

.ref-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ref-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--mineral-light);
  color: var(--mineral);
  transition: background 0.2s, color 0.2s;
}
.ref-pill:hover {
  background: var(--mineral);
  color: #fff;
  text-decoration: none;
}

.ref-texts {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--stone-light);
  line-height: 1.7;
  letter-spacing: 0.01em;
}


/* ============================================================
   Quick Facts Pills (inside hero)
   ============================================================ */

.spring-hero .quick-facts-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}
.quick-fact-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.quick-fact-pill[data-type="temp"] { background: rgba(199, 92, 46, 0.3); color: #fceee7; border-color: rgba(199, 92, 46, 0.35); }
.quick-fact-pill[data-type="access"] { background: rgba(90, 124, 101, 0.3); color: #e4ede6; border-color: rgba(90, 124, 101, 0.35); }
.quick-fact-pill[data-type="road"] { background: rgba(27, 77, 110, 0.3); color: #dceaf3; border-color: rgba(27, 77, 110, 0.35); }
.quick-fact-pill[data-type="land"] { background: rgba(201, 168, 76, 0.25); color: #faf4e0; border-color: rgba(201, 168, 76, 0.3); }
.quick-fact-pill[data-type="camping"] { background: rgba(90, 124, 101, 0.3); color: #e4ede6; border-color: rgba(90, 124, 101, 0.35); }


/* ============================================================
   Spring Overview (generated fallback)
   ============================================================ */

.spring-overview {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--stone);
  margin-bottom: 2rem;
}


/* ============================================================
   Soakability Warning
   ============================================================ */

.soakability-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--stone-light);
}

.soakability-warning-danger {
  background: #fdf2f0;
  border-left-color: #c0392b;
}
.soakability-warning-caution {
  background: var(--gold-light);
  border-left-color: var(--gold);
}
.soakability-warning-info {
  background: var(--mineral-light);
  border-left-color: var(--mineral);
}

.soakability-warning-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.1rem;
}
.soakability-warning-danger .soakability-warning-icon { color: #c0392b; }
.soakability-warning-caution .soakability-warning-icon { color: var(--gold); }
.soakability-warning-info .soakability-warning-icon { color: var(--mineral); }

.soakability-warning-icon svg {
  width: 100%;
  height: 100%;
}

.soakability-warning-content {
  flex: 1;
  min-width: 0;
}

.soakability-warning-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--stone);
}

.soakability-warning-message {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--stone-mid);
  margin: 0;
}


/* ============================================================
   Worth Visiting?
   ============================================================ */

.worth-visiting {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.worth-visiting-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--stone);
  margin-bottom: 1.25rem;
}

.worth-visiting-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.worth-visiting-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--stone-light);
  margin-bottom: 0.5rem;
}

.worth-visiting-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.worth-visiting-list li {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--stone);
  padding-left: 1.1rem;
  position: relative;
}

.worth-visiting-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.worth-visiting-best li::before {
  background: var(--sage);
}

.worth-visiting-not-ideal li::before {
  background: var(--terra);
}

.worth-visiting-verdict {
  padding-top: 1rem;
  border-top: 1px solid var(--stone-wash);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--stone-mid);
  line-height: 1.65;
}


/* ============================================================
   What to Bring (Packing Section)
   ============================================================ */

.packing-section {
  margin-bottom: 2rem;
}

.packing-section .info-card-header {
  margin-bottom: 0.75rem;
}

.packing-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.packing-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.6rem 0.75rem 0.6rem 1.65rem;
  position: relative;
  font-size: 0.88rem;
}

.packing-item::before {
  content: '✓';
  position: absolute;
  left: 0.2rem;
  top: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sage);
  line-height: 1;
}

.packing-item-name {
  font-weight: 600;
  color: var(--stone);
}

.packing-item-reason {
  font-size: 0.78rem;
  color: var(--stone-light);
  line-height: 1.45;
}


/* ============================================================
   Chemistry Narrative
   ============================================================ */

.chemistry-narrative {
  font-size: 0.88rem;
  color: var(--stone-mid);
  line-height: 1.7;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}


/* ============================================================
   Contextual Links
   ============================================================ */

.contextual-link {
  margin: 0.75rem 0;
}

.contextual-link a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mineral);
  text-decoration: none;
  transition: color 0.15s ease;
}

.contextual-link a:hover {
  color: var(--terra);
}


/* ============================================================
   FAQ Section
   ============================================================ */

.faq-section {
  margin-top: 2.5rem;
}
.faq-section .info-card-header {
  margin-bottom: 0.75rem;
}
.faq-list {
  border-top: 1px solid var(--stone-wash);
}
.faq-item {
  border-bottom: 1px solid var(--stone-wash);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--stone);
  cursor: pointer;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "+";
  flex-shrink: 0;
  margin-left: 1rem;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--stone-light);
  transition: transform 0.2s;
}
details[open] > .faq-question::after {
  content: "\2212";
}
.faq-answer {
  padding: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--stone-mid);
}


/* ============================================================
   Nearby Springs
   ============================================================ */

/* ============================================================
   Soaking Quality Badge (sidebar temp card)
   ============================================================ */

.soaking-quality {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.85rem;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  background: var(--stone-whisper);
  text-align: center;
}
.soaking-quality[data-sentiment="perfect"],
.soaking-quality[data-sentiment="great"] {
  background: linear-gradient(135deg, var(--terra-light), #fdf6f1);
}
.soaking-quality-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--stone);
  letter-spacing: -0.01em;
}
.soaking-quality[data-sentiment="perfect"] .soaking-quality-label,
.soaking-quality[data-sentiment="great"] .soaking-quality-label {
  color: var(--terra);
}
.soaking-quality-month {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--stone-light);
  margin-top: 0.15rem;
}


/* ============================================================
   Best Time to Visit
   ============================================================ */

.best-time-section {
  margin-bottom: 2rem;
}
.best-time-section .info-card-header {
  margin-bottom: 0.75rem;
}
.best-time-months {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.best-time-month {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: var(--stone-whisper);
  border-left: 3px solid transparent;
}
.best-time-top {
  border-left-color: var(--terra);
  background: var(--terra-light);
}
.best-time-month-name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--stone);
  min-width: 90px;
}
.best-time-top .best-time-month-name {
  color: var(--terra);
}
.best-time-month-detail {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--stone-light);
  letter-spacing: 0.01em;
}
.best-time-month-detail strong {
  color: var(--stone);
}
.best-time-top .best-time-month-detail strong {
  color: var(--terra);
}
.best-time-note {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--stone-light);
  font-style: italic;
}


/* ============================================================
   Discovery Section (internal links)
   ============================================================ */

.discovery-section {
  padding: 3rem 0 2rem;
}
.discovery-group {
  margin-bottom: 2.5rem;
}
.discovery-group:last-of-type {
  margin-bottom: 1.5rem;
}
.discovery-state-cta {
  text-align: center;
  padding-top: 0.5rem;
}


/* ============================================================
   Prose (long-form content pages)
   ============================================================ */

.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.prose h2:first-child { margin-top: 0; }

.prose p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--stone-mid);
}

.prose ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  list-style: disc;
}
.prose ul li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  color: var(--stone-mid);
}

.prose strong { color: var(--stone); }

.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--terra); }

.prose em {
  font-size: 0.88rem;
  color: var(--stone-light);
}


/* ============================================================
   State Show — Overview Stats Bar
   ============================================================ */

.state-overview {
  display: flex;
  gap: 0.75rem;
  margin-top: -1.25rem;
  position: relative;
  z-index: 5;
  flex-wrap: wrap;
}

.state-overview-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex: 1;
  min-width: 120px;
}

.state-overview-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--stone);
  line-height: 1;
}

.state-overview-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--stone-light);
}


/* ============================================================
   State Show — Featured Springs
   ============================================================ */

.state-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.state-featured-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--stone);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.state-featured-card:hover {
  text-decoration: none;
  color: var(--stone);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.state-featured-img {
  position: relative;
  overflow: hidden;
}
.state-featured-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, var(--surface), transparent);
}
.state-featured-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.state-featured-card:hover .state-featured-img img {
  transform: scale(1.04);
}

.state-featured-body {
  padding: 1.15rem 1.4rem 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.state-featured-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

.state-featured-location {
  font-size: 0.78rem;
  color: var(--stone-light);
  margin-bottom: 0.65rem;
}

.state-featured-extract {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--stone-mid);
  margin-bottom: 0.85rem;
  flex: 1;
}

.state-featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}


/* ============================================================
   State Show — Superlatives
   ============================================================ */

.state-superlatives {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.state-superlative-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem 1.25rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  color: var(--stone);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}
.state-superlative-card:hover {
  text-decoration: none;
  color: var(--stone);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.state-superlative-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.state-superlative-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--noise);
  pointer-events: none;
  border-radius: var(--radius-lg);
}

.state-superlative-terra::before { background: linear-gradient(90deg, var(--terra), var(--terra-glow)); }
.state-superlative-gold::before { background: linear-gradient(90deg, var(--gold), #e0be6a); }
.state-superlative-sage::before { background: linear-gradient(90deg, var(--sage), #7da888); }
.state-superlative-mineral::before { background: linear-gradient(90deg, var(--mineral), #3a7da3); }

.state-superlative-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--stone-light);
  margin-bottom: 0.65rem;
}

.state-superlative-value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}
.state-superlative-terra .state-superlative-value {
  background: linear-gradient(135deg, var(--terra), var(--terra-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.state-superlative-gold .state-superlative-value { color: var(--gold); }
.state-superlative-sage .state-superlative-value { color: var(--sage); }
.state-superlative-mineral .state-superlative-value { color: var(--mineral); }

.state-superlative-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}

.state-superlative-location {
  font-size: 0.72rem;
  color: var(--stone-light);
  margin-top: 0.15rem;
}


/* ============================================================
   State Show — Temperature Distribution
   ============================================================ */

.state-temp-section {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.state-temp-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4a90b8, #6bab5e, #d4a53c, var(--terra), #8b2020);
}
.state-temp-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--noise);
  pointer-events: none;
  border-radius: var(--radius-xl);
}

.state-temp-gauge {
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
}

.state-temp-gauge-track {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #4a90b8, #6bab5e, #d4a53c, var(--terra), #8b2020);
  position: relative;
}

.state-temp-gauge-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}
.state-temp-gauge-marker::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--stone);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.state-temp-gauge-avg {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--stone);
  white-space: nowrap;
  background: var(--surface);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  box-shadow: var(--shadow-subtle);
}

.state-temp-gauge-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--stone-light);
}

.state-temp-breakdown {
  display: flex;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.state-temp-bucket {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--stone-whisper);
}

.state-temp-bucket-count {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}
.state-temp-warm .state-temp-bucket-count { color: #4a90b8; }
.state-temp-hot .state-temp-bucket-count { color: var(--terra); }
.state-temp-boiling .state-temp-bucket-count { color: #8b2020; }

.state-temp-bucket-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--stone);
  line-height: 1.3;
}

.state-temp-bucket-range {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--stone-light);
  font-family: var(--font-mono);
}


/* ============================================================
   State Show — Water Chemistry
   ============================================================ */

.state-chem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.state-chem-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.state-chem-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--noise);
  pointer-events: none;
  border-radius: var(--radius-lg);
}

.state-chem-card-highlight {
  background: var(--mineral-deep);
  color: #fff;
}

.state-chem-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.state-chem-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.state-chem-icon::before {
  content: '';
  display: block;
  border-radius: 50%;
}

.state-chem-icon-ph {
  background: var(--mineral-light);
}
.state-chem-icon-ph::before {
  width: 12px;
  height: 12px;
  background: var(--mineral);
}

.state-chem-icon-tds {
  background: var(--gold-light);
}
.state-chem-icon-tds::before {
  width: 12px;
  height: 12px;
  background: var(--gold);
}

.state-chem-icon-star {
  background: rgba(255,255,255,0.15);
}
.state-chem-icon-star::before {
  width: 12px;
  height: 12px;
  background: #fff;
}

.state-chem-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--stone-light);
}
.state-chem-card-highlight .state-chem-title {
  color: rgba(255,255,255,0.6);
}

.state-chem-body {
  position: relative;
  z-index: 1;
}

.state-chem-stat-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.state-chem-stat {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--stone);
}
.state-chem-card-highlight .state-chem-stat {
  color: rgba(255,255,255,0.85);
}

.state-chem-note {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--stone-light);
}
.state-chem-card-highlight .state-chem-note {
  color: rgba(255,255,255,0.55);
}

.state-chem-highlight-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.state-chem-highlight-value span {
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.6;
}

.state-chem-spring-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: color 0.2s, border-color 0.2s;
}
.state-chem-spring-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}


/* ============================================================
   State Show — County Distribution
   ============================================================ */

.state-counties {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 640px;
}

.state-county-row {
  display: grid;
  grid-template-columns: 160px 1fr 40px;
  align-items: center;
  gap: 1rem;
}

.state-county-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--stone);
  text-align: right;
}

.state-county-bar-wrap {
  height: 24px;
  background: var(--stone-whisper);
  border-radius: 4px;
  overflow: hidden;
}

.state-county-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--mineral), var(--mineral-light));
  border-radius: 4px;
  min-width: 8px;
  transition: width 0.6s ease;
}

.state-county-count {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--stone-mid);
}


/* ============================================================
   Show More Button
   ============================================================ */

.show-more-cta {
  text-align: center;
  margin-top: 1.5rem;
}


/* ============================================================
   City Show — Leaflet Map Markers
   ============================================================ */

.city-map-marker {
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.city-map-marker-city {
  background: var(--mineral);
}
.city-map-marker-spring {
  background: var(--terra);
}


/* ============================================================
   City Show — Hero Coords & Stats Row
   ============================================================ */

.city-hero-coords {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  opacity: 0.5;
  margin-top: 0.6rem;
  letter-spacing: 0.02em;
}

.city-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: -1.5rem;
  position: relative;
  z-index: 5;
}

.city-stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.city-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mineral), var(--sage));
}
.city-stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--noise);
  pointer-events: none;
  border-radius: var(--radius-lg);
}

.city-stat-card-hot::before {
  background: linear-gradient(90deg, var(--terra), var(--gold));
}

.city-stat-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--stone-light);
  margin-bottom: 0.4rem;
}

.city-stat-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--stone);
  line-height: 1.2;
  margin-bottom: 0.15rem;
}

.city-stat-detail {
  font-size: 0.78rem;
  color: var(--stone-light);
}


/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 960px) {
  .spring-content {
    grid-template-columns: 1fr;
  }
  .spring-sidebar {
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .info-card { margin-bottom: 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .mineral-grid { grid-template-columns: repeat(2, 1fr); }
  .mineral-card { grid-template-columns: 56px 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .discovery-group { margin-bottom: 2rem; }
  .city-stats-row { grid-template-columns: repeat(2, 1fr); }
  .state-superlatives { grid-template-columns: repeat(2, 1fr); }
  .home-superlatives { grid-template-columns: repeat(2, 1fr); }
  .state-featured-grid { grid-template-columns: repeat(2, 1fr); }
  .state-chem-grid { grid-template-columns: 1fr 1fr; }
  .home-glance-grid { grid-template-columns: repeat(2, 1fr); }
  .home-mineral-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  .container { padding: 0 1.25rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .mineral-grid { grid-template-columns: 1fr; }
  .mineral-card { grid-template-columns: 56px 1fr; }
  .spring-sidebar { grid-template-columns: 1fr; }
  .home-hero { padding: 4rem 0 3.5rem; }
  .home-hero h1 { font-size: 2.25rem; }
  .home-stat-bar { gap: 2rem; }
  .home-stat-number { font-size: 2rem; }
  .page-hero h1, .spring-hero h1 { font-size: 2rem; }
  .worth-visiting-lists { grid-template-columns: 1fr; gap: 1rem; }
  .worth-visiting { padding: 1.25rem 1.5rem; }
  .packing-list { grid-template-columns: 1fr; }
  .chemistry-reading { padding: 0.55rem 0.65rem; }
  .chemistry-header { flex-direction: column; gap: 0.3rem; }
  .mineral-article .prose::before { display: none; }
  .mineral-article .prose { padding-left: 0; }
  .mineral-profile { padding: 1rem 1.15rem; font-size: 0.95rem; }
  .mineral-profile-name { font-size: 1.15rem; }
  .map-container iframe { height: 240px; }
  .climate-bar-label { font-size: 0.6rem; }
  .climate-bar-value { font-size: 0.55rem; }
  .temp-big { font-size: 2.75rem; }
  .state-grid { grid-template-columns: 1fr; }
  .field-measurements-section { padding: 1.5rem; }
  .field-measurement-value { font-size: 1rem; }
  .ref-links { gap: 0.4rem; }
  .ref-pill { padding: 0.35rem 0.7rem; font-size: 0.72rem; }
  .quick-fact-pill { padding: 0.25rem 0.6rem; font-size: 0.72rem; }
  .spring-hero .quick-facts-pills { gap: 0.35rem; }
  .best-time-month { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .best-time-month-name { min-width: 0; }
  .map-cta-row { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .discovery-group { margin-bottom: 1.5rem; }
  .faq-question { font-size: 0.92rem; padding: 0.75rem 0; }
  .city-grid { grid-template-columns: 1fr; }
  .city-stats-row { grid-template-columns: 1fr; }
  .state-overview { gap: 0.5rem; }
  .state-overview-card { min-width: 0; }
  .state-overview-number { font-size: 1.2rem; }
  .state-featured-grid { grid-template-columns: 1fr; }
  .state-superlatives { grid-template-columns: 1fr 1fr; }
  .state-superlative-value { font-size: 1.35rem; }
  .home-superlatives { grid-template-columns: 1fr; }
  .home-glance-grid { grid-template-columns: 1fr; }
  .home-glance-number { font-size: 1.5rem; }
  .home-ph-extremes { grid-template-columns: 1fr; }
  .home-ph-card { grid-template-columns: 100px 1fr; }
  .home-ph-value { font-size: 1.75rem; }
  .home-mineral-grid { grid-template-columns: 1fr; }
  .home-mineral-value { font-size: 1.25rem; }
  .home-top-state-row { grid-template-columns: 24px 100px 1fr 40px; gap: 0.5rem; }
  .home-top-state-name { font-size: 0.88rem; }
  .state-temp-section { padding: 1.5rem; }
  .state-temp-breakdown { flex-direction: column; gap: 0.5rem; }
  .state-chem-grid { grid-template-columns: 1fr; }
  .state-county-row { grid-template-columns: 120px 1fr 32px; gap: 0.5rem; }
  .state-county-name { font-size: 0.78rem; }
}
