/* 4Granite 1.7.2 — shared geometry for articles, ordinary Pages, service Pages,
   service entries and archive cards. Content remains Gutenberg-owned. */
.fgmodern-site .fg-editorial-main {
  --fg-content-border:#e0e7e5;
  background:#f4f6f4;
}
/* Title bands and article grids share the same outer alignment. */
.fgmodern-site:is(.single,.page,.blog,.archive,.search) .fgmodern-page-banner > .fgmodern-shell {
  max-width:1180px;
}
.fgmodern-site .fg-editorial-grid,
.fgmodern-site .fg-editorial-grid > * {min-width:0;}
.fgmodern-site .fg-editorial-article {box-sizing:border-box;}
.fgmodern-site .fg-editorial-article > .fg-editorial-body {
  width:100%; min-width:0; max-width:100%;
  font-size:1.06rem; line-height:1.77;
  overflow-wrap:break-word;
}
.fgmodern-site .fg-editorial-article .fg-editorial-body > * {
  max-width:100%; min-width:0; box-sizing:border-box;
}
.fgmodern-site .fg-editorial-article .fg-editorial-body :is(h1,h2,h3,h4,h5,h6,p,blockquote,ol,ul,figure,table) {
  max-width:100%; overflow-wrap:break-word; box-sizing:border-box;
}
.fgmodern-site .fg-editorial-article .fg-editorial-body :is(h1,h2,h3,h4,h5,h6) {
  width:auto; line-height:1.22; text-transform:none; letter-spacing:-.025em;
  margin:1.4em 0 .6em; hyphens:auto;
}
.fgmodern-site .fg-editorial-article .fg-editorial-body h2 {font-size:clamp(1.52rem,2vw,2.1rem);}
.fgmodern-site .fg-editorial-article .fg-editorial-body h3 {font-size:clamp(1.28rem,1.6vw,1.62rem);}
.fgmodern-site .fg-editorial-article .fg-editorial-body h4 {font-size:clamp(1.08rem,1.3vw,1.28rem);}
.fgmodern-site .fg-editorial-article .fg-editorial-body :is(p,li) {line-height:1.77;}
.fgmodern-site .fg-editorial-article .fg-editorial-body p {margin:0 0 1.25em;}
.fgmodern-site .fg-editorial-article .fg-editorial-body :is(ul,ol) {padding-inline-start:1.35em;}
.fgmodern-site .fg-editorial-article .fg-editorial-body :is(img,video,iframe) {max-width:100%;height:auto;}
.fgmodern-site .fg-editorial-article .fg-editorial-body :is(.wp-block-columns,.wp-block-column,.wp-block-group,.wp-block-cover) {min-width:0;max-width:100%;}
.fgmodern-site .fg-editorial-article .fg-editorial-body .wp-block-columns {gap:clamp(16px,2vw,30px);}
.fgmodern-site .fg-editorial-article .fg-editorial-body :is(.alignfull,.alignwide) {width:100%;max-width:100%;margin-inline:0;}
.fgmodern-site .fg-editorial-article .fg-editorial-body :is(pre,.wp-block-code,.wp-block-table) {max-width:100%;overflow-x:auto;}
.fgmodern-site .fg-editorial-article .fg-editorial-body > :first-child {margin-top:0;}
.fgmodern-site .fg-editorial-article .fg-editorial-body > :last-child {margin-bottom:0;}
/* Keep the optional Page image in the exact same column as its headings and body. */
.fgmodern-site .fg-editorial-page-hero {max-width:100%;margin:0 0 clamp(25px,3vw,40px);}
.fgmodern-site .fg-editorial-page-hero img {display:block;width:100%;height:auto;aspect-ratio:16/9;max-height:475px;object-fit:cover;}
/* Service pattern polish inside the constrained editorial canvas. Specificity overrides
   older full-bleed Service pattern rules only for *editorial* content. */
.fgmodern-site .fg-editorial-body .fg-service-content {width:100%; max-width:100%;min-width:0;}
.fgmodern-site .fg-editorial-body .fg-service-content .fg-service-intro {
  padding:clamp(22px,3vw,36px)!important;
  margin:0 0 clamp(27px,4vw,44px)!important;
  width:100%; max-width:100%;
  background:#f3f6f1; border-left:5px solid var(--fgmodern-accent,#9bc522);
}
.fgmodern-site .fg-editorial-body .fg-service-content .fg-service-intro p {font-size:clamp(1.02rem,1.3vw,1.14rem);line-height:1.7;}
.fgmodern-site .fg-editorial-body .fg-service-content .fg-service-overview {
  width:100%;min-width:0;max-width:100%;
}
.fgmodern-site .fg-editorial-body .fg-service-content .fg-service-overview>.wp-block-columns {
  grid-template-columns:minmax(0,1.5fr) minmax(235px,.92fr);
  gap:clamp(18px,2.2vw,30px);
}
.fgmodern-site .fg-editorial-body .fg-service-content .fg-service-facts,
.fgmodern-site .fg-editorial-body .fg-service-content .fg-service-features,
.fgmodern-site .fg-editorial-body .fg-service-content .fg-service-cta {max-width:100%;box-sizing:border-box;}
.fgmodern-site .fg-editorial-body .fg-service-content :is(h2,h3) {max-width:100%;overflow-wrap:break-word;line-height:1.22;}
.fgmodern-site .fg-editorial-body .fg-service-content .fg-service-features {padding:clamp(20px,2.3vw,30px);}
/* Archive cards belong to the same centered shell, palette and rhythm. */
.fgmodern-site .fg-editorial-archive .fgmodern-blog-grid {max-width:1180px;padding-top:0;padding-bottom:22px;gap:clamp(18px,2.5vw,28px);}
.fgmodern-site .fg-editorial-archive .fgmodern-blog-card {min-width:0;border-top:4px solid var(--fgmodern-accent,#9bc522);}
.fgmodern-site .fg-editorial-archive .fgmodern-blog-card-body :is(h2,p) {max-width:100%;overflow-wrap:break-word;}
.fgmodern-site .fg-editorial-archive .fgmodern-pagination {max-width:1180px;padding-bottom:12px;}
@media(max-width:1120px){
 .fgmodern-site .fg-editorial--boxed-sidebar .fg-editorial-grid,
 .fgmodern-site .fg-editorial--wide-sidebar .fg-editorial-grid {
   grid-template-columns:minmax(0,1fr); max-width:880px;
 }
 .fgmodern-site .fg-editorial-sidebar {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
 .fgmodern-site .fg-editorial-body .fg-service-content .fg-service-overview>.wp-block-columns {grid-template-columns:minmax(0,1fr);}
}
@media(max-width:900px){
 .fgmodern-site .fg-editorial-main .fg-editorial-grid {grid-template-columns:minmax(0,1fr);}
 .fgmodern-site .fg-editorial-body .fg-service-content .fg-service-overview>.wp-block-columns {grid-template-columns:minmax(0,1fr);}
}
@media(max-width:610px){
 .fgmodern-site .fg-editorial-sidebar {grid-template-columns:minmax(0,1fr);}
 .fgmodern-site .fg-editorial-article .fg-editorial-body {font-size:1rem;}
 .fgmodern-site .fg-editorial-article .fg-editorial-body :is(h1,h2,h3,h4) {hyphens:auto;}
 .fgmodern-site .fg-editorial-body .fg-service-content .fg-service-intro {padding:22px 19px!important;}
 .fgmodern-site .fg-editorial-body .fg-service-content .fg-service-features ul {grid-template-columns:minmax(0,1fr);}
}
/* News/category archives: same optional global sidebar; cards remain an editable
   post collection, not a change to WordPress post or category content. */
.fgmodern-site .fg-editorial-archive .fg-archive-layout-grid {
 display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:clamp(24px,3.5vw,48px);
 align-items:start;max-width:1180px;
}
.fgmodern-site .fg-editorial-archive .fg-archive-main {min-width:0;}
.fgmodern-site .fg-editorial-archive .fg-archive-main .fgmodern-blog-grid {
 width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;
}
.fgmodern-site .fg-editorial-archive.fg-editorial--wide-sidebar .fg-archive-layout-grid {max-width:1320px;}
.fgmodern-site .fg-editorial-archive.fg-editorial--boxed .fg-archive-layout-grid {max-width:1000px;grid-template-columns:minmax(0,1fr);}
.fgmodern-site .fg-editorial-archive.fg-editorial--narrow .fg-archive-layout-grid {max-width:805px;grid-template-columns:minmax(0,1fr);}
.fgmodern-site .fg-editorial-archive.fg-editorial--wide .fg-archive-layout-grid {max-width:1180px;grid-template-columns:minmax(0,1fr);}
.fgmodern-site .fg-editorial-archive:is(.fg-editorial--boxed,.fg-editorial--wide) .fgmodern-blog-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
@media(max-width:1120px){
 .fgmodern-site .fg-editorial-archive .fg-archive-layout-grid,
 .fgmodern-site .fg-editorial-archive.fg-editorial--wide-sidebar .fg-archive-layout-grid {grid-template-columns:minmax(0,1fr);max-width:880px;}
 .fgmodern-site .fg-editorial-archive .fg-archive-main .fgmodern-blog-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:610px){
 .fgmodern-site .fg-editorial-archive .fg-archive-main .fgmodern-blog-grid {grid-template-columns:minmax(0,1fr);}
}
