.mooi-materials-page {
  background: #fff;
}

.mooi-materials-page .mooi-materials-main,
.mooi-materials-page .mooi-materials-post-content {
  margin: 0;
  padding: 0;
  max-width: none;
}

.mooi-materials-navigation {
  position: sticky;
  top: 0;
  z-index: 30;
  border-block: 1px solid #e7e2dc;
  background: rgba(255, 255, 255, .97);
  color: #171717;
  font: 400 14px/1.4 Jost, Arial, sans-serif;
}

.mooi-materials-catalog-menu {
  display: flex;
  align-items: center;
  min-height: 58px;
  width: min(100% - 40px, 1240px);
  margin-inline: auto;
  gap: 26px;
}

.mooi-materials-index-link {
  color: inherit;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
}

.mooi-materials-catalog-menu > details {
  flex: 1;
  min-width: 0;
}
.mooi-materials-menu-shell > summary { display: none !important; }

.mooi-materials-catalog-menu summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  cursor: pointer;
  list-style: none;
}

.mooi-materials-catalog-menu summary::-webkit-details-marker { display: none; }
.mooi-materials-catalog-menu summary::after { content: ""; width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); margin-left: auto; margin-right: 3px; }
.mooi-materials-catalog-menu details[open] > summary::after { transform: rotate(225deg); }

.mooi-materials-catalog-menu > details > ul {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mooi-materials-menu-shell > ul > li { position: relative; }
.mooi-materials-menu-shell > ul > li > details > ul {
  position: absolute;
  top: 100%;
  left: -18px;
  width: 320px;
  max-height: min(68vh, 600px);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 12px 18px;
  border: 1px solid #ddd6cd;
  background: #fbfaf7;
}

.mooi-materials-catalog-menu li { margin: 0; list-style: none; }
.mooi-materials-catalog-menu ul ul { margin: 0; padding: 0; }
.mooi-materials-catalog-menu ul ul ul { padding-left: 16px; border-left: 1px solid #dfd4c7; }
.mooi-materials-catalog-menu ul a {
  display: block;
  padding: 12px 0;
  color: #171717;
  text-decoration: none;
}
.mooi-materials-catalog-menu ul a:hover,
.mooi-materials-catalog-menu ul a:focus-visible,
.mooi-materials-catalog-menu ul a[aria-current] { text-decoration: underline; text-decoration-color: #d9ba8c; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.mooi-materials-catalog-menu li details > summary { min-height: 52px; font-weight: 500; }
.mooi-materials-catalog-menu ul ul summary { line-height: 1.45; }

.mooi-materials-section-menu {
  overflow-x: auto;
  border-top: 1px solid #eeeae5;
  scrollbar-width: thin;
}
.mooi-materials-section-menu ul {
  display: flex;
  width: max-content;
  min-width: 100%;
  margin: 0;
  padding: 0 20px;
  justify-content: center;
  list-style: none;
}
.mooi-materials-section-menu a {
  display: block;
  padding: 13px 16px;
  color: #393633;
  text-decoration: none;
  white-space: nowrap;
}
.mooi-materials-section-menu a:hover,
.mooi-materials-section-menu a:focus-visible { color: #000; text-decoration: underline; text-underline-offset: 4px; }

.mooi-materials-generated-title {
  width: min(100% - 40px, 1140px);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) 0 24px;
  font-family: Jost, Arial, sans-serif;
  text-align: center;
}
.mooi-materials-breadcrumb-shell {
  width: min(100% - 40px, 1140px);
  margin: 0 auto;
  padding-top: 22px;
  font-family: Jost, Arial, sans-serif;
}
.mooi-materials-breadcrumb-shell .mooi-breadcrumbs { margin: 0; }
.mooi-materials-generated-title h1 { margin: 0; color: #111; font: 400 clamp(36px, 5vw, 64px)/1.1 Jost, Arial, sans-serif; letter-spacing: -.025em; }

.mooi-materials-content {
  /* The legacy Elementor canvas is translated upward in its source CSS.
     Reserve the exact header/title lane so it cannot cover local navigation. */
  margin-top: clamp(72px, calc(13.2vw + 21px), 190px) !important;
  min-height: 50vh;
  overflow: clip;
  color: #161616;
  background: #fff;
  font-family: Jost, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
.mooi-materials-content *, .mooi-materials-content *::before, .mooi-materials-content *::after { box-sizing: border-box; }
.mooi-materials-content img,
.mooi-materials-content video { max-width: 100%; }
.mooi-materials-content img { height: auto; }
.mooi-materials-content p,
.mooi-materials-content li,
.mooi-materials-content .qodef-m-text { color: #514d47; }
.mooi-materials-content a:focus-visible,
.mooi-materials-content summary:focus-visible,
.mooi-materials-content button:focus-visible,
.mooi-materials-navigation a:focus-visible,
.mooi-materials-navigation summary:focus-visible { outline: 2px solid #151412; outline-offset: 4px; }
.mooi-materials-content [aria-disabled="true"] { cursor: not-allowed; opacity: .72; }

.mooi-source-slider {
  position: relative;
  width: 100%;
  height: clamp(300px, 38vw, 480px);
  overflow: hidden;
  background: #ebe8e3;
}
.mooi-source-slider .mooi-source-slides,
.mooi-source-slider .mooi-source-slide { width: 100%; height: 100%; margin: 0; }
.mooi-source-slider .mooi-source-slide { position: relative; }
.mooi-source-slider img,
.mooi-source-slider video { display: block; width: 100%; height: 100%; object-fit: cover; }
.mooi-source-video-toggle,
.mooi-source-video-link a {
  position: absolute;
  right: 20px;
  bottom: 20px;
  border: 1px solid rgba(255,255,255,.8);
  background: rgba(18,18,18,.78);
  color: #fff;
  padding: 10px 14px;
  font: 500 13px/1 Jost, Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.mooi-source-carousel { position: relative; overflow: hidden; }
.mooi-source-carousel .mooi-source-slides {
  display: flex !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.mooi-source-carousel .mooi-source-slide { flex: 0 0 100%; scroll-snap-align: start; }
.mooi-source-carousel-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: rgba(18,18,18,.68);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transform: translateY(-50%);
}
.mooi-source-carousel-control[data-direction="previous"] { left: 14px; }
.mooi-source-carousel-control[data-direction="next"] { right: 14px; }

.mooi-materials-content details.elementor-toggle-item { border-bottom: 1px solid #d9d3cc; }
.mooi-materials-content details.elementor-toggle-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  cursor: pointer;
  list-style: none;
}
.mooi-materials-content details.elementor-toggle-item > summary::-webkit-details-marker { display: none; }
.mooi-materials-content details.elementor-toggle-item > summary::after { content: "+"; margin-left: 16px; font-size: 24px; font-weight: 300; }
.mooi-materials-content details.elementor-toggle-item[open] > summary::after { content: "−"; }
.mooi-materials-content details.elementor-toggle-item .elementor-toggle-icon { display: none; }
.mooi-materials-content details.elementor-toggle-item > .elementor-tab-content { display: none; padding: 4px 0 22px; }
.mooi-materials-content details.elementor-toggle-item[open] > .elementor-tab-content { display: block; }

.mooi-source-missing-media {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 240px;
  padding: 24px;
  border: 1px solid #ded8d0;
  background: #f5f2ed;
  color: #67615a;
  text-align: center;
}

@media (max-width: 880px) {
  .mooi-materials-catalog-menu { width: min(100% - 32px, 1240px); align-items: flex-start; gap: 20px; }
  .mooi-materials-index-link { padding-top: 18px; }
  .mooi-materials-menu-shell > summary { display: flex !important; min-height: 58px; }
  .mooi-materials-catalog-menu > details > ul { display: block; max-height: 65vh; max-height: 65dvh; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 12px; }
  .mooi-materials-menu-shell > ul > li > details > ul { position: static; width: auto; max-height: none; padding: 0 0 8px 16px; border: 0; border-left: 1px solid #dfd4c7; background: transparent; }
  .mooi-materials-catalog-menu > details:not([open]) > ul { display: none; }
  .mooi-materials-menu-shell > ul > li { border-top: 1px solid #e7e2dc; }
  .mooi-materials-section-menu ul { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .mooi-source-slider { height: clamp(250px, 72vw, 390px); }
  .mooi-source-video-toggle, .mooi-source-video-link a { right: 12px; bottom: 12px; }
}

/* The overview keeps the original paired categories and all authored copy,
   but removes Elementor's negative margins and percentage-height coupling. */
.mooi-materials-content:has(.elementor-282) { margin-top: 32px !important; overflow: visible; }
.mooi-materials-content .elementor-282 {
  width: min(100% - 48px, 1140px);
  margin: 0 auto 96px;
}
.mooi-materials-content .elementor-282 > .e-con {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 64px !important;
  padding: 0 !important;
  transform: none !important;
}
.mooi-materials-content .elementor-282 > .e-con > .e-con-inner {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 40px;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.mooi-materials-content .elementor-282 .e-child {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  width: 100% !important;
  min-width: 0;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
.mooi-materials-content .elementor-282 .elementor-widget { width: 100%; height: auto !important; margin: 0 !important; }
.mooi-materials-content .elementor-282 .elementor-widget-image { margin-bottom: 24px !important; }
.mooi-materials-content .elementor-282 .elementor-widget-image img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mooi-materials-content .elementor-282 .qodef-m-subtitle { margin: 0 0 10px; font: 400 15px/1.5 Jost, Arial, sans-serif; color: #6d675f; }
.mooi-materials-content .elementor-282 .qodef-m-title { margin: 0 0 18px; font: 400 clamp(28px, 3vw, 40px)/1.15 Jost, Arial, sans-serif; letter-spacing: -.025em; }
.mooi-materials-content .elementor-282 .qodef-m-text { margin: 0; }
.mooi-materials-content .elementor-282 .qodef-m-text p { margin: 0; font-size: 16px; line-height: 1.75; }
.mooi-materials-category-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; }
.mooi-materials-category-links a { padding-block: 10px; color: #151412; text-decoration: underline; text-underline-offset: 5px; font-size: 15px; }
.mooi-materials-image-note { width: min(100% - 48px, 1140px); margin: -48px auto 64px; color: #6d675f; font: 400 13px/1.6 Jost, Arial, sans-serif; }
.mooi-materials-content [id] { scroll-margin-top: 112px; }
@media (max-width: 680px) {
  .mooi-materials-content .elementor-282 { width: calc(100% - 32px); margin-bottom: 64px; }
  .mooi-materials-content .elementor-282 > .e-con { margin-bottom: 40px !important; }
  .mooi-materials-content .elementor-282 > .e-con > .e-con-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .mooi-materials-image-note { width: calc(100% - 32px); margin-top: -24px; }
}

@media (prefers-reduced-motion: reduce) {
  .mooi-materials-content { scroll-behavior: auto !important; }
}
