/* Kidcyclopedia — /schools/ and /libraries/ (Design, 2026-11-16). Loaded AFTER about/landing.css and about/demo.css;
   holds only what those two do not have. Lives at app/public/about/audience.css so both pages share one copy.

   One family with /about/: the same felt bands and paper sections, the same card on the same table, the same
   buttons and the same two faces (Fredoka for display, Andika for a grown-up's lines).
   Second pass (Design, 2026-11-16): four sections, one action. hero (what it is + the offer + the card) / what a card
   does / the shelf (+ the date-due slip on /libraries/) / the maker's note beside the request form.
   Paper objects: the maker's note (.note), the request form (.aform) and, on /libraries/, the date-due slip (.slip).
   The pocket chart, the book pockets, the access ticket, the steps and the "said plainly" list are gone.

   Colour: landing.css tokens, plus the five below. Every text pair is 4.5:1 or better (measured, see brief.md). */

:root {
  --tint: #FFF4D6;        /* the pale-marigold band (landing.css .gift-band uses the same value) */
  --kraft: #D8B978;       /* the book pocket */
  --kraft-deep: #B99650;  /* its edge and fold */
  --stamp: #9E2F1A;       /* the date stamp's ink on paper: 7.2:1 on #FFFEF8 */
  --stamp-open: #17574C;  /* the "open" stamp: 8.3:1 on #FFFEF8 */
  --card-white: #FFFEF8;  /* index-card paper, a touch whiter than --paper so it lifts off a paper band */
  --line-blue: #9CC7EC;   /* ruled lines (decoration only) */
  --line-red: #E58D7B;    /* the base line / margin line (decoration only) */
}

/* in-page targets never land under the top edge */
#see, #shelf, #access { scroll-margin-top: 16px; }

/* a quiet outline button for paper bands (landing.css has no outline button; pricetest.css's is not loaded here) */
.btn-outline { background: transparent; color: var(--felt); box-shadow: inset 0 0 0 2px var(--felt); }
.btn-outline:hover { box-shadow: inset 0 0 0 2px var(--felt), 0 8px 18px rgba(0, 0, 0, .12); }
.btn-outline:focus-visible { outline-color: var(--ink); }

/* text links inside these pages' paper sections */
.aud a.tlink { color: var(--felt); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.aud a.tlink:focus-visible { outline: 4px solid var(--marigold); outline-offset: 2px; border-radius: 4px; }

/* ---------- the hero: who the page is for, above the same line and the same table ---------- */
/* a sticker, set a little askew, the way a label is stuck on a folder */
.aud-for {
  display: inline-flex; align-items: center; height: 34px; padding: 0 16px; margin-top: 22px; border-radius: 17px;
  background: var(--marigold); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .04em;
  transform: rotate(-2deg); box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
}
.aud .hero .child-line { margin-top: 14px; }
.aud .hero .grown-line { max-width: 660px; }
.aud .hero .grown-free strong { color: var(--on-felt); }
/* a phone's first screen keeps the card's picture and question in it (as /about/ does): one button there, not two;
   the free pages are linked right under the card and again on the shelf */
@media (max-width: 479px) { .aud .cta-row .cta-second { display: none; } }
@media (max-width: 699px) {
  .aud-for { margin-top: 12px; height: 30px; font-size: 14px; }
  .aud .hero .child-line { margin-top: 10px; }
}
/* the card's own page and the free pages, under the table (the note above it is rewritten by demo.js) */
.card-page-link { margin: 4px auto 0; text-align: center; font-size: 16px; }
.card-page-link a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--on-felt); text-underline-offset: 3px; }
.card-page-link a:focus-visible { outline: 4px solid var(--marigold); outline-offset: 2px; border-radius: 6px; }

/* ---------- what it is: landing.css .three, plus one line about where it runs ---------- */
.aud .three { padding-bottom: 48px; }
.what-lede { max-width: 820px; margin: 0 auto 40px; text-align: center; }
.what-lede h2 { font-size: clamp(26px, 4vw, 36px); }
.what-lede p { margin-top: 14px; font-size: 18px; }
.works {
  margin: 40px auto 0; max-width: 900px; padding: 18px 22px; border-radius: 20px; background: var(--paper-2);
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; font-size: 17px;
}
.works svg { width: 44px; height: 44px; color: var(--felt); }
@media (min-width: 860px) { .aud .three { padding-bottom: 64px; } .what-lede { margin-bottom: 52px; } }

/* the date-due slip: two links that closed, one that is open */
.due { display: grid; gap: 28px; align-items: center; margin-top: 56px; padding-top: 48px; border-top: 2px dashed rgba(30, 42, 42, .18); }
.due h3 { font-size: clamp(24px, 3.4vw, 30px); }
.due-words p { margin-top: 14px; font-size: 18px; max-width: 560px; }
.due-url {
  display: inline-block; margin-top: 16px; padding: 10px 16px; border-radius: 12px; background: var(--card-white); border: 2px solid var(--rule);
  font-family: var(--display); font-weight: 600; font-size: clamp(15px, 4.2vw, 19px); color: var(--ink); text-decoration: none; overflow-wrap: anywhere;
}
.due-url:hover { border-color: var(--felt); }
.due-url:focus-visible { outline: 4px solid var(--marigold); outline-offset: 2px; }
.slip {
  justify-self: center; width: min(100%, 350px); background: var(--card-white); color: var(--ink); border-radius: 6px; padding: 16px 18px 20px;
  box-shadow: 0 16px 32px rgba(60, 40, 0, .22); transform: rotate(-2deg);
}
.slip-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; border-bottom: 2px solid var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.slip-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 62px; padding-right: 6px; border-bottom: 1.5px solid var(--line-blue); }
.slip-row b { font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.2; }
.stamp {
  display: inline-block; padding: 4px 8px 3px; border: 2.5px solid currentColor; border-radius: 6px; color: var(--stamp);
  font-family: var(--display); font-weight: 600; font-size: 13px; line-height: 1.15; letter-spacing: .08em; text-transform: uppercase; text-align: center;
  transform: rotate(-4deg); opacity: .92;
}
.stamp small { display: block; font-size: 11px; letter-spacing: .1em; }
.slip-row:nth-child(3) .stamp { transform: rotate(3deg); }
.stamp-open { color: var(--stamp-open); transform: rotate(-2deg) !important; font-size: 14px; padding: 6px 10px 5px; }
@media (min-width: 860px) {
  .due { grid-template-columns: 370px minmax(0, 1fr); gap: 56px; }
  .slip { justify-self: start; }
}

/* ---------- the shelf (landing.css .shelf): its journals and question chips are links here ---------- */
.journal a.j-cover { text-decoration: none; color: inherit; }
.journal a.j-cover:focus-visible { outline: 4px solid var(--marigold); outline-offset: 3px; }
.shelf-all { margin: 28px 0 0; }
.aud .asks li { padding: 0; }
.aud .asks a { display: block; padding: 10px 16px; border-radius: inherit; color: inherit; text-decoration: none; }
.aud .asks a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.aud .asks a:focus-visible { outline: 4px solid var(--marigold); outline-offset: 2px; }
@media (min-width: 700px) { .aud .asks a { padding: 12px 20px; } }

/* ---------- the maker's note: an index card ---------- */
.note {
  position: relative; max-width: 560px; margin: 10px auto 0; padding: 30px 26px 26px; border-radius: 6px; background-color: var(--card-white);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .16), 0 1px 0 rgba(0, 0, 0, .06); transform: rotate(-1.2deg);
  /* an index card: one red line under the heading's row, blue rules every 32px below it */
  background-image: linear-gradient(var(--line-red), var(--line-red)), repeating-linear-gradient(to bottom, transparent 0 30.5px, rgba(156, 199, 236, .6) 30.5px 32px);
  background-size: 100% 2px, 100% 32px; background-position: 0 76px, 0 78px; background-repeat: no-repeat, repeat-y;
}
/* a strip of tape holds it to the page */
.note::before {
  content: ""; position: absolute; left: 50%; top: -14px; width: 118px; height: 30px; margin-left: -59px; transform: rotate(2.5deg);
  background: rgba(246, 183, 60, .62); box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.note h2, .note h3 { font-size: 26px; line-height: 40px; height: 44px; }
.note p { font-size: 17.5px; line-height: 32px; margin-top: 0; }
.note p + p { margin-top: 32px; }
.note .sig { margin-top: 32px; line-height: 32px; }
.note .sig b { display: block; font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 32px; }
.note .sig span { display: block; color: var(--ink-soft); font-size: 16px; line-height: 32px; }
@media (min-width: 900px) {
  .note { margin: 0; padding: 30px 34px 30px; }
}

/* ---------- the request form ---------- */

/* the form: a paper card with its own tab, like every card on the table */
.aform-wrap { position: relative; margin-top: 30px; min-width: 0; }
.aform-tab {
  position: absolute; left: 24px; bottom: 100%; height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 12px 12px 0 0;
  background: var(--marigold); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .02em;
}
.aform, .access-done, .access-error { background: var(--paper); color: var(--ink); border-radius: 24px; padding: 22px 20px 24px; box-shadow: var(--shadow-card); }
.aform { display: grid; gap: 18px; }
.aform h3 { font-size: 24px; }
.aform-lede { font-size: 16px; color: var(--ink-soft); margin-top: -10px; }
.pair { display: grid; gap: 18px; align-items: start; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label { font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.2; }
.field .opt { font-family: var(--body); font-weight: 400; font-size: 15px; color: var(--ink-soft); margin-left: 4px; }
.field .hint { font-size: 15px; line-height: 1.4; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 2px solid #7F8C8C; background: #FFFFFF; /* 3.4:1 on paper: the edge of a control */
  font: inherit; font-size: 18px; color: var(--ink);
}
.field textarea { min-height: 104px; resize: vertical; line-height: 1.4; }
.field input::placeholder, .field textarea::placeholder { color: #6B7878; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--felt); box-shadow: 0 0 0 4px rgba(246, 183, 60, .7); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B2371F; }
.field-err { color: #B2371F; font-weight: 700; font-size: 15px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* the honeypot: off screen, out of the tab order and the reading order */
.aform .btn { justify-self: start; }
.aform-fine { font-size: 15px; line-height: 1.45; color: var(--ink-soft); margin-top: -4px; }
.access-status { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--felt); min-height: 0; }
.access-status:empty { display: none; }
.aform.is-sending .btn { opacity: .6; pointer-events: none; }

/* what happens next (sent), and the honest failure */
.access-done, .access-error { display: grid; gap: 14px; justify-items: start; }
.access-done:focus, .access-error:focus { outline: none; }
.access-done h3, .access-error h3 { font-size: 26px; }
.access-done .wait-done-face { margin-bottom: 2px; }
.access-error { border: 3px solid #B2371F; margin-bottom: 18px; }
.access-error h3 { color: #B2371F; }
.access-error .err-contact { font-size: 16px; color: var(--ink-soft); }
.access-error .err-contact a { overflow-wrap: anywhere; }
@media (min-width: 600px) {
  .aform, .access-done, .access-error { padding: 28px 28px 30px; }
  .pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 960px) {
}

/* the footer's "you are here" */
.foot nav a[aria-current="page"] { background: rgba(255, 255, 255, .12); }

/* ---------- motion: small, and none for a reader who asked for less ---------- */
/* the stamps land as the slip scrolls into view (browsers with scroll-driven animation; everyone else sees them landed) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .slip .stamp { animation: stamp-land linear both; animation-timeline: view(); animation-range: entry 20% entry 90%; }
    .slip-row:nth-child(3) .stamp { animation-range: entry 45% cover 22%; }
    .slip .stamp-open { animation-range: entry 80% cover 30%; }
  }
}
@keyframes stamp-land { from { scale: 1.4; } 70% { scale: .94; } to { scale: 1; } } /* never hidden: a page captured without scrolling still shows every stamp */

/* links inside the form's paper are felt green (the form is paper) */
.aform a.tlink, .access-done a.tlink, .access-error a.tlink { color: var(--felt); }

/* ---- text contrast at least 4.5:1 everywhere on these two pages (Build, 2026-11-16, axe-core).
   /about/'s shared styles put white words on a few subject colours and on the coral that measure 2.2–4.4:1. Here each
   journal's name gets ink on a light colour, and white on a mid colour darkened just enough (4.6–4.7:1), so the shelf
   looks the same. Scoped to .aud, so /about/ is unchanged (its own fix is the lead's call). */
.aud .chip-surprise, .aud .not-x { background: #D04429; }
.aud .j-name { text-shadow: none; }
.aud .j-cover[href$="/animals/"] .j-name,
.aud .j-cover[href$="/vehicles/"] .j-name,
.aud .j-cover[href$="/kitchen/"] .j-name,
.aud .j-cover[href$="/play/"] .j-name,
.aud .j-cover[href$="/earth/"] .j-name,
.aud .j-cover[href$="/plants/"] .j-name,
.aud .j-cover[href$="/feelings/"] .j-name { color: #1E2A2B; }
.aud .j-cover[href$="/dinosaurs/"] .j-name { background: #498049; }
.aud .j-cover[href$="/body/"] .j-name,
.aud .j-cover[href$="/superpowers/"] .j-name { background: #D04429; }
.aud .j-cover[href$="/made/"] .j-name { background: #B05F27; }
.aud .j-cover[href$="/shelters/"] .j-name { background: #996B3D; }
.aud .j-cover[href$="/world/"] .j-name { background: #2A8181; }


/* ================= second pass (Design, 2026-11-16): four sections, one action ================= */

/* ---- 1. the hero: what it is and the offer, both in the first screen at every width ---- */
/* landing.css hides .grown-free under 700px (on /about/ it is a second line about price). Here it IS the offer. */
.aud .hero .grown-free { display: block; }
.aud .hero .child-line { max-width: 760px; margin-left: auto; margin-right: auto; text-wrap: balance; }
.aud .hero .grown-line { max-width: 640px; text-wrap: pretty; }
.aud .hero .grown-free { margin-top: 14px; padding-top: 14px; position: relative; }
/* a short marigold rule sets the offer apart from the description above it */
.aud .hero .grown-free::before { content: ""; position: absolute; left: 50%; top: 0; width: 56px; height: 3px; margin-left: -28px; border-radius: 2px; background: var(--marigold); }
.aud .hero .cta-row { margin-top: 20px; }
.hero-mail { margin: 4px auto 0; font-size: 16px; color: var(--on-felt-soft); }
.hero-mail a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--on-felt); font-weight: 700; text-underline-offset: 3px; text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.hero-mail a:focus-visible { outline: 4px solid var(--marigold); outline-offset: 2px; border-radius: 6px; }
/* the card's tab rises 40-46px above the table, so the table keeps room for it under the email line */
.aud .hero .table { margin-top: 52px; }
@media (min-width: 700px) { .aud .hero .table { margin-top: 62px; } }
@media (max-width: 699px) {
  .aud .hero .child-line { font-size: 25px; line-height: 1.15; }
  .aud .hero .grown-line { font-size: 16px; line-height: 1.45; }
  .aud .hero .grown-free { margin-top: 12px; padding-top: 12px; }
  .aud .hero .cta-row { margin-top: 14px; }
}
@media (max-width: 359px) { .aud .hero .child-line { font-size: 22px; } .hero-mail { font-size: 15px; } }

/* ---- 2. what a card does: three plain lines under the three things (was .works + the "No" list) ---- */
.plainly { display: grid; gap: 10px; margin: 40px auto 0; max-width: 1000px; }
.plainly li { background: var(--paper-2); border-radius: 16px; padding: 14px 18px; font-size: 17px; line-height: 1.4; }
@media (min-width: 860px) { .plainly { grid-template-columns: 1.25fr 1fr 1.25fr; gap: 14px; margin-top: 52px; } }

/* ---- 3. the shelf; on /libraries/ the date-due slip now lies on the felt under it ---- */
.shelf .due { margin-top: 48px; padding-top: 44px; border-top: 2px dashed rgba(255, 255, 255, .28); text-align: left; }
.shelf .due h3 { color: var(--on-felt); text-shadow: 0 2px 0 rgba(0, 0, 0, .28); }
.shelf .due-words p { color: var(--on-felt-soft); }
.shelf .slip { box-shadow: 0 16px 32px rgba(0, 0, 0, .35); }
.shelf .due-url { border-color: transparent; }
@media (min-width: 860px) { .shelf .due { max-width: 980px; margin-left: auto; margin-right: auto; } }

/* ---- 4. the offer: the maker's note on the left, the form on the right, on the pale band ---- */
.ask { background: var(--tint); color: var(--ink); padding: 56px 0 72px; }
.ask-wrap { display: grid; gap: 40px; }
.ask h2 { font-size: clamp(28px, 4.6vw, 42px); text-wrap: balance; }
.ask .note { margin: 40px auto 0; }
.ask .note a.tlink { overflow-wrap: anywhere; }
.ask .aform-wrap { margin-top: 34px; }
.ask .aform, .ask .access-done, .ask .access-error { box-shadow: 0 18px 36px rgba(60, 40, 0, .18), 0 1px 0 rgba(0, 0, 0, .06); }
@media (min-width: 960px) {
  .ask { padding: 88px 0 96px; }
  .ask-wrap { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .ask .note { margin: 44px 0 0; }
  .ask .aform-wrap { margin-top: 34px; }
}
