/* Homepage refinements: calibrated photographs, unchanged owner interactions. */
body #navigator #format-navigator-content .may-tree-button.mtc-button,
body #navigator #format-navigator-content .format-level--nested .may-tree-button.mtc-button {
  width:min(var(--tree-photo-width,230px),100%) !important;
  height:var(--tree-photo-height,54px) !important;
  margin-top:10px !important;align-self:start;
}
body #navigator #format-navigator-trigger.may-tree-button {
  width:min(var(--tree-photo-width,320px),100%) !important;height:var(--tree-photo-height,92px) !important;
}
body #navigator #format-navigator-reset.may-tree-button {
  width:var(--tree-photo-width,175px) !important;height:var(--tree-photo-height,40px) !important;
}
@media(max-width:768px) {
  body #navigator #format-navigator-content .format-level--root > .format-choice-row > .may-tree-button.mtc-button {
    width:min(var(--tree-photo-width),calc(50% - 14px)) !important;
  }
  body #navigator #format-navigator-content .format-level--root > .align-center > .may-tree-button.mtc-button {
    width:min(var(--tree-photo-width),100%) !important;
  }
  body #navigator #format-navigator-content .format-level--nested .may-tree-button.mtc-button {
    width:min(var(--tree-photo-width),calc(100% - 42px)) !important;
  }
  body #navigator #format-navigator-reset.may-tree-button { width:min(var(--tree-photo-width),155px) !important; }
}
/* Keep the contact shadow quiet without washing out the entire photograph. */
body #navigator .may-tree-button :is(.mtc-poster,.mtc-canvas),
body .may-unified-clay:not(.may-glazed-social) :is(.mtc-poster,.mtc-canvas),
body > nav.clay-site-nav :is(.mtc-poster,.mtc-canvas),
body > header:not(.mobile-header) .mtc-cta :is(.mtc-poster,.mtc-canvas) {
  filter:drop-shadow(0 2px 2px rgba(0,34,43,.15));
}
/* Review cards now use the already approved soft FAQ material. */
#reviews .may-panel-v4--1 { --may-panel-photo:url('../img/clay-panels-soft/clay_01.webp'); }
#reviews .may-panel-v4--2 { --may-panel-photo:url('../img/clay-panels-soft/clay_02.webp'); }
#reviews .may-panel-v4--3 { --may-panel-photo:url('../img/clay-panels-soft/clay_03.webp'); }
#reviews .may-panel-v4--4 { --may-panel-photo:url('../img/clay-panels-soft/clay_04.webp'); }
#reviews .may-panel-v4::before { filter:drop-shadow(2px 6px 7px rgba(0,30,40,.16)); }
#reviews .may-panel-v4::after { opacity:.12; }
/* The mobile panel uses the same photo and softened shadow as desktop dropdowns.
   Native open/submenu handlers, the scroll container and tap targets stay intact. */
@media(max-width:768px), (hover:none) and (pointer:coarse) and (max-width:1024px) {
  body #mobile-menu, body #mobile-menu.is-open {
    isolation:isolate;background:transparent !important;border-color:transparent !important;
    backdrop-filter:none !important;-webkit-backdrop-filter:none !important;box-shadow:none !important;
    padding:0 !important;border:0 !important;border-radius:0 !important;
    overflow:visible !important;max-height:none !important;
  }
  body #mobile-menu::before {
    content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;
    border:0 solid transparent;
    border-image-source:url('../img/clay-panels-soft/clay_01.webp');
    border-image-slice:230 260 225 260 fill;border-image-width:32px 30px;
    filter:drop-shadow(2px 6px 7px rgba(0,30,40,.16));
  }
  body #mobile-menu .mobile-menu__scroll {
    max-height:calc(100dvh - 110px);overflow-y:auto;overscroll-behavior:contain;
    padding:14px;border-radius:18px;
  }
  body #mobile-menu :is(.mobile-menu-item,.mobile-menu-link,.mobile-submenu a) {
    background:transparent !important;background-image:none !important;border:0 !important;
    border-radius:8px !important;box-shadow:none !important;backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;color:#171411 !important;text-shadow:none !important;
    min-height:44px !important;padding:12px 14px !important;letter-spacing:.025em !important;
    font-size:12px !important;line-height:1.35 !important;
  }
  body #mobile-menu :is(.mobile-menu-item,.mobile-menu-link,.mobile-submenu a):is(:hover,:focus-visible) {
    background:rgba(80,60,40,.09) !important;
  }
  body #mobile-menu .mobile-submenu { border-left:1px solid rgba(80,60,40,.17); }
}
