/* ===================================================================
   Nutrition question, specialists, forms, cases and impact
   =================================================================== */

/* Six menu links need a little less space between them. */
/* Six menu links fit on one line from 1201px; below that the menu button opens them. */
@media (min-width: 761px) {
  .nav-wrap { gap: 16px; }
  .nav-links { gap: 18px; }
  .nav-actions { gap: 14px; }
}
.nav-links a { white-space: nowrap; }

.band h3 { letter-spacing: -.02em; }

/* ---------------------------------------------------------- Nutrition start */
.nutrition-start { background: var(--paper); border-block: 1px solid #e6dccb; }
.condition-card {
  max-width: 760px;
  padding: 28px;
  border: 1px solid #e3d9cc;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px #3d2e420d;
}
.condition-card h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; }
.condition-answers { display: flex; gap: 12px; margin-top: 18px; }
.condition-answer {
  min-width: 120px;
  min-height: 52px;
  padding: 0 26px;
  border: 1.5px solid #cdbfd3;
  border-radius: 999px;
  background: var(--paper);
  color: var(--deep);
  font-size: 16px;
  font-weight: 700;
  transition: background-color 200ms, border-color 200ms, color 200ms;
}
.condition-answer:hover { border-color: var(--plum); }
.condition-answer[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.condition-pick { margin-top: 22px; }
.condition-pick-label { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.condition-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.condition-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 200ms, background-color 200ms, box-shadow 200ms;
}
.condition-option input { position: absolute; opacity: 0; pointer-events: none; }
.condition-option:hover { border-color: #b99cc3; }
.condition-option:has(:checked) { border-color: var(--plum); background: var(--lavender); box-shadow: 0 0 0 3px #9777a430; }
.condition-option:has(:focus-visible) { outline: 3px solid var(--plum); outline-offset: 3px; }
.condition-option-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--lavender); color: var(--plum); }
.condition-option-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.condition-result { margin-top: 22px; padding: 18px 20px; border-radius: 14px; background: #f6f1e7; border-inline-start: 4px solid var(--accent, var(--plum)); }
.result-title { font: 400 21px/1.3 var(--serif); color: var(--ink); }
.result-text { margin-top: 6px; color: var(--muted); font-size: 15px; }
.result-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.result-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d9c8de;
  color: var(--deep);
  font-size: 14px;
  font-weight: 700;
  transition: background-color 200ms, color 200ms, border-color 200ms;
}
.result-link .ico { width: 15px; height: 15px; }
.result-link:hover { background: var(--plum); border-color: var(--plum); color: #fff; }
.result-link:first-child { background: var(--plum); border-color: var(--plum); color: #fff; }
.result-link:first-child:hover { background: var(--deep); }

/* ------------------------------------------------------------- Specialists */
.specialists { background: var(--lavender); border-block: 1px solid #e2dbe4; }
.specialist-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.specialist-group { padding: 22px; border-radius: 18px; background: var(--paper); border: 1px solid #ddd2df; }
.specialist-group h3 { font-size: 22px; margin-bottom: 12px; }
.specialist-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.specialist { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px dashed #e4dbe4; }
.specialist:first-child { border-top: 0; padding-top: 0; }
.specialist-avatar { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--lavender); color: var(--plum); border: 2px solid #fff; box-shadow: 0 0 0 1px #d9c8de; }
.specialist-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.specialist-text { display: grid; }
.specialist-name.is-quiet { font-weight: 600; font-style: italic; color: var(--plum); }
.specialist-thanks { display: flex; align-items: flex-start; justify-content: center; gap: 10px; max-width: 720px; margin: -8px auto 26px; color: var(--plum); font-size: 15.5px; line-height: 1.6; text-align: center; }
.specialist-thanks .ico { flex: none; width: 18px; height: 18px; margin-top: 4px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.specialist-name { font-size: 15px; color: var(--ink); }
.specialist-role { font-size: 14px; color: var(--muted); }

/* -------------------------------------------------------------------- Forms */
.gentle-form {
  padding: 28px;
  border: 1px solid #e3d9cc;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px #3d2e420a;
}
.gentle-form > h3 { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 8px; }
.form-lead { color: var(--muted); font-size: 15px; margin-bottom: 18px; max-width: 680px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.field-wide { grid-column: 1 / -1; }
.field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.field label:not(.choice), .field legend { display: block; margin-bottom: 6px; padding: 0; font-weight: 700; font-size: 15px; color: var(--ink); }
.req { color: #b4452e; }
.field-hint { margin: -2px 0 8px; color: var(--muted); font-size: 13.5px; }
.field input:not([type="checkbox"]):not([type="radio"]), .field textarea, .field select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid #c9bccd;
  border-radius: 12px;
  background: #fffefb;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 200ms, box-shadow 200ms;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px #9777a440; }
.field [aria-invalid="true"] { border-color: #b4452e !important; }
.field-error { margin-top: 6px; color: #a63c27; font-size: 14px; font-weight: 600; }
.choice-list { display: grid; gap: 8px; }
.choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 200ms, background-color 200ms;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-box {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 1px;
  border: 2px solid #a995b0;
  border-radius: 6px;
  background: #fff;
  transition: background-color 150ms, border-color 150ms;
}
.choice input[type="radio"] + .choice-box { border-radius: 50%; }
.choice:hover { border-color: #b99cc3; }
.choice:has(:checked) { border-color: var(--plum); background: var(--lavender); }
.choice:has(:checked) .choice-box { background: var(--plum); border-color: var(--plum); }
.choice:has(:checked) .choice-box::after { content: ""; width: 10px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; rotate: -45deg; translate: 0 -1px; }
.choice input[type="radio"]:checked + .choice-box::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; rotate: 0deg; translate: 0 0; }
.choice:has(:focus-visible) { outline: 3px solid var(--plum); outline-offset: 2px; }
.choice-group[aria-invalid="true"] .choice, .choice-group:has(.field-error:not([hidden])) .choice { border-color: #d9a69a; }
.consent { background: #fbf8f1; }
.private-fields { margin: 4px 0 18px; padding: 18px 18px 2px; border: 1.5px dashed #d6c9da; border-radius: 16px; background: #fcfaf6; }
.private-fields > legend { padding: 0 8px; font-weight: 700; color: var(--plum); font-size: 14px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.form-actions .button:disabled { opacity: .7; cursor: progress; }
.form-status { font-size: 15px; font-weight: 600; }
.form-status.is-done { color: #2f6b3c; }
.form-status.is-error { color: #a63c27; }
.form-offline { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: #fbeee9; color: #6b2f22; font-size: 14px; }

/* ---------------------------------------------------------- Request support */
.request-support { background: var(--cream); }
.request-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 34px; align-items: start; }
.request-aside { position: sticky; top: 104px; }
.privacy-card { padding: 20px 22px; border-radius: 16px; background: var(--lavender); border: 1px solid #ddd2df; }
.privacy-card h3 { font-size: 20px; margin-bottom: 8px; }
.privacy-card ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; color: #4b4250; font-size: 15px; }

/* -------------------------------------------------------- Make a difference */
.make-difference { background: #f6f1e7; border-block: 1px solid #e6dccb; }
.make-difference .support-panel { margin-bottom: 26px; }
.donate-button { margin-top: 16px; }
.cases-block { margin-bottom: 26px; }
.cases-block h3 { font-size: clamp(24px, 2.2vw, 30px); }
.cases-lead { color: var(--muted); font-size: 15px; margin: 6px 0 16px; }
.case-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 16px; background: #fff; border: 1px solid #e3d9cc; }
.case-id { align-self: flex-start; padding: 2px 9px; border-radius: 999px; background: var(--lavender); color: var(--plum); font-size: 12px; font-weight: 700; }
.case-need { font: 400 22px/1.25 var(--serif); }
.case-who { color: var(--muted); font-size: 14px; }
.case-bar { height: 8px; margin-top: 8px; border-radius: 99px; background: #eee6ef; overflow: hidden; }
.case-bar-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e8bf4f, var(--accent, var(--plum))); }
.case-money { font-size: 14px; font-weight: 600; color: var(--deep); }
.case-help { align-self: flex-start; margin-top: 8px; padding: 10px 16px; }
.cases-empty { padding: 18px 20px; border-radius: 14px; background: #fff; border: 1px dashed #d6c9da; color: var(--muted); font-size: 15px; }

/* -------------------------------------------------------------------- Impact */
.impact { background: var(--deep); color: #fff; border: 0; }
.impact .eyebrow { color: #e8cf8a; }
.impact .eyebrow-rule { background: #e8cf8a; }
.impact .section-intro h2 { color: #fff; }
.impact .section-intro p { color: #e5d9ea; }
.impact-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.impact-stat { display: flex; flex-direction: column; gap: 8px; padding: 24px 22px; border-radius: 18px; background: #ffffff12; border: 1px solid #ffffff24; }
.impact-num { font: 400 clamp(36px, 4vw, 52px)/1 var(--serif); color: #fff; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.impact-label { color: #e5d9ea; font-size: 15px; line-height: 1.45; }
.impact-sub { margin-top: auto; padding-top: 6px; color: var(--sun, #f2c94c); font-size: 14px; font-weight: 600; }
.impact-sub.impact-given { color: #e5d9ea; font-weight: 500; }
.impact-sub.impact-given + .impact-sub { margin-top: 0; padding-top: 2px; }
.case-volunteer { display: flex; align-items: center; gap: 7px; margin-top: 6px; color: var(--plum); font-size: 14px; font-weight: 600; }
.case-volunteer .ico { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.impact-updated { margin-top: 16px; color: #cdbcd5; font-size: 13px; }

/* ------------------------------------------------------------------- Phones */
@media (max-width: 860px) {
  .request-layout { grid-template-columns: 1fr; gap: 22px; }
  .request-aside { position: static; }
  .case-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 670px) {
  .condition-card, .gentle-form { padding: 20px 16px; border-radius: 16px; }
  .condition-answers .condition-answer { flex: 1; min-width: 0; }
  .condition-options { grid-template-columns: 1fr; }
  .specialist-groups { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .case-list { grid-template-columns: 1fr; }
  .impact-stat { padding: 18px 16px; }
  .result-links { flex-direction: column; }
  .result-link { justify-content: space-between; }
  .form-actions .button { width: 100%; }
}

/* Buttons stay hidden until their link is set. */
.donate-button[hidden], .form-offline[hidden], .condition-pick[hidden], .condition-result[hidden] { display: none !important; }

/* Spam trap: off-screen, never shown to people or screen readers. */
.form-trap { position: absolute; top: 0; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.gentle-form { position: relative; }

/* ---- Showing only what fits the visitor's answer ----
   No condition: hide the heart, diabetes and allergy guides and planner choices.
   One condition: show that guide next to the everyday one. */
html[data-condition="none"] .guide-card:not([data-guide="everyday"]),
html[data-condition="none"] #meal-plan-choice,
html[data-condition="heart"] .guide-card:not([data-guide="heart"]):not([data-guide="everyday"]),
html[data-condition="diabetes"] .guide-card:not([data-guide="diabetes"]):not([data-guide="everyday"]),
html[data-condition="allergy"] .guide-card:not([data-guide="allergy"]):not([data-guide="everyday"]) { display: none; }

/* ---- One page at a time ---- */
[data-page][hidden] { display: none !important; }
/* Page headings get focus when a page opens (so screen readers announce it).
   They are not buttons, so never draw a focus box around them (Safari did). */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }
.nav-links a[aria-current="page"], .footer-nav a[aria-current="page"] { color: var(--plum); }
@media (min-width: 761px) { .nav-links a[aria-current="page"]::after { transform: scaleX(1); } }
@media (max-width: 760px) {
  .nav-links a[aria-current="page"] { font-weight: 800; }
  .nav-links a[aria-current="page"]::before { content: ""; display: inline-block; width: 4px; height: 18px; margin-inline-end: 10px; border-radius: 3px; background: var(--accent, var(--plum)); vertical-align: middle; }
}
/* Each page gets a little breathing room above the footer. */
main > :is(section, div)[data-page]:not([hidden]):last-of-type { margin-bottom: 0; }

/* ---- Home page overview ---- */
.home-links { background: var(--paper); border-top: 1px solid var(--line); }
.home-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  height: 100%;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: border-color 220ms, box-shadow 250ms, translate 250ms cubic-bezier(.2,.75,.25,1);
}
.home-card-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--sun-soft, var(--lavender)); color: var(--sun-ink, var(--plum)); transition: background-color 250ms; }
.home-card-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-card-text { display: grid; gap: 4px; flex: 1; }
.home-card-text strong { font: 400 22px/1.2 var(--serif); color: var(--ink); }
.home-card-text span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.home-card-arrow { width: 18px; height: 18px; margin-top: 4px; color: var(--plum); transition: translate 250ms; }
@media (hover: hover) {
  .home-card:hover { border-color: #d9c38a; box-shadow: 0 12px 26px #3d2e4214; }
  .home-card:hover .home-card-icon { background: var(--sun, #f6d063); }
  [data-motion="on"] .home-card:hover { translate: 0 -3px; }
  [data-motion="on"] .home-card:hover .home-card-arrow { translate: calc(4px * var(--motion-side, 1)) 0; }
}
.home-card:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }
@media (max-width: 860px) { .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .home-grid { grid-template-columns: 1fr; } .home-card { padding: 18px 16px; } }

/* "Need help with meals?" pointer beside the support request form */
.meal-pointer {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--sun-tint, #fdf8e8);
  border: 1px solid #efe1b4;
}
.meal-pointer-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--sun-soft, #fcefc4); color: var(--sun-ink, var(--deep)); }
.meal-pointer-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.meal-pointer h3 { font-size: 19px; margin-bottom: 4px; }
.meal-pointer p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.meal-pointer-link { margin-top: 12px; }
.expertise-invite { max-width: 820px; margin: 0 auto 28px; }
.expertise-invite .meal-pointer-note { margin-top: 8px; color: var(--plum); font-weight: 600; }
[dir="rtl"] .meal-pointer p { font-size: 15.5px; line-height: 1.85; }

/* ---------- Nourishing Your Recovery: numbered tips with a title each */
.diet-tips-lead { margin: -6px 0 18px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.diet-tip-list { gap: 16px; }
.diet-tip-list li { grid-template-columns: 38px minmax(0, 1fr); }
.diet-tip-list li::before { content: counter(tip, decimal-leading-zero); width: 38px; height: 38px; font-size: 13.5px; letter-spacing: .02em; }
[dir="rtl"] .diet-tip-list li::before { content: counter(tip, arabic-indic); font-size: 15px; }
.tip-body { display: grid; gap: 3px; }
.tip-title { color: var(--deep); font-size: 16px; line-height: 1.35; font-weight: 700; }
[dir="rtl"] .tip-title { font-size: 17px; }

/* ---------- Forms: emergency note, hints above fields */
.form-warning {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px;
  background: var(--sun-tint, #fdf8e8); border: 1px solid #f0dc9e;
  color: var(--sun-ink, #3b2a0d); font-size: 14.5px; line-height: 1.55;
}
.form-warning .ico { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.field > .field-hint, fieldset > .field-hint { margin: -2px 0 8px; }

/* ---------- Request support intro and nutrition pointer */
.request-promise { font-weight: 600; color: var(--deep); }
.meal-pointer-note { margin-top: 6px; font-weight: 600; color: var(--deep); }

/* ---------- Footer motto */
.footer-motto { color: var(--deep); font-weight: 600; margin-bottom: 4px; }

/* ---------- Home: welcome block at the very top */
.welcome {
  padding-block: 56px 50px;
  background:
    radial-gradient(60% 120% at 50% 0%, var(--sun-soft, #fcefc4) 0%, transparent 70%),
    var(--lavender, #efe8f5);
  border-bottom: 1px solid #e6dcea;
  text-align: center;
}
.welcome-intro { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.welcome-logo { width: 72px; height: 72px; margin-bottom: 14px; }
.welcome-eyebrow { justify-content: center; }
.welcome h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.12; margin: 10px 0 14px; color: var(--ink); }
.welcome p { font-size: 18px; line-height: 1.7; color: #514855; max-width: 640px; margin: 0; }
[dir="rtl"] .welcome p { font-size: 19px; line-height: 1.85; }
@media (max-width: 760px) {
  .welcome { padding-block: 38px 34px; }
  .welcome-logo { width: 60px; height: 60px; }
  .welcome h2 { font-size: clamp(28px, 8vw, 36px); }
  .welcome p { font-size: 16px; }
  [dir="rtl"] .welcome p { font-size: 17px; }
}
