/* Full Circle Paradise Water Atlas
   Loaded after style.css. All selectors are scoped to the Water page where practical. */

[id] { scroll-margin-top: 6.5rem; }

.water-atlas .section-heading {
  max-width: 900px;
}

.water-atlas .section-heading > p:last-child {
  max-width: 780px;
}

.water-hero figure img {
  object-position: center;
}

.hero-source {
  margin-top: 1.2rem;
}

.hero-source a,
.creek-source a {
  color: var(--terracotta);
  font: 700 .68rem/1.3 var(--sans);
  letter-spacing: .035em;
  text-decoration: none;
  text-transform: uppercase;
}

.water-section,
.water-opening,
.water-source-note {
  padding: 5rem;
}

.water-light {
  background:
    radial-gradient(rgba(105, 78, 38, .028) .7px, transparent .8px),
    var(--paper-light);
  background-size: 8px 8px, auto;
}

.water-paper,
.implementation-section {
  background:
    radial-gradient(rgba(105, 78, 38, .035) .7px, transparent .8px),
    var(--paper);
  background-size: 8px 8px, auto;
}

.water-subnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
  max-width: 1140px;
  margin: 0 auto 3rem;
}

.water-subnav a {
  padding: .55rem .86rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(248, 241, 223, .75);
  color: var(--forest-dark);
  font: 700 .69rem/1 var(--sans);
  letter-spacing: .035em;
  text-decoration: none;
}

.water-subnav a:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.water-facts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  max-width: 1160px;
  margin: 0 auto;
  background: var(--forest);
  border: 1px solid var(--forest-dark);
  color: white;
}

.water-facts div {
  padding: 1.35rem .7rem;
  border-right: 1px solid rgba(255,255,255,.14);
  text-align: center;
}

.water-facts div:last-child { border-right: 0; }

.water-facts strong {
  display: block;
  font: 600 clamp(1.28rem, 2vw, 1.75rem)/1 var(--display);
}

.water-facts span {
  display: block;
  margin-top: .42rem;
  color: #d7ddce;
  font: .61rem/1.25 var(--sans);
  letter-spacing: .065em;
  text-transform: uppercase;
}

.archive-note,
.calculation-note,
.safety-note,
.alpha-note {
  max-width: 1020px;
  margin: 1.7rem auto 0;
  padding: 1rem 1.25rem;
  background: rgba(248,241,223,.78);
  border-left: 4px solid var(--terracotta);
  color: var(--ink-soft);
}

.archive-note strong,
.calculation-note strong,
.safety-note strong,
.alpha-note strong {
  color: var(--forest-dark);
}

.map-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr);
  gap: 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
  align-items: stretch;
}

.water-map-card {
  margin: 0;
  padding: 1rem 1rem 1.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.water-map-card a { display: block; background: #fff; }

.water-map-card img {
  width: 100%;
  max-height: 690px;
  object-fit: contain;
  background: #fff;
  border: 7px solid #fbf8f1;
  outline: 1px solid rgba(183,162,123,.75);
  cursor: zoom-in;
}

.water-map-card figcaption,
.featured-water-map figcaption,
.water-photo-pair figcaption,
.water-photo-tall figcaption,
.persimmon-feature figcaption {
  margin-top: .9rem;
  line-height: 1.5;
}

.water-map-card figcaption strong,
.featured-water-map figcaption strong,
.water-photo-pair figcaption strong,
.water-photo-tall figcaption strong,
.persimmon-feature figcaption strong {
  color: var(--forest-dark);
  font: 600 1.28rem/1.1 var(--display);
}

.water-map-card figcaption a,
.featured-water-map figcaption a,
.water-photo-tall figcaption a {
  display: inline-block;
  margin-left: .25rem;
  color: var(--terracotta);
  font: 700 .65rem/1.2 var(--sans);
  text-decoration: none;
  text-transform: uppercase;
}

.flow-reading {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.flow-reading article {
  min-height: 180px;
  padding: 1.45rem;
  background: var(--paper-light);
}

.flow-reading span,
.soil-principle span,
.rain-label,
.alpha-links span {
  color: var(--terracotta);
  font: 700 .63rem/1 var(--sans);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.flow-reading h3 {
  margin-top: .72rem;
  font-size: 1.55rem;
}

.flow-reading p,
.soil-principle p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: .9rem;
}

.source-path {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto 2.2rem;
}

.source-path > article {
  min-height: 285px;
  padding: 1.65rem;
  background: var(--paper-light);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.source-path > b {
  color: var(--terracotta);
  font: 600 2.2rem/1 var(--display);
}

.source-number {
  color: var(--terracotta);
  font: 700 .68rem/1 var(--sans);
  letter-spacing: .14em;
}

.source-path h3 {
  margin: 1rem 0 .65rem;
  font-size: 1.72rem;
}

.source-path p {
  color: var(--ink-soft);
  font-size: .9rem;
}

.source-link {
  display: inline-block;
  color: var(--terracotta);
  font: 700 .65rem/1.25 var(--sans);
  letter-spacing: .035em;
  text-decoration: none;
  text-transform: uppercase;
}

.source-link:hover { color: var(--forest-dark); }

.water-photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.35rem;
  max-width: 1160px;
  margin: 0 auto;
}

.water-photo-pair figure,
.water-photo-tall,
.persimmon-feature figure,
.alpha-photo-wrap figure {
  margin: 0;
  padding: .78rem .78rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.water-photo-pair img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(117,91,53,.42);
  cursor: zoom-in;
  filter: saturate(.9) contrast(.98);
}

.rain-math-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  max-width: 1120px;
  margin: 0 auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.rain-card {
  min-height: 260px;
  padding: 2rem;
  background: var(--paper);
  text-align: center;
}

.rain-card strong {
  display: block;
  margin: 1.4rem 0 .8rem;
  color: var(--forest-dark);
  font: 600 clamp(2rem, 3.3vw, 3rem)/.95 var(--display);
}

.rain-card p:last-child {
  max-width: 18rem;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: .9rem;
}

.rain-priorities {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1px;
  max-width: 1120px;
  margin: 2rem auto 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.rain-priorities article {
  min-height: 220px;
  padding: 1.45rem;
  background: var(--paper-light);
}

.rain-priorities span {
  color: var(--terracotta);
  font: 700 .64rem/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rain-priorities h3 { margin-top: .8rem; }

.rain-priorities p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: .88rem;
}

.greywater-layout {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: 1.5rem;
  max-width: 1160px;
  margin: 0 auto;
  align-items: stretch;
}

.water-photo-tall img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  border: 1px solid rgba(117,91,53,.42);
  cursor: zoom-in;
  filter: saturate(.9) contrast(.98);
}

.greywater-network {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  gap: .72rem;
  align-items: center;
}

.grey-source,
.grey-destination {
  min-height: 115px;
  padding: 1rem 1.1rem;
  background: var(--paper-light);
  border: 1px solid var(--line);
}

.grey-source strong,
.grey-destination strong {
  display: block;
  color: var(--forest-dark);
  font: 600 1.18rem/1.05 var(--display);
}

.grey-source span,
.grey-destination span {
  display: block;
  margin-top: .35rem;
  color: var(--ink-soft);
  font-size: .78rem;
}

.grey-arrow {
  color: var(--terracotta);
  font: 600 1.8rem var(--display);
}

.safety-note {
  border-left-color: var(--forest);
  font-size: .88rem;
}

.soil-water-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1px;
  max-width: 1160px;
  margin: 0 auto 2rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.soil-principle {
  min-height: 235px;
  padding: 1.5rem;
  background: var(--paper-light);
}

.soil-principle h3 {
  margin-top: .82rem;
  font-size: 1.55rem;
}

.persimmon-feature {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr);
  gap: 1.5rem;
  max-width: 1160px;
  margin: 0 auto;
  align-items: center;
}

.persimmon-feature img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(117,91,53,.42);
  cursor: zoom-in;
}

.persimmon-feature > article {
  padding: 1.5rem;
}

.persimmon-feature > article h3 {
  font-size: 2rem;
}

.persimmon-feature > article p:not(.kicker) {
  color: var(--ink-soft);
}

.creek-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  min-height: 650px;
  padding: 0;
  overflow: hidden;
  background: var(--forest-dark);
  color: #fff;
}

.creek-section > img {
  width: 100%;
  height: 100%;
  min-height: 650px;
  object-fit: cover;
  cursor: zoom-in;
  filter: saturate(.86) contrast(.98);
}

.creek-overlay {
  align-self: center;
  padding: 5rem;
}

.creek-overlay h2 { color: #fff; }

.creek-overlay > p:not(.kicker):not(.creek-source) {
  color: #e1e5dc;
}

.creek-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 1.5rem 0;
}

.creek-actions span {
  padding: .5rem .72rem;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  color: #f4f0e7;
  font: .68rem/1 var(--sans);
}

.creek-source a { color: #e9c9aa; }

.featured-water-map {
  max-width: 1120px;
  margin: 2.2rem auto;
  padding: 1rem 1rem 1.45rem;
  background: var(--paper-light);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.featured-water-map a { display: block; }

.featured-water-map img {
  width: 100%;
  max-height: 850px;
  object-fit: contain;
  background: #fff;
  border: 8px solid #fbf8f1;
  outline: 1px solid rgba(183,162,123,.75);
  cursor: zoom-in;
}

.final-water-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
  list-style: none;
}

.final-water-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: .75rem;
  min-height: 155px;
  padding: 1.25rem;
  background: var(--paper-light);
}

.final-water-list li > span {
  color: var(--terracotta);
  font: 700 .7rem/1 var(--sans);
  letter-spacing: .08em;
}

.final-water-list strong {
  color: var(--forest-dark);
  font: 600 1.27rem/1.05 var(--display);
}

.final-water-list p {
  margin: .35rem 0 0;
  color: var(--ink-soft);
  font-size: .82rem;
}

.alpha-section {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  gap: 2.2rem;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(59,73,43,.97), rgba(38,50,29,.97)),
    var(--forest-dark);
  color: #fff;
}

.alpha-photo-wrap figure {
  background: #efe2c4;
  transform: rotate(-.35deg);
}

.alpha-photo-wrap img {
  width: 100%;
  max-height: 760px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(117,91,53,.42);
  cursor: zoom-in;
}

.alpha-photo-wrap figcaption {
  margin-top: .8rem;
  color: var(--ink-soft);
  font-size: .82rem;
}

.alpha-copy h2 { color: #fff; }

.alpha-copy > p:not(.kicker) {
  color: #e1e5dc;
}

.alpha-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .75rem;
  margin-top: 1.5rem;
}

.alpha-links a {
  min-height: 145px;
  padding: 1.1rem;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(248,241,223,.08);
  color: white;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

.alpha-links a:hover {
  color: white;
  background: rgba(248,241,223,.14);
  transform: translateY(-3px);
}

.alpha-links span { color: #e9c9aa; }

.alpha-links strong {
  display: block;
  margin: .65rem 0 .35rem;
  font: 600 1.3rem/1.05 var(--display);
}

.alpha-links small {
  display: block;
  color: #d7ddce;
  font: .74rem/1.45 var(--sans);
}

.alpha-note {
  margin-left: 0;
  margin-right: 0;
  background: rgba(248,241,223,.08);
  border-left-color: #d2a472;
  color: #d7ddce;
}

.alpha-note strong { color: #fff; }

.water-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .8rem;
  max-width: 1160px;
  margin: 0 auto;
}

.water-notes details {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 7px 14px rgba(45,37,22,.06);
}

.water-notes summary {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: .6rem;
  align-items: center;
  padding: 1rem 1.1rem;
  color: var(--forest-dark);
  font: 600 1.18rem/1.15 var(--display);
  cursor: pointer;
  list-style: none;
}

.water-notes summary::-webkit-details-marker { display: none; }

.water-notes summary::after {
  content: "+";
  color: var(--terracotta);
  font: 600 1.35rem/1 var(--display);
}

.water-notes details[open] summary::after { content: "−"; }

.water-notes summary span {
  color: var(--terracotta);
  font: 700 .64rem/1 var(--sans);
  letter-spacing: .08em;
}

.water-notes details > div {
  padding: 0 1.1rem 1.15rem 3.75rem;
}

.water-notes details p {
  margin-top: 0;
  color: var(--ink-soft);
  font-size: .88rem;
}

.water-timeline {
  position: relative;
  max-width: 1030px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.water-timeline::before {
  content: "";
  position: absolute;
  left: 95px;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: var(--line);
}

.water-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  margin-bottom: .9rem;
}

.water-timeline li > span {
  z-index: 1;
  align-self: start;
  padding: .42rem .35rem;
  background: var(--forest);
  border: 1px solid var(--forest-dark);
  color: #fff;
  font: 700 .62rem/1 var(--sans);
  letter-spacing: .05em;
  text-align: center;
  text-transform: uppercase;
}

.water-timeline li > div {
  padding: 1.15rem 1.35rem;
  background: var(--paper-light);
  border: 1px solid var(--line);
}

.water-timeline h3 { margin-bottom: .35rem; }

.water-timeline p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .88rem;
}

.source-centered { text-align: center; }

.water-source-note {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  background: var(--forest-dark);
  color: #fff;
}

.water-source-note > div { max-width: 850px; }

.water-source-note h2 {
  color: #fff;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
}

.water-source-note p:not(.kicker) {
  color: #d7ddce;
}

.water-source-note .primary-button {
  flex: 0 0 auto;
  border-color: #fff;
  background: #fff;
  color: var(--forest-dark);
}

.water-source-note .primary-button:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
}

@media (max-width: 1050px) {
  .water-section,
  .water-opening,
  .water-source-note { padding: 4rem 2.6rem; }

  .water-facts { grid-template-columns: repeat(3, 1fr); }
  .water-facts div:nth-child(3) { border-right: 0; }
  .water-facts div:nth-child(-n+3) { border-bottom: 1px solid rgba(255,255,255,.13); }

  .map-story-grid,
  .greywater-layout,
  .persimmon-feature,
  .alpha-section { grid-template-columns: 1fr; }

  .source-path { grid-template-columns: 1fr; }
  .source-path > b { transform: rotate(90deg); justify-self: center; }
  .source-path > article { min-height: 0; }

  .rain-priorities,
  .soil-water-grid { grid-template-columns: repeat(2, 1fr); }

  .creek-section { grid-template-columns: 1fr; }
  .creek-section > img { min-height: 480px; order: -1; }
  .creek-overlay { padding: 4rem 2.6rem; }

  .final-water-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .water-section,
  .water-opening,
  .water-source-note,
  .creek-overlay { padding: 3.2rem 1.25rem; }

  .water-facts { grid-template-columns: repeat(2, 1fr); }
  .water-facts div:nth-child(2n) { border-right: 0; }
  .water-facts div { border-bottom: 1px solid rgba(255,255,255,.13); }
  .water-facts div:nth-last-child(-n+2) { border-bottom: 0; }

  .water-photo-pair,
  .rain-math-grid,
  .rain-priorities,
  .soil-water-grid,
  .final-water-list,
  .alpha-links,
  .water-notes { grid-template-columns: 1fr; }

  .greywater-network { grid-template-columns: 1fr; }
  .grey-arrow { transform: rotate(90deg); justify-self: center; }

  .water-photo-tall img { min-height: 380px; }
  .alpha-photo-wrap img { max-height: 620px; }

  .water-notes summary { grid-template-columns: 36px 1fr auto; font-size: 1.05rem; }
  .water-notes details > div { padding-left: 1.1rem; }

  .water-timeline::before { left: 34px; }
  .water-timeline li { grid-template-columns: 68px 1fr; gap: .75rem; }

  .water-source-note { display: block; }
  .water-source-note .primary-button { margin-top: 1.2rem; }
}


/* Water Atlas v1.0 polish pass
   Keeps captions in normal document flow and makes wide-screen layouts robust. */
.water-hero figure {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 13px 13px 14px;
}

.water-hero figure img {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 445px;
  max-height: 680px;
  object-fit: cover;
}

.water-hero figure figcaption {
  position: static;
  right: auto;
  bottom: auto;
  margin: .8rem .15rem 0;
  max-width: none;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.greywater-layout {
  align-items: start;
}

.water-photo-tall {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.water-photo-tall img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.water-photo-tall figcaption {
  position: static;
  margin-top: .9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.greywater-network {
  min-width: 0;
  align-content: start;
  align-items: stretch;
}

.grey-source,
.grey-destination {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 120px;
  overflow-wrap: anywhere;
}

.safety-note {
  clear: both;
  position: relative;
  z-index: 1;
  margin-top: 1.75rem;
}

@media (min-width: 1051px) {
  .greywater-layout {
    grid-template-columns: minmax(300px, .7fr) minmax(560px, 1.3fr);
  }
}

@media (max-width: 760px) {
  .water-hero figure img {
    min-height: 350px;
    max-height: 520px;
  }

  .water-photo-tall img {
    aspect-ratio: 4 / 3;
  }
}
