/* v1.7.1: Independent editorial post/page layout. Always scoped to .fg-editorial-main. */
.fgmodern-site .fg-editorial-main{--fg-editorial-line:#e0e7e5;background:#f4f6f4;padding:clamp(28px,4vw,64px) 0 clamp(52px,6vw,95px);}
.fgmodern-site .fg-editorial-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-article{min-width:0;width:100%;max-width:none;margin:0;background:#fff;border-top:5px solid var(--fgmodern-accent,#9bc522);box-shadow:0 9px 35px rgba(18,30,35,.08);padding:clamp(24px,3.4vw,50px);}
.fgmodern-site .fg-editorial-meta{display:flex;gap:12px;flex-wrap:wrap;align-items:center;font-size:.79rem;font-weight:750;letter-spacing:.065em;text-transform:uppercase;color:#55646a;margin-bottom:25px;}
.fgmodern-site .fg-editorial-meta>*+*:before{content:'•';color:#9bc522;display:inline-block;margin-right:12px;}
.fgmodern-site .fg-editorial-meta a{color:#536b2c;text-decoration:none;}
.fgmodern-site .fg-editorial-hero{margin:0 0 clamp(24px,3vw,42px);max-width:none;overflow:hidden;background:#e1e6e3;}
.fgmodern-site .fg-editorial-hero img{display:block;width:100%;height:auto;aspect-ratio:16/9;max-height:475px;object-fit:cover;}
/* One content constraint for headings, paragraphs, lists, images, embeds, and tables. */
.fgmodern-site .fg-editorial-body{min-width:0;max-width:100%;overflow-wrap:break-word;word-break:normal;font-size:1.065rem;line-height:1.78;}
.fgmodern-site .fg-editorial-body > *{max-width:100%;min-width:0;}
.fgmodern-site .fg-editorial-body :is(h1,h2,h3,h4,h5,h6,p,li,blockquote,figcaption){overflow-wrap:anywhere;hyphens:auto;}
.fgmodern-site .fg-editorial-body :is(h2,h3,h4){max-width:100%;font-size:clamp(1.45rem,2.05vw,2.15rem);line-height:1.24;margin:1.6em 0 .6em;text-transform:none;letter-spacing:-.025em;}
.fgmodern-site .fg-editorial-body h3{font-size:clamp(1.25rem,1.55vw,1.65rem);margin-top:1.3em;}
.fgmodern-site .fg-editorial-body p{max-width:100%;line-height:1.8;margin-block:0 1.35em;}
.fgmodern-site .fg-editorial-body :is(ul,ol){padding-left:1.4em;max-width:100%;}
.fgmodern-site .fg-editorial-body :is(img,video,iframe,svg){max-width:100%;height:auto;}
.fgmodern-site .fg-editorial-body :is(pre,.wp-block-code){max-width:100%;overflow:auto;white-space:pre;}
.fgmodern-site .fg-editorial-body .wp-block-table{overflow-x:auto;max-width:100%;}
.fgmodern-site .fg-editorial-body .wp-block-table table{max-width:100%;}
.fgmodern-site .fg-editorial-body :is(.alignwide,.alignfull){width:100%;max-width:100%;margin-inline:0;}
.fgmodern-site .fg-editorial-body .wp-block-columns{gap:clamp(16px,2.4vw,30px);}
.fgmodern-site .fg-editorial-body .wp-block-column{min-width:0;}
.fgmodern-site .fg-editorial-post-footer{margin-top:38px;border-top:1px solid var(--fg-editorial-line);padding-top:25px;}
.fgmodern-site .fg-editorial-post-footer .nav-links{display:flex;justify-content:space-between;gap:18px;}
.fgmodern-site .fg-editorial-post-footer .nav-links>div{min-width:0;flex:1;}
.fgmodern-site .fg-editorial-post-footer .nav-links a{display:block;color:#1d292d;text-decoration:none;overflow-wrap:anywhere;}
.fgmodern-site .fg-editorial-post-footer .nav-links span{font-size:.72rem;text-transform:uppercase;color:#69787f;letter-spacing:.08em;display:block;}
.fgmodern-site .fg-editorial-sidebar{min-width:0;display:flex;flex-direction:column;gap:20px;}
.fgmodern-site .fg-editorial-widget{padding:26px;background:#fff;border:1px solid var(--fg-editorial-line);border-top:4px solid var(--fgmodern-accent,#9bc522);box-shadow:0 5px 22px rgba(20,36,38,.05);overflow-wrap:anywhere;}
.fgmodern-site .fg-editorial-widget :is(h2,h3,.fg-editorial-widget-title){font-size:1.1rem;line-height:1.3;text-transform:uppercase;margin:0 0 14px;font-weight:850;}
.fgmodern-site .fg-editorial-widget p{color:#3f4f52;line-height:1.7;margin:0 0 17px;}
.fgmodern-site .fg-editorial-widget .fgmodern-button{white-space:normal;display:inline-flex;min-width:0;max-width:100%;font-size:.86rem;}
.fgmodern-site .fg-editorial-widget :is(ul,ol){margin:0;padding-left:1.25em;}
.fgmodern-site .fg-editorial-widget li{line-height:1.5;margin:0 0 12px;}
.fgmodern-site .fg-editorial-widget li a{color:#25353a;}
.fgmodern-site .fg-editorial-widget img{max-width:100%;}
/* Site-wide default can be overridden individually in Gutenberg. */
.fgmodern-site .fg-editorial--boxed .fg-editorial-grid{max-width:880px;grid-template-columns:minmax(0,1fr);}
.fgmodern-site .fg-editorial--narrow .fg-editorial-grid{max-width:805px;grid-template-columns:minmax(0,1fr);}
.fgmodern-site .fg-editorial--narrow{background:#fff;}
.fgmodern-site .fg-editorial--narrow .fg-editorial-article{padding:0;border:0;box-shadow:none;}
.fgmodern-site .fg-editorial--wide .fg-editorial-grid{max-width:1180px;grid-template-columns:minmax(0,1fr);}
.fgmodern-site .fg-editorial--wide-sidebar .fg-editorial-grid{max-width:1320px;grid-template-columns:minmax(0,1fr) 300px;}
.fgmodern-site .fg-editorial-page .fg-editorial-body > :first-child{margin-top:0;}
/* Native Gutenberg service-page structure: editable blocks without custom shortcodes. */
.fgmodern-site .fgmodern-service-detail .fg-service-content{max-width:1180px;margin-inline:auto;}
.fgmodern-site main.fgmodern-standard.fgmodern-service-detail:has(.fg-service-content){padding-top:clamp(38px,5vw,68px);padding-bottom:clamp(56px,6vw,92px);}
.fgmodern-site .fgmodern-service-detail .fg-service-overview > .wp-block-columns{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(255px,.9fr);gap:clamp(20px,3vw,48px);align-items:start;}
.fgmodern-site .fgmodern-service-detail .fg-service-overview > .wp-block-columns > .wp-block-column{flex-basis:auto!important;min-width:0;}
.fgmodern-site .fgmodern-service-detail .fg-service-intro{padding:clamp(27px,3.5vw,46px);border-left:6px solid var(--fgmodern-accent,#9bc522);background:#f3f6f1;margin:0 0 clamp(30px,5vw,64px);}
.fgmodern-site .fgmodern-service-detail .fg-service-intro :is(p){font-size:clamp(1.08rem,1.5vw,1.22rem);line-height:1.7;margin:0;color:#273a3c;max-width:960px;}
.fgmodern-site .fgmodern-service-detail .fg-service-overview{margin:0 0 clamp(34px,5vw,68px);}
.fgmodern-site .fgmodern-service-detail .fg-service-overview > .wp-block-columns{gap:clamp(22px,3vw,54px);}
.fgmodern-site .fgmodern-service-detail .fg-service-overview .wp-block-column{min-width:0;}
.fgmodern-site .fgmodern-service-detail .fg-service-content h2{font-size:clamp(1.62rem,2.3vw,2.55rem);text-transform:uppercase;line-height:1.18;margin:0 0 .8em;overflow-wrap:anywhere;}
.fgmodern-site .fgmodern-service-detail .fg-service-content h3{font-size:clamp(1.15rem,1.5vw,1.4rem);text-transform:uppercase;margin:0 0 .6em;}
.fgmodern-site .fgmodern-service-detail .fg-service-content p{max-width:100%;line-height:1.8;}
.fgmodern-site .fgmodern-service-detail .fg-service-content .fg-service-facts{padding:27px;background:#1c292e;color:#fff;border-top:5px solid var(--fgmodern-accent,#9bc522);}
.fgmodern-site .fgmodern-service-detail .fg-service-content .fg-service-facts :is(h2,h3,p,li){color:#fff;}
.fgmodern-site .fgmodern-service-detail .fg-service-content .fg-service-facts h3{color:#c9e78a;}
.fgmodern-site .fgmodern-service-detail .fg-service-content .fg-service-facts ul{padding-left:1.2em;}
.fgmodern-site .fgmodern-service-detail .fg-service-content .fg-service-facts li{margin-bottom:.6em;}
.fgmodern-site .fgmodern-service-detail .fg-service-content .fg-service-features{padding:clamp(20px,3vw,36px);background:#f5f7f3;margin:0 0 clamp(36px,5vw,66px);}
.fgmodern-site .fgmodern-service-detail .fg-service-content .fg-service-features ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 28px;padding-left:1.2em;}
.fgmodern-site .fgmodern-service-detail .fg-service-content .fg-service-features li{break-inside:avoid;margin:0;}
.fgmodern-site .fgmodern-service-detail .fg-service-content .fg-service-process{margin-bottom:clamp(35px,5vw,62px);}
.fgmodern-site .fgmodern-service-detail .fg-service-content .fg-service-cta{background:#202b30;color:white;padding:clamp(28px,4vw,50px);margin:0;}
.fgmodern-site .fgmodern-service-detail .fg-service-content .fg-service-cta :is(h2,h3,p){color:#fff;}
.fgmodern-site .fgmodern-service-detail .fg-service-content .fg-service-cta p{max-width:820px;}
.fgmodern-site .fgmodern-service-detail .fg-service-content .fg-service-cta .wp-block-button__link{background:var(--fgmodern-accent,#9bc522);color:#151d20;}
@media(max-width:900px){
 .fgmodern-site .fgmodern-service-detail .fg-service-overview > .wp-block-columns{grid-template-columns:minmax(0,1fr);}
 .fgmodern-site .fg-editorial-grid,.fgmodern-site .fg-editorial--wide-sidebar .fg-editorial-grid{grid-template-columns:minmax(0,1fr);max-width:840px;}
 .fgmodern-site .fg-editorial-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;}
}
@media(max-width:610px){
 .fgmodern-site .fg-editorial-main{padding:28px 0 52px;}
 .fgmodern-site .fg-editorial-article{padding:23px 19px;}
 .fgmodern-site .fg-editorial-sidebar{grid-template-columns:minmax(0,1fr);}
 .fgmodern-site .fg-editorial-meta{letter-spacing:0;}
 .fgmodern-site .fg-editorial-body{font-size:1rem;}
 .fgmodern-site .fg-editorial-post-footer .nav-links{flex-direction:column;}
 .fgmodern-site .fgmodern-service-detail .fg-service-content .fg-service-features ul{grid-template-columns:minmax(0,1fr);}
 .fgmodern-site .fgmodern-service-detail .fg-service-intro{padding:23px;}
 .fgmodern-site .fgmodern-service-detail .fg-service-content .fg-service-facts{padding:22px;}
}
