/* Recipes: the recipe view (built on the reader's full-screen shell and bottom bar), the cooking timers, the
   Add a recipe sheet, and the form that checks or edits a recipe. */
.visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.shelf-add{display:block;margin:10px 0 0;color:var(--accent);font-weight:bold;text-decoration:none}

/* The recipe view */
.recipe-dialog .story-hero{position:relative}
.recipe-cover-button{position:absolute;right:12px;bottom:12px;display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border:0;border-radius:20px;background:#000000a6;color:#fff;font:bold 14px/1 Arial,sans-serif}
.recipe-cover-button svg{width:18px;height:18px}
.recipe-dialog .reader-title{margin-bottom:12px}
.recipe-about{margin:0 0 12px;font:17px/1.55 Georgia,'Times New Roman',serif;color:#4c4c4c}
.recipe-times{margin:0 0 14px;font:bold 13px/1.4 Arial,sans-serif;letter-spacing:.3px;color:#59645e}
.recipe-scale{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:4px 0 0;padding:12px 0;border-top:1px solid #e5e9e4;border-bottom:1px solid #e5e9e4}
.recipe-scale:empty{display:none}
.recipe-yield{flex:1 1 100%;font:bold 15px/1.3 Arial,sans-serif;color:var(--ink)}
.recipe-factors{display:flex;gap:6px}
.recipe-factors .chip{min-height:40px;min-width:54px;padding:6px 12px}
.recipe-head{margin:26px 0 8px;font:bold 22px/1.2 Georgia,'Times New Roman',serif;color:var(--ink)}
.recipe-group{margin:16px 0 4px;font:bold 13px/1.3 Arial,sans-serif;letter-spacing:.5px;text-transform:uppercase;color:#6b746f}
.recipe-ingredients{margin:0;padding:0;list-style:none}
.recipe-ingredients li{border-bottom:1px solid #eef1ed}
.recipe-ingredients label{display:flex;align-items:flex-start;gap:12px;padding:11px 2px;font:18px/1.45 Georgia,'Times New Roman',serif;color:#242d26;cursor:pointer}
.recipe-ingredients input{flex:none;width:22px;height:22px;margin:3px 0 0;accent-color:var(--accent)}
.recipe-ingredients li.checked span{color:#9aa39e;text-decoration:line-through}
.recipe-amount{color:var(--accent)}
.recipe-steps{margin:0;padding-left:1.7em}
.recipe-steps li{margin:0 0 4px;padding:9px 6px;border-radius:8px;font:18px/1.6 Georgia,'Times New Roman',serif;color:#242d26;cursor:pointer}
.recipe-steps li::marker{font:bold 16px Arial,sans-serif;color:var(--accent)}
.recipe-dialog .recipe-steps li p{margin:0;font:inherit;color:inherit}
.recipe-steps li.done{opacity:.4}
.recipe-step-timers{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.recipe-timer-chip{min-height:38px;padding:4px 13px;border:1px solid #d9ded9;border-radius:19px;background:#fff;color:#b32817;font:bold 14px/1 Arial,sans-serif}
.recipe-check{padding:0 4px;border-radius:3px;background:#ffe08a;color:#5a3d00;font-weight:bold}
.recipe-unclear{margin:6px 0 12px;padding:12px 14px;border-left:3px solid #e0a800;background:#fff8e1;color:#5a4300;font:14px/1.5 Arial,sans-serif}
.recipe-unclear ul{margin:6px 0 0;padding-left:18px}
.recipe-dialog .recipe-section p{font:17px/1.6 Georgia,'Times New Roman',serif;color:#242d26}
.recipe-dialog .recipe-own .recipe-made-line{margin:0;font:15px/1.5 Arial,sans-serif;color:#59645e}
.recipe-stars{display:flex;gap:2px;margin:4px 0 10px}
.recipe-star{min-width:44px;min-height:44px;padding:0;border:0;background:none;color:#e0a800;font-size:28px;line-height:1}
.recipe-own-notes{min-height:90px;font:16px/1.5 Arial,sans-serif;resize:vertical}
.recipe-dialog .recipe-notes-state{margin:4px 0 0}
.recipe-links{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin-top:22px;padding-top:12px;border-top:1px solid #e5e9e4}
.recipe-links .text-button{min-height:44px;color:#59645e;font:15px/1.4 Arial,sans-serif;text-decoration:none}
.recipe-links .recipe-remove{color:#a12c21}
.recipe-dialog .recipe-awake{margin-top:8px}

/* Photos of a recipe: thumbnails, and one full screen to check against */
.recipe-thumbs{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.recipe-thumbs:empty{display:none}
.recipe-thumb{position:relative;width:84px;height:84px;padding:0;border:1px solid #d9ded9;border-radius:8px;overflow:hidden;background:#eef1ed}
.recipe-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.recipe-thumb-remove{position:absolute;top:3px;right:3px;width:28px;height:28px;padding:0;border:0;border-radius:14px;background:#000a;color:#fff;font-size:18px;line-height:1}
.recipe-zoom{position:fixed;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;padding:12px;border:0;background:#000e;cursor:zoom-out}
.recipe-zoom img{max-width:100%;max-height:100%;object-fit:contain}

/* Cooking timers: a stack above the bottom buttons that stays while you cook, even after leaving the recipe */
.recipe-timers{position:fixed;z-index:30;left:50%;bottom:calc(74px + env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;flex-direction:column;gap:6px;width:min(calc(100% - 24px),520px)}
.recipe-timer{display:flex;align-items:center;gap:10px;padding:6px 6px 6px 16px;border-radius:24px;background:var(--ink);color:#fff;font:14px/1.3 Arial,sans-serif;box-shadow:0 6px 22px #0003}
.recipe-timer span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.recipe-timer b{font:bold 17px/1 Arial,sans-serif;font-variant-numeric:tabular-nums}
.recipe-timer-stop{min-width:40px;min-height:40px;padding:0 10px;border:0;border-radius:20px;background:#ffffff26;color:#fff;font:bold 15px/1 Arial,sans-serif}
.recipe-timer.ring{background:#d84522;animation:recipe-ring 1s ease-in-out infinite}
@keyframes recipe-ring{50%{transform:scale(1.03)}}
@media(prefers-reduced-motion:reduce){.recipe-timer.ring{animation:none}}
/* Room to scroll the end of a recipe past running timers */
.recipe-dialog:has(.recipe-timers:not([hidden])) .recipe-article{padding-bottom:150px}

/* In the reader: the way to a recipe page's recipe */
.recipe-jump{display:inline-flex;align-items:center;min-height:44px;margin:0 0 16px;padding:0 18px;border:0;border-radius:22px;background:var(--accent);color:#fff;font:bold 15px/1 Arial,sans-serif}

/* Add a recipe */
.recipe-pick{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 10px}
.recipe-pick-button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 20px;border-radius:4px;font:15px Arial,sans-serif;cursor:pointer}
.recipe-pick-secondary{border:1px solid var(--line);background:#fff;color:var(--ink)}
.recipe-pick-button:focus-within{outline:3px solid #dc5a32;outline-offset:3px}
.recipe-drop{padding:16px;border:2px dashed var(--line);border-radius:10px;color:var(--muted);font:14px/1.4 Arial,sans-serif;text-align:center}
.recipe-drop.over{border-color:var(--accent);color:var(--accent)}
@media(pointer:coarse){.recipe-drop{display:none}}

/* Checking or editing a recipe */
.recipe-edit textarea.field{min-height:150px;font:16px/1.5 Arial,sans-serif;resize:vertical}
.recipe-edit-row{display:flex;gap:10px}
.recipe-edit-row label{flex:1;min-width:0}
.recipe-edit-row .field-label{margin-top:16px}
.recipe-edit-row .recipe-edit-narrow{flex:0 0 92px}
