/*
 * Grupo Unilabor — componentes para páginas internas
 *
 * Carregar depois de biograph-theme.css. Este arquivo reutiliza os tokens
 * globais do tema e mantém toda a API de componentes sob o prefixo ubx-.
 */

/* Estrutura e utilitários */

.ubx-page {
  min-width: 20rem;
  overflow-x: clip;
  color: var(--ink-soft);
  background: var(--paper);
}

.ubx-page [hidden] {
  display: none !important;
}

.ubx-shell {
  width: min(100%, calc(var(--shell) + var(--gutter) + var(--gutter)));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ubx-section {
  position: relative;
  padding-block: var(--section-space);
}

.ubx-section--compact {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.ubx-section--surface {
  background: var(--surface);
}

.ubx-section--dark {
  color: var(--paper);
  background: var(--night);
}

.ubx-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ubx-eyebrow::before {
  width: 1.125rem;
  height: 0.125rem;
  flex: 0 0 auto;
  background: currentColor;
  content: "";
}

.ubx-section--dark .ubx-eyebrow,
.ubx-page-intro--dark .ubx-eyebrow,
.ubx-page-intro--media .ubx-eyebrow,
.ubx-editorial--dark .ubx-eyebrow {
  color: rgba(255, 255, 255, 0.68);
}

.ubx-actions,
.ubx-page-intro__actions,
.ubx-editorial__actions,
.ubx-callout__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}

.ubx-section-heading {
  display: grid;
  margin-bottom: clamp(2.75rem, 7vw, 5rem);
  gap: 1.25rem;
}

.ubx-section-heading__title {
  max-width: 18ch;
  color: var(--ink-soft);
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.ubx-section-heading__aside {
  display: grid;
  max-width: 40rem;
  align-content: end;
  gap: 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.ubx-section--dark .ubx-section-heading__title {
  color: var(--paper);
}

.ubx-section--dark .ubx-section-heading__aside {
  color: rgba(255, 255, 255, 0.7);
}

/* Breadcrumb */

.ubx-breadcrumb {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
}

.ubx-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 0.375rem 0.625rem;
}

.ubx-breadcrumb li {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.625rem;
}

.ubx-breadcrumb li + li::before {
  color: var(--line);
  content: "/";
}

.ubx-breadcrumb a {
  display: inline-flex;
  min-height: 2.625rem;
  align-items: center;
  color: inherit;
  transition: color var(--duration-short) var(--ease);
}

.ubx-breadcrumb a:hover {
  color: var(--brand);
}

.ubx-breadcrumb [aria-current="page"] {
  overflow: hidden;
  max-width: min(44vw, 24rem);
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ubx-page-intro--dark .ubx-breadcrumb,
.ubx-page-intro--media .ubx-breadcrumb {
  color: rgba(255, 255, 255, 0.68);
}

.ubx-page-intro--dark .ubx-breadcrumb li + li::before,
.ubx-page-intro--media .ubx-breadcrumb li + li::before {
  color: rgba(255, 255, 255, 0.3);
}

.ubx-page-intro--dark .ubx-breadcrumb [aria-current="page"],
.ubx-page-intro--media .ubx-breadcrumb [aria-current="page"] {
  color: var(--paper);
}

/* PageIntro */

.ubx-page-intro {
  position: relative;
  overflow: clip;
  padding-block:
    calc(var(--header-height) + clamp(3.5rem, 8vw, 7rem))
    clamp(4.5rem, 9vw, 8rem);
  border-bottom: 0.0625rem solid var(--line);
  background: var(--paper);
  isolation: isolate;
}

.ubx-page-intro__inner {
  display: grid;
  gap: 2.25rem;
}

.ubx-page-intro__heading {
  display: grid;
  align-content: end;
  gap: 1.25rem;
}

.ubx-page-intro__title {
  max-width: 15ch;
  color: var(--ink-soft);
  font-size: clamp(2.75rem, 10vw, 4.75rem);
  font-weight: 400;
  line-height: 0.97;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.ubx-page-intro__copy {
  display: grid;
  max-width: 38rem;
  align-content: end;
  gap: 1.25rem;
}

.ubx-page-intro__lead {
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.1875rem);
  line-height: 1.65;
}

.ubx-page-intro__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ubx-page-intro__media,
.ubx-page-intro__shade {
  position: absolute;
  inset: 0;
}

.ubx-page-intro__media {
  z-index: -2;
}

.ubx-page-intro__media :where(img, picture, video),
.ubx-page-intro__media picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ubx-page-intro__shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 9, 15, 0.48), rgba(5, 9, 15, 0.18) 36%, rgba(5, 9, 15, 0.86)),
    linear-gradient(90deg, rgba(5, 9, 15, 0.52), transparent 76%);
}

.ubx-page-intro--surface {
  background: var(--surface);
}

.ubx-page-intro--compact {
  padding-block:
    calc(var(--header-height) + clamp(2.75rem, 7vw, 5rem))
    clamp(3.25rem, 7vw, 5.5rem);
}

.ubx-page-intro--dark,
.ubx-page-intro--media {
  color: var(--paper);
  background: var(--night);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.ubx-page-intro--media {
  display: flex;
  min-height: min(46rem, 88svh);
  align-items: flex-end;
}

.ubx-page-intro--dark .ubx-page-intro__title,
.ubx-page-intro--media .ubx-page-intro__title {
  color: var(--paper);
}

.ubx-page-intro--dark .ubx-page-intro__lead,
.ubx-page-intro--media .ubx-page-intro__lead {
  color: rgba(255, 255, 255, 0.78);
}

.ubx-page-intro--dark .ubx-page-intro__meta,
.ubx-page-intro--media .ubx-page-intro__meta {
  color: rgba(255, 255, 255, 0.72);
}

/* Split editorial */

.ubx-editorial {
  display: grid;
  align-items: stretch;
  gap: clamp(2rem, 7vw, 6rem);
}

.ubx-editorial__media {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 20rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-media);
  background: var(--line);
}

/* Componentes complementares do catálogo de seções */

.ubx-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

.ubx-gallery__item {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-media);
  background: var(--line);
}

.ubx-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-medium) var(--ease);
}

.ubx-gallery__item:hover img,
.ubx-gallery__item:focus-visible img {
  transform: scale(1.025);
}

.ubx-manifesto {
  overflow: hidden;
  color: var(--paper);
  background: var(--night);
}

.ubx-manifesto__grid {
  display: grid;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.ubx-manifesto__copy {
  display: grid;
  align-content: center;
  gap: 2rem;
}

.ubx-manifesto .ubx-eyebrow {
  color: rgba(255, 255, 255, 0.62);
}

.ubx-manifesto blockquote {
  max-width: 20ch;
  margin: 0;
  color: var(--paper);
  font-size: clamp(2.25rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.ubx-manifesto blockquote :where(p, div) {
  margin: 0;
}

.ubx-manifesto__media {
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-media);
  background: rgba(255, 255, 255, 0.08);
}

.ubx-manifesto__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ubx-team-card__media {
  aspect-ratio: 4 / 5;
}

.ubx-service-card .ubx-card__body {
  min-height: 20rem;
}

.ubx-service-card__icon {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
  border: 0.0625rem solid var(--line);
  border-radius: 999px;
  color: var(--brand);
  background: var(--paper);
  font-size: 0.75rem;
  font-weight: 800;
  place-items: center;
}

.ubx-service-card__icon img,
.ubx-service-card__icon svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ubx-service-card__indication {
  display: grid;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 0.0625rem solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.55;
  gap: 0.25rem;
}

.ubx-service-card__indication strong {
  color: var(--ink);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ubx-card-grid--scroll {
  display: flex;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  padding-bottom: 1rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: var(--gutter);
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) var(--line);
}

.ubx-card-grid--scroll > * {
  flex: 0 0 min(84vw, 22rem);
  scroll-snap-align: start;
}

.ubx-instagram__embed {
  min-width: 0;
  overflow: hidden;
}

.ubx-contact-section--single {
  max-width: 52rem;
  margin-inline: auto;
}

.ubx-contact-info__grid {
  display: grid;
  align-items: stretch;
  gap: clamp(2rem, 6vw, 5rem);
}

.ubx-contact-map {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 1rem;
}

.ubx-contact-map iframe {
  width: 100%;
  min-height: 26rem;
  border: 0;
  border-radius: var(--radius-media);
  background: var(--line);
}

.ubx-contact-info .ubx-facts .ubx-actions {
  padding-top: 1.5rem;
}

.ubx-product-card .ubx-card__body {
  min-height: 12rem;
}

.ubx-product-card .ubx-card__title a {
  color: inherit;
}

@media (min-width: 40rem) {
  .ubx-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ubx-gallery--3 .ubx-gallery__item:first-child,
  .ubx-gallery--4 .ubx-gallery__item:first-child {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
  }
}

@media (min-width: 64rem) {
  .ubx-gallery--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ubx-gallery--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ubx-gallery--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ubx-gallery--3 .ubx-gallery__item:first-child,
  .ubx-gallery--4 .ubx-gallery__item:first-child {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
  }

  .ubx-manifesto--split .ubx-manifesto__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr);
    align-items: stretch;
  }

  .ubx-contact-info__grid {
    grid-template-columns: minmax(20rem, 0.78fr) minmax(0, 1.22fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ubx-gallery__item img {
    transition: none;
  }

  .ubx-gallery__item:hover img,
  .ubx-gallery__item:focus-visible img {
    transform: none;
  }
}

.ubx-editorial__media :where(img, picture, video),
.ubx-editorial__media picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ubx-editorial__media--portrait {
  aspect-ratio: 4 / 5;
}

.ubx-editorial__caption {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  left: 0.75rem;
  width: fit-content;
  max-width: calc(100% - 1.5rem);
  padding: 0.625rem 0.75rem;
  border: 0.0625rem solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-control);
  color: var(--paper);
  background: rgba(13, 17, 24, 0.78);
  font-size: 0.6875rem;
  line-height: 1.5;
  -webkit-backdrop-filter: blur(0.75rem);
  backdrop-filter: blur(0.75rem);
}

.ubx-editorial__content {
  display: grid;
  align-content: center;
  gap: 1.5rem;
}

.ubx-editorial__title {
  max-width: 15ch;
  color: var(--ink-soft);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.ubx-editorial__copy {
  display: grid;
  max-width: 40rem;
  gap: 1rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.72;
}

.ubx-editorial--surface {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border-radius: calc(var(--radius-media) + 0.25rem);
  background: var(--surface);
}

.ubx-editorial--dark {
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border-radius: calc(var(--radius-media) + 0.25rem);
  color: var(--paper);
  background: var(--night);
}

.ubx-editorial--dark .ubx-editorial__title {
  color: var(--paper);
}

.ubx-editorial--dark .ubx-editorial__copy {
  color: rgba(255, 255, 255, 0.72);
}

/* Rich text e callouts */

.ubx-rich-text {
  width: min(100%, 48rem);
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.78;
}

.ubx-rich-text--wide {
  width: min(100%, 64rem);
}

.ubx-rich-text > * {
  margin-block: 0;
}

.ubx-rich-text > * + * {
  margin-top: 1.5rem;
}

.ubx-rich-text > :is(h1, h2, h3, h4) {
  scroll-margin-top: calc(var(--header-height) + 2rem);
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.ubx-rich-text > :is(h1, h2) {
  max-width: 20ch;
  margin-top: 3.5rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.06;
}

.ubx-rich-text > h3 {
  max-width: 28ch;
  margin-top: 2.75rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.15;
}

.ubx-rich-text > h4 {
  margin-top: 2.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.ubx-rich-text__lead {
  color: var(--ink);
  font-size: clamp(1.1875rem, 2.7vw, 1.5rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.015em;
}

.ubx-rich-text a {
  color: var(--brand-deep);
  text-decoration: underline;
  text-decoration-thickness: 0.0625rem;
  text-underline-offset: 0.2em;
}

.ubx-rich-text a:hover {
  color: var(--brand);
}

.ubx-rich-text :where(ul, ol):not([class]) {
  display: grid;
  padding-left: 1.4rem;
  gap: 0.75rem;
}

.ubx-rich-text ul:not([class]) {
  list-style: disc;
}

.ubx-rich-text ol:not([class]) {
  list-style: decimal;
}

.ubx-rich-text li::marker {
  color: var(--brand);
  font-weight: 700;
}

.ubx-rich-text blockquote {
  margin-inline: 0;
  padding: 1.5rem 0 1.5rem clamp(1.25rem, 4vw, 2rem);
  border-left: 0.1875rem solid var(--brand);
  color: var(--ink);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.ubx-rich-text blockquote cite {
  display: block;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ubx-rich-text figure {
  margin-inline: 0;
}

.ubx-rich-text figure img {
  width: 100%;
  border-radius: var(--radius-media);
}

.ubx-rich-text figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.ubx-rich-text hr {
  height: 0.0625rem;
  margin-block: 3rem;
  border: 0;
  background: var(--line);
}

/* História institucional */

/* Missão, visão e valores */

.ubx-principles {
  overflow: hidden;
  background:
    radial-gradient(circle at 9% 10%, rgba(12, 108, 243, 0.08), transparent 20rem),
    var(--surface);
}

.ubx-principles::after {
  position: absolute;
  top: clamp(3rem, 8vw, 7rem);
  left: clamp(-8rem, -6vw, -3rem);
  width: clamp(13rem, 24vw, 24rem);
  border: 0.0625rem solid rgba(12, 108, 243, 0.14);
  border-radius: 50%;
  aspect-ratio: 1;
  content: "";
  pointer-events: none;
}

.ubx-principles__layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(3rem, 8vw, 7rem);
}

.ubx-principles__intro {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: clamp(25rem, 92vw, 36rem);
  max-width: none;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 1.5rem;
  background: var(--night);
}

.ubx-principles__intro::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 12, 25, 0.08) 10%, rgba(4, 12, 25, 0.28) 52%, rgba(4, 12, 25, 0.94) 100%),
    linear-gradient(90deg, rgba(4, 12, 25, 0.42), transparent 72%);
  content: "";
  pointer-events: none;
}

.ubx-principles__photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
  filter: saturate(0.88) contrast(1.04);
}

.ubx-principles__intro .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.ubx-principles__intro h1 {
  max-width: 10ch;
  margin: 1.25rem 0 0;
  color: var(--paper);
  font-size: clamp(3rem, 8.5vw, 5.75rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.06em;
  text-shadow: 0 0.125rem 1.5rem rgba(4, 12, 25, 0.28);
  text-wrap: balance;
}

.ubx-principles__content {
  min-width: 0;
}

.ubx-principles__cards {
  display: grid;
  gap: 1rem;
}

.ubx-principles__cards > * {
  min-width: 0;
  margin: 0;
}

.ubx-principles__cards > h2 {
  z-index: 1;
  align-self: start;
  padding: 2rem 2rem 0;
  color: var(--paper);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  pointer-events: none;
}

.ubx-principles__cards > h2:nth-of-type(1),
.ubx-principles__cards > p:nth-of-type(1) {
  grid-area: 1 / 1;
}

.ubx-principles__cards > p:nth-of-type(1) {
  min-height: 18rem;
  padding: 7rem 2rem 2rem;
  border-radius: 1.5rem;
  color: rgba(255, 255, 255, 0.76);
  background:
    radial-gradient(circle at 88% 18%, rgba(12, 108, 243, 0.38), transparent 8rem),
    var(--night);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.65;
}

.ubx-principles__cards > h2:nth-of-type(2),
.ubx-principles__cards > p:nth-of-type(2) {
  grid-area: 2 / 1;
}

.ubx-principles__cards > p:nth-of-type(2) {
  min-height: 18rem;
  padding: 7rem 2rem 2rem;
  border-radius: 1.5rem;
  color: rgba(255, 255, 255, 0.88);
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 255, 255, 0.22), transparent 8rem),
    var(--brand);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.65;
}

.ubx-principles__cards > h2:nth-of-type(3),
.ubx-principles__cards > ul:first-of-type {
  grid-area: 3 / 1;
}

.ubx-principles__cards > h2:nth-of-type(3) {
  color: var(--ink);
}

.ubx-principles__cards > ul:first-of-type {
  display: grid;
  margin: 0;
  padding: 7rem 2rem 2rem;
  border: 0.0625rem solid var(--line);
  border-radius: 1.5rem;
  background: var(--paper);
  gap: 0;
  list-style: none;
}

.ubx-principles__cards > ul:first-of-type > li {
  position: relative;
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  margin: 0;
  padding: 1rem 0 1rem 1.5rem;
  border-top: 0.0625rem solid var(--line);
  color: var(--ink);
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  line-height: 1.4;
}

.ubx-principles__cards > ul:first-of-type > li::before {
  position: absolute;
  left: 0;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.ubx-principles__cards > :not(h2, p, ul) {
  grid-column: 1 / -1;
}

.ubx-principles__content > .ubx-actions {
  margin-top: 2rem;
}

.ubx-story__layout {
  display: grid;
  gap: clamp(2.75rem, 8vw, 5rem);
}

.ubx-story__intro {
  max-width: 30rem;
}

.ubx-story__intro h1 {
  max-width: 9ch;
  margin: 1.25rem 0 0;
  color: var(--ink);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.ubx-story__content {
  min-width: 0;
}

.ubx-story__chapters {
  border-top: 0.0625rem solid var(--line);
}

.ubx-story__chapters > p {
  --ubx-story-pad-block: clamp(1.5rem, 3vw, 2.25rem);
  position: relative;
  display: block;
  margin: 0;
  padding: var(--ubx-story-pad-block) 0;
  border-bottom: 0.0625rem solid var(--line);
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.72;
}

.ubx-story__chapters > :where(h3, h4, ul, ol, blockquote) {
  margin: 1.75rem 0;
}

.ubx-story__content > .ubx-actions {
  margin-top: 2rem;
}

.ubx-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius-media);
  overscroll-behavior-inline: contain;
}

.ubx-table {
  width: 100%;
  min-width: 38rem;
  border-collapse: collapse;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 0.875rem;
  line-height: 1.55;
}

.ubx-table th,
.ubx-table td {
  padding: 1rem;
  border-bottom: 0.0625rem solid var(--line);
  text-align: left;
  vertical-align: top;
}

.ubx-table th {
  color: var(--ink);
  background: var(--surface);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ubx-table tr:last-child td {
  border-bottom: 0;
}

.ubx-callout {
  display: grid;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 0.0625rem solid var(--line);
  border-left: 0.25rem solid var(--brand);
  border-radius: var(--radius-media);
  color: var(--ink-soft);
  background: var(--surface);
  gap: 0.75rem;
}

.ubx-callout__title {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.ubx-callout__copy {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.ubx-callout--dark {
  border-color: rgba(255, 255, 255, 0.16);
  border-left-color: var(--brand);
  color: var(--paper);
  background: var(--night);
}

.ubx-callout--dark .ubx-callout__title {
  color: var(--paper);
}

.ubx-callout--dark .ubx-callout__copy {
  color: rgba(255, 255, 255, 0.72);
}

.ubx-facts {
  display: grid;
  margin: 0;
  border-top: 0.0625rem solid var(--line);
}

.ubx-facts__item {
  display: grid;
  padding-block: 1rem;
  border-bottom: 0.0625rem solid var(--line);
  gap: 0.25rem;
}

.ubx-facts dt {
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ubx-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
}

/* Timeline */

.ubx-timeline {
  position: relative;
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 2rem;
}

.ubx-timeline::before {
  position: absolute;
  top: 0.75rem;
  bottom: 0.75rem;
  left: 0.4375rem;
  width: 0.0625rem;
  background: var(--line);
  content: "";
}

.ubx-timeline__item {
  position: relative;
  padding-left: 2.75rem;
}

.ubx-timeline__item::before {
  position: absolute;
  z-index: 1;
  top: 0.45rem;
  left: 0;
  width: 0.9375rem;
  height: 0.9375rem;
  border: 0.1875rem solid var(--paper);
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0.0625rem var(--brand);
  content: "";
}

.ubx-timeline__content {
  display: grid;
  padding-bottom: 2rem;
  border-bottom: 0.0625rem solid var(--line);
  gap: 0.75rem;
}

.ubx-timeline__meta {
  color: var(--brand);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ubx-timeline__title {
  color: var(--ink);
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.ubx-timeline__copy {
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.ubx-section--dark .ubx-timeline::before,
.ubx-section--dark .ubx-timeline__content {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
}

.ubx-section--dark .ubx-timeline::before {
  background: rgba(255, 255, 255, 0.16);
}

.ubx-section--dark .ubx-timeline__item::before {
  border-color: var(--night);
}

.ubx-section--dark .ubx-timeline__title {
  color: var(--paper);
}

.ubx-section--dark .ubx-timeline__copy {
  color: rgba(255, 255, 255, 0.68);
}

/* Métricas */

.ubx-metrics {
  --ubx-metric-columns: 3;
  display: grid;
  border-top: 0.0625rem solid var(--line);
}

.ubx-metrics--2 {
  --ubx-metric-columns: 2;
}

.ubx-metrics--4 {
  --ubx-metric-columns: 4;
}

.ubx-metric {
  display: grid;
  min-height: 11.5rem;
  align-content: center;
  padding: 1.75rem 0;
  border-bottom: 0.0625rem solid var(--line);
  color: var(--ink);
  gap: 0.625rem;
}

a.ubx-metric {
  transition:
    color var(--duration-short) var(--ease),
    background-color var(--duration-short) var(--ease);
}

a.ubx-metric:hover {
  color: var(--brand);
}

.ubx-metric__value {
  display: block;
  color: currentColor;
  font-size: clamp(3.25rem, 13vw, 5.75rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.ubx-metric__label {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
}

.ubx-metric__copy {
  max-width: 25rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.ubx-metrics--dark {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.ubx-metrics--dark .ubx-metric {
  color: var(--brand);
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.ubx-metrics--dark .ubx-metric__label {
  color: var(--paper);
}

.ubx-metrics--dark .ubx-metric__copy {
  color: rgba(255, 255, 255, 0.64);
}

/* Cards */

.ubx-card-grid {
  --ubx-card-columns: 1;
  display: grid;
  grid-template-columns: repeat(var(--ubx-card-columns), minmax(0, 1fr));
  gap: 2.5rem 1.25rem;
}

.ubx-card-grid--2 {
  --ubx-card-columns: 1;
}

.ubx-card-grid--3 {
  --ubx-card-columns: 1;
}

.ubx-card-grid--4 {
  --ubx-card-columns: 1;
}

.ubx-card {
  display: grid;
  min-width: 0;
  align-content: start;
  overflow: hidden;
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius-media);
  color: var(--ink);
  background: var(--paper);
}

.ubx-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.45 / 1;
  background: var(--line);
}

.ubx-card__media :where(img, picture),
.ubx-card__media picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-medium) var(--ease);
}

.ubx-card__body {
  display: grid;
  min-width: 0;
  align-content: start;
  padding: clamp(1.25rem, 4vw, 1.75rem);
  gap: 0.875rem;
}

.ubx-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ubx-card__meta > :first-child {
  color: var(--brand);
}

.ubx-card__title {
  color: var(--ink);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/*
 * Feature cards share the narrower editorial column with the body copy.
 * Keep long institutional labels readable instead of letting the grid's
 * min-content width clip them at desktop breakpoints.
 */
.ubx-editorial__content > .ubx-card-grid--3 .ubx-card__body {
  padding: clamp(1rem, 1.6vw, 1.5rem);
}

.ubx-editorial__content > .ubx-card-grid--3 .ubx-card__title {
  overflow-wrap: break-word;
  font-size: clamp(1.125rem, 1.55vw, 1.375rem);
}

.ubx-card__copy {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.ubx-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.375rem;
  gap: 0.75rem;
}

.ubx-card--surface {
  background: var(--surface);
}

.ubx-card--dark {
  color: var(--paper);
  background: var(--night);
  border-color: var(--night);
}

.ubx-card--dark .ubx-card__title {
  color: var(--paper);
}

.ubx-card--dark .ubx-card__copy,
.ubx-card--dark .ubx-card__meta {
  color: rgba(255, 255, 255, 0.66);
}

.ubx-card--interactive {
  transition:
    color var(--duration-short) var(--ease),
    border-color var(--duration-short) var(--ease),
    box-shadow var(--duration-medium) var(--ease),
    transform var(--duration-medium) var(--ease);
}

.ubx-card--interactive:hover,
.ubx-card--interactive:focus-within {
  border-color: rgba(12, 108, 243, 0.42);
  box-shadow: 0 1.25rem 3rem rgba(15, 22, 34, 0.1);
  transform: translateY(-0.25rem);
}

.ubx-card--interactive:hover .ubx-card__media img,
.ubx-card--interactive:focus-within .ubx-card__media img {
  transform: scale(1.025);
}

/* Diretórios, busca e filtros */

.ubx-directory {
  display: grid;
  gap: 2.5rem;
}

.ubx-directory__toolbar {
  display: grid;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius-media);
  background: var(--paper);
  gap: 1rem;
}

.ubx-directory__search {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 0.0625rem solid #dcdde1;
  border-radius: 0.625rem;
  background: var(--paper);
  transition:
    border-color var(--duration-short) var(--ease),
    box-shadow var(--duration-short) var(--ease);
}

.ubx-directory__search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.1875rem rgba(12, 108, 243, 0.12);
}

.ubx-directory__search input {
  width: 100%;
  min-width: 0;
  height: 3.25rem;
  padding: 0 1rem;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 0.875rem;
}

.ubx-directory__search input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.ubx-directory__search-button {
  display: inline-grid;
  min-width: 3.25rem;
  min-height: 3.25rem;
  padding-inline: 1rem;
  border: 0;
  color: var(--paper);
  background: var(--brand);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 800;
  place-items: center;
  transition: background-color var(--duration-short) var(--ease);
}

.ubx-directory__search-button:hover {
  background: var(--brand-deep);
}

.ubx-directory__filters {
  display: flex;
  margin-inline: clamp(-1.5rem, -3vw, -1rem);
  padding-inline: clamp(1rem, 3vw, 1.5rem);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  gap: 0.5rem;
}

.ubx-directory__filters::-webkit-scrollbar {
  display: none;
}

.ubx-chip {
  display: inline-flex;
  min-height: 2.75rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: 0.0625rem solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--paper);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  transition:
    color var(--duration-short) var(--ease),
    background-color var(--duration-short) var(--ease),
    border-color var(--duration-short) var(--ease);
}

.ubx-chip:hover,
.ubx-chip[aria-pressed="true"],
.ubx-chip[aria-current="true"],
.ubx-chip[data-active="true"] {
  color: var(--paper);
  background: var(--brand);
  border-color: var(--brand);
}

body.biograph-theme .ubx-directory__filters .ubx-chip {
  color: var(--muted);
}

body.biograph-theme .ubx-directory__filters .ubx-chip:hover,
body.biograph-theme .ubx-directory__filters .ubx-chip:focus-visible,
body.biograph-theme .ubx-directory__filters .ubx-chip[aria-pressed="true"],
body.biograph-theme .ubx-directory__filters .ubx-chip[aria-current="true"],
body.biograph-theme .ubx-directory__filters .ubx-chip[data-active="true"] {
  color: var(--paper);
  background: var(--brand);
  border-color: var(--brand);
}

.ubx-directory__status {
  min-height: 1.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ubx-directory__list {
  display: grid;
  border-top: 0.0625rem solid var(--line);
}

.ubx-directory-card {
  position: relative;
  display: grid;
  padding-block: 1.5rem;
  border-bottom: 0.0625rem solid var(--line);
  color: var(--ink);
  gap: 1rem;
  transition:
    color var(--duration-short) var(--ease),
    background-color var(--duration-short) var(--ease);
}

.ubx-directory-card:hover,
.ubx-directory-card:focus-within,
.ubx-directory-card[data-active="true"] {
  background: rgba(12, 108, 243, 0.045);
}

.ubx-directory-card__logo {
  display: grid;
  width: 5rem;
  height: 3.5rem;
  place-items: center;
  overflow: hidden;
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius-control);
  background: var(--paper);
}

.ubx-directory-card__logo img {
  width: 100%;
  height: 100%;
  padding: 0.5rem;
  object-fit: contain;
}

.ubx-directory-card__logo svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brand);
}

.ubx-directory-card__body {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 0.5rem;
}

.ubx-directory-card__meta {
  color: var(--brand);
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ubx-directory-card__title {
  color: var(--ink);
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ubx-directory-card__copy {
  max-width: 45rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

.ubx-directory-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.ubx-directory-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.ubx-directory-card--plain {
  grid-template-columns: minmax(0, 1fr);
}

.ubx-directory__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.ubx-empty-state {
  display: grid;
  min-height: 18rem;
  place-content: center;
  padding: clamp(2rem, 6vw, 4rem);
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius-media);
  color: var(--muted);
  background: var(--paper);
  text-align: center;
  gap: 0.75rem;
}

.ubx-empty-state__title {
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
}

.ubx-empty-state__copy {
  max-width: 32rem;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.ubx-skeleton {
  min-height: 10rem;
  overflow: hidden;
  border-radius: var(--radius-media);
  background:
    linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.72) 50%, transparent 70%),
    var(--line);
  background-size: 220% 100%;
  animation: ubx-skeleton-pulse 1.4s linear infinite;
}

@keyframes ubx-skeleton-pulse {
  to {
    background-position-x: -220%;
  }
}

.ubx-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
  gap: 0.375rem;
}

.ubx-pagination a,
.ubx-pagination span {
  display: inline-grid;
  min-width: 2.75rem;
  min-height: 2.75rem;
  place-items: center;
  padding: 0.5rem;
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius-control);
  color: var(--ink);
  background: var(--paper);
  font-size: 0.8125rem;
  font-weight: 700;
}

.ubx-pagination a:hover,
.ubx-pagination [aria-current="page"] {
  color: var(--paper);
  background: var(--brand);
  border-color: var(--brand);
}

.ubx-pagination [aria-disabled="true"] {
  color: var(--muted);
  opacity: 0.5;
}

/* Formulários */

.ubx-form {
  --ubx-danger: #b42318;
  --ubx-danger-deep: #8f1c13;
  --ubx-success: #0b6842;
  display: grid;
  width: 100%;
  gap: 2rem;
}

.ubx-form__section {
  display: grid;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius-media);
  background: var(--paper);
  gap: 1.5rem;
}

.ubx-form__section-title {
  color: var(--ink);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ubx-form__section-copy {
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

.ubx-form__grid {
  display: grid;
  gap: 1.25rem;
}

.ubx-form__field {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 0.5rem;
}

.ubx-form__field--full {
  grid-column: 1 / -1;
}

.ubx-form__label,
.ubx-form legend {
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
}

.ubx-form__required {
  color: var(--brand);
}

.ubx-form :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 3.25rem;
  padding: 0.75rem 0.875rem;
  border: 0.0625rem solid #dcdde1;
  border-radius: 0.625rem;
  outline: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 0.9375rem;
  line-height: 1.5;
  transition:
    border-color var(--duration-short) var(--ease),
    box-shadow var(--duration-short) var(--ease),
    background-color var(--duration-short) var(--ease);
}

.ubx-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.ubx-form select {
  cursor: pointer;
}

.ubx-form :where(input, select, textarea)::placeholder {
  color: var(--muted);
  opacity: 1;
}

.ubx-form :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.1875rem rgba(12, 108, 243, 0.12);
}

.ubx-form :where(input, select, textarea)[aria-invalid="true"],
.ubx-form__field[data-state="error"] :where(input, select, textarea) {
  border-color: var(--ubx-danger);
  box-shadow: 0 0 0 0.1875rem rgba(180, 35, 24, 0.1);
}

.ubx-form :where(input, select, textarea):disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: var(--surface);
  opacity: 0.75;
}

.ubx-form input[type="file"] {
  min-height: auto;
  padding: 0.5rem;
  cursor: pointer;
}

.ubx-form input[type="file"]::file-selector-button {
  min-height: 2.5rem;
  margin-right: 0.75rem;
  padding: 0.5rem 0.875rem;
  border: 0;
  border-radius: var(--radius-control);
  color: var(--paper);
  background: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
}

.ubx-form__help,
.ubx-form__error {
  font-size: 0.75rem;
  line-height: 1.5;
}

.ubx-form__help {
  color: var(--muted);
}

.ubx-form__error {
  color: var(--ubx-danger);
  font-weight: 700;
}

.ubx-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ubx-form__choices {
  display: grid;
  margin-top: 0.75rem;
  gap: 0.625rem;
}

.ubx-choice {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.55;
}

.ubx-choice input {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.15rem 0 0;
  accent-color: var(--brand);
}

.ubx-choice a {
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.ubx-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.ubx-form__captcha {
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.ubx-form__status {
  display: grid;
  padding: 1rem 1.25rem;
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius-control);
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 0.875rem;
  line-height: 1.55;
  gap: 0.25rem;
}

.ubx-form__status--success {
  border-color: rgba(22, 166, 106, 0.35);
  color: var(--ubx-success);
  background: rgba(22, 166, 106, 0.08);
}

.ubx-form__status--error {
  border-color: rgba(180, 35, 24, 0.3);
  color: var(--ubx-danger-deep);
  background: rgba(180, 35, 24, 0.07);
}

.ubx-form__honeypot {
  position: absolute !important;
  width: 0.0625rem !important;
  height: 0.0625rem !important;
  margin: -0.0625rem !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Página legal */

.ubx-legal {
  padding-block: clamp(3.5rem, 8vw, 7rem) var(--section-space);
}

.ubx-legal__layout {
  display: grid;
  align-items: start;
  gap: 3rem;
}

.ubx-legal__aside {
  display: grid;
  gap: 1rem;
}

.ubx-legal__updated {
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ubx-legal__toc {
  display: grid;
  padding: 1.25rem;
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius-media);
  background: var(--surface);
  gap: 0.5rem;
}

.ubx-legal__toc-title {
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ubx-legal__toc a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  padding-block: 0.5rem;
  border-bottom: 0.0625rem solid var(--line);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

.ubx-legal__toc a:last-child {
  border-bottom: 0;
}

.ubx-legal__toc a:hover,
.ubx-legal__toc a[aria-current="true"] {
  color: var(--brand);
}

.ubx-legal__body {
  min-width: 0;
}

/* 404 e erros */

.ubx-error-page {
  position: relative;
  display: grid;
  min-height: max(42rem, calc(100svh - var(--header-height)));
  place-items: center;
  overflow: hidden;
  padding-block:
    calc(var(--header-height) + clamp(3rem, 8vw, 6rem))
    clamp(4rem, 9vw, 7rem);
  background: var(--surface);
  isolation: isolate;
}

.ubx-error-page::before {
  position: absolute;
  z-index: -1;
  width: min(80vw, 42rem);
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  border: 0.0625rem solid rgba(12, 108, 243, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(12, 108, 243, 0.12), transparent 64%);
  box-shadow:
    0 0 0 5rem rgba(12, 108, 243, 0.025),
    0 0 0 10rem rgba(12, 108, 243, 0.018);
  content: "";
  transform: translate(-50%, -50%);
}

.ubx-error-page__inner {
  display: grid;
  width: min(100%, 50rem);
  justify-items: center;
  text-align: center;
  gap: 1.25rem;
}

.ubx-error-page__code {
  color: var(--brand);
  font-size: clamp(4.5rem, 24vw, 11rem);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.07em;
}

.ubx-error-page__title {
  max-width: 16ch;
  color: var(--ink);
  font-size: clamp(2.25rem, 7vw, 4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.ubx-error-page__copy {
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.65;
}

.ubx-error-page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
  gap: 0.625rem;
}

.ubx-error-page__links {
  display: grid;
  width: 100%;
  margin-top: clamp(2rem, 6vw, 4rem);
  border-top: 0.0625rem solid var(--line);
}

.ubx-error-page__links a {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 0.0625rem solid var(--line);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  transition:
    color var(--duration-short) var(--ease),
    padding var(--duration-short) var(--ease);
}

.ubx-error-page__links a::after {
  color: var(--brand);
  content: "→";
}

.ubx-error-page__links a:hover {
  padding-inline: 0.5rem;
  color: var(--brand);
}

/* Tablet */

@media (min-width: 43.75rem) {
  .ubx-section-heading {
    grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
    align-items: end;
    gap: clamp(3rem, 8vw, 7rem);
  }

  .ubx-section-heading__aside {
    justify-self: end;
  }

  .ubx-page-intro__inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
    align-items: end;
    gap: clamp(3rem, 8vw, 7rem);
  }

  .ubx-page-intro__heading .ubx-breadcrumb {
    margin-bottom: clamp(1rem, 3vw, 2rem);
  }

  .ubx-facts__item {
    grid-template-columns: minmax(8rem, 0.35fr) minmax(0, 0.65fr);
    align-items: start;
    gap: 1.5rem;
  }

  .ubx-metrics {
    grid-template-columns: repeat(var(--ubx-metric-columns), minmax(0, 1fr));
  }

  .ubx-metrics--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ubx-metric {
    min-height: 15rem;
    padding: 2rem 1.5rem;
    border-right: 0.0625rem solid var(--line);
  }

  .ubx-metric:last-child {
    border-right: 0;
  }

  .ubx-metrics--2 .ubx-metric:nth-child(2n),
  .ubx-metrics--4 .ubx-metric:nth-child(2n) {
    border-right: 0;
  }

  .ubx-metrics--dark .ubx-metric {
    border-right-color: rgba(255, 255, 255, 0.16);
  }

  .ubx-card-grid--2,
  .ubx-card-grid--3,
  .ubx-card-grid--4 {
    --ubx-card-columns: 2;
  }

  .ubx-card--horizontal {
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
    align-items: stretch;
  }

  .ubx-card--horizontal .ubx-card__media {
    height: 100%;
    aspect-ratio: auto;
  }

  .ubx-directory__toolbar {
    grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
  }

  .ubx-directory__filters {
    justify-content: flex-end;
    margin-inline: 0;
    padding-inline: 0;
  }

  .ubx-directory-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    padding: 1.5rem;
  }

  .ubx-directory-card--plain {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ubx-directory__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ubx-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ubx-error-page__links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ubx-error-page__links a {
    min-height: 7rem;
    padding: 1.25rem;
    border-right: 0.0625rem solid var(--line);
  }

  .ubx-error-page__links a:last-child {
    border-right: 0;
  }
}

/* Desktop */

@media (min-width: 64rem) {
  .ubx-principles__layout {
    align-items: stretch;
    grid-template-columns: minmax(18rem, 0.68fr) minmax(0, 1.32fr);
    column-gap: clamp(4rem, 8vw, 8rem);
  }

  .ubx-principles__intro {
    min-height: 100%;
  }

  .ubx-principles__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ubx-principles__cards > h2:nth-of-type(1),
  .ubx-principles__cards > p:nth-of-type(1) {
    grid-area: 1 / 1;
  }

  .ubx-principles__cards > h2:nth-of-type(2),
  .ubx-principles__cards > p:nth-of-type(2) {
    grid-area: 1 / 2;
  }

  .ubx-principles__cards > h2:nth-of-type(3),
  .ubx-principles__cards > ul:first-of-type {
    grid-area: 2 / 1 / auto / 3;
  }

  .ubx-principles__cards > ul:first-of-type {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }

  .ubx-principles__cards > ul:first-of-type > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .ubx-story__layout {
    align-items: start;
    grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
    column-gap: clamp(4rem, 8vw, 8rem);
  }

  .ubx-story__intro {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
  }

  .ubx-editorial {
    grid-template-columns: minmax(0, 1.05fr) minmax(24rem, 0.95fr);
  }

  .ubx-editorial--reverse {
    grid-template-columns: minmax(24rem, 0.95fr) minmax(0, 1.05fr);
  }

  .ubx-editorial--reverse .ubx-editorial__media {
    grid-column: 2;
  }

  .ubx-editorial--reverse .ubx-editorial__content {
    grid-column: 1;
    grid-row: 1;
  }

  .ubx-editorial__media {
    min-height: 34rem;
    aspect-ratio: auto;
  }

  .ubx-timeline--alternating::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .ubx-timeline--alternating .ubx-timeline__item {
    display: grid;
    padding-left: 0;
    grid-template-columns: minmax(0, 1fr) 4rem minmax(0, 1fr);
  }

  .ubx-timeline--alternating .ubx-timeline__item::before {
    top: 0.55rem;
    left: 50%;
    transform: translateX(-50%);
  }

  .ubx-timeline--alternating .ubx-timeline__item:nth-child(odd) .ubx-timeline__content {
    grid-column: 1;
    padding-right: 2rem;
    text-align: right;
  }

  .ubx-timeline--alternating .ubx-timeline__item:nth-child(even) .ubx-timeline__content {
    grid-column: 3;
    padding-left: 2rem;
  }

  .ubx-card-grid--3 {
    --ubx-card-columns: 3;
  }

  .ubx-card-grid--4 {
    --ubx-card-columns: 3;
  }

  .ubx-metrics--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ubx-metrics--4 .ubx-metric:nth-child(2n) {
    border-right: 0.0625rem solid var(--line);
  }

  .ubx-metrics--4.ubx-metrics--dark .ubx-metric:nth-child(2n) {
    border-right-color: rgba(255, 255, 255, 0.16);
  }

  .ubx-metrics--4 .ubx-metric:nth-child(4n) {
    border-right: 0;
  }

  .ubx-directory__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ubx-legal__layout {
    grid-template-columns: minmax(13rem, 16rem) minmax(0, 48rem);
    justify-content: center;
    gap: clamp(4rem, 8vw, 7rem);
  }

  .ubx-legal__aside {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
  }
}

@media (min-width: 80rem) {
  .ubx-card-grid--4 {
    --ubx-card-columns: 4;
  }
}

@media (max-width: 30rem) {
  .ubx-actions,
  .ubx-page-intro__actions,
  .ubx-editorial__actions,
  .ubx-callout__actions,
  .ubx-form__actions,
  .ubx-error-page__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ubx-actions > *,
  .ubx-page-intro__actions > *,
  .ubx-editorial__actions > *,
  .ubx-callout__actions > *,
  .ubx-form__actions > *,
  .ubx-error-page__actions > * {
    width: 100%;
  }

  .ubx-directory__search-button {
    padding-inline: 0.75rem;
  }
}

/* Preferências de acessibilidade */

@media (prefers-reduced-motion: reduce) {
  .ubx-page,
  .ubx-page *,
  .ubx-page *::before,
  .ubx-page *::after,
  [class^="ubx-"],
  [class^="ubx-"]::before,
  [class^="ubx-"]::after,
  [class*=" ubx-"],
  [class*=" ubx-"]::before,
  [class*=" ubx-"]::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .ubx-card--interactive:hover,
  .ubx-card--interactive:focus-within,
  .ubx-card--interactive:hover .ubx-card__media img,
  .ubx-card--interactive:focus-within .ubx-card__media img {
    transform: none;
  }
}

@media (forced-colors: active) {
  .ubx-card,
  .ubx-directory__toolbar,
  .ubx-directory__search,
  .ubx-directory-card,
  .ubx-empty-state,
  .ubx-form__section,
  .ubx-form :where(input, select, textarea),
  .ubx-legal__toc,
  .ubx-callout {
    border-color: CanvasText;
  }

  .ubx-timeline__item::before,
  .ubx-eyebrow::before {
    background: currentColor;
  }
}

@media print {
  .ubx-page-intro {
    padding-block: 2rem;
  }

  .ubx-page-intro__media,
  .ubx-page-intro__shade,
  .ubx-breadcrumb,
  .ubx-directory__toolbar,
  .ubx-pagination,
  .ubx-form,
  .ubx-error-page__actions,
  .ubx-error-page__links,
  .ubx-legal__aside {
    display: none !important;
  }

  .ubx-page-intro--dark,
  .ubx-page-intro--media,
  .ubx-section--dark {
    color: var(--ink);
    background: var(--paper);
  }

  .ubx-page-intro--dark .ubx-page-intro__title,
  .ubx-page-intro--media .ubx-page-intro__title,
  .ubx-section--dark .ubx-section-heading__title {
    color: var(--ink);
  }

  .ubx-legal {
    padding-block: 2rem;
  }

  .ubx-legal__layout {
    display: block;
  }
}

/* Mantém o modo horizontal acima das regras base da grade. */
.ubx-card-grid.ubx-card-grid--scroll {
  display: flex;
  grid-template-columns: none;
}

/* Busca de exames — composição editorial clínica, exclusiva da home. */
.ubx-exam-finder {
  padding-block: clamp(5rem, 7.5vw, 7.5rem);
  overflow: clip;
  background: #111315;
}

.ubx-exam-finder__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(17rem, 0.6fr);
  align-items: start;
  gap: clamp(3.5rem, 7vw, 7rem);
}

.ubx-exam-finder__layout--single {
  grid-template-columns: minmax(0, 52rem);
}

.ubx-exam-finder__main {
  display: grid;
  min-width: 0;
  gap: clamp(2.75rem, 5vw, 4.5rem);
}

.ubx-exam-finder .ubx-exam-finder__heading {
  display: grid;
  max-width: 52rem;
  margin: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.ubx-exam-finder .ubx-exam-finder__heading .ubx-section-heading__title {
  max-width: none;
  color: #f7f7f4;
  font-size: clamp(3rem, 4.6vw, 4.75rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.ubx-exam-finder .ubx-exam-finder__heading .ubx-section-heading__aside {
  max-width: 36rem;
  margin: 0;
  justify-self: start;
  color: rgba(247, 247, 244, 0.68);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.ubx-exam-finder .ubx-exam-finder__directory {
  display: grid;
  gap: 0.875rem;
}

.ubx-exam-finder .ubx-directory__toolbar {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  grid-template-columns: minmax(0, 1fr);
}

.ubx-exam-finder .ubx-directory__search {
  display: grid;
  min-height: 4.5rem;
  grid-template-columns: 3.75rem minmax(0, 1fr) 4.5rem;
  overflow: hidden;
  border: 0.0625rem solid rgba(255, 255, 255, 0.2);
  border-radius: 0.625rem;
  background: #f3f1ec;
  box-shadow: none;
  transition:
    border-color var(--duration-short) var(--ease),
    box-shadow var(--duration-short) var(--ease);
}

.ubx-exam-finder .ubx-directory__search:focus-within {
  border-color: #75aaff;
  box-shadow: 0 0 0 0.1875rem rgba(117, 170, 255, 0.24);
}

.ubx-exam-finder .ubx-directory__search-icon {
  display: grid;
  color: #646b76;
  pointer-events: none;
  place-items: center;
}

.ubx-exam-finder .ubx-directory__search-icon svg,
.ubx-exam-finder .ubx-directory__search-button svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ubx-exam-finder .ubx-directory__search input {
  height: 4.5rem;
  padding: 0 0.75rem 0 0;
  color: #181a1f;
  background: transparent;
  font-size: 1rem;
  line-height: 1.4;
}

.ubx-exam-finder .ubx-directory__search input::placeholder {
  color: #6f747d;
}

.ubx-exam-finder .ubx-directory__search-button {
  display: grid;
  width: 4.5rem;
  min-width: 4.5rem;
  min-height: 4.5rem;
  padding: 0;
  border: 0;
  border-left: 0.0625rem solid rgba(17, 19, 21, 0.1);
  border-radius: 0;
  color: #fff;
  background: var(--brand);
  cursor: pointer;
  box-shadow: none;
  place-items: center;
  transform: none;
  transition: background-color var(--duration-short) var(--ease);
}

.ubx-exam-finder .ubx-directory__search-button:hover {
  background: var(--brand-deep);
  box-shadow: none;
  transform: none;
}

.ubx-exam-finder .ubx-directory__search-button:focus-visible {
  outline: 0.125rem solid #fff;
  outline-offset: -0.3125rem;
}

.ubx-exam-finder .ubx-directory__status {
  display: flex;
  min-height: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  gap: 0.375rem 0.75rem;
  color: rgba(247, 247, 244, 0.56);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
}

.ubx-exam-finder .ubx-directory__status:empty {
  display: none;
}

.ubx-exam-finder [data-exam-search-status]:empty + .ubx-directory__status-separator {
  display: none;
}

.ubx-exam-finder .ubx-directory__status-separator {
  color: rgba(247, 247, 244, 0.28);
}

.ubx-exam-finder .ubx-directory__status a {
  color: #f7f7f4;
  text-decoration: underline;
  text-decoration-color: rgba(247, 247, 244, 0.36);
  text-underline-offset: 0.25rem;
  transition:
    color var(--duration-short) var(--ease),
    text-decoration-color var(--duration-short) var(--ease);
}

.ubx-exam-finder .ubx-directory__status a:hover,
.ubx-exam-finder .ubx-directory__status a:focus-visible {
  color: #8db9ff;
  text-decoration-color: currentColor;
}

.ubx-exam-finder .ubx-directory__list {
  max-height: 21rem;
  margin-top: 0.75rem;
  overflow-y: auto;
  border-top-color: rgba(255, 255, 255, 0.18);
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.ubx-exam-finder .ubx-directory-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 1rem 0.125rem;
  border-bottom-color: rgba(255, 255, 255, 0.14);
  color: #f7f7f4;
  background: transparent;
  gap: 1rem;
  transform: none;
}

.ubx-exam-finder .ubx-directory-card__logo {
  display: none;
}

.ubx-exam-finder .ubx-directory-card__title {
  color: inherit;
  font-size: 1rem;
  font-weight: 500;
}

.ubx-exam-finder .ubx-directory-card .text-link {
  color: rgba(247, 247, 244, 0.58);
  font-size: 0.8125rem;
}

.ubx-exam-finder .ubx-directory-card:hover,
.ubx-exam-finder .ubx-directory-card:focus-visible {
  color: #8db9ff;
  background: transparent;
  transform: none;
}

.ubx-exam-finder__popular {
  min-width: 0;
  padding: 0.375rem 0 0 clamp(2rem, 4vw, 4rem);
  border-left: 0.0625rem solid rgba(255, 255, 255, 0.18);
}

.ubx-exam-finder__popular h3 {
  margin: 0 0 1.25rem;
  color: rgba(247, 247, 244, 0.72);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}

.ubx-exam-finder__popular nav {
  display: grid;
  border-top: 0.0625rem solid rgba(255, 255, 255, 0.18);
}

.ubx-exam-finder__popular a {
  display: grid;
  min-height: 4.25rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding-block: 1rem;
  border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.18);
  color: #f7f7f4;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
  gap: 1rem;
  transition: color var(--duration-short) var(--ease);
}

.ubx-exam-finder__popular a svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: rgba(247, 247, 244, 0.58);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: none;
  transition: stroke var(--duration-short) var(--ease);
}

.ubx-exam-finder__popular a:hover,
.ubx-exam-finder__popular a:focus-visible {
  color: #8db9ff;
}

.ubx-exam-finder__popular a:hover svg,
.ubx-exam-finder__popular a:focus-visible svg {
  stroke: currentColor;
  transform: none;
}

@media (max-width: 62rem) {
  .ubx-exam-finder__layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(15rem, 0.65fr);
    gap: 3rem;
  }
}

@media (max-width: 50rem) {
  .ubx-exam-finder__layout,
  .ubx-exam-finder__layout--single {
    grid-template-columns: minmax(0, 1fr);
  }

  .ubx-exam-finder__popular {
    padding: 2.5rem 0 0;
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }

  .ubx-exam-finder__popular nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }
}

@media (max-width: 34rem) {
  .ubx-exam-finder {
    padding-block: 4rem;
  }

  .ubx-exam-finder__layout {
    gap: 3rem;
  }

  .ubx-exam-finder__main {
    gap: 2.5rem;
  }

  .ubx-exam-finder .ubx-exam-finder__heading .ubx-section-heading__title {
    font-size: clamp(2.75rem, 14vw, 3.75rem);
  }

  .ubx-exam-finder .ubx-directory__search {
    min-height: 4rem;
    grid-template-columns: 3.25rem minmax(0, 1fr) 3.75rem;
  }

  .ubx-exam-finder .ubx-directory__search input {
    height: 4rem;
    padding-right: 0.375rem;
    font-size: 0.9375rem;
  }

  .ubx-exam-finder .ubx-directory__search-button {
    width: 3.75rem;
    min-width: 3.75rem;
    min-height: 4rem;
  }

  .ubx-exam-finder .ubx-directory__status {
    align-items: flex-start;
    flex-direction: column;
  }

  .ubx-exam-finder .ubx-directory__status-separator {
    display: none;
  }

  .ubx-exam-finder__popular nav {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
  }
}

@media (forced-colors: active) {
  .ubx-exam-finder .ubx-directory__search,
  .ubx-exam-finder .ubx-directory-card,
  .ubx-exam-finder__popular,
  .ubx-exam-finder__popular nav,
  .ubx-exam-finder__popular a {
    border-color: CanvasText;
  }
}

@media print {
  .ubx-exam-finder {
    color: var(--ink);
    background: var(--paper);
  }

  .ubx-exam-finder .ubx-exam-finder__heading .ubx-section-heading__title,
  .ubx-exam-finder .ubx-exam-finder__heading .ubx-section-heading__aside,
  .ubx-exam-finder__popular h3,
  .ubx-exam-finder__popular a {
    color: var(--ink);
  }
}

/* Cards interativos: sinal editorial na base, sem elevação genérica. */
body.biograph-theme .ubx-card--interactive {
  position: relative;
  box-shadow: none;
  transform: none;
  transition: border-color 220ms var(--ease), background-color 220ms var(--ease);
}
body.biograph-theme .ubx-card--interactive::after {
  position: absolute;
  right: 1.25rem;
  bottom: 0;
  left: 1.25rem;
  height: 0.1875rem;
  border-radius: 0.1875rem 0.1875rem 0 0;
  background: var(--brand);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms cubic-bezier(0.2, 0.75, 0.25, 1);
}
body.biograph-theme .ubx-card--interactive .ubx-card__title {
  transition: color 220ms var(--ease);
}
body.biograph-theme .ubx-card--interactive:hover,
body.biograph-theme .ubx-card--interactive:focus-within {
  border-color: rgba(12, 108, 243, 0.3);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  transform: none;
}
body.biograph-theme .ubx-card--interactive:hover::after,
body.biograph-theme .ubx-card--interactive:focus-within::after { transform: scaleX(1); }
body.biograph-theme .ubx-card--interactive:hover .ubx-card__title,
body.biograph-theme .ubx-card--interactive:focus-within .ubx-card__title { color: var(--brand); }
body.biograph-theme .ubx-card--interactive:hover .ubx-card__media img,
body.biograph-theme .ubx-card--interactive:focus-within .ubx-card__media img { transform: none; }
@media (prefers-reduced-motion: reduce) {
  body.biograph-theme .ubx-card--interactive,
  body.biograph-theme .ubx-card--interactive::after,
  body.biograph-theme .ubx-card--interactive .ubx-card__title { transition: none; }
}
/* Cards interativos: acabamento institucional com indicador de acesso. */
body.biograph-theme .ubx-card--interactive {
  isolation: isolate;
  overflow: hidden;
  background: var(--paper);
  transition: border-color 240ms var(--ease), background-color 240ms var(--ease);
}
body.biograph-theme .ubx-card--interactive > * { position: relative; z-index: 1; }
body.biograph-theme .ubx-card--interactive::before {
  position: absolute;
  z-index: 0;
  top: -5rem;
  right: -5rem;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: rgba(12, 108, 243, 0.065);
  content: "";
  opacity: 0;
  transform: scale(0.65);
  transition: opacity 260ms var(--ease), transform 420ms cubic-bezier(0.2, 0.75, 0.25, 1);
}
body.biograph-theme .ubx-card--interactive::after {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  bottom: auto;
  left: auto;
  display: grid;
  width: 2.125rem;
  height: 2.125rem;
  place-items: center;
  border: 0.0625rem solid rgba(12, 108, 243, 0.35);
  border-radius: 50%;
  color: var(--brand);
  background: var(--paper);
  content: "\2197";
  font-size: 0.9375rem;
  line-height: 1;
  opacity: 0;
  transform: translate(-0.375rem, 0.375rem) scale(0.86);
  transform-origin: center;
  transition: opacity 200ms var(--ease), transform 320ms cubic-bezier(0.2, 0.75, 0.25, 1), color 200ms var(--ease), background-color 200ms var(--ease);
}
body.biograph-theme .ubx-card--interactive:hover,
body.biograph-theme .ubx-card--interactive:focus-within {
  border-color: rgba(12, 108, 243, 0.55);
  background: #fbfdff;
  box-shadow: none;
  transform: none;
}
body.biograph-theme .ubx-card--interactive:hover::before,
body.biograph-theme .ubx-card--interactive:focus-within::before { opacity: 1; transform: scale(1); }
body.biograph-theme .ubx-card--interactive:hover::after,
body.biograph-theme .ubx-card--interactive:focus-within::after { opacity: 1; transform: translate(0, 0) scale(1); }
body.biograph-theme .ubx-card--interactive:hover .ubx-card__title,
body.biograph-theme .ubx-card--interactive:focus-within .ubx-card__title { color: var(--ink); }
body.biograph-theme .ubx-card--interactive:hover .text-link,
body.biograph-theme .ubx-card--interactive:focus-within .text-link {
  color: var(--paper);
  background: var(--brand);
  border-color: var(--brand);
}
body.biograph-theme .ubx-card--interactive:hover .text-link::after,
body.biograph-theme .ubx-card--interactive:focus-within .text-link::after { transform: translateX(0.125rem); }
@media (prefers-reduced-motion: reduce) {
  body.biograph-theme .ubx-card--interactive::before,
  body.biograph-theme .ubx-card--interactive::after { transition: none; }
}
/* Home: painel de métricas com fundo e contorno próprios. */
body.biograph-theme.page-home .page-section--pilares .ubx-metrics {
  overflow: hidden;
  border: 0.0625rem solid #d9dde3;
  border-radius: 1rem;
  background: #e9ecf0;
}
body.biograph-theme.page-home .page-section--pilares .ubx-metric {
  border-bottom: 0;
  background: #f0f2f5;
  transition: background-color 220ms var(--ease), color 220ms var(--ease);
}
body.biograph-theme.page-home .page-section--pilares .ubx-metric + .ubx-metric {
  border-top: 0.0625rem solid #d9dde3;
}
@media (hover: hover) and (pointer: fine) {
  body.biograph-theme.page-home .page-section--pilares a.ubx-metric:hover,
  body.biograph-theme.page-home .page-section--pilares a.ubx-metric:focus-visible {
    background: #e3e7ec;
  }
}
@media (min-width: 43.75rem) {
  body.biograph-theme.page-home .page-section--pilares .ubx-metric + .ubx-metric { border-top: 0; }
  body.biograph-theme.page-home .page-section--pilares .ubx-metric { border-right-color: #d9dde3; }
  body.biograph-theme.page-home .page-section--pilares .ubx-metric:nth-child(n + 3) { border-top: 0.0625rem solid #d9dde3; }
}
@media (min-width: 64rem) {
  body.biograph-theme.page-home .page-section--pilares .ubx-metric:nth-child(n + 3) { border-top: 0; }
}
/* Home: painel de métricas no verde institucional solicitado. */
body.biograph-theme.page-home .page-section--pilares .ubx-metrics {
  border-color: #02A64A;
  background: #02A64A;
}
body.biograph-theme.page-home .page-section--pilares .ubx-metric {
  color: #fff;
  background: #02A64A;
}
body.biograph-theme.page-home .page-section--pilares .ubx-metric :is(.ubx-metric__value, .ubx-metric__label, .ubx-metric__copy, .text-link),
body.biograph-theme.page-home .page-section--pilares .ubx-metric > span[aria-hidden="true"] {
  color: #fff;
}
body.biograph-theme.page-home .page-section--pilares .ubx-metric__copy { color: rgba(255, 255, 255, 0.78); }
body.biograph-theme.page-home .page-section--pilares .ubx-metric + .ubx-metric,
body.biograph-theme.page-home .page-section--pilares .ubx-metric { border-color: rgba(255, 255, 255, 0.24); }
@media (hover: hover) and (pointer: fine) {
  body.biograph-theme.page-home .page-section--pilares a.ubx-metric:hover,
  body.biograph-theme.page-home .page-section--pilares a.ubx-metric:focus-visible {
    color: #fff;
    background: #028A3E;
  }
}
/* Home: métricas com contraste reforçado e ações destacadas. */
body.biograph-theme.page-home .page-section--pilares .ubx-metrics {
  border-color: #027A3A;
  background: #027A3A;
}
body.biograph-theme.page-home .page-section--pilares .ubx-metric {
  color: #fff;
  background: #027A3A;
  border-color: rgba(255, 255, 255, 0.22);
}
body.biograph-theme.page-home .page-section--pilares .ubx-metric__copy {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 500;
}
body.biograph-theme.page-home .page-section--pilares .ubx-metric > span[aria-hidden="true"] {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 0.0625rem solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
body.biograph-theme.page-home .page-section--pilares .ubx-metric > span[aria-hidden="true"] svg {
  width: 1.125rem;
  height: 1.125rem;
}
body.biograph-theme.page-home .page-section--pilares .ubx-metric .text-link {
  width: fit-content;
  min-height: 2rem;
  margin-top: 0.35rem;
  padding: 0.4rem 0.65rem;
  border: 0.0625rem solid rgba(255, 255, 255, 0.9);
  border-radius: 0.5rem;
  color: #027A3A;
  background: #fff;
  line-height: 1.1;
}
body.biograph-theme.page-home .page-section--pilares .ubx-metric .text-link::after { color: #027A3A; }
@media (hover: hover) and (pointer: fine) {
  body.biograph-theme.page-home .page-section--pilares a.ubx-metric:hover,
  body.biograph-theme.page-home .page-section--pilares a.ubx-metric:focus-visible {
    color: #fff;
    background: #02A64A;
  }
  body.biograph-theme.page-home .page-section--pilares a.ubx-metric:hover .text-link,
  body.biograph-theme.page-home .page-section--pilares a.ubx-metric:focus-visible .text-link {
    color: #015F2D;
    background: #fff;
    border-color: #fff;
  }
}
/* Padrão editorial: títulos principais centralizados na tela. */
body.biograph-theme .ubx-section-heading {
  max-width: 64rem;
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
  gap: 1rem;
}
body.biograph-theme .ubx-section-heading > div {
  display: grid;
  justify-items: center;
}
body.biograph-theme .ubx-section-heading__title {
  max-width: 22ch;
  margin-inline: auto;
}
body.biograph-theme .ubx-section-heading__aside {
  max-width: 42rem;
  margin-inline: auto;
  justify-self: center;
  text-align: center;
}
/* Centralização estrutural dos cabeçalhos: elimina grades laterais remanescentes. */
body.biograph-theme .page-section :is(.ubx-section-heading, .section-head) {
  display: flex;
  width: 100%;
  max-width: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}
body.biograph-theme .page-section :is(.ubx-section-heading, .section-head) > div {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
body.biograph-theme .page-section :is(.ubx-section-heading__title, .section-head h1, .section-head h2) {
  max-width: 24ch;
  margin-inline: auto;
  text-align: center;
}
body.biograph-theme .page-section :is(.ubx-section-heading__aside, .section-head > p) {
  max-width: 42rem;
  margin-inline: auto;
  justify-self: auto;
  text-align: center;
}

/* Home: métricas sem ícones, com tipografia centralizada e mais respiro. */
body.biograph-theme.page-home .page-section--pilares .ubx-metric {
  min-height: 13.5rem;
  padding: 1.5rem 1.25rem;
  gap: 0.625rem;
  justify-items: center;
  text-align: center;
}
body.biograph-theme.page-home .page-section--pilares .ubx-metric > span[aria-hidden="true"] {
  display: none;
}
body.biograph-theme.page-home .page-section--pilares .ubx-metric__label {
  font-size: 0.9375rem;
  line-height: 1.35;
}
body.biograph-theme.page-home .page-section--pilares .ubx-metric__copy {
  max-width: 17rem;
  margin-inline: auto;
  font-size: 0.8125rem;
  line-height: 1.5;
}
body.biograph-theme.page-home .page-section--pilares .ubx-metric .text-link {
  margin-top: 0.5rem;
  font-size: 0.75rem;
}