/* Transaction page template: the pages that take a gift.

   Nine pages do one job, argue then take money, around an LGL form we cannot
   style inside. Everything here is the frame around that black box.

   Design position: the form is the destination, so nothing above it competes
   with it and nothing below it offers a way out. The page narrows as it goes:
   wide photographs at the top, a tighter column at the ladder, and the form on
   a raised surface so it reads as the thing you came to do.

   The LGL embed self-sizes via its own script, so no height may be assumed
   anywhere in here. A raw iframe clips on mobile (verified 2026-07-22).

   ------------------------------------------------------------------------
   TOKENS. Every font-size, line-height and spacing value in this file comes
   from tokens.css. The rules, written down so a later edit does not drift:

   - font-size   -> --size-xs .. --size-display, nearest step. Never a rem.
   - line-height -> --leading-heading on headings, --leading-body on prose.
                    The system carries only three leading tokens, so a ratio
                    that is genuinely neither keeps a raw number, which is what
                    love-stories.css already does.
   - spacing     -> --space-1 (8) .. --space-16 (128) for every margin, padding
                    and gap. The scale has no fluid step, so where a value used
                    to be a clamp() it is now one token with a step at 1024px:
                    the pattern landing.css uses for --sec-pad.
   - max-width   -> stays a rem/ch measure. Column width is not spacing, and
                    the system carries only --measure, --content-size and
                    --wide-size, none of which is this column.
   - radius, shadow, colour -> already tokens. Untouched by the token pass.

   Written 2026-08-17 from hand-picked values; put on-system 2026-08-18. The
   first pass invented six variables that did not exist. Read tokens.css before
   touching this file. */

/* VERTICAL RHYTHM SWEEP, 2026-08-18, by another session with Adam's explicit
   permission to edit this file ("You can edit the header now if you want in
   those (T and post-feed.css). Document it and other sessions can take it back
   later.").

   What changed: two selectors, and nothing else. `.erdf-txn-head` and
   `.erdf-txn-formband` were single-class rules that Astra's own inline
   `.entry-content > .wp-block-group` padding rule out-ranked, so neither had
   ever painted. Both now carry enough specificity to win without !important.
   Every value in this file is untouched, including the 24/8 head and the 0/24
   form band; the reasoning above them stands as written.

   Source: design/vertical-rhythm-direction-2026-08-18.md, Correction A.
   Unverified locally. There is no local HTML for a transaction page and the
   fault only exists against Astra's inline CSS, which only exists on the host.
   Check on staging before trusting it. */

/* --- the head ----------------------------------------------------------- */
/* Deliberately SHORT. The visitor arrived by clicking Donate, so they have
   already decided; a full title band spending a quarter of the screen on the
   word "Donate" is a toll gate in front of someone holding a card. Her own
   line does the naming, the standard tinted band is not used here, and the
   whole head is sized so the form starts within the first screen on a laptop.

   Every research finding on donation pages says the same thing: distance to
   the form is the cost. Nothing above it may grow. */

/* THE SELECTOR IS LONG ON PURPOSE, and the numbers below are unchanged.
   Vertical rhythm sweep, 2026-08-18. A bare `.erdf-txn-head` is (0,1,0) and
   has never painted on a live page: Astra prints
   `.entry-content > .wp-block-group{padding-top:var(--wp--custom--ast-default-
   block-top-padding); ...}` inline in <head>, at (0,2,0) and after every
   enqueued stylesheet, and every block here is a .wp-block-group directly
   inside .entry-content. So the head Adam saw on /donate-save-a-life/ was
   Astra's spacing, not this file's. erdf.css now restores .erdf-section's own
   padding at (0,3,0) and gives every first-child head band --space-6/--space-4
   at (0,3,0). This page is the one argued exception to that default, for the
   reason stated above, so it needs (0,4,0) to hold its own numbers:
   .entry-content + .erdf-section + :first-child + .erdf-txn-head. That beats
   both erdf.css rules and Astra's outright, on specificity alone, with no
   !important (tech-spec 3.2) and no reliance on file order. */
.entry-content > .erdf-section:first-child.erdf-txn-head {
	padding-block: var(--space-3) var(--space-1);
}

@media (min-width: 1024px) {
	.entry-content > .erdf-section:first-child.erdf-txn-head { padding-block: var(--space-4) var(--space-1); }
}

/* --size-2xl, and no larger. The scale steps down by how much work the head
   is doing: the landing page h1 is --size-4xl, a Love Story h1 is --size-3xl,
   a transaction-page h1 is --size-2xl. */
.erdf-txn-head h1 {
	font-size: var(--size-2xl);
	line-height: var(--leading-heading);
	margin: 0 auto var(--space-1);
	max-width: 30ch;
	color: var(--ink-navy);
}

/* --size-sm, one step BELOW the site body size, and that is deliberate: this
   is the only paragraph above the form, so every line it gains is a line the
   form drops by. At --size-base it wraps to three lines instead of two. */
.erdf-txn-head p {
	max-width: 46rem;
	margin: 0 auto;
	font-size: var(--size-sm);
	line-height: var(--leading-body);
	color: var(--grey-mid);
}

/* --- orientation, cold-start variant only ------------------------------- */
/* The four QR pages are read by someone on a phone in a partner practice waiting
   room who has never seen the home page. They need one line saying who is asking
   before they will give, which is the opposite of the warm visitor above. It is
   still one line, and it is still above the form, so it is held to --size-sm and
   a single sentence. Never on a page reached from a Donate button. */

.erdf-txn-orient {
	max-width: 44rem;
	margin: 0 auto;
	padding-top: var(--space-2);
	text-align: center;
	font-size: var(--size-sm);
	line-height: var(--leading-body);
	color: var(--charcoal);
}

/* The band holding the form carries no top padding of its own: the head above
   it already provides the separation, and any more pushes the form down. */
/* Same 2026-08-18 sweep, same reason, one extra hurdle. The form band is
   never the first child, because the head always precedes it, so :first-child
   is not available as a lever here. It IS the section straight after the head,
   which means erdf.css's `.entry-content > .erdf-section:first-child +
   .erdf-section` would otherwise force a --space-6 top charge onto the one
   band whose whole point is zero top padding.

   FIVE classes, not the four the direction wrote. Four ties that rule rather
   than beating it: `.entry-content > .erdf-section.erdf-section
   .erdf-txn-formband` and `.entry-content > .erdf-section:first-child +
   .erdf-section` are both (0,4,0), and a tie is settled by source order, which
   here means transaction.css enqueuing after erdf.css. That would work today
   and break the day the order changes. One more class makes it (0,5,0) and
   true regardless. Values unchanged from what this file already said. */
.entry-content > .erdf-section.erdf-section.erdf-section.erdf-txn-formband {
	padding-block: 0 var(--space-3);
}

@media (min-width: 1024px) {
	.entry-content > .erdf-section.erdf-section.erdf-section.erdf-txn-formband { padding-block: 0 var(--space-4); }
}

/* --- the lead ----------------------------------------------------------- */
/* Full-ask variant only. A quick-give page does not carry a lead: on a page
   whose whole job is a $10 gift, a section heading is one more thing standing
   between the visitor and the form. */

.erdf-txn-lead {
	max-width: 46rem;
	margin-inline: auto;
	text-align: center;
}

.erdf-txn-lead h2 {
	font-size: var(--size-2xl);
	line-height: var(--leading-heading);
	margin: 0 0 var(--space-2);
	color: var(--ink-navy);
}

.erdf-txn-lead p {
	font-size: var(--size-sm);
	line-height: var(--leading-body);
	margin: 0 auto;
	max-width: 40rem;
}

/* --- the proof row ------------------------------------------------------ */
/* Photographs of real families, a cat and a dog among them, which is what
   satisfies the dog-and-cat requirement. Cropped square so differently-shaped
   files sit as one row rather than a ragged line. */

.erdf-txn-proof {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-2);
	margin: var(--space-4) auto 0;
	max-width: 52rem;
}

.erdf-txn-proof figure {
	margin: 0;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--radius-soft);
}

.erdf-txn-proof img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 35%;
	display: block;
}

@media (max-width: 40rem) {
	.erdf-txn-proof { grid-template-columns: repeat(3, 1fr); gap: var(--space-1); }
}

/* The line under the photographs. The row ended flush on it, photo edge on
   text, at 1440 and at 390 (R1 post-release review, 2026-10-05). --space-3,
   the step the landing's video caption takes under its player and one step
   more than the 16px between the photos, so the line reads as belonging to
   the row rather than as a fourth cell of it. Phones step down with the row's
   own gap. Scoped to the line that follows the row: on /events/tshirt/ the
   row closes its section and the form band keeps its own spacing.
   (0,2,0) beats .erdf-txn-anchor's margin: 0 below, whatever the file order. */
.erdf-txn-proof + .erdf-txn-anchor {
	margin-top: var(--space-3);
	/* The row's own measure, so the line sits under the photographs instead of
	   running the full 1200px column past both ends of an 832px row (2026-11-01). */
	max-width: 52rem;
	margin-inline: auto;
}

/* A row holding one photograph (/donate-save-a-life/donate/, page 104) put it in
   the first of three columns, flush left on a page that is centred everywhere
   else. The middle column keeps it the size it has beside two others and centres
   it, at both gaps. Rows of three are untouched: :only-child matches nothing there. */
.erdf-txn-proof > :only-child {
	grid-column: 2;
}

@media (max-width: 40rem) {
	.erdf-txn-proof + .erdf-txn-anchor { margin-top: var(--space-2); }
}

/* --- the ladder --------------------------------------------------------- */
/* Gift levels. Deliberately carries NO claim about what a given amount buys:
   no such costing exists in anything she has published, and inventing one
   would be fabricating a cost to a donor. The only figure here is her own two
   published totals divided, which is already an applied decision. */

.erdf-txn-ladder {
	max-width: 44rem;
	margin-inline: auto;
}

.erdf-txn-rungs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
	gap: var(--space-1);
	margin: var(--space-2) 0;
	padding: 0;
	list-style: none;
}

.erdf-txn-rungs li {
	text-align: center;
	padding: var(--space-2) var(--space-1);
	border: 2px solid var(--hairline);
	border-radius: var(--radius-soft);
	font-weight: 700;
	font-size: var(--size-lg);
	color: var(--ink-navy);
	background: #fff;
}

.erdf-txn-anchor {
	text-align: center;
	font-size: var(--size-sm);
	line-height: var(--leading-body);
	color: var(--grey-mid);
	margin: 0;
}

/* --- the form ----------------------------------------------------------- */
/* Raised surface, so the form reads as the destination rather than as one more
   block in the stack. No fixed height: the LGL script sets its own.

   The LGL iframe reports itself at 640px wide. The card hugs that rather than
   stretching past it, or the form sits in a pool of white with slack down one
   side and reads as broken rather than as a panel. */

.erdf-txn-form {
	max-width: 43rem;
	margin-inline: auto;
	background: #fff;
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	padding: var(--space-2);
}

@media (min-width: 1024px) {
	.erdf-txn-form { padding: var(--space-3); }
}

.erdf-txn-form iframe {
	width: 100%;
	max-width: 40rem;
	margin-inline: auto;
	border: 0;
	display: block;
}

/* --- the monthly nudge -------------------------------------------------- */
/* THE conversion job on the pages that can carry it. A one-time gift is the
   easy yes; a monthly one is what makes the fund ready before the emergency.
   We cannot change the form, but forms 1, 4 and 7 HAVE a Donation Schedule
   control, so the nudge points at the control the donor is about to see rather
   than sending them to another page and losing them.

   NOT ON EVERY PAGE. /donate10/ and /donate20/ have no Donation Schedule
   control at all (data/lgl-form-audit-2026-08-17.md, finding F10), so this
   block must never be emitted there: it would point at a control that does not
   exist. /ways-to-help/faithful-friends/ is hard-locked to monthly already and
   does not need it either.

   Placed directly ABOVE the form: at the moment of choosing an amount, which
   is the only moment the schedule is still open.

   PROMINENCE PASS, 2026-08-22 (Adam): monthly signups are the site's core
   conversion goal and this block was too quiet. One size step up on the text,
   a larger badge, --space-3 padding and a heavier yellow rule. Same language:
   blue-tint ground, yellow accent, existing tokens only. It stays an
   invitation, not an alert, and the form must still start within the first
   screen at 1440x900. Copy unchanged. */

.erdf-txn-monthly {
	max-width: 43rem;
	margin: 0 auto var(--space-2);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-1) var(--space-3);
	padding: var(--space-3);
	border-radius: var(--radius-soft);
	background: var(--blue-tint);
	border-left: 6px solid var(--rain-yellow);
	font-size: var(--size-base);
	line-height: var(--leading-body);
	color: var(--ink-navy);
}

/* The build scripts print width:120px inline on the badge img. This round is
   CSS-only by design (one edit covers all four pages from both emitters), so
   the size step has to out-rank that inline attribute: the one !important in
   this file, scoped to this img alone. */
.erdf-txn-monthly img {
	width: 176px !important;
}

@media (max-width: 40rem) {
	.erdf-txn-monthly { padding: var(--space-2); gap: var(--space-1) var(--space-2); }
	.erdf-txn-monthly img { width: 144px !important; }
}

.erdf-txn-monthly strong { font-weight: 700; }

.erdf-txn-monthly a {
	color: var(--ink-navy);
	font-weight: 700;
	text-underline-offset: 3px;
}

/* --- honour a practice, programme variant only --------------------------- */
/* One sentence pointing at the practice selector inside the LGL form, so it
   lives in the form band directly above the form rather than up in the lead.
   Emitted bare it was the only paragraph in any form band, no rule reached
   it, and it painted at body size across the full 1200px content column while
   the lead copy above sat centered on a 40rem measure (Adam, 2026-08-22).
   Values mirror .erdf-txn-lead p, so it reads as the same voice: --size-sm,
   the 40rem measure, centered, inherited charcoal. The --space-2 bottom
   margin is the separation the monthly nudge keeps from the form card. */
.erdf-txn-honour {
	max-width: 40rem;
	margin: 0 auto var(--space-2);
	text-align: center;
	font-size: var(--size-sm);
	line-height: var(--leading-body);
}

/* --- reassurance, under the form ---------------------------------------- */
/* Sits BELOW the form on purpose. It answers the hesitation a donor has with
   their card already out; put above the form it is an objection raised before
   anyone had it. */

.erdf-txn-assure {
	max-width: 44rem;
	margin: var(--space-3) auto 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-1) var(--space-3);
	justify-content: center;
	font-size: var(--size-sm);
	color: var(--grey-mid);
}

.erdf-txn-assure span::before {
	content: '\2713';
	margin-right: var(--space-1);
	font-weight: 700;
	color: var(--accent-teal);
}

/* Legal fine print, so --size-xs: the same step erdf.css gives .erdf-imgcap
   and every other caption on the site. */
.erdf-txn-tax {
	max-width: 44rem;
	margin: var(--space-3) auto 0;
	text-align: center;
	font-size: var(--size-xs);
	line-height: var(--leading-body);
	color: var(--grey-mid);
}

/* --- route in, cold-start variant only ---------------------------------- */
/* The one way into the rest of the site from a QR page, and it sits AFTER the
   gift on purpose. Before it, it is an exit; after it, it is the start of a
   relationship with someone who has just given and has never seen the site.
   One link, not a nav: anything more is a menu competing with the form. */

.erdf-txn-routein {
	max-width: 44rem;
	margin: var(--space-6) auto 0;
	padding-top: var(--space-3);
	border-top: 1px solid var(--hairline);
	text-align: center;
	font-size: var(--size-sm);
	line-height: var(--leading-body);
	color: var(--grey-mid);
}

.erdf-txn-routein a {
	color: var(--erdf-blue-dark);
	font-weight: 600;
	text-underline-offset: 3px;
}
