.recipe-detail-page { padding: 26px 24px 82px; background: var(--page); }
.recipe-detail { max-width: 1000px; margin: 0 auto; }
.recipe-intro { padding: 24px 0 30px; text-align: center; }
.recipe-badge { display: inline-flex; margin-bottom: 12px; color: var(--emerald); font-family: var(--font-ui); font-size: .78rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
.recipe-intro h1 { margin: 0; color: var(--forest); font-family: var(--font-display); font-size: clamp(2.7rem, 6vw, 4.3rem); font-weight: 800; letter-spacing: -1.8px; line-height: 1.05; }
.recipe-lead { max-width: 700px; margin: 16px auto 25px; color: #627568; font-family: var(--font-ui); font-size: 1rem; line-height: 1.7; }
.nutrition-note { margin: 12px auto 0; color: #7c897f; font-family: var(--font-ui); font-size: .7rem; }
.info-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 23px; width: fit-content; max-width: 100%; margin: 0 auto; padding: 16px 24px; border: 1px solid rgba(2,44,34,.06); border-radius: 24px; background: rgba(255,255,255,.72); box-shadow: 0 8px 24px rgba(22,53,35,.05); }
.info-item { display: flex; align-items: center; gap: 9px; color: var(--emerald); text-align: left; }
.info-item svg { width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.info-item span { display: grid; gap: 1px; }
.info-item small { color: #7c897f; font-family: var(--font-ui); font-size: .66rem; line-height: 1.2; }
.info-item strong { color: var(--forest); font-family: var(--font-ui); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.recipe-photo { width: 100%; max-width: 1000px; margin: 0 auto; overflow: hidden; border-radius: 30px; background: #d5e4d8; }
.recipe-photo img { display: block; width: 100%; height: clamp(300px, 48vw, 510px); object-fit: cover; }
.image-credit { padding: 8px 14px; background: #f4f7f2; color: #647368; font: 400 .7rem/1.5 var(--font-ui); }
.image-credit a { color: #276942; text-decoration: underline; text-underline-offset: 2px; }
.recipe-photo-main { margin-top: 8px; }
.interactive-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 24px 0 8px; padding: 18px 22px; border: 1px solid rgba(2,44,34,.07); border-radius: 20px; background: rgba(255,255,255,.82); box-shadow: 0 8px 24px rgba(22,53,35,.06); }
.portion-control { display: grid; gap: 7px; }
.control-label, .wake-control small { color: #78867c; font-family: var(--font-ui); font-size: .72rem; }
.portion-stepper { display: flex; align-items: center; gap: 12px; }
.portion-stepper button { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid rgba(22,163,74,.2); border-radius: 50%; background: #f0f7f1; color: var(--emerald); font-size: 1.15rem; line-height: 1; cursor: pointer; transition: background .2s ease, color .2s ease; }
.portion-stepper button:hover { background: var(--emerald); color: #fff; }
.portion-stepper output { min-width: 78px; color: var(--forest); font-family: var(--font-ui); font-size: .8rem; font-weight: 600; text-align: center; }
.wake-control { display: inline-flex; align-items: center; gap: 14px; cursor: pointer; }
.wake-control > span:first-child { display: grid; gap: 3px; }
.wake-control strong { color: var(--forest); font-family: var(--font-ui); font-size: .8rem; font-weight: 600; }
.wake-control input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }
.toggle-track { position: relative; width: 44px; height: 25px; flex: 0 0 44px; border-radius: 20px; background: #d8e0da; transition: background .25s ease; }
.toggle-track::after { position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); content: ''; transition: transform .25s ease; }
.wake-control input:checked + .toggle-track { background: var(--emerald); }
.wake-control input:checked + .toggle-track::after { transform: translateX(19px); }
.wake-control input:focus-visible + .toggle-track { outline: 3px solid rgba(22,163,74,.3); outline-offset: 3px; }
.timer-widget { display: flex; align-items: center; gap: 10px; padding: 7px; border: 1px solid rgba(22,163,74,.13); border-radius: 16px; background: #fff; }
#timer-input { width: 60px; height: 36px; padding: 0 8px; border: 0; border-radius: 9px; outline: 0; background: rgba(22,163,74,.1); color: var(--forest); font-family: var(--font-ui); font-size: .8rem; text-align: center; }
#timer-input:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }
#timer-input::-webkit-inner-spin-button, #timer-input::-webkit-outer-spin-button { margin: 0; appearance: none; }
#timer-input { appearance: textfield; }
.timer-action, .timer-stop { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--emerald); color: #fff; font-family: var(--font-ui); font-size: .78rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.timer-action:hover, .timer-stop:hover { transform: translateY(-1px); background: #12823b; }
.timer-stop { width: 36px; padding: 0; }
#timer-display { color: var(--emerald); font-family: var(--font-display); font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
#timer-display.is-finished { color: #d87945; animation: timer-finish-pulse .8s ease-in-out infinite alternate; }
.timer-widget [hidden] { display: none !important; }
@keyframes timer-finish-pulse { from { opacity: 1; } to { opacity: .45; } }
.tool-status { min-height: 1.2em; margin: 0 4px 20px; color: #728176; font-family: var(--font-ui); font-size: .72rem; }
.tool-status:empty { display: none; }
.recipe-columns { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(230px,.75fr); gap: 58px; padding: 29px 0 42px; }
.recipe-detail h2 { margin: 0 0 8px; color: var(--forest); font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; letter-spacing: -.3px; }
.section-subline { margin: 0 0 17px; color: #7a887e; font-family: var(--font-ui); font-size: .78rem; }
.ingredients-list, .tools-list { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.ingredient-group { margin-top: 22px; }
.ingredient-group h3 { min-height: 0; margin: 0 0 12px; color: var(--forest); font-family: var(--font-ui); font-size: .95rem; font-weight: 600; }
.ingredients-list li label { display: flex; align-items: flex-start; gap: 12px; color: #344a3b; font-family: var(--font-ui); font-size: .9rem; line-height: 1.6; cursor: pointer; }
.ingredients-list input, .instructions-list input { width: 19px; height: 19px; flex: 0 0 19px; margin: 2px 0 0; appearance: none; border: 1.5px solid #a7b7aa; border-radius: 6px; background: #fff; cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.ingredients-list input:checked, .instructions-list input:checked { border-color: var(--emerald); background-color: var(--emerald); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: center; background-repeat: no-repeat; background-size: 14px; }
.ingredients-list input:focus-visible, .instructions-list input:focus-visible { outline: 3px solid rgba(22,163,74,.25); outline-offset: 2px; }
.ingredient-text { transition: color .2s ease; }
.ingredients-list input:checked + .ingredient-text { color: #9aa79c; text-decoration: line-through; text-decoration-color: #a8b5aa; }
.ingredient-amount { margin-right: 3px; color: var(--forest); font-weight: 600; }
.ingredients-list input:checked + .ingredient-text .ingredient-amount { color: #9aa79c; }
.tools-section { padding-left: 31px; border-left: 1px solid rgba(2,44,34,.1); }
.tools-list { gap: 16px; margin-top: 18px; }
.tools-list li { display: flex; align-items: center; gap: 11px; color: #53675a; font-family: var(--font-ui); font-size: .88rem; }
.tools-list svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: var(--emerald); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.instructions-section { padding: 8px 0 36px; }
.instructions-list { display: grid; gap: 21px; padding: 0; margin: 24px 0 0; list-style: none; }
.instructions-list li label { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; }
.instructions-list input { margin-top: 4px; }
.step-number { min-width: 29px; padding-top: 1px; color: var(--emerald); font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
.step-text { max-width: 850px; color: #415649; font-family: var(--font-ui); font-size: .94rem; line-height: 1.8; transition: color .2s ease; }
.instructions-list input:checked ~ .step-text { color: #98a49a; text-decoration: line-through; text-decoration-color: #a8b5aa; }
.recipe-photo-finish { margin-top: 8px; }
.recipe-photo-finish img { height: clamp(250px, 38vw, 390px); }
.recipe-actions { display: flex; flex-direction: column; align-items: center; padding: 42px 0 8px; text-align: center; }
.recipe-actions h2 { margin-bottom: 7px; font-size: 1.65rem; }
.rating-stars { display: flex; flex-direction: row-reverse; justify-content: center; gap: 4px; margin: 7px 0 0; }
.rating-stars input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); }
.rating-stars label { color: #b7c1b8; cursor: pointer; font-size: 2.25rem; line-height: 1; transition: color .15s ease, transform .15s ease; }
.rating-stars label::before { content: '☆'; }
.rating-stars label:hover, .rating-stars label:hover ~ label, .rating-stars input:checked ~ label { color: #e9ad32; }
.rating-stars label:hover::before, .rating-stars label:hover ~ label::before, .rating-stars input:checked ~ label::before { content: '★'; }
.rating-stars label:hover { transform: scale(1.12); }
.rating-stars input:focus-visible + label { outline: 2px solid var(--emerald); outline-offset: 2px; border-radius: 3px; }
.rating-status { min-height: 1.4em; margin: 4px 0 19px; color: #7a887e; font-family: var(--font-ui); font-size: .78rem; }
.share-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.share-actions a, .share-actions button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 9px; padding: 10px 18px; border: 1px solid transparent; border-radius: 999px; font-family: var(--font-ui); font-size: .82rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease; }
.share-actions a:hover, .share-actions button:hover { transform: translateY(-2px); }
.share-actions svg { width: 18px; height: 18px; fill: currentColor; }
.share-whatsapp { background: #168a4b; color: #fff; }
.share-whatsapp:hover { background: #11723d; }
.share-copy { border-color: rgba(2,44,34,.15) !important; background: rgba(255,255,255,.75); color: var(--forest); }
.share-copy svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.share-copy:hover { background: #fff; }
.share-status { min-height: 1.3em; margin: 10px 0 0; color: var(--emerald); font-family: var(--font-ui); font-size: .76rem; }
.share-status:empty { display: none; }
@media (max-width: 760px) {
  .recipe-detail-page { padding: 18px 20px 60px; }
  .recipe-intro { padding: 20px 0 26px; }
  .info-bar { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px 12px; padding: 16px; }
  .info-item { gap: 7px; }
  .info-item svg { width: 17px; height: 17px; flex-basis: 17px; }
  .info-item small { font-size: .6rem; }
  .info-item strong { font-size: .7rem; }
  .recipe-photo { border-radius: 24px; }
  .interactive-panel { flex-wrap: wrap; justify-content: space-between; gap: 17px; padding: 17px; }
  .portion-control { min-width: 145px; }
  .wake-control { flex: 1 1 220px; justify-content: space-between; }
  .recipe-columns { grid-template-columns: 1fr; gap: 32px; padding-top: 23px; }
  .tools-section { padding: 0; border: 0; }
  .tools-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 480px) {
  .recipe-detail-page { padding-right: 16px; padding-left: 16px; }
  .recipe-intro h1 { font-size: clamp(2.3rem, 11vw, 3rem); letter-spacing: -1.2px; }
  .recipe-lead { font-size: .88rem; }
  .info-bar { grid-template-columns: repeat(2, minmax(0,1fr)); border-radius: 18px; }
  .recipe-photo img { height: 290px; }
  .interactive-panel { align-items: flex-start; }
  .portion-control { flex-basis: 100%; }
  .wake-control { flex-basis: 100%; }
  .timer-widget { width: 100%; justify-content: space-between; }
  .recipe-columns { gap: 27px; }
  .instructions-list { gap: 17px; }
  .step-text { font-size: .86rem; }
  .recipe-photo-finish img { height: 240px; }
}

/* Recipe detail refresh: clear hierarchy, softer surfaces and readable controls. */
.recipe-detail { max-width: 1120px; }
.recipe-intro { padding: 34px 0 28px; }
.recipe-labels { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.recipe-badge { border: 1px solid rgba(22,163,74,.18); border-radius: 999px; background: #edf7ef; color: #145b35; }
.recipe-badge-special { border-color: rgba(205,171,101,.48); background: #174b37; color: #f5dda2; }
.recipe-intro .recipe-labels { justify-content: center; max-width: 900px; margin: 0 auto 20px; padding: 0 8px; }
.recipe-intro .recipe-labels .recipe-tag { display: inline-flex; min-height: 30px; max-width: 100%; align-items: center; justify-content: center; padding: 6px 11px; border: 1px solid rgba(23,75,55,.12); border-radius: 999px; background: #edf3eb; color: #174b37; font: 500 .72rem/1.25 var(--font-ui); letter-spacing: 0; text-align: center; white-space: normal; overflow-wrap: anywhere; }
.recipe-intro .recipe-labels .tag-ingredient { border-color: rgba(23,99,75,.12); background: #e9f4f0; color: #17634b; }
.recipe-intro .recipe-labels .tag-origin { background: #e8f2eb; color: #145b35; }
.recipe-intro .recipe-labels .tag-meal { background: #f4f0e8; color: #75613c; }
.recipe-intro .recipe-labels .tag-method { background: #edf1f3; color: #52636b; }
.recipe-intro .recipe-labels .tag-type { background: #f0edf7; color: #62517e; }
.recipe-intro .recipe-labels .tag-profile { background: #f6edf0; color: #805064; }
.recipe-intro .recipe-labels .tag-event { border-color: rgba(205,171,101,.38); background: #174b37; color: #f5dda2; }
.info-bar { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.interactive-panel { margin: 28px 0 10px; border-color: rgba(2,44,34,.08); background: #fff; box-shadow: 0 10px 25px rgba(0,0,0,.06); }
.recipe-columns { align-items: stretch; gap: 22px; padding: 26px 0 30px; }
.ingredients-section, .tools-section, .instructions-section, .recipe-notes { border: 1px solid rgba(2,44,34,.08); border-radius: 20px; background: #f8faf7; box-shadow: 0 8px 22px rgba(25,55,35,.045); }
.ingredients-section, .tools-section { padding: 26px; }
.tools-section { border-left: 1px solid rgba(2,44,34,.08); }
.ingredients-list { gap: 13px; }
.tools-list { gap: 14px; }
.instructions-section { padding: 28px; margin: 0 0 28px; }
.instructions-list { gap: 18px; }
.step-number { display: grid; width: 34px; min-width: 34px; height: 34px; place-items: center; padding: 0; border-radius: 50%; background: #168a4b; color: #fff; font-size: .8rem; }
.instructions-list li label { align-items: center; gap: 13px; }
.instructions-list input { margin-top: 0; }
.recipe-notes { padding: 26px; margin: 24px 0; background: #f1f7f1; }
.recipe-notes h2, .recipe-notes h3 { color: #145b35; }
.recipe-notes p { color: #52675a; line-height: 1.75; }
@media (max-width: 760px) {
  .recipe-intro .recipe-labels { gap: 7px; margin-bottom: 17px; padding: 0; }
  .recipe-intro .recipe-labels .recipe-tag { min-height: 28px; padding: 5px 9px; font-size: .68rem; }
  .recipe-columns { gap: 16px; }
  .ingredients-section, .tools-section, .instructions-section, .recipe-notes { padding: 21px; }
  .tools-section { border: 1px solid rgba(2,44,34,.08); }
}
@media (max-width: 480px) {
  .info-bar { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .recipe-columns { padding-bottom: 22px; }
}

.recipe-meta-note, .nutrition-note { margin: 10px 0 0; color: #748177; font: 400 .7rem/1.5 var(--font-ui); }

.nutrition-section { margin: 24px 0; padding: 22px 26px; border: 1px solid rgba(23,75,55,.12); border-radius: 20px; background: rgba(255,255,255,.72); box-shadow: 0 8px 24px rgba(22,53,35,.05); }
.nutrition-section h2 { margin: 0; color: var(--forest); font: 700 1.2rem/1.3 var(--font-ui); }
.nutrition-section .nutrition-note { margin-top: 8px; }