/* Shared application chrome for Next.js and generated Antora pages. */
:root {
  --app-docs-blue: #1e73be;
  --app-docs-blue-bright: #3b95df;
  --app-docs-navy: #071a2c;
  --app-docs-navy-soft: #0e3659;
  --app-docs-focus: #8bc9ff;
  --app-shell-header-height: 64px;
}

.app-shell-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: block;
  width: 100%;
  height: var(--app-shell-header-height);
  color: #fff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.app-shell-header.app-shell-header-fixed {
  position: fixed;
  right: 0;
  left: 0;
}

.app-shell-navbar {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100%;
  height: var(--app-shell-header-height);
  min-height: var(--app-shell-header-height);
  align-items: stretch;
  border-bottom: 1px solid rgb(139 201 255 / 30%);
  background:
    radial-gradient(circle at 72% -140%, rgb(89 176 244 / 75%), transparent 48%),
    linear-gradient(118deg, var(--app-docs-navy) 0%, #0b2c4b 52%, #145f9d 100%);
  box-shadow: 0 8px 28px rgb(7 26 44 / 22%);
}

.app-shell-navbar::before,
.app-shell-navbar::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.app-shell-navbar::before {
  inset: 0;
  background: linear-gradient(90deg, rgb(255 255 255 / 5%), transparent 38%);
}

.app-shell-navbar::after {
  top: -80px;
  right: 160px;
  width: 256px;
  height: 224px;
  background: url("/brand/raciocinios-icon.png") center / contain no-repeat;
  opacity: 0.075;
  transform: rotate(8deg);
}

.app-shell-brand-region {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  padding-left: clamp(12px, 2vw, 24px);
}

.app-shell-navbar .app-shell-brand-region .app-shell-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
}

.app-shell-navbar .app-shell-brand-region .app-shell-brand * {
  padding: 0;
}

.app-shell-brand:focus-visible,
.app-shell-header-action:focus-visible {
  outline: 3px solid var(--app-docs-focus);
  outline-offset: 2px;
}

.app-shell-brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.app-shell-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-shell-brand-copy,
.app-shell-brand-title {
  display: block;
  min-width: 0;
}

.app-shell-brand-copy {
  line-height: 1.05;
}

.app-shell-brand-title {
  overflow: hidden;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell-brand-tagline {
  display: block;
  margin-top: 4px;
  color: rgb(255 255 255 / 68%);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Shared application menu. The same dialog becomes a desktop panel or a
   full-screen mobile destination without maintaining separate navigation. */
html.is-clipped--app-menu {
  overflow: hidden;
}

.app-shell-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: currentcolor;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
}

.app-shell-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 0 12px;
}

.app-shell-header-action {
  position: relative;
  display: flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  min-width: 42px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 12px;
  background: rgb(255 255 255 / 8%);
  color: #fff;
  cursor: pointer;
  font: inherit;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

@media screen and (max-width: 760px) {
  .app-shell-brand-tagline {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .app-shell-header-actions {
    gap: 6px;
    padding: 0 8px;
  }

  .app-shell-brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .app-shell-brand-title {
    font-size: 16px;
  }
}

.app-shell-navbar .app-shell-header-action:hover,
.app-shell-navbar .app-shell-header-action:focus-visible,
.app-shell-navbar .app-shell-menu-toggle.is-active {
  border-color: rgb(255 255 255 / 55%);
  background: rgb(255 255 255 / 17%);
}

.app-shell-navbar .app-shell-header-action:hover {
  transform: translateY(-1px);
}

.app-shell-menu-dialog {
  position: fixed;
  z-index: 100;
  top: calc(var(--app-shell-header-height) + 8px);
  right: clamp(12px, 2vw, 24px);
  bottom: auto;
  left: auto;
  width: min(370px, calc(100vw - 24px));
  max-width: none;
  height: auto;
  max-height: calc(100dvh - var(--app-shell-header-height) - 20px);
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: #172033;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.app-shell-menu-dialog::backdrop {
  background: rgb(3 15 26 / 48%);
  backdrop-filter: blur(3px);
}

.app-shell-menu-panel {
  display: flex;
  max-height: calc(100dvh - var(--app-shell-header-height) - 20px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgb(139 201 255 / 34%);
  border-radius: 20px;
  background: #f7fbff;
  box-shadow:
    0 24px 70px rgb(3 15 26 / 36%),
    0 6px 18px rgb(3 15 26 / 20%);
}

.app-shell-menu-header {
  display: flex;
  min-height: 76px;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgb(139 201 255 / 25%);
  background:
    radial-gradient(circle at 80% -70%, rgb(59 149 223 / 52%), transparent 55%),
    linear-gradient(135deg, #071a2c 0%, #0c3457 100%);
  color: #fff;
}

.app-shell-menu-brand {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.app-shell-menu-brand:hover,
.app-shell-menu-brand:focus-visible {
  color: #fff;
  text-decoration: none;
}

.app-shell-menu-brand:focus-visible,
.app-shell-menu-close:focus-visible,
.app-shell-menu-item:focus-visible {
  outline: 3px solid var(--app-docs-focus);
  outline-offset: 2px;
}

.app-shell-menu-brand img {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
}

.app-shell-menu-brand span,
.app-shell-menu-brand strong,
.app-shell-menu-brand small {
  display: block;
  min-width: 0;
}

.app-shell-menu-brand strong {
  overflow: hidden;
  font-size: 15px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell-menu-brand small {
  margin-top: 4px;
  color: rgb(255 255 255 / 66%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-shell-menu-close {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 12px;
  background: rgb(255 255 255 / 10%);
  color: #fff;
  cursor: pointer;
}

.app-shell-menu-close:hover {
  border-color: rgb(255 255 255 / 52%);
  background: rgb(255 255 255 / 18%);
}

.app-shell-menu-navigation {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  scrollbar-gutter: stable;
}

.app-shell-menu-status {
  margin: 0;
  padding: 22px 12px;
  color: #597086;
  font-size: 13px;
  text-align: center;
}

.app-shell-menu-group {
  margin: 0;
}

.app-shell-menu-group.is-account {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #dbe8f2;
}

.app-shell-menu-group h2 {
  margin: 0 0 7px;
  padding: 0 10px;
  color: #63788b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.app-shell-menu-list {
  display: grid;
  gap: 5px;
}

.app-shell-menu-item {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 11px 7px 7px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: #183a57;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.app-shell-menu-item:hover,
.app-shell-menu-item:focus-visible {
  border-color: #c4def2;
  background: #eaf5fe;
  color: #0e558b;
  text-decoration: none;
}

.app-shell-menu-item:hover {
  transform: translateX(2px);
}

.app-shell-menu-item.is-current {
  border-color: #9dccf1;
  background: #dcefff;
  box-shadow: inset 3px 0 #1e73be;
  color: #0a4d80;
}

.app-shell-menu-item.is-access {
  border-color: #bddcf3;
  background: #eef8ff;
}

.app-shell-menu-item-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #dcefff;
  color: #1e73be;
}

.app-shell-menu-item.is-current .app-shell-menu-item-icon,
.app-shell-menu-item.is-access .app-shell-menu-item-icon {
  background: #1e73be;
  color: #fff;
}

.app-shell-menu-item-copy,
.app-shell-menu-item-copy strong,
.app-shell-menu-item-copy small {
  display: block;
  min-width: 0;
}

.app-shell-menu-item-copy strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell-menu-shortcut {
  min-width: 42px;
  padding: 3px 6px;
  border: 1px solid #b8cde0;
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #f7fbff;
  color: #526c82;
  font-family: inherit;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.app-shell-menu-item:hover .app-shell-menu-shortcut,
.app-shell-menu-item:focus-visible .app-shell-menu-shortcut {
  border-color: #8ebcde;
  background: #fff;
  color: #0e558b;
}

.app-shell-menu-item-copy small {
  margin-top: 4px;
  overflow: hidden;
  color: #64798c;
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media screen and (max-width: 640px) {
  .app-shell-menu-dialog {
    inset: 0;
    width: 100dvw;
    height: 100dvh;
    max-height: none;
  }

  .app-shell-menu-panel {
    width: 100%;
    height: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .app-shell-menu-header {
    min-height: var(--app-shell-header-height);
    padding:
      max(10px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      10px
      max(12px, env(safe-area-inset-left));
  }

  .app-shell-menu-navigation {
    padding:
      16px
      max(14px, env(safe-area-inset-right))
      max(18px, env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left));
  }

  .app-shell-menu-navigation > * {
    width: min(100%, 31rem);
    margin-right: auto;
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell-navbar .app-shell-header-action,
  .app-shell-menu-item {
    transition: none;
  }

  .app-shell-navbar .app-shell-header-action:hover,
  .app-shell-menu-item:hover {
    transform: none;
  }
}

body.status-404 {
  padding-top: 0;
  background: #000;
}

.not-found-shell,
.not-found-shell *,
.not-found-shell *::before,
.not-found-shell *::after {
  box-sizing: border-box;
}

.not-found-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  overflow-x: hidden;
  background: #000;
  color: #172033;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  place-items: center;
}

.not-found-card {
  z-index: 1;
  display: grid;
  width: 100%;
  justify-items: center;
}

.not-found-visual {
  width: min(100vw, 80rem);
  width: min(100vw, 80rem, 120svh);
  margin: 0;
}

.not-found-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.not-found-illustration,
.not-found-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.not-found-illustration {
  z-index: 1;
  opacity: 1;
  transition: opacity 180ms ease;
}

.not-found-video {
  z-index: 2;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.not-found-media.is-video-playing .not-found-illustration {
  opacity: 0;
}

.not-found-media.is-video-playing .not-found-video {
  opacity: 1;
}

.not-found-copy {
  position: relative;
  z-index: 1;
  width: min(42rem, 100%);
  margin-top: clamp(0.75rem, 2vw, 1.5rem);
  padding: clamp(1.1rem, 2.8vw, 1.6rem) clamp(2.2rem, 3.5vw, 2.2rem);
  background: transparent;
  text-align: center;
}

.not-found-code {
  width: fit-content;
  margin: 0 auto 0.55rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #0d2b43;
  color: #8bc9ff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.not-found-copy h1 {
  margin: 0;
  color: #f4f9fd;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.not-found-copy > p:not(.not-found-code) {
  max-width: 36rem;
  margin: 0.75rem auto 0;
  color: #b9c8d6;
  font-size: clamp(0.82rem, 1.8vw, 0.95rem);
  line-height: 1.6;
}

.not-found-home {
  position: relative;
  isolation: isolate;
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin: 1rem auto 0;
  padding: 0.5rem 1rem 0.5rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  color: #123d61;
  text-align: left;
  text-decoration: none;
}

.not-found-home::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid rgb(139 201 255 / 72%);
  border-radius: inherit;
  background: linear-gradient(135deg, rgb(255 255 255 / 98%), rgb(231 244 255 / 98%));
  box-shadow:
    0 0.9rem 2.6rem rgb(0 0 0 / 42%),
    0 0 1.8rem rgb(59 149 223 / 16%);
  content: '';
  transition:
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.not-found-home:hover::before {
  border-color: rgb(139 201 255 / 96%);
  box-shadow:
    0 1.1rem 3rem rgb(0 0 0 / 48%),
    0 0 2.2rem rgb(59 149 223 / 24%);
  transform: translateY(-2px);
}

.not-found-home:hover {
  text-decoration: none;
}

.not-found-home:focus-visible {
  outline: 3px solid var(--app-docs-focus);
  outline-offset: 3px;
}

.not-found-home-logo {
  display: block;
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.not-found-home-copy,
.not-found-home-copy strong,
.not-found-home-copy span {
  display: block;
}

.not-found-home-copy {
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.not-found-home:hover > .not-found-home-logo,
.not-found-home:hover > .not-found-home-copy {
  transform: translateY(-2px);
}

.not-found-home-copy strong {
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.not-found-home-copy span {
  margin-top: 0.2rem;
  color: #637488;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media screen and (max-width: 640px) {
  .not-found-shell {
    align-items: start;
  }

  .not-found-copy {
    width: 100%;
    margin-top: 0.75rem;
  }

  .not-found-home {
    margin-top: 0.85rem;
  }

  .not-found-home-logo {
    width: 3.5rem;
    height: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .not-found-home::before,
  .not-found-home-logo,
  .not-found-home-copy,
  .not-found-illustration,
  .not-found-video {
    transition: none;
  }

  .not-found-home:hover::before,
  .not-found-home:hover > .not-found-home-logo,
  .not-found-home:hover > .not-found-home-copy {
    transform: none;
  }

  .not-found-video {
    display: none;
  }
}
