/* GCSI recipe UX refinement — 2026-08-08 · submit navigation cleanup
   Keeps recovery and validation behavior while removing system-noise from the UI. */

/* --------------------------------------------------------------------------
   Submission: quiet recovery, guided workspace, natural completion actions
   -------------------------------------------------------------------------- */
body.recipes-page .recipe-draft-status,
body.recipes-page .recipe-completion-summary,
body.recipes-page .recipe-auto-claims,
body.recipes-page .recipe-measurement-memory-note{
  display:none!important;
}

body.recipes-page .recipe-submit-head--v2{
  max-width:760px!important;
  margin-bottom:30px!important;
  padding-bottom:24px!important;
}
body.recipes-page .recipe-submit-head--v2 .recipe-submit-steps{display:none!important}
body.recipes-page .recipe-form--v2{border-top:0!important;gap:0!important}
body.recipes-page .recipe-submit-workspace{
  display:grid;
  grid-template-columns:minmax(180px,210px) minmax(0,1fr);
  gap:clamp(28px,4vw,48px);
  align-items:start;
}
body.recipes-page .recipe-submit-rail{
  position:sticky;
  top:92px;
  z-index:25;
  min-width:0;
  padding:2px 12px 2px 0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
body.recipes-page .recipe-submit-rail__head{
  margin:0 0 12px 4px;
  padding:0 0 10px;
  border-bottom:1px solid #e3eae8;
}
body.recipes-page .recipe-submit-rail__head .eyebrow{margin:0;color:#087c75;font-size:.6rem}
body.recipes-page .recipe-submit-rail__head strong{display:none}
body.recipes-page .recipe-submit-rail .recipe-submit-steps{
  position:relative;
  display:grid!important;
  gap:2px!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  border:0!important;
}
body.recipes-page .recipe-submit-rail .recipe-submit-steps::before{
  content:"";
  position:absolute;
  left:15px;
  top:17px;
  bottom:17px;
  width:1px;
  background:#dce5e2;
  pointer-events:none;
}
body.recipes-page .recipe-submit-rail .recipe-submit-steps a{
  position:relative;
  z-index:1;
  display:grid!important;
  grid-template-columns:31px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  gap:2px 9px!important;
  min-height:52px!important;
  padding:7px 9px 7px 0!important;
  border:0!important;
  border-radius:10px!important;
  background:transparent!important;
  color:#607178!important;
  box-shadow:none!important;
  text-decoration:none;
}
body.recipes-page .recipe-submit-rail .recipe-submit-steps a:hover{
  background:#f6faf8!important;
  color:#075f5a!important;
}
body.recipes-page .recipe-submit-rail .recipe-submit-steps a.is-active,
body.recipes-page .recipe-submit-rail .recipe-submit-steps a[aria-current="step"]{
  background:#edf7f4!important;
  color:#075f5a!important;
  box-shadow:none!important;
}
body.recipes-page .recipe-submit-rail .recipe-submit-steps a>span:first-child{
  grid-column:1!important;
  grid-row:1 / span 2!important;
  display:grid!important;
  place-items:center!important;
  width:28px!important;
  height:28px!important;
  margin:0!important;
  border:1px solid #c6d9d5!important;
  border-radius:50%!important;
  background:#fff!important;
  color:#087c75!important;
  font-size:.64rem!important;
  font-weight:850!important;
}
body.recipes-page .recipe-submit-rail .recipe-submit-steps a.is-complete>span:first-child{
  border-color:#9fcac3!important;
  background:#e8f5f2!important;
}
body.recipes-page .recipe-submit-rail .recipe-submit-steps a.is-active>span:first-child,
body.recipes-page .recipe-submit-rail .recipe-submit-steps a[aria-current="step"]>span:first-child{
  border-color:#087c75!important;
  background:#087c75!important;
  color:#fff!important;
}
body.recipes-page .recipe-submit-rail .recipe-submit-steps strong{
  grid-column:2;
  display:block!important;
  align-self:end;
  min-width:0;
  font-size:.76rem!important;
  line-height:1.22!important;
  white-space:normal!important;
}
body.recipes-page .recipe-submit-rail .recipe-submit-steps small{display:none!important}
body.recipes-page .recipe-submit-rail .recipe-step-state{
  grid-column:2;
  display:block!important;
  margin:0!important;
  color:#829096!important;
  font-size:.59rem!important;
  font-weight:760!important;
  line-height:1.25;
}
body.recipes-page .recipe-submit-rail .recipe-submit-steps a.is-complete .recipe-step-state{color:#087c75!important}
body.recipes-page .recipe-submit-rail .recipe-submit-steps a.is-in-progress .recipe-step-state{color:#8b641e!important}

body.recipes-page .recipe-submit-fields{min-width:0}
body.recipes-page .recipe-submit-fields .recipe-form-section--v2:first-child{border-top:1px solid var(--line)}
body.recipes-page .recipe-form-section--v2{scroll-margin-top:104px}

/* One natural completion point: the submit controls live only at the form end. */
body.recipes-page .recipe-form-actions--v2{
  position:static!important;
  bottom:auto!important;
  z-index:auto!important;
  margin:34px 0 0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
body.recipes-page .recipe-form-actions--v2>p{display:none!important}
body.recipes-page .recipe-form-actions--v2>div{width:100%;justify-content:flex-end!important}
body.recipes-page .recipe-form-actions--v2 .button{white-space:nowrap}
body.recipes-page .recipe-form-actions--v2 .is-recipe-submit-blocked{
  border-color:#087c75!important;
  background:#087c75!important;
  color:#fff!important;
  cursor:pointer!important;
}

/* Nutrition stays visible. Claims are calculated quietly in the background. */
body.recipes-page .recipe-tag-fieldset>.recipe-form-help{display:none!important}
body.recipes-page .recipe-nutrition-disclosure{
  display:block!important;
  margin-top:26px!important;
  border-top:1px solid #d9e3e0!important;
}
body.recipes-page .recipe-nutrition-disclosure>summary{display:none!important}
body.recipes-page .recipe-nutrition-disclosure:not([open])>*:not(summary){display:block!important}
body.recipes-page .recipe-nutrition-block-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:end;
  padding:22px 0 4px;
}
body.recipes-page .recipe-nutrition-block-head strong{display:block;color:#153845;font-size:1rem}
body.recipes-page .recipe-nutrition-block-head strong span{
  margin-left:7px;
  color:#728188;
  font-size:.68rem;
  font-weight:720;
}
body.recipes-page .recipe-nutrition-block-head p{max-width:560px;margin:5px 0 0;color:#6b7d83;font-size:.72rem;line-height:1.5}
body.recipes-page .recipe-nutrition-form--v2{padding-top:12px!important}
body.recipes-page .recipe-nutrition-region{
  align-items:center!important;
  padding:13px 14px!important;
  border:1px solid #d6e1de!important;
  border-radius:13px!important;
  background:#f8fbfa!important;
}
body.recipes-page .recipe-nutrition-region>div:first-child span{max-width:520px}
body.recipes-page .recipe-nutrition-preview{
  margin-top:18px!important;
  padding:15px!important;
  border:1px solid #d6e1de!important;
  border-radius:13px!important;
  background:#fff!important;
}
body.recipes-page .recipe-nutrition-preview__head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
  padding-bottom:9px;
  border-bottom:1px solid #e4eae8;
}
body.recipes-page .recipe-nutrition-preview__head strong{color:#153845;font-size:.75rem}
body.recipes-page .recipe-nutrition-preview__head span{color:#718087;font-size:.66rem;text-align:right}
body.recipes-page .recipe-nutrition-preview dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px;margin:0}
body.recipes-page .recipe-nutrition-preview dl>div{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #edf1f0}
body.recipes-page .recipe-nutrition-preview dt{color:#61747a;font-size:.66rem}
body.recipes-page .recipe-nutrition-preview dd{margin:0;color:#153845;font-size:.68rem;font-weight:800;text-align:right}

/* --------------------------------------------------------------------------
   Public recipe: facts, primary actions, report separation, identity
   -------------------------------------------------------------------------- */
body.recipes-page:has(.recipe-detail-hero) .recipe-fact{
  display:grid;
  grid-template-columns:30px minmax(0,1fr);
  gap:9px;
  align-items:center;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-fact__icon{
  grid-row:1 / span 2;
  display:grid;
  place-items:center;
  width:29px;
  height:29px;
  border-radius:9px;
  background:rgba(143,225,215,.14);
  color:#9ce8de;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-fact__icon.gcsi-material-icon{font-size:17px}
body.recipes-page:has(.recipe-detail-hero) .recipe-fact span:not(.recipe-fact__icon),
body.recipes-page:has(.recipe-detail-hero) .recipe-fact strong{grid-column:2;margin:0}
body.recipes-page:has(.recipe-detail-hero) .recipe-fact--cook .recipe-fact__icon{background:rgba(245,189,101,.14);color:#f1c77f}
body.recipes-page:has(.recipe-detail-hero) .recipe-fact--serves .recipe-fact__icon{background:rgba(178,210,242,.13);color:#c4e0f6}
body.recipes-page:has(.recipe-detail-hero) .recipe-fact--difficulty .recipe-fact__icon{background:rgba(216,190,235,.13);color:#e6d2f2}

body.recipes-page:has(.recipe-detail-hero) .recipe-actions{
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:7px!important;
  width:100%;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-actions>form{display:block!important;min-width:0;margin:0}
body.recipes-page:has(.recipe-detail-hero) .recipe-action{
  flex:0 1 auto;
  min-width:0!important;
  min-height:42px!important;
  padding:8px 11px!important;
  border-radius:11px!important;
  white-space:nowrap!important;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-action span{white-space:nowrap!important}
body.recipes-page:has(.recipe-detail-hero) .recipe-actions:has([data-recipe-report]){grid-template-columns:none!important}
body.recipes-page .recipe-secondary-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:7px;
}
body.recipes-page .recipe-report-link{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:32px;
  padding:4px 2px;
  border:0;
  background:transparent;
  color:rgba(255,255,255,.7);
  font:inherit;
  font-size:.66rem;
  font-weight:720;
  cursor:pointer;
  text-decoration:none;
}
body.recipes-page .recipe-report-link:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
body.recipes-page .recipe-report-link .gcsi-material-icon{font-size:16px}

body.recipes-page .recipe-author__verified-check{
  display:grid!important;
  place-items:center!important;
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#59d3c8!important;
  box-shadow:none!important;
  overflow:visible!important;
}
body.recipes-page .recipe-author__verified-check .gcsi-material-icon{
  width:20px!important;
  height:20px!important;
  font-size:20px!important;
  color:#59d3c8!important;
  filter:drop-shadow(0 1px 2px rgba(4,28,35,.5));
  font-variation-settings:"FILL" 1,"wght" 300,"GRAD" 0,"opsz" 20!important;
}
body.recipes-page .recipe-author__verified-check svg{display:none!important}

/* Nutrition rail: controls and explanatory text always own the full card width. */
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-system,
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-system-note{
  grid-column:1 / -1!important;
  min-width:0;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-system{margin-top:2px}
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-system-note{
  margin:10px 0 6px!important;
  color:#6a787d!important;
  font-size:.64rem!important;
  line-height:1.45!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-grid{grid-column:1/-1!important}
body.recipes-page:has(.recipe-detail-hero) .recipe-nutrition-card{min-width:0}

/* Gallery controls: unmistakable arrows and calm motion surface. */
body.recipes-page .recipe-gallery-dialog__nav{
  display:grid!important;
  place-items:center!important;
  width:48px!important;
  height:48px!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.3)!important;
  border-radius:50%!important;
  background:rgba(7,31,39,.76)!important;
  color:#fff!important;
  box-shadow:0 7px 24px rgba(0,0,0,.22)!important;
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}
body.recipes-page .recipe-gallery-dialog__nav:hover{background:rgba(8,124,117,.9)!important}
body.recipes-page .recipe-gallery-dialog__nav .gcsi-material-icon{font-size:34px!important}
body.recipes-page .recipe-gallery-dialog figure{will-change:transform,opacity}

/* Keep the recipe stepper vertical at tablet/compact desktop widths. */
@media(max-width:960px){
  body.recipes-page .recipe-submit-workspace{
    grid-template-columns:minmax(168px,190px) minmax(0,1fr)!important;
    gap:24px!important;
  }
  body.recipes-page .recipe-submit-rail{
    top:82px!important;
    padding:2px 10px 2px 0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  body.recipes-page .recipe-submit-rail__head{display:block!important}
  body.recipes-page .recipe-submit-rail .recipe-submit-steps{
    display:grid!important;
    gap:2px!important;
    overflow:visible!important;
    padding:0!important;
  }
  body.recipes-page .recipe-submit-rail .recipe-submit-steps a{
    min-width:0!important;
    min-height:50px!important;
    grid-template-columns:31px minmax(0,1fr)!important;
    padding:7px 7px 7px 0!important;
  }
  body.recipes-page .recipe-submit-rail .recipe-submit-steps a>span:first-child{width:28px!important;height:28px!important}
  body.recipes-page .recipe-submit-rail .recipe-submit-steps strong{white-space:normal!important}
  body.recipes-page .recipe-submit-rail .recipe-step-state{display:block!important}
  body.recipes-page .recipe-form-section--v2{scroll-margin-top:104px}
}

@media(max-width:720px){
  body.recipes-page .recipe-submit-workspace{grid-template-columns:1fr!important;gap:24px!important}
  body.recipes-page .recipe-submit-rail{
    position:static!important;
    padding:10px 12px!important;
    border:1px solid #d9e4e1!important;
    border-radius:14px!important;
    background:#fbfdfc!important;
  }
  body.recipes-page .recipe-submit-rail__head{display:none!important}
  body.recipes-page .recipe-submit-rail .recipe-submit-steps a{min-height:46px!important}
  body.recipes-page .recipe-form-section--v2{scroll-margin-top:84px}
}

@media(max-width:680px){
  body.recipes-page .recipe-form-actions--v2{
    margin:30px 0 0!important;
    padding:0!important;
  }
  body.recipes-page .recipe-form-actions--v2>div{
    display:flex!important;
    flex-wrap:wrap!important;
    justify-content:flex-end!important;
    gap:8px!important;
  }
  body.recipes-page .recipe-form-actions--v2 .button{min-height:44px!important}
  body.recipes-page .recipe-nutrition-preview dl{grid-template-columns:1fr}
  body.recipes-page:has(.recipe-detail-hero) .recipe-actions{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:5px!important;
  }
  body.recipes-page:has(.recipe-detail-hero) .recipe-actions>form{display:contents!important}
  body.recipes-page:has(.recipe-detail-hero) .recipe-action{
    display:flex!important;
    flex-direction:column!important;
    gap:3px!important;
    width:100%!important;
    min-height:50px!important;
    padding:6px 3px!important;
    border-radius:10px!important;
  }
  body.recipes-page:has(.recipe-detail-hero) .recipe-action span{font-size:.6rem!important}
  body.recipes-page:has(.recipe-detail-hero) .recipe-action small{position:absolute;margin:0 0 26px 24px;transform:scale(.84)}
  body.recipes-page .recipe-secondary-actions{justify-content:flex-start;margin-top:4px}
  body.recipes-page .recipe-author__verified-check{width:18px!important;height:18px!important;min-width:18px!important}
  body.recipes-page .recipe-author__verified-check .gcsi-material-icon{width:18px!important;height:18px!important;font-size:18px!important}
  body.recipes-page .recipe-gallery-dialog__nav{width:44px!important;height:44px!important}
}

@media(prefers-reduced-motion:reduce){
  body.recipes-page .recipe-gallery-dialog figure{will-change:auto}
}

/* --------------------------------------------------------------------------
   Recipe hero: clearer fact placement and a three-action primary row
   -------------------------------------------------------------------------- */
body.recipes-page:has(.recipe-detail-hero) .recipe-fact{
  grid-template-columns:32px minmax(0,1fr)!important;
  grid-template-rows:min-content min-content!important;
  column-gap:10px!important;
  row-gap:3px!important;
  align-content:center!important;
  align-items:start!important;
  min-height:66px;
  padding:11px 13px!important;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-fact__icon{
  grid-column:1!important;
  grid-row:1 / span 2!important;
  align-self:center!important;
  margin:0!important;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-fact span:not(.recipe-fact__icon){
  grid-column:2!important;
  grid-row:1!important;
  align-self:end!important;
  line-height:1.15!important;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-fact strong{
  grid-column:2!important;
  grid-row:2!important;
  align-self:start!important;
  line-height:1.2!important;
}

/* Comments belong to the conversation section below, not the hero action row. */
body.recipes-page:has(.recipe-detail-hero) .recipe-actions>a.recipe-action[href="#recipe-community"]{display:none!important}
body.recipes-page:has(.recipe-detail-hero) .recipe-actions{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:7px!important;
  align-items:stretch!important;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-actions>form{display:contents!important}
body.recipes-page:has(.recipe-detail-hero) .recipe-action{
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  width:100%!important;
  min-width:0!important;
  min-height:44px!important;
  padding:8px 12px!important;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-action small{
  position:static!important;
  margin:0!important;
  transform:none!important;
  flex:0 0 auto!important;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-share-status{
  grid-column:1/-1!important;
  min-width:0!important;
}
body.recipes-page:has(.recipe-detail-hero) .recipe-share-status:empty{display:none}

@media(max-width:680px){
  body.recipes-page:has(.recipe-detail-hero) .recipe-actions{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:6px!important;
  }
  body.recipes-page:has(.recipe-detail-hero) .recipe-action{
    flex-direction:row!important;
    gap:5px!important;
    min-height:46px!important;
    padding:7px 7px!important;
  }
  body.recipes-page:has(.recipe-detail-hero) .recipe-action span{font-size:.64rem!important}
}

@media(max-width:520px){
  body.recipes-page:has(.recipe-detail-hero) .recipe-facts{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.recipes-page:has(.recipe-detail-hero) .recipe-fact{
    min-height:62px;
  }
}
