/* ==========================================================================
   Wild & Wonderful Literacy — site stylesheet
   One file, no build step. Sections in order:
     1. Palette & tokens
     2. Reset & base
     3. Typography
     4. Layout helpers
     5. Header, wordmark, nav
     6. Buttons & links
     7. Components (hero, steps, cards, groups, FAQ, video, contact)
     8. Forms (the booking page, and every form in the admin)
     8b. Admin area
     9. Footer
     10. Responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Palette & tokens

   WHERE THESE COLORS COME FROM — Elisha, 2026-09-11, and worth reading before
   changing any of them. PaperPie's brand palette is six colors:

       Green      #03563A  }  the two DOMINANT colors since the rebrand
       Light blue #59B1D0  }
       Purple     #731472  — legacy, carried over from Usborne Books and More
       Yellow     #FBBF38  }
       Dark blue  #051F60  }  supporting
       Red        #B60B31  }

   Nothing on this site is from outside that list. What Elisha has done is
   *select* within it: green and light blue because they are PaperPie's, and
   then yellow and dark blue out of the supporting four because gold-and-blue
   is West Virginia — the license plates, the state's own colors — and both
   her business name and her whole proposition come from being local. Worn
   lightly, though: she works with schools in Ohio, Pennsylvania and Maryland
   too, and the site must not read as a West Virginia club. The rhododendron in
   the mark is the whole of the state reference; there is no WV silhouette
   anywhere, and she rejected one when it was offered.

   PURPLE AND RED ARE HELD BACK DELIBERATELY. Purple is Usborne's legacy color
   and is not hers to wear; red stays reserved for errors and nothing else.
   Neither is an oversight — do not "complete the palette" by finding uses for
   them.

   Anything here that is not one of the six is a tint or a shade of one of the
   six. That is the rule. No new hues.

   Every color here is a PaperPie brand color. Primary is the dark blue — it
   carries the structure: headings, the wordmark, primary buttons, the CTA band
   and the footer. The deep forest green is PaperPie's identifying color and it
   is in the logo, so it stays, but as a secondary accent rather than the frame:
   links, the resource-group stripes, success states, the ampersand. Yellow and
   the lockup's light blue are decorative only. The ground is a pale wash of the
   brand yellow, which is what keeps the site from going corporate.

   Every text-on-background pairing below is annotated with its measured
   contrast ratio. AA (4.5:1 for body text, 3:1 for large text and for
   non-decorative marks) is the floor, and nothing ships under it.
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Blues — PRIMARY. Everything structural. On the page ground: blue-800 is
     14.6:1, blue-900 17.1:1, blue-600 11.2:1, blue-400 4.8:1. White sits on
     blue-800 at 15.3:1 and on blue-900 at 18:1. */
  --blue-900: #03133F; /* deepest — footer ground, hover on blue fills */
  --blue-800: #051F60; /* PRIMARY — wordmark, headings, buttons, CTA band */
  --blue-600: #17337A; /* hover and secondary structural marks */
  --blue-400: #5C6E9E; /* form-control borders and muted marks — 4.9:1 on card */
  --blue-200: #C6CDE0; /* hairline on the blue-tinted surfaces */
  --blue-100: #E2E7F3; /* tinted surface — blue-800 on it 12.4:1, ink-soft 6.1:1 */
  --blue-050: #F0F3FA; /* faintest cool wash — blue-800 13.8:1, ink-soft 6.8:1 */

  /* Greens — PaperPie's identifying color, now the secondary accent. On the
     page ground: green-700 8.3:1, green-800 11.7:1, green-900 14.5:1;
     green-400 is 3.5:1 there, so marks and rules only, never body text. */
  --green-900: #022C1F;
  --green-800: #033D2A;
  --green-700: #03563A; /* links, accent stripes, success — white on it 8.8:1 */
  --green-600: #146B4A;
  --green-400: #4E9276; /* decorative rules, muted marks */
  --green-200: #C3DBCE; /* the link underline, and the edge of the green tag */
  --green-100: #E2EFE7; /* tinted surface — green-800 on it 10.4:1 */
  --green-050: #F0F7F2; /* faintest wash — blue-800 on it 14.1:1, ink-soft 7:1 */

  /* Warm ground — a pale wash of the brand yellow. Not beige and not peach:
     these are tints of #FBBF38, so the undertone is gold. Cards sit one step
     lighter than the page so they lift off it.

     Deepened 2026-09-11 at Elisha's call: the old #FEF9EC read as "pale white"
     to her, and the card barely lifted off it (1.03:1). These are one step
     warmer and the card now lifts at 1.10:1 on the ground, 1.20:1 on a band. */
  --ground: #FEF2D7; /* page background — ink 13:1, ink-soft 6.8:1, blue-800 13.8:1 */
  --ground-deep: #FCE9BC; /* the gold band — ink 12:1, ink-soft 6.3:1, blue-800 12.8:1 */
  --card: #FFFDF4; /* card surface — ink 14.1:1, blue-800 15:1 */
  --line: #E8DBB8; /* default hairline on the warm ground — a separator, never
                      a control edge; controls use --blue-400. NOTE: this is not
                      strong enough to divide one band from the next; that is
                      what --rule exists for. See the note on --rule below. */

  /* THE BAND RULE. Elisha found this on 2026-09-11 and it is the most useful
     thing anybody has said about this stylesheet: every band on the site was
     divided from its neighbor by a 1px --line, and the actual contrast across
     those boundaries was 1.05:1 to 1.18:1. The palette above documents text
     contrast meticulously and had never once measured a *boundary*. WCAG asks
     3:1 for a boundary that carries meaning. 1.05:1 is nothing, and for anyone
     whose eyes do not pick up tiny luminance differences the bands swim: there
     is no edge to lock onto, so the colors drift into each other.

     So band edges use --rule, 3px, dark blue: 13.8:1 on the ground, 12.8:1 on
     either band. Never --line for a band edge. If you add a band, give it a
     --rule edge and check the number. */
  --rule: #051F60;
  --rule-width: 3px;

  /* Accent — PaperPie yellow. Decorative marks and fills behind dark ink only.
     It is 1.6:1 on the page ground, so it NEVER carries text on a light ground
     and never draws a thin icon there. Where it does work: as a fill under dark
     ink (blue-900 on yellow 10.8:1) and as a mark on the blue grounds
     (yellow on blue-800 9.2:1, on blue-900 10.8:1). */
  --yellow: #FBBF38;

  /* Light blue — one of PaperPie's two DOMINANT brand colors, and until
     2026-09-11 it appeared in exactly one place on this entire site: the leaf
     on the old wordmark glyph, which that same evening was replaced. Swapping
     the mark would have removed a dominant company color from the site
     altogether. So the cool bands are now washes of it rather than washes of
     the structural navy: PaperPie's own blue does the everyday work down every
     page, which is what a dominant color is for.

     The pure value is still decorative only — 2.4:1 on card, so never text and
     never a meaningful thin mark. The tints below are grounds. */
  --sky: #59B1D0;
  --sky-100: #DAEEF5; /* the cool band — ink 12:1, ink-soft 6.3:1, blue-800 12.8:1 */
  --sky-200: #C4E4EF; /* the firmer step — ink 10.8:1, ink-soft 5.7:1, blue-800 11.4:1 */

  /* Error red — brand red, and the only place it appears. Errors, the required
     marker, and the destructive button. 6.7:1 on card, white on it 6.8:1. */
  --red: #B60B31;
  --red-dark: #8E0826; /* on --red-soft 8:1; white on it 9.5:1 */
  --red-soft: #FBE7EB;

  /* Ink — warm neutral, to sit on the gold ground rather than fight it. */
  --ink: #2B2A22; /* body text — 13.7:1 on the ground, 14.1:1 on card */
  --ink-soft: #57544A; /* secondary text — 7.2:1 on the ground, 7.4:1 on card */
  --ink-invert: #E6EAF5; /* body text on the blue grounds — 12.7:1 on blue-800 */

  /* Focus. The ring is dark blue everywhere it lands on a light ground; on the
     dark blue CTA band and footer it switches to yellow, which is the only one
     of the two that clears 3:1 there (9.2:1 and 10.8:1). */
  --focus-ring: #051F60;
  --focus-ring-dark: #FBBF38;

  /* Metrics */
  /* One size for every section-level h2, so the home page's headings all land
     at the same weight instead of one section reading bigger than the next. */
  --h2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);

  --measure: 68ch;
  --wrap: 68rem;
  --wrap-narrow: 50rem;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(5, 31, 96, 0.06), 0 6px 18px rgba(5, 31, 96, 0.08);
  --shadow-lift: 0 2px 4px rgba(5, 31, 96, 0.09), 0 12px 28px rgba(5, 31, 96, 0.14);

  --font: "Poppins", "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --step-gap: 1.25rem;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
}

img,
svg { max-width: 100%; }

img { height: auto; }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  color: var(--blue-800);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
h2 { font-size: var(--h2); }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1.02rem; font-weight: 600; }

p { margin: 0 0 1.1em; max-width: var(--measure); }

p:last-child,
ul:last-child,
ol:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.06rem, 1rem + 0.4vw, 1.22rem);
  color: var(--ink-soft);
  font-weight: 400;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-800);
  margin: 0 0 0.75rem;
}

.section-note {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Decorative rule under a heading. RETIRED from the public site (2026-09-06,
   Elisha's third review: she does not like them) — every <hr class="rule"> is
   gone from index, programs, faq, about, contact, videos and resources.

   The declaration survives only because book.php, contract.php and the admin
   still mark them up, and an <hr> with no styling falls back to the browser's
   default gray inset line, which is worse than the thing being removed. When
   those three lose their rules too, delete this block. */
.rule {
  border: 0;
  height: 3px;
  width: 3.5rem;
  border-radius: 3px;
  background: var(--sky);
  margin: 1.25rem 0 1.5rem;
}

.rule--center { margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   4. Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.wrap--narrow { max-width: var(--wrap-narrow); }

main { flex: 1 0 auto; }

/* Section grounds. THE RULE (2026-09-06): one area, one solid color. No
   gradient ever mixes two hues inside a single band — that is what made the old
   hero physically unpleasant to look at. The page reads as alternating solid
   blocks, warm gold and cool blue, and nothing in between. */
.section { padding: 3.25rem 0; }
.section--tight { padding: 2.25rem 0; }
/* Every band edge below is --rule, 3px. Read the note on --rule in section 1
   before changing one back to a hairline: the hairlines were invisible, which
   is the defect this whole set of edges exists to fix. */
.section--band {
  background: var(--ground-deep);
  border-top: var(--rule-width) solid var(--rule);
  border-bottom: var(--rule-width) solid var(--rule);
}
.section--wash { background: var(--green-050); }

/* The navy band: white headings, ink-invert text (12.7:1) and yellow links
   (9.2:1), so a page can step navy, gold, light blue without two neighbors
   looking alike. */
.section--navy {
  background: var(--blue-800);
  color: var(--ink-invert);
}
.section--navy h2,
.section--navy h3 { color: #FFFFFF; }
.section--navy .text-link { color: var(--yellow); text-decoration-color: var(--yellow); }
.section--navy .text-link:hover { color: #FFFFFF; text-decoration-color: #FFFFFF; }
.section--navy a:focus-visible { outline-color: var(--focus-ring-dark); }

/* The two cool bands, now washes of PaperPie's own light blue rather than of
   the structural navy — see the note on --sky in section 1. sky-100 is the
   light step, sky-200 the firmer one: ink 12.0:1 and 10.8:1, ink-soft 6.3:1
   and 5.7:1, blue-800 headings 12.8:1 and 11.4:1. */
.section--blue {
  background: var(--sky-100);
  border-top: var(--rule-width) solid var(--rule);
  border-bottom: var(--rule-width) solid var(--rule);
}

.section--blue-deep {
  background: var(--sky-200);
  border-top: var(--rule-width) solid var(--rule);
  border-bottom: var(--rule-width) solid var(--rule);
}

.section-head { margin-bottom: 2rem; }
.section-head p { margin-bottom: 0; }
.section-head h2 { font-size: var(--h2); }

/* A section's opening line runs the full width of the wrap, the same as the
   hero. It inherits the 68ch reading measure from the base `p` rule otherwise,
   which stops it two-thirds of the way across while the band it sits in and the
   cards beneath it both go edge to edge — Elisha asked for this on the hero
   first, then here, and it is the same complaint both times: the intro reads as
   indented against everything around it.

   This applies to every .section-head on the site, not only the home page, so
   the intros now line up with their own content wherever they appear. The wrap
   (68rem) is still the real limit. Body copy inside a section keeps the narrow
   measure, which is where it actually helps. */
.section-head .lede,
.section-head .section-note { max-width: none; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--blue-800);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   5. Header, wordmark, nav
   -------------------------------------------------------------------------- */
/* White, not the warm card color, and not a gold bar. Elisha looked at a solid
   PaperPie-gold header on 2026-09-11 and turned it down: with color in the
   lockup and color down the page, the top of the site is where the eye needs
   somewhere to rest. The gold arrives immediately below, as the rule. */
.site-header {
  background: #FFFFFF;
  border-bottom: var(--rule-width) solid var(--rule);
  box-shadow: 0 1px 0 rgba(5, 31, 96, 0.04);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

/* The brand block holds the wordmark and its text stand-in only. The PaperPie
   lockup is NOT in here: as of 2026-09-11 it sits in the opposite corner, which
   is Elisha's one firm requirement for the header — her branding one side,
   PaperPie's the other, on every page. `justify-content: space-between` on the
   inner does that, and .site-nav below takes the whole of the next line. */
.site-header__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}

/* The nav drops to its own full-width line beneath the two marks, rather than
   competing with the lockup for the right-hand side. On narrow screens the
   inner switches to a column and this is a no-op. */
.site-nav { flex-basis: 100%; }

/* ---- The menu button. Hidden entirely above 46rem; see section 10. ---------
   The checkbox is visually hidden but NOT display:none — a display:none input
   cannot be focused, and the button has to work from a keyboard. */
.nav-toggle {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
}

.nav-toggle__btn {
  display: none;              /* section 10 turns this on below 46rem */
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--blue-400);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--blue-800);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
}

.nav-toggle__btn:hover { border-color: var(--blue-800); }

/* The focus ring lands on the label, because the input itself is invisible. */
.nav-toggle:focus-visible + .nav-toggle__btn {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Closed shows three bars, open shows a cross. */
.nav-toggle__x { display: none; }
.nav-toggle:checked + .nav-toggle__btn .nav-toggle__bars { display: none; }
.nav-toggle:checked + .nav-toggle__btn .nav-toggle__x { display: inline; }
.nav-toggle:checked + .nav-toggle__btn .nav-toggle__word::after { content: none; }


.site-header__lockup {
  display: block;
  width: 18rem;
  max-width: 100%;
  height: auto;
}

/* The text stand-in for the lockup, shown only where the lockup's own tagline
   would be too small to read. See the width rules in section 10. */
.site-header__sub {
  display: none;
  margin: 0;
  max-width: 26ch;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Wordmark */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.77rem;
  text-decoration: none;
  color: var(--blue-800);
  border-radius: var(--radius);
  transition: color 0.15s ease, transform 0.15s ease;
}

.wordmark__glyph {
  flex: none;
  /* 10% larger than the first cut, mark and name together. Elisha,
     2026-10-09: "just make it a little bit bigger ... the whole thing." */
  width: clamp(2.53rem, 2.035rem + 2.2vw, 3.52rem);
  height: clamp(2.53rem, 2.035rem + 2.2vw, 3.52rem);
  color: var(--green-700);
  transition: color 0.15s ease, transform 0.2s ease;
}

/* THE NAME IS SET IN CAVEAT, THE NOUN IS NOT. Elisha chose this on 2026-09-15
   after seeing seven scripts in the real header. The structure copies her own
   PaperPie ebook cover, where a sans lockup sits above "literacy programs" in a
   script: the script carries the name, the plain face carries the category.

   It also solves something the old one-liner got wrong. "Wild & Wonderful
   Literacy" set as one run of Poppins read as a sentence, and it competed with
   the PaperPie lockup opposite it — two geometric sans marks fighting across
   the header. A script gives her side its own voice and lets the two read as
   partners, which is what they are.

   The face is a fallback away from disaster, so the stack is explicit: Caveat,
   then Poppins, and only then the generic. A bare `cursive` fallback renders as
   a serif in some browsers and the mark looks broken rather than plain. */
.wordmark__name {
  display: block;
  font-family: "Caveat", "Poppins", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: clamp(2.09rem, 1.43rem + 2.86vw, 3.41rem);
  line-height: 0.92;
  letter-spacing: 0;
}

/* LITERACY as a base rule under the script. Sized in em so it tracks the name
   at every breakpoint rather than needing its own clamp. */
.wordmark__base {
  display: block;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 0.34em;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-top: 0.15em;
  padding-left: 0.2em;
}

/* The ampersand is PaperPie yellow, and this is the one place in the stylesheet
   where a color sits below the contrast floor on purpose. It is 1.7:1 on the
   white header. Elisha chose it on 2026-09-11 after being shown the number
   twice, and after looking at outlined versions (which do clear the floor) and
   disliking them — the stroke reads as a drop shadow at this size.

   It is a defensible exception, and the reason is that the glyph is not
   load-bearing: "Wild ... Wonderful Literacy" is completely legible without it,
   so nobody loses information if it goes faint, and the wordmark link carries
   its own accessible name for anyone using a screen reader. That reasoning
   covers THIS glyph and nothing else. Do not cite it to put yellow text
   anywhere a reader would actually have to read it. */
.wordmark__name .amp {
  color: var(--yellow);
  font-weight: 700;
}

.wordmark:hover { color: var(--blue-600); }
.wordmark:hover .wordmark__glyph { color: var(--green-600); transform: rotate(-6deg); }
.wordmark:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}
.wordmark:active { transform: translateY(1px); }

/* Nav — CSS-only, wraps on small screens. No JS anywhere. */
/* Nine items have to sit on one row on a laptop. At 16px with 0.8rem of padding
   either side they came to 1075px against 984px of nav and pushed Contact onto a
   line of its own, which reads as an accident rather than a design.

   Trimmed to fit rather than shortened: the labels are Elisha's words and they
   stay. 0.55rem of side padding and 0.94rem type buy back about 120px, which
   carries all nine across at 1024px with room to spare. Below roughly 950px they
   wrap to two rows again, and below 46rem the Menu button takes over entirely —
   so the row-gap matters on the way through, and it is no longer 4px. */
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.55rem;
  font-size: 0.94rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  color: var(--blue-800);
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover {
  background: var(--blue-100);
  color: var(--blue-900);
}

.site-nav a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  background: var(--blue-100);
}

.site-nav a:active { background: var(--blue-200); }

.site-nav a[aria-current="page"] {
  color: var(--blue-900);
  background: var(--blue-100);
  border-color: var(--blue-200);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   6. Buttons & links
   -------------------------------------------------------------------------- */
a { color: var(--green-700); }

a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.prose a,
.text-link {
  color: var(--green-700);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--green-200);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.prose a:hover,
.text-link:hover {
  color: var(--blue-900);
  text-decoration-color: var(--sky);
}

.prose a:active,
.text-link:active { color: var(--green-900); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
              box-shadow 0.15s ease, transform 0.1s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--blue-800);
  color: #FFFFFF;
  border-color: var(--blue-800);
  box-shadow: var(--shadow);
}

.btn--primary:hover {
  background: var(--blue-900);
  border-color: var(--blue-900);
  box-shadow: var(--shadow-lift);
}

.btn--primary:active {
  background: var(--blue-900);
  box-shadow: var(--shadow);
}

.btn--secondary {
  background: transparent;
  color: var(--green-700);
  border-color: var(--green-700);
}

.btn--secondary:hover {
  background: var(--green-700);
  color: #FFFFFF;
}

.btn--secondary:active { background: var(--green-800); border-color: var(--green-800); }

.btn--on-dark {
  background: var(--ground);
  color: var(--blue-800);
  border-color: var(--ground);
}

.btn--on-dark:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--blue-900);
}

/* The CTA band offers four paths now, and four identical filled buttons read as
   a wall. The Book Fair request keeps the filled treatment; the other three sit
   outlined beside it. On blue-800: the label is ink-invert at 12.7:1 and the
   border is blue-200 at 8.1:1, both well past AA. */
.btn--on-dark-quiet {
  background: transparent;
  color: var(--ink-invert);
  border-color: var(--blue-200);
}

.btn--on-dark-quiet:hover {
  background: var(--ground);
  border-color: var(--ground);
  color: var(--blue-800);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.btn-row .section-note { margin: 0; }

/* --------------------------------------------------------------------------
   7. Components
   -------------------------------------------------------------------------- */

/* Hero */
/* One solid color, no wash. The two radial gradients that used to sit here
   blended a blue tint into a gold tint across the same band; the seam between
   them was genuinely uncomfortable to look at, and it was the reason for the
   one-area-one-color rule above. The hero now opens the page on the cool
   step, and the section under it drops back to the warm ground. */
.hero {
  background: var(--blue-050);
  padding: 3.5rem 0 3.25rem;
  border-bottom: 1px solid var(--blue-200);
}

/* The hero runs the full width of the wrap, like every other band on the page.

   It was 24ch on the heading and 58ch on the lede — a deliberately narrow
   measure, which is right for a column of body text and wrong here: the hero sat
   at roughly 70% of the container while every section below it went edge to
   edge, so the top of the page read as indented. Elisha, 2026-09-12: she wants
   both across the page, wrapping to as many lines as they need on a phone.

   The wrap itself (68rem) is still doing the real limiting, so the line length
   never runs away on a wide monitor, and the clamped font sizes keep the
   heading readable all the way down. */
.hero h1 { max-width: none; }
.hero .lede { max-width: none; }

/* The home page opens on the navy with a gold edge: blue and gold carry the
   page, and the green and light blue are kept for smaller touches. */
.hero--navy {
  background: var(--blue-800);
  border-bottom: var(--rule-width) solid var(--yellow);
}
.hero--navy h1 { color: #FFFFFF; }
.hero--navy .lede { color: #D5DBEC; }

.hero__meta {
  margin-top: 1.75rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* The hero is copy only now — the PaperPie Learning lockup moved into the site
   header, where it sits under the wordmark on every page instead of once. The
   line lengths above are what keeps it from running the full 68rem.

   The h1 is PaperPie's mission, quoted, and .hero__source is the line that says
   whose words they are — so it sits tight under the heading, not in the lede. */
.hero__source {
  margin: -0.2rem 0 1.1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Page header (interior pages) */
.page-head {
  background: var(--blue-050);
  border-bottom: 1px solid var(--blue-200);
  padding: 2.5rem 0 2.25rem;
}

.page-head h1 { margin-bottom: 0.4rem; }
.page-head .lede { margin-bottom: 0; max-width: 60ch; }

/* Steps strip */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--step-gap);
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem 1.25rem;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: var(--blue-800);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.step h3 { margin-bottom: 0.35rem; }
.step p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

/* Card grid */
/* Card lists, with an incomplete last row CENTRED rather than left-hanging.

   Elisha, 2026-09-21, on the five programs: "can those bubbles in the second
   row be centred on the first row... I think it'll look better since there's an
   odd amount." She is right, and it is not only the five — "Two things to know"
   and "Why local matters" each hold two cards in a three-column grid, so all
   three lists were leaving a card-shaped hole on the right.

   FLEX RATHER THAN GRID, and that is the whole change. `justify-content` centres
   a line that is not full and leaves a full line alone, which is exactly the
   behaviour wanted; CSS grid has no way to say that, because a grid's columns
   exist whether anything is in them or not.

   max-width holds the card at the width the grid gave it, so nothing resizes —
   a two-card list keeps its proportions and simply stops hugging the left. The
   six-card list is unaffected: both its rows are full. */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cards > .card {
  flex: 1 1 260px;
  max-width: 336px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.96rem; }

/* Whole-card link treatment.

   The anchor stays on the <h3> — that is what a screen reader reads out and what
   the keyboard tabs to — and its ::after is stretched over the whole card so a
   mouse can hit anywhere. Elisha asked for this on 2026-09-12: the boxes already
   lifted on hover, which promised they were clickable, and then only the few
   words of the heading actually were.

   Do not "fix" this by wrapping the card in an <a>. That would put the entire
   paragraph inside the link name, so a screen reader would announce the whole
   card as one enormous link every time. */
.card--link {
  position: relative;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.card--link h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.card--link:hover {
  border-color: var(--blue-400);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}
.card--link:focus-within {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}
.card--link a { text-decoration: none; font-weight: 600; }
.card--link a:focus-visible { outline: none; }
.card--link .card__more { margin-top: auto; padding-top: 1rem; color: var(--blue-800); font-weight: 600; }
.card--link:hover .card__more { color: var(--blue-900); }

/* Resource groups */
.resource-group {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green-700);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  margin-bottom: 1.5rem;
}

.resource-group:last-child { margin-bottom: 0; }

/* The program's own logo, above its heading. Elisha's artwork and PaperPie's,
   added 2026-09-12.

   alt is empty on purpose: the <h2> immediately below names the program, so a
   screen reader announcing the logo too would say it twice.

   HEIGHT ONLY. Do not add a max-width in pixels here. It was written that way
   first — max-height 86px AND max-width 240px — on the reasoning that these four
   are wildly different shapes and both dimensions wanted bounding. What actually
   happens is that a logo hitting both limits at once gets squashed to fill the
   box: Book Fair went from its true 1.52 ratio to 2.79, and Literacy for a
   Lifetime from 1.26 to 2.79. The two wide logos were unaffected, because they
   hit the width limit before the height one, which is what made it easy to miss.
   Elisha caught it: "you pulled them out into awful rectangles."

   Capping the height alone gives every logo the same visual weight — they all
   stand 96px tall — and lets each keep its own width and its own shape.

   Note for anyone swapping one out: literacy-for-a-lifetime.png is NOT
   transparent. Its Canva page sits on a pale blue gradient that could not be
   keyed cleanly, so the ground was replaced with --card instead. It only looks
   right on a card. See holding/paperpie-program-logos/README.md. */
.program-logo {
  display: block;
  width: auto;            /* MUST stay auto — see the note above */
  height: auto;
  max-height: 96px;
  max-width: 100%;
  object-fit: contain;    /* belt and braces: never distort, letterbox instead */
  margin: 0 0 1.15rem;
}


.resource-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.9rem;
  margin-bottom: 0.5rem;
}

.resource-group__head h2 { margin: 0; font-size: 1.35rem; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-100);
  border: 1px solid var(--green-200);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
}

/* The "coming soon" state — deliberate, not empty */
.pending {
  margin-top: 1.15rem;
  background: var(--blue-050);
  border: 1px dashed var(--blue-400);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}

.pending__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--blue-800);
  margin: 0 0 0.35rem;
}

.pending__title svg { flex: none; width: 1.1rem; height: 1.1rem; }

.pending p { margin: 0; font-size: 0.93rem; color: var(--ink-soft); }

/* Checklist of what's coming */
.coming-list {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.4rem 1.25rem;
}

.coming-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.coming-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  border: 2px solid var(--blue-400);
}

/* Real downloads inside a .resource-group — the counterpart to .pending.
   Two columns on wide screens, one on narrow; each row is a link plus the
   sentence that says who the file is for. */
.download-list {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 0.9rem 1.5rem;
}

.download {
  padding: 0.9rem 1rem;
  background: var(--green-050);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.download__link {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--green-700);
  font-weight: 600;
  text-decoration: none;
}

.download__link svg {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  align-self: center;
  color: var(--blue-800);
}

.download__link:hover { color: var(--green-900); }
.download__link:hover .download__label { text-decoration: underline; }
.download__link:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}
.download__link:active { color: var(--green-900); }

/* Whole-row link treatment, the same pattern as .card--link above and for the
   same reason. Elisha, 2026-09-14, having found that only the few words of the
   label were clickable: "make the whole box clickable for those things... I
   think it just would be cleaner."

   The anchor stays where it is — that is what the keyboard tabs to and what a
   screen reader announces — and its ::after is stretched over the whole row so
   a mouse or a thumb can land anywhere. The note below the link is covered too,
   which is the point: on a phone that note is most of the target.

   Do not "fix" this by wrapping the <li> in an <a>. That would pull the whole
   note into the link's name, and a school secretary using a screen reader would
   hear the entire paragraph read out as one link.

   z-index on the note keeps any real link inside it clickable — there are none
   today, but a note gains one the moment somebody writes "ask Elisha" into it. */
.download { position: relative; }

.download__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.download__note { position: relative; z-index: 2; }

/* The row lifts as a whole now, so the hover has to be on the row rather than
   on the anchor — otherwise it only reacts over the words, which is the exact
   thing being fixed. */
.download:hover { background: var(--card); }
.download:hover .download__label { text-decoration: underline; }

.download__meta {
  margin-left: auto;
  flex: none;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}

.download__note {
  margin: 0.35rem 0 0;
  max-width: none;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* FAQ accordion — native details/summary, no JS */
.faq { margin: 0; }

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq details:last-child { margin-bottom: 0; }

.faq details[open] {
  border-color: var(--blue-400);
  box-shadow: var(--shadow);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--blue-800);
  list-style: none;
  border-radius: var(--radius);
  transition: background 0.15s ease, color 0.15s ease;
}

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

.faq summary::before {
  content: "+";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.05rem;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}

.faq details[open] summary::before {
  content: "\2013";
  background: var(--yellow);
  color: var(--blue-900);
}

.faq summary:hover { background: var(--green-050); color: var(--green-700); }
.faq summary:hover::before { background: var(--line); }

.faq summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: -2px;
}

.faq summary:active { background: var(--green-100); }

.faq__body {
  padding: 0 1.15rem 1.15rem 3.4rem;
}

.faq__body p { font-size: 0.97rem; color: var(--ink-soft); }

/* Video placeholders */
.video-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.video-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-item__frame {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  /* Checked against the one-area-one-color rule and kept: this is a two-step
     stripe inside a single hue (green-050 against green-100), not two hues
     blended into each other. It is a texture on a placeholder tile, and there
     is no seam between color families anywhere in it. */
  background:
    repeating-linear-gradient(
      -45deg,
      var(--green-050),
      var(--green-050) 10px,
      var(--green-100) 10px,
      var(--green-100) 20px
    );
  border-bottom: 1px solid var(--line);
  color: var(--green-700);
}

.video-item__frame svg { width: 2.75rem; height: 2.75rem; }

.video-item__frame span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.video-item__body { padding: 1.15rem 1.25rem 1.35rem; }
.video-item__body h3 { margin-bottom: 0.35rem; }
.video-item__body p { margin: 0; font-size: 0.94rem; color: var(--ink-soft); }

/* Callout / CTA band */
.cta-band {
  background: var(--blue-800);
  color: var(--ink-invert);
  padding: 3rem 0;
}

.cta-band h2 { color: #FFFFFF; font-size: var(--h2); }

/* The closing band's buttons, centred as a block.

   Elisha, 2026-09-21, having seen the cards centre their last row: "the section
   I was talking about is the one down under 'what would benefit the children you
   serve' — somehow centre them with the ones above."

   Five buttons wrap three-and-two, and the two were hanging left with a gap
   beside them, the same hole the card grids had. Centring the whole row is the
   fix; centring only the wrapped line is not something CSS can express, and the
   alternative — nudging it with a margin — breaks the moment a button's label
   changes length or a sixth is added.

   So the row centres and the heading above it stays left. That reads as a
   deliberate block of choices under a sentence rather than as a ragged list,
   which is what it is. */
.cta-band .btn-row { justify-content: center; }
.cta-band p { color: #D5DBEC; }
.cta-band .rule { background: var(--yellow); }
.cta-band a:focus-visible { outline-color: var(--focus-ring-dark); }

.cta-band__note {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: #C9D0E6;
}

/* Contact details */
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.contact-card dl {
  margin: 0;
  display: grid;
  gap: 0.35rem 1.25rem;
}

.contact-card dt {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-card dd {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--blue-800);
}

.contact-card dd:last-child { margin-bottom: 0; }

/* The "prefer email?" line under the booking button. */
.contact-card__alt {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Inline notice */
.notice {
  background: var(--green-050);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.notice strong { color: var(--blue-800); }

.notice--spaced { margin-top: 1.5rem; }

/* A parent letter on fair.php, shown as-is so an organizer can select the whole
   thing and paste it wherever they actually send from. A <pre> because the line
   breaks are the letter's own and must survive the copy; wrapped rather than
   scrolled, because nobody wants to drag a message sideways to read it. */
.letter {
  margin: 0;
  padding: 1.1rem 1.25rem;
  background: var(--blue-050);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}


/* The About page's heading, with Elisha's face in it.

   Small, and deliberately so — her own instruction, and she is right: nobody
   arrives at a book fair site to look at the representative. What a photograph
   buys here is the difference between a company and a person, and 88px buys
   all of it. A five-by-seven buys nothing more and pushes her own words below
   the fold.

   A circle, on the right of her words — her own layout, from her ESR digital
   book. The crop lives in the FILE, not in this rule: files/elisha.jpg is
   already a square framed wide enough that the inscribed circle holds her whole
   head with air below the chin. A tighter square cut her chin off. If that file
   is ever replaced, check the circle before shipping it. */
.person-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Takes the room, so the photo is pushed to the far side rather than sitting
   next to the text. Wraps beneath on a narrow screen. */
.person-head__text { flex: 1 1 20rem; min-width: 0; }

.person-head__photo {
  flex: none;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--card);
  box-shadow: var(--shadow);
}

.person-head h1 { margin-bottom: 0.3rem; }
.person-head .lede { margin: 0; }

@media (min-width: 46rem) {
  .person-head__photo { width: 152px; height: 152px; }
}

/* Product lines — the five PaperPie brands, on productlines.php.

   The chip is the only place on this site where purple and red appear, and it
   is the only place they should: these are PaperPie's colors for its five
   product lines, taken from Elisha's own ESR digital book, not colors she
   wears. Section 1 says why she holds both back everywhere else.

   A chip is a FILL and never a line or a letter. That is not decoration, it is
   the constraint: yellow is 1.7:1 on the card and the light blue 2.4:1, so as a
   thin rule or as text either one would disappear. As a solid block 14px wide
   against a card, each reads clearly — a block of color is a graphical object,
   and it carries no information the brand name beside it does not already give,
   which is why it is aria-hidden. */
.lines { list-style: none; margin: 0; padding: 0; }

.line {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.45rem 1.6rem;
  margin-bottom: 1.35rem;
}

.line:last-child { margin-bottom: 0; }



/* The gap under the name was 0.35rem, which put the brand and its sentence
   close enough to read as one lump — Elisha's words, the text "is touching it".
   The name is a heading and needs to sit clear of the line it introduces. */
.line__name {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--blue-800);
}

/* Each line wears its own PaperPie color — Elisha's call, 2026-09-12: the
   colored bars beside the rows go, and the brand name carries the color
   instead.

   These are the six brand values exactly as PaperPie publishes them, which is
   also her instruction, given after being shown the contrast figures twice:
   "I want them the actual color numbers."

   So the numbers are on the record rather than discovered later. On the card,
   green is 8.6:1, purple 10:1 and red 6.7:1 — all fine. The light blue is
   2.4:1 and the yellow 1.6:1, both below the 4.5:1 floor this stylesheet holds
   everywhere else, and both were offered as darkened shades of the same hue
   (#3E7C92 and #8A691F) which she turned down.

   This is a deliberate exception, not an oversight, and the exception is
   narrower than it looks: each name is real text, so a screen reader reads it
   either way, and the sentence underneath every one of them is in full-contrast
   ink — the line is still identifiable from its description. Do not extend the
   reasoning past these five headings. */
.line__name--green  { color: #03563A; }  /* 8.6:1 on card */
.line__name--red    { color: #B60B31; }  /* 6.7:1 */
.line__name--purple { color: #731472; }  /* 10:1  */
.line__name--sky    { color: #59B1D0; }  /* 2.4:1 — her call, see above */
.line__name--yellow { color: #FBBF38; }  /* 1.6:1 — her call, see above */

/* The category is part of the title, not a tag pinned to it. It was set
   smaller, uppercase, letter-spaced and in the soft ink — which made "Kane
   Miller" and "Publishing" read as two different things sitting next to each
   other. Elisha's call, 2026-09-12: "the whole title should be the same."
   So it inherits everything from the name and is separated by a word space.
   Only the markup keeps them apart now, so the data stays structured. */
.line__kind {
  margin-left: 0.4rem;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
}

.line__body p { margin: 0; font-size: 0.96rem; line-height: 1.62; }


/* --------------------------------------------------------------------------
   8. Forms
   The booking page and the admin share every one of these. Nothing here is
   admin-only: a school secretary and Elisha get the same controls, the same
   focus rings and the same feedback.
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.form-card + .form-card,
.form-card--inline + * { margin-top: 1.5rem; }

.form-card > h2:first-of-type { margin-bottom: 0; }

/* A group of related fields. The fieldset is real, so a screen reader hears
   "Your school" before every field inside it. */
.field-group {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.75rem 0 0;
  padding: 1.5rem 0 0;
}

.form-card > .field-group:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.field-group > legend {
  padding: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-800);
  margin-bottom: 0.35rem;
}

.field { margin-bottom: 1.15rem; }
.field:last-child { margin-bottom: 0; }

.field > label,
.field > legend {
  display: block;
  padding: 0;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--blue-800);
  margin-bottom: 0.35rem;
}

/* The two qualifiers a label can carry, both quieter than the label itself. */
.field__req,
.field__opt,
.field__when {
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.field__req {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

/* The counterpart to .field__req. Deliberately NOT red: red on this site means
   an error, and "optional" is the calmest thing a label can say. */
.field__opt {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.field__hint {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="password"],
.field select,
.field textarea {
  display: block;
  width: 100%;
  max-width: 34rem;
  padding: 0.65rem 0.8rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--blue-400);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field textarea {
  max-width: 44rem;
  resize: vertical;
}

.field select {
  /* Native control, native arrow. Nothing here is worth a custom widget. */
  max-width: 34rem;
}

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--blue-600); }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 1px;
  border-color: var(--blue-800);
  background: #FFFFFF;
}

.field input::placeholder,
.field textarea::placeholder { color: #8A9790; }

/* Radios and checkboxes */
.field--radios { border: 0; margin: 0 0 1.15rem; padding: 0; }

.radio-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.radio-list--dates { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }

.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  background: var(--blue-050);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.radio-option:hover { border-color: var(--blue-400); background: var(--blue-100); }

.radio-option input {
  flex: none;
  margin: 0.28rem 0 0;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--blue-800);
}

.radio-option input:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.radio-option label {
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.radio-option__main { display: block; font-weight: 600; color: var(--blue-800); }
.radio-option__note { display: block; font-size: 0.86rem; color: var(--ink-soft); }

/* A checked option should be obvious at a glance, not only at the control. */
.radio-option:focus-within { border-color: var(--blue-800); background: var(--blue-100); }

.field--check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.field--check input {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--blue-800);
}

.field--check label { margin: 0; font-weight: 500; }

.field--check input:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Fields side by side where they belong side by side. */
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0 1.25rem;
}

.field-row .field--wide { grid-column: span 2; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.form-actions__note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
  max-width: 40ch;
}

/* A button that has been pressed and is working. The label swaps too, so this
   reads as "busy" rather than "broken". */
.btn[disabled],
.btn[aria-busy="true"] {
  opacity: 0.72;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.btn--small { padding: 0.5rem 1rem; font-size: 0.9rem; }

.btn--quiet {
  background: transparent;
  color: var(--green-700);
  border-color: var(--line);
}

.btn--quiet:hover { background: var(--green-100); border-color: var(--green-400); }

.btn--danger {
  background: transparent;
  color: var(--red-dark);
  border-color: var(--red-soft);
}

.btn--danger:hover { background: var(--red-dark); border-color: var(--red-dark); color: #FFFFFF; }

/* The honeypot. Off-screen rather than display:none — some bots skip anything
   that is truly hidden, and all of them fill this. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Error summary at the top of a form that came back */
.error-summary {
  background: var(--red-soft);
  border: 2px solid var(--red);
  border-left-width: 6px;
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.5rem;
}

.error-summary:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.error-summary h2,
.error-summary h3 { font-size: 1.15rem; margin-bottom: 0.35rem; color: var(--red-dark); }
.error-summary p { margin-bottom: 0.5rem; color: var(--ink); }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.error-summary li { margin-bottom: 0.3rem; }
.error-summary li:last-child { margin-bottom: 0; }

/* The confirmation state */
.form-card--done { border-left: 6px solid var(--green-700); }

.form-done__mark {
  margin: 0 0 0.75rem;
  color: var(--green-700);
}

.form-done__mark svg { width: 2.5rem; height: 2.5rem; }

.form-done__heading { margin-top: 1.75rem; }

/* A read-back list: what you sent, what a request holds. */
.summary-list {
  margin: 0.75rem 0 0;
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
}

.summary-list dt {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.summary-list dd {
  margin: 0;
  color: var(--blue-800);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   8b. Admin area
   Deliberately the same site, one shade plainer. `.admin` on <body> is the only
   hook, and nothing below it redesigns anything — it reuses the buttons, the
   cards, the focus rings and the palette that the public pages already use.
   -------------------------------------------------------------------------- */
.admin .site-header { border-bottom-color: var(--blue-400); }

.admin-head {
  background: var(--blue-050);
  border-bottom: 1px solid var(--blue-200);
  padding: 2rem 0 0;
}

.admin-head h1 { margin-bottom: 0.9rem; }

.admin-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-nav a {
  display: block;
  padding: 0.6rem 1rem;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  text-decoration: none;
  font-weight: 600;
  color: var(--blue-800);
}

.admin-nav a:hover { background: var(--blue-100); }

.admin-nav a[aria-current="page"] {
  background: var(--ground);
  border-color: var(--line);
  color: var(--blue-800);
}

.admin-nav__out { margin-left: auto; }
.admin-nav__out a { font-weight: 500; color: var(--ink-soft); }

/* Flash message. Every admin action ends in one of these. */
.flash {
  border-radius: var(--radius);
  padding: 0.9rem 1.15rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  border: 1px solid;
}

.flash--ok {
  background: var(--green-100);
  border-color: var(--green-400);
  color: var(--green-900);
}

.flash--bad {
  background: var(--red-soft);
  border-color: var(--red);
  color: var(--red-dark);
}

/* Status filter row */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--blue-800);
}

.filter:hover { border-color: var(--green-400); background: var(--green-050); }

.filter--on {
  background: var(--blue-800);
  border-color: var(--blue-800);
  color: #FFFFFF;
}

.filter__n {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-800);
}

.filter--on .filter__n { background: rgba(255, 255, 255, 0.22); color: #FFFFFF; }

/* Status pills, shared by requests, dates and schools */
.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}

.pill--new,
.pill--open {
  background: var(--blue-100);
  border-color: var(--blue-800);
  color: var(--blue-800);
}

.pill--confirmed,
.pill--booked {
  background: var(--green-100);
  border-color: var(--green-400);
  color: var(--green-800);
}

.pill--declined,
.pill--held {
  background: var(--ground-deep);
  border-color: var(--line);
  color: var(--ink-soft);
}

/* The request list */
.request-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.request details {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--line);
  border-radius: var(--radius);
}

.request--new details { border-left-color: var(--blue-800); }
.request--confirmed details { border-left-color: var(--green-700); }

.request summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}

.request summary::-webkit-details-marker { display: none; }
.request summary:hover { background: var(--green-050); }
.request summary:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: -2px; }

.request__school {
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--blue-800);
}

.request__meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.request summary .pill { margin-left: auto; }

.request__body {
  padding: 0.25rem 1.15rem 1.35rem;
  border-top: 1px solid var(--line);
}

.request__actions {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line);
}

.btn-row--tight { margin-top: 0.9rem; }

/* Tables — dates and schools */
.table-scroll {
  /* Wide content scrolls inside its own box; the page never scrolls sideways. */
  overflow-x: auto;
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.admin-table caption {
  text-align: left;
  padding: 1rem 1.15rem 0.5rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.admin-table th,
.admin-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 1.15rem;
  border-top: 1px solid var(--line);
}

.admin-table thead th {
  border-top: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--green-050);
  white-space: nowrap;
}

.admin-table tbody th { font-weight: 600; color: var(--blue-800); }

.admin-table tbody tr:hover { background: var(--green-050); }

.admin-table .is-past,
.admin-table tr.is-past th { color: var(--ink-soft); }
.admin-table tr.is-past { background: var(--ground-deep); }

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

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.row-actions form { margin: 0; }

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  flex: none;
  background: var(--blue-900);
  color: #C9D0E6;
  padding: 2.5rem 0 2rem;
  font-size: 0.92rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: space-between;
}

.site-footer__brand { max-width: 30ch; }

/* The footer carries the same lockup as the header, smaller. Green would
   disappear on the navy ground, so the base rule takes the light blue that does
   the decorative work everywhere else on the dark bands. */
.site-footer__name {
  color: #FFFFFF;
  font-family: "Caveat", "Poppins", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 0.95;
  margin: 0 0 0.45rem;
}

.site-footer__base {
  display: block;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 0.36em;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--sky);
  margin-top: 0.25em;
  padding-left: 0.2em;
}

.site-footer__name .amp { color: var(--yellow); }

.site-footer__role { margin: 0; color: #B0B9D4; }

.site-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.site-footer a {
  color: #E6EAF5;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-footer a:hover {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

.site-footer a:focus-visible {
  outline: 3px solid var(--focus-ring-dark);
  outline-offset: 3px;
  border-radius: 3px;
}

.site-footer a:active { color: #FFFFFF; }

.site-footer__fine {
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  color: #B0B9D4;
  max-width: 78ch;
}

.site-footer__fine p { margin: 0 0 0.35rem; max-width: none; }
.site-footer__fine p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   10. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 46rem) {
  .field-row .field--wide { grid-column: auto; }
  .summary-list { grid-template-columns: 1fr; gap: 0.15rem; }
  .summary-list dd { margin-bottom: 0.75rem; }
  .form-card { padding: 1.25rem; }
  .request summary .pill { margin-left: 0; }
  .admin-nav__out { margin-left: 0; }
  /* Buttons go full width on narrow screens (see .btn below); inside a row of
     small row actions that would be one button per line, which is right. */

  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* Stacked, the lockup gets the column's full width, which keeps its
     "educational services representative" line around 12px rather than the
     9px it would land on at the desktop size. */
  .site-header__lockup { width: min(20rem, 100%); }

  /* Below this width the nav collapses behind the Menu button. Nine items
     wrapped to three rows pushed the page content most of the way off a phone
     screen before anyone had read a word. */
  .nav-toggle__btn { display: inline-flex; }

  .site-nav {
    width: 100%;
    display: none;
  }

  .nav-toggle:checked ~ .site-nav { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--line);
  }

  /* Roomier taps once the items are stacked one per row. */
  .site-nav a {
    padding: 0.7rem 0.75rem;
    font-size: 0.95rem;
  }

  .hero { padding: 2.5rem 0; }
  .section { padding: 2.5rem 0; }
  .btn { width: 100%; }
  .btn-row .section-note { width: 100%; }
  /* Row actions in the admin tables stay side by side — they are small, and a
     stack of full-width "Mark held" buttons per row reads as a menu. */
  .row-actions .btn { width: auto; }
}

@media (min-width: 46.0625rem) and (max-width: 62rem) {
  .site-nav a { padding: 0.5rem 0.45rem; }
}

/* Below this the lockup's tagline stops being readable, so the job title goes
   back to being type. One or the other is shown, never both, so the header
   states the role exactly once however narrow the screen gets. */
@media (max-width: 20rem) {
  .site-header__lockup { display: none; }
  .site-header__sub { display: block; }
}

/* Print — schools do print things */
@media print {
  .site-header,
  .site-footer nav,
  .cta-band { background: none; color: #000; }
  body { background: #fff; }
  a { text-decoration: underline; }
}

/* --------------------------------------------------------------------------
   The wishlist sheet (wishlist.php)

   A child fills this in with a pencil, so every rule here is about what comes
   out of a printer, not what looks good on a screen. Two to a page: a class set
   is a lot of paper otherwise and a child needs about half a sheet.

   No brand color fills. Elisha on the Canva original: "we don't have to have
   that funky coloration." Color costs a school ink it may not have, and a form
   somebody writes on wants contrast and rules, not decoration.
   -------------------------------------------------------------------------- */
.sheet {
  max-width: 48rem;
  margin: 0 auto 1.5rem;
  padding: 1.4rem 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #111;
}

.sheet__marks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
/* Her mark beside her name, the same pairing as the site header. A child takes
   this home in a bag; it should look like it came from her. */
.sheet__wwl { display: inline-flex; align-items: center; gap: 0.4rem; }
.sheet__mark { width: 1.6rem; height: 1.6rem; flex: none; }
.sheet__wwl-name { font-weight: 700; font-size: 1rem; color: var(--blue-800); }
.sheet__amp { color: var(--yellow); }
.sheet__pp { width: 8.5rem; height: auto; }

.sheet__title { margin: 0; font-size: 1.3rem; color: var(--blue-800); }
.sheet__where { margin: 0.05rem 0 0.6rem; font-size: 0.82rem; color: var(--ink-soft); }

/* A ruled line to write on, with its label sitting under the rule rather than
   in front of it, so a child gets the whole width to write in. */
.sheet__who { display: flex; flex-wrap: wrap; gap: 0.1rem 1.2rem; margin-bottom: 0.55rem; }
.sheet__line {
  flex: 1 1 9rem;
  margin: 0 0 0.4rem;
  border-bottom: 1.5px solid #333;
  padding-top: 1.15rem;
}
.sheet__line--full { flex-basis: 100%; }
.sheet__line span { font-size: 0.72rem; color: #444; }
.sheet__note { margin: 0; font-size: 0.72rem; color: #444; font-style: italic; }

.sheet__parents {
  border: 1px solid #999;
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  margin: 0.7rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
}
.sheet__parents ul { margin: 0.2rem 0 0.35rem; padding-left: 1rem; }
.sheet__parents li { margin-bottom: 0.15rem; }
.sheet__parents p { margin: 0 0 0.35rem; max-width: none; }
.sheet__parents p:last-child { margin-bottom: 0; }

.sheet__list { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.sheet__list th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1.5px solid #333;
  padding: 0.2rem 0.3rem;
}
/* Tall rows. Elisha, 2026-09-12: "these kids do not write neatly." A child
   printing a book title in pencil needs about twice the room an adult does, and
   the space comes from the top of the sheet, which was doing less work. */
.sheet__list td { border-bottom: 1px solid #bbb; height: 2.3rem; padding: 0.2rem 0.3rem; }
.sheet__price { width: 6rem; text-align: right; }
.sheet__copies { width: 4.5rem; text-align: right; }

/* A teacher lists titles for a whole classroom, so their sheet gets the page to
   itself rather than sharing it the way two student half-sheets do.

   Roomier rows than the student sheet, and no explanatory box: Elisha hangs
   these on a classroom wall, where a paragraph of instructions is clutter and
   every extra millimetre of ruled line is somewhere to write. Losing the box
   paid for both the taller rows and one more of them. */
.sheet--full { page-break-after: always; break-after: page; }
.sheet--full .sheet__list td { height: 2.5rem; }
.sheet--full + .sheet--full { page-break-before: always; }
/* The label sits right, against its figure, so the row reads as a line to add
   up rather than a heading with a gap after it. */
.sheet__total td { border-bottom: none; border-top: 1.5px solid #333; font-weight: 600; }
.sheet__total-label { text-align: right; }

/* The total's cell gets a rule to write the figure on. Without one it is an
   empty box and people leave it blank; with one it reads as a thing to fill in,
   which is the whole point of the row. */
.sheet__total .sheet__price { border-bottom: 1.5px solid #333; }

/* The tax sentence is bold in full, Elisha's call: it is the one line on the
   sheet that asks a parent to do arithmetic, and half-bolding it let the part
   that matters — the rate — read as an aside. */
.sheet__tax { margin-top: 0.4rem; }

/* --------------------------------------------------------------------------
   The poster (poster.php)

   PaperPie's artwork untouched, with the school's details laid over the blank
   white panel the poster leaves for exactly this. The percentages are MEASURED
   against files/posters/book-fair-poster-blank.jpg (1236x1600): the panel runs
   from about 37% to 80% down, and a stack of books is drawn across its lower
   left. The text therefore sits in the top third of the panel, clear of them.

   Replace the image and these need re-measuring. Nothing will warn you if the
   text drifts onto the books; it will simply print badly at a school.
   -------------------------------------------------------------------------- */
.poster {
  position: relative;
  max-width: 40rem;
  margin: 0 auto 2rem;
  line-height: 1.15;
}

.poster__art { display: block; width: 100%; height: auto; }

.poster__fill {
  position: absolute;
  left: 12%;
  right: 10%;
  top: 37.5%;
  text-align: center;
  color: var(--green-700);
}

.poster__school {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1rem, 3.1vw, 1.9rem);
  line-height: 1.1;
  max-width: none;
}

.poster__dates {
  margin: 0.25em 0 0;
  font-weight: 700;
  font-size: clamp(1.1rem, 3.6vw, 2.2rem);
  color: var(--blue-800);
  max-width: none;
}

.poster__extra {
  margin: 0.4em 0 0;
  font-size: clamp(0.6rem, 1.5vw, 0.9rem);
  font-weight: 600;
  color: var(--green-700);
  max-width: none;
}

@media print {
  .poster { max-width: none; margin: 0; }
  .poster__art { width: 100%; }
}


.sheet__foot { margin: 0.6rem 0 0; font-size: 0.75rem; color: #444; }

/* The checklist, on the same printed sheet. A real box to tick with a pen,
   because this is paper until Phase 4 gives it somewhere to remember state. */
.check { margin-bottom: 0.9rem; break-inside: avoid; page-break-inside: avoid; }
.check__when {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--blue-800);
  border-bottom: 1.5px solid #333;
  padding-bottom: 0.15rem;
}
.check__list { list-style: none; margin: 0; padding: 0; font-size: 0.85rem; }
.check__list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.3rem;
  line-height: 1.4;
}
.check__box {
  flex: none;
  width: 0.8rem;
  height: 0.8rem;
  margin-top: 0.18rem;
  border: 1.5px solid #333;
  border-radius: 2px;
}

@media print {
  .no-print, .site-header, .site-footer { display: none !important; }
  body { background: #fff; padding: 0; }
  .sheet {
    max-width: none;
    margin: 0;
    border: none;
    border-radius: 0;
    padding: 0.4in 0.5in;
    page-break-after: always;
    break-after: page;
  }
  /* Two per sheet of paper: the second starts on the same page, not a new one. */
  .sheet:nth-of-type(odd) { page-break-after: auto; break-after: auto; }
  .sheet--full { page-break-after: auto; break-after: auto; }
}


/* --------------------------------------------------------------------------
   11. The electronic contract (Phase 3)

   Two audiences, one set of styles: the school reading and signing at
   contract.php, and Elisha reviewing at admin/contracts.php. The agreement
   itself is set on a white-ish card with tighter, denser type than the rest of
   the site — it should read as a document, not as marketing — while everything
   around it stays in the site's voice.

   The print rules at the bottom are load-bearing: a printed page IS the
   school's permanent copy, so the chrome comes off and only the agreement,
   its details and its signatures survive.
   -------------------------------------------------------------------------- */

/* The status banner, above the document. */
.contract-status {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-left: 6px solid var(--green-400);
  border-radius: var(--radius);
  background: var(--green-050);
}

.contract-status__head {
  margin: 0 0 0.25rem;
  font-weight: 700;
  color: var(--blue-800);
}

.contract-status__note {
  margin: 0;
  max-width: none;
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.contract-status--executed { border-left-color: var(--green-700); }
.contract-status--signed   { border-left-color: var(--blue-800); }
.contract-status--sent     { border-left-color: var(--green-400); }
.contract-status--void {
  border-left-color: var(--ink-soft);
  background: var(--ground-deep);
}

/* Status pills reuse the request pills' shapes. */
.pill--sent {
  background: var(--blue-100);
  color: var(--blue-800);
}

.pill--signed {
  background: var(--green-100);
  color: var(--green-800);
}

.pill--executed {
  background: var(--green-700);
  color: #FFFFFF;
}

.pill--void {
  background: var(--ground-deep);
  color: var(--ink-soft);
}

/* The document itself. */
.contract-body { margin-top: 2rem; }
.contract-body__title { margin-bottom: 0.35rem; }

.contract-doc {
  margin-top: 1rem;
  padding: 1.5rem 1.6rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FFFFFF;
  font-size: 0.95rem;
  line-height: 1.6;
}

.contract-section + .contract-section { margin-top: 1.5rem; }

.contract-doc h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--blue-800);
}

.contract-doc p { max-width: none; margin-bottom: 0.75rem; }
.contract-doc p:last-child { margin-bottom: 0; }

.contract-list {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.contract-list li { margin-bottom: 0.4rem; }
.contract-list li:last-child { margin-bottom: 0; }
.contract-list .contract-list { margin-top: 0.4rem; margin-bottom: 0; }

/* The "Book Fair Details" rows — the paper's ruled lines, filled in. */
.contract-fields {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(11rem, 16rem) 1fr;
  gap: 0.15rem 1rem;
}

.contract-fields dt {
  font-weight: 600;
  color: var(--blue-800);
}

.contract-fields dd {
  margin: 0;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--green-100);
}

.contract-fields__blank {
  color: var(--ink-soft);
  font-style: italic;
}

/* The two reward circles, as a recorded choice. */
.contract-choice {
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.contract-choice__item {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ground);
  color: var(--ink-soft);
}

.contract-choice__item.is-chosen {
  border-color: var(--green-700);
  background: var(--green-050);
  color: var(--ink);
}

.contract-choice__mark {
  flex: none;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--green-400);
}

.contract-choice__item.is-chosen .contract-choice__mark { color: var(--green-700); }

.contract-choice__state {
  font-weight: 700;
  color: var(--blue-800);
}

.contract-choice__item:not(.is-chosen) .contract-choice__state { color: var(--ink-soft); }

/* The inventory blank. */
.contract-note {
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--green-050);
}

.contract-note__label {
  margin: 0 0 0.25rem !important;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.contract-note__value { margin: 0 !important; }

/* The cash-back tiers where they appear inside a radio label. */
.contract-tier {
  display: block;
  padding-left: 0.9rem;
}

/* The document's own footer — PaperPie's details, as the paper states them. */
.contract-doc-footer {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 2px solid var(--line);
  text-align: center;
}

.contract-doc-footer__line {
  margin: 0 !important;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.contract-doc-footer__line--name {
  font-weight: 700;
  color: var(--blue-800);
}

.contract-doc-footer__paperpie {
  margin: 0.5rem 0 0 !important;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-700);
}

.contract-version {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* The signature block that replaces the paper's two ruled lines. */
.contract-sign { border-top: 3px solid var(--line); padding-top: 1.5rem; }

.signature-input {
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.contract-signatures { margin-top: 2rem; }
.contract-signatures h3 { margin-bottom: 0.75rem; }

.signature {
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--green-050);
}

.signature__name {
  margin: 0 0 0.15rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-800);
}

.signature__name--pending {
  font-weight: 500;
  font-style: italic;
  color: var(--ink-soft);
}

.signature__role,
.signature__when {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.signature__attests {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.signature__attests li { margin-bottom: 0.2rem; }

/* A submit button that has to sit inside a row of links. */
.btn-row__form { margin: 0; }
.btn-row--print { margin-bottom: 1.25rem; }

.contract-done { margin-bottom: 1.5rem; }

/* --------------------------------------------------------------------------
   Print — the school's permanent copy.

   Everything that is navigation, action or reassurance comes off. What is left
   is the agreement, its details and its signatures, in black on white, with the
   URL of the page printed by the browser's own header. No PDF generation
   anywhere: the browser already knows how to make one of these.
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .admin-nav,
  .filter-row,
  .btn-row,
  .form-actions,
  .notice,
  .flash,
  .contract-status,
  .skip-link,
  /* Elisha's countersign and void forms. Scoped to the admin on purpose: on
     the school's side before signing, the form IS the document, and a school
     that prints the page to walk it past a principal should still get one. */
  .admin form.form-card { display: none !important; }

  body { background: #FFFFFF; color: #000000; font-size: 11pt; }

  .page-head { background: none; padding: 0 0 0.5rem; }
  .page-head .lede { display: none; }
  .section { padding: 0; }
  .wrap, .wrap--narrow { max-width: none; padding: 0; }

  .form-card,
  .contract-doc,
  .signature {
    border: 0;
    box-shadow: none;
    background: none;
    padding: 0;
    margin: 0;
  }

  .contract-doc { font-size: 10pt; }
  .contract-section { break-inside: avoid; page-break-inside: avoid; }
  .contract-doc h3 { break-after: avoid; page-break-after: avoid; }

  .contract-fields dd { border-bottom: 1px solid #999999; }

  .contract-choice__item {
    border: 1px solid #999999;
    padding: 0.35rem 0.5rem;
    margin-bottom: 0.35rem;
  }

  .contract-signatures {
    margin-top: 1.5rem;
    border-top: 2px solid #000000;
    padding-top: 0.75rem;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .signature {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #CCCCCC;
  }

  .contract-doc-footer { border-top-color: #000000; }
}


/* --------------------------------------------------------------------------
   The questionnaire's topic list (questionnaire.php)

   A real checkbox, not a drawn one — this is a form somebody fills in on a
   school computer, and the native control is the one their browser, their
   keyboard and their screen reader already understand. The wishlist and
   checklist draw boxes because those are printed and ticked with a pen; this
   one is clicked.

   The clarifying note under a label is part of the question, not decoration:
   "magic" and "LGBTQ+ content" both mean something narrower than the words
   suggest, and a school ticking one without reading the note is answering a
   question it was not asked.
   -------------------------------------------------------------------------- */
.topic-list { list-style: none; margin: 0 0 1.25rem; padding: 0; }

.topic {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.topic:last-child { border-bottom: 0; }

.topic__box {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  accent-color: var(--green-700);
}

.topic__label { display: block; cursor: pointer; }
.topic__name { display: block; font-weight: 500; }
.topic__note {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-top: 0.15rem;
  max-width: 34rem;
}

.form-card__heading {
  margin: 1.75rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  color: var(--blue-800);
}
.form-card__heading:first-of-type { margin-top: 0; }


/* --------------------------------------------------------------------------
   The Book Fair Agreement, read in the portal (agreement.php)

   A document, not a page: one column, generous measure, and the same printed
   manners as the wishlist sheets. The boxes and rules are DRAWN rather than
   being real form controls, because nothing here is filled in on screen — this
   is the copy a school prints and walks past a principal. The signing version
   is a separate thing and does not exist yet.
   -------------------------------------------------------------------------- */
.agreement {
  max-width: 46rem;
  margin: 0 auto 2.5rem;
  padding: 1.75rem 1.9rem 2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #111;
  line-height: 1.55;
}

.agreement__head { margin-bottom: 1.1rem; }
.agreement__title { margin: 0.6rem 0 0.1rem; font-size: 1.35rem; color: var(--blue-800); }
.agreement__where { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }

.agreement__lede {
  margin: 0 0 1.4rem;
  padding-bottom: 1.1rem;
  border-bottom: 2px solid var(--line);
  font-size: 0.95rem;
}

.agreement__sec { margin-bottom: 1.5rem; break-inside: avoid; page-break-inside: avoid; }
.agreement__sec h3 {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-800);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.25rem;
}
.agreement__sec p { margin: 0 0 0.6rem; font-size: 0.92rem; max-width: none; }
.agreement__sec ul { margin: 0 0 0.7rem; padding-left: 1.15rem; font-size: 0.92rem; }
.agreement__sec li { margin-bottom: 0.35rem; }
.agreement__sec li ul { margin-top: 0.3rem; margin-bottom: 0.2rem; }

.agreement__aside { font-size: 0.82rem; color: #555; }

/* A drawn tick box. Not an <input>: nothing on this page is filled in on a
   screen, and a real checkbox would promise that it is. */
.agreement__box {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  border: 1.5px solid #333;
  border-radius: 2px;
  margin-right: 0.15rem;
  vertical-align: -0.05rem;
}

.agreement__line {
  display: inline-block;
  min-width: 8rem;
  border-bottom: 1.5px solid #333;
  margin: 0 0.2rem;
  vertical-align: -0.15rem;
}
.agreement__rules { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; }
.agreement__rules .agreement__line { flex: 1 1 8rem; }

.agreement__fill {
  margin: 0.8rem 0 0.9rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #bbb;
  border-radius: 6px;
  background: #fafafa;
}
.agreement__fill p:last-child { margin-bottom: 0; }

.agreement__pay { list-style: none; padding: 0; margin: 0.35rem 0 0.6rem; }
.agreement__pay li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.92rem;
  margin: 0;
}
.agreement__pay li:last-child { border-bottom: 0; }

.reward { border: 1px solid #ccc; border-radius: 6px; padding: 0.6rem 0.8rem; margin-bottom: 0.55rem; }
.reward__name { font-weight: 600; margin-bottom: 0.25rem !important; }
.reward__tiers { list-style: none; padding: 0; margin: 0.35rem 0 0; }
.reward__tiers li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.22rem 0.4rem;
  border-bottom: 1px solid #eee;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.reward__tiers li:last-child { border-bottom: 0; }

.agreement__sigs { display: grid; gap: 1.1rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 40rem) { .agreement__sigs { grid-template-columns: repeat(3, 1fr); } }
/* SIGNATURE LINES ALIGN ACROSS ALL THREE COLUMNS, whatever is on them.

   Elisha, 2026-09-14: "for some reason, my signature lines are below everybody
   else's." They were. Her line carries her name in a 1.9rem script face and the
   other two are empty, so the filled one was taller and pushed everything under
   it down — the three columns stopped agreeing on where a line sat.

   Fixed height plus bottom alignment is what makes them agree: every line is
   the same box whether it holds a signature, a printed name, or nothing, and
   whatever is in it sits ON the rule rather than floating above it. Adding a
   fourth signer or a longer name changes nothing. */
.agreement__line--sig {
  display: flex;
  align-items: flex-end;
  min-width: 0;
  width: 100%;
  height: 2.5rem;
  margin: 0 0 0.25rem;
  border-bottom: 1.5px solid #333;
}

/* The role caption is fixed too, for the same reason one step down: "Signature
   · Educational Services Rep" wraps to two lines in a narrow column while
   "Print your name" does not, and a wrap in one column would shift the line
   beneath it out of step with the others. */
.agreement__sigrole { min-height: 2.4em; }
.agreement__sigrole { font-size: 0.76rem; color: #555; margin: 0 !important; }

.agreement__foot {
  margin: 1.4rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: #555;
  text-align: center;
}

@media print {
  .agreement { border: 0; border-radius: 0; box-shadow: none; }
}

/* A ticked box on a filled-in agreement. Drawn rather than a glyph so it prints
   solidly in black and white on a school's printer — a check mark rendered in a
   fallback font is a gamble, and this one is a term of an agreement. */
.agreement__box--on { position: relative; background: #fff; }
.agreement__box--on::after {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.02rem;
  width: 0.26rem;
  height: 0.5rem;
  border: solid #111;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* An answer written onto a ruled line, rather than the line left blank. */
.agreement__line--filled {
  min-width: 0;
  padding: 0 0.35rem;
  font-weight: 600;
  color: #111;
}

/* The days the ESR will be there, where they are known. A list, not rules:
   three blank lines invite somebody to write on them, and these are already
   answered. */
.agreement__days { list-style: none; padding: 0; margin: 0.3rem 0 0.5rem; }
.agreement__days li {
  padding: 0.3rem 0.6rem;
  border-left: 3px solid var(--green-700);
  background: #fff;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Screen-reader-only, so a ticked box is not silent to somebody listening. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Elisha's signature on the ESR line of an agreement.

   TEXT, NOT AN IMAGE, and deliberately. An image of a signature is a file that
   can be lifted off a page and dropped onto anything; a name set in a script
   face is not a forgery risk in the same way, and it prints crisply at any size
   on a school's printer rather than going fuzzy.

   The face is loaded per-page in agreement.php. If it never arrives this falls
   back to the machine's cursive and then to a serif — still her name, just not
   scripted, which costs appearance and not meaning. */
.agreement__line--signed {
  font-family: 'Allura', 'Snell Roundhand', 'Apple Chancery', cursive, serif;
  font-size: 1.9rem;
  line-height: 1;
  color: #111;
  padding: 0 0.3rem 0.08rem;
  white-space: nowrap;
}

/* The printed name beneath it, in ordinary type — the whole point of the line
   is that somebody can read who signed. */
.agreement__line--printed {
  padding: 0 0.3rem 0.2rem;
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 500;
  color: #111;
}

/* Where to send the signed agreement, on the printed page itself.

   Somebody holding four sheets of paper is nowhere near the screen that told
   them where to send it, so the document has to say so on its own. Boxed rather
   than set as another paragraph, because it is the one instruction on the page
   that is an action rather than a term. */
.agreement__return {
  border: 1.5px solid var(--green-700);
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  background: #fff;
}
.agreement__return h3 { border-bottom: 0; margin-bottom: 0.2rem; padding-bottom: 0; }
.agreement__return p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   12. The credit ledger (organization portal)

   An organization's running PaperPie account — see includes/fair-ledger.php.
   Built for the Service League of Morgantown, who earn credit at their own sale
   and award it to county schools, so their portal is a statement rather than a
   set of fair materials.

   TWO PALETTE NOTES, because this is the first thing on the site that shows
   money moving in two directions.

   Money earned is green-700, which is already the success color. Money awarded
   is NOT red. Red on this site is reserved for errors and nothing else (see the
   palette note at the top), and a school spending its own book credit is the
   thing the account exists for — the happy path, not a fault. So awards take
   blue-600, the structural color, and the two directions separate by hue rather
   than by alarm.

   Figures are tabular-nums throughout. A balance column that does not line up
   is harder to read than no column at all.
   -------------------------------------------------------------------------- */

.ledger-headline {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: var(--rule-width) solid var(--green-700);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.75rem;
}
.ledger-headline__label {
  margin: 0 0 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ledger-headline__figure {
  margin: 0;
  font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.2rem);
  line-height: 1;
  font-weight: 700;
  color: var(--green-700);
  font-variant-numeric: tabular-nums;
}
.ledger-headline__note {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* The chart. Sized by its viewBox so it scales down to phone width without a
   media query; the caption carries the one thing the drawing cannot say, which
   is that the horizontal axis counts entries rather than months. */
.ledger-chart { margin: 0 0 1.75rem; }
.ledger-chart svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem;
}
.ledger-chart figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.ledger-chart__grid { stroke: var(--line); stroke-width: 1; }
.ledger-chart__line {
  fill: none;
  stroke: var(--green-700);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.ledger-chart__dot { fill: var(--green-700); }
/* The endpoint is the figure the whole page is about, so it is the one mark
   that changes color as well as size. */
.ledger-chart__dot--now { fill: var(--blue-800); stroke: var(--card); stroke-width: 2.5; }
.ledger-chart__tick,
.ledger-chart__axis {
  fill: var(--ink-soft);
  font-family: var(--font);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* The table is the record; the chart is the summary. It may run wider than a
   phone, so it scrolls inside its own container and never the page body. */
.ledger-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.ledger {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.ledger__caption {
  caption-side: top;
  text-align: left;
  padding: 0.9rem 1rem 0.6rem;
  font-size: 0.87rem;
  color: var(--ink-soft);
}
.ledger thead th {
  text-align: left;
  padding: 0.55rem 1rem;
  border-bottom: 2px solid var(--blue-800);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.ledger__num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.ledger__when { color: var(--ink-soft); font-size: 0.88rem; white-space: nowrap; }
.ledger__what { display: block; font-weight: 600; }
.ledger__note {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.ledger__earned { color: var(--green-700); font-weight: 600; }
.ledger__spent { color: var(--blue-600); font-weight: 600; }
/* An entry only ever moves money one way, so the other column is blank. The
   dash holding that blank is not a figure and must not wear the column's
   accent — otherwise every row looks like it has two amounts. */
.ledger__nil { color: var(--ink-soft); font-weight: 400; }
.ledger__balance { font-weight: 700; color: var(--ink); }
/* A 3px edge on the first cell so the direction of each row reads before any of
   its numbers do. */
.ledger__row--earned td:first-child { box-shadow: inset var(--rule-width) 0 0 var(--green-700); }
.ledger__row--spent td:first-child { box-shadow: inset var(--rule-width) 0 0 var(--blue-600); }
.ledger tfoot th,
.ledger tfoot td {
  padding: 0.85rem 1rem;
  border-top: 2px solid var(--blue-800);
  font-weight: 700;
  color: var(--blue-800);
}
.ledger tfoot th { text-align: right; }
.ledger__total { font-size: 1.05rem; }

/* The redemption lists. One column per school, stacking on a phone. */
.redemption-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
  /* Each school's list is its own length — North sent nine titles and Mylan
     Park twenty-two. Stretching them to a shared height puts a hand's depth of
     empty card under the shorter one. */
  align-items: start;
}
.redemption {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: var(--rule-width) solid var(--green-700);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem 1.3rem;
}
.redemption__head h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.redemption__who { margin: 0; font-size: 0.87rem; color: var(--ink-soft); }
.redemption__titles {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-size: 0.9rem;
}
.redemption__titles li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}
.redemption__titles li:last-child { border-bottom: 0; }
.redemption__price {
  flex: none;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.redemption__total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.6rem 0 0;
  padding-top: 0.6rem;
  border-top: 2px solid var(--blue-800);
  font-weight: 700;
  color: var(--blue-800);
}
.redemption__amount { font-variant-numeric: tabular-nums; }
.redemption__note {
  margin: 0.7rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (max-width: 40rem) {
  .ledger-headline { padding: 1rem 1.1rem; }
  .redemption { padding: 1rem 1.1rem 1.1rem; }
}

/* --------------------------------------------------------------------------
   13. Available weeks (dates.php)

   A school picks a WEEK, not a day — see the note at the top of dates.php. So
   this is a list of weeks rather than a month grid: a grid would offer Tuesday
   to Thursday, which is not a thing Elisha sells, and it would carry two empty
   weekend columns that teach a reader to ignore empty cells.

   Open weeks are the only ones that are links, and they are the only ones that
   carry the green. Everything else is deliberately quiet — a school should be
   able to find what is left by scanning for color.
   -------------------------------------------------------------------------- */

.weeks {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.weeks__month {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 1.4rem 0 0.2rem;
}
.weeks__month:first-child { margin-top: 0; }

.week,
.week__link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
}

.week__dates { font-weight: 600; font-size: 1.02rem; }
.week__state { font-size: 0.88rem; }
.week__note {
  flex-basis: 100%;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* Open: a card, a green edge, and the only thing on the page you can click. */
.week--open { padding: 0; background: var(--card); border: 1px solid var(--line); }
.week--open .week__link {
  width: 100%;
  text-decoration: none;
  color: var(--ink);
  border-left: var(--rule-width) solid var(--green-700);
  border-radius: var(--radius);
  transition: background 0.15s ease;
}
.week--open .week__state { color: var(--green-700); font-weight: 600; }
.week--open .week__link:hover,
.week--open .week__link:focus-visible { background: var(--green-050); }

/* Taken: still listed, because a school seeing a week gone understands the
   calendar is real. Muted so it never competes with what is open. */
.week--held,
.week--booked,
.week--partial {
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--ink-soft);
}
.week--held .week__dates,
.week--booked .week__dates,
.week--partial .week__dates { font-weight: 500; }
.week--booked .week__dates { text-decoration: line-through; text-decoration-thickness: 1px; }

/* Online fairs, on dates.php. Two columns on a desktop — what to decide, and
   the way through — collapsing to one on a phone. It sits on the cool band so
   it reads as a different offer rather than more of the week list. */
.online {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
}

.online__lead { margin: 0 0 0.6rem; font-weight: 600; }
.online__steps { margin: 0 0 0.9rem; padding-left: 1.2rem; }
.online__steps li { margin-bottom: 0.4rem; }
.online__note { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }
.online__go { display: flex; flex-direction: column; gap: 0.6rem; }
.online__hint { margin: 0; font-size: 0.83rem; color: var(--ink-soft); }

@media (max-width: 46rem) {
  .online { grid-template-columns: 1fr; padding: 1.2rem 1.25rem; }
}


/* ==========================================================================
   THE PORTAL — an organization's own page once signed in (includes/portal.php)
   Panels for who they are and what is coming, then folding sections that open
   with <details>, so no script is involved.
   ========================================================================== */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.5rem;
}
.panel h2 { font-size: 1.35rem; margin: 0 0 0.9rem; }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.org-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.4rem 2rem; margin: 0; }
.org-grid dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); margin-top: 0.6rem; }
.org-grid dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.missing { color: var(--ink-soft); font-style: italic; font-weight: 400; }
.event {
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
  border-left: var(--rule-width) solid var(--green-700);
  padding: 0.6rem 1rem;
  background: var(--green-050);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.event__date { font-weight: 700; color: var(--blue-800); min-width: 8rem; }

.fold {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.fold > summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "+"; font-size: 1.6rem; font-weight: 600; color: var(--green-700); line-height: 1; }
.fold[open] > summary::after { content: "\2212"; }
.fold > summary:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--radius-lg); }
.fold__title { display: block; }
.fold__h { display: block; font-size: 1.25rem; font-weight: 700; color: var(--blue-800); }
.fold > summary:hover .fold__h { text-decoration: underline; }
.fold__sub { display: block; font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.15rem; }
.fold__body { padding: 0.25rem 1.5rem 1.4rem; border-top: 1px solid var(--line); }
.fold__body h3 { margin: 1.3rem 0 0.5rem; font-size: 1.05rem; }
/* Sections reused from the older page (the fair kit, the week picker) sit
   inside a fold here, so their own band padding and backgrounds step aside. */
.fold__body .section { padding-block: 1rem 0; background: none; }
.fold__body .wrap { padding-inline: 0; max-width: none; }
@media (max-width: 40rem) {
  .panel, .fold > summary { padding-inline: 1.1rem; }
  .fold__body { padding-inline: 1.1rem; }
}


/* Read-alouds in the portal: a cover, the credit PaperPie requires, and the video. */
.ra-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.ra { display: flex; gap: 1rem; align-items: flex-start; background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem; }
.ra__cover { width: 6.5rem; height: auto; border-radius: 4px; box-shadow: var(--shadow); flex: none; }
.ra__title { font-weight: 700; color: var(--blue-800); margin: 0 0 0.3rem; }
.ra__credit { font-size: 0.88rem; color: var(--ink-soft); margin: 0 0 0.7rem; }
.ra__soon { font-size: 0.88rem; font-style: italic; color: var(--ink-soft); margin: 0; }


/* A letter inside the Book Fair kit: listed by name, opened to copy. */
.subfold { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ground); margin: 0 0 0.6rem; }
.subfold > summary { cursor: pointer; padding: 0.7rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.subfold__h { font-weight: 600; color: var(--blue-800); }
.subfold > summary:hover .subfold__h { text-decoration: underline; }
.subfold > summary:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.subfold .letter { margin: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }


/* The organization panel, two to a row. An email address breaks only after
   its @ (portal.php puts a <wbr> there), never mid-word. */
.org-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.2rem 2.5rem; }
.org-grid--two dd { overflow-wrap: normal; word-break: normal; }
@media (max-width: 40rem) { .org-grid--two { grid-template-columns: 1fr; } }


/* "Other people" on the details form, and what each one handles. */
.person { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1rem 0.4rem; margin: 0 0 1rem; background: var(--ground); }
.person__head { font-weight: 700; color: var(--blue-800); margin: 0 0 0.5rem; }
.person__remove { font-size: 0.9rem; color: var(--ink-soft); }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
@media (max-width: 40rem) { .field-pair { grid-template-columns: 1fr; } }
.handles { border: 0; padding: 0; margin: 0 0 1rem; }
.handles legend { font-weight: 600; margin-bottom: 0.3rem; }
.handles__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; }
.people { list-style: none; margin: 0; padding: 0; }
.people li { margin: 0 0 0.35rem; }
.people__handles { color: var(--ink-soft); }
.org-grid__wide { grid-column: 1 / -1; }

/* ON A PHONE THE HEADER STACKS, and the PaperPie lockup below runs nearly the
   full width while the wordmark sat at about four-fifths of it. Elisha,
   2026-10-09: her mark should not look like the smaller partner. PaperPie's
   stays as it is; hers grows to roughly match its width. */
@media (max-width: 40rem) {
  .wordmark__glyph { width: 3.15rem; height: 3.15rem; }
  .wordmark__name  { font-size: 2.45rem; }
}


/* Program history in the portal (includes/program-history.php). */
.ph__title { font-size: 1.15rem; margin: 0; color: var(--blue-800); }
.ph-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.6rem 1.5rem; margin: 0.9rem 0; }
.ph-figures dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.ph-figures dd { margin: 0.15rem 0 0; font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ph-figures__total { color: var(--green-700); }
.ph-list { padding: 0.5rem 1rem 0.8rem; margin: 0; }
.ph-orders { margin: 0; }


/* "Books we have received" (library.php). */
.lib-list { columns: 2 18rem; column-gap: 2rem; margin: 0.6rem 0 0; padding-left: 1.1rem; }
.lib-list li { break-inside: avoid; margin: 0 0 0.25rem; }
.lib-az { list-style: none; margin: 0; padding: 0; columns: 2 22rem; column-gap: 2rem; }
.lib-az li { break-inside: avoid; padding: 0.3rem 0; border-bottom: 1px solid var(--line); }
.lib-az__title { font-weight: 600; }
.lib-az__when { display: block; font-size: 0.85rem; color: var(--ink-soft); }


/* "Who Elisha talks to" — one row per program (includes/portal.php). */
.who { margin: 0; }
.who__row { display: grid; grid-template-columns: minmax(10rem, 14rem) 1fr; gap: 0.2rem 1.5rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.who__row:last-child { border-bottom: 0; }
.who__row dt { font-weight: 600; color: var(--blue-800); }
.who__row dd { margin: 0; }
.who__row--quiet dt { font-weight: 500; color: var(--ink-soft); }
.who__role { color: var(--ink-soft); font-size: 0.9rem; }
.who__fallback { color: var(--ink-soft); font-size: 0.85rem; font-style: italic; }
@media (max-width: 40rem) { .who__row { grid-template-columns: 1fr; } }

.who-table td { vertical-align: top; font-size: 0.9rem; }
.who-table__use { font-weight: 600; }
.who-table__mail { font-weight: 400; font-size: 0.82rem; overflow-wrap: anywhere; }

.ph-foot { padding: 0.6rem 1rem 0.2rem; font-size: 0.9rem; color: var(--ink-soft); }
.panel .btn-row { margin-top: 0.4rem; }
