/*
  Assam Flood Relief landing page — written mobile-first, since roughly four in
  five visitors arrive on a phone. Base rules target small screens; the media
  queries below are progressive enhancement for wider viewports.

  Loaded after styles.css so it inherits the shared :root tokens and .btn.
  Everything is scoped to .relief-page so it cannot affect other routes.
*/

.relief-page { background: var(--background); }
.relief-page main { width: 100%; }
.relief-page :focus-visible { outline: 3px solid rgba(181, 71, 90, .45); outline-offset: 2px; box-shadow: none; }

/* ---------- Motion primitives ---------- */
/* Gated on .js so a scripting failure cannot leave the page blank. */
.js .reveal-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 650ms cubic-bezier(.2, .9, .2, 1), transform 650ms cubic-bezier(.2, .9, .2, 1);
}
.js .reveal-up.is-visible { opacity: 1; transform: none; }

/* ---------- Top bar ---------- */
.relief-topbar { border-bottom: 1px solid var(--border); background: rgba(255, 249, 246, .94); }
.relief-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(var(--content-max-width), calc(100% - 40px));
  min-height: 56px;
  margin: 0 auto;
}
.relief-topbar__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding-right: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}
.relief-topbar__back:hover { color: var(--primary); }
.relief-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.02em;
}

/* ---------- 1. Hero ---------- */
.relief-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 78svh;
  overflow: hidden;
  isolation: isolate;
}
/*
  Hero background photograph. 16:9 source with the flood water and storm sky on
  the left and the relief scene on the right, so background-position is tuned
  per breakpoint: a wide hero crops top and bottom only, while a portrait hero
  crops away roughly two thirds of the width and the horizontal anchor decides
  what survives.

  Painted on a pseudo-element of the section, NOT on .relief-hero__bg.
  assam-slideshow.js removes that div outright when there is no publishable
  media (ASSAM_RELIEF_MEDIA is empty), so a background set on it disappears at
  runtime. A pseudo-element cannot be removed by script.
*/
.relief-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("images/assam-relief/assam-flood-relief-page-hero.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  /* Desktop: the hero is close to the image's own 16:9, so this crops only a
     little off the top and bottom. Held slightly above centre to keep the
     water bottles and supply crates at the lower right in frame. */
  background-position: 62% 46%;
  background-color: #1b1013;   /* covers the frame before the bytes arrive */
}

/*
  Gentle settle on load. No parallax, no Ken Burns, no looping movement — one
  short fade with a barely perceptible scale, then it stops.
*/
@media (prefers-reduced-motion: no-preference) {
  .relief-hero::before {
    animation: relief-hero-settle 1200ms cubic-bezier(.2, .7, .3, 1) both;
  }
}
@keyframes relief-hero-settle {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}
.relief-hero__bg .mf-slideshow__viewport { height: 100%; }
.relief-hero__bg .mf-slideshow__controls { position: absolute; right: 8px; bottom: 8px; z-index: 3; color: #fff; }
.relief-hero__bg .mf-slideshow__dot::before { box-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
/* The hero shows its credit inside the copy block, not over the image. */
.relief-hero__bg .mf-slideshow__credit { display: none; }

/* Ken Burns: a slow push on whichever slide is active. */
.relief-hero__bg .mf-slideshow__slide.is-active > * { animation: relief-ken-burns 20s ease-out forwards; }
@keyframes relief-ken-burns {
  from { transform: scale(1.02); }
  to { transform: scale(1.13); }
}

/* Stronger scrim: the headline has to stay legible over any replacement photo. */
.relief-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  /*
    Two layers. The first is the horizontal wash: heavy over the water on the
    left where the headline sits, thinning across to the right so the relief
    scene stays visible. The second is a vertical weight — the copy is
    bottom-aligned, so the lower band still needs body — kept lighter than the
    .95 it used to carry, or it would swallow the supplies at the lower right.
  */
  background:
    linear-gradient(90deg,
      rgba(28, 14, 18, .88) 0%,
      rgba(37, 19, 23, .74) 38%,
      rgba(32, 20, 23, .43) 70%,
      rgba(20, 14, 16, .30) 100%),
    linear-gradient(180deg,
      rgba(20, 10, 14, .34) 0%,
      rgba(20, 10, 14, .06) 40%,
      rgba(24, 10, 14, .52) 100%);
}

/*
  Portrait viewports crop away roughly two thirds of a 16:9 frame, so the
  horizontal anchor is what decides whether the photograph still reads as a
  relief scene. Held right of centre to keep the family and the volunteer in
  frame, but not so far that a face lands directly behind the headline.

  The wash is also rotated towards vertical here: on a narrow screen the copy
  spans the full width, so a left-to-right gradient would leave the last lines
  sitting on bare photograph.
*/
@media (max-width: 699px) {
  .relief-hero::before { background-position: 66% 42%; }
  .relief-hero__scrim {
    background:
      linear-gradient(180deg,
        rgba(24, 12, 16, .58) 0%,
        rgba(28, 15, 19, .40) 34%,
        rgba(24, 11, 15, .74) 72%,
        rgba(20, 9, 13, .90) 100%);
  }
}
.relief-hero__inner {
  width: min(var(--content-max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 32px;
  color: #fff;
}
.relief-hero__eyebrow {
  margin: 0 0 14px;
  color: #f3c3cc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.relief-hero h1 {
  margin: 0;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(42px, 12vw, 58px);
  font-weight: 700;
  letter-spacing: -.038em;
  line-height: 1.02;
  text-wrap: balance;
}
.relief-hero__lead {
  max-width: 34ch;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: 16px;
  line-height: 1.6;
}
.relief-hero__cta {
  width: 100%;
  min-height: 54px;
  margin-top: 24px;
  border-color: #fff;
  color: var(--primary) !important;
  background: #fff !important;
  font-size: 16px;
  font-weight: 800;
}
.relief-hero__cta:hover { background: #fff0f2 !important; }
.relief-hero__note { margin: 14px 0 0; color: rgba(255, 255, 255, .68); font-size: 12.5px; line-height: 1.55; }

/* ---------- Shared section shell ---------- */
.relief-page main > section:not(.relief-hero):not(.relief-final):not(.relief-give) {
  width: min(var(--content-max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 0;
  scroll-margin-top: 72px;
}
.relief-section-head { margin-bottom: 24px; }
.relief-eyebrow { margin: 0; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.relief-section-head h2 {
  margin: 10px 0 0;
  color: var(--text);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 7.5vw, 34px);
  font-weight: 700;
  letter-spacing: -.032em;
  line-height: 1.12;
}
.relief-section-head__note { margin: 12px 0 0; color: var(--text-secondary); font-size: 14px; line-height: 1.65; }
.relief-section-head__note a { color: var(--primary); text-decoration: underline; }

/* ---------- 2. Open appeal box ---------- */
.relief-appeal {
  width: min(var(--content-max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 0;
  transform: translateY(-28px);
}
.relief-appeal__card {
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(32, 41, 54, .14);
}
.relief-appeal__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.relief-appeal__badge {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.relief-appeal__card h2 {
  width: 100%;
  margin: 0;
  color: var(--text);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.03em;
}
.relief-appeal__figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 0;
}
.relief-appeal__figures div { min-width: 0; }
.relief-appeal__figures dt {
  margin-bottom: 4px;
  color: var(--text-secondary);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.relief-appeal__figures dd { margin: 0; color: var(--text); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
/* Goal only: a single column, so one figure does not sit in a half-empty
   two-column stats row. No raised total, count, percentage or bar. */
.relief-appeal__figures--goal-only { grid-template-columns: minmax(0, 1fr); }
.relief-appeal__note { margin: 14px 0 0; color: var(--text-secondary); font-size: 13.5px; line-height: 1.6; }
.relief-appeal__cta { width: 100%; min-height: 50px; margin-top: 18px; }

/* ---------- 3. Situation ---------- */
.relief-page main > section.relief-situation:not(.relief-hero):not(.relief-final):not(.relief-give) {
  padding: 48px 0 0;
}
.relief-situation__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}
.relief-situation__card {
  min-width: 0;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.relief-situation__value {
  margin: 0;
  color: var(--primary);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(29px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
}
.relief-situation__value--text {
  color: var(--text);
  font-size: clamp(17px, 1.6vw, 23px);
  letter-spacing: -.015em;
  line-height: 1.25;
}
.relief-situation__card h3 { margin: 10px 0 0; color: var(--text); font-size: 15px; line-height: 1.4; }
.relief-situation__detail { margin: 8px 0 0; color: var(--text-secondary); font-size: 14px; line-height: 1.55; }
.relief-situation__source { margin: 14px 0 0; color: var(--text-secondary); font-size: 11.5px; line-height: 1.5; }
.relief-situation__source a { color: var(--primary); text-decoration: underline; }

/* ---------- 4. Donation ---------- */
/* Deliberately a different composition from the homepage block: a tinted
   full-bleed band, a numbered three-step form, then trust signals. */
.relief-give { margin-top: 56px; padding: 44px 0 48px; background: linear-gradient(180deg, #fdf1f0 0%, #fff9f6 100%); }
.relief-give__inner { width: min(var(--content-max-width), calc(100% - 40px)); margin: 0 auto; }
.relief-give__intro { margin-bottom: 22px; }
.relief-give__eyebrow { margin: 0; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.relief-give__intro h2 {
  margin: 10px 0 0;
  color: var(--text);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(26px, 7vw, 32px);
  font-weight: 700;
  letter-spacing: -.032em;
  line-height: 1.14;
}
.relief-give__card {
  padding: 22px;
  border: 1px solid #edd6d8;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(111, 63, 70, .13);
}
.relief-give__steps { margin: 0; padding: 0; list-style: none; }
.relief-give__step + .relief-give__step { margin-top: 24px; padding-top: 22px; border-top: 1px solid #f0e4e2; }
.relief-give__step-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}
.relief-give__step-label span {
  display: grid;
  place-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-size: 11.5px;
  font-weight: 800;
}
.relief-give__step-label em { color: var(--text-secondary); font-size: 12.5px; font-style: normal; font-weight: 600; }
.relief-give__card select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
}
.relief-give__hint { min-height: 18px; margin: 8px 0 0; color: var(--primary); font-size: 12.5px; font-weight: 700; }
.relief-give__amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.relief-give__amount {
  min-height: 52px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}
.relief-give__amount:hover { border-color: #dcc4c9; }
.relief-give__amount.is-selected { color: #fff; border-color: var(--primary); background: var(--primary); }
.relief-give__custom-label { display: block; margin: 16px 0 8px; color: var(--text); font-size: 13.5px; font-weight: 700; }
.relief-give__custom { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.relief-give__custom span { padding: 0 4px 0 14px; color: var(--text-secondary); font-size: 16px; font-weight: 700; }
.relief-give__custom input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px 12px 4px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font: inherit;
  font-size: 16px;
}
.relief-give__custom input:focus-visible { outline: none; }
.relief-give__custom:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(181, 71, 90, .18); }
.relief-give__fields { display: grid; gap: 14px; }
.relief-give__fields label { display: block; color: var(--text); font-size: 13.5px; font-weight: 700; }
.relief-give__fields input {
  width: 100%;
  min-height: 50px;
  margin-top: 7px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
}
.relief-give__summary {
  display: grid;
  gap: 3px;
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--primary-soft);
}
.relief-give__summary span { color: var(--primary); font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.relief-give__summary strong { color: var(--text); font-size: 15.5px; }
.relief-give__submit { width: 100%; min-height: 56px; margin-top: 14px; font-size: 16.5px; font-weight: 800; }
.relief-give__status { margin: 14px 0 0; color: var(--text-secondary); font-size: 12.5px; line-height: 1.6; }
.relief-give__status a { color: var(--primary); text-decoration: underline; }
.relief-give__trust {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid #f0e4e2;
  list-style: none;
}
.relief-give__trust li { display: flex; align-items: center; gap: 9px; color: var(--text-secondary); font-size: 13px; font-weight: 600; }
.relief-give__trust svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--success); }
.relief-give__legal { margin: 16px 0 0; color: var(--text-secondary); font-size: 11.5px; line-height: 1.6; }
.relief-give__legal a { color: var(--primary); text-decoration: underline; }

/* ---------- 5. From the record ---------- */
.relief-record__flow { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.relief-record__step { padding: 20px 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.relief-record__num { color: var(--accent); font-family: "Playfair Display", Georgia, serif; font-size: 22px; font-weight: 700; }
.relief-record__step h3 { margin: 6px 0 6px; color: var(--text); font-size: 16px; font-weight: 700; }
.relief-record__step p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.relief-record__statement { margin-top: 16px; padding: 22px; border: 1px solid #ecd9dc; border-radius: 16px; background: #fffaf8; }
.relief-record__statement h3 { margin: 0 0 8px; color: var(--text); font-size: 16px; font-weight: 700; }
.relief-record__statement p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.65; }
.relief-record__links { display: grid; gap: 8px; margin-top: 14px !important; }
.relief-record__links a { color: var(--primary); font-size: 13.5px; font-weight: 700; }
.relief-record__links a:hover { text-decoration: underline; }

/* ---------- Final CTA ---------- */
.relief-final { margin-top: 56px; padding: 52px 0; background: linear-gradient(135deg, #5e3741 0%, #8f3b4a 58%, #b5475a 100%); }
.relief-final__inner { width: min(var(--content-max-width), calc(100% - 40px)); margin: 0 auto; text-align: center; }
.relief-final h2 {
  margin: 0;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(26px, 7.5vw, 40px);
  font-weight: 700;
  letter-spacing: -.032em;
  line-height: 1.12;
  text-wrap: balance;
}
.relief-final p { margin: 12px 0 22px; color: rgba(255, 255, 255, .86); font-size: 15px; line-height: 1.6; }
.relief-final__cta {
  width: 100%;
  min-height: 54px;
  border-color: #fff;
  color: var(--primary) !important;
  background: #fff !important;
  font-size: 16px;
  font-weight: 800;
}
.relief-final__cta:hover { background: #fff0f2 !important; }

/* ---------- Footer ---------- */
.relief-footer {
  padding: 40px 0 0;
  color: #f4eaec;
  /* Darker footer token, with the light logo. */
  background: #5e3741;
}
.relief-footer__inner { display: grid; gap: 28px; width: min(var(--content-max-width), calc(100% - 40px)); margin: 0 auto; }
.relief-footer__brand img { max-width: 190px; height: auto; }
.relief-footer__brand p { margin: 14px 0 0; max-width: 42ch; color: rgba(255, 255, 255, .76); font-size: 13.5px; line-height: 1.65; }
.relief-footer__contact { display: grid; gap: 4px; }
.relief-footer__contact a { color: #ffd4da; }
.relief-footer__contact a:hover { text-decoration: underline; }
.relief-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; }
.relief-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, .86);
  font-size: 13.5px;
}
.relief-footer__links a:hover { color: #fff; text-decoration: underline; }
.relief-footer__bottom {
  width: min(var(--content-max-width), calc(100% - 40px));
  margin: 28px auto 0;
  /* Clears the sticky CTA and the home-indicator area on phones. */
  padding: 16px 0 calc(96px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .68);
  font-size: 12.5px;
}

/* ---------- Mobile sticky donate ---------- */
.relief-sticky {
  position: fixed;
  z-index: 85;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 16px;
  min-height: 52px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 14px 34px rgba(94, 55, 65, .42);
  font: inherit;
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
}
.relief-sticky[hidden] { display: none; }

/* ---------- Wider viewports ---------- */
@media (min-width: 700px) {
  .relief-topbar__inner, .relief-hero__inner, .relief-appeal, .relief-give__inner,
  .relief-final__inner, .relief-footer__inner, .relief-footer__bottom,
  .relief-page main > section:not(.relief-hero):not(.relief-final):not(.relief-give) {
    width: min(var(--content-max-width), calc(100% - (var(--page-gutter) * 2)));
  }
  /*
    Tablet (700-1079px) is still portrait-ish against a 16:9 source — at 768x780
    only about 55% of the frame's width survives the crop — so it gets its own
    anchor. Desktop overrides this again at 1080px.
  */
  .relief-hero::before { background-position: 58% 44%; }

  .relief-hero { min-height: min(88vh, 780px); }
  .relief-hero__inner { padding: 132px 0 44px; }
  .relief-hero h1 { max-width: 16ch; font-size: clamp(52px, 6.2vw, 74px); }
  .relief-hero__lead { max-width: 46ch; font-size: 18px; }
  .relief-hero__cta { width: auto; min-width: 260px; }
  .relief-appeal { transform: translateY(-40px); }
  .relief-appeal__card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 32px; padding: 28px 32px; }
  .relief-appeal__head { grid-column: 1; }
  .relief-appeal__figures { grid-column: 1; margin-top: 4px; }
  .relief-appeal__note { grid-column: 1; }
  .relief-appeal__cta { grid-column: 2; grid-row: 1 / span 3; width: auto; min-width: 190px; margin-top: 0; }
  .relief-situation__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .relief-give__card { padding: 32px; }
  .relief-give__amounts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .relief-give__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .relief-give__submit { width: auto; min-width: 300px; }
  .relief-give__trust { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .relief-record__flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .relief-record__links { grid-auto-flow: column; justify-content: start; gap: 24px; }
  .relief-final__cta { width: auto; min-width: 280px; }
  .relief-footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .relief-footer__bottom { padding-bottom: 20px; }
  /* The sticky CTA is a phone affordance only. */
  .relief-sticky { display: none; }
}

@media (min-width: 1080px) {
  /*
    Desktop anchor. From here up the hero is wider than the image's own 16:9, so
    the crop is vertical only and this mainly decides how much sky is kept
    against how much of the supplies at the lower right stay in frame.
  */
  .relief-hero::before { background-position: 62% 46%; }

  .relief-page main > section:not(.relief-hero):not(.relief-final):not(.relief-give) { padding-top: var(--section-space); }
  .relief-page main > section.relief-situation:not(.relief-hero):not(.relief-final):not(.relief-give) { padding-top: min(96px, 7vw); }
  .relief-give { margin-top: var(--section-space); padding: 72px 0 80px; }
  .relief-situation__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .relief-give__card { max-width: 780px; }
  .relief-give__intro { max-width: 620px; }
  .relief-final { margin-top: var(--section-space); padding: 88px 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .relief-hero__bg .mf-slideshow__slide.is-active > * { animation: none; transform: none; }
  .js .reveal-up, .js .reveal-up.is-visible { opacity: 1; transform: none; transition: none; }
  .relief-card, .relief-give__amount { transition: none; }
  .relief-card:hover { transform: none; }
}

/* Standalone link rows need a real hit area. Inline links inside prose keep
   their natural height — padding them out would break the text flow. */
.relief-record__links a, .relief-footer__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.relief-footer__contact span { display: inline-flex; align-items: center; gap: 7px; }

/* Hero image credit: true date, location, source and licence for the active
   slide, plus the archival-imagery disclosure. Never hidden. */
.relief-hero__credit { margin-top: 16px; }
.relief-hero__credit .mf-slideshow__credit { color: rgba(255, 255, 255, .72); font-size: 11.5px; line-height: 1.55; }
.relief-hero__credit .mf-slideshow__credit a { color: rgba(255, 255, 255, .9); text-decoration: underline; }
.relief-hero__credit .mf-slideshow__archive-note { display: block; color: rgba(255, 255, 255, .6); }

/* The sticky donate CTA is fixed over the page bottom, so the shared footer
   needs clearance on phones or it would sit underneath the button. */
@media (max-width: 699px) {
  .relief-page .footer .footer-bottom { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}
