/* Core repeated templates keep the existing catalogue's visual wrappers. */
.fm-editable-query:not(.fm-brand-products):not(.fm-category-archive):not(.fm-hub) { display: contents; }
.fm-editable-view { display: contents; }
ul.fm-ranked-grid,ul.fm-brand-grid,ul.fm-hub__list { padding: 0; margin-left: 0; margin-right: 0; list-style: none; }
ul.fm-ranked-grid>li,ul.fm-brand-grid>li,ul.fm-brand-section-list>li,ul.fm-hub__list>li { display: contents; }
.fm-brand-section-list { display: contents; list-style: none; padding: 0; margin: 0; }
.fm-brand-card:not(.fm-ranked-card)>.fm-ranked-card__body { display: contents; }
.fm-brand-card__image img { max-width:100%; }
.fm-hub .fm-directory-icon,.fm-terms .fm-directory-icon { width:1.15em; height:1em; flex:none; margin:0; }
.fm-hub .fm-directory-icon img,.fm-terms .fm-directory-icon img { width:100%;height:100%;object-fit:contain; }
.fm-hub .fm-hub__title { gap:10px; }
.fm-hub .fm-hub__title-text { margin:0; font-size:inherit; }
.fm-hub .fm-hub__cross { gap:6px; }
.fm-hub .fm-hub__cross-text { margin:0; }
.fm-hub .fm-hub__desc>p { margin:0; }

.fm-terms .fm-terms__title { display:flex;align-items:center;gap:10px; }
.fm-terms .fm-hub__title-text { margin:0;font-size:inherit; }

/* The Site Editor's root replaces .wp-site-blocks; match the opening overlay band. */
.editor-styles-wrapper:has(.fm-native-home-main) .is-root-container > main.fm-native-home-main > .wpds-custom-featured-hero:first-child {
 padding-top: calc(var(--fm-section) + var(--fm-header-h, 86px)) !important;
}
/* Core editor flow defaults otherwise erase these theme card margins. Inline block spacing wins. */
.editor-styles-wrapper .fm-directory .fm-directory__title { margin-block: .25rem var(--fm-section-sm); }
.editor-styles-wrapper .fm-directory .fm-category-heroes { margin-block-start: 28px; }
.editor-styles-wrapper .fm-directory .fm-category-hero > .fm-category-hero__caption { margin: 0 20px 20px; }
.editor-styles-wrapper .fm-directory .fm-category-heroes__note { margin-block-start: 20px; }
/* Opening header state is part of the home template preview, within its canvas iframe. */
.editor-styles-wrapper:has(.fm-native-home-main) .wp-block-template-part:has(> .fm-header) { position: fixed; left: 0; right: 0; }
.editor-styles-wrapper:has(.fm-native-home-main) .fm-header { background-color: transparent !important; box-shadow: none; }
.editor-styles-wrapper:has(.fm-native-home-main) .fm-header .fm-brand__lockup { display: none; }
.editor-styles-wrapper:has(.fm-native-home-main) .fm-header .fm-brand__lockup-reversed { display: block; }
.editor-styles-wrapper:has(.fm-native-home-main) .fm-header :is(.wp-block-navigation, .wp-block-navigation a, .wc-block-mini-cart__button, .wp-block-navigation__responsive-container-open) { color: var(--wp--preset--color--oat); }
.editor-styles-wrapper:has(.fm-native-home-main) .fm-header .wp-block-navigation__responsive-container.is-menu-open,
.editor-styles-wrapper:has(.fm-native-home-main) .fm-header .wp-block-navigation__responsive-container.is-menu-open a { color: var(--wp--preset--color--theme-2); }
/* An absent saved field has no frontend box; selected editor placeholders retain their text. */
.editor-styles-wrapper .fm-brand-card .wp-block-alkamy-affiliate-frozenmeat-field:empty { display: none; }
/* Preserve the theme opening-band description against the editor term-description default. */
.editor-styles-wrapper .fm-field .fm-posthead-date.wp-block-term-description { color: rgba(244, 236, 223, .8); }
/* Responsive source images must shrink to their allocated card slot after viewport changes. */
.fm-brand-card__image img { min-width: 0; min-height: 0; width: 100%; height: 100%; }
