/* The Every Acre Water Basin page: the carousel's own mechanics, and
   nothing else.

   This file used to carry a palette taken out of the PDF -- cream, olive,
   clay, water blue -- and repaint the whole page in it, including a cream
   background. That was replaced on the owner's instruction of 2026-11-22,
   "Use our theme." and "Make the creme background white": the page wears
   the site's own look like every other page here, on the site's own near
   white background. The old palette is recorded in CLAUDE_HISTORY.md under
   that date.

   Every colour below is one of the site's own variables, declared in
   css/business-plan.css, which this page already loads. Nothing here
   invents a colour. */

/* The carousel: the ten pages as real pictures in a strip that scrolls
   sideways, with scroll snapping so it always lands squarely on a page.
   Pictures rather than the browser's own PDF reader, on the owner's
   instruction of 2026-11-22, because a reader cannot be swiped sideways
   and looks different in every browser. The PDF itself is still on the
   page as a download, so nothing is lost by showing images.

   It is a real scrolling strip, so a touch screen swipes it, a trackpad
   pushes it sideways, the arrow buttons move it a page at a time, and the
   left and right arrow keys work when the strip has focus. Nothing here
   needs a library. */
.basin-carousel { background: var(--white); border: 1px solid var(--border-color); border-radius: 8px; padding: 0.75rem; margin: 1rem 0 0.6rem; }
.basin-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.4rem;
}
.basin-strip:focus-visible { outline: 3px solid var(--accent-blue); outline-offset: 3px; }
.basin-slide {
  flex: 0 0 min(100%, 560px);
  scroll-snap-align: center;
  margin: 0;
}
.basin-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--white);
}
.basin-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.6rem; flex-wrap: wrap; }
/* The site's own primary button blue, on the owner's instruction of
   2026-11-22, rather than the near-black these arrows wore. */
.basin-arrow {
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.9rem;
  cursor: pointer;
  color: var(--white);
  background: var(--accent-blue);
  border: 1px solid var(--accent-blue);
  border-radius: var(--radius-5);
}
.basin-arrow:hover { background: var(--accent-blue-hover); border-color: var(--accent-blue-hover); }
.basin-arrow[disabled] { opacity: 0.4; cursor: not-allowed; }
.basin-dots { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.basin-dot {
  width: 22px; height: 22px; padding: 0; cursor: pointer;
  border: 1px solid var(--border-color); border-radius: 50%;
  background: var(--white); font-size: 0; line-height: 0;
}
.basin-dot[aria-current="true"] { background: var(--accent-blue); border-color: var(--accent-blue); }
.basin-count { font-size: 0.9rem; color: var(--text-muted); margin-left: auto; }
.basin-carousel-note { font-size: 0.9rem; color: var(--text-muted); margin: 0.6rem 0 0; }

.basin-card { background: var(--white); border: 1px solid var(--border-color); border-left: 4px solid var(--accent-blue); border-radius: 6px; padding: 0.9rem 1.1rem; margin: 0.9rem 0; }
.basin-card.is-water { border-left-color: var(--accent-blue); }
.basin-card.is-dirt { border-left-color: var(--accent-blue); }
.basin-card h3 { margin-top: 0; }
.basin-card p:last-child { margin-bottom: 0; }

table.basin-table { width: 100%; border-collapse: collapse; margin: 0.9rem 0; font-size: 0.95rem; background: var(--white); }
table.basin-table th, table.basin-table td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--border-color); vertical-align: top; }
table.basin-table th { background: var(--accent-soft); color: var(--text-main); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
table.basin-table td:first-child { font-weight: 700; }
.basin-table-scroll { overflow-x: auto; }

.basin-sources { font-size: 0.92rem; }
.basin-sources li { margin-bottom: 0.5rem; }
.basin-note { background: var(--accent-soft); border-radius: 6px; padding: 0.8rem 1rem; margin: 1rem 0; }

/* Laptop width, on the owner's instruction of 2026-11-22. The shared .plan
   column is 820px, which is a comfortable reading measure and too narrow
   for a carousel of square pages: it left the strip showing barely one page
   with the next one cut off. This widens the column to the same 1140px the
   rest of the site's own bays use, and lets the strip show two pages at a
   time once there is room for them. */
.plan.plan-wide { max-width: 1140px; }
.plan-wide .basin-slide { flex: 0 0 min(100%, 460px); }
.plan-wide p, .plan-wide li { max-width: 78ch; }

/* The title, its one line and its one paragraph stand on their own, with
   no box and no coloured edge down the side, on the owner's instruction of
   2026-11-22. The shared .page-title-block draws a four-pixel blue border
   on the left; this takes it off for this page only and closes the gap it
   left, so the carousel sits directly under the words. */
.page-title-block.page-title-plain { border-left: 0; padding-left: 0; }
.page-title-block.page-title-plain + * { margin-top: 0; }

/* ---------------------------------------------------------------------------
   The newspaper layout, on the owner's instruction of 2026-11-22.

   The front of the page is a masthead: the carousel on the left, the title
   and the one paragraph saying what this is on the right. Everything under
   it flows down two columns the way a newspaper does -- real CSS columns,
   so the text fills the first column and carries on into the second by
   itself rather than being split by hand.

   One thing deliberately does not go in the columns: the table of how long
   a crop survives standing water. A table squeezed into half a column is
   unreadable, so it spans both.
   --------------------------------------------------------------------------- */
.basin-masthead {
  display: grid;
  /* The words first, the carousel second, on the owner's instruction of
     2026-11-22. Swapped in the markup rather than by CSS order, so the
     order a screen reader and a keyboard follow is the order the page
     really reads in. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 1.75rem;
  align-items: stretch;
}
.basin-masthead-art { min-width: 0; }
/* The words are centred and spread down the whole height of the carousel
   beside them, rather than sitting in a block at the top with a hole
   underneath. space-around is what does the spreading: it puts the gaps
   between the title, its line, the paragraph and the note, so the space
   that was empty is now the spacing. */
/* The words are left aligned and sit as one block in the middle of the
   height beside the carousel -- centred up and down, not across. Owner's
   instruction, 2026-11-22: "left align the text center the body of text
   vertically not horizontally". justify-content: center is what centres
   the block vertically; space-around used to spread the lines apart to
   fill the height, and that is exactly the spacing being taken out. */
.basin-masthead-words {
  min-width: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
}
.basin-masthead-words .page-title-block { display: contents; }
.basin-masthead-words h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}
.basin-masthead-words .tagline { margin: 0; font-size: 0.85rem; }
.basin-masthead-words p { margin: 0; max-width: 46ch; font-size: 1.05rem; }
/* In the masthead the carousel shows one page at a time, because it now has
   half the width it had across the whole page. */
.basin-masthead .basin-slide { flex: 0 0 100%; }
/* The note about sources sits in the masthead under the title, where it
   reads the way a standfirst does in a newspaper. */
.basin-masthead-words .basin-note { margin: 0; text-align: left; }

.basin-columns {
  column-count: 2;
  column-gap: 2.25rem;
  column-rule: 1px solid var(--border-color);
}
/* A heading should never be the last thing at the bottom of a column with
   its paragraph stranded at the top of the next one. */
.basin-columns h2,
.basin-columns h3 { break-after: avoid; page-break-after: avoid; }
.basin-columns h2:first-child { margin-top: 0; }
/* A card or a note broken across a column boundary reads as two different
   boxes, so each one stays whole. */
.basin-columns .basin-card,
.basin-columns .basin-note,
.basin-columns li { break-inside: avoid; page-break-inside: avoid; }
/* The table spans both columns rather than being squeezed into one. */
.basin-columns .basin-span {
  column-span: all;
  margin: 1.2rem 0;
}
/* Inside a column the measure is already narrow, so the 78-character cap
   from the wide layout must not fight it. */
.basin-columns p,
.basin-columns li { max-width: none; }

@media (max-width: 900px) {
  /* One column on a phone: a newspaper column on a 390-pixel screen is
     four words wide. */
  .basin-masthead { grid-template-columns: minmax(0, 1fr); }
  .basin-columns { column-count: 1; column-rule: 0; }
}

/* How to work the carousel, on one full-width line under both the title
   and the carousel rather than tucked inside the carousel's own box, with
   a rule under it closing the masthead off from the story. Owner's
   instruction, 2026-11-22. */
/* Written as .plan-wide p.basin-masthead-howto on purpose: ".plan-wide p"
   above is one class and one element, which outranks a class on its own,
   so a plain .basin-masthead-howto rule lost and the line stayed capped at
   668 pixels instead of filling the 1092 it was meant to. Measured, not
   guessed. */
.plan-wide p.basin-masthead-howto {
  /* Full width on purpose. The wide layout caps prose at 78 characters so
     the story stays readable, and this one line has to escape that cap or
     it is not a full line under both halves. */
  max-width: none;
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.basin-rule {
  border: 0;
  border-top: 2px solid var(--text-main);
  margin: 1.1rem 0 1.6rem;
}
