/* Stable application shell across every Ritual route. */
html body.ritual-shell{display:flex;flex-direction:column;min-height:100svh}
html body.ritual-shell>header{display:grid!important;grid-template-columns:150px minmax(0,1fr) auto!important;align-items:center!important;gap:20px!important;width:100%;height:84px!important;min-height:84px!important;padding:14px clamp(24px,3vw,64px)!important;position:relative!important;background:#101510f0!important;border-bottom:1px solid #ffffff1c;flex-shrink:0;box-sizing:border-box}
html body.ritual-shell>header .brand{font:700 29px/.8 Arial,Helvetica,sans-serif!important;letter-spacing:-.07em!important;white-space:nowrap}
html body.ritual-shell>header .brand small{font:400 8px/1.3 Arial,Helvetica,sans-serif!important;letter-spacing:.2em!important;margin-top:9px}
html body.ritual-shell>header nav{position:static!important;display:flex!important;align-items:center;justify-content:center!important;grid-column:2;grid-row:1;gap:20px!important;margin:0!important;min-width:0;overflow-x:auto;scrollbar-width:none}
html body.ritual-shell>header nav>:is(a,button){display:inline-flex!important;flex-shrink:0;align-items:center;gap:7px;min-height:44px;padding:10px 0!important;border:0!important;border-bottom:2px solid transparent!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;font:700 11px/1.4 Arial,Helvetica,sans-serif!important;letter-spacing:.4px!important;color:#d9d7cd!important;white-space:nowrap;text-decoration:none}
html body.ritual-shell>header nav>:is(a,button)[aria-current="page"]{color:#c4a16d!important;border-bottom-color:#c4a16d!important}
html body.ritual-shell>header nav>:is(a,button):hover{color:#e7c68f!important}
html body.ritual-shell>header :is(a,button):focus-visible{outline:2px solid #dfc393!important;outline-offset:4px}
html body.ritual-shell>header .header-tools{display:flex!important;grid-column:3;grid-row:1;align-items:center;gap:8px;margin:0!important}
html body.ritual-shell>header .header-tools>:is(a,button){display:inline-flex!important;align-items:center;justify-content:center;min-height:44px;border-radius:999px;font:700 11px/1.4 Arial,Helvetica,sans-serif;padding:10px 14px;white-space:nowrap}
html body.ritual-shell>header .header-tools .header-action{background:#c4a16d;color:#111712;border:1px solid #c4a16d}
html body.ritual-shell>header .header-tools .icon-button{width:44px;padding:10px}
html body.ritual-shell>main{flex:1 0 auto;min-width:0}
html body.ritual-shell>#cuaderno{flex:1 0 auto;width:100%;max-width:1600px;margin:0 auto;padding:36px clamp(24px,4vw,64px) 64px;box-sizing:border-box}
html body.ritual-shell>footer.buna-site-footer{flex-shrink:0;margin-top:auto!important;width:100%;align-self:stretch}
html body.ritual-shell>main[hidden],html body.ritual-shell>#cuaderno[hidden]{display:none!important}
html body.ritual-shell>#contact-view,html body.ritual-shell>#guide-view,html body.ritual-shell>#guide-index{flex:1 0 auto}
@media(max-width:1350px){
 html body.ritual-shell>header{height:128px!important;min-height:128px!important;grid-template-columns:1fr auto!important;gap:8px 20px!important;padding-block:12px!important}
 html body.ritual-shell>header nav{grid-row:2;grid-column:1/-1;justify-content:flex-start!important;width:100%;gap:26px!important}
 html body.ritual-shell>header .header-tools{grid-column:2;grid-row:1}
 html body.ritual-shell>header .header-tools .shortcuts{display:none!important}
}
@media(max-width:700px){
 html body.ritual-shell>header{height:128px!important;min-height:128px!important;padding:12px 20px!important;gap:8px!important}
 html body.ritual-shell>header nav{gap:22px!important}
 html body.ritual-shell>header .header-tools .header-action{display:none!important}
 html body.ritual-shell>header .header-tools .account{display:inline-flex!important;font-size:10px;padding:10px 12px}
 html body.ritual-shell>header .header-tools{gap:6px}
 html body.ritual-shell>#cuaderno{padding:28px 20px 48px}
}
@media print{html body.ritual-shell{display:block;min-height:0}html body.ritual-shell>header,html body.ritual-shell>footer{display:none!important}}
html:has(body.ritual-shell){scrollbar-gutter:stable}
html body.ritual-shell>header{background:#101510!important}
html body.ritual-shell>footer.buna-site-footer{display:block!important}
html body.ritual-shell.view-brew:not(.nb-open)>footer.buna-site-footer{display:none!important}
html body.ritual-shell>footer.buna-site-footer nav{order:0}
/* E118: frosted header remains in view while the page scrolls. */
html body.ritual-shell>header{position:sticky!important;top:0;z-index:60;background:rgba(16,21,16,.86)!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 6px 20px #0b140e12}
/* E118: one compact bar on desktop/tablet, with icon tools when space is tight. */
@media(min-width:701px){
 html body.ritual-shell>header{height:84px!important;min-height:84px!important;grid-template-columns:135px minmax(0,1fr) auto!important;gap:16px!important;padding:12px 24px!important}
 html body.ritual-shell>header nav{grid-row:1!important;grid-column:2!important;justify-content:center!important;gap:16px!important;width:auto}
 html body.ritual-shell>header .header-tools{grid-row:1!important;grid-column:3!important}
}
@media(max-width:1100px){
 html body.ritual-shell>header .header-tools .account,html body.ritual-shell>header .header-tools .header-action{display:inline-flex!important;font-size:0!important;width:44px;height:44px;padding:10px!important;gap:0;border-radius:50%}
 html body.ritual-shell>header .header-tools .account img,html body.ritual-shell>header .header-tools .header-action img{width:17px;height:17px}
}
/* E119: compact navigation keeps every destination visible on small screens. */
@media(max-width:1100px){
 html body.ritual-shell>header nav{gap:10px!important;overflow:visible!important}
 html body.ritual-shell>header nav>:is(a,button){position:relative;justify-content:center;width:44px;min-width:44px;height:44px;padding:10px!important;font-size:0!important;gap:0}
 html body.ritual-shell>header nav>:is(a,button)>img{width:19px;height:19px}
 html body.ritual-shell>header nav #saved-count{font-size:9px;position:absolute;margin:0 0 22px 26px}
}
@media(max-width:700px){html body.ritual-shell>header nav{justify-content:space-between!important;gap:8px!important}}
.buna-shell-tooltip{position:fixed;z-index:200;max-width:220px;padding:8px 12px;border:1px solid #c4a16d66;border-radius:10px;background:#f7f3e9;color:#142319;box-shadow:0 8px 22px #060d0833;font:500 13px/1.4 Arial,Helvetica,sans-serif;pointer-events:none;white-space:nowrap}
.buna-shell-tooltip[hidden]{display:none!important}
@media print{.buna-shell-tooltip{display:none!important}}
