/* All overrides are confined to the homepage tree and the opted-in lower minis. */
body #format-navigator-content .may-tree-button.mtc-button {
  width:min(230px,100%) !important; height:auto !important; aspect-ratio:var(--mtc-ratio);
  align-self:start; z-index:3; margin-top:12px !important;
}
body #format-navigator-content .format-level--nested .may-tree-button.mtc-button {
  width:min(270px,100%) !important;
}
body #format-navigator-trigger.may-tree-button {
  width:min(370px,100%) !important; height:auto !important; aspect-ratio:var(--mtc-ratio);
  z-index:2;
}
body #format-navigator-reset.may-tree-button {
  width:190px !important; height:auto !important; aspect-ratio:var(--mtc-ratio);
}
body #format-navigator-reset[hidden] { display:none !important; }
#format-navigator-content .may-tree-button::before,
#format-navigator-content .may-tree-button::after { display:none !important; }
#format-navigator-content .may-tree-button:is(:hover,:active,.clay-is-pressed,.clay-has-imprint,.is-selected) {
  background:transparent !important; box-shadow:none !important; filter:none !important; transform:none !important;
}
#format-navigator-content .format-level.has-selection > .format-choice-row:not(.is-selected) > .may-tree-button { opacity:1; }
/* The original SVG geometry remains the layout source; photographic ribbons replace its marks. */
.format-root-vine > :not(.may-cord-surface),.format-local-vine > :not(.may-cord-surface),
.format-trigger-roots > g { visibility:hidden !important; }
.format-root-vine,.format-local-vine,.format-trigger-roots { filter:none !important; }
.format-trigger-roots { overflow:visible !important; }
.may-cord-surface { overflow:visible; pointer-events:none; }
.may-cord-surface canvas { display:block; width:100%; height:100%; pointer-events:none; }
.format-root-vine,.format-local-vine,.format-trigger-roots { visibility:hidden !important; animation:none !important; }
.may-pebble-layer { position:absolute; z-index:1; overflow:visible; pointer-events:none; }
.may-pebble-layer[hidden] { display:none; }
.may-clay-pebble { transition:opacity 28ms linear; pointer-events:none; }
#navigator .format-branch-panel.is-open { transition:none !important; }
#navigator .format-choice-row { transform:none !important; }
#navigator .format-tree.is-ready .format-level--root > .format-choice-row,
#navigator .format-branch-panel.is-open .format-level--nested > .format-choice-row { transition:opacity 110ms ease !important; }
#navigator .may-path-pending .may-tree-button { opacity:0 !important; visibility:hidden !important; pointer-events:none !important; }
#navigator .may-path-pending .format-choice-row { opacity:1 !important; }
/* Keep the original mobile entry point; hide the accidental desktop duplicate. */
@media(min-width:769px) { body .floating-mobile-actions .floating-menu-btn.mtc-button { display:none !important; } }
@media(prefers-reduced-motion:reduce) {
  .may-clay-pebble { transition:none; }
  #navigator .format-choice-row { transition:none !important; }
}
@media(min-width:2100px) {
  body #format-navigator-content .format-level--nested .may-tree-button.mtc-button { width:100% !important; margin:0 !important; }
}
@media(max-width:767px) {
  body #format-navigator-content .format-level--root > .format-choice-row > .may-tree-button.mtc-button { width:min(230px,calc(50% + 4px)) !important; }
  body #format-navigator-content .format-level--nested .may-tree-button.mtc-button { width:min(270px,calc(100% - 30px)) !important; }
  body #format-navigator-trigger.may-tree-button { width:min(420px,100%) !important; }
  body #format-navigator-reset.may-tree-button { width:155px !important; }
}
body .may-glazed-social.mtc-button {
  --mtc-height:var(--msg-btn-size,44px); width:var(--mtc-height) !important; height:var(--mtc-height) !important;
  border-radius:50%; overflow:visible !important;
}
body .may-glazed-social .mtc-visual { border-radius:999px; transition:transform var(--header-hover-duration,150ms) ease,filter var(--header-hover-duration,150ms) ease; }
body .may-glazed-social :is(.mtc-poster,.mtc-canvas) { filter:none; }
body .may-glazed-social.mtc-held .mtc-visual { transform:translateY(1px) rotate(0);filter:brightness(.98); }
body .may-glazed-social .mtc-visual::after {
  content:'';position:absolute;inset:0;pointer-events:none;opacity:0;
  background-image:linear-gradient(112deg,transparent 43%,rgba(255,250,231,.04) 47%,rgba(239,250,255,.22) 50%,rgba(255,250,231,.07) 53%,transparent 57%);
  background-size:260% 100%;background-position:130% 0;background-repeat:no-repeat;
  mask:var(--header-art-mask);-webkit-mask:var(--header-art-mask);
}
body .may-glazed-social[data-header-button="msg-vk"] { --header-art-mask:url(#header-mask-msg-vk); }
body .may-glazed-social[data-header-button="msg-tg"] { --header-art-mask:url(#header-mask-msg-tg); }
body .may-glazed-social[data-header-button="msg-max"] { --header-art-mask:url(#header-mask-msg-max); }
@media(max-width:767px) {
  body .may-clay-action-row:has(.may-glazed-social) { display:grid;grid-template-columns:repeat(3,44px);gap:12px;justify-content:center;justify-items:center; }
  body .may-clay-action-row:has(.may-glazed-social) > .mtc-cta { grid-column:1/-1;justify-self:center; }
}
@media(hover:hover) and (pointer:fine) {
  body .may-glazed-social:not(.mtc-held):hover .mtc-visual { transform:translateY(-2px) rotate(-.4deg);filter:brightness(1.025) drop-shadow(0 3px 3px rgba(0,24,34,.18)); }
  body .may-glazed-social:not(.mtc-held):hover .mtc-visual::after { animation:header-art-glare var(--header-glare-duration,320ms) ease-out both; }
}
@media(prefers-reduced-motion:reduce) {
  body .may-glazed-social .mtc-visual { transition:none;transform:none !important; }
  body .may-glazed-social .mtc-visual::after { animation:none !important;opacity:0; }
}
