/* File: /css/site.css | Version: 1.3.2 | 2026-10-22: Constrain phone creator cards and wrap tablet navigation without hiding destinations. */
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 100 800; font-display: swap; src: url('/font/sora/sora-normal.woff2') format('woff2'); }
@font-face { font-family: 'Mulish'; font-style: italic; font-weight: 200 1000; font-display: swap; src: url('/font/mulish/mulish-italic.woff2') format('woff2'); }
@font-face { font-family: 'Mulish'; font-style: normal; font-weight: 200 1000; font-display: swap; src: url('/font/mulish/mulish-normal.woff2') format('woff2'); }
    :root {
      /* Primary brand green — canonical names */
      --green:       #276749;
      --green-dark:  #1a4f38;
      --green-s:     #e8f5ee;
      --green-glow:  rgba(39,103,73,.18);

      /* Legacy aliases — --orange* was the original (misnamed) variable family.
         Both sets resolve to the same values. New code should use --green*.
         TODO: migrate all var(--orange*) usages to var(--green*) in a
               dedicated refactor pass, then remove these aliases. */
      --orange:      var(--green);
      --orange-dark: var(--green-dark);
      --orange-soft: var(--green-s);
      --orange-glow: var(--green-glow);
      --accent:      #f57c00;
      --accent-dark: #de6c00;
      --ink: #121212;
      --text: #3b3b3b;
      --muted: #6b6b6b;
      --line: #dde8e3;
      --bg: #f6fdf9;
      --card: #ffffff;
      --radius: 24px;
      --radius-sm: 14px;
      --shadow: 0 12px 36px rgba(18,18,18,.08);
      --shadow-lg: 0 20px 56px rgba(18,18,18,.12);
      --max: 1180px;
      --fs-menu: 16.5px;
      --page-tint: #f2fbf6;
      --line-subtle: rgba(0,0,0,.05);
      --text-on-dark: #fff;
      --shadow-btn-primary: 0 6px 20px rgba(245,124,0,.32);
      --shadow-btn-primary-hover: 0 8px 28px rgba(245,124,0,.42);
      --button-line: rgba(39,103,73,.16);
      --button-hover: #d0ead9;
      --pill-line: rgba(39,103,73,.18);
      --header-surface: rgba(255,255,255,.88);
      --brand-gradient-start: #5aab7c;
      --shadow-brand-mark: 0 4px 14px rgba(39,103,73,.32);
      --brand-word-on-dark: #f0ede8;
      --brand-accent-on-dark: #ff9a2e;
      --shadow-nav-search-input-focus: 0 0 0 3px rgba(39,103,73,.10);
      --search-dismiss-hover: #ddd;
      --hero-glow: rgba(39,103,73,.07);
      --hero-placeholder: #c8e6d4;
      --shadow-hero-float-card: 0 8px 32px rgba(18,18,18,.13);
      --shadow-hero-float-card2: 0 8px 28px rgba(39,103,73,.40);
      --stats-glow: rgba(255,255,255,.06);
      --line-on-brand: rgba(255,255,255,.2);
      --shadow-creator-ava: 0 0 0 3px #fff, 0 0 0 5px rgba(39,103,73,.15);
      --progress-track: #f0ebe5;
      --line-inverse: #fff;
      --giving-glow: rgba(255,255,255,.07);
      --amount-surface: rgba(255,255,255,.16);
      --amount-line: rgba(255,255,255,.3);
      --shadow-donate-cta: 0 6px 20px rgba(0,0,0,.18);
      --shadow-donate-cta-hover: 0 10px 28px rgba(0,0,0,.22);
      --banner-glow: rgba(39,103,73,.22);
      --body-on-dark: rgba(255,255,255,.85);
      --footer-copy: rgba(255,255,255,.72);
      --footer-heading: rgba(255,255,255,.72);
      --footer-link: rgba(255,255,255,.82);
      --footer-line: rgba(255,255,255,.08);
      --footer-meta: rgba(255,255,255,.72);
      --modal-backdrop: rgba(0,0,0,.48);
      --modal-handle: #e0dbd5;
      --modal-dismiss: #f5f5f5;
      --modal-dismiss-hover: #ecddd1;
      --payment-button: #000;
      --payment-line: #000;
      --payment-button-hover: #222;
      --shadow-toast: 0 8px 32px rgba(0,0,0,.22);
      --creator-gradient-start: #8b4513;
      --creator-gradient-mid: #d2691e;
      --creator-gradient-end: #f57c00;
      --creator-handle-surface: rgba(255,255,255,.15);
      --shadow-impact-counter-card: 0 10px 40px rgba(0,0,0,.13);
      --video-shade: rgba(0,0,0,.7);
      --play-surface: rgba(255,255,255,.95);
      --shadow-play-btn: 0 4px 18px rgba(0,0,0,.28);
      --field-on-brand: rgba(255,255,255,.12);
      --field-on-brand-line: rgba(255,255,255,.28);
      --field-on-brand-focus-line: rgba(255,255,255,.55);
      --field-on-brand-focus: rgba(255,255,255,.18);
      --field-prefix-on-dark: rgba(255,255,255,.7);
      --field-placeholder-on-dark: rgba(255,255,255,.85);
      --field-label-on-dark: rgba(255,255,255,.85);
      --accent-text: #a84e00;
      --footer-link-muted: rgba(255,255,255,.72);
      --footer-address: rgba(255,255,255,.72);

      --tap-min: 44px;
      --menu-bar-h: 75px;
      --menu-backdrop: rgba(0,0,0,.48);
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: 'Mulish', sans-serif;
      color: var(--ink);
      background: linear-gradient(180deg, var(--page-tint) 0%, var(--card) 30%, var(--page-tint) 100%);
      -webkit-font-smoothing: antialiased;
    }
    img { max-width: 100%; display: block; }
    a { color: inherit; text-decoration: none; }
    button, input { font: inherit; }
    h1,h2,h3,h4,h5 { font-family: 'Sora', sans-serif; line-height: 1.15; }

    /* ── Layout helpers ── */
    .container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
    .section   { padding: 88px 0; }
    .section--tight { padding: 60px 0; }
    .grid { display: grid; gap: 20px; }

    /* ── Card ── */
    .card {
      background: var(--card);
      border: 1px solid var(--line-subtle);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }

    /* ── Buttons ── */
    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      font-family: 'Sora', sans-serif; font-weight: 700; font-size: .92rem;
      padding: 14px 26px; border-radius: 999px; border: none; cursor: pointer;
      transition: transform .2s, box-shadow .2s, background .2s;
      white-space: nowrap; letter-spacing: .01em;
    }
    .btn:active { transform: scale(.97); }
    .btn-primary {
      background: var(--accent); color: var(--ink);
      box-shadow: var(--shadow-btn-primary);
    }
    .btn-primary:hover { background: var(--accent-dark); box-shadow: var(--shadow-btn-primary-hover); transform: translateY(-1px); }
    .btn-secondary {
      background: var(--orange-soft); color: var(--orange);
      border: 1.5px solid var(--button-line);
    }
    .btn-secondary:hover { background: var(--button-hover); }
    .btn-ghost {
      background: transparent; color: var(--text); border: 1.5px solid var(--line);
    }
    .btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
    .btn-lg { padding: 17px 34px; font-size: 1rem; }
    .btn-full { width: 100%; }
    .btn svg { flex-shrink: 0; }

    /* ── Pill / badge ── */
    .pill {
      display: inline-flex; align-items: center; gap: 7px;
      background: var(--orange-soft); color: var(--orange);
      border: 1px solid var(--pill-line); border-radius: 999px;
      font-family: 'Sora', sans-serif; font-weight: 700; font-size: .72rem;
      padding: 5px 13px; letter-spacing: .06em; text-transform: uppercase;
      margin-left: auto; margin-right: auto;
    }
    .pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); animation: blink 2s infinite; }
    @keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

    /* ── NAV ── */
    .site-header {
      position: sticky; top: 0; z-index: 100;
      backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
      background: var(--header-surface);
      border-bottom: 1px solid var(--line-subtle);
    }
    .nav {
      min-height: 74px;
      display: flex; align-items: center; justify-content: space-between; gap: 16px;
    }
    .brand {
      display: flex; align-items: center; gap: 11px;
      font-family: 'Sora', sans-serif; font-size: 1.6rem; font-weight: 800; letter-spacing: -.04em;
      cursor: pointer; user-select: none;
    }
    .brand-mark {
      width: 42px; height: 42px; border-radius: 13px;
      display: grid; place-items: center;
      background: linear-gradient(135deg, var(--brand-gradient-start) 0%, var(--orange) 100%);
      box-shadow: var(--shadow-brand-mark);
      flex-shrink: 0;
    }
    .brand-word .f  { color: var(--ink); }
    .brand-word .ff { color: var(--accent-text); }
    footer .brand-word .f { color: var(--brand-word-on-dark); }
    footer .brand-word .ff { color: var(--brand-accent-on-dark); }

    /* Inline brand name styling — applied by JS to all FoodFund text nodes */
    .ff-brand { display: inline; white-space: nowrap; font-weight: 700; }
    .ff-food   { color: var(--green); }
    .ff-fund   { color: var(--orange); }

    /* On dark backgrounds (footer, dark hero sections) Food becomes white */
    footer .ff-food,
    .dark-section .ff-food,
    .cr-nav .ff-food { color: var(--text-on-dark); }

    /* Footer copyright text — Fund slightly brighter orange to read on dark bg */
    footer .ff-fund {
      color: var(--brand-accent-on-dark);
      font-weight: 700;
    }

    .nav-links {
      display: none; align-items: center; gap: 6px;
    }
    .nav-links a {
      font-family: 'Sora', sans-serif; font-weight: 600; font-size: .85rem;
      color: var(--text); padding: 8px 14px; border-radius: 999px;
      transition: color .2s, background .2s;
    }
    .nav-links a:hover { color: var(--orange); background: var(--orange-soft); }

    .nav-actions {
      display: flex; gap: 6px; align-items: center;
    }


    /* ── Search ── */
    .nav-search-wrap {
      display: flex; align-items: center; position: relative;
    }
    .search-icon-btn {
      width: 40px; height: 40px; border-radius: 50%;
      border: none; background: transparent; cursor: pointer;
      display: grid; place-items: center;
      color: var(--text); transition: background .2s, color .2s;
      flex-shrink: 0;
    }
    .search-icon-btn:hover { background: var(--orange-soft); color: var(--orange); }
    .search-input-wrap {
      position: absolute; right: 0; top: 50%; transform: translateY(-50%);
      width: 0; overflow: hidden;
      transition: width .35s cubic-bezier(.16,1,.3,1);
      border-radius: 999px;
    }
    .search-input-wrap.open { width: min(280px, 68vw); }
    .nav-search-input {
      width: 100%; height: 40px;
      padding: 0 40px 0 16px;
      border: 1.5px solid var(--line); border-radius: 999px;
      background: var(--card); outline: none; font-size: .88rem;
      font-family: 'Sora', sans-serif; color: var(--ink);
      transition: border-color .2s, box-shadow .2s;
      white-space: nowrap;
    }
    .nav-search-input:focus { border-color: var(--orange); box-shadow: var(--shadow-nav-search-input-focus); }
    .search-close-btn {
      position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
      width: 24px; height: 24px; border-radius: 50%; border: none;
      background: var(--line); cursor: pointer; font-size: .7rem;
      display: none; place-items: center; color: var(--muted);
      transition: background .2s;
    }
    .search-close-btn:hover { background: var(--search-dismiss-hover); }
    .search-input-wrap.open .search-close-btn { display: grid; }

    /* Phone navigation: tablets use their ordinary navigation. */
    .hamburger, .mobile-menu, .menu-backdrop { display: none; }
    .hamburger {
      min-width: var(--tap-min); min-height: var(--tap-min); border-radius: 50%;
      align-items: center; justify-content: center;
      background: none; border: none; color: var(--ink); cursor: pointer;
    }
    .hamburger:hover { background: var(--orange-soft); }
    .menu-icon { position: relative; display: inline-block; width: 20px; height: 14px; }
    .menu-icon span {
      position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
      background: currentColor; transition: top .25s ease, transform .25s ease, opacity .2s ease;
    }
    .menu-icon span:nth-child(1) { top: 0; }
    .menu-icon span:nth-child(2) { top: 6px; }
    .menu-icon span:nth-child(3) { top: 12px; }
    .hamburger[aria-expanded="true"] .menu-icon span:nth-child(1) { top: 6px; transform: rotate(45deg); }
    .hamburger[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; }
    .hamburger[aria-expanded="true"] .menu-icon span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
    .mob-br { display: block; }

    /* ── HERO ── */
    .hero {
      padding: 72px 0 0;
      position: relative; overflow: hidden;
    }
    @media (max-width: 767px) {
      .hero { padding-top: 32px; }
    }
    .hero::before {
      content: '';
      position: absolute; top: -80px; right: -120px;
      width: 600px; height: 600px;
      background: radial-gradient(circle, var(--hero-glow) 0%, transparent 70%);
      border-radius: 50%; pointer-events: none;
    }
    .hero-inner {
      display: grid; gap: 56px; align-items: start;
    }
    .hero-eyebrow { margin-bottom: 22px; }
    .hero h1 {
      font-size: clamp(2rem, 5.5vw, 3.2rem);
      font-weight: 800; letter-spacing: -.04em; line-height: 1.05;
      margin-bottom: 22px;
    }
    .hero h1 em { font-style: normal; color: var(--orange); }
    .hero-sub {
      font-size: 1.08rem; color: var(--text); line-height: 1.7;
      max-width: 480px; margin-bottom: 36px;
    }
    .hero-cta-row {
      display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-bottom: 18px;
    }
    @media (max-width: 600px) {
      .hero-cta-row {
        flex-wrap: nowrap; gap: 8px; justify-content: center;
      }
      .hero-cta-row .btn {
        font-size: .82rem; padding: 12px 16px; white-space: nowrap;
      }
    }
    .hero-trust {
      display: flex; align-items: center; gap: 7px;
      font-size: .78rem; color: var(--muted); font-weight: 500;
    }
    .hero-trust svg { flex-shrink: 0; }

    /* Floating card in hero visual */
    .hero-visual {
      position: relative;
      padding-top: 48px;
      display: flex;
      justify-content: center;
    }
    .hero-art {
      width: 100%; aspect-ratio: 700 / 562;
      max-width: 480px;
      border-radius: 32px; overflow: hidden;
      background: var(--hero-placeholder);
      box-shadow: var(--shadow-lg);
    }
    .hero-float-card {
      position: absolute; bottom: -20px; left: -12px;
      background: var(--card); border-radius: 18px; padding: 14px 18px;
      box-shadow: var(--shadow-hero-float-card); min-width: 160px;
      animation: float 4s ease-in-out infinite;
    }
    .hero-float-card2 {
      position: absolute; top: 28px; right: -8px;
      background: var(--orange); border-radius: 18px; padding: 12px 16px;
      box-shadow: var(--shadow-hero-float-card2); color: var(--text-on-dark);
      animation: float 4s ease-in-out infinite .8s;
    }
    @keyframes float {
      0%,100% { transform: translateY(0); }
      50%      { transform: translateY(-10px); }
    }
    .float-label {
      font-size: .65rem; font-weight: 700; letter-spacing: .08em;
      text-transform: uppercase; opacity: .6; margin-bottom: 2px;
    }
    .float-num {
      font-family: 'Sora', sans-serif; font-size: 1.45rem; font-weight: 800;
      line-height: 1; letter-spacing: -.03em;
    }
    .float-sub { font-size: .72rem; opacity: .7; margin-top: 2px; }

    /* ── STATS BAND ── */
    .stats-band {
      background: var(--orange); color: var(--text-on-dark);
      padding: 40px 0; margin-top: 60px;
      position: relative; overflow: hidden;
    }
    .stats-band::before {
      content: '';
      position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
      width: 800px; height: 200px;
      background: var(--stats-glow); border-radius: 50%;
    }
    .stats-inner {
      display: grid; grid-template-columns: repeat(3, 1fr);
      gap: 0; text-align: center; position: relative;
    }
    .stat-item { padding: 12px 16px; }
    .stat-item + .stat-item { border-left: 1px solid var(--line-on-brand); }
    .stat-icon { font-size: 1.8rem; margin-bottom: 6px; }
    .stat-num {
      font-family: 'Sora', sans-serif; font-size: clamp(1.6rem, 5vw, 2.4rem);
      font-weight: 800; display: block; letter-spacing: -.04em; line-height: 1;
    }
    .stat-label { font-size: .72rem; opacity: .82; font-weight: 600; margin-top: 4px; letter-spacing: .03em; }
    .stats-tagline {
      text-align: center; font-size: .75rem; font-weight: 700;
      letter-spacing: .1em; text-transform: uppercase; opacity: .7;
      margin-bottom: 20px;
    }

    /* ── HOW IT WORKS ── */
    .how-head { text-align: center; margin-bottom: 52px; }
    .how-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; margin-bottom: 10px; }
    .how-head p { color: var(--muted); font-size: 1rem; }
    .steps-grid { grid-template-columns: 1fr; }
    .step-card {
      background: var(--card);
      border: 1px solid var(--line-subtle);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 32px 28px;
      display: flex; gap: 22px; align-items: flex-start;
      transition: transform .25s, box-shadow .25s;
    }
    .step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
    .step-icon-wrap {
      width: 58px; height: 58px; flex-shrink: 0;
      border-radius: 18px; background: var(--orange-soft);
      display: grid; place-items: center; font-size: 1.7rem;
    }
    .step-num {
      display: flex;
      align-items: baseline;
      gap: 6px;
      margin-bottom: 8px;
      line-height: 1;
    }
    .step-num-digit {
      font-family: 'Sora', sans-serif;
      font-size: 3.5rem;
      font-weight: 900;
      letter-spacing: -.05em;
      color: var(--orange);
      line-height: 1;
    }
    .step-num-label {
      font-family: 'Sora', sans-serif;
      font-size: .68rem;
      font-weight: 700;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--muted);
      padding-bottom: 4px;
    }
    .step-title {
      font-family: 'Sora', sans-serif; font-size: 1.1rem; font-weight: 700;
      margin-bottom: 8px; letter-spacing: -.02em;
    }
    .step-desc { font-size: .9rem; color: var(--text); line-height: 1.65; }

    /* ── CREATORS ── */
    .creators-section { background: var(--orange-soft); }
    .creators-head { text-align: center; margin-bottom: 44px; }
    .creators-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; margin-bottom: 10px; }
    .creators-head p { color: var(--muted); font-size: .98rem; }
    .creators-grid { grid-template-columns: 1fr; }
    .creator-card {
      background: var(--card);
      border: 1px solid var(--line-subtle);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 22px 20px;
      display: flex; align-items: center; gap: 16px;
      cursor: pointer; transition: transform .22s, box-shadow .22s;
    }
    .creator-card:hover { transform: translateY(-3px) translateX(3px); box-shadow: var(--shadow-lg); }
    .creator-ava {
      width: 80px; height: 100px; border-radius: 10px; flex-shrink: 0;
      display: grid; place-items: center; font-size: 2.2rem;
      background: var(--orange-soft);
      box-shadow: var(--shadow-creator-ava);
      overflow: hidden;
    }
    .creator-ava img {
      width: 100%; height: 100%; object-fit: cover; display: block;
    }
    .creator-meta { flex: 1; min-width: 0; }
    .creator-name {
      font-family: 'Sora', sans-serif; font-weight: 700; font-size: .98rem;
      display: flex; align-items: center; gap: 6px; margin-bottom: 2px;
    }
    .verified {
      width: 16px; height: 16px; border-radius: 50%; background: var(--orange);
      display: inline-grid; place-items: center; font-size: 8px; color: var(--text-on-dark);
    }
    .creator-handle { font-size: .78rem; color: var(--muted); }
    .creator-bar { margin-top: 8px; }
    .mini-progress {
      height: 6px; background: var(--progress-track); border-radius: 999px; overflow: hidden; margin-top: 5px;
    }
    .mini-fill { height: 100%; background: var(--orange); border-radius: 999px; transition: width 1.5s cubic-bezier(.16,1,.3,1); }
    .creator-right { text-align: right; flex-shrink: 0; }
    .creator-meals {
      font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.15rem;
      color: var(--orange); letter-spacing: -.02em;
    }
    .creator-meals-label { font-size: .67rem; color: var(--muted); margin-top: 1px; }
    .creators-cta { text-align: center; margin-top: 36px; }

    /* ── SOCIAL PROOF ── */
    .proof-section { background: var(--card); }
    .proof-inner { display: grid; gap: 40px; align-items: center; }
    .proof-text-col h2 {
      font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; margin-bottom: 14px;
    }
    .proof-text-col p { color: var(--text); font-size: .98rem; line-height: 1.7; margin-bottom: 28px; }
    .avatars-stack { display: flex; margin-bottom: 12px; }
    .av {
      width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--line-inverse);
      margin-left: -10px; display: grid; place-items: center;
      font-family: 'Sora', sans-serif; font-weight: 700; font-size: .7rem; color: var(--text-on-dark);
      flex-shrink: 0;
    }
    .av:first-child { margin-left: 0; }
    .av-count {
      background: var(--orange); color: var(--text-on-dark);
      font-family: 'Sora', sans-serif; font-weight: 700; font-size: .72rem;
      padding: 4px 11px; border-radius: 999px; margin-left: 10px;
      align-self: center;
    }
    .av-line { font-size: .82rem; color: var(--muted); }
    .av-line strong { color: var(--ink); }

    .testimonials-col { display: flex; flex-direction: column; gap: 16px; }
    .testimonial {
      background: var(--card); border: 1px solid var(--line);
      border-radius: var(--radius); padding: 24px 22px;
      box-shadow: var(--shadow); transition: transform .25s;
    }
    .testimonial:hover { transform: translateY(-3px); }
    .testimonial-q {
      font-size: .95rem; color: var(--text); line-height: 1.65;
      margin-bottom: 16px; font-style: italic;
    }
    .testimonial-q::before { content: '\201C'; font-size: 2rem; line-height: .5; color: var(--orange); opacity: .35; display: block; margin-bottom: 6px; }
    .testimonial-author { display: flex; align-items: center; gap: 10px; }
    .t-av {
      width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
      display: grid; place-items: center;
      font-family: 'Sora', sans-serif; font-weight: 700; font-size: .65rem; color: var(--text-on-dark);
    }
    .t-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: .85rem; }
    .t-role { font-size: .72rem; color: var(--muted); }

    /* ── HOW GIVING WORKS ── */
    .giving-section { background: var(--bg); }
    .giving-inner { display: grid; gap: 48px; align-items: center; }
    .giving-visual {
      background: var(--accent); border-radius: 32px;
      padding: 36px 28px; color: var(--text-on-dark); position: relative; overflow: hidden;
    }
    .giving-visual::after {
      content: ''; position: absolute; bottom: -60px; right: -60px;
      width: 240px; height: 240px; border-radius: 50%;
      background: var(--giving-glow);
    }
    .giving-visual h3 {
      font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px;
    }
    .giving-visual p { font-size: .9rem; opacity: .85; margin-bottom: 28px; line-height: 1.6; }
    .giving-amounts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
    .ga-btn {
      background: var(--amount-surface); border: 2px solid var(--amount-line);
      color: var(--text-on-dark); border-radius: 999px; padding: 10px 18px;
      font-family: 'Sora', sans-serif; font-weight: 700; font-size: .9rem;
      cursor: pointer; transition: background .2s, border-color .2s, color .2s;
    }
    .ga-btn:hover, .ga-btn.sel {
      background: var(--card); color: var(--orange); border-color: var(--line-inverse);
    }
    .donate-cta {
      background: var(--card); color: var(--orange); border: none; border-radius: 999px;
      padding: 15px 28px; width: 100%; font-family: 'Sora', sans-serif;
      font-weight: 800; font-size: 1rem; cursor: pointer;
      display: block; text-align: center;
      box-shadow: var(--shadow-donate-cta); transition: transform .2s, box-shadow .2s;
    }
    .donate-cta span { pointer-events: none; }
    .donate-cta svg  { vertical-align: middle; margin-right: 6px; pointer-events: none; }
    .donate-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-donate-cta-hover); }
    .donate-trust-note {
      text-align: center; font-size: .72rem; opacity: .7; margin-top: 12px;
      display: flex; align-items: center; justify-content: center; gap: 5px;
    }
    .giving-text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; margin-bottom: 16px; }
    .giving-text p  { color: var(--text); font-size: .98rem; line-height: 1.7; margin-bottom: 20px; }
    .impact-pills {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }
    .impact-pill {
      background: var(--orange-soft); border: 1px solid var(--button-line);
      border-radius: 999px; padding: 8px 16px;
      font-size: .82rem; font-weight: 600; color: var(--text);
      display: flex; align-items: center; gap: 6px;
    }

    /* ── CTA BANNER ── */
    .cta-banner {
      background: var(--ink); color: var(--text-on-dark);
      border-radius: 32px; padding: 52px 36px;
      text-align: center; position: relative; overflow: hidden;
    }
    .cta-banner::before {
      content: ''; position: absolute;
      top: -80px; left: 50%; transform: translateX(-50%);
      width: 500px; height: 300px;
      background: radial-gradient(circle, var(--banner-glow) 0%, transparent 70%);
    }
    .cta-banner h2 {
      font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800;
      letter-spacing: -.04em; margin-bottom: 14px; position: relative;
    }
    .cta-banner h2 span { color: var(--orange); }
    .cta-banner p { font-size: 1rem; opacity: .7; margin-bottom: 32px; position: relative; }
    .cta-btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; position: relative; }

    /* ── FOOTER ── */
    footer {
      background: var(--ink); color: var(--body-on-dark);
      padding: 64px 0 32px;
    }
    .footer-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;   /* 2 columns on mobile */
      gap: 32px 24px;
      margin-bottom: 52px;
    }
    .footer-brand-col {
      grid-column: 1 / -1;              /* brand spans full width on mobile */
    }
    .footer-brand-col .brand { color: var(--text-on-dark); margin-bottom: 14px; }
    .footer-brand-col p { font-size: .93rem; line-height: 1.7; color: var(--footer-copy); max-width: 320px; }
    .footer-col h4 {
      font-family: 'Sora', sans-serif; font-size: .85rem; font-weight: 700;
      letter-spacing: .07em; text-transform: uppercase;
      color: var(--footer-heading); margin-bottom: 14px;
    }
    .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
    .footer-col ul li a {
      font-size: 1rem; color: var(--footer-link); transition: color .2s;
      display: block; padding: 7px 0;
    }
    .footer-col ul li a:hover { color: var(--orange); }
    .footer-bottom {
      border-top: 1px solid var(--footer-line);
      padding-top: 24px;
      display: flex; flex-wrap: wrap; gap: 12px;
      justify-content: space-between; align-items: center;
    }
    .footer-bottom p { font-size: .84rem; color: var(--footer-meta); }

    /* ── DONATION MODAL ── */
    .modal-backdrop {
      display: none; position: fixed; inset: 0;
      background: var(--modal-backdrop); backdrop-filter: blur(5px);
      z-index: 200; align-items: flex-end; justify-content: center;
    }
    .modal-backdrop.open { display: flex; }
    .modal-sheet {
      background: var(--card); border-radius: 28px 28px 0 0;
      padding: 28px 22px 48px; width: 100%; max-width: 500px;
      max-height: 92vh; overflow-y: auto;
      animation: sheetUp .38s cubic-bezier(.16,1,.3,1);
    }
    @keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
    .modal-handle { width: 42px; height: 4px; background: var(--modal-handle); border-radius: 2px; margin: 0 auto 24px; }
    .modal-close {
      position: absolute; top: 22px; right: 22px;
      width: 34px; height: 34px; border-radius: 50%; border: none;
      background: var(--modal-dismiss); cursor: pointer; font-size: .9rem;
      display: grid; place-items: center; transition: background .2s;
    }
    .modal-close:hover { background: var(--modal-dismiss-hover); }
    .modal-title { font-family: 'Sora', sans-serif; font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 6px; }
    .modal-subtitle { font-size: .88rem; color: var(--muted); margin-bottom: 24px; }
    .modal-amounts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
    .m-amt {
      background: var(--orange-soft); border: 1.5px solid var(--button-line);
      border-radius: 999px; padding: 10px 20px;
      font-family: 'Sora', sans-serif; font-weight: 700; font-size: .92rem;
      color: var(--text); cursor: pointer; transition: all .18s;
    }
    .m-amt:hover, .m-amt.active { background: var(--orange); color: var(--text-on-dark); border-color: var(--orange); }
    .modal-pay-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
    .pay-btn {
      display: flex; align-items: center; justify-content: center; gap: 10px;
      padding: 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
      background: var(--card); font-family: 'Sora', sans-serif; font-weight: 700; font-size: .95rem;
      cursor: pointer; transition: border-color .2s, background .2s;
    }
    .pay-btn:hover { border-color: var(--orange); }
    .pay-btn.apple { background: var(--payment-button); color: var(--text-on-dark); border-color: var(--payment-line); }
    .pay-btn.apple:hover { background: var(--payment-button-hover); }
    .pay-divider { text-align: center; font-size: .78rem; color: var(--muted); margin: 2px 0; }
    .modal-note {
      text-align: center; font-size: .73rem; color: var(--muted);
      display: flex; align-items: center; justify-content: center; gap: 5px;
    }

    /* ── TOAST ── */
    .toast {
      position: fixed; bottom: 28px; left: 50%;
      transform: translateX(-50%) translateY(80px);
      background: var(--ink); color: var(--text-on-dark);
      padding: 14px 22px; border-radius: 999px;
      font-family: 'Sora', sans-serif; font-weight: 600; font-size: .88rem;
      display: flex; align-items: center; gap: 10px;
      box-shadow: var(--shadow-toast);
      z-index: 999; transition: transform .4s cubic-bezier(.16,1,.3,1);
      white-space: nowrap; pointer-events: none;
    }
    .toast.show { transform: translateX(-50%) translateY(0); }

    /* ── SCROLL REVEAL ── */
    .reveal {
      opacity: 0; transform: translateY(24px);
      transition: opacity .6s ease, transform .6s ease;
    }
    .reveal.in { opacity: 1; transform: translateY(0); }

    /* ── PAGE HEADINGS ──────────────────────────────────────────
       Tune weight / size here to affect all pages at once.
       .page-heading  — main h1 on content/interior pages
       .section-heading — major h2s within sections
       .card-heading    — h2/h3 inside cards and smaller components
       .cr-heading    — h1/h2 inside creator tool pages         */
    .page-heading {
      font-family: 'Sora', sans-serif;
      font-size: clamp(1.75rem, 4.5vw, 2.6rem);
      font-weight: 700;
      letter-spacing: -.03em;
      line-height: 1.15;
      color: var(--ink);
      text-align: center;
    }
    .section-heading {
      font-family: 'Sora', sans-serif;
      font-size: clamp(1.4rem, 3.5vw, 2rem);
      font-weight: 700;
      letter-spacing: -.03em;
      line-height: 1.2;
      color: var(--ink);
      text-align: center;
    }
    .card-heading {
      font-family: 'Sora', sans-serif;
      font-size: clamp(1.1rem, 2.5vw, 1.4rem);
      font-weight: 700;
      letter-spacing: -.025em;
      line-height: 1.25;
      color: var(--ink);
    }
    .cr-heading {
      font-family: 'Sora', sans-serif;
      font-size: clamp(1.3rem, 3vw, 1.7rem);
      font-weight: 700;
      letter-spacing: -.035em;
      line-height: 1.2;
      color: var(--ink);
    }

    /* ── RESPONSIVE ── */
    @media (min-width: 600px) {
      .creators-grid { grid-template-columns: 1fr 1fr; }
    }

    @media (min-width: 768px) {
      .nav-links  { display: flex; }
      .hamburger  { display: none; }
      .search-input-wrap.open { width: 260px; }
      .steps-grid  { grid-template-columns: repeat(3, 1fr); }
      .hero-inner { grid-template-columns: 1fr 1fr; padding-bottom: 60px; }
      .proof-inner { grid-template-columns: 1fr 1fr; }
      .giving-inner { grid-template-columns: 1fr 1fr; }
      .footer-grid {
        grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
        gap: 40px;
      }
      .footer-brand-col { grid-column: auto; }  /* reset mobile full-width span */
      .section    { padding: 100px 0; }
      .section--tight { padding: 72px 0; }
    }

    @media (min-width: 960px) {
      .steps-grid    { grid-template-columns: repeat(3, 1fr); }
      .creators-grid { grid-template-columns: repeat(2, 1fr); }
    }

/* ── CREATOR PAGE ───────────────────────────────────────── */

.creator-hero {
  position: relative;
  overflow: hidden;
}
.creator-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.creator-hero-overlay {
  position: relative;
  background: linear-gradient(145deg, var(--creator-gradient-start) 0%, var(--creator-gradient-mid) 45%, var(--creator-gradient-end) 100%);
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 28px 20px 64px; color: var(--text-on-dark);
}
.creator-hero-overlay .btn-primary {
  width: 100%;
  max-width: 480px;
  align-self: center;
}
.creator-hero-overlay h1 {
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 800; letter-spacing: -.04em; margin-bottom: 8px;
  text-align: center;
}
.creator-hero-overlay p { font-size: .95rem; opacity: .9; margin-bottom: 20px; text-align: center; }
.creator-handle-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--creator-handle-surface); backdrop-filter: blur(6px);
  border: 1px solid var(--amount-line); border-radius: 999px;
  padding: 5px 13px; font-size: .8rem; font-weight: 700;
  margin-bottom: 14px; width: fit-content;
}
.badge-verified {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--orange); display: inline-grid; place-items: center;
  font-size: 9px;
}

.impact-counter-card {
  background: var(--card); border-radius: var(--radius);
  padding: 28px 24px; margin: -36px 16px 0;
  position: relative; z-index: 10;
  box-shadow: var(--shadow-impact-counter-card);
}
.impact-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.impact-number {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 6px;
}
.impact-number span:first-child {
  font-family: 'Sora', sans-serif; font-size: clamp(2.4rem, 8vw, 3.4rem);
  font-weight: 900; letter-spacing: -.04em; line-height: 1;
}
.counting-tag {
  font-size: .85rem; font-weight: 600; color: var(--orange);
}
.progress-section { margin-top: 18px; }
.progress-meta {
  display: flex; justify-content: space-between;
  font-size: .78rem; color: var(--muted); margin-bottom: 7px;
}
.progress-meta strong { color: var(--ink); }
.progress-bar {
  height: 10px; background: var(--progress-track); border-radius: 999px;
  overflow: hidden; margin-bottom: 7px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange) 0%, var(--brand-gradient-start) 100%);
  border-radius: 999px;
  transition: width 1.5s cubic-bezier(.16,1,.3,1);
}
.supporters-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; flex-wrap: wrap;
}
.supporters-avatars { display: flex; }
.supporters-count { font-size: .8rem; color: var(--muted); }
.supporters-count strong { color: var(--ink); }

.creator-content { padding: 28px 16px 0; display: flex; flex-direction: column; gap: 20px; }
.section-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}

.video-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--ink); position: relative;
  height: 210px; cursor: pointer; box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.video-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--creator-gradient-start), var(--orange));
  opacity: .8;
}
.video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--video-shade) 40%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px;
}
.play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -58%);
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--play-surface);
  display: grid; place-items: center;
  box-shadow: var(--shadow-play-btn);
  transition: transform .2s;
}
.video-card:hover .play-btn { transform: translate(-50%, -58%) scale(1.1); }
.play-icon {
  width: 0; height: 0; border-style: solid;
  border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent var(--orange);
  margin-left: 3px;
}
.video-caption { color: var(--text-on-dark); font-size: .88rem; font-weight: 600; }
.video-duration { font-size: .72rem; opacity: .7; margin-top: 2px; color: var(--text-on-dark); }

.donate-widget {
  background: var(--orange); border-radius: var(--radius);
  padding: 28px 22px; color: var(--text-on-dark); margin-bottom: 8px;
  text-align: center;
}
.donate-widget-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; opacity: .85; margin-bottom: 4px;
}
.donate-widget-heading {
  font-family: 'Sora', sans-serif; font-size: 1.35rem;
  font-weight: 800; margin-bottom: 20px;
}
.donate-trust-note {
  text-align: center; font-size: .72rem; opacity: .75;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}

.leaderboard-section { padding: 28px 16px 48px; }
.leaderboard-list { display: flex; flex-direction: column; gap: 10px; }
.leaderboard-item {
  background: var(--card); border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow); cursor: pointer; text-decoration: none;
  color: var(--ink); transition: transform .2s, box-shadow .2s;
}
.leaderboard-item:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); }
.leaderboard-rank {
  font-family: 'Sora', sans-serif; font-weight: 900;
  font-size: 1.1rem; width: 28px; text-align: center; color: var(--muted);
}
.leaderboard-creator { flex: 1; min-width: 0; }
.leaderboard-name {
  font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: .95rem; display: flex; align-items: center; gap: 6px;
}
.leaderboard-sub { font-size: .75rem; color: var(--muted); }

@media (min-width: 768px) {
  .impact-counter-card { margin: -44px 40px 0; }
  .creator-content { padding: 36px 40px 0; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 28px; }
  .creator-content .video-card { flex: 1; min-width: 0; height: auto; min-height: 260px; margin-bottom: 0; }
  .creator-content .donate-widget { flex: 1; min-width: 280px; }
  .leaderboard-section { padding: 36px 40px 60px; }
}

    /* ── Referral attribution bar ───────────────────────────────────────────
       Full-width bar above the sticky nav. Only rendered server-side when
       APP_REFERRAL_HANDLE is set and not suppressed.                       */
    .ref-bar {
      background: var(--green);
      color: var(--text-on-dark);
      font-size: .82rem;
      font-weight: 600;
      text-align: center;
      padding: 9px 48px 9px 20px;
      position: relative;
      z-index: 101;           /* sits above the sticky nav z-index:100 */
      line-height: 1.4;
    }
    .ref-bar strong { font-weight: 800; }
    .ref-bar-close {
      position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
      background: none; border: none; color: var(--text-on-dark);
      font-size: 1.25rem; line-height: 1; cursor: pointer;
      opacity: .65; padding: 4px 8px; transition: opacity .15s;
    }
    .ref-bar-close:hover { opacity: 1; }

    /* ── Widget: custom amount input ────────────────────────────────────────
       Used on both index.asp and creator.asp (both have dark/green bg).    */
    .widget-input-row {
      display: flex; align-items: center;
      background: var(--field-on-brand);
      border: 1.5px solid var(--field-on-brand-line);
      border-radius: 10px; margin-bottom: 14px;
      overflow: hidden; transition: border-color .2s, background .2s;
    }
    .widget-input-row:focus-within {
      border-color: var(--field-on-brand-focus-line);
      background: var(--field-on-brand-focus);
    }
    .widget-input-prefix {
      padding: 0 12px;
      font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.15rem;
      color: var(--field-prefix-on-dark); flex-shrink: 0; line-height: 46px;
      border-right: 1px solid var(--line-on-brand);
    }
    .widget-input {
      flex: 1; background: none; border: none; outline: none;
      color: var(--text-on-dark); font-family: 'Sora', sans-serif;
      font-weight: 700; font-size: 1.05rem;
      padding: 12px 10px;
    }
    .widget-input::placeholder { color: var(--field-placeholder-on-dark); font-weight: 500; }
    .widget-input::-webkit-outer-spin-button,
    .widget-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
    .widget-input[type=number] { -moz-appearance: textfield; }
    .widget-or-label {
      font-size: .68rem; font-weight: 700; letter-spacing: .06em;
      text-transform: uppercase; color: var(--field-label-on-dark);
      text-align: center; margin-bottom: 12px;
    }

    /* ── Tier-1 extracted utilities ─────────────────────────────────────────
       These replace repeated inline styles.  See audit_inline_styles.py.   */

    /* Brand-colour inline text */
    .text-brand { color: var(--green); }

    /* Horizontally-scrollable table wrapper */
    .scroll-x { overflow-x: auto; }

    /* Small secondary metadata  (0.78 rem, muted) */
    .text-meta { font-size: .78rem; color: var(--muted); }

    /* Tiny metadata  (0.72 rem, muted) */
    .text-tiny { font-size: .72rem; color: var(--muted); }

    /* Prose / content page section padding */
    .section--content { padding-top: 60px; padding-bottom: 80px; }

    /* Prose / content container width cap */
    .container--prose { max-width: 720px; }

    /* Body paragraph on static content pages */
    .prose-p {
      color: var(--text);
      font-size: 1rem;
      line-height: 1.7;
      margin-bottom: 32px;
    }

    /* Back-navigation link  (← Back to …) */
    .back-link {
      font-size: .82rem;
      color: var(--muted);
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      margin-bottom: 28px;
    }

    @media (min-width: 1024px) {
  .impact-counter-card { margin: -44px 80px 0; }
  .creator-content { padding: 44px 80px 0; }
  .leaderboard-section { padding: 44px 80px 60px; }
}

/* Phone menu: phones and short landscape only, below the existing 75px bar. */
@media screen and (max-width:640px), screen and (max-width:960px) and (max-height:600px) {
  .site-header { position: fixed; top: 0; left: 0; right: 0; height: var(--menu-bar-h); z-index: 140; }
  body { padding-top: var(--menu-bar-h); }
  .nav { min-height: calc(var(--menu-bar-h) - 1px); gap: 8px; }
  .nav-links, .nav-actions .btn { display: none; }
  .hamburger { display: inline-flex; }
  .search-icon-btn { width: var(--tap-min); height: var(--tap-min); }
  .mobile-menu {
    display: block; position: fixed; top: var(--menu-bar-h); right: 0; left: auto; bottom: auto;
    width: 62vw; max-width: 220px;
    max-height: calc(100vh - var(--menu-bar-h)); max-height: calc(100dvh - var(--menu-bar-h));
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 6px 0 calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 2px solid var(--accent); background: var(--card); box-shadow: var(--shadow-lg);
    z-index: 130; visibility: hidden; transform: translateX(100%);
    transition: transform .22s ease, visibility 0s linear .22s;
  }
  html.nav-open .mobile-menu { visibility: visible; transform: none; transition: transform .22s ease; }
  .mobile-menu ul { list-style: none; margin: 0; padding: 0; }
  .mobile-menu a, .mobile-menu summary {
    display: flex; align-items: center; min-height: var(--tap-min); padding: 6px 12px;
    font-family: 'Sora', sans-serif; font-size: var(--fs-menu); line-height: 1.25;
    font-weight: 600; color: var(--text); cursor: pointer;
  }
  .mobile-menu a:hover, .mobile-menu a:focus-visible, .mobile-menu summary:focus-visible {
    color: var(--green); background: var(--green-s);
  }
  .menu-h { margin: 10px 0 2px; padding: 3px 12px; font-size: .75rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); border-left: 3px solid var(--accent); }
  .menu-backdrop { display: block; position: fixed; top: var(--menu-bar-h); left: 0; right: 0; bottom: 0;
    background: var(--menu-backdrop); touch-action: none; z-index: 120;
    opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility 0s linear .22s; }
  html.nav-open .menu-backdrop { opacity: 1; visibility: visible; transition: opacity .22s ease; }
  html.nav-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu, html.nav-open .mobile-menu, .menu-backdrop, html.nav-open .menu-backdrop, .menu-icon span { transition: none; }
}

/* The full desktop row needs 1079px plus container gutters. Give tall tablets
   two ordinary nav rows; short landscape remains the phone-menu layout. */
@media screen and (min-width:641px) and (max-width:1139px) and (min-height:601px) {
  .nav { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 12px 0; }
  .brand, .nav-actions { min-width: 0; }
  .nav-links { display: flex; grid-row: 2; grid-column: 1 / -1; flex-wrap: wrap; justify-content: center; }
  .nav-actions { justify-self: end; }
}

/* A flex card's min-content width exceeded the phone column. Keep the avatar
   beside its metadata and place the meal total below that metadata. */
@media screen and (max-width:767px) {
  .creator-card { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; min-width: 0; }
  .creator-ava { grid-row: 1 / span 2; align-self: start; }
  .creator-meta { min-width: 0; }
  .creator-handle { overflow-wrap: anywhere; }
  .creator-right { grid-column: 2; text-align: left; min-width: 0; }
}
@media screen and (max-width:360px) {
  .site-header .brand { font-size: 1.35rem; }
}

/* At very narrow widths the nowrap CTA pair enlarged the grid's automatic
   track and pushed both the hero visual and its floating card past the page. */
@media screen and (max-width:340px) {
  .hero-cta-row { flex-wrap: wrap; }
  .btn-ghost { max-width: 100%; white-space: normal; text-align: center; }
}
