/* Photorealistic website backgrounds. Native app screens keep their existing theme. */
body[data-food-background] {
  min-height:100vh;
  isolation:isolate;
  background:#193b27!important;
  color:#fff9e9;
}
body[data-food-background]::before {
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background-image:linear-gradient(rgba(10,33,19,.19),rgba(10,33,19,.25)),var(--food-page-bg);
  background-size:cover;
  background-position:center;
}
body[data-food-background] .garden-olive-text {
  background:none!important;
  -webkit-text-fill-color:currentColor!important;
  color:inherit!important;
}
body[data-food-background] .app-shell { background:none; color:#2b4532; }
body[data-food-background] .app-shell .workspace,
body[data-food-background] .app-shell main { background:transparent; }
body[data-food-background] .app-shell .sidebar {
  background:rgba(20,46,30,.95);
  color:#f8f4df;
  border-right:1px solid #f5f5dd33;
}
body[data-food-background] .sidebar :is(.sidebar-caption,.nav-item,.account-button small,.sidebar-legal) {color:#dce6ce;}
body[data-food-background] .sidebar .nav-item.active {background:#f0f3de22;color:#fffbe9;}
body[data-food-background] .sidebar .nav-item:hover {background:#f0f3de18;}
body[data-food-background] .sidebar :is(.sidebar-line,.sidebar-legal) {border-color:#f1f0d52c;}
body[data-food-background] .sidebar .new-recipe {background:#edf0da;color:#29432f;}
body[data-food-background] .sidebar .plus-card {background:#f4f6df14;color:#f5f2dd;border-color:#e9f0d32b;}
body[data-food-background] .sidebar .plus-card:after {opacity:.16;}
body[data-food-background] .sidebar .plus-icon {background:#f2f5dc24;color:#f1f4dc;}
body[data-food-background] .sidebar .plus-card p,
body[data-food-background] .sidebar .plus-card button,
body[data-food-background] .sidebar .account-button strong {color:#f1f2dc;}
body[data-food-background] .sidebar .account-button {color:#f1f2dc;}
body[data-food-background] .app-shell .topbar {background:rgba(18,43,28,.89);border-color:#ebf1d731;color:#f4f3e0;}
body[data-food-background] .topbar .breadcrumb {color:#e1e9d3;}
body[data-food-background] .topbar .help-button {border-color:#eef2d63b;color:#f0f1dd;}
body[data-food-background] .app-shell .public-navigation a {background:rgba(22,51,32,.88);border-color:#f6f7df36;color:#fbf7e7;box-shadow:0 6px 20px #11281618;}
body[data-food-background] .app-shell .public-navigation a:hover {background:#244d34;}
body[data-food-background] .app-shell .homepage-intro {display:flex;justify-content:center;min-height:430px;margin:26px 0 45px;padding:18px 0;}
body[data-food-background] .app-shell .homepage-intro-copy {flex:initial;width:min(620px,100%);padding:38px 40px;background:rgba(23,51,33,.91);color:#fff9e9;border:1px solid #f8f2d74a;border-radius:28px;box-shadow:0 22px 70px #132a2140;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);}
body[data-food-background] .app-shell .homepage-intro h1 {color:#fff9e9;font-size:clamp(42px,4.2vw,60px);}
body[data-food-background] .app-shell .homepage-intro h1>span {color:#e3e9ca;}
body[data-food-background] .app-shell .homepage-intro .intro-copy {color:#e6e9d7;}
body[data-food-background] .app-shell .food-editorial-hero {display:none;}
body[data-food-background] .app-shell .food-editorial-cta {background:#edf0d8;color:#284631;}
body[data-food-background] .app-shell .food-editorial-cta:hover {background:#fffbe9;}
body[data-food-background] .app-shell .play-download {background:rgba(22,50,32,.9);border:1px solid #faf0d340;padding:20px 24px;border-radius:22px;color:#fff9e9;}
body[data-food-background] .food-editorial-download-copy>span {color:#d2dfb6;}
body[data-food-background] .app-shell .play-download-qr {background:#f7f5e6;padding:7px;border-radius:12px;width:96px;height:96px;}
body[data-food-background] .app-shell .scan-card {background:rgba(24,53,35,.94);color:#fff9e9;border-color:#f0f0d34a;box-shadow:0 15px 40px #1025192e;}
body[data-food-background] .scan-card :is(h2,p,.upload-link,.scan-footer) {color:#edf0da;}
body[data-food-background] .scan-card .primary {background:#edf0d8;color:#29452f;}
body[data-food-background] .scan-card .scan-footer {border-color:#e9efd333;}
body[data-food-background] .app-shell .how-it-works {background:rgba(23,51,34,.94);border:1px solid #eef0d333;border-radius:22px;padding:24px;color:#fff9e9;margin-block:30px;}
body[data-food-background] .how-it-works :is(h3,p,.process-icon,.process-number) {color:#edf1d7;}
body[data-food-background] .app-shell .section-heading {padding:22px 24px;border-radius:20px;background:rgba(23,51,34,.92);color:#fff9e9;margin-bottom:24px;}
body[data-food-background] .section-heading :is(.eyebrow,.text-link) {color:#e4ebcc;}
body[data-food-background] .app-shell .recipe-card {background:rgba(255,253,241,.97);color:#294631;padding:0 0 20px;border:1px solid #f4f1dc8a;border-radius:19px;overflow:hidden;box-shadow:0 16px 45px #132a2138;}
body[data-food-background] .recipe-card :is(.recipe-title,.recipe-description,.recipe-card-bottom) {margin-inline:20px;}
body[data-food-background] .recipe-card :is(.recipe-description,.recipe-card-bottom) {color:#526548;}
body[data-food-background] .app-shell .sample-note {background:rgba(22,50,32,.94);border:1px solid #edf0d238;border-radius:16px;padding:20px;color:#f5f3df;margin-top:28px;}
body[data-food-background] .sample-note button {color:#f4f3df;}
body[data-food-background] .app-shell .page-footer {background:rgba(22,50,32,.91);border:1px solid #edf0d238;border-radius:16px;padding:20px;color:#e5e9d1;margin-top:28px;}
body[data-food-background] .app-shell .page-heading {padding:26px;background:rgba(24,53,35,.93);color:#fff9e9;border-radius:22px;}
body[data-food-background] .page-heading :is(.eyebrow,p) {color:#e3e8cf;}
/* Policy documents remain quiet, readable surfaces over the food backdrop. */
body[data-food-background] .app-shell:has(.policy-copy)>:is(.sidebar,.workspace) {visibility:hidden;}
body[data-food-background] .modal-backdrop:has(.policy-copy) {background:rgba(11,32,20,.2);backdrop-filter:none;-webkit-backdrop-filter:none;}
body[data-food-background] .modal:has(.policy-copy) {background:rgba(23,49,33,.96);color:#fff9e9;border:1px solid #f5f0d65c;box-shadow:0 25px 90px #10231765;}
body[data-food-background] .modal:has(.policy-copy) :is(.eyebrow,h2,.policy-copy,.policy-copy p,.text-link) {color:#eef0dc;}
body[data-food-background] .modal:has(.policy-copy) .primary {background:#edf0d6;color:#294630;}
body[data-food-background] input,
body[data-food-background] textarea,
body[data-food-background] select {background:#fffdf3;color:#294631;}
@media(max-width:720px) {
  body[data-food-background]::before {background-image:linear-gradient(rgba(10,33,19,.22),rgba(10,33,19,.3)),var(--food-mobile-bg);background-position:left center;}
  body[data-food-background] .app-shell main {padding-inline:16px;}
  body[data-food-background] .app-shell .homepage-intro {margin:48px 0 56px;min-height:380px;padding:0;}
  body[data-food-background] .app-shell .homepage-intro-copy {padding:30px 25px;border-radius:25px;}
  body[data-food-background] .app-shell .homepage-intro h1 {font-size:43px;letter-spacing:-1.6px;}
  body[data-food-background] .app-shell .homepage-intro .intro-copy {font-size:14px;}
  body[data-food-background] .app-shell .play-download {padding:20px;}
  body[data-food-background] .app-shell .how-it-works {padding:22px;}
  body[data-food-background] .app-shell .section-heading {padding:22px;gap:20px;}
  body[data-food-background] .modal-backdrop:has(.policy-copy) {padding-inline:17px;}
}

/* Printed recipes and policies must remain legible without background graphics. */
@media print {
  body[data-food-background] {
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
    background: #fff !important;
    color: #111 !important;
    isolation: auto;
    print-color-adjust: economy;
    -webkit-print-color-adjust: economy;
  }
  body[data-food-background]::before {
    display: none !important;
    content: none !important;
  }
  body[data-food-background] *,
  body[data-food-background] *::before,
  body[data-food-background] *::after {
    background: transparent !important;
    background-image: none !important;
    color: #111 !important;
    -webkit-text-fill-color: currentColor !important;
    box-shadow: none !important;
    text-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    border-color: #aaa !important;
  }
  body[data-food-background] .app-shell,
  body[data-food-background] .app-shell .workspace,
  body[data-food-background] .app-shell main,
  body[data-food-background] .food-recipe-layout,
  body[data-food-background] .food-recipe-method {
    display: block !important;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body[data-food-background] :is(.sidebar, .topbar, .public-navigation),
  body[data-food-background] header nav,
  body[data-food-background] footer nav {
    display: none !important;
  }
  body[data-food-background] .food-recipe-layout > div,
  body[data-food-background] .food-recipe-method > div {
    padding: 0 !important;
    border: 0 !important;
  }
  body[data-food-background] .recipe-photo {
    width: auto !important;
    max-width: 80mm !important;
    max-height: 80mm !important;
    margin: 0 0 5mm !important;
    border-radius: 0 !important;
  }
  body[data-food-background] :is(h1, h2, h3) {
    break-after: avoid;
  }
  body[data-food-background] .recipe-steps li {
    break-inside: avoid;
  }
  body[data-food-background] .app-shell:has(.policy-copy) > :is(.sidebar, .workspace) {
    display: none !important;
  }
  body[data-food-background] .modal-backdrop:has(.policy-copy),
  body[data-food-background] .modal:has(.policy-copy) {
    display: block !important;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    transform: none !important;
  }
  body[data-food-background] .modal:has(.policy-copy) button {
    display: none !important;
  }
  body[data-food-background] .modal:has(.policy-copy) .modal-content {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}
