/* =====================================================================
   One colour scheme for every page: purple and yellow, a little stronger.
   Thick, soft borders with a stitched inner line for a hand-made texture,
   and light purple flowers in the empty corners.
   Loaded last, so it decides the final colours.
   ===================================================================== */
:root {
  /* Purple */
  --plum: #6a3d8c;
  --deep: #4a2763;
  --lavender: #ece0f6;
  --cream: #f6effb;          /* page background on every page */
  --paper: #fffdfa;          /* cards */
  --line: #d6c1e6;
  --frame: #cdb2e0;          /* thick card borders */
  --frame-strong: #a57fc4;   /* card borders on hover */
  /* Yellow */
  --sun: #f5c638;
  --sun-strong: #e5aa16;
  --sun-soft: #fbe9a6;
  --sun-tint: #fdf4d6;
  --sun-ink: #3b2a0d;
  --stitch: #ecc24f;         /* dashed inner line on purple-framed cards */
  --stitch-purple: #b892d6;  /* dashed inner line on yellow cards */
}

/* ------------------------------------------------ Same base on every page */
body, main { background: var(--cream); }
.hero, .story-section, .specialists, .request-support, .make-difference, .home-links,
.nutrition-start, .kitchen { background-color: var(--cream); }
.dietitian { background-color: var(--sun-tint); border-block: 2px solid #f1dc9a; }
.guides, .planner-section { background: var(--lavender); border-block: 2px solid var(--line); }
.welcome { background-color: var(--lavender); }
.section-intro h2, .story-intro h2 { color: var(--deep); }
.eyebrow { color: var(--plum); }
.eyebrow-rule { background: var(--sun-strong); height: 3px; border-radius: 3px; }
.topbar { border-bottom: 3px solid var(--line); }
footer { border-top: 3px solid var(--line); background: var(--lavender); }

/* ------------------------------------------- Thick borders with a stitch
   Purple frame + dashed yellow line just inside it. */
:is(.home-card, .guide-card, .condition-card, .diet-guide, .diet-tips, .gtp-layout,
    .recipe-book, .gentle-form, .specialist-group, .privacy-card, .cases-empty,
    .case-card, .week-table-wrap, .dish-tag) {
  border: 3px solid var(--frame);
  outline: 2px dashed var(--stitch);
  outline-offset: -9px;
  box-shadow: 0 6px 0 -2px #e3d2f0, 0 10px 24px #4a27630f;
}
.home-card, .dish-tag { outline-offset: -7px; }
@media (hover: hover) {
  :is(.home-card, .guide-card, .case-card):hover { border-color: var(--frame-strong); }
}

/* Yellow panels: yellow frame + dashed purple line. */
:is(.support-panel, .meal-pointer) {
  border: 3px solid #eccb63;
  outline: 2px dashed var(--stitch-purple);
  outline-offset: -9px;
  box-shadow: 0 6px 0 -2px #f6e2a0, 0 10px 24px #b3861a14;
}

/* Recipe cards are many and small: a thick frame only, no stitch. */
.recipe-card { border: 2.5px solid var(--frame); }
@media (hover: hover) { .recipe-card:hover { border-color: var(--frame-strong); } }

/* Smaller pieces: thicker purple edges, yellow when chosen. */
:is(.choice, .condition-answer, .sweet-choice, .result-link, .week-toggle, .private-fields) { border-width: 2px; border-color: var(--frame); }
.gentle-form :is(input, select, textarea) { border: 2px solid var(--frame); }
.gentle-form :is(input, select, textarea):focus { border-color: var(--plum); box-shadow: 0 0 0 3px var(--sun-soft); outline: none; }
.plan-choice { border-width: 2px; }
.form-lead.form-warning { border: 2px solid #eccb63; }
.story-body { border-inline-start: 4px solid var(--sun); }

/* Our impact: light purple like every other page, with light yellow number cards. */
.impact { background: var(--lavender); color: var(--ink); border-block: 2px solid var(--line); }
.impact .eyebrow { color: var(--plum); }
.impact .eyebrow-rule { background: var(--sun-strong); }
.impact .section-intro h2 { color: var(--deep); }
.impact .section-intro p { color: var(--muted); }
.impact-stat {
  background: var(--sun-tint);
  border: 3px solid #eccb63;
  outline: 2px dashed var(--stitch-purple);
  outline-offset: -9px;
  box-shadow: 0 6px 0 -2px #f6e2a0, 0 10px 24px #b3861a14;
}
.impact-num { color: var(--deep); }
.impact-label { color: #4b3a55; }
.impact-sub { color: var(--plum); }
.impact-sub.impact-given { color: var(--muted); }
.impact-updated { color: var(--muted); }

/* Weekly meal plan heading: light yellow into light purple, dark purple text. */
.week-heading { background: linear-gradient(105deg, var(--sun-soft), #fdf1c9 55%, var(--lavender)); color: var(--deep); border-bottom: 2px solid var(--line); }
.week-heading::after { background: repeating-radial-gradient(circle, transparent 0 14px, #a57fc433 15px 16px, transparent 17px 22px); }
.week-context { color: var(--plum); }
.weekly-diet-table thead th { background: var(--lavender); color: var(--deep); border-bottom: 2px solid var(--line); }

/* ------------------------------------------- Light purple flowers
   Drawn in images/gardenia.svg. They sit behind the content, in corners. */
:is(.welcome, .story-section, .specialists, .request-support, .make-difference, .home-links, .nutrition-start, .impact) {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
:is(.welcome, .story-section, .specialists, .request-support, .make-difference, .home-links, .nutrition-start, .impact)::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 10px;
  inset-inline-end: max(10px, calc((100% - 1260px) / 2));
  width: 230px;
  height: 300px;
  background: url("images/gardenia.svg") no-repeat center / contain;
  opacity: .6;
  pointer-events: none;
}
.welcome::before {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: 0;
  inset-inline-start: max(10px, calc((100% - 1260px) / 2));
  width: 230px;
  height: 300px;
  background: url("images/gardenia.svg") no-repeat center / contain;
  transform: scaleX(-1);
  opacity: .6;
  pointer-events: none;
}
.welcome::after { top: auto; bottom: 0; }
/* A softer second bunch low on the other side of the longer pages. */
:is(.story-section, .request-support, .make-difference)::before {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: 30px;
  inset-inline-start: max(6px, calc((100% - 1320px) / 2));
  width: 170px;
  height: 220px;
  background: url("images/gardenia.svg") no-repeat center / contain;
  transform: scaleX(-1) rotate(-8deg);
  opacity: .4;
  pointer-events: none;
}
[dir="rtl"] :is(.welcome, .story-section, .request-support, .make-difference)::before { transform: none; }
[dir="rtl"] :is(.welcome, .story-section, .specialists, .request-support, .make-difference, .home-links, .nutrition-start, .impact)::after { transform: scaleX(-1); }

@media (max-width: 1100px) {
  :is(.welcome, .story-section, .specialists, .request-support, .make-difference, .home-links, .nutrition-start, .impact)::after { width: 150px; height: 200px; opacity: .45; }
  :is(.welcome, .story-section, .request-support, .make-difference)::before { width: 130px; height: 170px; opacity: .35; }
}
@media (max-width: 760px) {
  /* Phones: one small bunch in the top corner, behind the title. */
  :is(.welcome, .story-section, .specialists, .request-support, .make-difference, .home-links, .nutrition-start, .impact)::after { top: 4px; bottom: auto; width: 96px; height: 130px; opacity: .38; inset-inline-end: 0; }
  :is(.welcome, .story-section, .request-support, .make-difference)::before { width: 90px; height: 120px; opacity: .3; inset-inline-start: -10px; bottom: 10px; }
  :is(.home-card, .guide-card, .condition-card, .diet-guide, .diet-tips, .gtp-layout, .recipe-book,
      .gentle-form, .specialist-group, .privacy-card, .cases-empty, .case-card, .week-table-wrap,
      .support-panel, .meal-pointer, .impact-stat) { outline-offset: -7px; }
}

/* =====================================================================
   Our Story pattern, everywhere.
   One light purple background on every page and section (no coloured bands).
   Dark purple titles, purple small labels, soft text.
   Yellow only as accents: lines, quote marks, icons, buttons, chosen options.
   Cards are white with the purple frame and yellow stitch; no solid yellow panels.
   ===================================================================== */
body, main, .band, .hero, .guides, .planner-section, .dietitian, .kitchen,
.nutrition-start, .welcome, .impact, .specialists, .request-support,
.make-difference, .home-links, .story-section, footer {
  background: var(--cream);
}
.band, .guides, .planner-section, .dietitian, .impact, .welcome { border-block: 0; }
/* A thin purple line between sections, like the one under Our Story. */
.hero, .home-links, .guides, .dietitian, .kitchen, .planner-section { border-top: 2px solid var(--line); }
footer { border-top: 2px solid var(--line); }
.hero::before, .hero::after { display: none; }   /* no colour washes */

/* Titles, labels and text: the same as Our Story. */
.section-intro h2, .story-intro h2, .welcome h2, h3 { color: var(--deep); }
.eyebrow, .welcome-eyebrow { color: var(--plum); }
.section-intro p, .welcome p { color: var(--muted); }

/* Panels that were filled yellow or deeper purple become white cards
   with a yellow line on their starting side, like the line beside the story. */
:is(.support-panel, .meal-pointer, .impact-stat, .privacy-card, .week-table-wrap) {
  background: var(--paper);
  border: 3px solid var(--frame);
  border-inline-start: 6px solid var(--sun);
  outline: 2px dashed var(--stitch);
  outline-offset: -9px;
  box-shadow: 0 6px 0 -2px #e3d2f0, 0 10px 24px #4a27630f;
}
.form-lead.form-warning { background: var(--paper); border: 2px solid var(--frame); border-inline-start: 5px solid var(--sun); }
.meal-pointer-icon, .support-emblem { background: var(--sun-soft); color: var(--sun-ink); }
.impact-num { color: var(--deep); }
.impact-label { color: var(--muted); }

/* Weekly table heading: plain light purple with a yellow line under it. */
.week-heading { background: var(--cream); border-bottom: 3px solid var(--sun); }
.weekly-diet-table thead th { background: var(--cream); }

/* Small option boxes and lists sit on white, never on yellow or deep purple. */
.sweet-choice, .week-toggle, .choice { background: var(--paper); }
.diet-tip-list li::before { background: var(--sun-soft); color: var(--sun-ink); }

/* ------------------------------------------------ Flowers, by colour
   Purple sections: the white flower from the logo, in the corners (rules above).
   Panels with a yellow line: a small lavender sprig in their top corner. */
:is(.welcome, .story-section, .specialists, .request-support, .make-difference, .home-links, .nutrition-start, .impact)::after { height: 210px; }
:is(.support-panel, .meal-pointer, .privacy-card) { position: relative; isolation: isolate; overflow: clip; }
:is(.support-panel, .meal-pointer, .privacy-card)::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 6px;
  inset-inline-end: 8px;
  width: 92px;
  height: 120px;
  background: url("images/lavender-sprigs.svg") no-repeat center / contain;
  opacity: .55;
  pointer-events: none;
}
[dir="rtl"] :is(.support-panel, .meal-pointer, .privacy-card)::after { transform: scaleX(-1); }
@media (max-width: 760px) {
  :is(.support-panel, .meal-pointer, .privacy-card)::after { width: 60px; height: 80px; opacity: .4; }
}

/* The white flower as the Our Story icon. */
.home-card-flower { background: var(--lavender); }
.home-card-flower img { width: 40px; height: 40px; }
.story-flower { display: block; width: 64px; height: 64px; margin-bottom: 8px; }
@media (max-width: 760px) { .story-flower { width: 52px; height: 52px; } }
/* White flowers are brighter than the lavender was: keep them small and soft,
   and keep them off the story text. */
:is(.welcome, .story-section, .specialists, .request-support, .make-difference, .home-links, .nutrition-start, .impact)::after { width: 150px; height: 140px; opacity: .55; }
:is(.story-section, .request-support, .make-difference)::before { width: 130px; height: 120px; opacity: .45; }
.welcome::before { width: 150px; height: 140px; opacity: .55; }
.story-section::after { display: none; }
@media (max-width: 760px) {
  :is(.welcome, .specialists, .request-support, .make-difference, .home-links, .nutrition-start, .impact)::after { width: 84px; height: 78px; opacity: .4; }
  :is(.welcome, .story-section, .request-support, .make-difference)::before { width: 76px; height: 70px; opacity: .35; }
}

/* ------------------------------------------------ Flowers on the ground
   Request Support and Ways to Give: the white flowers stand on the line at the
   bottom of the page, one in each corner, in clear space below the forms
   (never behind a box, never floating). */
:is(.request-support, .make-difference) { padding-bottom: 150px; }
:is(.request-support, .make-difference)::before,
:is(.request-support, .make-difference)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: auto;
  bottom: -9px;
  width: 150px;
  height: 136px;
  background: url("images/gardenia.svg") no-repeat center bottom / contain;
  opacity: .95;
  transform: none;
  pointer-events: none;
}
:is(.request-support, .make-difference)::before { inset-inline-start: max(16px, calc((100% - 1200px) / 2)); inset-inline-end: auto; }
:is(.request-support, .make-difference)::after { inset-inline-end: max(16px, calc((100% - 1200px) / 2)); inset-inline-start: auto; transform: scaleX(-1); width: 120px; height: 110px; }
[dir="rtl"] :is(.request-support, .make-difference)::before { transform: scaleX(-1); }
[dir="rtl"] :is(.request-support, .make-difference)::after { transform: none; }

/* Lavender sprigs: out of the text boxes. In Donations, one sprig stands on
   the bottom edge of the panel, in its empty corner. */
:is(.meal-pointer, .privacy-card)::after { display: none; }
.support-panel::after { top: auto; bottom: 4px; inset-inline-end: 22px; width: 80px; height: 104px; opacity: .8; background-position: center bottom; }

@media (max-width: 760px) {
  :is(.request-support, .make-difference) { padding-bottom: 110px; }
  :is(.request-support, .make-difference)::before { width: 104px; height: 94px; opacity: .95; }
  :is(.request-support, .make-difference)::after { width: 84px; height: 76px; opacity: .95; }
  .support-panel::after { display: none; }   /* phone panels are full of text */
}

/* Both ground flowers the same size. */
:is(.request-support, .make-difference)::after { width: 150px; height: 136px; }
@media (max-width: 760px) { :is(.request-support, .make-difference)::after { width: 104px; height: 94px; } }

/* Our Story: the flower stands on the ground in the bottom right corner,
   below the text, never behind it. */
.story-section { padding-bottom: 150px; }
.story-section::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: auto;
  bottom: -9px;
  inset-inline-start: auto;
  inset-inline-end: max(16px, calc((100% - 1200px) / 2));
  width: 150px;
  height: 136px;
  background: url("images/gardenia.svg") no-repeat center bottom / contain;
  opacity: .95;
  transform: none;
  pointer-events: none;
}
[dir="rtl"] .story-section::before { transform: scaleX(-1); }
@media (max-width: 760px) {
  .story-section { padding-bottom: 110px; }
  .story-section::before { width: 104px; height: 94px; opacity: .95; inset-inline-start: auto; bottom: -9px; }
}

/* =====================================================================
   Colour balance: white, purple, yellow (about 60 / 30 / 10).
   White: the page and the cards (most of what you see).
   Purple: titles, frames, the header and footer bands, small labels.
   Yellow: buttons, short lines, icons, chosen options.
   ===================================================================== */
:root {
  --cream: #fffeff;          /* page: white with the faintest lilac warmth */
  --paper: #ffffff;          /* cards: pure white */
  --lavender: #f4edfa;       /* the few purple-tinted areas */
  --line: #e6dcef;           /* thin dividers */
  --frame: #dccbea;          /* card frames: lighter purple */
  --frame-strong: #b593d0;
  --stitch: #f0d27a;         /* softer yellow stitch */
}
body, main, .band, .hero, .guides, .planner-section, .dietitian, .kitchen,
.nutrition-start, .welcome, .impact, .specialists, .request-support,
.make-difference, .home-links, .story-section { background: var(--cream); }

/* Purple frames the page: the header and footer carry the light purple. */
.topbar { background: color-mix(in srgb, var(--lavender) 92%, transparent); border-bottom: 2px solid var(--line); }
footer { background: var(--lavender); border-top: 2px solid var(--line); }

/* Cards: white, a lighter purple frame, a soft yellow stitch, a gentle shadow. */
:is(.home-card, .guide-card, .condition-card, .diet-guide, .diet-tips, .gtp-layout,
    .recipe-book, .gentle-form, .specialist-group, .privacy-card, .cases-empty,
    .case-card, .week-table-wrap, .dish-tag, .support-panel, .meal-pointer, .impact-stat) {
  background: var(--paper);
  border-color: var(--frame);
  box-shadow: 0 5px 0 -2px #efe6f6, 0 10px 26px #4a27630a;
}
:is(.support-panel, .meal-pointer, .impact-stat, .privacy-card, .week-table-wrap) { border-inline-start-color: var(--sun); }
.recipe-card { border-color: var(--frame); background: var(--paper); }

/* Inputs and small option boxes: white with a light purple edge. */
.gentle-form :is(input, select, textarea), :is(.choice, .condition-answer, .sweet-choice, .result-link, .week-toggle, .private-fields) {
  background: #fff;
  border-color: var(--frame);
}
.private-fields { background: #fcfaff; }

/* Small purple-tinted touches keep the purple present without filling pages. */
.home-card-icon, .specialist-avatar, .guide-icon { box-shadow: none; }
.week-heading { background: #fcf9ff; border-bottom: 3px solid var(--sun); }
.weekly-diet-table thead th { background: #faf6fd; }
.welcome { background: radial-gradient(60% 90% at 50% 0%, #f7f1fc 0%, transparent 70%), var(--cream); }

/* Text stays dark enough to read on white (all above 4.5:1). */
.section-intro p, .welcome p, .impact-label { color: #5e5466; }

/* ------------------------------------------------ Little gardens
   Each white flower now has two lavender sprigs growing beside it.
   One drawing per corner: the white flower on the outer side, the lavender
   on the inner side. */
:root {
  --g-flower: url("images/gardenia.svg");
  --g-sprig: url("images/lavender-sprigs.svg");
}

/* Flowers standing on the ground (Our Story, Request Support, Ways to Give). */
:is(.request-support, .make-difference)::before,
:is(.request-support, .make-difference)::after {
  width: 236px;
  height: 150px;
  background:
    var(--g-flower) no-repeat left bottom / 150px 136px,
    var(--g-sprig) no-repeat right 4px bottom / 96px 126px;
}
.story-section::before {
  width: 236px;
  height: 150px;
  background:
    var(--g-sprig) no-repeat left 4px bottom / 96px 126px,
    var(--g-flower) no-repeat right bottom / 150px 136px;
}

/* Welcome: a little garden on each side. */
.welcome::before, .welcome::after {
  top: auto;
  bottom: 6px;
  width: 236px;
  height: 150px;
  opacity: .9;
  transform: none;
}
.welcome::before { background: var(--g-flower) no-repeat left bottom / 150px 136px, var(--g-sprig) no-repeat right 4px bottom / 96px 126px; }
.welcome::after { background: var(--g-sprig) no-repeat left 4px bottom / 96px 126px, var(--g-flower) no-repeat right bottom / 150px 136px; }
[dir="rtl"] .welcome::before, [dir="rtl"] .welcome::after { transform: scaleX(-1); }

/* Top corners of the other pages: sprigs beside the flower. */
:is(.specialists, .home-links, .nutrition-start, .impact)::after {
  width: 220px;
  height: 140px;
  background: var(--g-sprig) no-repeat left top / 86px 112px, var(--g-flower) no-repeat right top / 140px 128px;
  opacity: .6;
}

@media (max-width: 1100px) {
  :is(.specialists, .home-links, .nutrition-start, .impact)::after { width: 160px; height: 100px; background-size: 62px 80px, 100px 92px; }
}
@media (max-width: 760px) {
  :is(.request-support, .make-difference)::before,
  :is(.request-support, .make-difference)::after {
    width: 160px; height: 104px;
    background-size: 104px 94px, 64px 84px;
    background-position: left bottom, right 2px bottom;
  }
  .story-section::before {
    width: 160px; height: 104px;
    background-size: 64px 84px, 104px 94px;
    background-position: left 2px bottom, right bottom;
  }
  /* On phones the two corner gardens on the ground would touch: keep one each side, smaller. */
  :is(.request-support, .make-difference)::after { width: 120px; background-size: 84px 76px, 50px 66px; }
  .welcome::before, .welcome::after { width: 120px; height: 80px; opacity: .55; background-size: 76px 70px, 50px 66px; }
  .welcome::after { background-size: 50px 66px, 76px 70px; }
  :is(.specialists, .home-links, .nutrition-start, .impact)::after { width: 120px; height: 80px; opacity: .45; background-size: 44px 58px, 76px 70px; }
}
/* Bigger lavender so it balances the white flower. */
@media (min-width: 761px) {
  :is(.request-support, .make-difference)::before, :is(.request-support, .make-difference)::after, .welcome::before {
    width: 262px; height: 170px; background-size: 150px 136px, 122px 160px;
  }
  .story-section::before, .welcome::after { width: 262px; height: 170px; background-size: 122px 160px, 150px 136px; }
}
@media (max-width: 760px) {
  /* Both ground gardens the same size on phones. */
  :is(.request-support, .make-difference)::before,
  :is(.request-support, .make-difference)::after { width: 150px; height: 96px; background-size: 92px 84px, 58px 76px; }
  .story-section::before { width: 150px; height: 96px; background-size: 58px 76px, 92px 84px; }
}

/* ---------- Meal photos in "A day of soft meals" ---------- */
.diet-list li.has-thumb { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px; }
.diet-thumb { width: 64px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--lavender); border: 2px solid var(--frame); }
@media (max-width: 670px) {
  .diet-list li.has-thumb { grid-template-columns: 56px 1fr; column-gap: 12px; row-gap: 8px; align-items: start; }
  .diet-list li.has-thumb .diet-thumb { width: 56px; height: 50px; grid-row: span 2; }
  .diet-list li.has-thumb .diet-recipe { justify-self: start; }
}

/* No corner flower on the Nutrition page */
.nutrition-start::after { content: none !important; }

/* ---------- Our Story ending: closing quote, heart line, lavender meadow ---------- */
.story-sign {
  display: block;
  margin-top: 34px !important;
  text-align: center;
  font: italic 400 clamp(22px, 2.2vw, 28px)/1.45 var(--serif) !important;
  color: var(--plum) !important;
  text-wrap: balance;
}
[dir="rtl"] .story-sign {
  font: 500 clamp(24px, 2.6vw, 32px)/1.6 "IBM Plex Sans Arabic", Tahoma, sans-serif !important;
  font-style: normal !important;
}
.story-heart {
  display: block;
  width: min(300px, 78%);
  height: auto;
  margin: 14px auto 0;
  fill: none;
  stroke: var(--plum);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.story-section { padding-bottom: 250px; }
.story-section::before {
  display: block;
  content: "";
  position: absolute;
  z-index: 0;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  inset-inline: 0;
  width: auto;
  height: 250px;
  opacity: 1;
  transform: none !important;
  background:
    url("images/lavender-bouquet.svg") no-repeat left max(8px, calc((100% - 1200px) / 2)) bottom 26px / 210px 228px,
    url("images/lavender-bouquet-r.svg") no-repeat right max(8px, calc((100% - 1200px) / 2)) bottom 26px / 210px 228px,
    url("images/story-hills.svg") no-repeat center bottom / 100% 86px;
  pointer-events: none;
}
.story-section > .wrap { position: relative; z-index: 1; }
@media (max-width: 760px) {
  .story-section { padding-bottom: 170px; }
  .story-section::before {
    height: 170px;
    background:
      url("images/lavender-bouquet.svg") no-repeat left 2px bottom 18px / 136px 148px,
      url("images/lavender-bouquet-r.svg") no-repeat right 2px bottom 18px / 136px 148px,
      url("images/story-hills.svg") no-repeat center bottom / 100% 56px;
  }
  .story-heart { width: min(240px, 80%); }
}

/* Phone header: the name sits on two short lines so it never runs into "العربية". */
@media (max-width: 480px) {
  .topbar .brand span { white-space: normal; line-height: 1.02; font-size: 17px; max-width: 5.6em; }
  [dir="rtl"] .topbar .brand span { max-width: none; white-space: nowrap; }
  .topbar .lang-btn { padding: 0 4px; }
}

/* =====================================================================
   One decoration for the whole site: lavender bouquets on soft hills,
   just above the footer on every page. The older white flowers and
   lavender sprigs are switched off everywhere.
   ===================================================================== */
:is(.welcome, .story-section, .specialists, .request-support, .make-difference, .home-links, .nutrition-start, .impact)::before,
:is(.welcome, .story-section, .specialists, .request-support, .make-difference, .home-links, .nutrition-start, .impact)::after,
:is(.support-panel, .meal-pointer, .privacy-card)::after { content: none !important; display: none !important; }
:is(.welcome, .story-section, .request-support, .make-difference) { padding-bottom: 62px; }

.meadow {
  height: 250px;
  margin-top: -40px;
  background:
    url("images/lavender-bouquet.svg") no-repeat left max(8px, calc((100% - 1200px) / 2)) bottom 30px / 210px 228px,
    url("images/lavender-bouquet-r.svg") no-repeat right max(8px, calc((100% - 1200px) / 2)) bottom 30px / 210px 228px,
    url("images/meadow-hills.svg") no-repeat center bottom / 100% 92px;
  pointer-events: none;
}
.meadow + footer { border-top: 0; }
@media (max-width: 760px) {
  :is(.welcome, .story-section, .request-support, .make-difference) { padding-bottom: 44px; }
  .meadow {
    height: 170px;
    margin-top: -20px;
    background:
      url("images/lavender-bouquet.svg") no-repeat left 2px bottom 20px / 136px 148px,
      url("images/lavender-bouquet-r.svg") no-repeat right 2px bottom 20px / 136px 148px,
      url("images/meadow-hills.svg") no-repeat center bottom / 100% 60px;
  }
}

/* =====================================================================
   Page colours, in menu order.
   Odd pages (Our Story, Specialists, Our Impact): more violet.
   Even pages (Nutrition, Request Support, Ways to Give): more yellow.
   Less plain white everywhere: pages are tinted, cards stay near-white
   so text is easy to read.
   ===================================================================== */
:root {
  --cream: #faf6fd;            /* Home: a soft lilac white */
  --paper: #fffeff;
  --card-shadow: #ece2f5;
  --panel-line: var(--sun);
}
html:is([data-page="our-story"], [data-page="specialists"], [data-page="impact"]) {
  --cream: #f4ecfa;
  --lavender: #e9dcf5;
  --paper: #fffdff;
  --line: #dac7ec;
  --frame: #c6a7de;
  --frame-strong: #9d73c1;
  --stitch: #f0cd5e;
  --card-shadow: #e3d3f1;
  --panel-line: var(--sun);
}
html:is([data-page="nutrition"], [data-page="request-support"], [data-page="make-a-difference"]) {
  --cream: #fff6dc;
  --lavender: #fdecb8;
  --paper: #fffdf6;
  --line: #f0d88c;
  --frame: #ecc95f;
  --frame-strong: #d9a826;
  --stitch: #b892d6;
  --card-shadow: #f5e2a6;
  --panel-line: #a57fc4;
}
:is(.home-card, .guide-card, .condition-card, .diet-guide, .diet-tips, .gtp-layout,
    .recipe-book, .gentle-form, .specialist-group, .privacy-card, .cases-empty,
    .case-card, .week-table-wrap, .dish-tag, .support-panel, .meal-pointer, .impact-stat) {
  box-shadow: 0 5px 0 -2px var(--card-shadow), 0 10px 26px #4a27630d;
}
:is(.support-panel, .meal-pointer, .impact-stat, .privacy-card, .week-table-wrap) { border-inline-start-color: var(--panel-line); }
.week-heading, .weekly-diet-table thead th { background: color-mix(in srgb, var(--cream) 60%, #fff); }
.welcome { background: radial-gradient(60% 90% at 50% 0%, #f3eafb 0%, transparent 70%), var(--cream); }

/* The meadow's hills take the footer colour, so they melt into it on every page. */
.meadow { position: relative; }
.meadow::before, .meadow::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 92px;
  z-index: -1;
  -webkit-mask: url("images/hill-back.svg") no-repeat center bottom / 100% 100%;
          mask: url("images/hill-back.svg") no-repeat center bottom / 100% 100%;
  background: color-mix(in srgb, var(--lavender) 55%, var(--cream));
}
.meadow::after {
  -webkit-mask-image: url("images/hill-front.svg");
          mask-image: url("images/hill-front.svg");
  background: var(--lavender);
}
.meadow {
  isolation: isolate;
  background:
    url("images/lavender-bouquet.svg") no-repeat left max(8px, calc((100% - 1200px) / 2)) bottom 30px / 210px 228px,
    url("images/lavender-bouquet-r.svg") no-repeat right max(8px, calc((100% - 1200px) / 2)) bottom 30px / 210px 228px;
}
@media (max-width: 760px) {
  .meadow::before, .meadow::after { height: 60px; }
  .meadow {
    background:
      url("images/lavender-bouquet.svg") no-repeat left 2px bottom 20px / 136px 148px,
      url("images/lavender-bouquet-r.svg") no-repeat right 2px bottom 20px / 136px 148px;
  }
}
/* Layers: back hill, front hill, then the bouquets standing in front. */
.meadow { background: none !important; }
.meadow::before, .meadow::after { z-index: 0; }
.meadow-flowers {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    url("images/lavender-bouquet.svg") no-repeat left max(8px, calc((100% - 1200px) / 2)) bottom 30px / 210px 228px,
    url("images/lavender-bouquet-r.svg") no-repeat right max(8px, calc((100% - 1200px) / 2)) bottom 30px / 210px 228px;
}
@media (max-width: 760px) {
  .meadow-flowers {
    background:
      url("images/lavender-bouquet.svg") no-repeat left 2px bottom 20px / 136px 148px,
      url("images/lavender-bouquet-r.svg") no-repeat right 2px bottom 20px / 136px 148px;
  }
}

/* ---------- Home: flower garland, lavender waves, yellow swoosh ---------- */
.welcome-garland { display: block; width: min(620px, 100%); height: auto; margin-top: 26px; }
.welcome { padding-bottom: 30px !important; }
.hero {
  padding-top: 70px;
  background:
    url("images/hero-wave.svg") no-repeat center top / 100% 90px,
    linear-gradient(to bottom, transparent 0 89px, #efe5f8 89px, color-mix(in srgb, #efe5f8 45%, var(--cream)) 70%, var(--cream)) !important;
  border-top: 0 !important;
}
.hero h1::after {
  content: "";
  display: block;
  width: min(360px, 80%);
  height: 16px;
  margin-top: 10px;
  background: url("images/swoosh.svg") no-repeat center / 100% 100%;
}
[dir="rtl"] .hero h1::after { transform: scaleX(-1); }
@media (max-width: 760px) {
  .welcome-garland { margin-top: 18px; }
  .hero { padding-top: 44px; background-size: 100% 60px, auto !important; }
  .hero { background:
    url("images/hero-wave.svg") no-repeat center top / 100% 60px,
    linear-gradient(to bottom, transparent 0 59px, #efe5f8 59px, color-mix(in srgb, #efe5f8 45%, var(--cream)) 70%, var(--cream)) !important; }
}

/* Softer page tints: mostly white, each page only leaning violet or yellow. */
:root { --cream: #fefcff; --paper: #ffffff; }
html:is([data-page="our-story"], [data-page="specialists"], [data-page="impact"]) {
  --cream: #fbf8fe;
  --lavender: #efe6f8;
  --paper: #ffffff;
  --frame: #d4bce6;
}
html:is([data-page="nutrition"], [data-page="request-support"], [data-page="make-a-difference"]) {
  --cream: #fffcf2;
  --lavender: #fcf0c8;
  --paper: #ffffff;
  --frame: #f0d47c;
}

/* Both colours on every page; one leads.
   Violet pages: violet frames and bands, with yellow side panels and stitches.
   Yellow pages: yellow frames and bands, with lavender side panels and stitches. */
html:is([data-page="our-story"], [data-page="specialists"], [data-page="impact"]) :is(.support-panel, .meal-pointer, .privacy-card, .impact-stat, .specialist-thanks) {
  background: #fffaea;
  border-color: #f0d47c;
  border-inline-start-color: var(--sun);
}
html:is([data-page="nutrition"], [data-page="request-support"], [data-page="make-a-difference"]) :is(.support-panel, .meal-pointer, .privacy-card, .diet-tips, .week-heading) {
  background: #f8f2fd;
  border-color: #d4bce6;
  border-inline-start-color: #a57fc4;
}
html:is([data-page="nutrition"], [data-page="request-support"], [data-page="make-a-difference"]) .eyebrow-rule { background: #a57fc4; }
html:is([data-page="our-story"], [data-page="specialists"], [data-page="impact"]) .eyebrow-rule { background: var(--sun-strong); }

/* ---------- Garlands under section titles ----------
   Purple-led pages: the white flowers. Yellow-led pages: the lavender sprigs. */
:is(.section-intro, .story-intro):not(.welcome-intro)::after {
  content: "";
  display: block;
  width: min(340px, 86%);
  aspect-ratio: 8 / 1;
  margin-top: 16px;
  background: url("images/garland.svg?v=2") no-repeat center / contain;
}
html:is([data-page="nutrition"], [data-page="request-support"], [data-page="make-a-difference"]) :is(.section-intro, .story-intro)::after {
  background-image: url("images/lavender-garland.svg?v=2");
}
html[data-page="home"] .home-links .section-intro::after { background-image: url("images/lavender-garland.svg?v=2"); }


/* ---------- Garlands live in the meadow at the bottom of each page, not under titles ---------- */
:is(.section-intro, .story-intro)::after { content: none !important; }
.meadow-flowers {
  --garland: url("images/garland.svg?v=2");
  background:
    url("images/lavender-bouquet.svg") no-repeat left max(8px, calc((100% - 1200px) / 2)) bottom 30px / 210px 228px,
    url("images/lavender-bouquet-r.svg") no-repeat right max(8px, calc((100% - 1200px) / 2)) bottom 30px / 210px 228px,
    var(--garland) no-repeat center bottom 58px / min(460px, 46%) auto;
}
html:is([data-page="nutrition"], [data-page="request-support"], [data-page="make-a-difference"]) .meadow-flowers {
  --garland: url("images/lavender-garland.svg?v=2");
}
@media (max-width: 760px) {
  .meadow-flowers {
    background:
      url("images/lavender-bouquet.svg") no-repeat left 0 bottom 20px / 112px 122px,
      url("images/lavender-bouquet-r.svg") no-repeat right 0 bottom 20px / 112px 122px,
      var(--garland) no-repeat center bottom 40px / 150px auto;
  }
}

/* Our Story card icon: same yellow circle as the other cards. */
.home-card-icon.home-card-flower { background: var(--sun-soft); }
.home-card:hover .home-card-icon.home-card-flower { background: var(--sun); }

/* Home cards: the drawn round icons carry their own yellow circle and purple ring. */
.home-card-icon.home-card-pic { width: 64px; height: 64px; background: none !important; padding: 0; }
.home-card-pic img { width: 64px; height: 64px; display: block; border-radius: 50%; transition: transform 250ms; }
@media (hover: hover) { .home-card:hover .home-card-pic img { transform: scale(1.06); } }
@media (max-width: 670px) { .home-card-icon.home-card-pic, .home-card-pic img { width: 56px; height: 56px; } }

/* Footer ends with its last sentence. */
footer .footer-wrap { padding-bottom: 34px; }
/* Our Story icon matches the drawn ones: same size, yellow circle, purple ring. */
.home-card-icon.home-card-flower { width: 64px; height: 64px; background: #f9e6b4 !important; box-shadow: inset 0 0 0 3px #872d6e; }
.home-card-flower img { width: 42px; height: 42px; }
@media (max-width: 670px) { .home-card-icon.home-card-flower { width: 56px; height: 56px; } .home-card-flower img { width: 36px; height: 36px; } }
.home-card-icon.home-card-flower { background: #f9e7b6 !important; }

/* Brand name in a warm handwritten font (English). Arabic keeps its own font. */
html:not([dir="rtl"]) .brand span {
  font-family: "Dancing Script", var(--serif);
  font-weight: 700;
  letter-spacing: 0;
  font-size: 1.22em;
  line-height: 1;
}
/* Our Story icon: the flower as before, with a ring as thin as the other icons' (2px at this size). */
.home-card-icon.home-card-flower { background: #f8e7b6 !important; box-shadow: inset 0 0 0 2px #892c6d; }

/* Meadow garlands: larger flowers so they sit in proportion with the bouquets. */
.meadow-flowers {
  --garland: url("images/garland-big.svg");
  background:
    url("images/lavender-bouquet.svg") no-repeat left max(8px, calc((100% - 1200px) / 2)) bottom 30px / 210px 228px,
    url("images/lavender-bouquet-r.svg") no-repeat right max(8px, calc((100% - 1200px) / 2)) bottom 30px / 210px 228px,
    var(--garland) no-repeat center bottom 34px / min(520px, 46%) auto;
}
html:is([data-page="nutrition"], [data-page="request-support"], [data-page="make-a-difference"]) .meadow-flowers {
  --garland: url("images/lavender-garland-big.svg");
}
@media (max-width: 760px) {
  .meadow-flowers {
    background:
      url("images/lavender-bouquet.svg") no-repeat left 0 bottom 20px / 112px 122px,
      url("images/lavender-bouquet-r.svg") no-repeat right 0 bottom 20px / 112px 122px,
      var(--garland) no-repeat center bottom 26px / 170px auto;
  }
}
/* Garland sits a little higher, above the hills. */
.meadow-flowers { background-position: left max(8px, calc((100% - 1200px) / 2)) bottom 30px, right max(8px, calc((100% - 1200px) / 2)) bottom 30px, center bottom 62px; }
@media (max-width: 760px) { .meadow-flowers { background-position: left 0 bottom 20px, right 0 bottom 20px, center bottom 42px; } }


/* The meadow: two lavender bouquets on the hills, no middle garland (all pages). */
.meadow-flowers {
  background:
    url("images/lavender-bouquet.svg") no-repeat left max(8px, calc((100% - 1200px) / 2)) bottom 30px / 210px 228px,
    url("images/lavender-bouquet-r.svg") no-repeat right max(8px, calc((100% - 1200px) / 2)) bottom 30px / 210px 228px;
}
@media (max-width: 760px) {
  .meadow-flowers {
    background:
      url("images/lavender-bouquet.svg") no-repeat left 0 bottom 20px / 112px 122px,
      url("images/lavender-bouquet-r.svg") no-repeat right 0 bottom 20px / 112px 122px;
  }
}

/* ---------- "Did you find this useful?" box ---------- */
.feedback-box {
  position: fixed;
  z-index: 30;
  bottom: 20px;
  inset-inline-start: 20px;
  width: min(330px, calc(100% - 96px));
  padding: 22px 20px 18px;
  background: #fff;
  border: 3px solid var(--frame);
  outline: 2px dashed var(--stitch);
  outline-offset: -9px;
  border-radius: 20px;
  box-shadow: 0 6px 0 -2px var(--card-shadow), 0 18px 40px #4a27632e;
  text-align: center;
  opacity: 0;
  transform: translateY(40px) scale(.94);
  transition: opacity 380ms ease, transform 520ms cubic-bezier(.2, 1.35, .35, 1);
}
.feedback-box.is-open { opacity: 1; transform: none; }
.feedback-box.is-leaving { opacity: 0; transform: translateY(24px) scale(.96); transition-duration: 300ms; }
.feedback-close {
  position: absolute; top: 8px; inset-inline-end: 10px;
  width: 36px; height: 36px; border-radius: 50%;
  background: transparent; color: #7b6a86; font-size: 24px; line-height: 1;
}
.feedback-close:hover { background: var(--lavender); color: var(--deep); }
.feedback-title { margin: 0 18px 6px; font: 400 21px/1.3 var(--serif); color: var(--deep); }
[dir="rtl"] .feedback-title { font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif; font-weight: 600; }
.feedback-lead { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: #5e5466; }
.feedback-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.feedback-yes {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--sun); color: var(--sun-ink); font-weight: 700; font-size: 15px;
  box-shadow: 0 4px 0 -1px #e0a81c;
  transition: transform 200ms, background-color 200ms;
}
.feedback-yes:hover { transform: translateY(-2px); background: #f7cf52; }
.feedback-no { min-height: 40px; padding: 0 12px; background: none; color: #6b5c75; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.feedback-heart { width: 24px; height: 24px; fill: #e2566f; stroke: #b8324d; stroke-width: 1.2; }
.feedback-box.is-open .feedback-yes .feedback-heart { animation: feedback-beat 1.6s ease-in-out 1s infinite; }
.feedback-thanks .feedback-heart { width: 54px; height: 54px; margin: 2px auto 8px; display: block; }
.feedback-box.said-yes .feedback-thanks .feedback-heart { animation: feedback-pop 700ms cubic-bezier(.2, 1.6, .35, 1) both; }
.feedback-box.said-no .feedback-thanks .feedback-heart { fill: var(--frame); stroke: var(--frame-strong); }
@keyframes feedback-beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(.96); } 45% { transform: scale(1.12); } }
@keyframes feedback-pop { 0% { transform: scale(.2); opacity: 0; } 70% { transform: scale(1.18); opacity: 1; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .feedback-box, .feedback-box.is-leaving { transition: opacity 200ms; transform: none; }
  .feedback-box .feedback-heart { animation: none !important; }
}
@media (max-width: 480px) {
  .feedback-box { bottom: 14px; inset-inline-start: 12px; padding: 18px 14px 14px; }
  .feedback-title { font-size: 19px; }
}

/* ---------- Soft waves on the plain backgrounds (every section) ---------- */
main .band:not(.welcome) {
  --wave-low: url("images/wave-ribbon-lav.svg");
  background-image: var(--wave-low);
  background-repeat: no-repeat;
  background-position: center bottom 18px;
  background-size: 100% 84px;
  padding-bottom: 112px;
}
html:is([data-page="nutrition"], [data-page="request-support"], [data-page="make-a-difference"]) main .band:not(.welcome) {
  --wave-low: url("images/wave-ribbon-sun.svg");
}
@media (max-width: 760px) {
  main .band:not(.welcome) {
    background-position: center bottom 10px;
    background-size: 100% 56px;
    padding-bottom: 76px;
  }
}
