/* Recipe information rail — one coherent guide with no box-in-box styling. */

body.recipes-page:has(.recipe-detail-hero) .recipe-safety{
  position:sticky;
  top:104px;
  display:block;
  overflow:hidden;
  padding:0;
  border:1px solid #d8e1de;
  border-radius:22px;
  background:#fff;
  box-shadow:0 24px 64px rgba(21,56,69,.08);
}

body.recipes-page:has(.recipe-detail-hero) .recipe-safety-card{
  position:relative;
  display:grid;
  grid-template-columns:32px minmax(0,1fr);
  column-gap:12px;
  overflow:visible;
  margin:0;
  padding:22px 22px 23px;
  border:0;
  border-bottom:1px solid #e1e8e6;
  border-radius:0;
  background:#fff;
  box-shadow:none;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-safety-card:last-child{border-bottom:0}

/* Restrained section markers, used only for orientation. */
body.recipes-page:has(.recipe-detail-hero) .recipe-safety-card::before{
  content:"i";
  grid-column:1;
  grid-row:1 / span 2;
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:#eef4f2;
  color:#153845;
  font-family:Georgia,serif;
  font-size:.78rem;
  font-weight:800;
  line-height:1;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-card::before{
  content:"≈";
  background:#f6eed6;
  color:#76551b;
  font-size:.95rem;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-safety-card--primary::before{
  content:"✓";
  background:#dceeea;
  color:#075f5a;
  font-family:inherit;
}

body.recipes-page:has(.recipe-detail-hero) .recipe-safety-card>.eyebrow,
body.recipes-page:has(.recipe-detail-hero) .recipe-safety-card>h3,
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-head{
  grid-column:2;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-safety-card>.eyebrow{
  align-self:end;
  margin:0 0 4px;
  color:#087c75;
  font-size:.6rem;
  letter-spacing:.09em;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-safety-card>h3{
  margin:0;
  color:#153845;
  font-size:1.08rem;
  line-height:1.25;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-safety-list,
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-grid,
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-note{
  grid-column:1 / -1;
}

/* The redundant publication-review panel is intentionally removed. */
body.recipes-page:has(.recipe-detail-hero) .recipe-publication-check{display:none!important}

/* Flat nutrition profile: strong energy summary, then reference-intake bars. */
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-card{
  background:linear-gradient(145deg,#fffdf8,#fbfaf4);
}
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-head{
  align-items:flex-start;
  padding:0 0 17px;
  border:0;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-head .eyebrow{
  margin:0 0 4px;
  color:#8a691f;
  font-size:.6rem;
  letter-spacing:.09em;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-head h3{
  margin:0;
  color:#153845;
  font-size:1.08rem;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-head>span{
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-top:2px;
  padding:0;
  border:0;
  background:transparent;
  color:#8a691f;
  font-size:.58rem;
  letter-spacing:.05em;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-head>span::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:#c28b2d;
}

body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-grid{
  display:block;
  overflow:visible;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-grid>div,
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-grid>div:nth-child(odd),
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-grid>div:nth-child(even){
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:6px 14px;
  align-items:end;
  min-height:0;
  padding:12px 0;
  border:0;
  border-bottom:1px solid #e6e2d7;
  background:transparent;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-grid>div:last-child{border-bottom:0}
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-grid dt{
  color:#53656d;
  font-size:.73rem;
  font-weight:760;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-grid dd{
  color:#153845;
  font-size:.75rem;
  font-weight:850;
}

body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-grid .recipe-nutrition-energy{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  min-height:0;
  margin:0 0 5px;
  padding:13px 0 17px!important;
  border-top:1px solid #ded8c7;
  border-bottom:1px solid #ded8c7;
  background:transparent;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-energy dt{
  color:#8a691f;
  font-size:.64rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-energy dd{
  color:#153845;
  font-family:Georgia,serif;
  font-size:1.35rem;
  line-height:1;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-energy dd small{
  display:block;
  margin-top:5px;
  color:#718087;
  font-family:inherit;
  font-size:.62rem;
}

body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-meter{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:minmax(0,1fr) 40px;
  gap:9px;
  align-items:center;
  margin-top:1px;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-track{
  display:block;
  overflow:hidden;
  height:5px;
  border-radius:999px;
  background:#e5e9e7;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-fill{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#72c7be,#087c75);
}
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-meter small{
  color:#65767d;
  font-size:.58rem;
  font-weight:800;
  text-align:right;
  white-space:nowrap;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-row--plain{
  padding-bottom:11px!important;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-note{
  margin:13px 0 0!important;
  padding-top:12px;
  border-top:1px solid #ded8c7;
  color:#718087!important;
  font-size:.65rem!important;
  line-height:1.5!important;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-ri-explainer{
  display:block;
  margin-top:7px;
  color:#52656c;
}

/* Precaution sections use spacing and dividers rather than additional boxes. */
body.recipes-page:has(.recipe-detail-hero) .recipe-safety-card--primary{
  background:#f3faf8;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-safety-list{
  gap:0;
  margin-top:16px;
  border-top:1px solid rgba(21,56,69,.1);
}
body.recipes-page:has(.recipe-detail-hero) .recipe-safety-list li{
  padding:11px 0 11px 20px;
  border-bottom:1px solid rgba(21,56,69,.08);
  color:#4e6269;
  font-size:.77rem;
  line-height:1.52;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-safety-list li:last-child{
  padding-bottom:2px;
  border-bottom:0;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-safety-list li::before{
  top:1.02rem;
  width:6px;
  height:6px;
  background:#087c75;
  box-shadow:none;
}

@media(max-width:900px){
  body.recipes-page:has(.recipe-detail-hero) .recipe-safety{
    position:static;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:1px;
    overflow:hidden;
    background:#dfe7e5;
  }
  body.recipes-page:has(.recipe-detail-hero) .recipe-safety-card{
    min-width:0;
    border:0;
  }
}

@media(max-width:620px){
  body.recipes-page:has(.recipe-detail-hero) .recipe-safety{
    grid-template-columns:1fr;
  }
  body.recipes-page:has(.recipe-detail-hero) .recipe-safety-card{
    padding:20px;
  }
}
