/* Back Forty Inner Patterns — scoped; leaves V9 homepage and Kadence header/footer unchanged */
.b40p-page{--b40p-brown:#25150e;--b40p-text:#382014;--b40p-copper:#85502b;--b40p-cream:#f2e4d2;--b40p-parchment:#e8d4b5;color:var(--b40p-text);overflow:hidden}
.b40p-page.alignfull{margin-top:0!important;margin-bottom:0!important;max-width:none!important}
.b40p-page .b40p-hero,.b40p-page .b40p-section,.b40p-page .b40p-cta{max-width:none!important;margin-block:0!important}
.b40p-page .b40p-hero{padding:clamp(65px,10vw,125px) max(6%,calc((100vw - 1100px)/2));text-align:center;color:#2b190f;background:linear-gradient(180deg,rgba(251,239,219,.80),rgba(242,217,177,.65)),url('pasture-seamless.webp') center 54%/cover no-repeat;border-top:12px solid #56301a;border-bottom:10px solid #3d2213;box-shadow:inset 0 14px 25px #2b150d5a,inset 0 -14px 25px #2b150d5a}
.b40p-page .b40p-eyebrow{font-weight:800;text-transform:uppercase;letter-spacing:.17em;font-size:.78rem;margin-bottom:15px}
.b40p-page .b40p-h1{font-family:Georgia,'Roboto Slab',serif;font-weight:800;font-size:clamp(2.3rem,5.5vw,4.5rem);line-height:1.08;color:#30170e;margin:10px auto 18px;max-width:1000px;text-transform:uppercase;text-wrap:balance}
.b40p-page .b40p-lead{font-size:clamp(1rem,1.6vw,1.3rem);max-width:740px;margin:auto;line-height:1.65;font-weight:600}
.b40p-page .b40p-section{padding:clamp(44px,6vw,88px) max(6%,calc((100vw - 1150px)/2));background:#f2e4d2}
.b40p-page .b40p-section.b40p-parchment{background:radial-gradient(ellipse at center,#f7e5c8 0%,#e8d4b5 100%)}
.b40p-page .b40p-section:nth-child(odd):not(.b40p-hero):not(.b40p-cta):not(.b40p-parchment){background:#f9ecda}
.b40p-page .b40p-section h2,.b40p-page .b40p-cta h2{font-family:Georgia,'Roboto Slab',serif;font-size:clamp(1.8rem,3.25vw,3rem);color:#30170e;line-height:1.15;margin-bottom:21px}
.b40p-page .b40p-section h3{font-family:Georgia,'Roboto Slab',serif;font-size:clamp(1.2rem,2vw,1.55rem);color:#382014;margin-bottom:12px}
.b40p-page .b40p-section p{font-size:1.035rem;line-height:1.8}
.b40p-page .b40p-columns{gap:clamp(24px,4vw,55px);align-items:center}
.b40p-page figure.b40p-photo{margin:0!important;border:10px ridge #754221;box-shadow:10px 11px 0 #38201438;background:#5a311e}
.b40p-page figure.b40p-photo img{width:100%;height:auto;max-height:440px;object-fit:cover;display:block}
.b40p-page .b40p-cta{text-align:center;padding:clamp(55px,6vw,85px) 5%;background:repeating-linear-gradient(0deg,#2b1a11,#3b2618 14px,#20130c 18px,#3b2519 42px);border-block:6px solid #754321;color:#f2e4d2}
.b40p-page .b40p-cta h2,.b40p-page .b40p-cta p{color:#f2e4d2!important}.b40p-page .b40p-cta .wp-block-buttons{justify-content:center}
.b40p-page .wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;border-radius:5px;padding:15px 25px;background:#85502b;color:#fff9f0;text-transform:uppercase;font-weight:800;font-size:.93rem;letter-spacing:.04em;border:2px solid #c17a43;transition:transform .15s,filter .15s}
.b40p-page .wp-block-button__link:hover,.b40p-page .wp-block-button__link:focus-visible{background:#653619;color:white;filter:brightness(1.1);transform:translateY(-2px)}
.b40p-page .b40p-wood-cta .wp-block-button__link{background:#85502b url('branded-quote.webp') center / 100% 100% no-repeat;color:transparent!important;font-size:0!important;width:min(440px,83vw);min-height:100px;border:0!important;border-radius:0!important}
.b40p-page .b40p-wood-cta .wp-block-button__link:hover,.b40p-page .b40p-wood-cta .wp-block-button__link:focus-visible{background-image:url('branded-quote.webp')!important;background-color:transparent!important}
.b40p-page .b40p-faq h3{border-bottom:1px solid #c5a47b;padding-bottom:9px}
.b40p-page .b40p-form{border-top:4px solid #8b512b}
@media(max-width:782px){.b40p-page .b40p-columns{gap:26px}.b40p-page .b40p-hero{padding:72px 22px}.b40p-page .b40p-section{padding:48px 22px}.b40p-page figure.b40p-photo{border-width:7px}}
@media(prefers-reduced-motion:reduce){.b40p-page .wp-block-button__link{transition:none}}

/* Real photography / event galleries v2 */
.b40p-page .b40p-photo-gallery .b40p-photo-row{align-items:stretch;gap:18px;margin-bottom:22px}
.b40p-page .b40p-photo-gallery figure.b40p-photo{border-width:6px;box-shadow:6px 7px 0 #38201426}
.b40p-page .b40p-photo-gallery figure.b40p-photo img{width:100%;height:245px;object-fit:cover}
.b40p-page .b40p-reel{margin:24px auto;max-width:720px}
.b40p-page .b40p-reel iframe{border:none;display:block;width:100%;height:460px;background:#22150e}
.b40p-page .b40p-reel a{color:#85502b;text-decoration:underline}
@media(max-width:782px){.b40p-page .b40p-photo-gallery figure.b40p-photo img{height:auto;max-height:none}.b40p-page .b40p-reel iframe{height:390px}}


/* V2.1 — consistent content gutters on every inserted Back Forty inner-page pattern.
   Keep section backgrounds full bleed; constrain their actual child blocks. */
.b40p-page .b40p-section,
.b40p-page .b40p-hero {
  box-sizing: border-box !important;
  width: 100% !important;
  padding-left: clamp(24px, 5vw, 80px) !important;
  padding-right: clamp(24px, 5vw, 80px) !important;
}
.b40p-page .b40p-section > :where(*:not(.alignfull)),
.b40p-page .b40p-hero > :where(*:not(.alignfull)) {
  box-sizing: border-box;
  width: 100%;
  max-width: 1160px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
/* Make Gutenberg multi-column content expand within the constrained content area. */
.b40p-page .b40p-section > .wp-block-columns,
.b40p-page .b40p-section > .b40p-columns,
.b40p-page .b40p-section > .b40p-photo-gallery {
  width: 100%;
}
/* Maintain a readable measure for long prose, with centered page hero text. */
.b40p-page .b40p-hero > .b40p-lead { max-width: 740px !important; }
.b40p-page .b40p-section p { overflow-wrap: break-word; }
@media (max-width: 1024px) {
  .b40p-page .b40p-section, .b40p-page .b40p-hero {
    padding-left: 32px !important; padding-right: 32px !important;
  }
}
@media (max-width: 767px) {
  .b40p-page .b40p-section, .b40p-page .b40p-hero {
    padding-left: 20px !important; padding-right: 20px !important;
  }
}

/* V2.8 — consistent wood-board buttons for editable inner-page sections. */
.b40p-page .wp-block-button:not(.b40p-wood-cta) .wp-block-button__link {
 background:#d9924f url('menu-tab-wood-readable.webp') center / 100% 100% no-repeat!important;
 color:#1b0d06!important; -webkit-text-fill-color:#1b0d06!important;
 text-shadow:0 1px 0 #f8d09a!important;font-family:Georgia,'Roboto Slab',serif;font-weight:900;
 border:3px solid #36190c!important;border-radius:8px;min-height:56px;box-shadow:0 4px 0 #281309,0 8px 13px #28130945;
}
.b40p-page .wp-block-button:not(.b40p-wood-cta) .wp-block-button__link:hover {filter:brightness(1.06);transform:translateY(-2px)}

/* V2.9 — use exact approved B40 scorched-wood quote sign across page CTAs. */
.b40p-page .b40p-wood-cta .wp-block-button__link,
.b40p-page .b40p-wood-cta .wp-block-button__link:hover,
.b40p-page .b40p-wood-cta .wp-block-button__link:focus-visible {
  background: transparent url('branded-quote-v29.webp') center / contain no-repeat !important;
  background-color:transparent!important;
  border:0!important; box-shadow:none!important;
  color:transparent!important;font-size:0!important;
  width:min(480px,90vw);min-height:clamp(64px,12vw,135px);
  padding:0!important;line-height:0!important;
  text-shadow:none!important;
}
.b40p-page .b40p-wood-cta .wp-block-button__link:focus-visible {outline:3px solid #C17A43!important;outline-offset:3px}
