/* /stories-of-hope/rahsaan, Figma 2859:5591 (09-24 master copy, 9,200px).
   Loaded after theme.css. Scoped to rs-* classes. */

.rs-ring { position: relative; isolation: isolate; }
.rs-ring::after {
  content: ""; position: absolute; inset: -2.5px; border-radius: inherit;
  border: 5px solid var(--rs-ring, currentColor);
  pointer-events: none; filter: url(#sh-tcard-wavy); z-index: -1;
}

/* ---- Hero (Figma 2859:5592): Grass slab with the hand-drawn lower edge,
   144 / 112 / 64 padding, copy column with the breadcrumb at the top and the
   tags, title and lede at the bottom, a 512px photo with a hand-drawn Grass
   edge on the right. The frame's photo overlay card is deliberately left
   out. Rings use #sh-wavy (shared footer). ---- */
.rs-hero {
  position: relative; isolation: isolate;
  background: var(--grass, #A7C434);
  border-radius: 0 0 32px 32px;
  /* 112px at the 1512 artboard, easing to 32px by 1100. */
  padding: 144px clamp(32px, calc(32px + (100vw - 1100px) * .194), 112px) 64px;
  display: flex; gap: 40px; align-items: stretch;
}
.rs-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 140px;
  border: 8px solid var(--grass, #A7C434); border-top: 0; border-radius: 0 0 36px 36px;
  pointer-events: none; filter: url(#sh-wavy); z-index: -1;
}
.rs-hero-copy { flex: 0 1 614px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.rs-hero .d-crumb { flex-wrap: wrap; }
/* Neutral 600 on Grass is 3.7:1; Carbon keeps the crumb readable. */
.rs-hero .d-crumb--dark, .rs-hero .d-crumb--dark a { color: var(--carbon, #28201C); }
.rs-hero .d-crumb--dark span { color: var(--grass-800, #47511A); }
.rs-hero-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.rs-tags { display: flex; flex-wrap: wrap; gap: 24px; margin: 0 0 6px; padding: 0; list-style: none; }
.rs-tags li {
  position: relative; isolation: isolate; padding: 0 26px;
  background: var(--sunny, #FFD100); color: var(--neutral-900, #171211);
}
.rs-tags li::after {
  content: ""; position: absolute; inset: -2px; border-radius: 4px;
  border: 4px solid var(--sunny, #FFD100);
  pointer-events: none; filter: url(#sh-wavy); z-index: -1;
}
.rs-hero-title { font-family: 'Fredoka', system-ui, sans-serif; font-size: clamp(44px, 5.3vw, 80px); font-weight: 600; line-height: 1.1; letter-spacing: -1px; color: var(--carbon, #28201C); margin: 0; }
.rs-hero-lede { font-family: 'Fredoka', system-ui, sans-serif; font-size: 22px; font-weight: 500; line-height: 1.3; color: var(--carbon, #28201C); margin: 0; max-width: 540px; }
.rs-hero-photo { position: relative; flex: 1 1 0; min-width: 0; margin: 0; }
.rs-hero-photo img { width: 100%; height: 512px; object-fit: cover; object-position: 0% 50%; border-radius: 24px; display: block; }
@media (min-width: 721px) {
  /* Hand-drawn Grass edge round the photo. */
  .rs-hero-photo::after {
    content: ""; position: absolute; inset: -3px; border-radius: 27px;
    border: 6px solid var(--grass, #A7C434);
    pointer-events: none; filter: url(#sh-wavy);
  }
}
@media (min-width: 1101px) { .rs-hero-photo { min-width: 380px; } }

/* ---- Story timeline ---- */
.rs-story { background: #fff; padding: 56px 64px 40px; }
.rs-story-inner { max-width: 1128px; margin: 0 auto; display: flex; flex-direction: column; gap: 144px; }
/* Isabel 10-13: the story badges are Sunny in the frame (2859:5591). */
.rs-badge { background: var(--sunny, #FFD100); }
.rs-block { display: grid; grid-template-columns: minmax(0, 527fr) minmax(0, 551fr); gap: 49px; align-items: start; }
.rs-block-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 46px; min-width: 0; }
.rs-block-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.rs-block-head h2 { max-width: 20ch; }
.rs-prose { display: flex; flex-direction: column; gap: 32px; }
.rs-prose p { font-size: 20px; line-height: 1.6; color: var(--neutral-700, #3D342F); margin: 0; }
.rs-intro .rs-prose { gap: 0; }
.rs-intro .rs-block-head h2 { max-width: none; }
.rs-intro { max-width: 1128px; }
/* Isabel 10-13: the opening paragraph holds an 845px measure (Body Large 20/32). */
.rs-intro .rs-prose { max-width: 845px; }

.rs-quote { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.rs-quote p { font-family: 'Fredoka', system-ui, sans-serif; font-size: 24px; font-weight: 500; line-height: 1.25; letter-spacing: -.5px; color: #455115; margin: 0; }
.rs-quote cite { font-family: 'Work Sans', system-ui, sans-serif; font-style: normal; font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: 2px; text-transform: uppercase; color: var(--carbon, #28201C); }

/* X-ray panels: white card, Neutral 200 edge, the film inset with a
   magnolia hairline and a small shadow, a Fredoka caption under it. */
.rs-panels { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.rs-panel {
  margin: 0; background: #fff;
  border: 4px solid var(--neutral-200, #F1EDE5); border-radius: 16px;
  padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.rs-panel img {
  width: 100%; height: auto; aspect-ratio: 640 / 764; object-fit: contain; display: block;
  background: #000; border-radius: 12px; border: 1.2px solid var(--magnolia, #FDF9F1);
  box-shadow: 0 1.5px 1.5px rgba(0,0,0,.25);
}
.rs-panel figcaption { font-family: 'Fredoka', system-ui, sans-serif; font-size: 15px; font-weight: 600; color: var(--carbon, #28201C); }

.rs-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.rs-fig figcaption { font-size: 16px; line-height: 1.6; color: var(--neutral-600, #5C534D); text-align: center; }
.rs-video { max-width: 511px; width: 100%; }
.rs-video video { width: 100%; max-width: 391px; height: auto; aspect-ratio: 480 / 848; display: block; margin: 0 auto; border-radius: 16px; background: #000; }
.rs-today-photo { max-width: 511px; }
.rs-today-photo img { width: 100%; height: auto; aspect-ratio: 511 / 900; object-fit: cover; object-position: 50% 30%; display: block; border-radius: 16px; }

.rs-yt { position: relative; width: 100%; max-width: 1098px; margin: 0 auto; aspect-ratio: 1098 / 613; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 20px 24px -4px rgba(10,13,18,.08); }
.rs-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.rs-pair { display: flex; justify-content: center; align-items: flex-start; gap: 144px; }
.rs-flyer { flex: 0 1 526px; }
.rs-flyer img { width: 100%; height: auto; display: block; }
.rs-car { flex: 0 1 382px; }
.rs-car img { width: 100%; height: auto; aspect-ratio: 382 / 668; object-fit: cover; display: block; border-radius: 16px; }

/* ---- Donation band: sunny card, monthly-giving card with amount chips ---- */
.rs-give-sec { background: #fff; padding: 56px; }
.rs-give {
  --rs-ring: var(--sunny, #FFD100);
  max-width: 1400px; margin: 0 auto;
  background: var(--sunny, #FFD100); border-radius: 24px; padding: 56px;
  display: flex; align-items: center; justify-content: center; gap: 64px;
}
.rs-give-copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.rs-give-copy h2 { color: var(--grass-900, #2D3113); max-width: 594px; }
.rs-give-copy p { font-family: 'Fredoka', system-ui, sans-serif; font-size: 22px; font-weight: 500; line-height: 1.3; color: var(--carbon, #28201C); margin: -4px 0 0; max-width: 594px; }
.rs-give-small {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px;
  background: #fff; border: 1px solid var(--neutral-200, #F1EDE5); border-radius: 9999px;
  font-family: 'Work Sans', system-ui, sans-serif; font-size: 16px; font-weight: 600; line-height: 1.6; color: var(--carbon, #28201C);
  box-shadow: inset 0 -1px 2px rgba(0,0,0,.1), inset 0 1px 2px rgba(255,255,255,.4);
  filter: drop-shadow(0 6px 6px rgba(0,0,0,.08)) drop-shadow(0 2px 1px rgba(0,0,0,.06));
  transition: background .15s ease;
}
.rs-give-small:hover { background: var(--magnolia, #FDF9F1); }
.rs-give-small svg { width: 16px; height: 16px; }

.rs-uplift {
  --rs-ring: var(--magnolia, #FDF9F1);
  flex: none; background: var(--magnolia, #FDF9F1);
  border: 3px solid var(--neutral-200, #F1EDE5); border-radius: 24px;
  padding: 64px 44px; display: flex; flex-direction: column; align-items: center; gap: 16px;
  filter: drop-shadow(0 32px 32px rgba(10,13,18,.14)) drop-shadow(0 5px 2.5px rgba(10,13,18,.04));
}
.rs-uplift .d-badge { background: var(--grass, #A7C434); }
.rs-uplift-title { font-family: 'Fredoka', system-ui, sans-serif; font-size: clamp(28px, 2.7vw, 40px); font-weight: 500; line-height: 1.15; letter-spacing: -.5px; color: var(--carbon, #28201C); margin: 0; text-align: center; }
.rs-chips { display: flex; gap: 12px; border: 0; margin: 0; padding: 0; }
.rs-chip {
  width: 110px; height: 110px; border-radius: 16px;
  border: 1px solid var(--neutral-300, #E5E1D8); background: #fff;
  font-family: 'Fredoka', system-ui, sans-serif; font-size: 28px; font-weight: 500; line-height: 1.25; color: var(--carbon, #28201C);
  cursor: pointer;
  box-shadow: inset 0 -1px 2px rgba(0,0,0,.1), inset 0 1px 2px rgba(255,255,255,.4);
  filter: drop-shadow(0 6px 6px rgba(0,0,0,.08)) drop-shadow(0 2px 1px rgba(0,0,0,.06));
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.rs-chip:hover { border-color: var(--grass, #A7C434); }
.rs-chip:active { transform: scale(.97); }
.rs-chip.active { background: var(--grass, #A7C434); border-color: var(--grass, #A7C434); }
/* Focus on the sunny and magnolia cards: Carbon ring, 2px off the control. */
.rs-chip:focus-visible, .rs-uplift .give-submit:focus-visible, .rs-give-small:focus-visible { outline: 2px solid var(--carbon, #28201C); outline-offset: 2px; }
.rs-uplift .give-submit { width: 476px; max-width: 100%; justify-content: center; cursor: pointer; border: 1px solid var(--neutral-700, #3D342F); }
.rs-uplift .give-submit:disabled { opacity: .7; cursor: progress; }
.rs-uplift-details { font-size: 14px; line-height: 1.6; color: var(--neutral-600, #5C534D); text-align: center; margin: 0; max-width: 355px; display: flex; flex-direction: column; gap: 6px; }
.rs-uplift-details span { display: block; }

/* ---- More stories: header left, a row of portrait cards that scrolls ---- */
.rs-more { background: #fff; padding: 96px 0 96px 80px; display: flex; align-items: center; gap: 56px; }
.rs-more-head { flex: 0 0 497px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.rs-more-head h2 { max-width: 388px; }
.rs-more-head .d-btn-dark { margin-top: 8px; }
.rs-row {
  flex: 1 1 0; min-width: 0; display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 8px;
  padding: 12px 80px 24px 8px; margin: -12px 0 -24px;
  scrollbar-width: thin;
}
/* The cards are links inside list items: the item takes the slot in the
   row, the link fills it. */
ul.rs-row { list-style: none; }
.rs-row > li { flex: 0 0 296px; display: flex; scroll-snap-align: start; }
.rs-card {
  position: relative; flex: 1 1 auto; min-width: 0; height: 338px;
  background: var(--neutral-200, #F1EDE5); border: 4px solid var(--neutral-200, #F1EDE5); border-radius: 16px;
  padding: 12px; display: flex; flex-direction: column; gap: 12px; color: inherit;
  transition: background .32s cubic-bezier(.22,1,.36,1), border-color .32s cubic-bezier(.22,1,.36,1);
}
.rs-card::after {
  content: ""; position: absolute; inset: -5px; border-radius: 22px;
  border: 8px solid var(--neutral-200, #F1EDE5); pointer-events: none; filter: url(#sh-pcard-wavy);
  transition: inset .38s cubic-bezier(.22,1,.36,1), border-color .32s cubic-bezier(.22,1,.36,1), border-width .32s cubic-bezier(.22,1,.36,1);
}
.rs-card:hover, .rs-card:focus-visible { background: linear-gradient(to bottom, var(--grass-400, #BDD267), var(--grass-600, #859B2B)); border-color: var(--grass-400, #BDD267); }
.rs-card:hover::after, .rs-card:focus-visible::after { inset: -5px; border: 8px solid var(--grass-400, #BDD267); }
.rs-card-photo { flex: 1 1 0; min-height: 0; border-radius: 8px; overflow: hidden; border: 3px solid transparent; transition: border-color .32s cubic-bezier(.22,1,.36,1); }
.rs-card:hover .rs-card-photo, .rs-card:focus-visible .rs-card-photo { border-color: var(--grass-500, #A7C434); }
.rs-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 5px; transition: transform .45s cubic-bezier(.22,1,.36,1); }
.rs-card:hover .rs-card-photo img, .rs-card:focus-visible .rs-card-photo img { transform: scale(1.03); }
.rs-card-name { font-family: 'Fredoka', system-ui, sans-serif; font-size: 28px; font-weight: 500; line-height: 1.25; color: var(--neutral-900, #171211); text-align: center; }
.rs-card-place { font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: 2px; text-transform: uppercase; color: var(--carbon, #28201C); text-align: center; margin-top: -8px; }
.rs-card:focus-visible { outline: 3px solid var(--carbon, #28201C); outline-offset: 6px; }

.rs-permission { font-size: 14px; line-height: 1.6; color: var(--charcoal-soft, #6F6762); text-align: center; margin: 0; padding: 0 24px 56px; background: #fff; }

@media (max-width: 1100px) {
  .rs-hero { flex-direction: column; padding: 128px 24px 40px; gap: 32px; }
  .rs-hero-copy { flex: 1 1 auto; }
  .rs-hero-photo img { aspect-ratio: 4 / 3; height: auto; }
  .rs-tags { gap: 12px; }
  .rs-tags li { padding: 0 12px; }
  .rs-story { padding: 48px 24px 32px; }
  .rs-story-inner { gap: 96px; }
  .rs-pair { gap: 48px; }
  .rs-give-sec { padding: 40px 24px; }
  .rs-give { flex-direction: column; align-items: stretch; padding: 40px; gap: 40px; }
  .rs-uplift { align-self: center; }
  .rs-more { flex-direction: column; align-items: stretch; padding: 72px 0 72px 40px; gap: 40px; }
  .rs-more-head { flex: 0 0 auto; }
  .rs-row { flex: 0 0 auto; }
}
@media (max-width: 860px) {
  .rs-block { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .rs-block-copy { gap: 28px; }
  .rs-panels { flex-direction: row; }
  .rs-panels .rs-panel { flex: 1 1 0; min-width: 0; }
  .rs-video, .rs-today-photo { margin: 0 auto; }
  .rs-pair { flex-direction: column; align-items: center; }
}
@media (max-width: 640px) {
  .rs-hero { padding: 112px 16px 28px; border-radius: 0 0 24px 24px; }
  .rs-tags { gap: 8px; }
  .rs-hero-lede { font-size: 19px; }
  .rs-hero-photo img { aspect-ratio: 4 / 3; height: auto; }
  .rs-story { padding: 40px 16px 24px; }
  .rs-story-inner { gap: 72px; }
  .rs-prose { gap: 20px; }
  .rs-prose p { font-size: 17px; }
  .rs-quote p { font-size: 21px; }
  .rs-panels { gap: 10px; }
  .rs-panel { padding: 6px; gap: 8px; border-width: 3px; }
  .rs-panel figcaption { font-size: 13px; }
  .rs-give-sec { padding: 32px 12px; }
  .rs-give { padding: 28px 18px; }
  .rs-uplift { padding: 32px 16px; width: 100%; }
  .rs-chips { gap: 6px; justify-content: center; }
  .rs-chip { width: 64px; height: 64px; font-size: 20px; border-radius: 12px; }
  .rs-more { padding: 56px 0 56px 16px; }
  .rs-row { padding-right: 16px; }
  .rs-row > li { flex-basis: 250px; }
  .rs-card { height: 300px; }
}

/* Very wide screens: keep the face in the hero (YuNet audit 2026-09-24). */
@media (min-width: 1800px) { .rs-hero-photo img { object-position: 2% 10%; } }

/* ---- Phones: Figma "Rahsaan's Story - Mobile" (3819:28373) ----
   Grass hero with the hand-drawn lower edge and a tall portrait crop, sunny
   brush tags, 16px body, bar quotes, captioned figures on magnolia cards,
   and the giving card with a 2x2 amount grid. The ring filter is #sh-wavy
   (shared footer). The frame's photo overlay card is deliberately left out. */
@media (max-width: 720px) {
  .rs-hero { padding: 160px 24px 40px; gap: 16px; border-radius: 0 0 32px 32px; }
  .rs-hero::after { bottom: -2.5px; height: 120px; border-width: 5px; border-top: 0; border-radius: 0 0 34px 34px; }
  .rs-hero-copy { flex: none; gap: 16px; }
  .rs-hero-head { gap: 16px; width: 100%; }
  .rs-tags { gap: 12px; margin: 0; width: 100%; }
  .rs-tags li { flex: 1 1 auto; padding: 0 12px; }
  .rs-hero-title { font-size: 36px; line-height: 1.2; letter-spacing: -.5px; }
  .rs-hero-lede { font-size: 22px; line-height: 1.3; max-width: none; }
  .rs-hero-photo { width: 100%; }
  .rs-hero-photo img {
    aspect-ratio: auto; height: 586px; max-height: none;
    object-fit: cover; object-position: 5% 50%; border-radius: 24px;
  }

  .rs-story { padding: 56px 24px; }
  .rs-story-inner { gap: 56px; }
  .rs-block { gap: 16px; }
  .rs-block-copy { gap: 16px; }
  .rs-block-head { gap: 12px; }
  .rs-block-head h2 { max-width: none; }
  .rs-prose { gap: 26px; }
  .rs-prose p { font-size: 16px; line-height: 1.6; }

  .rs-quote { border-left: 4px solid var(--grass, #A7C434); padding-left: 16px; gap: 16px; }
  .rs-quote p {
    font-family: 'Work Sans', system-ui, sans-serif; font-size: 16px; font-weight: 600;
    line-height: 1.6; letter-spacing: 0; color: var(--carbon, #28201C);
  }
  .rs-quote cite { text-align: center; }

  /* Figures: magnolia card, hand-drawn Neutral 200 edge, caption inside. */
  .rs-panels { flex-direction: column; gap: 24px; }
  .rs-panels .rs-panel { flex: none; }
  .rs-panel, .rs-pair .rs-fig {
    position: relative; isolation: isolate;
    background: var(--magnolia, #FDF9F1);
    border: 2.5px solid var(--neutral-200, #F1EDE5); border-radius: 10px;
    padding: 12px; gap: 8px;
  }
  .rs-panel::after, .rs-pair .rs-fig::after {
    content: ""; position: absolute; inset: -3px; border-radius: 12px;
    border: 4px solid var(--neutral-200, #F1EDE5);
    pointer-events: none; filter: url(#sh-wavy); z-index: -1;
  }
  .rs-panel img { border: 0; border-radius: 14px; box-shadow: none; }
  .rs-panel figcaption, .rs-fig figcaption {
    font-family: 'Work Sans', system-ui, sans-serif; font-size: 14px; font-weight: 400;
    line-height: 1.6; color: var(--neutral-700, #3D342F);
  }
  .rs-pair { gap: 32px; align-items: stretch; }
  .rs-pair .rs-fig { flex: none; width: 100%; max-width: none; }
  .rs-flyer img, .rs-car img { border-radius: 14px; }

  .rs-give-sec { padding: 56px 24px; }
  .rs-give { padding: 20px; gap: 24px; }
  .rs-give-copy { gap: 16px; }
  .rs-give-copy h2, .rs-give-copy p { max-width: none; }
  .rs-give-copy p {
    font-family: 'Work Sans', system-ui, sans-serif; font-size: 16px; font-weight: 400;
    line-height: 1.6; margin: 0;
  }
  .rs-give-small { width: 100%; justify-content: center; min-height: 44px; }
  .rs-uplift { padding: 24px 16px; gap: 16px; width: 100%; }
  /* One-line brush badge. At 14px with 2px tracking the label is wider than
     the card's padding box on a 375 screen, so it runs out to the card edge
     (as the frame does) and gives up a little tracking. */
  .rs-uplift .d-badge {
    position: relative; isolation: isolate; white-space: nowrap;
    margin-inline: -14px; padding: 0 8px; letter-spacing: 1.4px; font-size: min(13px, 3.47vw);
  }
  .rs-uplift .d-badge::after {
    content: ""; position: absolute; inset: -2px; border-radius: 4px;
    border: 4px solid var(--grass, #A7C434);
    pointer-events: none; filter: url(#sh-wavy); z-index: -1;
  }
  .rs-uplift-title { font-size: 28px; line-height: 1.25; letter-spacing: 0; }
  .rs-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; min-width: 0; }
  .rs-chip { width: auto; height: 64px; font-size: 20px; border-radius: 12px; }
  .rs-uplift .give-submit {
    width: 100%; padding: 12px 12px; white-space: nowrap;
    font-size: clamp(17px, 5vw, 20px);
  }
  .rs-uplift-details { max-width: none; gap: 8px; }

  .rs-more { padding: 56px 0 56px 24px; gap: 24px; }
  .rs-more-head { padding-right: 24px; }
  .rs-more-head h2 { max-width: none; }
  .rs-more-head .d-btn-dark { width: 100%; justify-content: center; }
  .rs-row { padding-right: 24px; }
  .rs-permission { padding: 0 24px 56px; }
}
@media (max-width: 350px) {
  /* The narrowest phones: the arrow gives way so the label stays on one line. */
  .rs-uplift .give-submit svg { display: none; }
}
