/* v40d-compat */
/* ==========================================================================
   UNIFORM PAGE WIDTH (Nov 2026) — loaded last on every page.
   Every section container (hero, content, CTA bands, footer, top bar, header)
   uses the same width as the header: 1400px max, 24px side padding.
   ========================================================================== */
:root{--wrap:1400px}
.wrap,.sh2 .header-inner,.tb2 .wrap{max-width:1400px}

/* content columns that used to be narrower now span the full width */
.content-wrap,.post-wrap,.content-layout,.wrap.content-layout,
.section .wrap:has(> .gallery.pg-grid),.ct2-more{max-width:none!important;margin-inline:0}
.section .wrap:has(> .gallery.pg-grid){width:auto;margin-inline:auto;max-width:1400px!important}
/* gallery panel keeps its inner padding but its edges match the header */
.section .wrap:has(> .gallery.pg-grid){padding-inline:24px;border:0;background:none;border-radius:0}
.section .wrap:has(> .gallery.pg-grid) > .gallery.pg-grid{padding:22px;border-radius:20px;background:#f8f5ee;border:1px solid rgba(200,162,74,.22)}

/* readable text: long paragraphs keep a comfortable line length, aligned to the same left edge */
.content-wrap .prose p,.post-wrap .prose p,.content-layout .prose p,.ct2-more .prose p,
.content-wrap .prose > ol,.post-wrap .prose > ol,.content-layout .prose > ol{max-width:880px}
.prose-inner > p:first-child,.post-wrap .prose > p:first-of-type{max-width:980px}
.content-wrap .prose ul,.post-wrap .prose ul,.content-layout .prose ul{grid-template-columns:repeat(3,1fr)}
.content-wrap .prose h2,.post-wrap .prose h2,.content-layout .prose h2,
.content-wrap .prose h3,.post-wrap .prose h3,.content-layout .prose h3,.content-wrap .prose .as-h2,.post-wrap .prose .as-h2,.content-layout .prose .as-h2,.content-wrap .prose .as-h3,.post-wrap .prose .as-h3,.content-layout .prose .as-h3{max-width:none}
@media (max-width:1080px){
  .content-wrap .prose ul,.post-wrap .prose ul,.content-layout .prose ul{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .content-wrap .prose ul,.post-wrap .prose ul,.content-layout .prose ul{grid-template-columns:1fr}
}
/* containers that are both .wrap and a content column keep the standard wrap box */
.wrap.content-layout{max-width:1400px!important;margin-inline:auto!important;width:100%}
