/*
 * MerchFuse 1.15.3.0 - Global Paper Theme Hardening
 * Final storefront authority for every public template and WooCommerce state.
 * Corrects legacy light-only surfaces in dark mode and introduces local,
 * flat paper textures in both light and dark modes. No CSS gradients.
 */

:root,
html[data-mf-theme="light"] {
  color-scheme: light;
  --mf-paper-canvas: #f6efe6;
  --mf-paper-canvas-2: #f1e7db;
  --mf-paper-card: #fffdf9;
  --mf-paper-card-2: #faf4ec;
  --mf-paper-card-3: #efe4d7;
  --mf-paper-ink: #1a1511;
  --mf-paper-text: #2b241e;
  --mf-paper-muted: #62574d;
  --mf-paper-line: #c9bbaa;
  --mf-paper-line-strong: #74675b;
  --mf-paper-texture: url("../img/ui/paper-texture-light.webp");
  --mf-surface: var(--mf-paper-canvas);
  --mf-surface-2: var(--mf-paper-card-2);
  --mf-surface-3: var(--mf-paper-card-3);
  --mf-surface-raised: var(--mf-paper-card);
  --mf-bg: var(--mf-paper-canvas);
  --mf-bg-soft: var(--mf-paper-card-2);
  --mf-bg-subtle: var(--mf-paper-card-2);
  --mf-cream: var(--mf-paper-card);
  --mf-white: var(--mf-paper-card);
  --mf-ink: var(--mf-paper-ink);
  --mf-dark: var(--mf-paper-ink);
  --mf-text: var(--mf-paper-text);
  --mf-muted: var(--mf-paper-muted);
  --mf-muted-2: #706358;
  --mf-border: var(--mf-paper-line);
  --mf-border-dk: var(--mf-paper-line-strong);
  --mf-border-strong: var(--mf-paper-line-strong);
  --mf-release-paper: var(--mf-paper-card-2);
  --mf-release-paper-2: var(--mf-paper-card);
  --mf-release-ink: var(--mf-paper-ink);
  --mf-release-muted: var(--mf-paper-muted);
  --mf-release-line: rgba(26,21,17,.20);
  --mf-catnav-soft: var(--mf-paper-card-2);
  --mf-catnav-border: rgba(26,21,17,.20);
  --mf-color-muted: var(--mf-paper-muted);
  --mf-ci-ink: var(--mf-paper-ink);
  --mf-ci-ink-soft: var(--mf-paper-text);
  --mf-ci-paper: var(--mf-paper-card-2);
  --mf-ci-paper-deep: var(--mf-paper-card-3);
  --mf-ci-white: var(--mf-paper-card);
  --mf-ci-muted: var(--mf-paper-muted);
  --mf-ci-line: var(--mf-paper-line);
}

html[data-mf-theme="dark"] {
  color-scheme: dark;
  --mf-paper-canvas: #0c0a08;
  --mf-paper-canvas-2: #100d0b;
  --mf-paper-card: #15120f;
  --mf-paper-card-2: #12100d;
  --mf-paper-card-3: #1b1713;
  --mf-paper-ink: #faf3eb;
  --mf-paper-text: #f2e9df;
  --mf-paper-muted: #cfc1b5;
  --mf-paper-line: #493e35;
  --mf-paper-line-strong: #8e7b6b;
  --mf-paper-texture: url("../img/ui/paper-texture-dark.webp");
  --mf-surface: var(--mf-paper-canvas);
  --mf-surface-2: var(--mf-paper-card-2);
  --mf-surface-3: var(--mf-paper-card-3);
  --mf-surface-raised: var(--mf-paper-card);
  --mf-bg: var(--mf-paper-canvas);
  --mf-bg-soft: var(--mf-paper-card-2);
  --mf-bg-subtle: var(--mf-paper-card-2);
  --mf-cream: var(--mf-paper-card);
  --mf-white: var(--mf-paper-card);
  --mf-ink: var(--mf-paper-ink);
  --mf-dark: var(--mf-paper-ink);
  --mf-dark-hover: #ffffff;
  --mf-text: var(--mf-paper-text);
  --mf-muted: var(--mf-paper-muted);
  --mf-muted-2: #c6b8ac;
  --mf-border: var(--mf-paper-line);
  --mf-border-dk: var(--mf-paper-line-strong);
  --mf-border-strong: var(--mf-paper-line-strong);
  --mf-release-paper: var(--mf-paper-card-2);
  --mf-release-paper-2: var(--mf-paper-card);
  --mf-release-ink: var(--mf-paper-ink);
  --mf-release-muted: var(--mf-paper-muted);
  --mf-release-line: rgba(250,243,235,.22);
  --mf-catnav-soft: var(--mf-paper-card-2);
  --mf-catnav-border: rgba(250,243,235,.22);
  --mf-color-muted: var(--mf-paper-muted);
  --mf-ci-ink: var(--mf-paper-ink);
  --mf-ci-ink-soft: var(--mf-paper-text);
  --mf-ci-paper: var(--mf-paper-card-2);
  --mf-ci-paper-deep: var(--mf-paper-card-3);
  --mf-ci-white: var(--mf-paper-card);
  --mf-ci-muted: var(--mf-paper-muted);
  --mf-ci-line: var(--mf-paper-line);
  --mf-brand-soft: #321815;
  --mf-brand-soft-strong: #421d19;
  --mf-success: #68c487;
  --mf-warning: #f0b968;
  --mf-error: #ff8d84;
}

/* Paper canvas. Header/footer intentionally retain their established black treatment. */
html,
body.mf-site,
body.mf-site .mf-site__main,
body.mf-site :where(.mf-home-canvas,.mf-home-editor,.mf-shop,.mf-archive,.mf-page,.mf-static-page,.mf-search-page,.mf-wishlist,.mf-hub,.mf-guide,.mf-growth-page,.mf-wall,.mf-room-main,.mf-authority-shell,.mf-blog-shell,.mf-product,.mf-product__extras,.woocommerce,.woocommerce-page) {
  background-color: var(--mf-paper-canvas) !important;
  background-image: var(--mf-paper-texture) !important;
  background-repeat: repeat !important;
  background-size: 384px 384px !important;
  color: var(--mf-text) !important;
}

body.mf-site .mf-site__main { min-height: 55vh; }
body.mf-site :where(.mf-container,.mf-container-wide,.mf-container-narrow) { color: inherit; }

/* Default text correction across old bundles. Inverse regions are reset below. */
body.mf-site :where(h1,h2,h3,h4,h5,h6,.entry-title,.page-title,.mf-page__title,.mf-shop-header__title,.mf-hub__title,.mf-guide__title,.mf-wall__title,.mf-room-hero h1,.mf-authority-hero h1,.mf-ci-hero h1) {
  color: var(--mf-ink) !important;
}
body.mf-site :where(p,li,dd,dt,label,legend,summary,figcaption,th,td,.entry-content,.mf-page__content,.mf-static-page,.mf-blog-content,.mf-guide__body) {
  border-color: var(--mf-border);
}
body.mf-site :where(.mf-muted,.mf-page-header__subtitle,.mf-shop-header__description,.mf-hub__lead,.mf-guide__summary,.mf-product-card__meta,.mf-rp-meta,.woocommerce-breadcrumb,.mf-breadcrumbs) {
  color: var(--mf-muted) !important;
}

/* Universal paper surfaces: cards, panels, accordions, forms and content boxes. */
body.mf-site :where(
  .mf-product-card,.mf-rp-card,.mf-wishlist-card,.mf-post,.mf-static-card,.mf-static-panel,
  .mf-ref-trust-card,.mf-trust__item,.mf-shop-confidence__item,.mf-home-confidence__item,
  .mf-cat-chips,.mf-cat-guide,.mf-cat-guide__inner,.mf-cat-faq,.mf-cat-related,
  .mf-cat-faq__item,.mf-cat-related__card,.mf-catalog-discovery,.mf-catalog-discovery__link,
  .mf-guide__related-card,.mf-guide__toc,.mf-guide__faq-item,.mf-guide__shop,.mf-hub__card,
  .mf-hub__glossary-cta,.mf-journal-note,.mf-ci-card,.mf-ci-tool,.mf-ci-calculator,
  .mf-ci-calculator__result,.mf-ci-explainer,.mf-ci-trust-grid,.mf-ci-trust-cta,.mf-ci-home-studio,
  .mf-room-card,.mf-room-form,.mf-room-detail,.mf-room-submit,.mf-authority-card,.mf-authority-method,
  .mf-authority-review-note,.mf-authority-next,.mf-p18-card,.mf-p18-status,.mf-p18-info-grid,
  .mf-wall__projectbar,.mf-wall__stage-panel,.mf-wall__side,.mf-wall__discovery,.mf-wall__faq,
  .mf-wall__gallery-builder,.mf-wall__gallery-item,.mf-wall__curation,.mf-wall__bundle,.mf-wall-card,
  .mf-page__article,.mf-blog-main,.mf-blog-sidebar,.mf-blog-toc,.mf-blog-shop-panel,
  .mf-search-suggestions,.mf-search-empty,.mf-search-recovery-grid,.mf-cart-empty,
  .woocommerce-MyAccount-navigation,.woocommerce-MyAccount-content,.woocommerce-cart-form,
  .cart_totals,.woocommerce-checkout-review-order,.woocommerce-billing-fields,.woocommerce-shipping-fields,
  .mf-checkout-section,.mf-checkout-review__inner,.wc-block-components-panel,.wc-block-components-sidebar,
  .wc-block-components-order-summary,.wc-block-components-totals-wrapper,.wc-block-components-address-card,
  article,aside,details,fieldset,table
) {
  border-color: var(--mf-border) !important;
  background-color: var(--mf-paper-card) !important;
  background-image: var(--mf-paper-texture) !important;
  background-repeat: repeat !important;
  background-size: 384px 384px !important;
  color: var(--mf-text) !important;
  box-shadow: none !important;
}

/* Nested or quieter surfaces. */
body.mf-site :where(
  .mf-product-card__body,.mf-rp-card__body,.mf-ref-hero__copy,.mf-live-hero__content,
  .mf-static-hero__copy,.mf-cat-banner__inner,.mf-filter-panel__head,.mf-filter-actions,
  .mf-filter-option:hover,.mf-filter-group__selected,.mf-pdp-selection,.mf-pdp-trust-summary,
  .mf-pdp-support__item,.mf-print-passport,.mf-education-card,.mf-product-evidence,
  .mf-tabs__panel,.mf-product-accordion__panel,.mf-guide-table th,.mf-guide-table td,
  .mf-wall__toolbar,.mf-wall__project-room,.mf-wall__cat-panel,.mf-wall__recommendations,
  .mf-wall__ai,.mf-wall__cart-rail,.mf-wall__selected,.mf-room-filters,.mf-authority-two,
  .mf-blog-content .mf-brand-box,.mf-blog-content .mf-flags,.mf-blog-content .mf-note,
  .mf-blog-content .mf-poster-entry,.woocommerce-message,.woocommerce-info,.woocommerce-error
) {
  border-color: var(--mf-border) !important;
  background-color: var(--mf-paper-card-2) !important;
  background-image: var(--mf-paper-texture) !important;
  background-repeat: repeat !important;
  background-size: 384px 384px !important;
  color: var(--mf-text) !important;
}

/* Forms and controls must never inherit white-on-white or black-on-black. */
body.mf-site :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea) {
  border-color: var(--mf-border-strong) !important;
  background-color: var(--mf-paper-card) !important;
  background-image: none !important;
  color: var(--mf-text) !important;
  caret-color: var(--mf-brand) !important;
}
body.mf-site :where(input,textarea)::placeholder { color: var(--mf-muted) !important; opacity: 1 !important; }
body.mf-site option { background: var(--mf-paper-card) !important; color: var(--mf-text) !important; }

/* Header and footer remain explicit inverse zones in both modes. */
body.mf-site :where(.mf-header,.mf-announce,.mf-footer,.mf-footer *) { background-image: none !important; }
body.mf-site .mf-header { background-color:#0d0d0d !important; color:#fff !important; }
body.mf-site .mf-footer { background-color:#0d0d0d !important; color:#fff !important; }
body.mf-site .mf-footer :where(.mf-footer-brand,.mf-footer-newsletter,.mf-footer-trust__item,.mf-footer-support,.mf-footer__column,.mf-footer-hero__brand) {
  border-color:#3f3f3f !important; background:#171717 !important; color:#fff !important;
}
body.mf-site .mf-footer :where(h1,h2,h3,h4,h5,h6,strong,a,button,dt) { color:#fff !important; }
body.mf-site .mf-footer :where(p,small,dd) { color:#cfc7c0 !important; }
body.mf-site .mf-footer .mf-footer-primary-link { background:#fff !important; color:#111 !important; }
body.mf-site .mf-footer .mf-footer-primary-link:hover { background:var(--mf-brand) !important; color:#fff !important; }

/* CATEGORY / SHOP - fixes the exact supplied dark-mode failures and all archive variants. */
body.mf-site :where(.mf-shop-header,.mf-shop-toolbar,.mf-catalog-shell,.mf-catalog-results,.mf-cat-guides) {
  background-color: transparent !important; background-image:none !important; color:var(--mf-text) !important;
}
body.mf-site .mf-cat-banner {
  border:1px solid var(--mf-border) !important;
  border-radius:12px !important;
  background-color:var(--mf-paper-card) !important;
  background-image:var(--mf-paper-texture) !important;
  color:var(--mf-text) !important;
}
body.mf-site .mf-cat-banner__media:empty { display:none !important; }
body.mf-site .mf-cat-banner:not(:has(.mf-cat-banner__media img)) .mf-cat-banner__scrim { display:none !important; }
body.mf-site .mf-cat-banner:not(:has(.mf-cat-banner__media img)) .mf-cat-banner__inner { color:var(--mf-text) !important; }
body.mf-site .mf-cat-banner:not(:has(.mf-cat-banner__media img)) :where(.mf-cat-banner__title,.mf-cat-banner__intro,.mf-cat-banner__intro p) { color:var(--mf-text) !important; text-shadow:none !important; }
body.mf-site .mf-cat-banner:has(.mf-cat-banner__media img) { background:#111 !important; color:#fff !important; }
body.mf-site .mf-cat-banner:has(.mf-cat-banner__media img) :where(.mf-cat-banner__title,.mf-cat-banner__intro,.mf-cat-banner__intro p) { color:#fff !important; text-shadow:0 1px 2px rgba(0,0,0,.75) !important; }
body.mf-site .mf-cat-banner__eyebrow { color:var(--mf-brand) !important; }
body.mf-site .mf-cat-banner:has(.mf-cat-banner__media img) .mf-cat-banner__eyebrow { color:#ff9a93 !important; }

body.mf-site :where(.mf-cat-chips__head span,.mf-cat-guide h2,.mf-cat-faq h2,.mf-cat-related h2,.mf-catalog-discovery h2,.mf-guide__related-title) { color:var(--mf-ink) !important; }
body.mf-site :where(.mf-cat-chips__head small,.mf-cat-related__head p,.mf-catalog-discovery p,.mf-cat-guide__content p,.mf-cat-faq__item div,.mf-guide__toc-label) { color:var(--mf-muted) !important; }
body.mf-site :where(.mf-cat-chip,.mf-cat-related__card,.mf-catalog-discovery__link,.mf-guide__related-card) {
  border-color:var(--mf-border) !important; background-color:var(--mf-paper-card-2) !important; color:var(--mf-text) !important;
}
body.mf-site :where(.mf-cat-chip,.mf-cat-related__card,.mf-catalog-discovery__link,.mf-guide__related-card):hover {
  border-color:var(--mf-brand) !important; background-color:var(--mf-brand-soft) !important; color:var(--mf-ink) !important;
}
html[data-mf-theme="dark"] body.mf-site :where(.mf-cat-chip,.mf-cat-related__card,.mf-catalog-discovery__link,.mf-guide__related-card):hover { color:#ffe6e2 !important; }
body.mf-site .mf-cat-faq__item summary { background:var(--mf-paper-card-2) !important; color:var(--mf-ink) !important; }
body.mf-site .mf-cat-faq__item[open] summary { border-bottom:1px solid var(--mf-border) !important; }
body.mf-site .mf-shop-sidebar,
body.mf-site .mf-filter-panel__head,
body.mf-site .mf-filter-actions { background-color:var(--mf-paper-card) !important; color:var(--mf-text) !important; }
body.mf-site :where(.mf-filter-chip,.mf-filter-clear,.mf-filter-option,.mf-shop-toolbar .orderby) { color:var(--mf-text) !important; }
body.mf-site .mf-filter-option input { accent-color:var(--mf-brand) !important; }
body.mf-site .mf-shop-pagination__status { color:var(--mf-muted) !important; }
body.mf-site .mf-shop-pagination__show-more { background:var(--mf-ink) !important; border-color:var(--mf-ink) !important; color:var(--mf-paper-canvas) !important; }
html[data-mf-theme="dark"] body.mf-site .mf-shop-pagination__show-more { color:#17130f !important; }
body.mf-site .mf-shop-pagination__numbers :where(a,span) { color:var(--mf-ink) !important; }

/* Product cards on every archive, search, related rail and Wall Studio. */
body.mf-site :where(.mf-product-card,.mf-rp-card,.mf-wishlist-card) { overflow:hidden; border:1px solid var(--mf-border) !important; border-radius:12px !important; }
body.mf-site :where(.mf-product-card__media,.mf-rp-img-wrap,.mf-wishlist-card__media,.mf-ref-category figure,.mf-categories__media,.mf-live-cat__media) {
  background-color:var(--mf-paper-card-3) !important; background-image:none !important;
}
body.mf-site :where(.mf-product-card__title,.mf-rp-title,.woocommerce-loop-product__title,.mf-product-card__price,.mf-rp-price,.price) { color:var(--mf-ink) !important; }
body.mf-site :where(.mf-product-card__body,.mf-rp-card__body) { background:var(--mf-paper-card) !important; color:var(--mf-text) !important; }

/* HOME PAGE families. */
body.mf-site :where(.mf-ref-hero,.mf-live-hero,.mf-hero,.mf-ref-section,.mf-ref-collections,.mf-ref-rail,.mf-ref-promos,.mf-ref-testimonials,.mf-vintage-section,.mf-social,.mf-categories,.mf-newsletter,.mf-curator,.mf-live-cats,.mf-live-final,.mf-editorial,.mf-section,.mf-best-sellers) {
  border-color:var(--mf-border) !important; color:var(--mf-text) !important;
}
body.mf-site :where(.mf-ref-hero,.mf-live-hero,.mf-hero,.mf-live-final__box,.mf-newsletter__inner,.mf-editorial__content,.mf-ref-promo:not(.mf-ref-promo--dark),.mf-ref-collection__hero) {
  background-color:var(--mf-paper-card) !important; background-image:var(--mf-paper-texture) !important; color:var(--mf-text) !important;
}
body.mf-site :where(.mf-ref-hero h1,.mf-live-hero h1,.mf-hero h1,.mf-live-final h2,.mf-newsletter__headline,.mf-editorial__headline,.mf-section-head__title,.mf-categories__name) { color:var(--mf-ink) !important; }
body.mf-site :where(.mf-ref-hero p,.mf-live-hero p,.mf-hero p,.mf-live-final p,.mf-newsletter__subhead,.mf-editorial__body,.mf-section-head__sub) { color:var(--mf-muted) !important; }
body.mf-site :where(.mf-ref-promo--dark,.mf-ref-promo--dark .mf-ref-promo__content) { background:#111 !important; color:#fff !important; }
body.mf-site .mf-ref-promo--dark :where(h1,h2,h3,p,a) { color:#fff !important; }

/* PRODUCT PAGE and WooCommerce purchase surfaces. */
body.single-product.mf-site :where(.mf-product__layout,.mf-product__summary,.mf-product__extras,.mf-product__description,.mf-product__meta) { background:transparent !important; color:var(--mf-text) !important; }
body.single-product.mf-site :where(.mf-gallery__stage,.mf-gallery__thumb-btn) { border-color:var(--mf-border) !important; background-color:var(--mf-paper-card-2) !important; background-image:none !important; }
body.single-product.mf-site :where(.mf-pdp-format-card,.mf-pdp-size-card,.mf-pdp-size-guide,.mf-pdp-selection,.mf-pdp-trust-summary,.mf-pdp-support__item,.mf-print-passport,.mf-p18-card,.mf-product-evidence,.mf-education-card,.mf-tabs) {
  border-color:var(--mf-border) !important; background-color:var(--mf-paper-card) !important; color:var(--mf-text) !important;
}
body.single-product.mf-site :where(.mf-pdp-format-card,.mf-pdp-size-card):hover,
body.single-product.mf-site :where(.mf-pdp-format-card,.mf-pdp-size-card).is-selected { border-color:var(--mf-brand) !important; background-color:var(--mf-brand-soft) !important; }
body.single-product.mf-site :where(.mf-pdp-format-card strong,.mf-pdp-size-card strong,.mf-pdp-selection strong,.mf-pdp-trust-summary strong,.mf-product__title,.mf-product__price) { color:var(--mf-ink) !important; }
body.single-product.mf-site :where(.mf-pdp-format-card small,.mf-pdp-size-card span,.mf-pdp-size-card small,.mf-pdp-selection span,.mf-pdp-trust-summary span,.mf-product__short-desc) { color:var(--mf-muted) !important; }
body.single-product.mf-site .mf-pdp-wall-cta { background:#111 !important; color:#fff !important; }
body.single-product.mf-site .mf-pdp-wall-cta :where(h2,h3,p,span,strong,a) { color:#fff !important; }
body.single-product.mf-site .mf-pdp-selection.is-ready { background:#e5f2e8 !important; color:#1d5530 !important; }
html[data-mf-theme="dark"] body.single-product.mf-site .mf-pdp-selection.is-ready { background:#183222 !important; color:#bce8ca !important; }
body.single-product.mf-site .mf-pdp-selection.is-error { background:#f8dfdc !important; color:#8d2018 !important; }
html[data-mf-theme="dark"] body.single-product.mf-site .mf-pdp-selection.is-error { background:#421b17 !important; color:#ffc1bb !important; }

/* CONTENT, BLOG, SEARCH, 404, POLICY, ACCOUNT, CART, CHECKOUT. */
body.mf-site :where(.mf-page-header,.mf-page__header,.mf-search-page__header,.mf-blog-hero,.mf-guide__header,.mf-hub__hero) { background:transparent !important; color:var(--mf-text) !important; }
body.mf-site :where(.mf-static-hero,.mf-page__hero,.mf-blog-hero,.mf-room-hero,.mf-authority-hero,.mf-ci-hero) {
  border-color:var(--mf-border) !important; background-color:var(--mf-paper-card-2) !important; background-image:var(--mf-paper-texture) !important; color:var(--mf-text) !important;
}
body.mf-site :where(.mf-static-hero h1,.mf-page__hero h1,.mf-blog-title,.mf-room-hero h1,.mf-authority-hero h1,.mf-ci-hero h1) { color:var(--mf-ink) !important; text-shadow:none !important; }
body.mf-site :where(.mf-static-hero p,.mf-page__hero p,.mf-blog-hero p,.mf-room-hero p,.mf-authority-hero p,.mf-ci-hero p) { color:var(--mf-muted) !important; }
body.mf-site :where(.mf-static-contact-strip,.mf-static-note,.mf-static-faq,.mf-static-timeline div,.mf-size-table-wrap,.mf-account-card,.mf-login-panel,.mf-checkout-main,.mf-checkout-review,.mf-cart-item) {
  border-color:var(--mf-border) !important; background-color:var(--mf-paper-card) !important; color:var(--mf-text) !important;
}
body.mf-site :where(.woocommerce table.shop_table,.woocommerce table.shop_table th,.woocommerce table.shop_table td,.woocommerce form.checkout_coupon,.woocommerce form.login,.woocommerce form.register) { border-color:var(--mf-border) !important; background-color:var(--mf-paper-card) !important; color:var(--mf-text) !important; }
body.mf-site :where(.woocommerce a.remove,.mf-room-remove) { color:var(--mf-brand) !important; }
body.mf-site :where(.woocommerce-message,.woocommerce-info,.woocommerce-error) a { color:var(--mf-brand-link) !important; }

/* Growth, guides, customer rooms, personalization, trust and Wall Studio. */
body.mf-site :where(.mf-hub__card-title,.mf-guide__title,.mf-guide__related-title,.mf-room-card h2,.mf-room-detail h1,.mf-authority-card h2,.mf-p18-card h2,.mf-ci-tool h2,.mf-wall__side h2,.mf-wall__discovery h2) { color:var(--mf-ink) !important; }
body.mf-site :where(.mf-hub__card-desc,.mf-guide__summary,.mf-room-card p,.mf-room-detail p,.mf-authority-card p,.mf-p18-card p,.mf-ci-tool p,.mf-wall__side p,.mf-wall__discovery p) { color:var(--mf-muted) !important; }
body.mf-site :where(.mf-chip,.mf-p18-card summary,.mf-wall__project-actions button,.mf-wall__history button,.mf-wall__curation button,.mf-wall__gallery-actions button) {
  border-color:var(--mf-border-strong) !important; background-color:var(--mf-paper-card) !important; color:var(--mf-ink) !important;
}
body.mf-site :where(.mf-chip,.mf-p18-card summary,.mf-wall__project-actions button,.mf-wall__history button,.mf-wall__curation button,.mf-wall__gallery-actions button):hover { border-color:var(--mf-brand) !important; background:var(--mf-brand-soft) !important; }
body.mf-site .mf-wall__stage { border-color:var(--mf-border) !important; background-color:var(--mf-paper-card-3) !important; background-image:none !important; }
body.mf-site .mf-wall__canvas { background-color:transparent !important; }
body.mf-site :where(.mf-wall__mode-tabs button[aria-pressed="true"],.mf-wall__scene-tabs button[aria-pressed="true"],.mf-wall__curation-modes button[aria-pressed="true"],.mf-wall__progress span.is-complete) { background:var(--mf-brand) !important; border-color:var(--mf-brand) !important; color:#fff !important; }

/* Overlays and mobile drawers. */
body.mf-site :where(.mf-search-overlay__panel,.mf-search-overlay__form,.mf-exit__card,.mf-shop-sidebar,.mf-mobile-nav,.mf-wall__toast,.mf-wall__sticky-buy,.mf-sticky-buy) {
  border-color:var(--mf-border) !important; background-color:var(--mf-paper-card) !important; background-image:var(--mf-paper-texture) !important; color:var(--mf-text) !important;
}
body.mf-site :where(.mf-search-overlay__panel,.mf-exit__card,.mf-shop-sidebar,.mf-mobile-nav,.mf-wall__toast,.mf-wall__sticky-buy,.mf-sticky-buy) :where(h1,h2,h3,h4,strong,a,button,label) { color:var(--mf-ink) !important; }
body.mf-site :where(.mf-filter-backdrop,.mf-exit__backdrop) { background:rgba(15,12,10,.68) !important; background-image:none !important; }

/* CTA hierarchy and white-text guarantee. */
body.mf-site :where(.mf-btn--primary,.single_add_to_cart_button:not(:disabled),.checkout-button,#place_order,.wc-proceed-to-checkout a,.woocommerce-Button,.wc-block-components-button.contained,.mf-newsletter__btn,.mf-footer-newsletter__form button[type="submit"]) {
  border-color:var(--mf-brand) !important; background:var(--mf-brand) !important; color:#fff !important; text-shadow:none !important; box-shadow:none !important;
}
body.mf-site :where(.mf-btn--primary,.single_add_to_cart_button:not(:disabled),.checkout-button,#place_order,.wc-proceed-to-checkout a,.woocommerce-Button,.wc-block-components-button.contained,.mf-newsletter__btn,.mf-footer-newsletter__form button[type="submit"]):hover {
  border-color:var(--mf-brand-hover) !important; background:var(--mf-brand-hover) !important; color:#fff !important;
}
body.mf-site :where(.mf-btn--outline,.mf-btn--secondary,.mf-pdp-buy-now,.button:not(.alt):not(.checkout-button)) {
  border-color:var(--mf-ink) !important; background-color:var(--mf-paper-card) !important; color:var(--mf-ink) !important;
}
body.mf-site :where(.mf-btn--outline,.mf-btn--secondary,.mf-pdp-buy-now,.button:not(.alt):not(.checkout-button)):hover {
  border-color:var(--mf-ink) !important; background:var(--mf-ink) !important; color:var(--mf-paper-canvas) !important;
}
html[data-mf-theme="dark"] body.mf-site :where(.mf-btn--outline,.mf-btn--secondary,.mf-pdp-buy-now,.button:not(.alt):not(.checkout-button)):hover { color:#17130f !important; }

/* Remove legacy decorative gradients from every known UI selector; artwork stays untouched. */
body.mf-site :where(
  .mf-skeleton,.mf-categories__img--placeholder,.mf-editorial__img--placeholder,.mf-live-cat__placeholder,
  .mf-ref-img-placeholder,.mf-ref-promo--dark::after,.mf-menu-feature-card__media,.mf-menu-feature-card__placeholder,
  .mf-trust,.mf-trust__item,.mf-tabs__btn::after,.mf-description__content::after,.mf-footer--premium,
  .mf-footer-newsletter,.mf-footer__column,.mf-footer-hero__brand,.mf-hub__glossary-cta,.mf-journal-note,
  .mf-guide__shop,.mf-p18-gift,.mf-ci-hero,.mf-ci-hero::after,.mf-ci-ruler::before,.mf-ci-wall-preview,
  .mf-ci-wall-preview__art span,.mf-ci-home-studio,.mf-ref-collection__hero,.mf-ref-collection__placeholder,
  .mf-cat-banner__scrim,.mf-wall__frame-swatch--none,.mf-wall__header,.mf-wall-pdp,.mf-wall-pdp__button,
  .mf-static-hero,.mf-blog-shop-panel,.mf-blog-content .mf-brand-box,.mf-blog-content .mf-flags,
  .mf-blog-content .mf-note,.mf-blog-content .mf-poster-entry,.mf-cart-empty
) { background-image:none !important; }
body.mf-site .mf-cat-banner__scrim { background:rgba(0,0,0,.58) !important; }
body.mf-site .mf-ci-ruler::before { background:var(--mf-border-strong) !important; }
body.mf-site .mf-ci-wall-preview__art span { background:var(--mf-brand) !important; }

/* Keep actual paper texture after the no-gradient reset where intended. */
html body.mf-site,
body.mf-site .mf-site__main,
body.mf-site :where(.mf-home-canvas,.mf-home-editor,.mf-shop,.mf-archive,.mf-page,.mf-static-page,.mf-search-page,.mf-wishlist,.mf-hub,.mf-guide,.mf-growth-page,.mf-wall,.mf-room-main,.mf-authority-shell,.mf-blog-shell,.mf-product,.mf-product__extras,.woocommerce,.woocommerce-page) {
  background-image:var(--mf-paper-texture) !important;
}

/* Reduced motion and print remain clean. */
@media (prefers-reduced-motion:reduce) {
  body.mf-site *,body.mf-site *::before,body.mf-site *::after { transition-duration:.01ms !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; }
}
@media print {
  html,html[data-mf-theme="dark"],body.mf-site,body.mf-site .mf-site__main { background:#fff !important; background-image:none !important; color:#111 !important; }
}

/* Inline archive hero used when a category has no dedicated banner image. */
body.mf-site .mf-shop-hero {
  border:1px solid var(--mf-border) !important;
  border-radius:12px !important;
  background-color:var(--mf-paper-card) !important;
  background-image:var(--mf-paper-texture) !important;
  background-repeat:repeat !important;
  background-size:384px 384px !important;
  color:var(--mf-text) !important;
}
body.mf-site .mf-shop-hero :where(.mf-shop-header__title,.mf-shop-hero__copy h1,.mf-shop-hero__copy h2) { color:var(--mf-ink) !important; }
body.mf-site .mf-shop-hero :where(.mf-shop-header__description,.mf-shop-header__description p) { color:var(--mf-muted) !important; }
body.mf-site .mf-shop-hero__eyebrow { color:var(--mf-brand-link) !important; }
body.mf-site .mf-shop-confidence { border-color:var(--mf-border) !important; background:transparent !important; color:var(--mf-text) !important; }
body.mf-site .mf-shop-confidence__item :where(span,strong) { color:var(--mf-text) !important; }

/* ========================================================================
 * Final specificity shield
 * Legacy releases contain several `html body .component { ... !important; }`
 * declarations.  These route-independent rules intentionally use :is()
 * (not :where()) so the paper-mode authority wins on every template.
 * ====================================================================== */
html[data-mf-theme] body.mf-site :is(
  .mf-product-card,.mf-rp-card,.mf-wishlist-card,.mf-post,.mf-static-card,.mf-static-panel,
  .mf-ref-trust-card,.mf-trust__item,.mf-shop-confidence__item,.mf-home-confidence__item,
  .mf-cat-chips,.mf-cat-guide,.mf-cat-guide__inner,.mf-cat-faq,.mf-cat-related,
  .mf-cat-faq__item,.mf-cat-related__card,.mf-catalog-discovery,.mf-catalog-discovery__link,
  .mf-guide__related-card,.mf-guide__toc,.mf-guide__faq-item,.mf-guide__shop,.mf-hub__card,
  .mf-hub__glossary-cta,.mf-journal-note,.mf-ci-card,.mf-ci-tool,.mf-ci-calculator,
  .mf-ci-calculator__result,.mf-ci-explainer,.mf-ci-trust-grid,.mf-ci-trust-cta,.mf-ci-home-studio,
  .mf-room-card,.mf-room-form,.mf-room-detail,.mf-room-submit,.mf-authority-card,.mf-authority-method,
  .mf-authority-review-note,.mf-authority-next,.mf-p18-card,.mf-p18-status,.mf-p18-info-grid,
  .mf-wall__projectbar,.mf-wall__stage-panel,.mf-wall__side,.mf-wall__discovery,.mf-wall__faq,
  .mf-wall__gallery-builder,.mf-wall__gallery-item,.mf-wall__curation,.mf-wall__bundle,.mf-wall-card,
  .mf-page__article,.mf-blog-main,.mf-blog-sidebar,.mf-blog-toc,.mf-blog-shop-panel,
  .mf-search-suggestions,.mf-search-empty,.mf-search-recovery-grid,.mf-cart-empty,
  .woocommerce-MyAccount-navigation,.woocommerce-MyAccount-content,.woocommerce-cart-form,
  .cart_totals,.woocommerce-checkout-review-order,.woocommerce-billing-fields,.woocommerce-shipping-fields,
  .mf-checkout-section,.mf-checkout-review__inner,.wc-block-components-panel,.wc-block-components-sidebar,
  .wc-block-components-order-summary,.wc-block-components-totals-wrapper,.wc-block-components-address-card
) {
  border-color:var(--mf-border) !important;
  background-color:var(--mf-paper-card) !important;
  background-image:var(--mf-paper-texture) !important;
  background-repeat:repeat !important;
  background-size:384px 384px !important;
  color:var(--mf-text) !important;
  box-shadow:none !important;
}

/* Product purchase flow: independent of optional body classes. */
html[data-mf-theme] body.mf-site :is(
  .mf-pdp-format-card,.mf-pdp-size-card,.mf-pdp-size-guide,.mf-pdp-selection,
  .mf-pdp-trust-summary,.mf-pdp-support__item,.mf-print-passport,.mf-product-evidence,
  .mf-education-card,.mf-tabs,.mf-p18-card
) {
  border-color:var(--mf-border) !important;
  background:var(--mf-paper-card) var(--mf-paper-texture) repeat !important;
  color:var(--mf-text) !important;
  box-shadow:none !important;
}
html[data-mf-theme] body.mf-site :is(.mf-pdp-format-card,.mf-pdp-size-card):hover,
html[data-mf-theme] body.mf-site :is(.mf-pdp-format-card,.mf-pdp-size-card).is-selected {
  border-color:var(--mf-brand) !important;
  background:var(--mf-brand-soft) !important;
  color:var(--mf-text) !important;
}
html[data-mf-theme] body.mf-site :is(
  .mf-pdp-format-card strong,.mf-pdp-format-card em,.mf-pdp-format-card__price,
  .mf-pdp-size-card strong,.mf-pdp-size-card em,.mf-pdp-selection strong,
  .mf-pdp-trust-summary strong,.mf-product__title,.mf-product__price
) { color:var(--mf-ink) !important; }
html[data-mf-theme] body.mf-site :is(
  .mf-pdp-format-card small,.mf-pdp-size-card span,.mf-pdp-size-card small,
  .mf-pdp-selection span,.mf-pdp-trust-summary span,.mf-product__short-desc
) { color:var(--mf-muted) !important; }
html[data-mf-theme] body.mf-site .mf-pdp-wall-cta {
  border-color:#111 !important;
  background:#111 !important;
  background-image:none !important;
  color:#fff !important;
}
html[data-mf-theme] body.mf-site .mf-pdp-wall-cta :is(h1,h2,h3,h4,p,small,span,strong,a) { color:#fff !important; }

/* Wall Studio has historically shipped the strongest light-only rules. */
html[data-mf-theme] body.mf-site :is(
  .mf-wall__header,.mf-wall__projectbar,.mf-wall__stage-panel,.mf-wall__toolbar,
  .mf-wall__side,.mf-wall__selected,.mf-wall__gallery-builder,.mf-wall__gallery-item,
  .mf-wall__curation,.mf-wall__discovery,.mf-wall__faq,.mf-wall__bundle,
  .mf-wall__recommendations,.mf-wall__ai,.mf-wall__cart-rail
) {
  border-color:var(--mf-border) !important;
  background:var(--mf-paper-card) var(--mf-paper-texture) repeat !important;
  color:var(--mf-text) !important;
  box-shadow:none !important;
}
html[data-mf-theme] body.mf-site .mf-wall__stage {
  border-color:var(--mf-border) !important;
  background:var(--mf-paper-card-3) !important;
  background-image:none !important;
}
html[data-mf-theme] body.mf-site :is(
  .mf-wall__mode-tabs,.mf-wall__scene-tabs,.mf-wall__layout-options,
  .mf-wall__size-chips,.mf-wall__frames,.mf-wall__filters
) { background:transparent !important; color:var(--mf-text) !important; }
html[data-mf-theme] body.mf-site :is(
  .mf-wall__mode-tabs button,.mf-wall__scene-tabs button,.mf-wall__layout-options button,
  .mf-wall__size-chips button,.mf-wall__toolbar button,.mf-wall__project-actions button,
  .mf-wall__history button,.mf-wall__curation button,.mf-wall__gallery-actions button
) {
  border-color:var(--mf-border-strong) !important;
  background:var(--mf-paper-card-2) !important;
  color:var(--mf-ink) !important;
  box-shadow:none !important;
}
html[data-mf-theme] body.mf-site :is(
  .mf-wall__mode-tabs button[aria-pressed="true"],.mf-wall__scene-tabs button[aria-pressed="true"],
  .mf-wall__layout-options button[aria-pressed="true"],.mf-wall__size-chips button[aria-pressed="true"],
  .mf-wall__curation-modes button[aria-pressed="true"],.mf-wall__progress span.is-complete
) {
  border-color:var(--mf-brand) !important;
  background:var(--mf-brand) !important;
  color:#fff !important;
}

/* Route-wide control correction, including WooCommerce blocks and tools. */
html[data-mf-theme] body.mf-site :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea,
  .select2-selection,.wc-block-components-text-input input,.wc-block-components-combobox-control input
) {
  border-color:var(--mf-border-strong) !important;
  background:var(--mf-paper-card-2) !important;
  background-image:none !important;
  color:var(--mf-text) !important;
  -webkit-text-fill-color:var(--mf-text) !important;
  caret-color:var(--mf-brand) !important;
  box-shadow:none !important;
}
html[data-mf-theme] body.mf-site :is(input,textarea)::placeholder {
  color:var(--mf-muted) !important;
  -webkit-text-fill-color:var(--mf-muted) !important;
  opacity:1 !important;
}

/* Explicit category/content protection matching the supplied failure cases. */
html[data-mf-theme] body.mf-site :is(
  .mf-shop-hero,.mf-shop-confidence,.mf-shop-confidence__item,.mf-cat-chips,
  .mf-cat-guide,.mf-cat-guide__inner,.mf-cat-faq,.mf-cat-faq__item,
  .mf-cat-related,.mf-cat-related__card,.mf-catalog-discovery,.mf-cat-guides,
  .mf-guide__related-card
) {
  border-color:var(--mf-border) !important;
  background:var(--mf-paper-card) var(--mf-paper-texture) repeat !important;
  color:var(--mf-text) !important;
  box-shadow:none !important;
}
html[data-mf-theme] body.mf-site :is(
  .mf-shop-hero h1,.mf-shop-hero h2,.mf-shop-confidence strong,
  .mf-cat-guide h2,.mf-cat-guide h3,.mf-cat-faq h2,.mf-cat-faq h3,
  .mf-cat-related h2,.mf-cat-related h3,.mf-catalog-discovery h2,.mf-cat-guides h2,
  .mf-guide__related-card strong
) { color:var(--mf-ink) !important; }
html[data-mf-theme] body.mf-site :is(
  .mf-shop-hero p,.mf-shop-confidence span,.mf-cat-guide p,.mf-cat-faq p,
  .mf-cat-related p,.mf-catalog-discovery p,.mf-cat-guides p,.mf-guide__related-card span
) { color:var(--mf-muted) !important; }


/* ========================================================================
 * v1.15.3.0 absolute mode authority
 *
 * This layer deliberately uses higher specificity than every historical
 * route bundle (including body.home + !important rules). It protects all
 * text, controls and surfaces while preserving explicit inverse zones.
 * ====================================================================== */

/* Accessible link colour: the established red remains on light paper, while
   dark paper uses a brighter orangish-red so normal text exceeds 4.5:1. */
html[data-mf-theme="light"] { --mf-brand-link:#b92c22; }
html[data-mf-theme="dark"]  { --mf-brand-link:#ff776d; --mf-focus:#ff776d; }

/* Brutal text reset for the complete public canvas. This neutralises legacy
   #111/#050505/#222 declarations that caused black-on-dark headings. */
html[data-mf-theme] body.mf-site .mf-site__main :is(
  h1,h2,h3,h4,h5,h6,p,li,dt,dd,span,strong,small,em,b,i,label,legend,
  summary,figcaption,caption,th,td,blockquote,cite,code,kbd,samp,time,address
) { color:inherit !important; }

html[data-mf-theme] body.mf-site .mf-site__main :is(
  h1,h2,h3,h4,h5,h6,.entry-title,.page-title,.woocommerce-products-header__title,
  .mf-page__title,.mf-shop-header__title,.mf-product__title,.mf-section-head__title,
  .mf-ref-section__head h2,.mf-ref-collection__copy h2,.mf-cat-guide h2,
  .mf-cat-faq h2,.mf-cat-related h2,.mf-catalog-discovery h2,.mf-guide__title,
  .mf-hub__title,.mf-wall__title,.mf-room-hero h1,.mf-authority-hero h1
) { color:var(--mf-ink) !important; }

html[data-mf-theme] body.mf-site .mf-site__main :is(
  .mf-muted,.mf-ref-hero p:not(.mf-ref-eyebrow),.mf-ref-collection__text,
  .mf-ref-section__head p:not(.mf-ref-eyebrow),.mf-product__short-desc,
  .mf-product-card__meta,.mf-rp-meta,.mf-shop-header__description,
  .mf-page-header__subtitle,.mf-guide__summary,.mf-hub__lead,.woocommerce-breadcrumb,
  .mf-breadcrumbs,.description,.woocommerce-product-details__short-description
) { color:var(--mf-muted) !important; }

html[data-mf-theme] body.mf-site .mf-site__main a:not(.mf-btn):not(.button):not(.wp-element-button):not(.added_to_cart) {
  color:var(--mf-brand-link) !important;
}
html[data-mf-theme] body.mf-site .mf-site__main :is(
  .mf-product-card__title a,.mf-rp-title a,.woocommerce-loop-product__title,
  .mf-ref-product-card__title a,.mf-ref-product-card__title,.mf-product__meta a
) { color:var(--mf-ink) !important; }

/* Canvas and every route root: one warm paper system, without white gaps. */
html[data-mf-theme] body.mf-site,
html[data-mf-theme] body.mf-site .mf-site__main,
html[data-mf-theme] body.mf-site :is(
  .mf-home-canvas,.mf-home-editor,.mf-shop,.mf-archive,.mf-product,.mf-product__extras,
  .mf-page,.mf-static-page,.mf-search-page,.mf-wishlist,.mf-hub,.mf-guide,
  .mf-growth-page,.mf-wall,.mf-room-main,.mf-authority-shell,.mf-blog-shell,
  .woocommerce,.woocommerce-page,.site-main,#primary,#main
) {
  background-color:var(--mf-paper-canvas) !important;
  background-image:var(--mf-paper-texture) !important;
  background-repeat:repeat !important;
  background-size:384px 384px !important;
  color:var(--mf-text) !important;
}

/* Homepage reference layout - fixes the exact high-specificity rules visible
   in the supplied dark homepage PDF and keeps all collection modules in mode. */
html[data-mf-theme] body.home.mf-site :is(
  .mf-ref-hero,.mf-ref-section,.mf-ref-collections,.mf-ref-collection,
  .mf-ref-collection__hero,.mf-ref-rail,.mf-ref-promos,.mf-ref-testimonials,
  .mf-ci-home-studio,.mf-home-confidence
) { color:var(--mf-text) !important; border-color:var(--mf-border) !important; }

html[data-mf-theme] body.home.mf-site :is(
  .mf-ref-hero,.mf-ref-collection__hero,.mf-ref-promo:not(.mf-ref-promo--dark),
  .mf-ci-home-studio,.mf-home-confidence__inner,.mf-ref-trust-card
) {
  background-color:var(--mf-paper-card) !important;
  background-image:var(--mf-paper-texture) !important;
  background-repeat:repeat !important;
  background-size:384px 384px !important;
  border-color:var(--mf-border) !important;
  color:var(--mf-text) !important;
  box-shadow:none !important;
}
html[data-mf-theme] body.home.mf-site :is(
  .mf-ref-collections>.mf-ref-section__head h2,.mf-ref-collection__copy h2,
  .mf-ref-section__head h2,.mf-ref-testimonials h2,.mf-home-confidence h2,
  .mf-home-confidence h3,.mf-ci-home-studio h2,.mf-ci-home-tool strong
) { color:var(--mf-ink) !important; }
html[data-mf-theme] body.home.mf-site :is(
  .mf-ref-collections>.mf-ref-section__head p:not(.mf-ref-eyebrow),
  .mf-ref-collection__text,.mf-ref-trust span,.mf-home-confidence p,
  .mf-ci-home-studio__head>p,.mf-ci-home-tool__copy small
) { color:var(--mf-muted) !important; }
html[data-mf-theme] body.home.mf-site .mf-ref-trust strong { color:var(--mf-ink) !important; }
html[data-mf-theme] body.home.mf-site .mf-ref-collection .mf-ref-section__link {
  border:1px solid var(--mf-border-strong) !important;
  background:var(--mf-paper-card-2) !important;
  color:var(--mf-ink) !important;
}
html[data-mf-theme] body.home.mf-site .mf-ref-collection .mf-ref-section__link:is(:hover,:focus-visible) {
  border-color:var(--mf-brand) !important; background:var(--mf-brand) !important; color:#fff !important;
}
html[data-mf-theme] body.home.mf-site :is(.mf-ci-home-tool,.mf-ref-product-card,.mf-product-card) {
  background-color:var(--mf-paper-card-2) !important;
  background-image:var(--mf-paper-texture) !important;
  border-color:var(--mf-border) !important;
  color:var(--mf-text) !important;
}
html[data-mf-theme] body.home.mf-site .mf-ref-collection__media-frame {
  background:var(--mf-paper-card-3) !important;
  border:1px solid var(--mf-border) !important;
  box-shadow:none !important;
}
html[data-mf-theme="dark"] body.home.mf-site .mf-ref-collection__hero,
html[data-mf-theme="dark"] body.home.mf-site .mf-ref-promo:not(.mf-ref-promo--dark),
html[data-mf-theme="dark"] body.home.mf-site .mf-ci-home-tool {
  background-color:var(--mf-paper-card) !important;
  background-image:var(--mf-paper-texture) !important;
  color:var(--mf-text) !important;
}

/* Shop, archive, search and category surfaces. */
html[data-mf-theme] body.mf-site :is(
  .mf-shop-hero,.mf-shop-confidence,.mf-shop-confidence__item,.mf-cat-chips,
  .mf-cat-guide,.mf-cat-guide__inner,.mf-cat-faq,.mf-cat-faq__item,
  .mf-cat-related,.mf-cat-related__card,.mf-catalog-discovery,.mf-catalog-discovery__link,
  .mf-cat-guides,.mf-shop-toolbar,.mf-shop-pagination,.mf-search-suggestions,
  .mf-search-empty,.mf-search-recovery-grid,.mf-filter-panel,.mf-shop-sidebar
) {
  background-color:var(--mf-paper-card) !important;
  background-image:var(--mf-paper-texture) !important;
  background-repeat:repeat !important;
  background-size:384px 384px !important;
  border-color:var(--mf-border) !important;
  color:var(--mf-text) !important;
  box-shadow:none !important;
}
html[data-mf-theme] body.mf-site :is(.mf-cat-faq__item summary,.mf-cat-related__card,.mf-catalog-discovery__link,.mf-cat-chip) {
  background:var(--mf-paper-card-2) !important; border-color:var(--mf-border) !important; color:var(--mf-ink) !important;
}

/* Products, purchase flow, related products and recently viewed. */
html[data-mf-theme] body.single-product.mf-site :is(
  .mf-product__summary,.mf-pdp-format-card,.mf-pdp-size-card,.mf-pdp-size-guide,
  .mf-pdp-selection,.mf-pdp-trust-summary,.mf-pdp-support__item,.mf-print-passport,
  .mf-product-evidence,.mf-education,.mf-education-card,.mf-tabs,.mf-tabs__panel,
  .mf-product-accordion,.mf-product-accordion__panel,.mf-product-description,
  .mf-product__meta,.mf-rp-card,.mf-product-card
) {
  background-color:var(--mf-paper-card) !important;
  background-image:var(--mf-paper-texture) !important;
  background-repeat:repeat !important;
  background-size:384px 384px !important;
  border-color:var(--mf-border) !important;
  color:var(--mf-text) !important;
  box-shadow:none !important;
}
html[data-mf-theme] body.single-product.mf-site :is(.mf-pdp-format-card,.mf-pdp-size-card,.mf-pdp-selection,.mf-product-accordion summary) {
  background-color:var(--mf-paper-card-2) !important; color:var(--mf-text) !important;
}
html[data-mf-theme] body.single-product.mf-site :is(.mf-pdp-format-card,.mf-pdp-size-card).is-selected {
  background:var(--mf-brand-soft) !important; border-color:var(--mf-brand) !important; color:var(--mf-text) !important;
}

/* General content, policies, blog, guides, rooms and authority/tool pages. */
html[data-mf-theme] body.mf-site :is(
  .mf-page__article,.mf-static-card,.mf-static-panel,.mf-blog-main,.mf-blog-sidebar,
  .mf-blog-toc,.mf-blog-shop-panel,.mf-guide__toc,.mf-guide__faq-item,.mf-guide__shop,
  .mf-guide__related-card,.mf-hub__card,.mf-hub__glossary-cta,.mf-room-card,.mf-room-form,
  .mf-room-detail,.mf-room-submit,.mf-authority-card,.mf-authority-method,
  .mf-authority-review-note,.mf-authority-next,.mf-ci-card,.mf-ci-tool,.mf-ci-calculator,
  .mf-ci-calculator__result,.mf-ci-explainer,.mf-ci-trust-grid,.mf-ci-trust-cta,
  .mf-p18-card,.mf-p18-status,.mf-p18-info-grid
) {
  background-color:var(--mf-paper-card) !important;
  background-image:var(--mf-paper-texture) !important;
  background-repeat:repeat !important;
  background-size:384px 384px !important;
  border-color:var(--mf-border) !important;
  color:var(--mf-text) !important;
  box-shadow:none !important;
}

/* Cart, checkout, account and WooCommerce blocks. */
html[data-mf-theme] body.mf-site :is(
  .woocommerce-MyAccount-navigation,.woocommerce-MyAccount-content,.woocommerce-cart-form,
  .cart_totals,.woocommerce-checkout-review-order,.woocommerce-billing-fields,
  .woocommerce-shipping-fields,.mf-checkout-section,.mf-checkout-review__inner,
  .wc-block-components-panel,.wc-block-components-sidebar,.wc-block-components-order-summary,
  .wc-block-components-totals-wrapper,.wc-block-components-address-card,.mf-cart-empty,
  table.shop_table,.woocommerce-form-login,.woocommerce-form-register,.woocommerce-order-details,
  .woocommerce-customer-details
) {
  background-color:var(--mf-paper-card) !important;
  background-image:var(--mf-paper-texture) !important;
  background-repeat:repeat !important;
  background-size:384px 384px !important;
  border-color:var(--mf-border) !important;
  color:var(--mf-text) !important;
  box-shadow:none !important;
}

/* Wall Studio and all interactive tools. */
html[data-mf-theme] body.mf-site :is(
  .mf-wall__header,.mf-wall__projectbar,.mf-wall__stage-panel,.mf-wall__toolbar,
  .mf-wall__side,.mf-wall__selected,.mf-wall__gallery-builder,.mf-wall__gallery-item,
  .mf-wall__curation,.mf-wall__discovery,.mf-wall__faq,.mf-wall__bundle,
  .mf-wall__recommendations,.mf-wall__ai,.mf-wall__cart-rail,.mf-wall-card
) {
  background-color:var(--mf-paper-card) !important;
  background-image:var(--mf-paper-texture) !important;
  background-repeat:repeat !important;
  background-size:384px 384px !important;
  border-color:var(--mf-border) !important;
  color:var(--mf-text) !important;
  box-shadow:none !important;
}

/* Forms and neutral controls: never bright white in dark mode. */
html[data-mf-theme] body.mf-site :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea,
  .select2-selection,.wc-block-components-text-input input,.wc-block-components-combobox-control input
) {
  background:var(--mf-paper-card-2) !important;
  background-image:none !important;
  border-color:var(--mf-border-strong) !important;
  color:var(--mf-text) !important;
  -webkit-text-fill-color:var(--mf-text) !important;
}
html[data-mf-theme] body.mf-site :is(input,textarea)::placeholder {
  color:var(--mf-muted) !important; -webkit-text-fill-color:var(--mf-muted) !important; opacity:1 !important;
}

/* Neutral buttons follow the mode; primary CTAs keep the approved Subscribe red. */
html[data-mf-theme] body.mf-site :is(
  button,.button,.mf-btn,.wp-element-button,input[type="button"],input[type="submit"],
  .mf-pdp-buy-now,.mf-pdp-detail-toggle,.mf-shop-pagination__show-more
) {
  border-color:var(--mf-border-strong) !important;
}
html[data-mf-theme] body.mf-site :is(
  .mf-btn--primary,.button.alt,.checkout-button,.single_add_to_cart_button:not(:disabled),
  input[type="submit"],button[type="submit"]:not(.mf-pdp-buy-now),.wp-element-button.has-background
) {
  background:var(--mf-brand) !important; background-image:none !important;
  border-color:var(--mf-brand) !important; color:#fff !important; -webkit-text-fill-color:#fff !important;
}
html[data-mf-theme] body.mf-site :is(
  .mf-btn--primary,.button.alt,.checkout-button,.single_add_to_cart_button:not(:disabled),
  input[type="submit"],button[type="submit"]:not(.mf-pdp-buy-now)
) :is(span,strong,small,svg) { color:#fff !important; }
html[data-mf-theme] body.mf-site :is(.mf-btn--primary,.button.alt,.checkout-button,.single_add_to_cart_button:not(:disabled),input[type="submit"]):is(:hover,:focus-visible) {
  background:var(--mf-brand-hover) !important; border-color:var(--mf-brand-hover) !important; color:#fff !important;
}
html[data-mf-theme] body.mf-site :is(.mf-btn--outline,.mf-btn--secondary,.mf-pdp-buy-now,.button:not(.alt):not(.checkout-button)) {
  background:var(--mf-paper-card-2) !important; background-image:none !important;
  border-color:var(--mf-border-strong) !important; color:var(--mf-ink) !important;
}

/* Explicit inverse zones. */
html[data-mf-theme] body.mf-site :is(.mf-header,.mf-footer,.mf-ref-promo--dark,.mf-pdp-wall-cta,.mf-inverse,.has-black-background-color) {
  background-color:#0b0b0b !important; background-image:none !important; color:#fff !important;
}
html[data-mf-theme] body.mf-site :is(.mf-header,.mf-footer,.mf-ref-promo--dark,.mf-pdp-wall-cta,.mf-inverse,.has-black-background-color) :is(
  h1,h2,h3,h4,h5,h6,p,li,span,strong,small,a,label,svg
) { color:#fff !important; }

/* PayPal's recognised neutral treatment is intentionally retained. */
html[data-mf-theme] body.mf-site :is(.mf-paypal-slot,.paypal-buttons,.paypal-button,.mf-pdp-paypal) {
  color:#111 !important;
}

/* High-contrast states for disabled/selection controls. */
html[data-mf-theme] body.mf-site :is(button:disabled,.button.disabled,[aria-disabled="true"],.single_add_to_cart_button:disabled) {
  background:var(--mf-paper-card-3) !important; border-color:var(--mf-border-strong) !important;
  color:var(--mf-muted) !important; -webkit-text-fill-color:var(--mf-muted) !important; opacity:1 !important;
}
html[data-mf-theme] body.mf-site :is(:focus-visible) { outline-color:var(--mf-focus) !important; }

/* Footer/header are always stable and are not influenced by the paper texture. */
html[data-mf-theme] body.mf-site :is(.mf-header,.mf-footer,.mf-header *,.mf-footer *) { background-image:none !important; }


/* v1.15.3.0 inverse-zone specificity seal.
   Historical homepage and product rules use body.route + component + heading
   selectors with !important. These selectors intentionally exceed them so an
   inverse card can never inherit dark ink in light mode. */
html[data-mf-theme] body.mf-site.home .mf-site__main .mf-ref-promos .mf-ref-promo.mf-ref-promo--dark,
html[data-mf-theme] body.mf-site.home .mf-site__main .mf-ref-promos .mf-ref-promo.mf-ref-promo--dark .mf-ref-promo__content,
html[data-mf-theme] body.mf-site.single-product .mf-site__main .mf-product .mf-product__summary .mf-pdp-wall-cta {
  background-color:#0b0b0b !important;
  background-image:none !important;
  border-color:#4b423a !important;
  color:#fff !important;
}
html[data-mf-theme] body.mf-site.home .mf-site__main .mf-ref-promos .mf-ref-promo.mf-ref-promo--dark .mf-ref-promo__content :is(h1,h2,h3,h4,h5,h6,p,span,strong,small,a,svg),
html[data-mf-theme] body.mf-site.single-product .mf-site__main .mf-product .mf-product__summary .mf-pdp-wall-cta :is(h1,h2,h3,h4,h5,h6,p,span,strong,small,a,svg) {
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
html[data-mf-theme] body.mf-site.home .mf-site__main .mf-ref-promos .mf-ref-promo.mf-ref-promo--dark .mf-btn--outline {
  background:#0b0b0b !important;
  border-color:#f5eee6 !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
html[data-mf-theme] body.mf-site.home .mf-site__main .mf-ref-promos .mf-ref-promo.mf-ref-promo--dark .mf-btn--outline:is(:hover,:focus-visible) {
  background:#fff !important;
  border-color:#fff !important;
  color:#111 !important;
  -webkit-text-fill-color:#111 !important;
}


/* ==========================================================================
 * 1.15.6.0 FINAL HEADER, MENU AND MODE-SWITCH AUTHORITY
 * The complete navigation remains an inverse black surface in both modes.
 * This prevents legacy page bundles, block styles and plugin CSS from causing
 * white-on-white, dark-on-dark or mixed dropdown colours after a mode switch.
 * ========================================================================== */
html[data-mf-theme] body.mf-site :is(
  .mf-header,.mf-header__inner,.mf-header__brand,.mf-header__nav,.mf-header__tools,
  .mf-mobile-tools,.mf-mobile-nav-head,.mf-mobile-nav-actions,.mf-nav,
  .mf-nav > li,.mf-nav .menu-item,.mf-nav .sub-menu
) {
  background-image:none !important;
}
html[data-mf-theme] body.mf-site .mf-header,
html[data-mf-theme] body.mf-site .mf-header__inner,
html[data-mf-theme] body.mf-site .mf-header__nav,
html[data-mf-theme] body.mf-site .mf-header__tools,
html[data-mf-theme] body.mf-site .mf-mobile-tools {
  background-color:#0d0d0d !important;
  color:#ffffff !important;
  border-color:#353535 !important;
}
html[data-mf-theme] body.mf-site .mf-header :is(
  .mf-logo,.mf-site-logo,.mf-header__brand,.mf-nav > li > a,.mf-nav > li > button,
  .mf-icon-btn,.mf-menu-toggle,.mf-mobile-nav-close,.mf-mobile-nav-head,
  .mf-mobile-nav-head span,.mf-mobile-nav-actions a
) {
  color:#ffffff !important;
}
html[data-mf-theme] body.mf-site .mf-header :is(svg,path,line,circle,polyline,rect) {
  stroke:currentColor !important;
}
html[data-mf-theme] body.mf-site .mf-header .mf-nav > li > a,
html[data-mf-theme] body.mf-site .mf-header .mf-mobile-nav-actions a {
  background-color:transparent !important;
  border-color:transparent !important;
  text-decoration:none !important;
}
html[data-mf-theme] body.mf-site .mf-header .mf-nav > li > a:is(:hover,:focus-visible),
html[data-mf-theme] body.mf-site .mf-header .mf-nav > li.current-menu-item > a,
html[data-mf-theme] body.mf-site .mf-header .mf-nav > li.current-menu-ancestor > a,
html[data-mf-theme] body.mf-site .mf-header .mf-mobile-nav-actions a:is(:hover,:focus-visible) {
  background-color:#242424 !important;
  color:#ffffff !important;
  border-color:#d92b22 !important;
}
html[data-mf-theme] body.mf-site .mf-header .mf-nav .sub-menu {
  background-color:#171717 !important;
  border:1px solid #414141 !important;
  box-shadow:0 16px 36px rgba(0,0,0,.46) !important;
  color:#ffffff !important;
}
html[data-mf-theme] body.mf-site .mf-header .mf-nav .sub-menu :is(li,a,span,strong,small) {
  background-color:transparent !important;
  color:#ffffff !important;
  border-color:#363636 !important;
}
html[data-mf-theme] body.mf-site .mf-header .mf-nav .sub-menu a:is(:hover,:focus-visible),
html[data-mf-theme] body.mf-site .mf-header .mf-nav .sub-menu .current-menu-item > a {
  background-color:#292929 !important;
  color:#ff8a82 !important;
}
html[data-mf-theme] body.mf-site :is(.mf-icon-btn,.mf-theme-toggle,.mf-menu-toggle,.mf-mobile-nav-close) {
  background-color:transparent !important;
  border-color:#4d4d4d !important;
  color:#ffffff !important;
  box-shadow:none !important;
}
html[data-mf-theme] body.mf-site :is(.mf-icon-btn,.mf-theme-toggle,.mf-menu-toggle,.mf-mobile-nav-close):is(:hover,:focus-visible) {
  background-color:#262626 !important;
  border-color:#ff776d !important;
  color:#ffffff !important;
}
html[data-mf-theme] body.mf-site .mf-theme-toggle[aria-pressed="true"] {
  background-color:#2a1715 !important;
  border-color:#ff776d !important;
}
html[data-mf-theme] body.mf-site .mf-cart-count {
  background-color:#d92b22 !important;
  color:#ffffff !important;
  border-color:#0d0d0d !important;
}
html[data-mf-theme] body.mf-site :is(.mf-header__nav.is-open,.mf-header__nav[data-open="true"],.mf-mobile-nav) {
  background-color:#0d0d0d !important;
  background-image:none !important;
  color:#ffffff !important;
  border-color:#3c3c3c !important;
}
html[data-mf-theme] body.mf-site :is(.mf-mobile-nav-head,.mf-mobile-nav-actions) {
  background-color:#171717 !important;
  color:#ffffff !important;
  border-color:#3c3c3c !important;
}
html[data-mf-theme] body.mf-site .mf-announce,
html[data-mf-theme] body.mf-site .mf-announce :is(a,span,p,strong) {
  background-image:none !important;
  color:#ffffff !important;
}

/* Browser-native menus and controls must repaint immediately after switching. */
html[data-mf-theme="light"] body.mf-site { color-scheme:light; }
html[data-mf-theme="dark"] body.mf-site { color-scheme:dark; }
html[data-mf-theme] body.mf-site :is(select,option,optgroup) { color-scheme:inherit; }

/* Blog, comments and WordPress-generated navigation inherit the same tokens. */
html[data-mf-theme] body.mf-site :is(
  .navigation.pagination,.nav-links,.post-navigation,.posts-navigation,.comment-navigation,
  .comment-list,.comment-body,.comment-respond,.comment-form,.wp-block-query-pagination,
  .wp-block-navigation__responsive-container,.wp-block-navigation__submenu-container
) {
  border-color:var(--mf-border) !important;
  color:var(--mf-text) !important;
}
html[data-mf-theme] body.mf-site :is(
  .navigation.pagination,.nav-links,.comment-body,.comment-respond,.comment-form,
  .wp-block-navigation__responsive-container,.wp-block-navigation__submenu-container
) {
  background-color:var(--mf-paper-card) !important;
  background-image:var(--mf-paper-texture) !important;
}
html[data-mf-theme] body.mf-site :is(
  .navigation.pagination,.nav-links,.post-navigation,.posts-navigation,.comment-navigation,
  .comment-list,.comment-body,.comment-respond,.comment-form,.wp-block-query-pagination
) :is(h1,h2,h3,h4,h5,h6,p,li,label,small,strong,span) {
  color:inherit !important;
}
