/* Scoped to the Back Forty Menus page and the existing shortcode. No template or saved content changes. */
body.page .b40e-page:has(.b40mb) { background: #ead1a9; }
/* Keep an accessible H1 in the markup, while eliminating the oversized top photo banner. */
body.page .b40e-page:has(.b40mb) > .b40e-hero {
 position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;
 overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;
}
/* Start the real menu immediately under the site header. Hide duplicate intro headings only. */
body.page .b40e-page .b40e-section:has(.b40mb) {padding-top:20px!important;padding-bottom:34px!important;background:#ead1a9!important;}
body.page .b40e-page .b40e-section:has(.b40mb) > h2,
body.page .b40e-page .b40e-section:has(.b40mb) > p {display:none!important;}
body.page .b40mb .b40mb-hero {display:none!important;}
body.page .b40mb {background:transparent!important;color:#2c180e;}
body.page .b40mb .b40mb-inner {max-width:1280px;padding:12px 20px 35px;}
/* Menu selector first, with warm B40 burnt timber and good contrast. */
body.page .b40mb .b40mb-tabs {margin:0 auto 30px!important;gap:clamp(5px,.8vw,13px)!important;}
body.page .b40mb .b40mb-tabs .b40mb-tab {border-radius:8px;}
/* The main menu board matches the dark scorched timber strip on the homepage. */
body.page .b40mb .b40mb-board {
 background:#28170f url('charred-wood.webp') center / cover no-repeat!important;
 color:#fff0d9!important;border:7px solid #4e2916!important;border-radius:5px!important;
 box-shadow:0 8px 18px #29160c40,inset 0 0 0 2px #a66a36!important;
}
body.page .b40mb .b40mb-board h3 {color:#ffe1ae!important;text-shadow:0 2px 4px #160900!important;}
body.page .b40mb .b40mb-board .b40mb-description,
body.page .b40mb .b40mb-board .b40mb-items,
body.page .b40mb .b40mb-board .b40mb-items li {color:#fff3df!important;text-shadow:0 1px 2px #1c0d06!important;}
body.page .b40mb .b40mb-board .b40mb-label {color:#f6ba73!important;}
body.page .b40mb .b40mb-details {background:#f5e4c9!important;border:2px solid #a66a36!important;box-shadow:0 3px 10px #331a1020;}
body.page .b40mb .b40mb-cta {background:#f1dfbe!important;border:2px solid #a66a36!important;}
/* Same real B40 burnt-wood CTA artwork; link remains accessible and clickable. */
body.page .b40mb .b40mb-quote,
body.page .b40mb .b40mb-quote:hover,
body.page .b40mb .b40mb-quote:focus-visible {
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 background:transparent url('branded-quote.webp') center / contain no-repeat!important;
 width:min(440px,100%)!important;height:clamp(78px,10vw,126px)!important;
 padding:0!important;border:0!important;box-shadow:none!important;
 color:transparent!important;-webkit-text-fill-color:transparent!important;font-size:0!important;
}
body.page .b40mb .b40mb-quote:focus-visible {outline:3px solid #ecac61!important;outline-offset:4px!important;}
/* Keep other page sections warm and consistent with the homepage. */
body.page .b40e-page:has(.b40mb) > .b40e-section {border-top:10px solid #e6c99d;}
@media(max-width:767px){
 body.page .b40e-page .b40e-section:has(.b40mb){padding-top:8px!important;}
 body.page .b40mb .b40mb-inner {padding:10px 12px 27px!important;}
 body.page .b40mb .b40mb-board {border-width:4px!important;}
}

/* v1.1.0 — Final menu CTA: match the homepage's charred wood service bar.
   Scoped solely to the Menus page containing our menu shortcode. */
body.page .b40e-page:has(.b40mb) > .b40e-cta {
  background: #2b170e url('charred-wood.webp') center center / cover no-repeat !important;
  color: #fff0d9 !important;
  border: 0 !important;
  border-top: 7px solid #35190d !important;
  border-bottom: 7px solid #35190d !important;
  box-shadow: inset 0 0 0 2px rgba(245,170,94,.3) !important;
  padding: clamp(36px,5vw,72px) 20px !important;
  text-align: center !important;
}
body.page .b40e-page:has(.b40mb) > .b40e-cta h2 {
  color: #fff0d9 !important; text-shadow: 0 2px 4px #160900 !important;
}
body.page .b40e-page:has(.b40mb) > .b40e-cta p {
  color: #fff0d9 !important; text-shadow: 0 1px 3px #160900 !important;
}
body.page .b40e-page:has(.b40mb) > .b40e-cta .wp-block-buttons {justify-content:center !important;}
/* Use the same real burned-wood quote board artwork used above the menu. */
body.page .b40e-page:has(.b40mb) > .b40e-cta .b40e-btn .wp-block-button__link,
body.page .b40e-page:has(.b40mb) > .b40e-cta .b40e-btn .wp-block-button__link:hover {
 display:inline-flex !important; align-items:center !important; justify-content:center !important;
 background: transparent url('branded-quote.webp') center / contain no-repeat !important;
 width:min(440px,90vw) !important;height:clamp(78px,10vw,126px) !important;
 padding:0 !important;border:0 !important;box-shadow:none !important;
 color:transparent !important;-webkit-text-fill-color:transparent !important; font-size:0 !important;
}
body.page .b40e-page:has(.b40mb) > .b40e-cta .b40e-btn .wp-block-button__link:focus-visible {outline:3px solid #ffd5a3 !important; outline-offset:4px !important;}

/* v1.2.0 — accurate nested Gutenberg group selectors and stronger scope */
body.b40-menu-homepage-style-active .b40e-page .b40e-hero {
 display:none !important;
}
body.b40-menu-homepage-style-active .b40e-page .b40e-section:has(.b40mb) {
 padding-top:12px !important;
}
body.b40-menu-homepage-style-active .b40e-page .b40e-section:has(.b40mb) > h2,
body.b40-menu-homepage-style-active .b40e-page .b40e-section:has(.b40mb) > p,
body.b40-menu-homepage-style-active .b40mb .b40mb-hero {display:none !important;}
body.b40-menu-homepage-style-active .b40e-page .b40e-cta {
 background-color:#2b170e !important;
 background-image:url('charred-wood.webp') !important;
 background-position:center center !important;
 background-repeat:no-repeat !important;
 background-size:cover !important;
 color:#fff0d9 !important;
 border-top:7px solid #35190d !important;
 border-bottom:7px solid #35190d !important;
 padding:clamp(36px,5vw,72px) 20px !important;
 text-align:center !important;
}
body.b40-menu-homepage-style-active .b40e-page .b40e-cta h2,
body.b40-menu-homepage-style-active .b40e-page .b40e-cta p {
 color:#fff0d9 !important;
 text-shadow:0 2px 3px #160900 !important;
}
body.b40-menu-homepage-style-active .b40e-page .b40e-cta .b40e-btn .wp-block-button__link {
 display:inline-flex !important; align-items:center !important;justify-content:center !important;
 background:transparent url('branded-quote.webp') center / contain no-repeat !important;
 width:min(440px,90vw) !important;height:clamp(78px,10vw,126px) !important;
 padding:0 !important;border:0 !important;box-shadow:none !important;
 color:transparent !important;-webkit-text-fill-color:transparent !important;font-size:0 !important;
}
body.b40-menu-homepage-style-active .b40e-page .b40e-cta .b40e-btn .wp-block-button__link:focus-visible {
 outline:3px solid #ffd5a3 !important;outline-offset:4px !important;
}
