  :root{
    --ink:#2B2620;
    --cream:#FBF6EA;
    --millet:#F4EDDB;
    --sukuma:#2F4A3D;
    --sukuma-light:#4C7059;
    --ndengu:#7FA84F;
    --sweet-potato:#E0762C;
    --sweet-potato-deep:#AE5619;
    --sweet-potato-text:#A84D18;
    --egg-yolk:#F0A93A;
    --berry:#B85C6B;
    --iron:#8A2E3A;
    --vitc:#C9601F;
    --line: rgba(43,38,32,0.12);
    --mobile-bar-h: 64px;
  }
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{ margin:0; background:var(--cream); color:var(--ink); font-family:'Work Sans', sans-serif; -webkit-font-smoothing:antialiased;}
  h1,h2,h3,h4,.display{ font-family:'Fraunces', serif; font-weight:600; letter-spacing:-0.01em;}
  .mono{ font-family:'JetBrains Mono', monospace; letter-spacing:0.02em;}

  .weave{
    background-image:
      repeating-linear-gradient(45deg, rgba(255,255,255,0.09) 0 2px, transparent 2px 14px),
      repeating-linear-gradient(-45deg, rgba(0,0,0,0.07) 0 2px, transparent 2px 14px);
  }

  header.hero{ background:var(--sukuma); color:var(--cream); position:relative; overflow:hidden;}
  header.hero .weave{ position:absolute; inset:0; opacity:0.6; pointer-events:none;}
  .eyebrow{ font-family:'JetBrains Mono', monospace; font-size:0.7rem; letter-spacing:0.14em; text-transform:uppercase; color:var(--egg-yolk);}

  nav.subnav{
    position:sticky; top:0; z-index:40;
    background:rgba(251,246,234,0.92);
    backdrop-filter: blur(6px);
    border-bottom:1px solid var(--line);
    box-shadow:0 4px 14px rgba(43,38,32,0.06);
  }
  nav.subnav a{
    font-size:0.78rem; font-weight:600; color:var(--ink); opacity:0.65;
    text-decoration:none; white-space:nowrap; padding:0.85rem 0.15rem; border-bottom:2px solid transparent;
    display:flex; align-items:center; min-height:44px;
  }
  nav.subnav a:hover{ opacity:1; border-color:var(--sweet-potato);}

  /* ---- Age stage cards (clickable "months") ---- */
  /* Fluid: naturally drops to one column on narrow phones (~<340px per
     card), 2 columns on typical phones, and explicit 5-across from
     tablet width up — no hard breakpoint needed for the narrow case. */
  .age-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(148px, 1fr)); gap:0.6rem;}
  @media (min-width:640px){ .age-grid{ grid-template-columns:repeat(5,1fr);} }
  .age-card{
    border:1.5px solid rgba(251,246,234,0.25); background:rgba(251,246,234,0.06);
    border-radius:14px; padding:0.85rem 0.7rem; cursor:pointer; text-align:left;
    transition:all .18s ease; color:var(--cream); min-height:76px;
  }
  .age-card:hover{ border-color:rgba(251,246,234,0.5); background:rgba(251,246,234,0.12);}
  .age-card:active{ transform:scale(0.98);}
  .age-card.active{ background:var(--egg-yolk); border-color:var(--egg-yolk); color:var(--sukuma); box-shadow:0 6px 18px rgba(0,0,0,0.2);}
  .age-card.active .range::before{ content:'✓ '; }
  .age-card .range{ font-weight:700; font-size:0.92rem; display:block;}
  .age-card .label{ font-size:0.72rem; opacity:0.8; margin-top:0.15rem; display:block;}

  .btn-primary{
    background:var(--sweet-potato-deep); color:#fff; border:none; border-radius:12px; padding:0.85rem 1.5rem;
    font-weight:600; font-size:0.95rem; cursor:pointer; box-shadow:0 6px 16px rgba(224,118,44,0.35);
    transition:transform .15s ease, box-shadow .15s ease; min-height:44px;
  }
  .btn-primary:hover{ transform:translateY(-2px); box-shadow:0 10px 22px rgba(224,118,44,0.42);}
  .btn-primary:active{ transform:translateY(0);}
  .btn-primary:disabled{ opacity:0.6; cursor:default; transform:none;}

  .btn-ghost{
    background:transparent; border:1.5px solid var(--line); color:var(--ink); border-radius:12px;
    padding:0.65rem 1.1rem; font-weight:600; font-size:0.85rem; cursor:pointer; transition:all .15s ease;
    display:inline-flex; align-items:center; gap:0.4rem; min-height:44px;
  }
  .btn-ghost:hover{ border-color:var(--sukuma); background:rgba(47,74,61,0.05);}

  .btn-solid-light{
    background:var(--sukuma); color:var(--cream); border:none; border-radius:12px;
    padding:0.65rem 1.1rem; font-weight:600; font-size:0.85rem; cursor:pointer;
    display:inline-flex; align-items:center; gap:0.4rem; transition:transform .15s ease; min-height:44px;
  }
  .btn-solid-light:hover{ transform:translateY(-1px);}

  .btn-subtle{
    background:transparent; border:none; color:var(--sukuma-light); border-radius:10px;
    padding:0.55rem 0.7rem; font-weight:600; font-size:0.82rem; cursor:pointer;
    text-decoration:underline; text-underline-offset:3px; text-decoration-color:transparent;
    transition:text-decoration-color .15s ease; min-height:44px;
  }
  .btn-subtle:hover{ text-decoration-color:var(--sukuma-light);}

  :focus-visible{ outline:2px solid var(--sweet-potato); outline-offset:2px; border-radius:4px;}
  .age-card:focus-visible{ outline-offset:3px;}

  .day-card{
    background:#fff; border-radius:16px; border:1px solid var(--line); overflow:hidden;
    opacity:0; transform:translateY(14px); animation:riseIn .45s ease forwards;
    box-shadow:0 2px 10px rgba(43,38,32,0.05); scroll-margin-top:64px;
  }

  /* Mobile-only day jump strip — the multi-column grid at sm+ already
     makes every day visible at a glance, so this is hidden there. */
  .day-quicknav{
    display:flex; gap:0.4rem; overflow-x:auto; margin-bottom:0.75rem; padding-bottom:0.2rem;
    scrollbar-width:none;
  }
  .day-quicknav::-webkit-scrollbar{ display:none;}
  .day-quicknav button{
    flex:0 0 auto; border:1.5px solid var(--line); background:#fff; color:var(--ink);
    border-radius:999px; padding:0.4rem 0.85rem; font-size:0.78rem; font-weight:600;
    cursor:pointer; min-height:38px;
  }
  .day-quicknav button:hover{ border-color:var(--sukuma);}
  @media (min-width:640px){ .day-quicknav{ display:none;} }
  @keyframes riseIn{ to{opacity:1; transform:translateY(0);} }
  @keyframes pulse{ 0%,100%{opacity:1;} 50%{opacity:0.45;} }
  .pulsing{ animation:pulse 1s ease infinite;}

  .day-head{ background:var(--millet); padding:0.8rem 1rem; display:flex; align-items:baseline; justify-content:space-between; border-bottom:1px solid var(--line);}
  .day-num{ font-family:'JetBrains Mono', monospace; font-size:0.7rem; color:var(--sukuma-light); font-weight:600;}
  .meal-row{ padding:0.85rem 1rem; border-bottom:1px dashed var(--line); display:flex; gap:0.75rem; align-items:flex-start; justify-content:space-between;}
  .meal-row:last-child{ border-bottom:none;}
  .meal-row .meal-body{ flex:1; min-width:0;}
  .meal-label{ font-family:'JetBrains Mono', monospace; font-size:0.64rem; text-transform:uppercase; letter-spacing:0.1em; color:#9a9284; margin-bottom:0.3rem;}
  .meal-thumb{
    width:56px; height:56px; border-radius:10px; flex-shrink:0; overflow:hidden;
    background:linear-gradient(135deg, var(--millet), var(--cream)); border:1px solid var(--line);
  }
  .meal-thumb img{ width:100%; height:100%; object-fit:cover; display:block;}
  .tag{ display:inline-block; font-size:0.64rem; font-weight:600; padding:0.18rem 0.5rem; border-radius:999px; margin-right:0.3rem; margin-top:0.35rem;}
  .tag-carb{ background:#FDEBD3; color:#8A5316;}
  .tag-protein{ background:#F7DEE1; color:#8A2E3A;}
  .tag-veg{ background:#E4EEDA; color:#3B5A26;}
  .tag-dairy{ background:#EAE3F4; color:#553B84;}
  .tag-boost{ background:#FFF1D6; color:#9A5B00;}

  .section-title{ font-family:'JetBrains Mono', monospace; font-size:0.7rem; letter-spacing:0.14em; text-transform:uppercase; color:var(--sukuma-light);}
  .food-pill{ border:1px solid var(--line); border-radius:10px; padding:0.6rem 0.7rem; background:#fff; font-size:0.84rem; display:flex; gap:0.65rem; align-items:flex-start;}
  .food-pill .food-pill-body{ flex:1; min-width:0;}
  .food-pill .flags{ margin-top:0.3rem;}
  .flag-dot{ display:inline-block; font-size:0.6rem; font-weight:700; padding:0.08rem 0.4rem; border-radius:999px; margin-right:0.25rem;}
  .flag-iron{ background:#F7DEE1; color:var(--iron);}
  .flag-vitc{ background:#FFE6D1; color:var(--vitc);}
  .flag-vita{ background:#FDF0C8; color:#8A6300;}
  .flag-fat{ background:#EAE3F4; color:#553B84;}

  /* ---- Small food thumbnail (food library, swap table) ----
     Same graceful-fallback idea as .img-slot but sized for an
     inline list row: shows the branded placeholder gradient until
     a matching file exists at images/foods/<slug>.webp. */
  .food-thumb{
    width:44px; height:44px; border-radius:8px; flex-shrink:0; overflow:hidden;
    background:linear-gradient(135deg, var(--millet), var(--cream)); border:1px solid var(--line);
  }
  .food-thumb img{ width:100%; height:100%; object-fit:cover; display:block;}

  ::selection{ background:var(--egg-yolk); color:var(--ink);}

  .sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;}

  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior:auto;}
    .day-card{ animation:none; opacity:1; transform:none;}
    .pulsing{ animation:none;}
    .age-card, .btn-primary, .btn-solid-light{ transition:none;}
  }

  .print-only{ display:none;}

  @media print{
    header.hero, nav.subnav, .no-print,
    #saved, #pairing, #library, #cues, #watch, #guidance,
    #reviews, #faq, #about, footer,
    .fb-strip, .helpful-widget{ display:none !important;}
    body{ background:#fff; padding-bottom:0 !important;}
    .day-card{ break-inside:avoid; box-shadow:none;}
    .print-only{ display:block !important;}
  }

  .cue-list li, .rule-list li{ padding-left:1.4rem; position:relative; margin-bottom:0.55rem; line-height:1.5;}
  .cue-list li::before{ content:'✓'; position:absolute; left:0; color:var(--ndengu); font-weight:700;}
  .rule-list li::before{ content:'•'; position:absolute; left:0; color:var(--sweet-potato); font-weight:700;}

  .watch-card{ border-radius:16px; padding:1.1rem; border:1px solid var(--line); background:#fff;}
  .watch-card .dot{ width:10px; height:10px; border-radius:50%; display:inline-block; margin-right:0.5rem;}

  details.faq{ border-bottom:1px solid var(--line); padding:1rem 0;}
  details.faq summary{ cursor:pointer; font-weight:600; list-style:none; display:flex; justify-content:space-between; align-items:flex-start; gap:1rem;}
  details.faq summary::-webkit-details-marker{ display:none;}
  details.faq .faq-q{ flex:1; min-width:0; overflow-wrap:break-word; line-height:1.4;}
  details.faq summary::after{ content:'+'; font-size:1.3rem; color:var(--sweet-potato); font-weight:400; flex-shrink:0; width:1.5rem; text-align:center;}
  details.faq[open] summary::after{ content:'–';}
  details.faq p{ margin-top:0.7rem; font-size:0.9rem; opacity:0.85; line-height:1.6;}

  /* ---- Saved plans ---- */
  .saved-card{ border:1px solid var(--line); border-radius:14px; padding:0.9rem 1rem; background:#fff; display:flex; align-items:center; justify-content:space-between; gap:0.75rem; flex-wrap:wrap;}
  .toast{
    position:fixed; left:50%; bottom:calc(var(--mobile-bar-h) + 16px); transform:translateX(-50%) translateY(20px);
    background:var(--sukuma); color:var(--cream); padding:0.7rem 1.2rem; border-radius:999px; font-size:0.85rem; font-weight:600;
    box-shadow:0 8px 24px rgba(0,0,0,0.25); z-index:80; opacity:0; pointer-events:none; transition:all .25s ease;
  }
  .toast.show{ opacity:1; transform:translateX(-50%) translateY(0);}
  @media (min-width:768px){ .toast{ bottom:24px; } }

  /* ---- Sticky mobile action bar ---- */
  .mobile-bar{
    display:none; position:fixed; left:0; right:0; bottom:0; z-index:50;
    background:rgba(251,246,234,0.96); backdrop-filter:blur(8px); border-top:1px solid var(--line);
    padding:8px max(12px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-right));
    gap:8px;
  }
  .mobile-bar button{
    flex:1; border:none; border-radius:12px; font-weight:700; font-size:0.72rem;
    padding:0.55rem 0.3rem; display:flex; flex-direction:column; align-items:center; gap:2px;
  }
  @media (max-width:767px){
    .mobile-bar{ display:flex;}
    body{ padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px)); }
  }

  /* =================================================================
     UTILITY LAYER
     The markup was written assuming Tailwind was loaded — it wasn't.
     These are real definitions for the exact utility classes used
     throughout this file, so every px, gap, grid-cols etc. utility that
     was silently doing nothing now actually applies.
  ================================================================= */
  :root{ --page-gutter: clamp(16px, 4vw, 24px); }

  .relative{ position:relative;}
  .inline-block{ display:inline-block;}
  .text-center{ text-align:center;}
  .overflow-x-auto{ overflow-x:auto;}
  .bg-white{ background:#fff;}
  .border{ border:1px solid var(--line);}
  .border-t{ border-top:1px solid var(--line);}
  .shadow-sm{ box-shadow:0 1px 2px rgba(0,0,0,0.05);}
  .rounded-xl{ border-radius:0.75rem;}
  .rounded-2xl{ border-radius:1rem;}
  .scroll-mt-16{ scroll-margin-top:4rem;}
  .font-medium{ font-weight:500;}
  .font-semibold{ font-weight:600;}
  .leading-tight{ line-height:1.25;}
  .leading-snug{ line-height:1.375;}
  .leading-relaxed{ line-height:1.625;}

  .max-w-5xl{ max-width:64rem;}
  .max-w-md{ max-width:28rem;}
  .max-w-xl{ max-width:36rem;}
  .mx-auto{ margin-left:auto; margin-right:auto;}

  .px-5{ padding-left:var(--page-gutter); padding-right:var(--page-gutter);}
  .pt-8{ padding-top:2rem;} .pt-10{ padding-top:2.5rem;}
  .pb-12{ padding-bottom:3rem;} .pb-16{ padding-bottom:4rem;}
  .p-3{ padding:0.75rem;} .p-4{ padding:1rem;} .p-5{ padding:1.25rem;} .p-6{ padding:1.5rem;}

  .mt-0\.5{ margin-top:0.125rem;} .mt-1{ margin-top:0.25rem;} .mt-2{ margin-top:0.5rem;}
  .mt-3{ margin-top:0.75rem;} .mt-5{ margin-top:1.25rem;} .mt-6{ margin-top:1.5rem;}
  .mt-8{ margin-top:2rem;} .mt-14{ margin-top:3.5rem;}
  .mb-1{ margin-bottom:0.25rem;} .mb-2{ margin-bottom:0.5rem;} .mb-3{ margin-bottom:0.75rem;}
  .mb-4{ margin-bottom:1rem;} .mb-5{ margin-bottom:1.25rem;} .mb-6{ margin-bottom:1.5rem;} .mb-7{ margin-bottom:1.75rem;}
  .my-0\.5{ margin-top:0.125rem; margin-bottom:0.125rem;}

  .gap-2{ gap:0.5rem;} .gap-3{ gap:0.75rem;} .gap-4{ gap:1rem;} .gap-5{ gap:1.25rem;} .gap-6{ gap:1.5rem;}

  .text-xs{ font-size:0.75rem; line-height:1rem;}
  .text-sm{ font-size:0.875rem; line-height:1.25rem;}
  .text-lg{ font-size:1.125rem; line-height:1.75rem;}
  .text-xl{ font-size:1.25rem; line-height:1.75rem;}
  .text-2xl{ font-size:1.5rem; line-height:2rem;}
  .text-3xl{ font-size:1.875rem; line-height:2.25rem;}

  .opacity-40{ opacity:0.4;} .opacity-50{ opacity:0.5;} .opacity-60{ opacity:0.6;}
  .opacity-70{ opacity:0.7;} .opacity-75{ opacity:0.75;} .opacity-80{ opacity:0.8;}
  .opacity-85{ opacity:0.85;} .opacity-90{ opacity:0.9;} .opacity-95{ opacity:0.95;}

  .grid{ display:grid;}
  .flex{ display:flex;}
  .flex-col{ flex-direction:column;}
  .flex-wrap{ flex-wrap:wrap;}
  .items-center{ align-items:center;}
  .items-start{ align-items:flex-start;}
  .justify-between{ justify-content:space-between;}
  .space-y-2 > * + *{ margin-top:0.5rem;}

  @media (min-width:640px){
    .sm\:px-6{ padding-left:var(--page-gutter); padding-right:var(--page-gutter);}
    .sm\:pt-14{ padding-top:3.5rem;}
    .sm\:pb-16{ padding-bottom:4rem;}
    .sm\:p-5{ padding:1.25rem;} .sm\:p-8{ padding:2rem;}
    .sm\:mt-6{ margin-top:1.5rem;} .sm\:mt-8{ margin-top:2rem;}
    .sm\:mt-10{ margin-top:2.5rem;} .sm\:mt-16{ margin-top:4rem;}
    .sm\:gap-6{ gap:1.5rem;}
    .sm\:grid-cols-2{ grid-template-columns:repeat(2,minmax(0,1fr));}
    .sm\:grid-cols-3{ grid-template-columns:repeat(3,minmax(0,1fr));}
    .sm\:text-4xl{ font-size:2.25rem; line-height:2.5rem;}
    .sm\:text-base{ font-size:1rem; line-height:1.5rem;}
    .sm\:text-lg{ font-size:1.125rem; line-height:1.75rem;}
  }
  @media (min-width:768px){
    .md\:flex-row{ flex-direction:row;}
    .md\:items-end{ align-items:flex-end;}
    .md\:justify-between{ justify-content:space-between;}
    .md\:grid-cols-2{ grid-template-columns:repeat(2,minmax(0,1fr));}
    .md\:text-3xl{ font-size:1.875rem; line-height:2.25rem;}
    .md\:text-5xl{ font-size:3rem; line-height:1;}
    .md\:text-lg{ font-size:1.125rem; line-height:1.75rem;}
  }
  @media (min-width:1024px){
    .lg\:grid-cols-3{ grid-template-columns:repeat(3,minmax(0,1fr));}
    .lg\:grid-cols-4{ grid-template-columns:repeat(4,minmax(0,1fr));}
  }

  /* Golden-strip cards (the ones in the screenshot) get explicit,
     always-on padding rather than relying on a utility class alone */
  .golden-card{
    padding:14px 16px;
    border-radius:12px;
    background:var(--millet);
  }
  @media (min-width:640px){ .golden-card{ padding:18px 20px;} }

  /* Sub-nav: inner padding + no visible scrollbar on the horizontal scroll */
  .subnav-inner{
    padding-left:var(--page-gutter); padding-right:var(--page-gutter);
    display:flex; gap:1.25rem; overflow-x:auto; scrollbar-width:none;
  }
  .subnav-inner::-webkit-scrollbar{ display:none;}
  nav.subnav{ -webkit-mask-image:linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);}

  /* =================================================================
     RESPONSIVENESS & OVERFLOW SAFETY (mobile UX pass)
  ================================================================= */
  html{ overflow-x:clip; overflow-y:visible;}
  body{ overflow-x:clip; overflow-y:visible;}
  .grid > *, .flex > *{ min-width:0;}
  h1,h2,h3,h4,p,a,button,summary,li,span,div{ overflow-wrap:break-word;}

  .hero-title{
    font-size:clamp(1.85rem, 1.1rem + 4.2vw, 3.25rem);
    line-height:1.12;
    margin-bottom:1rem;
    max-width:640px;
  }
  .hero-sub{
    font-size:clamp(0.9rem, 0.8rem + 0.5vw, 1.125rem);
    line-height:1.55;
    max-width:560px;
  }

  /* =================================================================
     FEEDBACK & REVIEWS
  ================================================================= */

  /* Post-generate "how useful was this plan" strip */
  .fb-strip{
    border:1px solid var(--line); border-radius:16px; padding:16px;
    background:#fff; margin-top:1.5rem;
  }
  @media (min-width:640px){ .fb-strip{ padding:20px;} }
  .fb-choice-row{ display:flex; flex-wrap:wrap; gap:0.5rem; margin-top:0.75rem;}
  .fb-choice{
    border:1.5px solid var(--line); background:#fff; border-radius:999px;
    padding:0.55rem 1rem; font-size:0.85rem; font-weight:600; cursor:pointer;
    transition:all .15s ease; min-height:44px;
  }
  .fb-choice:hover{ border-color:var(--sukuma);}
  .fb-choice.picked{ background:var(--sukuma); border-color:var(--sukuma); color:var(--cream);}
  .fb-followup textarea{
    width:100%; border:1.5px solid var(--line); border-radius:12px; padding:0.7rem 0.85rem;
    font-family:inherit; font-size:0.85rem; resize:vertical; min-height:70px; margin-top:0.75rem;
  }
  .fb-thanks{ display:flex; align-items:center; gap:0.5rem; font-size:0.9rem; font-weight:600; color:var(--sukuma-light);}

  /* "Was this helpful?" widget for educational sections */
  .helpful-widget{
    display:flex; align-items:center; flex-wrap:wrap; gap:0.6rem;
    border-top:1px dashed var(--line); margin-top:1.5rem; padding-top:1rem;
    font-size:0.85rem;
  }
  .helpful-widget button{
    border:1.5px solid var(--line); background:#fff; border-radius:999px;
    padding:0.4rem 0.85rem; font-size:0.8rem; font-weight:600; cursor:pointer; min-height:38px;
  }
  .helpful-widget button:hover{ border-color:var(--sukuma);}
  .helpful-widget button.picked{ background:var(--sukuma); color:var(--cream); border-color:var(--sukuma);}

  /* Floating feedback button */
  .fab-feedback{
    position:fixed; right:16px; bottom:calc(var(--mobile-bar-h) + 16px); z-index:55;
    background:var(--sukuma); color:var(--cream); border:none; border-radius:999px;
    padding:0.8rem 1.1rem; font-weight:700; font-size:0.82rem; cursor:pointer;
    box-shadow:0 8px 20px rgba(0,0,0,0.25); display:flex; align-items:center; gap:0.4rem;
    min-height:44px;
  }
  @media (min-width:768px){ .fab-feedback{ bottom:24px;} }
  .fab-feedback:hover{ transform:translateY(-2px);}

  /* Modal (feedback form) */
  .modal-overlay{
    display:none; position:fixed; inset:0; background:rgba(43,38,32,0.45); z-index:90;
    align-items:flex-end; justify-content:center; padding:0;
  }
  .modal-overlay.open{ display:flex;}
  .modal-sheet{
    background:var(--cream); width:100%; max-width:520px; border-radius:20px 20px 0 0;
    padding:20px var(--page-gutter) calc(20px + env(safe-area-inset-bottom, 0px));
    max-height:88vh; overflow-y:auto;
  }
  @media (min-width:768px){
    .modal-overlay{ align-items:center; padding:24px;}
    .modal-sheet{ border-radius:20px; max-height:80vh;}
  }
  .modal-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; margin-bottom:1rem;}
  .modal-close{ background:none; border:none; font-size:1.4rem; cursor:pointer; color:var(--ink); opacity:0.6; line-height:1; padding:0.4rem; min-height:44px; min-width:44px;}
  .modal-close:hover{ opacity:1;}
  .field-label{ font-size:0.8rem; font-weight:600; margin-bottom:0.4rem; display:block;}
  .field-hint{ font-size:0.75rem; opacity:0.6; margin-bottom:0.5rem;}
  .chip-row{ display:flex; flex-wrap:wrap; gap:0.5rem; margin-bottom:1.1rem;}
  .chip-choice{
    border:1.5px solid var(--line); background:#fff; border-radius:999px;
    padding:0.5rem 0.9rem; font-size:0.82rem; font-weight:600; cursor:pointer; min-height:40px;
  }
  .chip-choice.picked{ background:var(--egg-yolk); border-color:var(--egg-yolk); color:var(--sukuma);}
  textarea.form-input, input.form-input, select.form-input{
    width:100%; border:1.5px solid var(--line); border-radius:12px; padding:0.7rem 0.85rem;
    font-family:inherit; font-size:0.88rem; margin-bottom:1.1rem; background:#fff;
  }
  textarea.form-input{ resize:vertical; min-height:80px;}
  .consent-row{ display:flex; align-items:flex-start; gap:0.6rem; font-size:0.8rem; margin-bottom:1.2rem; line-height:1.5;}
  .consent-row input{ margin-top:0.2rem; width:18px; height:18px; flex-shrink:0;}

  /* Star rating */
  .star-row{ display:flex; gap:0.3rem; margin-bottom:1.1rem;}
  .star-btn{ background:none; border:none; font-size:1.7rem; cursor:pointer; padding:0.2rem; line-height:1; color:var(--line); min-height:44px; min-width:44px;}
  .star-btn.filled{ color:var(--egg-yolk);}

  /* Review cards */
  .review-card{ border:1px solid var(--line); border-radius:16px; padding:16px; background:#fff;}
  @media (min-width:640px){ .review-card{ padding:20px;} }
  .review-stars{ color:var(--egg-yolk); letter-spacing:0.1em; font-size:0.95rem; margin-bottom:0.5rem;}
  .review-text{ font-size:0.9rem; line-height:1.55; margin-bottom:0.75rem;}
  .review-meta{ font-size:0.78rem; opacity:0.65;}
  .review-used-tag{
    display:inline-block; margin-top:0.5rem; font-size:0.7rem; font-weight:600;
    background:var(--millet); color:var(--sukuma-light); padding:0.25rem 0.6rem; border-radius:999px;
  }

  /* =================================================================
     ABOUT / SUPPORT (the personal note + donate section)
  ================================================================= */
  .about-card{
    position:relative; overflow:hidden; border-radius:20px;
    background:var(--sukuma); color:var(--cream);
    padding:28px var(--page-gutter);
  }
  @media (min-width:640px){ .about-card{ padding:36px 40px;} }
  .about-grid{ position:relative; display:flex; flex-direction:column; gap:1.75rem;}
  @media (min-width:768px){ .about-grid{ flex-direction:row; align-items:stretch; gap:2.25rem;} }
  .about-inner{ min-width:0;}
  @media (min-width:768px){ .about-inner{ flex:1.35;} }
  .about-avatar{
    width:52px; height:52px; border-radius:50%;
    background:var(--egg-yolk); color:var(--sukuma);
    display:flex; align-items:center; justify-content:center;
    font-family:'Fraunces', serif; font-weight:700; font-size:1.1rem;
    margin-bottom:1rem; box-shadow:0 4px 14px rgba(0,0,0,0.25);
  }
  .about-text{
    font-size:0.95rem; line-height:1.7; opacity:0.92; max-width:640px; margin-bottom:1rem;
  }
  .about-text:last-child{ margin-bottom:0;}
  .about-photo-wrap{
    border-radius:16px; overflow:hidden; flex-shrink:0; position:relative;
    height:260px; box-shadow:0 10px 28px rgba(0,0,0,0.28);
  }
  @media (min-width:768px){ .about-photo-wrap{ flex:1; height:auto; min-width:220px; max-width:320px;} }
  .about-photo{ width:100%; height:100%; object-fit:cover; display:block;}

  .support-card{
    border:1px solid var(--line); border-radius:20px; background:#fff;
    padding:22px var(--page-gutter);
  }
  @media (min-width:640px){ .support-card{ padding:26px;} }
  .support-icon{
    width:42px; height:42px; border-radius:12px; background:var(--millet);
    display:flex; align-items:center; justify-content:center; font-size:1.3rem; margin-bottom:0.85rem;
  }
  .mpesa-row{
    display:flex; align-items:center; justify-content:space-between; gap:0.75rem; flex-wrap:wrap;
    background:var(--millet); border-radius:14px; padding:0.85rem 1rem;
  }

  /* ---- Cross-page top nav: mark the current page ---- */
  nav.subnav a[aria-current="page"]{
    opacity:1; font-weight:700; border-color:var(--sukuma);
  }

  /* ---- Image slot ----
     Used everywhere a real photo belongs. Renders as an intentional,
     branded placeholder (not a broken-image look) until a real photo
     file replaces the background-image inline style / <img src>.
     Swap by either:
       1) adding a real <img> inside with class "img-slot-fill", or
       2) setting style="background-image:url(...)" on the .img-slot itself.
  */
  .img-slot{
    position:relative; width:100%; border-radius:18px; overflow:hidden;
    background:linear-gradient(135deg, var(--millet), var(--cream));
    border:1px solid var(--line);
    display:flex; align-items:center; justify-content:center;
    color:var(--sukuma-light); text-align:center;
    background-size:cover; background-position:center;
  }
  .img-slot::after{
    content:''; position:absolute; inset:0;
    background-image:
      repeating-linear-gradient(45deg, rgba(43,38,32,0.035) 0 2px, transparent 2px 14px);
    pointer-events:none;
  }
  .img-slot-fill{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block;}
  .img-slot-label{
    position:relative; z-index:1; padding:1rem; font-size:0.78rem; font-weight:600;
    max-width:220px; line-height:1.4;
  }
  .img-slot-label .cap{ display:block; font-family:'JetBrains Mono', monospace; font-size:0.65rem; letter-spacing:0.08em; text-transform:uppercase; opacity:0.7; margin-bottom:0.35rem;}
  .img-slot-square{ aspect-ratio:1/1;}
  .img-slot-wide{ aspect-ratio:16/9;}
  .img-slot-tall{ aspect-ratio:3/4;}

  /* ---- Feature / value-prop card (Home page) ---- */
  .feature-card{
    background:#fff; border:1px solid var(--line); border-radius:18px; padding:1.5rem;
    display:flex; flex-direction:column; gap:0.75rem;
  }
  .feature-card .feature-icon{
    width:44px; height:44px; border-radius:12px; background:var(--millet);
    display:flex; align-items:center; justify-content:center; font-size:1.3rem;
  }

  /* ---- Kenyanised food-swap table (Special Needs page) ---- */
  .swap-table{ width:100%; border-collapse:separate; border-spacing:0; font-size:0.88rem;}
  .swap-table th{
    text-align:left; font-family:'JetBrains Mono', monospace; font-size:0.68rem; letter-spacing:0.08em;
    text-transform:uppercase; opacity:0.6; padding:0.5rem 0.75rem; border-bottom:1px solid var(--line);
  }
  .swap-table td{ padding:0.75rem; border-bottom:1px solid var(--line); vertical-align:top;}
  .swap-table tr:last-child td{ border-bottom:none;}
  .swap-table-wrap{ overflow-x:auto; border:1px solid var(--line); border-radius:16px; background:#fff;}

  /* ---- Local support-organisation card ---- */
  .org-card{
    border:1px solid var(--line); border-radius:16px; padding:1.1rem 1.25rem; background:#fff;
    display:flex; flex-direction:column; gap:0.3rem;
  }
  .org-card .org-name{ font-weight:700;}
  .org-card a{ color:var(--sukuma); font-weight:600; text-decoration:underline; text-underline-offset:2px;}

  /* ---- Sensory-strategy / step card (Special Needs page) ---- */
  .sensory-card{
    border:1px solid var(--line); border-radius:16px; padding:1.1rem 1.25rem; background:#fff;
  }

  /* ---- Community discussions ---- */
  .discussion-card{
    display:block; background:#fff; border:1px solid var(--line); border-radius:16px;
    padding:1.1rem 1.25rem; text-decoration:none; color:inherit;
  }
  .discussion-card:hover{ border-color:var(--sukuma);}
  .discussion-card .title{ font-weight:700; margin-bottom:0.3rem;}
  .discussion-card .snippet{ font-size:0.85rem; opacity:0.7; margin-bottom:0.5rem;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;}
  .discussion-meta{ display:flex; align-items:center; gap:0.6rem; font-size:0.72rem; opacity:0.6; flex-wrap:wrap;}
  .badge-open, .badge-closed{
    display:inline-flex; align-items:center; gap:0.3rem; font-weight:700; font-size:0.68rem;
    text-transform:uppercase; letter-spacing:0.05em; padding:0.15rem 0.55rem; border-radius:999px;
  }
  .badge-open{ background:#E7F0E9; color:var(--sukuma);}
  .badge-closed{ background:#F0EDE6; color:#7a7364;}

  .thread-body{ white-space:pre-wrap; line-height:1.6; font-size:0.95rem;}
  .reply-card{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:0.9rem 1.1rem;}
  .reply-meta{ font-size:0.7rem; opacity:0.55; margin-bottom:0.3rem;}

  .mod-bar{
    display:flex; flex-wrap:wrap; gap:0.5rem; align-items:center;
    background:#FFF7E8; border:1px solid #F0DBA8; border-radius:12px; padding:0.7rem 0.9rem;
  }
  .mod-bar .mod-label{ font-size:0.7rem; font-weight:700; text-transform:uppercase; letter-spacing:0.05em; color:#9A6B00; margin-right:0.3rem;}
  .btn-danger{
    background:#fff; border:1px solid var(--iron); color:var(--iron); border-radius:10px;
    padding:0.5rem 0.85rem; font-weight:600; font-size:0.8rem; cursor:pointer; min-height:40px;
  }
  .btn-danger:hover{ background:var(--iron); color:#fff;}

  .closed-banner{
    background:var(--millet); border:1px dashed var(--line); border-radius:14px;
    padding:1rem 1.1rem; font-size:0.88rem; text-align:center;
  }

  .honeypot-field{ position:absolute !important; left:-9999px !important; width:1px; height:1px; overflow:hidden;}

  /* ---- Threaded replies ---- */
  .reply-thread{ display:flex; flex-direction:column; gap:0.75rem;}
  .reply-children{
    margin-top:0.75rem; margin-left:1.1rem; padding-left:0.9rem;
    border-left:2px solid var(--line);
    display:flex; flex-direction:column; gap:0.75rem;
  }
  .reply-actions{ display:flex; gap:0.9rem; margin-top:0.5rem;}
  .reply-actions button{
    background:none; border:none; padding:0; font-size:0.76rem; font-weight:600;
    color:var(--sukuma-light); cursor:pointer; text-decoration:underline; text-underline-offset:2px;
  }
  .inline-reply-box{ display:none; margin-top:0.6rem; padding-top:0.6rem; border-top:1px dashed var(--line);}
  .inline-reply-box.open{ display:block;}
