/*
 * Cross-page quality guard
 *
 * This file is loaded last on every public page.  It intentionally owns only
 * shared resilience rules so that a legacy page-specific experiment cannot
 * reintroduce a browser-dependent overflow, clipped asset, or inaccessible
 * keyboard state at a responsive breakpoint.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img,
svg {
  display: block;
}

/* A consistent, high-contrast focus treatment is important for the header,
   language switcher, carousel controls and every consultation action. */
:focus-visible {
  outline: 3px solid #ffd21c;
  outline-offset: 3px;
}

/* The fixed assistant must never fall behind a page-specific carousel,
   drawer, or footer. Modals remain above it through their own higher layer. */
.myguru-pet {
  z-index: 70;
}

@media (max-width: 767px) {
  /* All three pages finish with the same calm, single-column footer.  The
     additional safe area prevents the fixed assistant from covering its
     final contact details on modern phones. */
  footer.site-bottom-bar {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    padding: 26px 24px max(104px, calc(24px + env(safe-area-inset-bottom)));
  }

  footer.site-bottom-bar .bottom-brand {
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
  }

  footer.site-bottom-bar .bottom-brand img {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
  }

  footer.site-bottom-bar > p,
  footer.site-bottom-bar small {
    max-width: 100%;
    min-width: 0;
    white-space: normal;
  }

  footer.site-bottom-bar small {
    padding-right: 92px;
  }
}

/* The desktop closing note is one parent-facing thought. Keep its headline
   and explanation in one vertical reading group rather than separating them
   into distant left and right columns. */
@media (min-width: 1101px) {
  .d-parent-note {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    max-width: 980px;
    padding-bottom: 64px;
  }

  .d-parent-note > p {
    max-width: 42em;
    padding-left: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
/* Branch-card WhatsApp labels are deliberately two lines on every device. */
.branch-whatsapp{flex-direction:column!important;gap:2px;line-height:1.05!important;white-space:normal!important}.branch-whatsapp>span{display:block}

/* Keep the year plaque in the upper-left visual safe area, where it frames
   the story without covering the facade sign or carousel controls. */
.story-cinematic .st-hero__art--campus .st-since {
  top: 14px;
  bottom: auto;
  left: 14px;
  padding: 7px 9px;
  font-size: 9px;
}

.story-cinematic .st-hero__art--campus .st-since b {
  font-size: clamp(22px, 2.25vw, 34px);
}

/* Keep the four-character lead-in distinct from the promise that follows.
   This spacing is structural, so it survives all platform font fallbacks. */
.promise-title-lead {
  display: inline;
  margin-inline-end: .18em;
  font: inherit;
}

/* Student testimonials are primary proof, not thumbnail artwork.  Let their
   grid use the same full content width as the poster immediately above it;
   the existing single-column phone layout then keeps each portrait poster
   at a matching, readable size without cropping it. */
.progress-testimonials {
  width: 100%;
  max-width: none;
}
