/* v334: explicit grid alignment prevents the shorter column from centering
   vertically. Footer rules are scoped so article and header navigation stay intact. */
body.mz-centered footer .foot-grid>div {width:100%;max-width:850px;margin-inline:auto}
body.mz-centered footer .foot-brand {
  margin:0 auto;color:#f5f4f0;font-size:18px;font-weight:800;
  line-height:1.4;letter-spacing:.18em;text-align:center;
}
body.mz-centered footer .mz-footer-nav.mz-footer-groups {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:start;align-content:start;justify-items:stretch;
  gap:24px;width:100%;max-width:850px;margin:24px auto 20px;text-align:center;
}
body.mz-centered footer .mz-footer-groups>.mz-footer-group {
  display:flex;flex-direction:column;align-items:stretch;align-self:start;
  justify-content:flex-start;gap:0;grid-column:auto;min-width:0;width:100%;
}
body.mz-centered footer .mz-footer-title {
  margin:0 0 8px;padding:0;max-width:none;color:#54c98a;
  font-family:'Archivo','Archivo Fallback',system-ui,sans-serif;
  font-size:14px;font-weight:600;line-height:1.5;letter-spacing:.01em;text-align:center;
}
body.mz-centered footer .mz-footer-groups a,
body.mz-centered footer .mz-footer-legal a {
  display:flex;align-items:center;justify-content:center;
  min-height:44px;min-width:0;margin:0;padding:6px 4px;
  color:#dfe1e4!important;font-size:14px;font-weight:400;line-height:1.5;
  letter-spacing:0;text-align:center;text-decoration:none;white-space:normal;
  border-radius:6px;text-underline-offset:4px;
}
body.mz-centered footer .mz-footer-legal {
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;
  gap:8px;margin:8px auto 0;text-align:center;
}
body.mz-centered footer .mz-footer-legal a {padding-inline:14px;color:#bfc7c2!important}
body.mz-centered footer .mz-footer-groups a:hover,
body.mz-centered footer .mz-footer-groups a[aria-current="page"],
body.mz-centered footer .mz-footer-legal a:hover,
body.mz-centered footer .mz-footer-legal a[aria-current="page"] {color:#83e2ab!important;text-decoration:underline}
body.mz-centered footer .mz-footer-groups a:focus-visible,
body.mz-centered footer .mz-footer-legal a:focus-visible {outline:2px solid #54c98a;outline-offset:-2px}
body.mz-centered footer .mz-social-links {margin:16px auto 0}
body.mz-centered footer .foot-attrib {margin-top:12px}
body.mz-centered .mz-compact-footer {background:#0f1115;color:#dfe1e4}
@media(max-width:760px) {
  body.mz-centered footer .mz-footer-nav.mz-footer-groups {
    grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px;
    max-width:520px;margin:24px auto 16px;
  }
  body.mz-centered footer .mz-footer-groups>.mz-footer-group:last-child {
    display:grid;grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));
    align-items:stretch;gap:4px 6px;border-top:1px solid #303a34;padding-top:16px;
  }
  body.mz-centered footer .mz-footer-group:last-child .mz-footer-title {grid-column:1/-1;margin-bottom:4px}
  body.mz-centered footer .mz-footer-group:last-child a {min-height:54px}
  body.mz-centered footer .mz-social-links {margin-top:16px}
}
@media(forced-colors:active) {
  body.mz-centered footer .mz-footer-groups a:focus-visible,
  body.mz-centered footer .mz-footer-legal a:focus-visible {outline-color:Highlight}
}
@media print {
  body.mz-centered footer .mz-footer-nav.mz-footer-groups,
  body.mz-centered footer .mz-footer-legal {display:none!important}
}

/* Opaque navigation keeps scrolled content from colliding with the brand and menu. */
body>nav[aria-label="Main navigation"] {background:#0f1115!important}

/* Explicit alignment keeps single-label disclosures centered in every engine.
   The shared summary rule distributes multiple items across a row. */
html body main .flow-plan-check > summary,
html body main .mz-video-transcript > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  margin-inline: auto;
  text-align: center;
  list-style: none;
}
html body main .flow-plan-check > summary::after,
html body main .mz-video-transcript > summary::after {
  content: none;
  display: none;
}
html body main .flow-plan-check > summary::-webkit-details-marker,
html body main .mz-video-transcript > summary::-webkit-details-marker {
  display: none;
}
html body main .flow-plan-check > summary::marker,
html body main .mz-video-transcript > summary::marker {
  content: "";
}

.mz-clarity-home .sim-actions > :only-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: auto;
  max-width: 100%;
}

/* Four half-width tracks preserve card widths and center a final lone fact. */
@media (min-width: 761px) {
  .mz-flow-page .flow-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .mz-flow-page .flow-facts > div {
    grid-column: span 2;
  }
  .mz-flow-page .flow-facts > div:last-child:nth-child(odd) {
    grid-column: 2 / span 2;
  }
}

/* Resource cards keep the same width when the final row has a single card. */
@media (min-width: 641px) {
  .mz-resource-grid > .mz-resource-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 18px) / 2);
    box-sizing: border-box;
  }
}

/* A final section link stays the width of its peers in two-column menus. */
@media (max-width: 760px) {
  .mz-section-menu :is(.toc, .mz-doc-toc) > a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 8px) / 2);
    box-sizing: border-box;
  }
}

/* Five chips form a centered three-plus-two layout on narrow phones. */
@media (max-width: 350px) {
  .mz-flow-demo-scenarios {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .mz-flow-demo-scenarios > button {
    grid-column: span 2;
  }
  .mz-flow-demo-scenarios > button:nth-child(4):nth-last-child(2) {
    grid-column: 2 / span 2;
  }
  .mz-flow-demo-scenarios > button:nth-child(5):last-child {
    grid-column: 4 / span 2;
  }
}

/* Consistent native page navigation. In-page transitions are unchanged. */
@view-transition { navigation: none; }
