/*
Theme Name: Maison Tóukkani
Theme URI: https://toukani.vercel.app
Author: Maison Tóukkani
Description: Maison de design marocaine — thème WordPress éditable en blocs avec styles pour Elementor.
Version: 1.0.126
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: maison-toukkani
*/

.backToTop {
  position: fixed;
  right: clamp(16px,3vw,42px);
  bottom: max(clamp(16px,3vw,34px),var(--back-to-top-clearance,0px));
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 999px;
  background: var(--wp--preset--color--paper);
  color: var(--wp--preset--color--ink);
  box-shadow: 0 12px 32px rgba(24,21,18,.12);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease,transform .25s ease,background-color .2s ease;
}
.backToTop.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.backToTop:hover,.backToTop:focus-visible { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--paper); }
.backToTop > span:first-child { font-size: 16px; line-height: 1; }
@media (max-width:620px) { .backToTop { right:12px; bottom:max(12px,var(--back-to-top-clearance,0px)); font-size:10px; } }
@media (prefers-reduced-motion:reduce) { .backToTop { transition:none; } }

.mt-consent-banner {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 18px;
  z-index: 1000;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: min(calc(100vw - 36px), 1180px);
  max-width: none;
  padding: 14px 18px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .2);
  background: color-mix(in srgb, var(--wp--preset--color--deep) 96%, transparent);
  color: var(--wp--preset--color--paper);
  font-size: 15px;
  line-height: 1.58;
  letter-spacing: .03px;
  box-shadow: 0 18px 55px rgba(24, 21, 18, .2);
  backdrop-filter: blur(18px);
}
.mt-consent-banner[hidden] { display: none !important; }
.mt-consent-banner .consentMessage { min-width: 0; }
.mt-consent-banner .consentMessage strong { font-family: var(--wp--preset--font-family--display, Georgia, serif); font-size: 17px; font-weight: 400; line-height: 1.1; }
.mt-consent-banner .consentMessage p { max-width: 64ch; margin: 4px 0 0; color: #c9c1b9; font-size: 11px; line-height: 1.42; }
.mt-consent-banner .consentActions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.mt-consent-banner .consentButton { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 9px 12px; border: 1px solid rgba(255,255,255,.5); border-radius: 0; background: transparent; color: var(--wp--preset--color--paper); font: 500 9px/1.2 var(--wp--preset--font-family--ui, Arial, sans-serif); letter-spacing: .06em; text-align: center; text-transform: uppercase; cursor: pointer; }
.mt-consent-banner .consentButton:hover,
.mt-consent-banner .consentButton:focus-visible { background: rgba(255,255,255,.12); color: var(--wp--preset--color--paper); }
.mt-consent-banner .consentButton:focus-visible { outline: 2px solid var(--wp--preset--color--paper); outline-offset: 3px; }
.mt-consent-banner .consentButtonPrimary { border-color: var(--wp--preset--color--paper); background: var(--wp--preset--color--paper); color: var(--wp--preset--color--ink); }
.mt-consent-banner .consentButtonPrimary:hover,
.mt-consent-banner .consentButtonPrimary:focus-visible { background: #e9e3da; color: var(--wp--preset--color--ink); }
.mt-consent-banner .consentPanel { display: grid; grid-column: 1 / -1; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.2); font-size: 12px; }
.mt-consent-banner .consentPanel[hidden] { display: none; }
.mt-consent-banner .consentPanel label { display: flex; align-items: center; gap: 9px; }
.mt-consent-banner .consentPanel input[type="checkbox"] { accent-color: var(--wp--preset--color--clay); }
@media (max-width: 620px) {
  .mt-consent-banner { left: 8px; right: 8px; bottom: 8px; grid-template-columns: minmax(0, 1fr); gap: 9px; width: auto; padding: 11px 12px; transform: none; }
  .mt-consent-banner .consentMessage strong { font-size: 16px; }
  .mt-consent-banner .consentMessage p { font-size: 10px; }
  .mt-consent-banner .consentActions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .mt-consent-banner .consentButton { width: 100%; min-width: 0; min-height: 44px; padding: 8px 5px; font-size: 8px; white-space: normal; }
  .mt-consent-banner .consentPanel { gap: 8px; padding-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { .mt-consent-banner .consentButton { transition: none; } }

:root,
.editor-styles-wrapper {
  --mt-ink: var(--wp--preset--color--ink);
  --mt-deep: var(--wp--preset--color--deep);
  --mt-ivory: var(--wp--preset--color--ivory);
  --mt-paper: var(--wp--preset--color--paper);
  --mt-sand: var(--wp--preset--color--sand);
  --mt-clay: var(--wp--preset--color--clay);
  --mt-line: var(--wp--preset--color--line);
}

body {
  margin: 0;
  text-rendering: optimizeLegibility;
}

:where(.wp-site-blocks > *) { margin-block-start: 0; }

:where(.mt-shell) { width: min(100% - 10vw, var(--wp--style--global--wide-size)); margin-inline: auto; }
:where(.mt-quiet-border) { border-block: 1px solid var(--mt-line); }
:where(.mt-dark) { background: var(--mt-deep); color: var(--mt-paper); }
:where(.mt-sand) { background: var(--mt-sand); }

:where(.wp-block-navigation a) { text-decoration: none; }
:where(.wp-block-button__link) { border-radius: 0; }
:where(.wp-block-image img) { display: block; }

/* Low-specificity defaults keep the block and Global Styles controls in charge. */
:where(.mt-header, .mt-footer) a { color: inherit; }
:where(.mt-header) { gap: 1.5rem; }
:where(.mt-brand) { flex-shrink: 0; }
.mt-header-controls { gap: 1rem; }
.mt-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container { flex-wrap: nowrap; gap: .75rem; }
.mt-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content { white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.mt-language-switcher { display: flex; gap: .25rem; align-items: center; }
.mt-language-switcher a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 36px; font-size: .75rem; color: inherit; text-decoration: none; }
.mt-language-switcher a[aria-current] { text-decoration: underline; text-underline-offset: .4em; }
.mt-header .wp-block-navigation__responsive-container-open,
.mt-header .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.mt-header .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem 6vw 3rem; }
.mt-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 4rem; align-items: flex-start; }
.mt-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start; gap: 1.4rem; width: 100%; }
.mt-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { min-height: 44px; display: inline-flex; align-items: center; font-size: .95rem; }
/* Match the Vercel shell: a full editorial nav on wide screens, compact menu below. */
@media (min-width: 1100px) {
  .mt-header { flex-wrap: nowrap; gap: clamp(18px, 2vw, 32px); }
  .mt-header .wp-block-navigation { flex: 1 1 auto; justify-content: center; min-width: 0; }
  .mt-header .wp-block-navigation__responsive-container:not(.is-menu-open) { position: static; display: block; width: auto; height: auto; overflow: visible; visibility: visible; background: transparent; color: inherit; }
  .mt-header .wp-block-navigation__responsive-dialog { width: auto; }
  .mt-header .wp-block-navigation__responsive-container-content { padding: 0; }
  .mt-header .wp-block-navigation__container { flex-wrap: nowrap; justify-content: center; gap: clamp(10px, 1.25vw, 20px); }
  .mt-header .wp-block-navigation__responsive-container-open { display: none; }
  .mt-header .wp-block-navigation-item__content { padding: 0; font-size: 9px; letter-spacing: .1em; }
}
/* Match the measured Vercel desktop nav metrics; the more-specific base
   responsive rules above otherwise keep Elementor/WordPress defaults winning. */
@media (min-width: 1280px) {
  body.maison-toukkani .mt-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container { gap: 1.7vw; }
  body.maison-toukkani .mt-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
    font-size: 9px; font-weight: 500; letter-spacing: 1.53px; line-height: 1.2;
  }
  body.maison-toukkani .mt-header .mt-header-controls > .wp-block-navigation { margin-right: 12px; }
  body.maison-toukkani .mt-header .mt-language-switcher a { box-sizing: border-box; width: 32px; min-width: 32px; padding-inline: 0; }
  body.maison-toukkani .mt-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-icon {
    box-sizing: border-box; flex: 0 0 10.5px; width: 10.5px; height: 12px;
    margin: 0 0 0 7px; padding: 0; font-size: 0;
  }
  body.maison-toukkani .mt-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-icon svg { display: none; }
  body.maison-toukkani .mt-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-icon::before {
    content: "+"; display: grid; place-items: center; width: 10.5px; height: 12px;
    font: 500 12px/1 "Segoe UI", Aptos, Arial, sans-serif;
  }
  body.maison-toukkani .mt-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-icon[aria-expanded="true"]::before { content: "−"; }
}
body.maison-toukkani .mt-brand .wp-block-site-logo:has(img) + .wp-block-site-title { display: none; }
.mt-brand .wp-block-site-logo a { display: inline-flex; align-items: center; min-height: 44px; }
.mt-brand .wp-block-site-logo img { width: min(208px, 40vw); height: auto; }
:where(.mt-editorial-main) { padding: clamp(2rem, 5vw, 5rem) 5vw; }
:where(.mt-editorial-main .wp-block-post-title) { font-size: clamp(2.5rem, 6vw, 5.5rem); }
:where(.mt-editorial-main > .wp-block-post-featured-image) { max-width: 960px; margin-inline: auto; }
:where(.mt-editorial-main > .wp-block-post-featured-image img) { max-height: 75svh; width: 100%; object-fit: contain; }
.mt-piece-intro { gap: clamp(2rem, 4vw, 4rem); align-items: start; margin-block-end: clamp(2rem, 5vw, 4rem); }
.mt-piece-intro > * { min-width: 0; }
.mt-piece-summary > p { max-width: 45ch; line-height: 1.65; }
/* Override Core's important auto-margins only for the product introduction. */
.mt-piece-intro .mt-piece-summary > p { margin-inline: 0 !important; }
.mt-product-prices { margin-block-start: 2rem; }
.mt-product-prices table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.mt-product-prices caption { text-align: left; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; margin-block-end: 1rem; }
.mt-product-prices th, .mt-product-prices td { padding: .75rem 0; border-block-end: 1px solid var(--mt-line); text-align: left; font-weight: 400; }
.mt-product-prices td { text-align: right; white-space: nowrap; }
.mt-product-prices small { display: block; opacity: .7; }
.mt-product-prices > p { font-size: .8rem; line-height: 1.5; }
.mt-product-configurator { display: grid; gap: .8rem; max-width: 38rem; margin-block-start: 2rem; }
.mt-product-configurator > label, .mt-variant-summary > p:first-child, .mt-variant-summary > p:last-child { margin: 0; }
.mt-product-configurator > label, .mt-variant-summary > p:last-child { font-size: .66rem; letter-spacing: .09em; text-transform: uppercase; }
.mt-product-configurator select { width: 100%; min-height: 3.5rem; padding: .75rem 2.8rem .75rem 1rem; border: 1px solid var(--mt-line); border-radius: 0; background: #fffdfa; color: inherit; font: inherit; cursor: pointer; }
.mt-product-configurator select:focus-visible, .mt-variant-request:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.mt-variant-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem 1.25rem; padding-block: .95rem; border-block: 1px solid var(--mt-line); }
.mt-variant-summary > p { display: grid; gap: .35rem; font-size: .7rem; }
.mt-variant-summary strong { font-family: var(--wp--preset--font-family--display); font-size: 1.2rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.mt-variant-note { max-width: 58ch; margin: 0; font-size: .78rem; line-height: 1.55; opacity: .76; }
.mt-variant-request { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; width: fit-content; min-height: 3.1rem; padding: .8rem 1.1rem; background: #211c19; color: #fff !important; text-decoration: none; }
.mt-variant-request:hover { background: #43372f; }
/* Progressive enhancement: the editor and no-JS visitor keep a native gallery. */
.mt-product-viewer { position: relative; background: var(--mt-sand); }
.mt-product-viewer .mt-product-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 0; margin: 0; width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mt-product-viewer .mt-product-gallery::-webkit-scrollbar { display: none; }
.mt-product-viewer .mt-product-gallery.has-nested-images > figure.wp-block-image { width: 100% !important; height: auto; aspect-ratio: 1; max-height: min(72svh, 760px); margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.mt-product-viewer .mt-product-gallery.has-nested-images > figure.wp-block-image img { width: 100%; height: 100% !important; object-fit: contain !important; }
.mt-product-controls { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: clamp(10px, 1.5vw, 22px); pointer-events: none; }
.mt-product-controls button { pointer-events: auto; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgb(67 52 39 / 22%); border-radius: 50%; background: rgb(251 249 245 / 94%); color: #231d18; font-size: 23px; line-height: 1; cursor: pointer; }
.mt-product-controls button:hover { background: #fff; border-color: #231d18; }
.mt-product-controls button:focus-visible, .mt-product-gallery:focus-visible { outline: 2px solid #231d18; outline-offset: 3px; }
@media (max-width: 620px) {
  .mt-product-viewer .mt-product-gallery.has-nested-images > figure.wp-block-image { height: min(112vw, max(180px, calc(100svh - 160px))); min-height: 0; max-height: 560px; }
}
.mt-piece-intro :where(.wp-block-post-featured-image img) { max-height: 75svh; width: 100%; height: auto; object-fit: contain; }
:where(.mt-piece-intro .wp-block-post-title) { font-size: clamp(2.8rem, 6vw, 5.5rem); }
:where(.mt-piece-intro .wp-block-post-terms a) { color: inherit; text-decoration: none; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
:where(.mt-piece-specifications) { border-block-start: 1px solid var(--mt-line); padding-block-start: 1.25rem; }
:where(.mt-editorial-main > .wp-block-post-content > p) { max-width: 65ch; font-size: var(--wp--preset--font-size--lead); font-family: var(--wp--preset--font-family--display); margin-block-end: 2rem; }
:where(.mt-section, .mt-selection) { padding-block: clamp(2.5rem, 6vw, 6rem); }
:where(.mt-hero) { position: relative; isolation: isolate; min-height: calc(100svh - 88px); display: flex; align-items: center; padding: clamp(3rem, 7vw, 7rem) 5vw; box-sizing: border-box; overflow: hidden; }
.mt-hero > .wp-block-video { position: absolute; inset: 0; margin: 0; max-width: none; z-index: -1; }
.mt-hero > .wp-block-video video { width: 100%; height: 100%; object-fit: cover; }
:where(.mt-hero-copy) { width: min(38rem, 100%); margin: 0; padding: clamp(1.25rem, 3vw, 2.5rem); background: linear-gradient(100deg, rgb(22 18 14 / 72%), rgb(22 18 14 / 35%)); box-sizing: border-box; }
:where(.mt-hero-copy h1) { font-size: clamp(3rem, 5.5vw, 6.2rem); line-height: .98; margin-block: 1rem; }
:where(.mt-hero-copy p) { max-width: 42ch; }
:where(.mt-hero-copy .wp-block-buttons) { margin-block-start: 1.6rem; }
:where(.mt-hero-copy .wp-block-button__link) { color: var(--mt-ink); background: var(--mt-paper); }
:where(.mt-media-toggle) { position: absolute; right: 5vw; bottom: 1.5rem; color: var(--mt-paper); background: rgb(22 18 14 / 70%); border: 1px solid currentColor; padding: .7rem 1rem; cursor: pointer; font: inherit; font-size: .8rem; }
:where(.mt-hero .wp-block-heading) { text-wrap: balance; }
:where(.mt-section-head) { margin-block-end: clamp(1.5rem, 3vw, 3rem); }
:where(.mt-section-head p) { max-width: 62ch; }
.mt-section :where(h2) { font-size: clamp(2.1rem, 3.8vw, 4.1rem); }
.mt-section :where(h3) { font-size: clamp(1.6rem, 2.6vw, 2.7rem); }
.mt-section :where(.wp-block-columns) { gap: clamp(1.5rem, 3vw, 3rem); }
.mt-section :where(.wp-block-column p) { max-width: 52ch; }
.mt-card-grid { gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.mt-card :where(.wp-block-image) { margin-block: 0 1.25rem; }
.mt-card :where(h3) { margin-block: .75rem; }
.mt-card :where(p) { margin-block: .75rem; }
.mt-dark.mt-shell, .mt-sand.mt-shell { width: 100%; padding-inline: 5vw; box-sizing: border-box; }
:where(.mt-gallery, .mt-selection) { gap: clamp(1rem, 2vw, 2rem); }
:where(.mt-gallery figcaption, .mt-selection figcaption) { font-size: var(--wp--preset--font-size--small); }
:where(.maison-toukkani a, .maison-toukkani button):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* Vercel-aligned homepage navigation and editorial section composition. */
.mt-home-chapters { position: relative; z-index: 1; border-block: 1px solid var(--mt-line); background: var(--mt-paper); }
.mt-home-chapters .wp-block-navigation__container { display: flex; flex-wrap: nowrap; justify-content: center; gap: clamp(.75rem, 3vw, 3rem); width: min(100% - 10vw, var(--wp--style--global--wide-size)); margin-inline: auto; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; }
.mt-home-chapters .wp-block-navigation__container::-webkit-scrollbar { display: none; }
.mt-home-chapters .wp-block-navigation-item__content { display: inline-flex; align-items: center; min-height: 52px; padding-inline: .25rem; color: inherit; font-size: .72rem; letter-spacing: .08em; text-decoration: none; white-space: nowrap; }
.mt-home-chapters .wp-block-navigation-item__content:hover { text-decoration: underline; text-underline-offset: .45em; }
#maison-intro, #home-universes, #home-maison, #home-projects, #home-project-desk { scroll-margin-top: 7rem; }
.mt-home-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }
.mt-home-hero-actions .wp-block-buttons { margin: 0; }
.mt-home-hero-actions .wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: .8rem 1.25rem; }
.mt-home-section-head { display: grid !important; grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .9fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: end; margin-block-end: clamp(2rem, 4vw, 3.75rem); }
.mt-home-section-copy, .mt-home-section-note { min-width: 0; }
.mt-home-section-copy > :first-child { margin-block-start: 0; }
.mt-home-section-copy > :last-child { margin-block-end: 0; }
.mt-home-section-copy h2 { max-width: 14ch; margin-block: .65rem 0; line-height: 1.02; text-wrap: balance; }
.mt-home-section-note > :first-child { margin-block-start: 0; }
.mt-home-section-note > :last-child { margin-block-end: 0; }
.mt-home-section-note > p:not(.mt-action-text) { max-width: 56ch; line-height: 1.7; }
.mt-home-section-note .mt-action-text { margin-block-start: 1.15rem; }
.mt-selection > .mt-home-chapters + .mt-section-head { margin-block-end: clamp(1.5rem, 3vw, 2.5rem); }
.mt-home-story-copy { display: flex; flex-direction: column; justify-content: center; min-height: 100%; padding: clamp(1rem, 3vw, 3rem) clamp(0rem, 2vw, 2rem); box-sizing: border-box; }
.mt-home-story-copy h2 { max-width: 12ch; font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1; text-wrap: balance; }
.mt-home-story-copy > p { max-width: 45ch; line-height: 1.7; }
.mt-home-story-actions { display: grid; gap: .6rem; max-width: 20rem; margin-block-start: 1.25rem; }
.mt-home-story-actions .mt-action-text { margin: 0; border-block-end: 1px solid rgb(255 255 255 / 32%); padding-block: .75rem; }
.mt-home-story-actions a, .mt-home-closing a { color: inherit; text-decoration: none; }
.mt-story > .wp-block-columns { display: grid !important; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: stretch; gap: clamp(2rem, 5vw, 5rem); }
.mt-story .wp-block-column { min-width: 0; }
.mt-story .wp-block-image { height: 100%; margin: 0; }
.mt-story .wp-block-image img { width: 100%; height: 100%; min-height: 28rem; object-fit: cover; }
.mt-home-closing { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; margin-block-start: clamp(2rem, 4vw, 4rem); border-block-start: 1px solid var(--mt-line); padding-block-start: 1.5rem; }
.mt-home-closing > p { max-width: 50ch; margin: 0; }
.mt-home-closing .wp-block-buttons { margin: 0; }

/* Product pages: a calm information hierarchy, discreet disclosure and clear next steps. */
.mt-piece-breadcrumb { margin-block-end: clamp(1.25rem, 3vw, 2.25rem); color: color-mix(in srgb, currentColor 70%, transparent); font-size: .68rem; letter-spacing: .08em; line-height: 1.6; }
.mt-piece-breadcrumb nav { display: flex; flex-wrap: wrap; gap: .45rem .7rem; align-items: center; }
.mt-piece-breadcrumb a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.mt-product-facts { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.5rem); margin-block: clamp(1.5rem, 3vw, 2.5rem); }
.mt-product-fact { min-width: 0; border-block-start: 1px solid var(--mt-line); padding-block-start: .8rem; }
.mt-product-fact > p:first-child { margin-block: 0 .45rem; color: color-mix(in srgb, currentColor 65%, transparent); font-size: .64rem; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; }
.mt-product-fact > p:last-child { margin-block: 0; font-size: .9rem; line-height: 1.55; }
.mt-product-availability { border-block-start: 1px solid var(--mt-line); padding-block-start: 1.1rem; }
.mt-product-availability > p { margin-block: .4rem; line-height: 1.6; }
.mt-product-availability > p:first-child { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.mt-product-availability-value { font-family: var(--wp--preset--font-family--display); font-size: 1.35rem; }
.mt-product-actions { display: flex !important; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-block-start: 1.15rem; }
.mt-product-actions .wp-block-buttons, .mt-product-actions .mt-action-text { margin: 0; }
.mt-product-actions .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .8rem 1.2rem; }
.mt-product-actions .mt-action-text { min-height: 48px; display: inline-flex; align-items: center; }
.mt-product-notes { margin-block-start: 1.35rem; border-block: 1px solid var(--mt-line); }
.mt-product-notes > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 50px; cursor: pointer; list-style: none; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.mt-product-notes > summary::-webkit-details-marker { display: none; }
.mt-product-notes > summary::marker { content: ""; }
.mt-product-notes > summary::after { content: "+"; font-size: 1.2rem; }
.mt-product-notes[open] > summary::after { content: "−"; }
.mt-product-notes > p { max-width: 58ch; margin-block: 0 1.15rem; line-height: 1.65; }
.mt-product-prev-next { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-block-start: 1.75rem; }
.mt-product-direction { min-width: 0; margin: 0; border-block-start: 1px solid var(--mt-line); }
.mt-product-direction a { display: flex; align-items: center; gap: .8rem; min-height: 64px; color: inherit; text-decoration: none; }
.mt-product-direction-next a { justify-content: flex-end; text-align: right; }
.mt-product-direction a > span:first-child { font-size: 1.25rem; }
.mt-product-direction small, .mt-product-direction strong { display: block; }
.mt-product-direction small { margin-block-end: .2rem; font-size: .61rem; letter-spacing: .08em; text-transform: uppercase; }
.mt-product-direction strong { font-family: var(--wp--preset--font-family--display); font-size: .9rem; font-weight: 400; }
.mt-related-head { margin-block-end: clamp(1.5rem, 3vw, 2.5rem); }
.mt-related-pieces .mt-related-piece-copy { padding-block-start: .45rem; }
.mt-related-piece-copy > p:first-child { margin-block: 0 .4rem; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.mt-related-piece-copy h3 { margin-block: 0; line-height: 1.12; }
.mt-related-piece-copy h3 a { color: inherit; text-decoration: none; }
.mt-related-pieces .mt-card > .wp-block-image img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }

/* Native, keyboard-operable premium disclosure controls for acoustic panels. */
.nativeAcousticPage .wp-block-details > summary {
  display: flex;
  align-items: center;
  gap: .85rem;
  width: 100%;
  min-height: 54px;
  box-sizing: border-box;
  padding: .8rem 1rem;
  border: 1px solid var(--mt-ink);
  background: var(--mt-ink);
  color: var(--mt-paper);
  cursor: pointer;
  list-style: none;
  font-size: .72rem;
  letter-spacing: .1em;
  line-height: 1.35;
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.nativeAcousticPage .wp-block-details > summary::-webkit-details-marker { display: none; }
.nativeAcousticPage .wp-block-details > summary::marker { content: ""; }
.nativeAcousticPage .wp-block-details > summary strong {
  display: inline-grid;
  min-width: 1.8rem;
  min-height: 1.8rem;
  place-items: center;
  margin-inline-start: auto;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .68rem;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: 0;
}
.nativeAcousticPage .wp-block-details > summary::after {
  content: "＋";
  flex: 0 0 auto;
  margin-inline-start: .25rem;
  font-size: 1rem;
  line-height: 1;
}
.nativeAcousticPage .wp-block-details[open] > summary::after { content: "−"; }
.nativeAcousticPage .wp-block-details > summary:hover {
  border-color: var(--mt-clay);
  background: var(--mt-clay);
}
.nativeAcousticPage .wp-block-details > summary:focus-visible {
  outline: 2px solid var(--mt-clay);
  outline-offset: 4px;
}
.nativeAcousticPage .wp-block-details > .acousticPanelDetails { margin-block-start: 1.25rem; }

@media (max-width: 781px) {
  .mt-header-controls { gap: .5rem; }
  :where(.mt-shell) { width: min(100% - 10vw, 680px); }
  :where(.mt-hero) { min-height: calc(100svh - 80px); padding-block: 3rem 5rem; }
  :where(.mt-hero-copy h1) { font-size: clamp(2.7rem, 9vw, 4.8rem); }
  :where(.mt-section-head) { gap: 1rem; }
  .mt-piece-intro :where(.wp-block-post-featured-image img) { max-height: none; }
  .mt-home-chapters .wp-block-navigation__container { justify-content: flex-start; width: 100%; padding-inline: 5vw; box-sizing: border-box; }
  .mt-home-section-head { grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
  .mt-home-section-copy h2 { max-width: 18ch; }
  .mt-story > .wp-block-columns { display: grid !important; grid-template-columns: minmax(0, 1fr); }
  .mt-story .wp-block-image img { min-height: 0; max-height: 70svh; aspect-ratio: 4 / 3; }
  .mt-home-story-copy { padding: .5rem 0 0; }
  .mt-home-closing { align-items: flex-start; }
  .mt-piece-intro { grid-template-columns: minmax(0, 1fr) !important; }
  .mt-product-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .mt-header { gap: .5rem; padding-left: 4vw !important; padding-right: 4vw !important; }
  .mt-brand { flex: 0 1 auto; min-width: 0; }
  .mt-brand .wp-block-site-logo img { width: min(164px, 42vw); }
  .mt-header-controls { flex: 0 1 auto; gap: .25rem; min-width: 0; }
  .mt-language-switcher { gap: 0; }
  .mt-language-switcher a { min-width: 31px; padding-inline: .1rem; }
  .mt-product-facts { grid-template-columns: minmax(0, 1fr); }
  .mt-product-prev-next { gap: .5rem; }
  .mt-product-direction a { gap: .45rem; }
  .mt-product-direction strong { font-size: .8rem; }
  .mt-home-hero-actions { align-items: stretch; }
  .mt-home-hero-actions .wp-block-buttons, .mt-home-hero-actions .wp-block-button { width: 100%; }
  .mt-home-hero-actions .wp-block-button__link { width: 100%; box-sizing: border-box; }
}

@media (max-width: 360px) {
  .mt-header { gap: .25rem; padding-left: 4vw !important; padding-right: 4vw !important; }
  .mt-brand .wp-block-site-logo img { width: min(120px, 32vw); }
  .mt-header-controls { gap: .125rem; }
  .mt-language-switcher a { min-width: 28px; font-size: .65rem; }
}

/* Keep the full editorial navigation off mid-size screens until every locale fits with breathing room. */
@media (max-width: 1099px) {
  .mt-header { flex-wrap: nowrap; }
  .mt-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
  .mt-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
}

/* Source footer restored in native editable blocks; isolated from page layouts. */
.nativeShopPage .section { padding: clamp(3rem, 6vw, 6rem) max(20px, 5vw); box-sizing: border-box; }
.nativeShopPage .sectionHead { margin-block-end: 2rem; }
.nativeShopPage .sectionHead h2 { margin-block: .8rem 1rem; }
.nativeShopPage .sectionHead p { max-width: 65ch; line-height: 1.65; }
:where(.mt-footer-complete) { background: var(--mt-deep); color: var(--mt-paper); padding: clamp(3rem, 6vw, 6rem) 5vw 2rem; }
:where(.mt-footer-complete p) { margin-block: 0; }
:where(.mt-footer-complete a) { text-decoration: none; overflow-wrap: anywhere; }
:where(.mt-footer-complete a:hover) { text-decoration: underline; text-underline-offset: .25em; }
:where(.mt-complete-footerInvitation) { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3rem; align-items: end; padding-bottom: 3rem; border-bottom: 1px solid rgb(255 255 255 / 22%); }
:where(.mt-complete-footerInvitation h2) { max-width: 22ch; margin-block: .8rem 0; font-size: clamp(2rem, 3.8vw, 3.8rem); line-height: 1.1; text-wrap: balance; }
:where(.mt-complete-footerInvitation > div:last-child) { display: flex; flex-wrap: wrap; gap: 1rem; }
:where(.mt-footer-complete .wp-block-button__link) { color: var(--mt-paper); background: transparent; border: 1px solid currentColor; padding: .9rem 1.2rem; font-size: .75rem; letter-spacing: .08em; }
:where(.mt-complete-eyebrow, .mt-complete-footerLabel) { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; }
:where(.mt-complete-footerSignatureGrid) { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .7fr) minmax(0, 1fr); gap: 2rem; padding-block: 3rem; }
:where(.mt-complete-footerSignatureGrid > *) { min-width: 0; }
:where(.mt-complete-footerBrand, .mt-complete-footerPrimary, .mt-complete-footerActions, .mt-complete-footerLinks, .mt-complete-footerSocialList) { display: flex; flex-direction: column; align-items: start; gap: .8rem; }
:where(.mt-complete-footerSignatureGrid p) { font-size: .875rem; line-height: 1.65; }
:where(.mt-complete-footerSocials) { margin-top: 1rem; }
:where(.mt-complete-footerSocialList) { gap: .35rem; margin-top: .65rem; }
:where(.mt-complete-footerLegalLine) { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid rgb(255 255 255 / 22%); padding-top: 1.5rem; }
:where(.mt-complete-footerLegalLine p) { font-size: .75rem; }
@media (max-width: 1000px) {
  :where(.mt-complete-footerSignatureGrid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  :where(.mt-complete-footerInvitation, .mt-complete-footerSignatureGrid) { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  :where(.mt-complete-footerInvitation) { align-items: start; }
}

/* Beat Core's flow margins without overriding inline editor spacing choices. */
.mt-footer-complete .wp-block-group > *,
.mt-footer-complete .wp-block-group > p { margin-block: 0; }
.mt-footer-complete .mt-complete-footerInvitation h2 { margin-block-start: .8rem; }
.mt-footer-complete .mt-complete-footerSocials { margin-block-start: 1rem; }
.mt-footer-complete .mt-complete-footerSocialList { margin-block-start: .65rem; }
.mt-footer-complete .wp-block-button__link { color: var(--mt-paper); background: transparent; border: 1px solid currentColor; padding: .9rem 1.2rem; font-size: .75rem; letter-spacing: .08em; }
.mt-footer-complete .mt-complete-footerSignatureGrid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .7fr) minmax(0, 1fr); }
@media (max-width: 1000px) {
  .mt-footer-complete .mt-complete-footerSignatureGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .mt-footer-complete .mt-complete-footerBrand { grid-column: 1 / -1; }
  .mt-footer-complete .mt-complete-footerSignatureGrid { gap: 2rem 1.25rem; }
  .mt-footer-complete .mt-complete-footerSignatureGrid p { font-size: .8rem; }
}

/* Keep the native button obvious during keyboard navigation. */
.mt-accessible-accordion-control:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
