/* The institutional home keeps its own world. Subpages opt into this shell. */
.aumi-subpage {
  --canvas: #edf2ef;
  --surface: #fbfcf9;
  --surface-quiet: #e1e9e5;
  --ink: #0b1f26;
  --ink-soft: #4c6068;
  --accent: #2238e8;
  --accent-ink: #fff;
  --beam: #5ce1ff;
  --line: rgba(11, 31, 38, .14);
  --line-strong: rgba(11, 31, 38, .3);
  --gutter: clamp(20px, 4.5vw, 64px);
  --section: clamp(64px, 8vw, 120px);
  --max: 1400px;
  background: var(--canvas);
  color: var(--ink);
}

.aumi-subpage main {
  overflow: visible;
}

.aumi-subpage:not(.aumi-next-page) main [id] {
  scroll-margin-top: 110px;
}

.aumi-subpage :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  box-shadow: none;
}

.aumi-subpage .skip-link {
  z-index: 1000;
}

.aumi-subpage > nav[aria-label="Principal"]:not(.next-nav) {
  min-height: 88px;
  gap: 24px;
  padding: 14px var(--gutter);
  border-bottom: 1px solid rgba(181, 225, 226, .18);
  background: #0a1b21;
  color: #f3f7f5;
}

.aumi-subpage > nav:not(.next-nav) .logo {
  color: #f3f7f5;
}

.aumi-subpage > :is(nav:not(.next-nav), footer:not(.next-footer)) .logo img {
  filter: brightness(0) invert(1);
}

.aumi-subpage > nav:not(.next-nav) .nav-left {
  flex: 1;
  justify-content: flex-start;
  gap: 24px;
}

.aumi-subpage > nav:not(.next-nav) .nav-links {
  gap: clamp(12px, 1.5vw, 24px);
  margin-inline: auto;
  padding: 0 24px;
  border: 1px solid #fff;
  border-radius: 60px;
  background: #f3f7f5;
}

.aumi-subpage > nav:not(.next-nav) .nav-link {
  min-height: 46px;
  color: #344a51;
  font-size: 10px;
  letter-spacing: .035em;
}

.aumi-subpage > nav:not(.next-nav) .nav-link::after {
  bottom: 9px;
  background: #2238e8;
}

.aumi-subpage > nav:not(.next-nav) .nav-link[aria-current="page"] {
  color: #2238e8;
}

.aumi-subpage > nav:not(.next-nav) .nav-burger {
  flex-shrink: 0;
  border-color: rgba(211, 235, 235, .5);
  border-radius: 50%;
  color: #f3f7f5;
}

.aumi-subpage > nav:not(.next-nav) :focus-visible {
  outline-color: #5ce1ff;
}

.aumi-subpage :is(.cta-btn, .cta-ghost, .footer-cta) {
  min-height: 50px;
  padding: 15px 22px;
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
  text-align: center;
}

.aumi-subpage .cta-btn {
  border-color: #2238e8;
  background: #2238e8;
  color: #fff;
}

.aumi-subpage .cta-btn:hover {
  border-color: #1528b8;
  background: #1528b8;
  color: #fff;
}

.aumi-subpage :is(.subpage-hero, .subpage-band) {
  --canvas: #0a1b21;
  --surface: #17343d;
  --surface-quiet: #112b33;
  --ink: #f1f8f5;
  --ink-soft: #b8d0d2;
  --accent: #75e2f3;
  --accent-ink: #0a1b21;
  --line: rgba(181, 225, 226, .2);
  --line-strong: rgba(181, 225, 226, .4);
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  background: radial-gradient(ellipse at 88% 18%, rgba(69, 166, 171, .2), transparent 58%), #0a1b21;
  color: var(--ink);
}

.aumi-subpage .subpage-hero {
  border-top: 0;
}

.aumi-subpage :is(.subpage-hero, .subpage-band) .cta-ghost {
  border-color: rgba(181, 225, 226, .5);
  color: #ddf3f2;
}

.aumi-subpage :is(.subpage-hero, .subpage-band) .cta-ghost:hover {
  border-color: #d1f8e0;
  background: #d1f8e0;
  color: #0a1b21;
}

.aumi-subpage :is(.subpage-hero, .subpage-band) .breadcrumbs [aria-current="page"] {
  color: #b8d0d2;
}

.aumi-subpage .kicker {
  margin-bottom: 24px;
  font-size: 11px;
  letter-spacing: .1em;
}

.aumi-subpage :is(.page-actions, .hero-ctas) {
  margin-top: 28px;
}

.aumi-subpage .page-proof-strip {
  width: 100%;
  margin-bottom: 0;
}

.aumi-subpage .faq summary {
  padding-block: 22px;
  line-height: 1.3;
}

.aumi-subpage .faq details[open] {
  padding-inline: 18px;
  background: var(--surface);
}

.aumi-subpage .faq details p {
  padding-top: 2px;
  line-height: 1.7;
}

.aumi-subpage > footer:not(.next-footer) {
  position: relative;
  padding-top: clamp(64px, 8vw, 112px);
  border-top: 1px solid rgba(181, 225, 226, .25);
  background: #0a1b21;
  color: #dcebe8;
}

.aumi-subpage > footer:not(.next-footer) :is(p, .footer-title, h4) {
  color: #acc4c8;
}

.aumi-subpage > footer:not(.next-footer) .logo {
  margin-bottom: 22px;
}

.aumi-subpage > footer:not(.next-footer) p + p {
  margin-top: 20px;
}

.aumi-subpage > footer:not(.next-footer) a {
  text-decoration-color: rgba(172, 196, 200, .4);
}

@media (max-width: 1100px) {
  .aumi-subpage > nav[aria-label="Principal"]:not(.next-nav) {
    min-height: 72px;
    padding-block: 10px;
  }

  .aumi-subpage > nav:not(.next-nav) .nav-burger {
    display: block;
  }

  .aumi-subpage > nav:not(.next-nav) .nav-links {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 24px;
    border: 0;
    border-bottom: 1px solid rgba(181, 225, 226, .3);
    border-radius: 0;
    background: #0a1b21;
  }

  .aumi-subpage > nav.menu-open:not(.next-nav) .nav-links {
    display: flex;
  }

  .aumi-subpage > nav:not(.next-nav) .nav-link {
    min-height: 46px;
    color: #dcebe8;
    font-size: 12px;
  }

  .aumi-subpage > nav:not(.next-nav) .nav-link[aria-current="page"] {
    color: #75e2f3;
  }

  .aumi-subpage > nav:not(.next-nav) .nav-link::after {
    background: #75e2f3;
  }

  .aumi-subpage:not(.subpage-js) > nav:not(.next-nav) {
    position: relative;
  }

  .aumi-subpage:not(.subpage-js) > nav:not(.next-nav) .nav-left {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .aumi-subpage:not(.subpage-js) > nav:not(.next-nav) .nav-links {
    position: static;
    display: flex;
    max-height: none;
    flex-flow: row wrap;
    gap: 0 20px;
    padding: 0;
    border: 0;
  }

  .aumi-subpage:not(.subpage-js) > nav:not(.next-nav) .nav-burger {
    display: none;
  }
}

@media (max-width: 560px) {
  .aumi-subpage {
    --gutter: 20px;
    --section: 64px;
  }

  .aumi-subpage :is(.cta-btn, .cta-ghost, .footer-cta) {
    padding-inline: 16px;
  }

  .aumi-subpage > nav[aria-label="Principal"]:not(.next-nav) {
    gap: 12px;
  }

  .aumi-subpage .kicker {
    margin-bottom: 18px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aumi-subpage [data-reveal] {
    translate: none !important;
  }
}
