/* Donation widget: the two-panel card, its step flow, the return badge and the
   popup shell around them.

   PORTED from design/target-donate-demo/, the accepted widget build:
   landing.html lines 1935-2460 (the widget) and donate.html lines 1925-1985
   (the page shell around it). The two blocks are byte-identical across
   landing.html, donate.html and faithful-friends.html, and they are taken here
   whole rather than trimmed, so a value cannot drift between the popup and the
   two pages.

   Every selector is prefixed `.erdf-dp`, the body class inc/donate-popup.php
   adds, exactly as pages.css is prefixed `.erdf-pru`. That is what lets these
   rules out-rank erdf.css's `.entry-content hN` rules, which are one class more
   specific than the accepted build's bare element selectors. Relative
   specificity inside the file is unchanged: every selector gains exactly the
   same one class.

   Two body classes, not one:
     .erdf-dp        the widget's assets are on this page. Site-wide, because
                     any page may carry a trigger for the popup.
     .erdf-dp-page   this page carries the card in normal flow rather than in
                     the popup. Only the container neutralisation and the page
                     shell hang off it, so nothing here reaches a page that
                     merely has the popup available.

   NOT IN THIS FILE, deliberately, because tokens.css and chrome.css already
   ship them and two definitions drift: the token block, the header, the nav
   panel, the footer, the button tiers and .sr-only.

   SINCE GO-LIVE B1 (R3) the right panel holds LGL's real forms, shown only
   once inc/lgl-config.php is filled. The rules for the demonstration's own
   controls (amounts, payment, the extras screens, the thank you) are left in
   place: nothing emits those classes any more, and leaving them keeps this
   block diffable against the accepted build. */


/* ---- Astra container neutralisation --------------------------------------
   Astra wraps page content in #content > .ast-container > #primary >
   main#main > article > .entry-content, and .ast-container is a max-width
   column with side padding. The card page is full-bleed and computes its own
   inset, so every wrapper stops constraining width on it and only on it. Same
   block pages.css carries, same reason, scoped to the card page rather than to
   every page the popup is available on. */
.erdf-dp-page #content > .ast-container { max-width: none; padding-left: 0; padding-right: 0; }
.erdf-dp-page #primary { margin: 0; padding: 0; width: 100%; max-width: none; float: none; }
.erdf-dp-page .site-main,
.erdf-dp-page .ast-article-single { padding: 0; margin: 0; max-width: none; border: 0; background: transparent; }
.erdf-dp-page .entry-content { max-width: none; }
.erdf-dp-page .entry-content > * { margin-block: 0; max-width: none; }
.erdf-dp-page .entry-header { display: none; }


/* ---- The three base rules the accepted build's reset gives the widget ------
   The build is a whole document and sets these once for the page. In the theme
   they are scoped to the widget, so they reach the card and nothing else.
   Without the button rule every control in the card falls back to the
   browser's own face; without box-sizing the padded controls overflow their
   grid columns. `:not(.btn)` for the same reason pages.css gives: chrome.css
   owns the button tiers and a reset that out-ranks it puts a .btn in the
   default face. Nothing in the card is a .btn today.

   font-family, NOT the `font` shorthand the accepted build uses. The build's
   `button { font: inherit }` is a bare element selector that every one of its
   own button rules out-ranks. Scoped here it lands at (0,2,1) and would beat
   every .dp- button rule in the file, resetting each control's font-size to the
   card's. Every button in the card sets its own size, weight and line-height,
   so the family and the colour are the whole of what is wanted. */
.erdf-dp .dp-overlay *,
.erdf-dp .dp-overlay *::before,
.erdf-dp .dp-overlay *::after,
.erdf-dp .dp-card *,
.erdf-dp .dp-card *::before,
.erdf-dp .dp-card *::after,
.erdf-dp .dp-badge *,
.erdf-dp .dp-badge *::before,
.erdf-dp .dp-badge *::after { box-sizing: border-box; }
.erdf-dp .dp-card button:not(.btn),
.erdf-dp .dp-badge button:not(.btn) { font-family: inherit; color: inherit; }
.erdf-dp .dp-card img { max-width: 100%; display: block; }

/* .sr-only is chrome.css's, scoped there to .erdf-chrome, and inc/chrome.php
   puts that class on every body on this site. Repeated here, at the widget's
   own scope, because the failure is not subtle: without it "Giving schedule:"
   and "Play the Faithful Friends video" print on the card as visible text. */
.erdf-dp .dp-card .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}


/* ============================================================ */
/* SECTION: Donation popup (concept, scripted)                   */
/*                                                               */
/* WHAT THIS IS. Two widgets, a one-time gift and Faithful        */
/* Friends, in one two-panel card: navy photo panel on the left,  */
/* white form panel on the right. Built as a demonstration with a */
/* scripted step sequence on the right; since go-live B1 (R3) the */
/* right panel holds LGL's own forms under the card's heading.    */
/*                                                               */
/* All colours are ERDF tokens from tokens.css. Nothing here       */
/* introduces a new colour, a new typeface or a new radius.       */
/* ============================================================ */

.erdf-dp .dp-overlay{
  position:fixed; inset:0; z-index:200;
  display:flex; align-items:flex-start; justify-content:center;
  overflow-y:auto;
  padding:32px 20px 48px;
}
.erdf-dp .dp-overlay[hidden]{display:none;}
.erdf-dp .dp-scrim{
  position:fixed; inset:0; z-index:0;
  background:radial-gradient(70% 60% at 50% 45%, rgba(24,35,55,0.42) 0%, rgba(24,35,55,0.62) 100%);
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
}
.erdf-dp.dp-locked{overflow:hidden;}

.erdf-dp .dp-shell{position:relative; z-index:1; width:100%; max-width:1000px; margin:auto;}

.erdf-dp .dp-card{
  position:relative;
  display:grid; grid-template-columns:45% 55%;
  background:#fff;
  border-radius:var(--r-card);
  box-shadow:0 10px 24px rgba(20,30,48,0.20), 0 40px 90px rgba(20,30,48,0.34);
  overflow:hidden;
}

/* ---------- Close control ---------- */
.erdf-dp .dp-x{
  position:absolute; top:12px; right:12px; z-index:4;
  width:36px; height:36px; border-radius:50%;
  padding:0; /* Astra's global button padding (15px 30px) otherwise floors the 36px border-box at 62px and crushes the icon's content box to zero */
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,0.92);
  border:1px solid var(--hairline);
  color:var(--ink-navy);
  cursor:pointer;
  transition:background-color 160ms ease-out, border-color 160ms ease-out;
}
.erdf-dp .dp-x:hover,
.erdf-dp .dp-x:focus-visible{background:#fff; border-color:var(--ink-navy);}
.erdf-dp .dp-x svg{width:17px; height:17px; display:block; pointer-events:none;}

/* ---------- Left panel ---------- */
.erdf-dp .dp-panel-l{
  display:flex; flex-direction:column;
  background:var(--ink-navy);
  color:var(--warm-white);
  min-height:560px;
}
.erdf-dp .dp-photo{flex:6 1 0; min-height:200px; position:relative; overflow:hidden; background:#dfd8cc;}
/* CROP, re-measured 2026-08-26. The window was set at 50% 60% when the card
   was a different height, and the flow change moved it: at 60% the top of her
   head was outside the frame. The photograph is 3072x4080, the box is 450x302,
   so cover scales it to 598 tall and 296px of it never shows. 26% puts the
   crown of her head about 25px below the top edge with both faces whole and
   her arms around the dog still in shot. Measured against the render, not
   calculated: if the panel's proportions change again, look again. */
.erdf-dp .dp-photo img{
  width:100%; height:100%;
  object-fit:cover; object-position:50% 26%;
  filter:var(--warm-photo);
  display:block;
}
.erdf-dp .dp-photo::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:38%;
  background:linear-gradient(180deg, rgba(34,49,74,0) 0%, rgba(34,49,74,0.55) 100%);
  pointer-events:none;
}
.erdf-dp .dp-panel-text{
  flex:4 1 0;
  padding:var(--sp-3) var(--sp-4) var(--sp-4);
  display:flex; flex-direction:column; justify-content:center;
}
.erdf-dp .dp-wordmark{
  font-family:var(--font-display); font-weight:500;
  font-size:27px; line-height:1.15; letter-spacing:-0.01em;
  color:#fff; margin:0 0 10px;
}
.erdf-dp .dp-tagline{
  font-family:var(--font-body); font-weight:600;
  font-size:15px; font-variant:small-caps; letter-spacing:0.06em;
  color:var(--plate-legal); margin:0 0 var(--sp-3); line-height:1.3;
}
.erdf-dp .dp-tagline .dp-dot{color:var(--rain-yellow); padding-inline:8px;}
.erdf-dp .dp-rule{width:44px; height:3px; border-radius:2px; background:var(--rain-yellow); margin:0 0 var(--sp-3);}
.erdf-dp .dp-blurb{margin:0; font-size:16px; line-height:1.6; color:rgba(253,251,246,0.88); max-width:34ch;}

/* ---------- Left panel, Faithful Friends ----------
   The panel swaps as a whole: photograph and thank-you on the one-time gift,
   her video and her page copy on Faithful Friends. Both sets sit in the same
   markup and the hidden one takes no space. The rule is written out because
   the block-level members set their own display. */
.erdf-dp .dp-panel-l [data-var][hidden]{display:none;}

/* The video may shrink before the copy does. flex-shrink is live so a short
   viewport takes height out of the film first; the player letterboxes rather
   than cropping, and the paragraph below stays whole. */
.erdf-dp .dp-video{
  flex:0 1 auto; min-height:0;
  width:100%; aspect-ratio:16 / 9;
  position:relative; overflow:hidden;
  background:#101A2B;
}
.erdf-dp .dp-video video{
  position:absolute; inset:0;
  width:100%; height:100%;
  border:0; display:block;
  object-fit:contain; background:#101A2B;
}
.erdf-dp .dp-video-cover{
  position:absolute; inset:0; z-index:2;
  padding:0; border:0; background:#101A2B;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.erdf-dp .dp-video-cover[hidden]{display:none;}
.erdf-dp .dp-video-cover img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover; display:block;
}
.erdf-dp .dp-video-cover::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(34,49,74,0.10) 0%, rgba(34,49,74,0.42) 100%);
}
.erdf-dp .dp-video-btn{
  position:relative; z-index:1;
  width:62px; height:62px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:var(--rain-yellow); color:var(--ink-navy);
  box-shadow:0 6px 18px rgba(20,30,48,0.35);
  transition:transform 160ms ease-out, background-color 160ms ease-out;
}
.erdf-dp .dp-video-btn svg{width:26px; height:26px; display:block; margin-left:3px;}
.erdf-dp .dp-video-cover:hover .dp-video-btn,
.erdf-dp .dp-video-cover:focus-visible .dp-video-btn{background:#F7C55F; transform:scale(1.06);}
/* With the film in place the copy takes the room the photograph's flex ratio
   used to hold, and sits to the top of it rather than centred. */
.erdf-dp .dp-ff-card .dp-panel-text{flex:1 1 auto; justify-content:flex-start; min-height:0;}
.erdf-dp .dp-ff-h{
  font-family:var(--font-display); font-weight:600;
  color:#fff; margin:0 0 12px;
  letter-spacing:-0.01em;
}
.erdf-dp .dp-ff-h1{display:block; font-size:26px; line-height:1.15;}
.erdf-dp .dp-ff-h2{display:block; font-size:19px; line-height:1.25; color:rgba(255,255,255,0.92);}
.erdf-dp .dp-ff-p{
  margin:0; font-size:15px; line-height:1.6;
  color:rgba(253,251,246,0.88); max-width:36ch;
  overflow:hidden;
}

/* ---------- Right panel ---------- */
.erdf-dp .dp-panel-r{background:#fff; display:flex; flex-direction:column; min-width:0;}

/* The right padding clears the close control, which floats over this row.
   Without it the Faithful Friends label runs under the X. */
.erdf-dp .dp-top{
  display:flex; align-items:center; gap:10px;
  padding:16px 58px 16px var(--sp-3);
  border-bottom:1px solid var(--hairline);
  background:var(--blue-tint);
}
.erdf-dp .dp-lock{
  flex:0 0 auto; width:28px; height:28px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:#fff; border:1px solid rgba(46,117,182,0.35); color:var(--erdf-blue-dark);
}
.erdf-dp .dp-lock svg{width:14px; height:14px; display:block;}
.erdf-dp .dp-secure{
  font-family:var(--font-body); font-weight:600; font-size:12px;
  text-transform:uppercase; letter-spacing:0.12em; color:var(--erdf-blue-dark);
  line-height:1.2;
}
.erdf-dp .dp-ff-label{
  margin-left:auto;
  font-size:11px; font-weight:700; letter-spacing:0.10em; text-transform:uppercase;
  color:var(--ink-navy); background:var(--rain-yellow);
  border-radius:var(--r-pill); padding:4px 11px; line-height:1.3;
}
.erdf-dp .dp-ff-label[hidden]{display:none;}

/* ---------- Step body ----------
   NO STEP COUNTER (2026-08-26). The dots row and the "step N of 5" line are
   gone. A donation is four screens and the first one is the only one that
   asks for anything the gift cannot proceed without; counting them out loud
   made a short flow look like a form.

   TOP-ALIGNED (Adam, 2026-08-26). The steps used to centre in the held
   height, which was a fix for short screens leaving white space below them.
   It cost more than it bought: every screen started at a different distance
   from the secure header, so the question moved up and down the card between
   clicks. Content now starts under the header and the spare room falls below
   the buttons, where it belongs.

   The min-height holds the card at one size across all the steps, so the
   composition does not resize under the reader between questions. The two
   grouped screens sit just inside this height, so the card still never
   changes size mid-flow. */
.erdf-dp .dp-body{
  flex:1 1 auto; position:relative;
  padding:22px var(--sp-3) var(--sp-3);
  min-height:500px;
  display:flex; flex-direction:column; justify-content:flex-start;
}
/* Faithful Friends carries one question more than the one-time gift, the
   Tell Us Your Why line, and that one field is enough to push its extras
   screen past the height above. So this variant holds its own height, taken
   from its own tallest screen. Each popup is still one size from first step
   to last; the one-time card is not made taller to accommodate a question it
   never asks. */
.erdf-dp .dp-ff-card .dp-body{min-height:580px;}
.erdf-dp .dp-step{display:none;}
/* BLOCK-LEVEL UNTIL 2026-09-02, NOW A FLEX COLUMN, so the primary action can be
   pushed to the foot of the held height by `margin-top:auto` below. Adam,
   2026-09-02: the screens read as one undivided mass and the Give button wants
   to sit at the bottom of the card, away from the field above it.

   This does NOT reopen the top-alignment decision recorded on .dp-body. The
   question and its controls still start directly under the secure header and
   still sit at the same distance from it on every screen. What changes is where
   the SPARE room goes: it used to fall below the button in one lump, and now it
   falls above it, so the action lands on the same line from step to step
   instead of riding up and down with the length of the question. */
.erdf-dp .dp-step.is-active{display:flex; flex-direction:column; width:100%;}
/* The floor under the button is the preceding element's own bottom margin, so
   when a screen's content fills the height and `auto` resolves to zero the
   button still clears the field above it. */
.erdf-dp .dp-step.is-active > .dp-go{margin-top:auto;}

.erdf-dp .dp-h{
  font-family:var(--font-display); font-weight:600;
  font-size:22px; line-height:1.25; letter-spacing:-0.01em;
  color:var(--ink-navy); margin:0 0 4px;
}
.erdf-dp .dp-hint{font-size:14px; line-height:1.5; color:var(--grey-mid); margin:0 0 18px;}
/* Steps that carry no hint line under the question would otherwise put their
   first control hard against the heading. */
.erdf-dp .dp-h + .dp-label,
.erdf-dp .dp-h + .dp-field,
.erdf-dp .dp-h + .dp-two,
.erdf-dp .dp-h + .dp-radios{margin-top:16px;}
/* A variant-only block sitting between the two takes no space when it is
   hidden, but it does break the adjacency above. Without this the one-time
   card would lose the gap under "A few extras" purely because the Faithful
   Friends question is parked in the markup ahead of it. */
.erdf-dp .dp-h + [data-var][hidden] + .dp-label,
.erdf-dp .dp-h + [data-var][hidden] + .dp-field,
.erdf-dp .dp-h + [data-var][hidden] + .dp-two,
.erdf-dp .dp-h + [data-var][hidden] + .dp-radios{margin-top:16px;}
.erdf-dp .dp-label{
  display:block; font-size:12px; font-weight:700;
  letter-spacing:0.08em; text-transform:uppercase;
  color:var(--ink-navy); margin:0 0 7px;
}

/* ---------- Variant-only blocks ----------
   One markup instance serves both popups, so the pieces that differ carry
   data-var and are hidden for the other variant. The rule is explicit because
   several of these elements set their own display, which would otherwise beat
   the browser's [hidden] default. */
.erdf-dp .dp-step [data-var][hidden]{display:none;}

/* ---------- LGL's forms (go-live B1) ----------
   Every form the card can show is in the markup (LGL's embed can only be
   written while the page loads), and the tab or the variant picks one. An
   inactive form is hidden by visibility, not removed from layout, so the frame
   inside it keeps the card's width and LGL sizes it correctly before it is
   ever shown. It takes no space and cannot be reached by keyboard or screen
   reader while hidden. No colour, type or spacing value is introduced here. */
.erdf-dp .dp-lgl{position:relative;}
.erdf-dp .dp-form{width:100%;}
.erdf-dp .dp-form iframe{display:block; width:100%; border:0;}
.erdf-dp .dp-form[hidden]{
  display:block; position:absolute; left:0; right:0; top:0;
  height:0; overflow:hidden; visibility:hidden;
}

/* PASS 2 (2026-11-08), measured on the real Give Once form.
   1. LGL's own band. Every LGL form page pads its body 100px below the form
      (body{padding-bottom:100px} in LGL's form stylesheet), and LGL's resizer
      sizes the frame to include it, so 100px of empty white sat under every
      step. The container clips exactly that band. Only once the resizer has
      sized the frame (it writes an inline height; before that the frame has
      only its height attribute, which may not include the band), so nothing
      of the form itself is ever cut. To undo: delete these two rules.
   REMOVED 2026-11-20 (Juli could not reach Verify on her iPad). Since the gift
      forms carry the reCAPTCHA V2 box (2026-11-16), Google's image challenge
      opens beside the box and ends 46px above the frame's bottom, inside the
      clipped band: its Verify bar was cut by 54px on laptops and tablets
      (measured at 1440x900, 1280x720, 1180x820, 820x1180; phones place the
      challenge elsewhere and were not affected). The band shows again as white
      under the form. Measurements and renders:
      projects/ellies-rainy-day-fund/tmp/golive-2026-11-20/ipad/. Do not
      restore the crop while a form can open a CAPTCHA challenge. */
/* 2. Scroll anchoring off where LGL's form grows. LGL scrolls the new step
      into view, then its frame grows; the browser's scroll anchoring "kept
      the place" by moving the page down by the growth (348px from step 1 to
      2), which on phones left the step's heading and its required fields
      above the screen. Off on the popup's scroller and on the two giving
      pages' document (body carries .erdf-dp-page there); nothing else on
      either surface relies on it. To undo: delete this rule. */
.erdf-dp .dp-overlay,
.erdf-dp.erdf-dp-page{overflow-anchor:none;}

/* frequency tabs */
.erdf-dp .dp-tabs{
  display:grid; grid-template-columns:1fr 1fr; gap:4px;
  background:#F1EFE8; border-radius:var(--r-pill); padding:4px; margin:0 0 26px;
}
.erdf-dp .dp-tab{
  border:0; background:transparent; cursor:pointer;
  border-radius:var(--r-pill); padding:10px 8px;
  font-size:15px; font-weight:600; color:var(--charcoal); line-height:1.2;
  transition:background-color 160ms ease-out, color 160ms ease-out, box-shadow 160ms ease-out;
}
.erdf-dp .dp-tab[aria-selected="true"]{
  background:#fff; color:var(--ink-navy);
  box-shadow:0 1px 2px rgba(34,49,74,0.10), 0 2px 8px rgba(34,49,74,0.10);
}

/* Locked schedule, Faithful Friends only. Her live Faithful Friends form has
   no one-time option: the schedule is fixed and shown as a static label. The
   pill borrows the tab track's own grey so it reads as a setting already made
   rather than a control waiting to be pressed. */
.erdf-dp .dp-freq-row{margin:0 0 26px;}
.erdf-dp .dp-freq-lock{
  display:inline-flex; align-items:center; gap:8px;
  background:#F1EFE8; border:1px solid var(--hairline);
  border-radius:var(--r-pill); padding:9px 16px;
  font-size:15px; font-weight:700; color:var(--ink-navy); line-height:1.2;
}
.erdf-dp .dp-freq-lock svg{width:15px; height:15px; display:block; color:var(--erdf-blue-dark);}

/* amount grid */
.erdf-dp .dp-amounts{display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:0 0 12px;}
.erdf-dp .dp-amt{
  border:1.5px solid var(--hairline); background:#fff; cursor:pointer;
  border-radius:var(--r-soft); padding:14px 4px;
  font-size:17px; font-weight:700; color:var(--ink-navy); line-height:1.2;
  transition:border-color 160ms ease-out, background-color 160ms ease-out, box-shadow 160ms ease-out;
}
.erdf-dp .dp-amt:hover{border-color:var(--erdf-blue);}
.erdf-dp .dp-amt.is-on{
  border-color:var(--rain-yellow); background:#FEF6E4;
  box-shadow:inset 0 0 0 1px var(--rain-yellow);
}
.erdf-dp .dp-other-row{margin:0 0 26px;}
.erdf-dp .dp-other{
  width:100%; border:1.5px solid var(--hairline); background:#fff; cursor:pointer;
  border-radius:var(--r-soft); padding:11px 4px;
  font-size:15px; font-weight:600; color:var(--ink-navy); line-height:1.2;
  transition:border-color 160ms ease-out, background-color 160ms ease-out;
}
.erdf-dp .dp-other:hover{border-color:var(--erdf-blue);}
.erdf-dp .dp-other.is-on{border-color:var(--rain-yellow); background:#FEF6E4;}
.erdf-dp .dp-custom{display:none; margin-top:8px; position:relative;}
.erdf-dp .dp-custom.is-open{display:block;}
.erdf-dp .dp-custom .dp-cur{
  position:absolute; left:14px; top:50%; transform:translateY(-50%);
  font-size:17px; font-weight:700; color:var(--ink-navy); pointer-events:none;
}
.erdf-dp .dp-custom input{padding-left:30px; font-weight:700;}

/* fields */
.erdf-dp .dp-field{margin:0 0 18px;}
.erdf-dp .dp-input,
.erdf-dp .dp-select,
.erdf-dp .dp-textarea{
  width:100%;
  border:1.5px solid var(--hairline); border-radius:var(--r-soft);
  background:#fff; color:var(--charcoal);
  font-family:var(--font-body); font-size:16px; line-height:1.4;
  padding:12px 14px;
  transition:border-color 160ms ease-out, box-shadow 160ms ease-out;
}
.erdf-dp .dp-textarea{min-height:84px; resize:vertical;}
.erdf-dp .dp-input:focus,
.erdf-dp .dp-select:focus,
.erdf-dp .dp-textarea:focus{
  outline:none; border-color:var(--erdf-blue);
  box-shadow:0 0 0 3px rgba(46,117,182,0.18);
}
.erdf-dp .dp-select{
  appearance:none; -webkit-appearance:none;
  background-image:linear-gradient(45deg,transparent 50%,var(--ink-navy) 50%),linear-gradient(135deg,var(--ink-navy) 50%,transparent 50%);
  background-position:calc(100% - 19px) 22px, calc(100% - 13px) 22px;
  background-size:6px 6px, 6px 6px;
  background-repeat:no-repeat;
  padding-right:38px;
}
.erdf-dp .dp-two{display:grid; grid-template-columns:1fr 1fr; gap:10px;}
.erdf-dp .dp-three{display:grid; grid-template-columns:2fr 1fr 1fr; gap:10px;}

/* The email now sits on the first screen, under the amount, because a gift
   with an address attached is a gift we can thank and receipt. It is the one
   thing the first screen will not let pass. The nudge is a quiet blue line
   under the field and the field's own border picks up the same blue: no red,
   no shake, nothing that reads as a telling-off. */
.erdf-dp .dp-email-field{margin-top:2px;}
.erdf-dp .dp-nudge{
  margin:7px 0 0; font-size:13px; line-height:1.45;
  color:var(--erdf-blue-dark);
}
.erdf-dp .dp-nudge[hidden]{display:none;}
.erdf-dp .dp-email-field.is-nudged .dp-input{border-color:var(--erdf-blue);}

/* ---------- Grouped catch-up screens ----------
   Two screens each carry several questions, so their rows run tighter than a
   single-question step needs. A field sitting inside a two- or three-up row
   drops its own bottom margin: the grid gap already separates the columns, and
   the margin would only push the row that follows further down. */
.erdf-dp .dp-group .dp-field,
.erdf-dp .dp-group .dp-two,
.erdf-dp .dp-group .dp-three,
.erdf-dp .dp-group .dp-radios{margin-bottom:10px;}
.erdf-dp .dp-group .dp-two .dp-field,
.erdf-dp .dp-group .dp-three .dp-field{margin-bottom:0;}
.erdf-dp .dp-group .dp-label{margin-bottom:5px;}
.erdf-dp .dp-group .dp-textarea{min-height:64px;}
.erdf-dp .dp-group .dp-go{margin-top:8px;}

/* buttons */
.erdf-dp .dp-go{
  width:100%; border:0; cursor:pointer;
  border-radius:var(--r-pill);
  background:var(--rain-yellow); color:var(--ink-navy);
  font-family:var(--font-body); font-size:18px; font-weight:800; letter-spacing:0.01em;
  padding:15px 20px; line-height:1.2;
  box-shadow:0 2px 4px rgba(34,49,74,0.10), 0 8px 20px rgba(34,49,74,0.14);
  transition:transform 140ms ease-out, box-shadow 140ms ease-out, background-color 140ms ease-out;
}
.erdf-dp .dp-go:hover{background:#F7C55F;}
.erdf-dp .dp-go:active{transform:translateY(1px);}
.erdf-dp .dp-go[disabled]{
  background:#EDE9DF; color:#9A968C; cursor:not-allowed; box-shadow:none;
}
.erdf-dp .dp-wallet{
  width:100%; border:0; cursor:pointer;
  border-radius:var(--r-soft);
  background:var(--ink-navy); color:#fff;
  display:flex; align-items:center; justify-content:center; gap:9px;
  font-size:16px; font-weight:700; padding:13px 16px; line-height:1.2;
  transition:background-color 160ms ease-out;
}
.erdf-dp .dp-wallet:hover{background:#2C3F5E;}
.erdf-dp .dp-wallet svg{width:19px; height:19px; display:block;}
.erdf-dp .dp-or{
  display:flex; align-items:center; gap:12px;
  margin:16px 0; color:var(--grey-mid); font-size:12px;
  letter-spacing:0.10em; text-transform:uppercase;
}
.erdf-dp .dp-or::before,
.erdf-dp .dp-or::after{content:""; flex:1 1 auto; height:1px; background:var(--hairline);}

.erdf-dp .dp-foot{display:flex; align-items:center; gap:16px; margin-top:14px;}
.erdf-dp .dp-back{
  border:0; background:transparent; cursor:pointer; padding:6px 2px;
  font-size:14px; font-weight:600; color:var(--erdf-blue-dark);
  display:inline-flex; align-items:center; gap:6px; line-height:1.2;
}
.erdf-dp .dp-back:hover{text-decoration:underline;}
.erdf-dp .dp-back svg{width:14px; height:14px;}
.erdf-dp .dp-skip{
  margin-left:auto;
  border:0; background:transparent; cursor:pointer; padding:6px 2px;
  font-size:14px; font-weight:600; color:var(--grey-mid);
  text-decoration:underline; text-underline-offset:3px; line-height:1.2;
}
.erdf-dp .dp-skip:hover{color:var(--ink-navy);}

.erdf-dp .dp-demo-note{
  margin:12px 0 0; text-align:center;
  font-size:12.5px; line-height:1.5; color:var(--grey-mid);
}

/* radio row */
.erdf-dp .dp-radios{display:flex; gap:10px; margin:0 0 16px;}
.erdf-dp .dp-radio{
  flex:1 1 0; cursor:pointer;
  border:1.5px solid var(--hairline); border-radius:var(--r-soft);
  padding:12px 10px; font-size:15px; font-weight:600; color:var(--ink-navy);
  text-align:center; line-height:1.2; background:#fff;
  transition:border-color 160ms ease-out, background-color 160ms ease-out;
}
.erdf-dp .dp-radio input{position:absolute; opacity:0; pointer-events:none;}
.erdf-dp .dp-radio.is-on{border-color:var(--rain-yellow); background:#FEF6E4;}

/* thank you */
.erdf-dp .dp-done{text-align:center; padding:34px 6px 10px;}
.erdf-dp .dp-done-mark{
  width:62px; height:62px; margin:0 auto 18px;
  border-radius:50%; background:#FEF6E4;
  display:flex; align-items:center; justify-content:center;
  color:var(--accent-gold);
}
.erdf-dp .dp-done-mark svg{width:30px; height:30px;}
.erdf-dp .dp-done .dp-h{font-size:26px;}
.erdf-dp .dp-done-tag{
  font-weight:600; font-size:15px; font-variant:small-caps; letter-spacing:0.06em;
  color:var(--ink-navy); margin:16px 0 0; line-height:1.3;
}
.erdf-dp .dp-done-tag .dp-dot{color:var(--accent-gold); padding-inline:8px;}
.erdf-dp .dp-done-note{font-size:13px; line-height:1.55; color:var(--grey-mid); margin:18px 0 0;}

/* ---------- Reminder panel, shown over the form when a visitor
     closes early with an amount picked and no email ---------- */
.erdf-dp .dp-remind{
  position:absolute; inset:0; z-index:3;
  background:#fff;   /* opaque: at 0.97 the step underneath ghosted through */
  display:none; flex-direction:column; justify-content:flex-start;
  padding:18px var(--sp-3) var(--sp-3);
}
.erdf-dp .dp-remind.is-open{display:flex;}
.erdf-dp .dp-remind .dp-h{font-size:20px;}
.erdf-dp .dp-remind-acts{display:flex; gap:10px; margin-top:6px; flex-wrap:wrap;}
.erdf-dp .dp-remind-acts .dp-go{width:auto; flex:1 1 190px; font-size:16px; padding:13px 18px;}
.erdf-dp .dp-quiet{
  flex:0 0 auto; border:1.5px solid var(--hairline); background:#fff; cursor:pointer;
  border-radius:var(--r-pill); padding:13px 20px;
  font-size:16px; font-weight:600; color:var(--charcoal); line-height:1.2;
  transition:border-color 160ms ease-out;
}
.erdf-dp .dp-quiet:hover{border-color:var(--ink-navy);}

/* ---------- Return badge ---------- */
.erdf-dp .dp-badge{
  position:fixed; right:14px; bottom:52px; z-index:150;
  width:270px; max-width:calc(100vw - 28px);
  background:#fff; color:var(--charcoal);
  border:1px solid var(--hairline); border-top:3px solid var(--rain-yellow);
  border-radius:var(--r-card);
  box-shadow:0 4px 10px rgba(34,49,74,0.10), 0 18px 40px rgba(34,49,74,0.20);
  padding:16px 16px 14px;
}
.erdf-dp .dp-badge[hidden]{display:none;}
.erdf-dp .dp-badge-line{
  margin:0 0 12px; font-size:16px; font-weight:700; line-height:1.35; color:var(--ink-navy);
}
.erdf-dp .dp-badge-acts{display:flex; gap:8px;}
.erdf-dp .dp-badge-acts button{
  cursor:pointer; border-radius:var(--r-pill); line-height:1.2;
  font-size:14px; font-weight:700; padding:9px 14px;
}
.erdf-dp .dp-badge-yes{border:0; background:var(--rain-yellow); color:var(--ink-navy);}
.erdf-dp .dp-badge-yes:hover{background:#F7C55F;}
.erdf-dp .dp-badge-no{border:1px solid var(--hairline); background:#fff; color:var(--grey-mid); font-weight:600;}
.erdf-dp .dp-badge-no:hover{border-color:var(--ink-navy); color:var(--ink-navy);}

/* ---------- Narrow widths: the panels stack ---------- */
@media (max-width:860px){
  .erdf-dp .dp-overlay{padding:14px 12px 32px;}
  .erdf-dp .dp-card{grid-template-columns:1fr; max-width:560px; margin:0 auto;}
  /* THE FORM COMES FIRST ON A PHONE (Adam, 2026-09-02: "the right side with
     donation should be in the top, not the images. You should see the donation
     form first?"). Stacked in DOM order the photograph and the navy panel filled
     the screen and the amount buttons opened below the fold, so the one thing
     the card exists to ask went unseen until the reader scrolled. Order only:
     the DOM keeps the picture first, which is the right reading order on the
     desktop two-column layout and is what the close control is positioned
     against. SINCE 2026-11-16 the photograph sits above the form (Juli's
     request, Adam's yes; the block at the end of this file); the form still
     comes before the navy panel. */
  .erdf-dp .dp-panel-r{order:-1;}
  .erdf-dp .dp-panel-l{min-height:0;}
  /* CROP, 2026-08-26. This was a 150px strip, dropping to 126px under 420px,
     and both were letterboxes: at 560 wide a 150px band cut the top of her
     head off, and at 350 wide it cut the dog's face off the bottom. A ratio
     rather than a height means the band grows with the card, so the same
     window holds at every width and the crop keeps both faces whole. The
     position is the one the wide layout uses; no second value to maintain. */
  .erdf-dp .dp-photo{flex:0 0 auto; height:auto; aspect-ratio:16 / 9; min-height:0;}
  .erdf-dp .dp-panel-text{flex:0 0 auto; padding:var(--sp-3);}
  .erdf-dp .dp-ff-card .dp-panel-text{flex:0 0 auto;}
  /* Stacked, the film runs the full width of the card at its own ratio and the
     copy sits under it. Nothing competes for height here, so the video holds
     16:9 instead of shrinking. */
  .erdf-dp .dp-video{flex:0 0 auto;}
  .erdf-dp .dp-wordmark{font-size:22px;}
  .erdf-dp .dp-tagline{margin-bottom:14px; font-size:14px;}
  .erdf-dp .dp-rule{margin-bottom:14px;}
  .erdf-dp .dp-blurb{font-size:15px; max-width:none;}
  .erdf-dp .dp-ff-h1{font-size:23px;}
  .erdf-dp .dp-ff-h2{font-size:17px;}
  .erdf-dp .dp-ff-p{max-width:none;}
  /* Stacked, the card is as tall as its content and the held height goes,
     for both variants. */
  .erdf-dp .dp-body,
  .erdf-dp .dp-ff-card .dp-body{min-height:0; padding:16px var(--sp-2) var(--sp-3);}
  /* The right padding keeps its clearance for the close control, as on the
     wide card; dropping it put the Faithful Friends label under the X
     (design-research R3 fix 4, 2026-11-07). */
  .erdf-dp .dp-top{padding:14px 58px 14px var(--sp-2);}
}
@media (max-width:420px){
  .erdf-dp .dp-overlay{padding:10px 8px 26px;}
  /* R3 fix 4: at the narrowest widths the label drops to its own row rather
     than squeeze against the close control. */
  .erdf-dp .dp-top{flex-wrap:wrap; row-gap:var(--sp-1);}
  /* R3 fix 1b: the form row alone runs 8px further into the card body each
     side, so LGL's frame clears the 304px CAPTCHA. The heading and the tabs
     keep their 16px inset. (design-research wrote the rule on .dp-lgl, which
     in the built markup also wraps the heading and the tabs; applied to the
     form containers inside it to keep that stated result.) */
  .erdf-dp .dp-lgl > .dp-form{width:auto; margin-left:calc(var(--sp-1) * -1); margin-right:calc(var(--sp-1) * -1);}
  .erdf-dp .dp-amounts{grid-template-columns:repeat(2,1fr);}
  .erdf-dp .dp-h{font-size:20px;}
  /* City takes the full row at this width, and State and ZIP share the next
     one. Three columns here would leave the city field too narrow to read. */
  .erdf-dp .dp-three{grid-template-columns:1fr 1fr;}
  .erdf-dp .dp-three > :first-child{grid-column:1 / -1;}
  .erdf-dp .dp-badge{width:auto; left:8px; right:8px; bottom:50px;}
}

/* ---------- Wide card, tall form: the left panel pins, it does not stretch
   (design-research R3 fix 2, 2026-11-07). LGL's form makes the right panel
   far taller than the demonstration did. Stretched, the photograph lost its
   measured crop and the Faithful Friends panel became a long empty navy
   column. Now the panel keeps its natural height over a navy card, the
   photograph keeps the 3:2 box its 50% 26% crop was measured in, and on a
   screen tall enough to hold it the panel follows the donor down the form.
   overflow:clip, not hidden: hidden makes the card a scroll container and a
   sticky child would never move; browsers without clip keep the hidden above. */
@media (min-width:861px){
  .erdf-dp .dp-card{background:var(--ink-navy); overflow:clip;}
  .erdf-dp .dp-photo{flex:0 0 auto; aspect-ratio:3 / 2;}
  .erdf-dp .dp-panel-text{flex:1 1 auto;}
}
@media (min-width:861px) and (min-height:760px){
  .erdf-dp .dp-panel-l{align-self:start; position:sticky; top:var(--sp-3);}
  /* On the two giving pages the site header (.hdr, position:sticky; top:0,
     chrome.css) stays on screen, so the panel pins below it. In the popup
     the scrim covers the header and the overlay is the scroller. */
  .erdf-dp-page .dp-panel-l{top:calc(var(--header-h) + var(--sp-3));}
  /* PASS 2 (2026-11-08): in the popup the panel pins flush with the top of
     the screen. Sticky offsets count from inside the overlay's 32px top
     padding, so the 24px above pinned the panel 56px down the screen, which
     is lower than the card's own top (32px) whenever the card is taller than
     the screen: even at rest the photo sat 24px down the card, under a navy
     strip, with its rounded corner gone. -32px cancels the overlay's padding
     (the 32px in .dp-overlay above): at rest the panel sits at the card's
     top and the card clips its corner; scrolled, it pins at the screen's top
     edge with nothing above it. To undo: delete this rule. */
  .erdf-dp .dp-overlay .dp-panel-l{top:-32px;}
}
/* ============================================================ */
/* SECTION: Donation page shell                                  */
/*                                                               */
/* The page version of the widget. Same card, same steps, same    */
/* four screens, standing in the page instead of over a scrim:    */
/* no backdrop, no dimming and no fixed positioning except the    */
/* return badge, which is fixed by design.                        */
/*                                                               */
/* .dl-alt is carried with the rest of the block and no page      */
/* emits it: on the accepted build it is the link to the live-form */
/* page, and a class T page may carry no sideways link at all.    */
/* Kept rather than trimmed so the block still diffs clean against */
/* the accepted build.                                            */
/* ============================================================ */

.erdf-dp .dl-sec{
  padding:var(--sp-8) 0 var(--sp-12);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(234,243,250,0.9) 0%, rgba(234,243,250,0) 70%),
    var(--warm-white);
}
.erdf-dp .dl-inner{
  width:100%; max-width:1000px;
  margin:0 auto;
  padding:0 var(--gutter);
}
.erdf-dp .dl-head{text-align:center; margin:0 0 var(--sp-4);}
.erdf-dp .dl-eyebrow{
  font-size:13px; font-weight:700; font-variant:small-caps;
  letter-spacing:0.10em; color:var(--erdf-blue-dark);
  margin:0 0 8px; line-height:1.3;
}
.erdf-dp .dl-eyebrow .dl-dot{color:var(--rain-yellow); padding-inline:7px;}
.erdf-dp .dl-h1{
  font-family:var(--font-display); font-weight:700;
  font-size:clamp(2rem, 1.4rem + 2.2vw, 3rem);
  line-height:1.14; letter-spacing:-0.01em;
  color:var(--ink-navy); margin:0;
  font-variation-settings:'opsz' 90;
}

/* ---------- Note under the card, and the way to the live form ---------- */
.erdf-dp .dl-note{
  margin:18px auto 0; max-width:760px;
  text-align:center;
  font-size:12.5px; line-height:1.55;
  color:rgba(253,251,246,0.92);
  background:rgba(24,35,55,0.86);
  border-radius:var(--r-soft);
  padding:10px 18px;
}
.erdf-dp .dl-alt{margin:10px 0 0; text-align:center; font-size:12.5px; line-height:1.5;}
.erdf-dp .dl-alt a{color:var(--grey-mid); text-decoration:underline; text-underline-offset:3px;}
.erdf-dp .dl-alt a:hover,
.erdf-dp .dl-alt a:focus-visible{color:var(--ink-navy);}

/* ---------- The card, in the page rather than over it ----------
   The popup's shadow is built to lift the card off a dimmed page. In the
   page it is the page's own lift instead. Two classes, so this wins over
   .dp-card whichever order the two blocks end up in. */
.erdf-dp .dp-card.dp-in-page{box-shadow:var(--shadow-lift);}

/* ---------- Page marker ---------- */
.erdf-dp .draftmark{
  position:fixed; z-index:90; right:12px; bottom:12px;
  font-size:11px; letter-spacing:0.06em; font-variant:small-caps;
  color:rgba(59,59,59,0.42); background:rgba(253,251,246,0.72);
  border:1px solid rgba(59,59,59,0.16); border-radius:var(--r-pill);
  padding:4px 12px;
  transition:color 180ms ease-out, border-color 180ms ease-out, background-color 180ms ease-out;
}
.erdf-dp .draftmark:hover,
.erdf-dp .draftmark:focus{color:var(--ink-navy); border-color:var(--ink-navy); background:var(--warm-white);}

@media (max-width:860px){
  .erdf-dp .dl-sec{padding:var(--sp-6) 0 var(--sp-8);}
  .erdf-dp .dl-note{max-width:560px;}
}
/* R3 fix 1a (design-research, 2026-11-07): the page gutter around the card
   drops to 8px a side on phones, as the popup's overlay already does, so
   LGL's form frame clears the 304px CAPTCHA. After .dl-inner above, so it wins. */
@media (max-width:420px){
  .erdf-dp-page .dl-inner{padding-left:var(--sp-1); padding-right:var(--sp-1);}
}

/* 2026-11-09 (Adam): BETWEEN PAY AND THE THANK-YOU PAGE. LGL sends the donor to
   the confirmation page inside the card's frame; that page's first script
   (catchup-head.js) moves the whole window there and marks the frame's holder
   .erdf-moving. While the window changes page, the holder shows a quiet spinner
   in place of the frame, which would otherwise sit empty and flicker. Not
   scoped to .erdf-dp: the holder is whatever element LGL's embed put the frame
   in. To undo: delete these rules (the class then changes nothing). */
.erdf-moving{position:relative; min-height:200px;}
.erdf-moving > iframe{visibility:hidden !important;}
.erdf-moving::after{
  content:""; position:absolute; left:50%; top:80px; width:36px; height:36px; margin-left:-18px;
  border-radius:50%; border:3px solid rgba(34,49,74,.14); border-top-color:var(--ink-navy, #22314A);
  animation:erdf-moving-spin .9s linear infinite;
}
@keyframes erdf-moving-spin{to{transform:rotate(360deg);}}
@media (prefers-reduced-motion:reduce){.erdf-moving::after{animation-duration:2.7s;}}

/* 2026-11-09 (Adam): THE FOLLOW-UP STEP. Once the gift is paid the card shows
   #dpAfter in place of the gift (donate-popup.js, ERDF_DP_AFTER_GIFT): Juli's
   "Thank you!" and paragraph, LGL's follow-up form in a frame, and "Skip this
   step". The frame is sized by LGL's own resizer; its slot clips the 100px
   band LGL pads under every form, as .dp-form does for the gift. To undo:
   delete these rules and the step's markup in inc/donate-popup.php. */
/* Focus is moved to the step when it opens, so a screen reader starts at its
   heading; it is not a control, so it draws no ring (.erdf-lp/.erdf-pru
   :focus-visible would). */
.erdf-dp .dp-step.dp-after:focus,
.erdf-dp .dp-step.dp-after:focus-visible{outline:none; box-shadow:none;}
.erdf-dp .dp-after-slot{position:relative; overflow:hidden; margin-top:4px;}
.erdf-dp .dp-after-frame{display:block; width:100%; height:900px; border:0; background:transparent;}
.erdf-dp .dp-after-frame[data-dp-sized]{margin-bottom:-100px;}
.erdf-dp .dp-skip{
  align-self:center; margin-top:var(--sp-2);
  font-size:14px; font-weight:600; color:var(--ink-navy);
  text-decoration:underline; text-underline-offset:3px;
}
@media (max-width:420px){
  /* As the gift's form row (R3 fix 1b): 8px further into the card each side,
     so LGL's frame clears the 304px CAPTCHA at the end of the form. */
  .erdf-dp .dp-after > .dp-after-slot{margin-left:calc(var(--sp-1) * -1); margin-right:calc(var(--sp-1) * -1);}
}

/* 2026-11-09: ONE "MONTHLY", NOT TWO. Faithful Friends Monthly (2026 site) shows
   its own locked schedule, "Monthly", directly above its amounts (LGL draws it
   for a recurring-only form and offers no way to hide it short of making the
   form one-time). With it, the card's own Monthly label above the form said
   the same thing twice, so the card's label stands down while the form is
   LGL's. To undo: delete this rule. */
.erdf-dp .dp-lgl .dp-freq-row{display:none;}

/* 2026-11-09 (Adam): NO STRETCHED CARD WHILE LGL LOADS. LGL's embed builds its
   frame with a height attribute for its whole form, every step stacked (1,481px
   for Give Once, 1,509px for Faithful Friends Monthly, read 2026-11-09); its
   resizer brings it to the step's own height (410 to 447px at 1440) about a
   second later. Until then the card stood about 1,700px tall on /donate/ and
   /ways-to-help/faithful-friends/. Until the resizer writes its inline height,
   and for the first 8 s at most (donate-popup.js then adds .dp-uncap, so a
   resizer that never reports cannot leave a form cut short), the frame takes
   about one step's visible height: 300px, against the settled 310px (Give Once)
   and 347px (Faithful Friends) on the two pages and 256 to 310px in the popup,
   once the sized frame's 100px band is clipped, measured at 1440 and 390. A CSS height outranks the height attribute; the
   resizer's inline height outranks this. To undo: delete this rule. */
.erdf-dp .dp-form:not(.dp-uncap) iframe:not([style*="height"]){height:300px;}

/* 2026-11-09: THE POPUP'S FORMS LOAD WHEN IT OPENS (donate-popup.js,
   loadForms). Until LGL reports the form's size, the same quiet spinner as
   between Pay and the next page stands in for it, in place of an empty box. */
/* :not([hidden]): a form waiting behind the other tab stays out of the layout. */
.erdf-dp .dp-form.dp-loading:not([hidden]){position:relative; min-height:200px;}
.erdf-dp .dp-form.dp-loading > iframe{visibility:hidden;}
.erdf-dp .dp-form.dp-loading:not([hidden])::after{
  content:""; position:absolute; left:50%; top:80px; width:36px; height:36px; margin-left:-18px;
  border-radius:50%; border:3px solid rgba(34,49,74,.14); border-top-color:var(--ink-navy, #22314A);
  animation:erdf-moving-spin .9s linear infinite;
}
@media (prefers-reduced-motion:reduce){.erdf-dp .dp-form.dp-loading::after{animation-duration:2.7s;}}

/* 2026-11-15 (Juli, 2026-11-13): THE FOLLOW-UP STEP'S LEFT PANEL. On that step
   (.dp-card.is-after, set by donate-popup.js showAfter) the panel shows Kash and
   his girl with Juli's caption under the lockup, in place of the gift's
   photograph or the Faithful Friends film, and in place of the blurb or the
   Faithful Friends copy. Both variants. The photograph is the home page's copy
   (inc/donate-popup.php prints it only when it exists, and data-after-photo
   says so); it takes .dp-photo's box at every width. To undo: delete these
   rules and the two elements. */
.erdf-dp .dp-photo.dp-after-photo,
.erdf-dp .dp-blurb.dp-after-cap{display:none;}
.erdf-dp .dp-card.is-after[data-after-photo] .dp-photo:not(.dp-after-photo),
.erdf-dp .dp-card.is-after[data-after-photo] .dp-video,
.erdf-dp .dp-card.is-after[data-after-photo] .dp-blurb:not(.dp-after-cap),
.erdf-dp .dp-card.is-after[data-after-photo] .dp-ff-copy{display:none;}
.erdf-dp .dp-card.is-after .dp-photo.dp-after-photo,
.erdf-dp .dp-card.is-after .dp-blurb.dp-after-cap{display:block;}
.erdf-dp .dp-after-photo img{object-position:55% 40%;}
/* The Faithful Friends card tops its text under the film; under the
   photograph it centres it, as the one-time card does. */
.erdf-dp .dp-ff-card.is-after .dp-panel-text{justify-content:center;}

/* Juli's question (2026-11-13), the follow-up step's only heading since
   2026-11-15 ("Thank you!" and her paragraph removed at her request). It keeps
   .dp-h's look; this only gives it room above the form. */
.erdf-dp .dp-after-ask{margin:0 0 14px;}

/* 2026-11-15 (Adam): BACK FROM A GIFT, BEFORE THE CARD IS OPEN. inc/donate-popup.php
   marks <html> from the first paint when the thank-you page has just sent the
   window back here; donate-popup.js takes the marks off once the card shows
   its follow-up step. In the popup: the card's own scrim and spinner, so the
   page is seen dimmed, as it was a moment ago, rather than bare. On the two
   pages carrying the card: the gift step stays out of sight. Never a trap:
   clicks go through, and both stand-ins go by themselves after 6 s. */
html.dp-after-popup::before,
html.dp-after-popup::after{content:""; position:fixed; pointer-events:none; z-index:199;
  animation:dp-pending-out 0s linear 6s forwards;}
html.dp-after-popup::before{inset:0;
  background:radial-gradient(70% 60% at 50% 45%, rgba(24,35,55,0.42) 0%, rgba(24,35,55,0.62) 100%);}
html.dp-after-popup::after{left:50%; top:45%; width:36px; height:36px; margin-left:-18px;
  border-radius:50%; border:3px solid rgba(253,251,246,.3); border-top-color:#FDFBF6;
  animation:erdf-moving-spin .9s linear infinite, dp-pending-out 0s linear 6s forwards;}
html.dp-after-pending .erdf-dp .dp-in-page .dp-step.dp-lgl{visibility:hidden;
  animation:dp-pending-show 0s linear 6s forwards;}
@keyframes dp-pending-out{to{visibility:hidden; opacity:0;}}
@keyframes dp-pending-show{to{visibility:visible;}}

/* 2026-11-16 (Juli's form test, Adam's yes): THE PHOTOGRAPH LEADS ON A PHONE.
   Juli asked for the photo at the top of the form on mobile ("an engaging photo
   with a couple lines of text are a good intro to the form"). This overturns
   the form-first order of 2026-09-02 (the narrow-widths block above) in part:
   the gift's photograph, or the Faithful Friends film, now opens the card; the
   form follows, its own heading and subtext being the two lines of
   introduction; the navy panel with the lockup stays below the form. The left
   panel's box steps aside (display:contents) so its photograph and its text
   can sit either side of the form, and the text keeps the navy the panel gave
   it. The photograph is cropped a little shorter than before (2:1, was 16:9)
   so the amounts and Next still open on the first screen of a 390x844 phone.
   The follow-up step's photograph (Kash and his girl) leads the same way.
   Narrow widths only (860px and under); the two-column card is unchanged. To
   undo: delete these rules. */
@media (max-width:860px){
  .erdf-dp .dp-panel-l{display:contents;}
  .erdf-dp .dp-panel-l > .dp-photo,
  .erdf-dp .dp-panel-l > .dp-video{order:-2;}
  .erdf-dp .dp-panel-r{order:-1;}
  .erdf-dp .dp-panel-text{order:0; background:var(--ink-navy);}
  .erdf-dp .dp-photo{aspect-ratio:2 / 1;}
}

/* 2026-11-20 (Juli via Adam): /GIVING-TUESDAY/. The same card in page mode with
   Kathy's Giving Tuesday form (inc/donate-popup.php, variant 'gt', class
   .dp-gt-card). Everything else it takes from the rules above, including the
   photograph-first order on phones.
   1. 2026-11-20 (Adam): the section heading is plain text, as "Donate" is on
      /donate/ (.dl-h1, no rule here). The #GIVINGTUESDAY wordmark that stood
      there, and its two rules, are gone: it came from an image sent by mistake.
      Kathy's own 2026 logo (assets/img/givingtuesday-2026-logo.png, 600x255,
      transparent, trimmed from her LGL form's file) sits at the top of the
      right panel, centred, at the size her form shows it: 137px wide (her
      178x99 file less its own padding), 2x and more from a 600px source.
   2. The navy panel carries Kathy's words from the top of her form in place of
      the blurb, set as the Faithful Friends copy is (.dp-ff-h, .dp-ff-p): her
      first line as the heading, then her line with only its first sentence
      bold and white, as her form sets it. (2026-11-20: the two paragraphs from
      the mistaken image and the all-bold .dp-gt-lead are gone.)
   3. The right panel's heading ("Who will you save today?") stands under the
      logo and above Kathy's form with the follow-up step's spacing
      (.dp-after-ask), since no subtext or tabs sit between them. Centred under
      the logo (Adam, 2026-11-20); on this card only, and not the follow-up
      step's heading (.dp-after-ask), which keeps its left edge.
   4. On the follow-up step her copy gives way to Kash's caption, as the blurb
      does (the 2026-11-15 block).
   5. The photograph is Hiccup asleep on his mom (Adam, 2026-11-20;
      inc/donate-popup.php, .dp-gt-photo), 1200x1600 portrait in the 3:2 box
      (2:1 at 860px and under), so the box always shows the full width and a
      band of the height. FOCUS MEASURED on Juli's 3000x4000 original: his head,
      ears to chin, runs y 360 to 1260; her face, hairline to chin, y 540 to
      1600. Both stay whole from 4% to 14% in the 2:1 box and from 0% to 18% in
      the 3:2 box; 9% puts about 130px of the original above his ears and below
      her chin in the tighter 2:1 box. The follow-up step swaps it for Kash, as
      it swaps the girl and her dog.
   To undo: delete these rules and the 'gt' branches in inc/donate-popup.php. */
.erdf-dp .dp-gt-logo{display:block; width:137px; max-width:100%; height:auto; margin:0 auto 16px;}
.erdf-dp .dp-gt-h{
  font-family:var(--font-display); font-weight:600;
  font-size:22px; line-height:1.25; letter-spacing:-0.01em;
  color:#fff; margin:0 0 12px;
}
.erdf-dp .dp-gt-p{
  margin:0 0 10px; font-size:15px; line-height:1.6;
  color:rgba(253,251,246,0.88); max-width:36ch;
}
.erdf-dp .dp-gt-p:last-child{margin-bottom:0;}
/* Kathy's first sentence, bold as her form sets it (2026-11-20). */
.erdf-dp .dp-gt-p strong{font-weight:600; color:#fff;}
/* 2026-11-21 (Juli): her closing line, "By saving a pet you save their people
   too!", the panel's last paragraph (inc/donate-popup.php). Same family and
   size as Kathy's line; full white and a wider gap above set it apart as the
   close. Regular weight, so Kathy's first sentence stays the only bold one. */
.erdf-dp .dp-gt-p.dp-gt-close{margin-top:16px; color:#fff;}
.erdf-dp .dp-gt-ask{margin:0 0 14px; text-align:center;}
.erdf-dp .dp-gt-photo img{object-position:50% 9%;}
.erdf-dp .dp-card.is-after[data-after-photo] .dp-gt-copy{display:none;}
@media (max-width:860px){
  .erdf-dp .dp-gt-h{font-size:20px;}
  .erdf-dp .dp-gt-p{max-width:none;}
}
