/*
 * Maudimi V54 - Lifestyle editorial polish
 * Visual pass inspired by warm editorial food/lifestyle references without
 * changing Maudimi's voice, structure or Gutenberg editing model.
 */

:where(body.maudimi-fse-v54, .editor-styles-wrapper) {
  --mdm-v54-ink: #1c130f;
  --mdm-v54-ink-soft: #4f4037;
  --mdm-v54-muted: #7b6658;
  --mdm-v54-cream: #fff8ed;
  --mdm-v54-paper: #fff3df;
  --mdm-v54-paper-2: #f6e4c9;
  --mdm-v54-peach: #f4c5b8;
  --mdm-v54-peach-strong: #df917c;
  --mdm-v54-butter: #f4eca0;
  --mdm-v54-cocoa: #2b1a12;
  --mdm-v54-cocoa-2: #3b281f;
  --mdm-v54-espresso: #100a07;
  --mdm-v54-copper: #a84f3d;
  --mdm-v54-caramel: #d9a351;
  --mdm-v54-gold: #f1ce7c;
  --mdm-v54-line: rgba(92, 62, 40, .22);
  --mdm-v54-line-dark: rgba(241, 206, 124, .22);
  --mdm-v54-shadow: 0 22px 52px rgba(46, 31, 20, .18);
  --mdm-v54-shadow-dark: 0 22px 56px rgba(0, 0, 0, .34);
  --mdm-v54-radius-card: 22px;
  --mdm-v54-radius-media: 18px;
  --mdm-v54-radius-control: 16px;
  --mdm-v54-container: min(1180px, calc(100% - 48px));
  color: var(--mdm-v54-ink);
}

body.maudimi-fse-v54 {
  background: var(--mdm-v54-espresso) !important;
  color: var(--mdm-v54-cream) !important;
}

body.maudimi-fse-v54.maudimi-prefers-light {
  background: linear-gradient(180deg, #fff7e8 0%, #f3dfbf 100%) !important;
  color: var(--mdm-v54-ink) !important;
}

body.maudimi-fse-v54.maudimi-prefers-dark {
  background:
    linear-gradient(180deg, rgba(255, 248, 237, .025), rgba(16, 10, 7, 0) 260px),
    #0d0705 !important;
  color: var(--mdm-v54-cream) !important;
}

.editor-styles-wrapper {
  background: linear-gradient(180deg, #fff8ed 0%, #f6e4c9 100%) !important;
  color: var(--mdm-v54-ink) !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) a {
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) :focus-visible {
  outline: 3px solid var(--mdm-v54-gold) !important;
  outline-offset: 4px !important;
  border-radius: 10px;
}

/* Shared editorial rhythm */
:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.mdm-section, .maudimi-section, .maudimi-section-dark, .maudimi-section-panel) {
  padding-top: clamp(3.5rem, 5rem, 6rem) !important;
  padding-bottom: clamp(3.5rem, 5rem, 6rem) !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.mdm-section, .maudimi-section, .maudimi-section-panel) {
  background: var(--mdm-v54-cream) !important;
  color: var(--mdm-v54-ink) !important;
}

body.maudimi-fse-v54.maudimi-prefers-dark :where(.mdm-section, .maudimi-section, .maudimi-section-panel) {
  background: linear-gradient(180deg, #140c08 0%, #0c0705 100%) !important;
  color: var(--mdm-v54-cream) !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.mdm-dark, .maudimi-section-dark) {
  background:
    linear-gradient(180deg, rgba(244, 197, 184, .05), rgba(241, 206, 124, .025)),
    var(--mdm-v54-espresso) !important;
  color: var(--mdm-v54-cream) !important;
}

body.maudimi-fse-v54.maudimi-prefers-light :where(.mdm-footer, .maudimi-newsletter, .maudimi-single-after-v32) {
  background: var(--mdm-v54-paper) !important;
  color: var(--mdm-v54-ink) !important;
}

/* Header and navigation */
:where(body.maudimi-fse-v54, .editor-styles-wrapper) .mdm-header-v46 {
  width: 100% !important;
  min-height: 0 !important;
  padding: 18px max(24px, 3vw) !important;
  gap: 22px !important;
  border-bottom: 1px solid var(--mdm-v54-line-dark) !important;
  background: rgba(16, 10, 7, .88) !important;
  color: var(--mdm-v54-cream) !important;
  backdrop-filter: blur(18px);
}

body.maudimi-fse-v54.maudimi-prefers-light .mdm-header-v46,
.editor-styles-wrapper .mdm-header-v46 {
  background: rgba(255, 248, 237, .92) !important;
  color: var(--mdm-v54-ink) !important;
  border-bottom-color: rgba(92, 62, 40, .18) !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .mdm-brand-title a,
:where(body.maudimi-fse-v54, .editor-styles-wrapper) .mdm-brand-title {
  color: inherit !important;
  letter-spacing: .12em !important;
  text-decoration: none !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .mdm-brand-baseline {
  max-width: 260px;
  color: rgba(255, 248, 237, .68) !important;
  color: color-mix(in srgb, currentColor 64%, transparent) !important;
  font-size: .82rem !important;
  line-height: 1.2 !important;
}

body.maudimi-fse-v54.maudimi-prefers-light .mdm-brand-baseline,
.editor-styles-wrapper .mdm-brand-baseline {
  color: rgba(28, 19, 15, .6) !important;
  color: color-mix(in srgb, currentColor 64%, transparent) !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .mdm-desktop-nav-v46 {
  gap: 20px !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .mdm-desktop-nav-v46 a {
  color: inherit !important;
  padding: 10px 0 !important;
  border-radius: 0 !important;
  font-size: .9rem !important;
  letter-spacing: .08em !important;
  text-decoration: none !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .mdm-desktop-nav-v46 a:hover {
  color: var(--mdm-v54-gold) !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .mdm-nav-cta-v46 a,
:where(body.maudimi-fse-v54, .editor-styles-wrapper) .mdm-nav-cta-v46 .wp-block-navigation-item__content {
  padding: 13px 18px !important;
  border-radius: var(--mdm-v54-radius-control) !important;
  background: linear-gradient(135deg, var(--mdm-v54-gold), var(--mdm-v54-peach-strong)) !important;
  color: #160d08 !important;
  box-shadow: 0 12px 30px rgba(217, 163, 81, .22) !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .mdm-mode-switch-v46 {
  padding: 4px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(241, 206, 124, .34) !important;
  background: rgba(255, 248, 237, .08) !important;
  gap: 3px !important;
}

body.maudimi-fse-v54.maudimi-prefers-light .mdm-mode-switch-v46,
.editor-styles-wrapper .mdm-mode-switch-v46 {
  background: rgba(255, 248, 237, .72) !important;
  border-color: rgba(92, 62, 40, .2) !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .mdm-mode-switch-v46 button {
  min-height: 0 !important;
  padding: 10px 14px !important;
  border-radius: 14px !important;
  color: inherit !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .mdm-mode-switch-v46 button[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--mdm-v54-gold), var(--mdm-v54-caramel)) !important;
  color: #160d08 !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .mdm-mobile-toggle-v46 {
  min-height: 54px !important;
  padding: 0 20px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, var(--mdm-v54-gold), var(--mdm-v54-caramel)) !important;
  color: #140c08 !important;
  box-shadow: 0 18px 34px rgba(217, 163, 81, .22) !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .mdm-mobile-toggle-v46::before,
:where(body.maudimi-fse-v54, .editor-styles-wrapper) .mdm-mobile-toggle-v46::after {
  content: none !important;
  display: none !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .mdm-mobile-toggle-v46 i {
  width: 25px !important;
}

/* Mobile drawer */
body.maudimi-fse-v54 .mdm-mobile-panel-v46 {
  background: rgba(22, 13, 8, .98) !important;
  color: var(--mdm-v54-cream) !important;
  border-color: rgba(241, 206, 124, .32) !important;
  border-radius: 24px 24px 0 0 !important;
}

body.maudimi-fse-v54.maudimi-prefers-light .mdm-mobile-panel-v46 {
  background: rgba(255, 248, 237, .98) !important;
  color: var(--mdm-v54-ink) !important;
  border-color: rgba(92, 62, 40, .2) !important;
}

body.maudimi-fse-v54 .mdm-mobile-links-v46 a {
  min-height: 86px !important;
  padding: 18px !important;
  border-radius: 18px !important;
  border-color: rgba(241, 206, 124, .24) !important;
  background: rgba(255, 248, 237, .055) !important;
  color: inherit !important;
}

body.maudimi-fse-v54.maudimi-prefers-light .mdm-mobile-links-v46 a {
  background: #fff2dd !important;
  border-color: rgba(92, 62, 40, .18) !important;
}

body.maudimi-fse-v54 .mdm-mobile-links-v46 a::before {
  content: attr(data-icon) !important;
  display: grid !important;
  place-items: center !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  background: rgba(241, 206, 124, .16) !important;
  color: var(--mdm-v54-gold) !important;
  font-family: inherit !important;
  font-size: .85rem !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
}

/* Buttons and click targets */
:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.wp-block-button__link, .wp-block-read-more, .mdm-read-more, .maudimi-card-cta, .maudimi-button-primary-v48, .maudimi-button-secondary-v48, input[type="submit"], button:not([data-maudimi-mode]):not(.mdm-mobile-toggle-v46):not(.mdm-mobile-close-v46)) {
  border-radius: var(--mdm-v54-radius-control) !important;
  min-height: 44px !important;
  padding: 12px 18px !important;
  font-weight: 800 !important;
  letter-spacing: .03em !important;
  text-decoration: none !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.wp-block-button__link, .maudimi-button-primary-v48, input[type="submit"]) {
  background: linear-gradient(135deg, #2e2119, #16100c) !important;
  color: var(--mdm-v54-cream) !important;
  border: 1px solid rgba(255, 248, 237, .16) !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.wp-block-button__link:hover, .maudimi-button-primary-v48:hover, input[type="submit"]:hover) {
  background: linear-gradient(135deg, var(--mdm-v54-copper), var(--mdm-v54-caramel)) !important;
  color: #140c08 !important;
  transform: translateY(-1px);
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.maudimi-button-secondary-v48, .is-style-outline .wp-block-button__link, .mdm-read-more, .wp-block-read-more) {
  background: transparent !important;
  color: var(--mdm-v54-copper) !important;
  border: 1px solid rgba(168, 79, 61, .42) !important;
}

body.maudimi-fse-v54.maudimi-prefers-dark :where(.maudimi-button-secondary-v48, .is-style-outline .wp-block-button__link, .mdm-read-more, .wp-block-read-more) {
  color: var(--mdm-v54-gold) !important;
  border-color: rgba(241, 206, 124, .46) !important;
}

/* Search, newsletter and forms */
:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.wp-block-search, .maudimi-article-search-v53, .maudimi-search-v53) {
  max-width: 980px;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.wp-block-search__inside-wrapper, .maudimi-article-search-v53 form, .maudimi-search-v53 form) {
  min-height: 64px !important;
  padding: 7px !important;
  border-radius: 20px !important;
  background: var(--mdm-v54-peach) !important;
  border: 1px solid rgba(92, 62, 40, .14) !important;
  box-shadow: 0 16px 40px rgba(46, 31, 20, .12) !important;
}

body.maudimi-fse-v54.maudimi-prefers-dark :where(.wp-block-search__inside-wrapper, .maudimi-article-search-v53 form, .maudimi-search-v53 form) {
  background: rgba(255, 248, 237, .08) !important;
  border-color: rgba(241, 206, 124, .25) !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.wp-block-search__input, input[type="search"], input[type="email"], input[type="text"]) {
  min-height: 50px !important;
  border-radius: 15px !important;
  border: 1px solid rgba(92, 62, 40, .18) !important;
  background: rgba(255, 248, 237, .9) !important;
  color: var(--mdm-v54-ink) !important;
  padding: 0 18px !important;
}

body.maudimi-fse-v54.maudimi-prefers-dark :where(.wp-block-search__input, input[type="search"], input[type="email"], input[type="text"]) {
  background: rgba(255, 248, 237, .08) !important;
  color: var(--mdm-v54-cream) !important;
  border-color: rgba(241, 206, 124, .28) !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.wp-block-search__button, .maudimi-article-search-v53 button, .maudimi-search-v53 button) {
  border-radius: 15px !important;
  background: #2d2b29 !important;
  color: #fff8ed !important;
  border: 0 !important;
  padding: 0 22px !important;
  box-shadow: none !important;
}

body.maudimi-fse-v54.maudimi-prefers-light :where(.wp-block-search__button, .maudimi-article-search-v53 button, .maudimi-search-v53 button),
.editor-styles-wrapper :where(.wp-block-search__button, .maudimi-article-search-v53 button, .maudimi-search-v53 button) {
  background: var(--mdm-v54-caramel) !important;
  color: #17100b !important;
}

/* Cards and listings */
:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.wp-block-post-template, .mdm-card-grid, .maudimi-grid, .maudimi-post-grid-v53) {
  gap: 28px !important;
  align-items: stretch !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .wp-block-post-template > .wp-block-post {
  display: flex !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.mdm-card, .maudimi-card-v32, .maudimi-article-card-v53, .wp-block-post-template > .wp-block-post) {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 100%;
  border-radius: var(--mdm-v54-radius-card) !important;
  border: 1px solid var(--mdm-v54-line) !important;
  background: var(--mdm-v54-paper) !important;
  color: var(--mdm-v54-ink) !important;
  box-shadow: var(--mdm-v54-shadow) !important;
}

body.maudimi-fse-v54.maudimi-prefers-dark :where(.mdm-card, .maudimi-card-v32, .maudimi-article-card-v53, .wp-block-post-template > .wp-block-post) {
  border-color: rgba(241, 206, 124, .22) !important;
  background: linear-gradient(180deg, #2a1b12 0%, #140d09 100%) !important;
  color: var(--mdm-v54-cream) !important;
  box-shadow: var(--mdm-v54-shadow-dark) !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.mdm-card, .maudimi-card-v32, .maudimi-article-card-v53) :where(.wp-block-post-featured-image, figure) {
  margin: 0 !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.mdm-card, .maudimi-card-v32, .maudimi-article-card-v53, .wp-block-post-template > .wp-block-post) :where(.wp-block-post-featured-image img, figure img) {
  width: 100% !important;
  height: 250px !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  filter: saturate(1.04) contrast(1.02);
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.mdm-card-body, .maudimi-card-body-v53, .wp-block-post-template > .wp-block-post > .wp-block-group) {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  flex: 1 1 auto !important;
  padding: 28px !important;
  color: inherit !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.mdm-kicker, .maudimi-card-kicker, .wp-block-post-terms) {
  color: var(--mdm-v54-copper) !important;
  font-size: .76rem !important;
  font-weight: 900 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
}

body.maudimi-fse-v54.maudimi-prefers-dark :where(.mdm-kicker, .maudimi-card-kicker, .wp-block-post-terms) {
  color: var(--mdm-v54-gold) !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.mdm-card h2, .mdm-card h3, .maudimi-card-title-v30, .maudimi-card-title-v32, .wp-block-post-title) {
  color: inherit !important;
  font-size: clamp(2rem, 2.35rem, 2.7rem) !important;
  line-height: .98 !important;
  text-wrap: balance;
  margin: 0 !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.mdm-card p, .maudimi-card-v32 p, .wp-block-post-excerpt, .wp-block-post-date) {
  color: rgba(28, 19, 15, .74) !important;
  color: color-mix(in srgb, currentColor 72%, transparent) !important;
  line-height: 1.58 !important;
}

body.maudimi-fse-v54.maudimi-prefers-dark :where(.mdm-card p, .maudimi-card-v32 p, .wp-block-post-excerpt, .wp-block-post-date) {
  color: rgba(255, 248, 237, .76) !important;
  color: color-mix(in srgb, currentColor 72%, transparent) !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.mdm-card .wp-block-read-more, .maudimi-card-v32 .wp-block-read-more, .mdm-read-more) {
  align-self: flex-start !important;
  margin-top: auto !important;
  color: var(--mdm-v54-copper) !important;
}

body.maudimi-fse-v54.maudimi-prefers-dark :where(.mdm-card .wp-block-read-more, .maudimi-card-v32 .wp-block-read-more, .mdm-read-more) {
  color: var(--mdm-v54-gold) !important;
}

/* Home, rubriques and entry tiles */
:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.maudimi-hero-v41, .maudimi-page-hero-v41, .maudimi-scroll-entry-v48) {
  background-color: var(--mdm-v54-espresso) !important;
  color: var(--mdm-v54-cream) !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.maudimi-hero-v41 .wp-block-cover__background, .maudimi-page-hero-v41 .wp-block-cover__background, .maudimi-scroll-entry-v48::before) {
  opacity: .46 !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.maudimi-door-card-v48, .maudimi-path-card-v28, .maudimi-enter-card-v28, .maudimi-interior-rubriques-v48 .wp-block-column) {
  min-height: 240px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(241, 206, 124, .28) !important;
  background: rgba(255, 248, 237, .08) !important;
  color: var(--mdm-v54-cream) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .24) !important;
}

body.maudimi-fse-v54.maudimi-prefers-light :where(.maudimi-door-card-v48, .maudimi-path-card-v28, .maudimi-enter-card-v28, .maudimi-interior-rubriques-v48 .wp-block-column),
.editor-styles-wrapper :where(.maudimi-door-card-v48, .maudimi-path-card-v28, .maudimi-enter-card-v28, .maudimi-interior-rubriques-v48 .wp-block-column) {
  background: #fff2dd !important;
  color: var(--mdm-v54-ink) !important;
  border-color: rgba(92, 62, 40, .18) !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.maudimi-door-card-v48 h2, .maudimi-door-card-v48 h3, .maudimi-path-card-v28 h2, .maudimi-path-card-v28 h3, .maudimi-enter-card-v28 h2, .maudimi-enter-card-v28 h3) {
  color: inherit !important;
  text-wrap: balance;
}

/* Article reading experience */
:where(body.maudimi-fse-v54, .editor-styles-wrapper) .maudimi-single-hero-v32 {
  background:
    linear-gradient(90deg, rgba(43, 26, 18, .94), rgba(43, 26, 18, .62)),
    var(--mdm-v54-espresso) !important;
  color: var(--mdm-v54-cream) !important;
  padding-top: clamp(4rem, 5rem, 6rem) !important;
  padding-bottom: clamp(4rem, 5rem, 6rem) !important;
}

body.maudimi-fse-v54.maudimi-prefers-light .maudimi-single-hero-v32,
.editor-styles-wrapper .maudimi-single-hero-v32 {
  background:
    linear-gradient(90deg, rgba(255, 248, 237, .94), rgba(246, 228, 201, .8)),
    var(--mdm-v54-paper) !important;
  color: var(--mdm-v54-ink) !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .maudimi-single-hero-v32 h1 {
  max-width: 1050px !important;
  color: inherit !important;
  font-size: clamp(4rem, 5.25rem, 6.25rem) !important;
  line-height: .96 !important;
  text-wrap: balance;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .maudimi-single-image-v32 img,
:where(body.maudimi-fse-v54, .editor-styles-wrapper) .wp-block-post-featured-image.maudimi-single-image-v32 img {
  border-radius: 26px !important;
  box-shadow: var(--mdm-v54-shadow-dark) !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .maudimi-single-content-v32 {
  max-width: 860px !important;
  margin-inline: auto !important;
  padding: 0 max(22px, 3vw) 4rem !important;
  color: var(--mdm-v54-cream) !important;
}

body.maudimi-fse-v54.maudimi-prefers-light .maudimi-single-content-v32,
.editor-styles-wrapper .maudimi-single-content-v32 {
  color: var(--mdm-v54-ink) !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .maudimi-single-content-v32 :where(p, li) {
  color: rgba(255, 248, 237, .84) !important;
  color: color-mix(in srgb, currentColor 82%, transparent) !important;
  font-size: 1.08rem !important;
  line-height: 1.82 !important;
}

body.maudimi-fse-v54.maudimi-prefers-light .maudimi-single-content-v32 :where(p, li),
.editor-styles-wrapper .maudimi-single-content-v32 :where(p, li) {
  color: rgba(28, 19, 15, .82) !important;
  color: color-mix(in srgb, currentColor 82%, transparent) !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .maudimi-single-content-v32 :where(h2, h3, h4) {
  color: var(--mdm-v54-gold) !important;
  line-height: 1.08 !important;
  text-wrap: balance;
}

body.maudimi-fse-v54.maudimi-prefers-light .maudimi-single-content-v32 :where(h2, h3, h4),
.editor-styles-wrapper .maudimi-single-content-v32 :where(h2, h3, h4) {
  color: var(--mdm-v54-cocoa) !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .maudimi-single-content-v32 :where(.wp-block-quote, .wp-block-pullquote, .wp-block-group.has-background, .wp-block-list.has-background) {
  border-radius: 22px !important;
  border: 1px solid rgba(168, 79, 61, .18) !important;
  background: var(--mdm-v54-paper) !important;
  color: var(--mdm-v54-ink) !important;
  box-shadow: 0 18px 44px rgba(46, 31, 20, .16) !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .maudimi-single-content-v32 :where(.wp-block-quote, .wp-block-pullquote, .wp-block-group.has-background, .wp-block-list.has-background) * {
  color: inherit !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .maudimi-single-content-v32 :where(.wp-block-quote, .wp-block-pullquote) {
  border-left: 5px solid var(--mdm-v54-copper) !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .maudimi-single-content-v32 :where(ul, ol) {
  padding-left: 1.35em !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .maudimi-single-content-v32 li::marker {
  color: var(--mdm-v54-copper) !important;
}

/* Static pages, archives and footer */
:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.maudimi-page-v26 h1, .mdm-section h1, .maudimi-section h1, .mdm-footer h2) {
  text-wrap: balance;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .mdm-footer-v41 {
  border-top: 1px solid var(--mdm-v54-line-dark) !important;
  background:
    linear-gradient(180deg, #21150f 0%, #100a07 100%) !important;
  color: var(--mdm-v54-cream) !important;
}

body.maudimi-fse-v54.maudimi-prefers-light .mdm-footer-v41,
.editor-styles-wrapper .mdm-footer-v41 {
  background: linear-gradient(180deg, #fff3df 0%, #f2dab5 100%) !important;
  color: var(--mdm-v54-ink) !important;
  border-top-color: rgba(92, 62, 40, .18) !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .mdm-footer-v41 :where(p, li, a) {
  color: rgba(255, 248, 237, .78) !important;
  color: color-mix(in srgb, currentColor 78%, transparent) !important;
}

body.maudimi-fse-v54.maudimi-prefers-light .mdm-footer-v41 :where(p, li, a),
.editor-styles-wrapper .mdm-footer-v41 :where(p, li, a) {
  color: rgba(28, 19, 15, .74) !important;
  color: color-mix(in srgb, currentColor 78%, transparent) !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.maudimi-newsletter, .maudimi-newsletter-box, .mdm-newsletter, .maudimi-newsletter-v53) {
  border-radius: 26px !important;
  border: 1px solid rgba(241, 206, 124, .24) !important;
  background: linear-gradient(135deg, rgba(255, 248, 237, .12), rgba(244, 197, 184, .08)) !important;
  color: inherit !important;
}

body.maudimi-fse-v54.maudimi-prefers-light :where(.maudimi-newsletter, .maudimi-newsletter-box, .mdm-newsletter, .maudimi-newsletter-v53),
.editor-styles-wrapper :where(.maudimi-newsletter, .maudimi-newsletter-box, .mdm-newsletter, .maudimi-newsletter-v53) {
  background: #f4e2c6 !important;
  color: var(--mdm-v54-ink) !important;
  border-color: rgba(92, 62, 40, .16) !important;
}

/* Compact mobile refinement */
@media (max-width: 900px) {
  :where(body.maudimi-fse-v54, .editor-styles-wrapper) .mdm-header-v46 {
    padding: 16px 20px !important;
  }

  :where(body.maudimi-fse-v54, .editor-styles-wrapper) .mdm-brand-baseline,
  :where(body.maudimi-fse-v54, .editor-styles-wrapper) .mdm-desktop-nav-v46,
  :where(body.maudimi-fse-v54, .editor-styles-wrapper) .mdm-header-actions-v46 .mdm-mode-switch-v46:not(.mdm-mode-switch-mobile-v46) {
    display: none !important;
  }

  :where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.mdm-section, .maudimi-section, .maudimi-section-dark, .maudimi-section-panel) {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  :where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.mdm-card, .maudimi-card-v32, .maudimi-article-card-v53, .wp-block-post-template > .wp-block-post) :where(.wp-block-post-featured-image img, figure img) {
    height: 220px !important;
  }

  :where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.mdm-card h2, .mdm-card h3, .maudimi-card-title-v30, .maudimi-card-title-v32, .wp-block-post-title) {
    font-size: clamp(1.8rem, 2rem, 2.2rem) !important;
  }

  :where(body.maudimi-fse-v54, .editor-styles-wrapper) .maudimi-single-hero-v32 h1 {
    font-size: clamp(3rem, 3.4rem, 3.8rem) !important;
  }

  :where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.wp-block-search__inside-wrapper, .maudimi-article-search-v53 form, .maudimi-search-v53 form) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    min-height: 0 !important;
  }

  :where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.wp-block-search__button, .maudimi-article-search-v53 button, .maudimi-search-v53 button) {
    width: 100% !important;
  }
}

@media (max-width: 560px) {
  :where(body.maudimi-fse-v54, .editor-styles-wrapper) {
    --mdm-v54-container: min(100% - 28px, 1180px);
  }

  :where(body.maudimi-fse-v54, .editor-styles-wrapper) .mdm-mobile-toggle-v46 {
    min-height: 50px !important;
    padding: 0 16px !important;
  }

  :where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.mdm-card-body, .maudimi-card-body-v53, .wp-block-post-template > .wp-block-post > .wp-block-group) {
    padding: 22px !important;
  }

  :where(body.maudimi-fse-v54, .editor-styles-wrapper) .maudimi-single-content-v32 {
    padding-inline: 18px !important;
  }

  :where(body.maudimi-fse-v54, .editor-styles-wrapper) .maudimi-single-content-v32 :where(p, li) {
    font-size: 1rem !important;
    line-height: 1.75 !important;
  }
}

/* 3.4.1 install-ready alignment: stable type and equal-height components. */
:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(
  h1, h2, h3, h4, h5, h6,
  .wp-block-heading,
  .wp-block-site-title,
  .wp-block-navigation,
  .maudimi-kicker,
  .mdm-kicker,
  .wp-block-button__link,
  button
) {
  letter-spacing: 0 !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(
  .has-h-1-font-size,
  .maudimi-hero-copy-v41 h1,
  .maudimi-hero-copy-v28 h1,
  .maudimi-page-hero-v41 h1,
  .maudimi-single-hero-v32 h1
) {
  font-size: 5.5rem !important;
  line-height: .98 !important;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.has-h-2-font-size, .maudimi-section h2) {
  font-size: 3.5rem !important;
  line-height: 1.04 !important;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .wp-block-post-template.is-layout-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows: 1fr !important;
  align-items: stretch !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .wp-block-post-template > .wp-block-post,
:where(body.maudimi-fse-v54, .editor-styles-wrapper) .wp-block-post-template > .wp-block-post > .mdm-card,
:where(body.maudimi-fse-v54, .editor-styles-wrapper) .wp-block-post-template > .wp-block-post > .maudimi-card-v32 {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .wp-block-post-template > .wp-block-post > :where(.mdm-card, .maudimi-card-v32) {
  display: flex !important;
  flex-direction: column !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .wp-block-post-template :where(.wp-block-post-featured-image, .wp-block-post-featured-image a) {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) .wp-block-post-template .wp-block-post-featured-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.maudimi-enter-grid-v28, .maudimi-enter-grid-v26, .maudimi-door-grid-v48) {
  display: grid !important;
  grid-auto-rows: 1fr !important;
  align-items: stretch !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.maudimi-path-card-v28, .maudimi-path-card-v26, .maudimi-door-card-v48) {
  height: 100% !important;
  min-width: 0 !important;
}

:where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(
  .wp-block-button__link,
  .wp-block-read-more,
  .mdm-nav-cta-v46 > a,
  .mdm-mobile-toggle-v46,
  .maudimi-filter-row a
) {
  width: fit-content !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  padding: .72rem 1rem !important;
  border-radius: 12px !important;
  white-space: normal !important;
  text-align: center !important;
}

@media (max-width: 1100px) {
  :where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(
    .has-h-1-font-size,
    .maudimi-hero-copy-v41 h1,
    .maudimi-hero-copy-v28 h1,
    .maudimi-page-hero-v41 h1,
    .maudimi-single-hero-v32 h1
  ) {
    font-size: 4.25rem !important;
  }

  :where(body.maudimi-fse-v54, .editor-styles-wrapper) .wp-block-post-template.is-layout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  :where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(
    .has-h-1-font-size,
    .maudimi-hero-copy-v41 h1,
    .maudimi-hero-copy-v28 h1,
    .maudimi-page-hero-v41 h1,
    .maudimi-single-hero-v32 h1
  ) {
    font-size: 2.85rem !important;
    line-height: 1.02 !important;
  }

  :where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.has-h-2-font-size, .maudimi-section h2) {
    font-size: 2.35rem !important;
  }

  :where(body.maudimi-fse-v54, .editor-styles-wrapper) .wp-block-post-template.is-layout-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  :where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.maudimi-enter-grid-v28, .maudimi-enter-grid-v26, .maudimi-door-grid-v48) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  :where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(.maudimi-door-card-v48, .maudimi-path-card-v28, .maudimi-path-card-v26) {
    min-height: 0 !important;
  }
}

@media (max-width: 380px) {
  :where(body.maudimi-fse-v54, .editor-styles-wrapper) :where(
    .has-h-1-font-size,
    .maudimi-hero-copy-v41 h1,
    .maudimi-hero-copy-v28 h1,
    .maudimi-page-hero-v41 h1,
    .maudimi-single-hero-v32 h1
  ) {
    font-size: 2.35rem !important;
  }
}
