/* 6.9: brands explorer: real content, true full viewport, entrance from left */
.fg68-brand-dialog{position:fixed!important;inset:0!important;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;overscroll-behavior:contain}
.fg68-brand-dialog[open]{animation:none!important;display:block!important}
.fg68-brand-dialog::backdrop{background:rgba(9,12,11,.78)}
.fg68-brand-modal-body{height:100%;width:100%!important;max-width:none!important;box-sizing:border-box;display:flex;flex-direction:column;background:#f7f5f1}
.fg68-brand-dialog[open] .fg68-brand-modal-body{animation:fg69-come-from-left .37s cubic-bezier(.2,.77,.18,1) both}
@keyframes fg69-come-from-left{from{transform:translate3d(-100%,0,0)}to{transform:translate3d(0,0,0)}}
.fg68-drawer-head{min-height:102px;flex-shrink:0}
.fg69-brand-drawer-content{flex:1;min-height:0;overflow:auto;padding:clamp(18px,3vw,42px) max(18px,calc((100vw - 1350px)/2));overscroll-behavior:contain}
.fg69-drawer-intro{max-width:72ch;color:#62655f;line-height:1.7;margin:0 0 23px}
.fg69-brand-directory{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;width:100%}
.fg69-brand-item{display:flex;flex-direction:column;min-width:0;min-height:212px;background:#fff;border:1px solid #e7e1d6;padding:18px;color:#232923!important;text-decoration:none!important;gap:9px;transition:border-color .15s,transform .15s}
.fg69-brand-item:hover{border-color:#ac855a;transform:translateY(-2px)}
.fg69-brand-item:focus-visible{outline:3px solid #a87846;outline-offset:3px}
.fg69-brand-image{height:77px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:transparent}
.fg69-brand-image img{display:block;max-width:100%;max-height:72px;width:auto;height:auto;object-fit:contain;mix-blend-mode:normal}
.fg69-brand-name{font-size:15px;font-weight:700;line-height:1.28}
.fg69-brand-initials{font-size:15px;font-weight:700;text-align:center}
.fg69-brand-desc{font-size:12px;color:#73746f;line-height:1.42;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.fg69-brand-arrow{font-size:11px;color:#9a6e43;font-weight:700;margin-top:auto}
.fg69-empty{padding:40px;text-align:center;color:#62655f}
.fg69-brand-archive{padding-bottom:80px}
@media(max-width:1120px){.fg69-brand-directory{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:770px){.fg69-brand-directory{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.fg69-brand-item{min-height:180px;padding:12px}.fg69-brand-image{height:60px}.fg69-brand-image img{max-height:55px}.fg68-drawer-head{min-height:78px}.fg68-drawer-titles span{font-size:9px}.fg68-drawer-titles h2{font-size:clamp(17px,4vw,24px)!important}.fg68-drawer-close{padding:10px 12px}.fg68-drawer-foot{padding:9px 18px}}
@media(max-width:390px){.fg69-brand-item{min-height:156px}.fg69-brand-desc{display:none}}
/* Mobile portrait: action buttons fit the real viewport, never overflow or break the layout. */
@media(max-width:767px), (max-width:1024px) and (orientation:portrait){
 #main{min-width:0}
 #main .fgc-detail-summary,#main .fgc-detail-summary>*{max-width:100%;min-width:0;box-sizing:border-box}
 #main .fgc-detail-summary .fgc-action,#main a.fgc-action,
 #main a.button,#main button.button,#main .wp-block-button__link,
 #main .fgc-assist a.button,#main .fgc-home-actions a,
 #main a[class*="-cta"],#main a[class*="_cta"],
 #main button[type="submit"],#main input[type="submit"],
 footer a.button{max-width:100%;width:100%;box-sizing:border-box;min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:center;justify-content:center;line-height:1.4}
 #main .fgc-home-actions,#main .fgc-detail-summary .fgc-action{display:flex;flex-direction:column;align-items:stretch}
 #main .fgc-action{padding:15px 16px}
 #main .wp-block-buttons{width:100%}
 #main .wp-block-button{max-width:100%;width:100%}
}
@media(prefers-reduced-motion:reduce){.fg68-brand-dialog[open] .fg68-brand-modal-body{animation:none}.fg69-brand-item{transition:none}}
/* Editable, published-only Fireplace Models archive */
.fg69-models-intro{position:relative;isolation:isolate;padding:clamp(26px,6vw,76px) clamp(22px,5vw,70px);margin:28px 0 60px;background:#efede7;min-height:210px;display:flex;flex-direction:column;justify-content:center}
.fg69-models-intro.has-cover{background:#222a25;color:white;min-height:310px}
.fg69-models-intro.has-cover:before{content:"";position:absolute;inset:0;z-index:-2;background:var(--fg69-cover) center / cover no-repeat}
.fg69-models-intro.has-cover:after{content:"";position:absolute;inset:0;z-index:-1;background:rgba(12,16,14,.56)}
.fg69-models-intro h1{margin:12px 0;font-size:clamp(32px,4.4vw,54px);line-height:1.1}
.fg69-models-intro.has-cover h1,.fg69-models-intro.has-cover .fgc-eyebrow{color:white}
.fg69-archive-intro{max-width:78ch;line-height:1.7;font-size:clamp(14px,1.15vw,17px)}
.fg69-category-section h2,.fg69-featured-models h2{font-size:clamp(25px,3vw,38px);font-weight:500;margin-bottom:24px}
.fg69-category-section{margin-bottom:80px}
.fg69-category-grid .fgc-category-card{min-height:360px}
.fg69-category-grid .fgc-category-card>img,.fg69-category-grid .fgc-category-fallback{height:360px}
.fg69-category-grid .fgc-category-card h3{font-size:clamp(21px,2.5vw,29px);margin:0;color:white}
.fg69-featured-models{margin:75px 0}
.fg69-archive-cta{padding:clamp(22px,5vw,56px);margin:65px 0;display:flex;align-items:center;justify-content:space-between;gap:25px;background:#242925;color:white}
.fg69-archive-cta>div{max-width:70ch;font-size:16px;line-height:1.65}.fg69-archive-cta .fgc-action{margin:0;flex-shrink:0}
@media(max-width:767px){.fg69-models-intro{margin:12px 0 35px;padding:25px 20px}.fg69-category-section{margin-bottom:42px}.fg69-archive-cta{display:flex;flex-direction:column;align-items:stretch;margin:40px 0}.fg69-models-intro.has-cover{min-height:280px}}
/* Legacy and newer CTA systems all share one responsive width policy. */
@media(max-width:767px), (max-width:1024px) and (orientation:portrait){
 #main .actions,#main .fg55-hero-actions,#main .fg60-hero-actions,#main .fg67-hero-actions,#main .fgc-home-actions{display:flex;flex-direction:column;align-items:stretch;gap:9px;width:100%}
 #main .actions>a,#main .fg55-hero-actions>a,#main .fg55-primary,#main .fg55-hero-secondary,
 #main .fg60-primary,#main .fg60-secondary,#main .fg66-button,#main .fg4-consult-button,
 #main .fg57-section-end a,#main .fg67-hero-actions a,#main .fg67-cta a,
 #main .fg55-brand-cta a,#main a[class*="-primary"],#main a[class*="-secondary"]{
  display:inline-flex;align-items:center;justify-content:center;text-align:center;
  width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow-wrap:anywhere;
  white-space:normal;line-height:1.4;padding-inline:clamp(12px,3vw,24px)
 }
 #main .fgc-detail-summary>.fgc-action{width:100%!important;display:flex!important}
}
