/* FAFO Recipe Box — Stage 4. Browser-local, account-free recipe saving. */
.rb-card-shell{position:relative;min-width:0;min-height:0}
.rb-card-shell>.recipe-card,.rb-card-shell>.collection-card,.rb-card-shell>.related-card,.rb-card-shell>.dessert-card,.rb-card-shell>.mp-day,.rb-card-shell>.mp-pair-card,.rb-card-shell>.mp-index-card{height:100%;width:100%}
.rb-card-shell--recipe-card,.rb-card-shell--collection-card,.rb-card-shell--related-card,.rb-card-shell--mp-pair-card,.rb-card-shell--mp-index-card{display:flex}
.rb-card-shell--dessert-card,.rb-card-shell--mp-day{display:block;width:100%}
.rb-heart{position:absolute;top:10px;right:10px;z-index:4;width:40px;height:40px;border:1px solid rgba(43,36,29,.14);border-radius:999px;background:rgba(253,250,244,.94);color:#2b241d;font:700 1.35rem/1 'DM Sans',Arial,sans-serif;display:grid;place-items:center;cursor:pointer;box-shadow:0 2px 8px rgba(43,36,29,.12);transition:transform .15s ease,background .15s ease,color .15s ease,border-color .15s ease}
.rb-heart:hover{transform:scale(1.05);border-color:#b8432c;color:#b8432c}
.rb-heart:focus-visible,.rb-detail-save:focus-visible,.rb-box-main button:focus-visible,.rb-box-main select:focus-visible,.rb-box-main input:focus-visible{outline:3px solid rgba(184,67,44,.35);outline-offset:2px}
.rb-heart.is-saved{background:#b8432c;border-color:#b8432c;color:#fff}
.rb-heart.is-saved:hover{color:#fff;background:#9a3722}
.rb-detail-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0 24px;padding:14px 16px;border:1px solid #e6dccc;border-radius:12px;background:#fff;font-family:'DM Sans',Arial,sans-serif}
.rb-detail-save{border:1.5px solid #b8432c;background:#fff;color:#b8432c;border-radius:999px;padding:9px 15px;font:800 .8rem 'DM Sans',Arial,sans-serif;cursor:pointer;white-space:nowrap}
.rb-detail-save.is-saved{background:#b8432c;color:#fff}
.rb-status-label{display:flex;align-items:center;gap:8px;color:#655b50;font-size:.76rem;font-weight:700}
.rb-status-label select{appearance:auto;border:1px solid #d9cebd;border-radius:8px;background:#fdfaf4;color:#2b241d;padding:7px 9px;font:600 .76rem 'DM Sans',Arial,sans-serif}
.rb-manage-link{margin-left:auto;font-size:.76rem;font-weight:800;text-decoration:none}
.rb-manage-link:hover{text-decoration:underline}

.recipe-box-page{background:#fdfaf4}
.rb-box-main{font-family:'DM Sans',Arial,sans-serif;color:#2b241d;padding:36px 0 80px}
.rb-box-shell{width:min(1160px,calc(100% - 40px));margin-inline:auto}
.rb-box-hero{text-align:center;max-width:760px;margin:0 auto 28px}
.rb-box-kicker{margin:0 0 9px;color:#b8432c;font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.14em}
.rb-box-hero h1{margin:0;font:700 clamp(2.15rem,5vw,3.8rem)/1.05 'Libre Baskerville',Georgia,serif;letter-spacing:-.025em}
.rb-box-dek{margin:12px auto 0;max-width:660px;color:#655b50;font-size:.96rem;line-height:1.65}
.rb-box-local-note{display:inline-flex;align-items:center;gap:7px;margin-top:14px;padding:7px 11px;border-radius:999px;background:#f7f1e6;border:1px solid #e6dccc;color:#6c6155;font-size:.72rem;font-weight:700}
.rb-box-tabs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:28px 0 26px;padding:8px;background:#f7f1e6;border:1px solid #e6dccc;border-radius:14px}
.rb-box-tab{min-width:0;border:0;border-radius:10px;background:transparent;color:#655b50;padding:10px 7px;font:800 .72rem/1.25 'DM Sans',Arial,sans-serif;cursor:pointer}
.rb-box-tab span{display:block;margin-top:4px;color:#9a3722;font-size:.66rem}
.rb-box-tab.is-active{background:#fff;color:#2b241d;box-shadow:0 1px 5px rgba(43,36,29,.08)}
.rb-box-panel[hidden]{display:none!important}
.rb-box-panel-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:0 0 18px;padding-bottom:12px;border-bottom:1px solid #e6dccc}
.rb-box-panel-head h2{margin:0;padding:0;border:0;text-align:left;font:700 1.5rem 'Libre Baskerville',Georgia,serif}
.rb-box-panel-head p{margin:0;color:#7a6f63;font-size:.8rem}
.rb-box-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.rb-box-card{min-width:0;background:#fff;border:1px solid #e6dccc;border-radius:13px;overflow:hidden;box-shadow:0 1px 4px rgba(43,36,29,.05)}
.rb-box-card-image{display:block;aspect-ratio:16/9;background:#efe7d9;overflow:hidden}
.rb-box-card-image img{width:100%;height:100%;object-fit:cover}
.rb-box-card-image--empty{background:linear-gradient(135deg,#f7f1e6,#e6dccc)}
.rb-box-card-body{padding:15px 16px 17px}
.rb-box-title-row{display:flex;align-items:flex-start;gap:10px}
.rb-box-card-title{flex:1;color:#2b241d;font:700 1rem/1.35 'Libre Baskerville',Georgia,serif;text-decoration:none}
.rb-box-card-title:hover{color:#b8432c;text-decoration:none}
.rb-inline-heart{flex:0 0 auto;width:34px;height:34px;border:1px solid #e6dccc;border-radius:999px;background:#fdfaf4;color:#2b241d;font-size:1.05rem;cursor:pointer}
.rb-inline-heart.is-saved{background:#b8432c;border-color:#b8432c;color:#fff}
.rb-box-card-body>p{margin:8px 0 0;color:#6b6155;font-size:.78rem;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.rb-box-meta{margin-top:9px;color:#8a7c68;font-size:.7rem;font-weight:700;text-transform:capitalize}
.rb-box-controls{display:grid;gap:9px;margin-top:13px;padding-top:12px;border-top:1px solid #efe6d6}
.rb-box-status{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#756a5e;font-size:.7rem;font-weight:800}
.rb-box-status select,.rb-add-row select{min-width:0;border:1px solid #d9cebd;border-radius:8px;background:#fdfaf4;color:#2b241d;padding:7px 8px;font:600 .72rem 'DM Sans',Arial,sans-serif}
.rb-add-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}
.rb-add-row button,.rb-create-collection button,.rb-grocery-form button{border:0;border-radius:8px;background:#b8432c;color:#fff;padding:8px 11px;font:800 .72rem 'DM Sans',Arial,sans-serif;cursor:pointer}
.rb-text-btn{justify-self:start;border:0;background:none;color:#b8432c;padding:3px 0;font:800 .7rem 'DM Sans',Arial,sans-serif;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.rb-empty{padding:34px 24px;border:1px dashed #d9cebd;border-radius:12px;background:#fff;text-align:center;color:#766b5e}
.rb-empty strong{display:block;color:#2b241d;font:700 1rem 'Libre Baskerville',Georgia,serif}
.rb-empty p{margin:7px auto;max-width:520px;font-size:.82rem;line-height:1.55}
.rb-empty a{font-size:.76rem;font-weight:800}
.rb-create-collection,.rb-grocery-form{max-width:620px;margin:0 0 24px;padding:18px;background:#f7f1e6;border:1px solid #e6dccc;border-radius:12px}
.rb-create-collection>label,.rb-grocery-form>label{display:block;margin-bottom:7px;color:#2b241d;font-size:.72rem;font-weight:800}
.rb-create-collection>div,.rb-grocery-form>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.rb-create-collection input,.rb-grocery-form input{min-width:0;border:1px solid #d9cebd;border-radius:8px;background:#fff;color:#2b241d;padding:9px 11px;font:500 .82rem 'DM Sans',Arial,sans-serif}
.rb-custom-group{margin-top:28px}
.rb-custom-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}
.rb-custom-head h3{margin:0;color:#2b241d;font:700 1.1rem 'Libre Baskerville',Georgia,serif}
.rb-custom-head span{font-size:.7rem;color:#8a7c68}
.rb-grocery-list{list-style:none;margin:0;padding:0;max-width:760px;border:1px solid #e6dccc;border-radius:12px;overflow:hidden;background:#fff}
.rb-grocery-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border-bottom:1px solid #efe6d6}
.rb-grocery-list li:last-child{border-bottom:0}
.rb-grocery-list label{display:flex;align-items:center;gap:10px;cursor:pointer;font-size:.84rem}
.rb-grocery-list input{width:18px;height:18px;accent-color:#b8432c}
.rb-grocery-list li.is-checked span{text-decoration:line-through;color:#9a9083}
.rb-grocery-list button{border:0;background:none;color:#b8432c;font:700 .7rem 'DM Sans',Arial,sans-serif;cursor:pointer}
.rb-clear-checked{margin-top:12px;border:1px solid #d9cebd;border-radius:8px;background:#fff;color:#6f6458;padding:8px 11px;font:800 .7rem 'DM Sans',Arial,sans-serif;cursor:pointer}
@media(max-width:980px){.rb-box-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.rb-box-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.rb-detail-actions{align-items:stretch}.rb-detail-save,.rb-status-label,.rb-manage-link{width:100%}.rb-status-label{justify-content:space-between}.rb-manage-link{margin-left:0}.rb-box-main{padding-top:24px}.rb-box-shell{width:min(100% - 24px,1160px)}.rb-box-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.rb-box-panel-head{display:block}.rb-box-panel-head p{margin-top:5px}.rb-box-grid{grid-template-columns:1fr}.rb-heart{width:38px;height:38px;top:8px;right:8px}.rb-create-collection>div,.rb-grocery-form>div{grid-template-columns:1fr}.rb-create-collection button,.rb-grocery-form button{width:100%}}
@media(prefers-reduced-motion:reduce){.rb-heart{transition:none}}
