/* booklet-room.css · Mystery of the Fire · 7 Nov 2026
   The library painting down both sides of every booklet (same pictures as The Library page).
   Only applies where the booklet sits on its own cream page (.leaf, .folio or .sheet), so the words never sit on the dark wood. */
html:has(.leaf),html:has(.leaf) body,html:has(.folio),html:has(.folio) body,html:has(.sheet),html:has(.sheet) body{background:#1f140d url(/library/img/mof-library-bg-wide.webp) center top/cover fixed no-repeat!important}
html:has(.leaf) .leaf,html:has(.folio) .folio,html:has(.sheet) .sheet{box-shadow:0 0 0 1px rgba(0,0,0,.25),0 12px 50px rgba(0,0,0,.55)!important}
@media (max-width:700px){html:has(.leaf),html:has(.leaf) body,html:has(.folio),html:has(.folio) body,html:has(.sheet),html:has(.sheet) body{background:#1f140d url(/library/img/mof-library-bg-tall.webp) center top/100% auto scroll no-repeat!important}}
@media print{html:has(.leaf),html:has(.leaf) body,html:has(.folio),html:has(.folio) body,html:has(.sheet),html:has(.sheet) body{background:#fff!important}html:has(.leaf) .leaf,html:has(.folio) .folio,html:has(.sheet) .sheet{box-shadow:none!important}}

/* 7 Nov 2026 (v3): the top bar dressed like the Booklet key: same cream, gold border, filigree corners; small gap above the booklet page */
body>div:has(>a.mof-home){position:relative!important;background-color:#fbf7ee!important;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2244%22%20height%3D%2244%22%20viewBox%3D%220%200%2044%2044%22%3E%3Cg%20transform%3D%22%22%3E%3Cpath%20d%3D%22M3%2037%20C3%2018%2010%208%2024%205%20C30%204%2034%206%2034%2010%20C34%2014%2030%2015%2028%2013%20C26%2011%2028%209%2030%2010%22%20fill%3D%22none%22%20stroke%3D%22%23b88a2c%22%20stroke-width%3D%221.3%22%20stroke-linecap%3D%22round%22/%3E%3Cpath%20d%3D%22M5%2030%20C7%2024%2011%2022%2014%2024%20C16%2026%2014%2029%2012%2028%22%20fill%3D%22none%22%20stroke%3D%22%23b88a2c%22%20stroke-width%3D%221%22%20stroke-linecap%3D%22round%22/%3E%3Cpath%20d%3D%22M12%206%20C17%206%2019%209%2017%2011%20C15%2012%2014%2010%2015%209%22%20fill%3D%22none%22%20stroke%3D%22%23b88a2c%22%20stroke-width%3D%221%22%20stroke-linecap%3D%22round%22/%3E%3Ccircle%20cx%3D%223%22%20cy%3D%2240%22%20r%3D%221.4%22%20fill%3D%22%23b88a2c%22/%3E%3Ccircle%20cx%3D%2238%22%20cy%3D%224%22%20r%3D%221.4%22%20fill%3D%22%23b88a2c%22/%3E%3Cpath%20d%3D%22M8%2014%20l2%20-2%20l2%202%20l-2%202z%22%20fill%3D%22%23b88a2c%22%20opacity%3D%22.8%22/%3E%3C/g%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2244%22%20height%3D%2244%22%20viewBox%3D%220%200%2044%2044%22%3E%3Cg%20transform%3D%22translate%2844%200%29%20scale%28-1%201%29%22%3E%3Cpath%20d%3D%22M3%2037%20C3%2018%2010%208%2024%205%20C30%204%2034%206%2034%2010%20C34%2014%2030%2015%2028%2013%20C26%2011%2028%209%2030%2010%22%20fill%3D%22none%22%20stroke%3D%22%23b88a2c%22%20stroke-width%3D%221.3%22%20stroke-linecap%3D%22round%22/%3E%3Cpath%20d%3D%22M5%2030%20C7%2024%2011%2022%2014%2024%20C16%2026%2014%2029%2012%2028%22%20fill%3D%22none%22%20stroke%3D%22%23b88a2c%22%20stroke-width%3D%221%22%20stroke-linecap%3D%22round%22/%3E%3Cpath%20d%3D%22M12%206%20C17%206%2019%209%2017%2011%20C15%2012%2014%2010%2015%209%22%20fill%3D%22none%22%20stroke%3D%22%23b88a2c%22%20stroke-width%3D%221%22%20stroke-linecap%3D%22round%22/%3E%3Ccircle%20cx%3D%223%22%20cy%3D%2240%22%20r%3D%221.4%22%20fill%3D%22%23b88a2c%22/%3E%3Ccircle%20cx%3D%2238%22%20cy%3D%224%22%20r%3D%221.4%22%20fill%3D%22%23b88a2c%22/%3E%3Cpath%20d%3D%22M8%2014%20l2%20-2%20l2%202%20l-2%202z%22%20fill%3D%22%23b88a2c%22%20opacity%3D%22.8%22/%3E%3C/g%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2244%22%20height%3D%2244%22%20viewBox%3D%220%200%2044%2044%22%3E%3Cg%20transform%3D%22translate%280%2044%29%20scale%281%20-1%29%22%3E%3Cpath%20d%3D%22M3%2037%20C3%2018%2010%208%2024%205%20C30%204%2034%206%2034%2010%20C34%2014%2030%2015%2028%2013%20C26%2011%2028%209%2030%2010%22%20fill%3D%22none%22%20stroke%3D%22%23b88a2c%22%20stroke-width%3D%221.3%22%20stroke-linecap%3D%22round%22/%3E%3Cpath%20d%3D%22M5%2030%20C7%2024%2011%2022%2014%2024%20C16%2026%2014%2029%2012%2028%22%20fill%3D%22none%22%20stroke%3D%22%23b88a2c%22%20stroke-width%3D%221%22%20stroke-linecap%3D%22round%22/%3E%3Cpath%20d%3D%22M12%206%20C17%206%2019%209%2017%2011%20C15%2012%2014%2010%2015%209%22%20fill%3D%22none%22%20stroke%3D%22%23b88a2c%22%20stroke-width%3D%221%22%20stroke-linecap%3D%22round%22/%3E%3Ccircle%20cx%3D%223%22%20cy%3D%2240%22%20r%3D%221.4%22%20fill%3D%22%23b88a2c%22/%3E%3Ccircle%20cx%3D%2238%22%20cy%3D%224%22%20r%3D%221.4%22%20fill%3D%22%23b88a2c%22/%3E%3Cpath%20d%3D%22M8%2014%20l2%20-2%20l2%202%20l-2%202z%22%20fill%3D%22%23b88a2c%22%20opacity%3D%22.8%22/%3E%3C/g%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2244%22%20height%3D%2244%22%20viewBox%3D%220%200%2044%2044%22%3E%3Cg%20transform%3D%22translate%2844%2044%29%20scale%28-1%20-1%29%22%3E%3Cpath%20d%3D%22M3%2037%20C3%2018%2010%208%2024%205%20C30%204%2034%206%2034%2010%20C34%2014%2030%2015%2028%2013%20C26%2011%2028%209%2030%2010%22%20fill%3D%22none%22%20stroke%3D%22%23b88a2c%22%20stroke-width%3D%221.3%22%20stroke-linecap%3D%22round%22/%3E%3Cpath%20d%3D%22M5%2030%20C7%2024%2011%2022%2014%2024%20C16%2026%2014%2029%2012%2028%22%20fill%3D%22none%22%20stroke%3D%22%23b88a2c%22%20stroke-width%3D%221%22%20stroke-linecap%3D%22round%22/%3E%3Cpath%20d%3D%22M12%206%20C17%206%2019%209%2017%2011%20C15%2012%2014%2010%2015%209%22%20fill%3D%22none%22%20stroke%3D%22%23b88a2c%22%20stroke-width%3D%221%22%20stroke-linecap%3D%22round%22/%3E%3Ccircle%20cx%3D%223%22%20cy%3D%2240%22%20r%3D%221.4%22%20fill%3D%22%23b88a2c%22/%3E%3Ccircle%20cx%3D%2238%22%20cy%3D%224%22%20r%3D%221.4%22%20fill%3D%22%23b88a2c%22/%3E%3Cpath%20d%3D%22M8%2014%20l2%20-2%20l2%202%20l-2%202z%22%20fill%3D%22%23b88a2c%22%20opacity%3D%22.8%22/%3E%3C/g%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-size:30px 30px!important;background-position:6px 6px,calc(100% - 6px) 6px,6px calc(100% - 6px),calc(100% - 6px) calc(100% - 6px)!important;border:1px solid rgba(184,138,44,.55)!important;border-radius:14px!important;box-shadow:0 6px 22px rgba(60,40,10,.12)!important;margin:10px 12px 16px!important;padding:12px 40px!important}
body>div:has(>a.mof-home)::before{content:"";position:absolute;inset:6px;border:1px solid rgba(184,138,44,.38);border-radius:10px;pointer-events:none}
@media (max-width:700px){body>div:has(>a.mof-home){margin:8px 8px 14px!important;padding:12px 22px!important}}
@media print{body>div:has(>a.mof-home){background-image:none!important;box-shadow:none!important}body>div:has(>a.mof-home)::before{display:none}}
/* Big doors (B), 7 Nov 2026: "Start with The Essentials" + "The pocket workbook" on the Before you begin card, and the "Where to go next" doors on The Essentials pages. Keep it just before the glow block. */
body .mof-begin .mb-doors{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:14px;margin-top:12px}
body .onward .doors{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:14px;margin-top:6px}
body .mof-begin .mb-doors a,body .onward .doors a{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;box-sizing:border-box;min-height:84px;padding:16px 20px;border-radius:16px;font-family:"Cormorant Garamond",Georgia,serif;font-weight:700;font-size:23px;line-height:1.2;font-style:normal;text-decoration:none;border:1px solid #9b6611;background:#fffdf9;color:#3b3350}
body .mof-begin .mb-doors a.solid,body .onward .doors a.solid{background:#9b6611;color:#fffdf9}
body .mof-begin .mb-doors a::after,body .onward .doors a::after{display:block;margin-top:6px;font-family:Cardo,Georgia,serif;font-weight:400;font-size:15.5px;line-height:1.35;font-style:normal;color:#554c69}
body .mof-begin .mb-doors a.solid::after,body .onward .doors a.solid::after{color:#fffdf9}
html:not([lang^="es"]) body .mof-begin .mb-doors a[href$="-essentials.html"]::after{content:"The short version, with the practice"}
html:not([lang^="es"]) body .mof-begin .mb-doors a[href$="-pocket-workbook.html"]::after,html:not([lang^="es"]) body .onward .doors a[href$="-pocket-workbook.html"]::after{content:"One week, two minutes an evening"}
html:not([lang^="es"]) body .onward .doors a[href*="practices/"]::after{content:"Do it now, step by step"}
html:not([lang^="es"]) body .onward .doors a:not([href$="-pocket-workbook.html"]):not([href*="practices/"])::after{content:"Every passage, in full"}
body .mof-begin .mb-doors a:hover,body .onward .doors a:hover{filter:brightness(1.06)}
body .mof-begin .mb-doors a:focus-visible,body .onward .doors a:focus-visible{outline:2px solid #c98a1b;outline-offset:3px}
@media print{body .mof-begin .mb-doors a::after,body .onward .doors a::after{content:none}}
@keyframes mofEssentialsGlow{0%,100%{box-shadow:0 0 4px 1px rgba(224,168,60,.35)}50%{box-shadow:0 0 22px 8px rgba(224,168,60,.65)}}
.mof-begin .mb-doors a.solid{animation:mofEssentialsGlow 2.6s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){.mof-begin .mb-doors a.solid{animation:none;box-shadow:0 0 10px 3px rgba(224,168,60,.45)}}
@media print{.mof-begin .mb-doors a.solid{animation:none;box-shadow:none}}
