/* wardens.css — the public page for flood wardens and community flood groups (/flood-wardens, flood-wardens.php).
   Built from the mock-up Marc saw on 30 Nov 2026 (commit dab64db05), its look kept.

   It wears the patch pages' look (public/patch/patch.css: the tokens on .wp-app, .wp-hero and its waves, .wp-pill,
   .wp-btn, .wp-scribble, .wp-note; the icons of includes/patch-icons.php), linked after patch.css. Every rule here is
   under .wp-app with a wpw- class; nothing styles a class of the site's or of patch.css on its own. Light only, no
   script, no font of its own. One column of sections; a card only where a thing stands on its own (the five "what you
   get" cards, the example's frame). Running text is held to about 65 characters a line. */

.wp-app .wpw-page p { text-wrap: pretty; }
.wp-app .wpw-page h3 { text-wrap: balance; }
.wp-app .wpw-page { max-width: 1060px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 56px max(16px, env(safe-area-inset-left, 0px)); }

/* ── 1. the hero: the patch page's own, with the way in ── */
.wp-app .wpw-hero .wp-hero-in { padding: 38px 48px 100px; }
.wp-app .wpw-hero h1 { margin: 20px 0 14px; }
.wp-app .wpw-hero .wp-hero-sub { max-width: 35em; font-size: 17px; line-height: 1.55; }
.wp-app .wpw-hero .wp-pill .ic { width: 22px; height: 22px; }
.wp-app .wpw-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.wp-app .wpw-acts .wp-btn { height: 48px; padding: 0 20px; font-size: 15px; }
.wp-app .wpw-acts .wp-btn .ic { width: 22px; height: 22px; }
.wp-app .wp-btn.wpw-on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .42); }
.wp-app .wp-btn.wpw-on-dark:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.wp-app .wpw-small { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-2); }
.wp-app .wpw-hero .wpw-small { color: #c5d8ee; }

/* ── the sections ── */
.wp-app .wpw-sec { margin-top: 52px; }
.wp-app .wpw-sec > h2, .wp-app .wpw-in h2 { margin: 0 0 20px; font-size: clamp(23px, 3vw, 28px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }

/* ── 2. what you get: five cards, three then two, so no width leaves one alone ── */
.wp-app .wpw-get { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.wp-app .wpw-card { grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px 22px; }
.wp-app .wpw-card:nth-child(n+4) { grid-column: span 3; }
.wp-app .wpw-card > .ic { width: 46px; height: 46px; margin: 0 0 4px -2px; }
.wp-app .wpw-card h3 { margin: 0; font-size: 17px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.wp-app .wpw-card p { margin: 0; max-width: 33em; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.wp-app .wpw-link { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 5px; color: var(--brand-deep); font-weight: 800; font-size: 14px; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.wp-app .wpw-link .ic { width: 18px; height: 18px; color: currentColor; filter: none; }
.wp-app .wpw-link:hover { color: var(--brand); }

/* ── 3. how it works: a sequence, so numbered, and no boxes ── */
.wp-app .wpw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.wp-app .wpw-steps li { position: relative; display: flex; flex-direction: column; gap: 14px; }
.wp-app .wpw-steps li:not(:last-child)::after { content: ''; position: absolute; top: 23px; left: 60px; right: -16px; border-top: 2px dashed var(--ink-3); opacity: .55; }
.wp-app .wpw-steps i { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50% 46% 52% 48%; border: 2.5px solid var(--ink); background: var(--note); font: 700 23px/1 var(--hand); padding-top: 3px; transform: rotate(-3deg); }
.wp-app .wpw-steps li:nth-child(2) i { transform: rotate(2deg); }
.wp-app .wpw-steps h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.wp-app .wpw-steps p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

/* ── 4. the example: the picture in a quiet browser frame, the caption on a note stuck to it ── */
.wp-app .wpw-example figure { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.wp-app .wpw-frame { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 4px rgba(18, 48, 81, .06), 0 20px 44px rgba(18, 48, 81, .14); }
.wp-app .wpw-frame-top { display: flex; gap: 7px; padding: 11px 15px; background: #eaf0f7; border-bottom: 1px solid var(--line); }
.wp-app .wpw-frame-top i { width: 10px; height: 10px; border-radius: 50%; background: #c9d4e3; }
/* the picture's own size: it ends under its map's key (docs/audits/flood-wardens-page-2026-11-30/tools/make-example.js makes
   it; scripts/test-flood-wardens-page.php holds this ratio to the file, so a new picture is never cut off or left short) */
.wp-app .wpw-shot { aspect-ratio: 1280 / 908; overflow: hidden; }
.wp-app .wpw-frame img { display: block; width: 100%; height: auto; }
/* the note is stuck over the frame's empty lower right corner, clear of the map's key */
.wp-app .wpw-example .wp-note { position: relative; align-self: flex-end; max-width: min(25em, calc(100% - 24px)); margin: -16px 22px 0 0; padding: 11px 18px 9px; font-size: 18px; transform: rotate(-1.2deg); box-shadow: 2px 4px 0 rgba(18, 48, 81, .1); }
/* the street map's credit, as words on its own line under the note's sentence: the one inside the picture cannot be read
   at a phone's width (a ruling of 30 Nov 2026). Plain text, in the page's quiet small type. */
.wp-app .wpw-credit { display: block; margin-top: 5px; font: 600 12px/1.35 var(--font); letter-spacing: 0; color: var(--ink-2); }

/* ── 5. the way in: a band that closes the page ── */
.wp-app .wpw-in { margin-top: 60px; display: flex; align-items: center; gap: 26px; background: var(--water-wash); border-radius: 22px; padding: 32px 40px 30px; }
.wp-app .wpw-in > .ic-welly { width: 76px; height: 76px; --wash: #a9d1f5; }
.wp-app .wpw-in h2 { margin-bottom: 0; }
.wp-app .wpw-in .wpw-acts { margin-top: 18px; }

/* ── 6. the small print ── */
.wp-app .wpw-print { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); }
.wp-app .wpw-print h2 { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.wp-app .wpw-print p { margin: 0; max-width: 31em; color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }

/* ── narrower screens ── */
@media (max-width: 900px) {
  .wp-app .wpw-hero .wp-hero-in { padding: 26px 22px 80px; }
  .wp-app .wpw-get { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wp-app .wpw-card, .wp-app .wpw-card:nth-child(n+4) { grid-column: auto; }
  .wp-app .wpw-card:first-child { grid-column: 1 / -1; }
  .wp-app .wpw-steps { grid-template-columns: 1fr; gap: 22px; }
  .wp-app .wpw-steps li { flex-direction: row; align-items: flex-start; }
  .wp-app .wpw-steps li:not(:last-child)::after { top: 56px; bottom: -16px; left: 22px; right: auto; border-top: 0; border-left: 2px dashed var(--ink-3); }
  .wp-app .wpw-steps li > div { padding-top: 10px; max-width: 34em; }
  .wp-app .wpw-in { padding: 26px 24px; }
}
@media (max-width: 600px) {
  .wp-app .wpw-sec { margin-top: 42px; }
  .wp-app .wpw-get { grid-template-columns: 1fr; gap: 12px; }
  .wp-app .wpw-hero .wp-hero-in { padding: 22px 18px 76px; }
  .wp-app .wpw-hero .wp-pill { gap: 5px; padding: 5px 10px 5px 6px; font-size: 12px; border-radius: 14px; }   /* one line at 400px; if a narrower phone wraps it, it stays a soft box */
  .wp-app .wpw-hero .wp-pill .ic { width: 20px; height: 20px; }
  .wp-app .wpw-hero .wp-hero-sub { font-size: 16px; }
  .wp-app .wpw-acts .wp-btn { flex: 1 1 auto; }
  .wp-app .wpw-in { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 48px; }
  .wp-app .wpw-in > .ic-welly { width: 60px; height: 60px; }
  .wp-app .wpw-example .wp-note { align-self: center; max-width: calc(100% - 16px); margin: 12px 0 0; font-size: 17px; }
}
