:root{
  --bg:#f8f6ef;
  --card:#fffdf8;
  --ink:#183329;
  --muted:#617467;
  --teal:#2f7851;
  --warm:#f08a31;
  --line:#dfe4db;
  --shadow:0 14px 34px rgba(31,52,42,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font:400 16px/1.55 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
a{color:inherit}
img{display:block;max-width:100%}
.skip{position:absolute;left:-9999px;top:auto}
.skip:focus{left:12px;top:12px;background:#fff;padding:10px 12px;border-radius:8px;z-index:100}
.topbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 24px;background:rgba(248,246,239,.94);backdrop-filter:blur(14px);border-bottom:1px solid rgba(199,209,199,.85)}
.identity{display:flex;align-items:center;gap:14px;text-decoration:none;min-width:0;flex:1}
.brand-lockup,.footer-brand{display:flex;align-items:center;gap:10px;flex-shrink:0;flex-wrap:nowrap}
.brand-logo{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 6px 18px rgba(24,51,41,.05)}
.logo-masterchef{width:128px;padding:6px;background:#e8c2bd}
.logo-stjude{width:160px;padding:4px;background:#fff}
.brand-times{font-size:24px;font-weight:700;color:var(--muted)}
.identity-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.identity-text strong{font-size:20px;line-height:1.1;font-weight:800}
.identity-text small{font-size:12px;color:var(--muted)}
.head-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.lang-label{font-size:12px;color:var(--muted)}
select,input,button{font:inherit}
select{border:1px solid #d8ded5;background:#fff;border-radius:10px;padding:10px 31px 10px 12px;color:var(--ink);max-width:170px}
main>section:not(.hero){max-width:1180px;margin:0 auto;padding-left:25px;padding-right:25px}
.hero{max-width:1280px;margin:0 auto;min-height:480px;display:grid;grid-template-columns:1.08fr .92fr;align-items:center;gap:25px;padding:60px clamp(26px,6vw,80px) 54px}
.eyebrow{font-weight:800;text-transform:uppercase;letter-spacing:2px;color:var(--teal);font-size:11px}
.hero h1,h2,h3{font-family:ui-rounded,"Nunito",system-ui,sans-serif}
.hero h1{font-size:clamp(49px,5.8vw,81px);max-width:650px;line-height:1.04;letter-spacing:-2.7px;margin:19px 0}
.hero h1 em{color:var(--teal);font-style:normal}
.hero-copy>p{font-size:18px;color:#60736a;max-width:505px}
.hero-buttons{display:flex;gap:13px;flex-wrap:wrap;margin-top:30px}
.primary,.secondary{display:inline-flex;align-items:center;gap:15px;padding:13px 20px;border-radius:12px;text-decoration:none;font-weight:800}
.primary{background:var(--teal);color:#fff}
.secondary{border:1px solid #d5ded3;color:var(--teal)}
.hero-art{height:350px;position:relative;display:grid;place-items:center;background:none}
.plate{background:#f0c777;width:320px;height:320px;border-radius:50%;display:grid;place-items:center;box-shadow:inset 0 0 0 15px #e4b864,0 16px 45px rgba(151,130,71,.13);transform:rotate(-8deg)}
.plate-core{width:240px;height:240px;background:#fff9e9;display:grid;place-items:center;border-radius:50%;font-size:120px}
.photo-card{position:relative;right:auto;bottom:auto;width:100%;max-width:430px;margin:0;background:#fff;border-radius:22px;padding:10px;box-shadow:var(--shadow);border:1px solid #ece8e0;transform:none}
.photo-card img{border-radius:12px;width:100%;height:auto;display:block}
.notice{max-width:1130px;margin:0 auto 50px;display:flex;align-items:flex-start;gap:15px;background:#edf3ed;border-left:4px solid var(--teal);border-radius:0 13px 13px 0;padding:15px 19px;color:#355b4d}
.notice p{margin:0;font-size:13.5px}
.notice-icon{width:22px;height:22px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:var(--teal);color:white;font-weight:bold;font-size:13px}
.guide,.recipes-section{padding-top:24px;padding-bottom:65px}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:22px;margin-bottom:23px}
.section-head h2,.about h2{font-size:clamp(28px,3.2vw,43px);margin:8px 0 2px;letter-spacing:-1.1px;line-height:1.15}
.section-head p{color:var(--muted);margin:9px 0}
.guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.guide-grid article{border-radius:17px;border:1px solid var(--line);background:#fff;padding:23px 25px}
.guide-icon{font-size:28px;background:#eef4e8;color:var(--teal);border-radius:12px;width:47px;height:47px;display:grid;place-items:center}
.guide-grid h3{font-size:18px;margin:17px 0 6px}
.guide-grid p{font-size:14px;color:var(--muted);margin:0}
.extra{border-top:1px solid var(--line);margin-top:24px;padding-top:15px}
.extra summary{font-size:14px;color:var(--teal);font-weight:800;cursor:pointer}
.guidance-copy{white-space:pre-line;color:#53695e;margin-top:17px;font-size:14px;max-width:850px}
.recipes-section{border-top:1px solid #efeee8}
.count{background:#e9eee7;border-radius:99px;padding:7px 12px;font-size:12px;font-weight:700;color:var(--teal)}
.tools{display:flex;gap:13px;align-items:end;margin:20px 0}
.searchbox{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #dce1d8;border-radius:12px;padding:0 14px;flex:1;min-width:0;color:#7a8b81}
.searchbox input{padding:14px 4px;outline:none;border:none;width:100%;background:transparent;min-width:0}
.filter-wrap{display:flex;flex-direction:column;gap:4px}
.filter-wrap label{font-size:11px;color:var(--muted)}
.filter-wrap select{min-width:150px;height:48px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 25px}
.chip{border:1px solid #dce1d6;background:#fff;border-radius:30px;padding:9px 14px;cursor:pointer;color:#506b5d;font-weight:700;font-size:13px}
.chip.active{background:var(--teal);color:#fff;border-color:var(--teal)}
.recipe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.recipe{background:#fff;border:1px solid var(--line);border-radius:17px;overflow:hidden;box-shadow:0 5px 20px rgba(35,55,45,.025);display:flex;flex-direction:column}
.recipe-photo{height:205px;background:#e9ece3;position:relative;overflow:hidden;display:grid;place-items:center}
.recipe-photo img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.recipe:hover img{transform:scale(1.035)}
.placeholder{font-size:72px;background:linear-gradient(140deg,#f4efd9,#d9e9dc);width:100%;height:100%;display:grid;place-items:center}
.recipe-body{padding:18px 20px 20px;display:flex;flex-direction:column;flex:1}
.overline{font-size:11px;color:var(--teal);text-transform:uppercase;font-weight:800;letter-spacing:.8px}
.recipe h3{font-size:20px;line-height:1.22;margin:9px 0 10px;min-height:49px}
.region{font-size:12px;color:#7a8a80;margin-bottom:13px}
.nutrition{display:flex;gap:9px;flex-wrap:wrap;font-size:12px;color:#56695f;background:#f6f8f4;border-radius:9px;padding:10px}
.nutrition strong{color:var(--ink)}
.recipe-actions{margin-top:auto;display:flex;gap:10px;align-items:center;padding-top:17px}
.view{background:var(--teal);color:#fff;border:0;border-radius:9px;padding:10px 14px;font-weight:800;cursor:pointer;flex:1;text-align:left}
.save{width:42px;height:42px;border:1px solid #dfe7da;background:#fff;border-radius:10px;cursor:pointer;color:var(--teal);font-size:21px}
.save.saved{background:#eaf3e9}
.empty{padding:60px;text-align:center;color:var(--muted)}
.translation-warning{background:#fff2dc;border:1px solid #f0d59f;padding:13px 16px;margin-bottom:17px;border-radius:11px;font-size:13px}
.about{margin-top:20px!important;background:#eaf0e6;border-radius:23px;padding-top:45px;padding-bottom:48px;margin-bottom:60px!important}
.about>p{max-width:750px;color:#5c7164;font-size:16px}
footer{border-top:1px solid var(--line);padding:35px 24px 45px;text-align:center;color:var(--muted);font-size:12px}
.footer-brand{justify-content:center;margin-bottom:10px}
footer p{margin:6px auto;max-width:720px}
.footer-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
footer a{color:var(--teal)}
dialog{border:0;max-width:650px;width:calc(100% - 25px);max-height:92vh;border-radius:20px;padding:0;box-shadow:0 30px 90px #122b2788}
dialog::backdrop{background:rgba(17,38,31,.65)}
.dialog-inner{position:relative;max-height:92vh;overflow-y:auto}
.close{position:sticky;float:right;top:10px;right:12px;margin:10px 12px -52px 0;border:0;border-radius:50%;background:#fff;box-shadow:var(--shadow);width:36px;height:36px;font-size:25px;cursor:pointer;z-index:2}
.detail-photo{height:270px;background:#e9eee4}
.detail-photo img{width:100%;height:100%;object-fit:cover}
.detail-content{padding:26px 30px 35px}
.detail-content h2{font-size:30px;line-height:1.13;margin:12px 0}
.detail-content h3{font-size:17px;margin:25px 0 7px;color:var(--teal)}
.detail-content p,.detail-content li{font-size:15px;color:#4e6257}
.detail-content ul{padding-left:21px}
.detail-content li{margin:4px 0}
.detail-foot{margin-top:24px;padding:14px;background:#edf3ed;border-radius:9px;font-size:12px;color:#536d5e}
.small-note{font-size:12px;color:#7a8179;margin-top:6px}
.loading-inline{font-style:italic}
@media(max-width:980px){
  .identity{flex-direction:row;align-items:center;gap:10px}
  .brand-lockup{flex-wrap:nowrap}
}
@media(max-width:850px){
  .hero{grid-template-columns:1fr 310px;padding-top:38px}
  .hero-art{height:300px}
  .plate{width:240px;height:240px}
  .plate-core{width:178px;height:178px;font-size:85px}
  .photo-card{max-width:370px}
  .recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .guide-grid{gap:10px}
  .guide-grid article{padding:18px}
}
@media(max-width:620px){
  .topbar{padding:11px 14px;align-items:center;gap:8px}
  .lang-label{display:none}
  .logo-masterchef{width:88px}
  .logo-stjude{width:112px}
  .brand-times{font-size:16px}
  .identity-text strong{font-size:17px}
  .identity-text small{font-size:10px}
  .head-actions select{max-width:108px;font-size:11px;padding:8px 18px 8px 7px}
  .hero{grid-template-columns:1fr;padding:37px 23px 20px;min-height:auto;gap:16px}
  .hero h1{font-size:53px;max-width:400px;margin:15px 0}
  .hero-copy>p{font-size:16px}
  .hero-art{height:auto;margin:0 0 12px}
  .plate{height:196px;width:196px;box-shadow:inset 0 0 0 10px #e4b864}
  .plate-core{width:148px;height:148px;font-size:75px}
  .photo-card{max-width:none;padding:8px}
  .notice{margin:8px 19px 37px;padding:14px 12px}
  .guide-grid{grid-template-columns:1fr}
  .guide-grid article{padding:16px 19px}
  .guide-icon{width:38px;height:38px;font-size:23px}
  .guide-grid h3{margin:10px 0 4px}
  .section-head h2,.about h2{font-size:31px}
  main>section:not(.hero){padding-left:19px;padding-right:19px}
  .guide,.recipes-section{padding-bottom:44px}
  .tools{flex-direction:column;align-items:stretch}
  .searchbox{flex:auto}
  .filter-wrap{display:none}
  .chips{flex-wrap:nowrap;overflow-x:auto;margin-left:-19px;margin-right:-19px;padding:0 19px 8px;scrollbar-width:none}
  .chip{flex-shrink:0}
  .recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
  .recipe-photo{height:126px}
  .recipe-body{padding:13px 11px}
  .recipe h3{font-size:16px;min-height:58px}
  .region{font-size:10px;margin-bottom:8px}
  .nutrition{font-size:10px;padding:8px;gap:4px}
  .nutrition span:last-child{display:none}
  .recipe-actions{padding-top:12px}
  .view{font-size:12px;padding:9px}
  .save{width:34px;height:34px;font-size:18px;flex-shrink:0}
  .about{border-radius:0;margin-bottom:0!important}
  .detail-photo{height:195px}
  .detail-content{padding:19px 20px 26px}
  .detail-content h2{font-size:26px}
  .footer-actions{gap:8px}
}
@media(max-width:365px){
  .recipe-grid{grid-template-columns:1fr}
  .recipe-photo{height:170px}
  .recipe h3{min-height:0}
}

.hero-banner-card img{width:100%;aspect-ratio:1.15/1;object-fit:cover;border-radius:16px;display:block}

/* Progressive-web-app installation */
.install-btn{appearance:none;background:#f0f4e9;color:var(--teal);border:1px solid #c9dac9;border-radius:10px;padding:9px 13px;font-size:13px;font-weight:800;cursor:pointer;white-space:nowrap}
.install-btn:hover{background:#e4efe1}
#installDialog{border:0;border-radius:20px;padding:0;width:min(420px,calc(100% - 24px));max-height:90dvh;box-shadow:0 25px 70px #18332955}
#installDialog::backdrop{background:#18332999}
.install-panel{padding:30px;position:relative;max-height:90dvh;overflow:auto}
.install-panel>img{border-radius:16px}
.install-panel h2{font-size:24px;line-height:1.2;margin:15px 0 8px}
.install-panel p{color:var(--muted);margin:8px 0}
.install-instructions{margin:17px 0 7px;padding:16px;border-radius:13px;background:#edf4ec;font-size:14px;color:#345848;line-height:1.65}
.install-instructions ol{padding-left:21px;margin:8px 0}
.install-instructions li{padding:2px 0}
.install-close{position:absolute;top:15px;right:15px;border:0;background:#eef3e9;border-radius:50%;width:36px;height:36px;font-size:25px;cursor:pointer}
.install-confirm{border:0;margin-top:15px;cursor:pointer}
@media(max-width:620px){.install-btn{font-size:11px;padding:8px 9px}.head-actions{gap:5px}.install-panel{padding:24px}.topbar{gap:6px}}
@media(max-width:410px){.logo-masterchef{width:70px}.logo-stjude{width:89px}.brand-lockup{gap:4px}.brand-times{font-size:13px}.head-actions select{max-width:90px}.install-btn{padding:7px 7px;font-size:10px}}

/* v11: preserve the original v8 one-row mobile header. The install action
   floats outside the crowded logo/navigation row on small screens. */
.topbar{min-width:0}
.head-actions{min-width:0}
.install-btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;position:relative;z-index:1;line-height:1.2;min-height:38px;background:#edf5ec;color:var(--teal);border:1px solid #bdd7c4;border-radius:11px;padding:9px 13px;box-shadow:0 4px 12px #173b2214;font-size:13px;font-weight:800;white-space:nowrap}
@media(max-width:680px){
 .topbar{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px}
 .identity{flex-direction:row;align-items:center;min-width:0;flex:1}
 .brand-lockup{display:flex;flex-wrap:nowrap;align-items:center;gap:5px;min-width:0}
 .brand-times{font-size:13px;flex-shrink:0}
 .logo-masterchef{width:clamp(75px,22vw,105px)}
 .logo-stjude{width:clamp(95px,27vw,129px)}
 .head-actions{display:flex;flex-shrink:0;min-width:0;gap:0}
 .head-actions select{font-size:12px;max-width:108px;padding:9px 23px 9px 7px}
 .install-btn{position:fixed;top:auto;right:16px;bottom:calc(16px + env(safe-area-inset-bottom, 0px));z-index:35;background:var(--teal);color:white;border:1px solid var(--teal);border-radius:999px;box-shadow:0 6px 22px #18332945;font-size:13px;padding:12px 18px;min-height:44px}
 .install-btn:hover{background:#266744;color:white}
}
@media(max-width:360px){.logo-masterchef{width:72px}.logo-stjude{width:94px}.head-actions select{max-width:94px;font-size:11px}}


.install-fab{position:fixed;right:18px;bottom:18px;z-index:45;border:0;border-radius:999px;background:var(--teal);color:#fff;padding:13px 18px;font-weight:800;font-size:15px;line-height:1;box-shadow:0 12px 28px rgba(24,51,41,.22);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-height:48px;min-width:48px}
.install-fab:hover{filter:brightness(.98)}
.install-fab:focus-visible{outline:3px solid rgba(47,120,81,.28);outline-offset:3px}
body.has-install-fab{padding-bottom:86px}
@media(max-width:620px){
  .install-fab{right:14px;bottom:14px;padding:12px 16px;font-size:14px;min-height:46px}
  body.has-install-fab{padding-bottom:82px}
}

/* Mobile-only icon treatment; desktop retains the full install label. */
.install-fab-icon{display:none}
@media(max-width:620px){
  .install-fab{width:52px;height:52px;min-width:52px;min-height:52px;padding:0;border-radius:50%}
  .install-fab .install-label{display:none}
  .install-fab-icon{display:block;width:25px;height:25px}
}
