/* Repositório UAN — estilo contextualizado com repositórios institucionais (ex.: RANAA / DSpace-like) */

:root {
  /* Identidade institucional (inspirada na BV): cyan → teal suave + navy para contraste */
  --repo-brand-a: #0099bc;
  --repo-brand-b: #00d2df;
  --repo-brand-grad: linear-gradient(135deg, var(--repo-brand-a) 0%, #00b7d4 50%, var(--repo-brand-b) 100%);
  --repo-brand-grad-hover: linear-gradient(135deg, #007a95 0%, #009fc4 50%, #00c4d2 100%);
  --repo-brand-rgb: 0, 61, 107;
  --repo-brand-light-rgb: 0, 210, 223;
  --repo-azul: #003d6b;
  --repo-azul-escuro: #002a4a;
  --repo-azul-claro: #e6f4f9;
  --repo-cinza: #6b7280;
  --repo-cinza-escuro: #343a40;
  --repo-fundo: #f5f9fc;
  --repo-borda: #dee2e6;
  --repo-footer-bg: #002a4a;
  --repo-footer-legal: #001a2e;
  /* Altura aproximada do header fixo (só navbar: logo + links + idiomas + entrar) */
  --repo-header-offset: 102px;
  /* Bootstrap — primário alinhado à marca (botões .btn-primary no site público) */
  --bs-primary: #003d6b;
  --bs-primary-rgb: 0, 61, 107;

  /* Tokens BV (para reaproveitar o visual do login da Biblioteca Virtual) */
  --bv-navy: var(--repo-azul);
  --bv-navy-dark: var(--repo-azul-escuro);
  --bv-cyan-rgb: 0, 153, 188;
  --bv-surface-page: var(--repo-fundo);
  --bv-brand-grad-h: linear-gradient(90deg, var(--repo-brand-a) 0%, #00b7d4 50%, var(--repo-brand-b) 100%);
  --bv-teal-dark: #0089a5;
}

/* Botão navy (BV) — usado no login */
.bv-btn-navy {
  --bs-btn-bg: var(--bv-navy);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-bg: var(--bv-navy-dark);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.45rem 1.15rem;
  border-radius: 8px;
  border: none;
  background-image: linear-gradient(125deg, var(--bv-navy-dark) 0%, var(--bv-navy) 38%, var(--repo-brand-a) 100%) !important;
  box-shadow: 0 3px 16px rgba(0, 61, 107, 0.2);
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.bv-btn-navy:hover,
.bv-btn-navy:focus-visible {
  background-image: linear-gradient(125deg, var(--bv-navy) 0%, #005f8c 45%, #00b7d4 100%) !important;
  box-shadow: 0 5px 22px rgba(0, 153, 188, 0.22);
  filter: brightness(1.03);
}

.bv-page {
  /* Header do repositório é fixo; manter afastamento coerente */
  padding-top: var(--repo-header-offset);
}

/* —— Login estilo BV (portado do bc_digital_uan) —— */
body.bv-login-page {
  background-color: var(--bv-surface-page);
  background-image:
    radial-gradient(ellipse 100% 70% at 90% 5%, rgba(0, 153, 188, 0.09) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 10% 90%, rgba(var(--repo-brand-rgb), 0.05) 0%, transparent 45%),
    linear-gradient(180deg, #f2f6f9 0%, #f7f9fb 100%);
}

.bv-login-section {
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* Login BV no repositório: posicionar mais para o topo (menos “centralizado”) */
body.bv-login-page .bv-login-section {
  align-items: flex-start !important;
}

body.bv-login-page .bv-login-card {
  margin-top: 0;
}

body.bv-login-page .bv-login-section > .container {
  padding-top: 0.2rem !important;
  padding-bottom: 1.25rem !important;
}

@media (min-width: 992px) {
  body.bv-login-page .bv-login-section > .container {
    padding-top: 0.25rem !important;
    padding-bottom: 1.75rem !important;
  }
}

/* Aproxima o conteúdo do login ao navbar fixo */
body.bv-login-page .bv-page {
  padding-top: var(--repo-header-offset);
}

/* Sobe o card sem alterar o fluxo (footer mantém a posição) */
body.bv-login-page .bv-login-card {
  transform: translateY(-30px);
}

@media (min-width: 992px) {
  body.bv-login-page .bv-login-card {
    transform: translateY(-38px);
  }
}

.bv-login-section__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bv-login-section__blob {
  position: absolute;
  border-radius: 50%;
}

.bv-login-section__blob--1 {
  width: min(75vw, 480px);
  height: min(75vw, 480px);
  background: radial-gradient(circle at 30% 30%, rgba(0, 153, 188, 0.14) 0%, transparent 68%);
  top: -18%;
  right: -12%;
}

.bv-login-section__blob--2 {
  width: min(95vw, 620px);
  height: min(55vw, 380px);
  background: radial-gradient(ellipse at center, rgba(var(--repo-brand-rgb), 0.05) 0%, transparent 72%);
  bottom: -22%;
  left: -28%;
}

.bv-login-card {
  position: relative;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  margin-top: -1rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(var(--repo-brand-rgb), 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 8px 32px rgba(var(--repo-brand-rgb), 0.08),
    0 2px 8px rgba(0, 42, 74, 0.04);
  padding: 1.75rem 1.35rem 1.5rem;
}

.bv-login-overline {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  font-weight: 650;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(var(--repo-brand-rgb), 0.58);
}

.bv-login-overline::after {
  content: "";
  display: block;
  width: 86px;
  height: 2px;
  margin: 0.5rem auto 0;
  border-radius: 999px;
  background: var(--bv-brand-grad-h);
  opacity: 0.45;
}

.bv-login-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: 12px 12px 0 0;
  background: var(--bv-brand-grad-h);
  pointer-events: none;
}

@media (min-width: 576px) {
  .bv-login-card {
    padding: 2rem 1.75rem 1.65rem;
  }
}

.bv-login-card__welcome {
  font-size: clamp(1.15rem, 3.2vw, 1.35rem);
  font-weight: 700;
  color: var(--bv-navy);
  text-align: center;
  letter-spacing: -0.01em;
  padding-top: 0.6rem;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.bv-login-card .form-label {
  font-weight: 600;
  font-size: 0.8125rem;
  color: #3d4f5f;
  margin-bottom: 0.35rem;
}

.bv-login-input,
.bv-login-card .form-control,
.bv-login-card .form-select {
  border-radius: 4px;
  border: 1px solid #ced4da;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
}

.bv-login-input:focus,
.bv-login-card .form-control:focus,
.bv-login-card .form-select:focus {
  border-color: var(--bv-navy);
  box-shadow: 0 0 0 0.15rem rgba(var(--repo-brand-rgb), 0.15);
}

.bv-login-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.bv-login-card .form-check-label {
  color: #5a6c7d;
  font-size: 0.875rem;
}

.bv-login-forgot {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bv-teal-dark);
  text-decoration: none;
}

.bv-login-forgot:hover {
  color: var(--bv-navy);
  text-decoration: underline;
}

.bv-login-alert {
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
}

.bv-login-submit.bv-btn-navy {
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.bv-login-register-note a {
  color: var(--bv-teal-dark);
  font-weight: 600;
  text-decoration: none;
}

.bv-login-register-note a:hover {
  color: var(--bv-navy);
  text-decoration: underline;
}
/* Botões outline primários — mesma linha cromática (site público + páginas com app.css) */
.btn-outline-primary {
  --bs-btn-color: var(--repo-azul);
  --bs-btn-border-color: rgba(var(--repo-brand-rgb), 0.42);
  --bs-btn-hover-bg: rgba(var(--repo-brand-rgb), 0.09);
  --bs-btn-hover-border-color: var(--repo-azul);
  --bs-btn-hover-color: var(--repo-azul-escuro);
  --bs-btn-active-bg: rgba(var(--repo-brand-rgb), 0.14);
  --bs-btn-active-border-color: var(--repo-azul);
  --bs-btn-active-color: var(--repo-azul-escuro);
  --bs-btn-focus-shadow-rgb: var(--repo-brand-rgb);
}

/* .btn-primary — degradé da marca (páginas que carregam app.css; o portal usa portal-app.css) */
.btn-primary {
  --bs-btn-bg: var(--repo-brand-a);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-bg: #0088b8;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-bg: #007aa3;
  --bs-btn-active-border-color: transparent;
  background-image: var(--repo-brand-grad);
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(0, 153, 188, 0.28);
  transition:
    filter 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:active {
  background-image: var(--repo-brand-grad-hover);
  filter: brightness(1.02);
  box-shadow: 0 5px 16px rgba(0, 153, 188, 0.34);
}

body.repo-home .text-primary {
  color: var(--repo-azul) !important;
}

body {
  background-color: var(--repo-fundo);
  background-image:
    radial-gradient(120% 80% at 100% 0%, rgba(var(--repo-brand-light-rgb), 0.12) 0%, transparent 52%),
    radial-gradient(90% 60% at 0% 100%, rgba(var(--repo-brand-rgb), 0.06) 0%, transparent 46%),
    linear-gradient(180deg, #f5fbfc 0%, #fafefe 42%, #ffffff 100%);
  padding-top: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #212529;
}

/* Cabeçalho fixo — degradé institucional */
.repo-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1055;
  background: #fff;
  box-shadow:
    0 1px 0 var(--repo-borda),
    0 4px 24px rgba(var(--repo-brand-rgb), 0.16);
}

.repo-site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--repo-brand-grad);
}

.repo-site-header .navbar {
  position: relative;
  z-index: auto;
}

.repo-public-navbar {
  min-height: 0;
  --bs-navbar-padding-y: 0.2rem;
  padding-top: var(--bs-navbar-padding-y);
  padding-bottom: var(--bs-navbar-padding-y);
}

.repo-mainbar-inner--compact {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

.repo-navbar-brand {
  border-radius: 10px;
  padding: 0.12rem 0.5rem !important;
  margin-left: -0.35rem;
  gap: 0.2rem;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 576px) {
  .repo-navbar-brand {
    gap: 0.28rem;
  }
}

.repo-site-header .repo-navbar-brand:hover {
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Com navbar branco, o logotipo fica sobre fundo branco (sem placa degradê). */
.repo-site-header .repo-navbar-brand {
  background-image: none;
  background-color: transparent;
  box-shadow: none;
}

/* Insígnia UAN (PNG com alpha), proporção vertical, responsiva */
.repo-navbar-insignia-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  padding: 0;
  background: transparent;
}

.repo-navbar-insignia {
  display: block;
  width: auto;
  height: clamp(3.15rem, 6.2vw, 4.35rem);
  max-height: 74px;
  max-width: clamp(2.85rem, 14vw, 4rem);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.12)) drop-shadow(0 1px 2px rgba(15, 23, 42, 0.08));
}

@media (max-width: 575.98px) {
  .repo-navbar-insignia {
    height: clamp(2.85rem, 13vw, 3.85rem);
    max-height: 64px;
    max-width: clamp(2.45rem, 20vw, 3.5rem);
  }
}

/* Páginas workflow (Portal → submissão, revisão, etc.): barra local fixa ao scroll */
header.repo-navbar {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: #fff;
  box-shadow: 0 1px 0 var(--repo-borda), 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* Sem .repo-site-header: o padding-top de .repo-home não se aplica (evita faixa vazia) */
body.repo-home:has(> header.repo-navbar) {
  padding-top: 0;
}

/* Idiomas + Entrar à direita do menu (desktop); empilhados no offcanvas mobile */
.repo-navbar-tools {
  flex-shrink: 0;
  min-width: 0;
}

@media (min-width: 992px) {
  .repo-navbar-tools {
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
}

.repo-site-header .repo-nav-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.35);
}

.repo-btn-compact {
  padding: 0.28rem 0.7rem !important;
  font-size: 0.8125rem !important;
  line-height: 1.25;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(var(--repo-brand-rgb), 0.2) !important;
}

/* Idiomas — chips discretos acima de Entrar / Conta */
.repo-navbar-auth-stack {
  flex-shrink: 0;
}

.repo-lang-switcher {
  line-height: 1;
}

.repo-site-header .repo-lang-chip {
  margin: 0;
  padding: 0.14rem 0.38rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.repo-site-header .repo-lang-chip:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background-color: rgba(255, 255, 255, 0.16);
}

.repo-site-header .repo-lang-chip:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.repo-site-header .repo-lang-chip.repo-lang-active {
  color: var(--repo-azul);
  border-color: #fff;
  background-color: #fff;
  font-weight: 700;
}

.repo-site-header .repo-btn-entrar {
  background: #fff;
  color: var(--repo-azul) !important;
  border: none;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.3rem 0.85rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}

.repo-site-header .repo-btn-entrar:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--repo-azul-escuro) !important;
}

.repo-user-greeting {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--repo-cinza-escuro);
}

.repo-site-header .repo-mainbar {
  border-bottom: 1px solid rgba(0, 0, 0, 0);
  background: transparent;
}

.repo-site-header .repo-mainbar .navbar-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(0, 61, 107, 0.92);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  margin: 0 0.05rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.repo-site-header .repo-mainbar .navbar-nav .nav-link i {
  opacity: 0.9;
  line-height: 1;
  flex-shrink: 0;
}

.repo-site-header .repo-mainbar .navbar-nav .nav-link:hover,
.repo-site-header .repo-mainbar .navbar-nav .nav-link:focus {
  color: var(--repo-azul-escuro);
  background-color: rgba(var(--repo-brand-rgb), 0.1);
}

.repo-site-header .repo-mainbar .navbar-nav .nav-item a.repo-nav-login.repo-btn-entrar {
  white-space: nowrap;
  background: #fff !important;
  color: var(--repo-azul) !important;
  border: 1px solid rgba(var(--repo-brand-rgb), 0.28);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.repo-site-header .repo-mainbar .navbar-nav .nav-item a.repo-nav-login.repo-btn-entrar:hover,
.repo-site-header .repo-mainbar .navbar-nav .nav-item a.repo-nav-login.repo-btn-entrar:focus {
  background: #fff !important;
  color: var(--repo-azul-escuro) !important;
  border-color: rgba(var(--repo-brand-rgb), 0.42);
}

@media (max-width: 991.98px) {
  .repo-mainbar .navbar-nav .nav-item:has(.repo-nav-login) {
    margin-top: 0.2rem;
    padding-top: 0.15rem;
  }

  .repo-mainbar .navbar-nav .repo-nav-user-auth-wrap {
    margin-top: 0.35rem;
  }
}

.repo-nav-user-auth {
  flex-shrink: 1;
  min-width: 0;
}

.repo-site-header .repo-user-name-nav {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(0, 61, 107, 0.92);
  line-height: 1.35;
  max-width: 100%;
}

/* Cabeçalho público (ex.: index.php) — mesmo padrão visual do portal: círculo + fa-user */
.repo-site-header .repo-user-name-nav.repo-user-name-nav--with-avatar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  min-width: 0;
}

.repo-site-header .repo-public-user-avatar {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--repo-brand-grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  box-shadow:
    0 1px 6px rgba(var(--repo-brand-rgb), 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.repo-site-header .repo-public-user-avatar-ico {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.96);
  filter: drop-shadow(0 1px 1px rgba(22, 74, 125, 0.18));
}

.repo-site-header .repo-public-user-name-text {
  min-width: 0;
  flex: 1 1 auto;
}

@media (min-width: 992px) {
  .repo-user-name-nav {
    max-width: 14rem;
    padding: 0.2rem 0.35rem 0.2rem 0;
  }

  .repo-site-header .repo-mainbar .navbar-nav .repo-nav-user-auth-wrap {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
    padding-left: 0.85rem !important;
  }

  .repo-nav-user-auth {
    flex-wrap: nowrap;
  }
}

.repo-mainbar .dropdown-menu {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  padding: 0.4rem 0;
  margin-top: 0.35rem;
}

.repo-mainbar .dropdown-item {
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: 0;
}

.repo-mainbar .dropdown-item:hover,
.repo-mainbar .dropdown-item:focus {
  background-color: var(--repo-azul-claro);
  color: var(--repo-azul-escuro);
}

/* Dropdown «Comunidade e coleções» — fundo claro, suave e moderno */
.repo-site-header .repo-mainbar .dropdown-menu.repo-dropdown-menu-wide {
  background: linear-gradient(168deg, #fafdfe 0%, #eef7fc 44%, #e3f0f9 100%);
  border: 1px solid rgba(var(--repo-brand-rgb), 0.1);
  box-shadow:
    0 20px 48px rgba(var(--repo-brand-rgb), 0.09),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

.repo-site-header .repo-mainbar .dropdown-menu.repo-dropdown-menu-wide .dropdown-item:hover,
.repo-site-header .repo-mainbar .dropdown-menu.repo-dropdown-menu-wide .dropdown-item:focus {
  background-color: rgba(var(--repo-brand-light-rgb), 0.16);
  color: var(--repo-azul-escuro);
}

.repo-site-header .repo-mainbar .dropdown-menu.repo-dropdown-menu-wide .repo-dropdown-header-muted {
  color: #5c6d80 !important;
}

/* Comunidade & Coleções: abrir ao pairar (lg+) + realce no toggle */
@media (min-width: 992px) {
  .repo-site-header .repo-mainbar .repo-nav-dropdown--hover > .dropdown-menu.repo-dropdown--nav-hover {
    display: block !important;
    margin-top: 0.25rem !important;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.22s ease,
      visibility 0.22s ease,
      box-shadow 0.22s ease;
  }

  .repo-site-header .repo-mainbar .repo-nav-dropdown--hover > .dropdown-menu.repo-dropdown--nav-hover.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .repo-site-header .repo-mainbar .repo-nav-dropdown--hover > .dropdown-menu.repo-dropdown--nav-hover::before {
    content: "";
    display: block;
    height: 2px;
    margin: -0.15rem 0.65rem 0.4rem;
    border-radius: 2px;
    background: linear-gradient(
      90deg,
      rgba(0, 153, 188, 0.35) 0%,
      rgba(0, 183, 212, 0.55) 50%,
      rgba(0, 210, 223, 0.35) 100%
    );
    opacity: 0.95;
  }

  .repo-site-header .repo-mainbar .repo-nav-dropdown--hover:hover > .dropdown-toggle,
  .repo-site-header .repo-mainbar .repo-nav-dropdown--hover:focus-within > .dropdown-toggle {
    color: var(--repo-azul-escuro);
    background-color: rgba(var(--repo-brand-rgb), 0.14);
    box-shadow: 0 0 0 1px rgba(var(--repo-brand-rgb), 0.12);
  }

  .repo-site-header .repo-mainbar .repo-nav-dropdown--hover > .dropdown-toggle::after {
    transition: transform 0.22s ease;
  }

  .repo-site-header .repo-mainbar .repo-nav-dropdown--hover > .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(-180deg);
  }
}

@media (min-width: 992px) and (prefers-reduced-motion: reduce) {
  .repo-site-header .repo-mainbar .repo-nav-dropdown--hover > .dropdown-menu.repo-dropdown--nav-hover {
    transition: none;
  }

  .repo-site-header .repo-mainbar .repo-nav-dropdown--hover > .dropdown-toggle::after {
    transition: none;
  }
}

/* Marca no header — tipografia suave e contemporânea */
.repo-brand-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-width: 0;
}

.repo-navbar-brand .repo-brand-line1,
.repo-navbar-brand .repo-brand-line2 {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.repo-brand-line1 {
  color: #5d6e82;
  font-weight: 550;
  font-size: 0.6875rem;
  line-height: 1.32;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.repo-brand-line2 {
  color: #1e3a5f;
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.repo-brand-line2--compact {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: -0.012em;
  color: #1e3a5f;
  -webkit-font-smoothing: antialiased;
}

.repo-navbar-brand:hover .repo-brand-line1 {
  color: #4a5c70;
}

.repo-navbar-brand:hover .repo-brand-line2,
.repo-navbar-brand:hover .repo-brand-line2--compact {
  color: #163a66;
}

/* Marca e utilitários sobre degradé do header público */
.repo-site-header .repo-brand-line1 {
  color: rgba(0, 61, 107, 0.78);
}

.repo-site-header .repo-brand-line2,
.repo-site-header .repo-brand-line2--compact {
  color: #003d6b;
}

.repo-site-header .repo-navbar-brand:hover .repo-brand-line1 {
  color: rgba(0, 61, 107, 0.92);
}

.repo-site-header .repo-navbar-brand:hover .repo-brand-line2,
.repo-site-header .repo-navbar-brand:hover .repo-brand-line2--compact {
  color: #002a4a;
}

.repo-site-header .text-primary {
  color: var(--repo-azul) !important;
}

.repo-site-header .border-top {
  border-top-color: rgba(var(--repo-brand-rgb), 0.22) !important;
}

/* Idiomas (select): estilo institucional discreto */
.repo-lang-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(var(--repo-brand-rgb), 0.03);
  border: 1px solid rgba(var(--repo-brand-rgb), 0.16);
  border-radius: 999px;
  padding: 0.26rem 2rem 0.26rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(var(--repo-brand-rgb), 0.92);
  line-height: 1.15;
  cursor: pointer;
  transition:
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;

  /* “seta” discreta do select */
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(var(--repo-brand-rgb), 0.55) 50%),
    linear-gradient(135deg, rgba(var(--repo-brand-rgb), 0.55) 50%, transparent 50%);
  background-position:
    calc(100% - 0.9rem) 55%,
    calc(100% - 0.7rem) 55%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

.repo-lang-select:hover {
  background-color: rgba(var(--repo-brand-rgb), 0.055);
  border-color: rgba(var(--repo-brand-rgb), 0.24);
  color: rgba(var(--repo-brand-rgb), 0.98);
}

.repo-lang-select:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(var(--repo-brand-light-rgb), 0.22),
    0 8px 18px rgba(var(--repo-brand-rgb), 0.12);
  border-color: rgba(var(--repo-brand-rgb), 0.32);
}

.repo-lang-icon {
  color: var(--repo-azul);
  opacity: 0.9;
  font-size: 0.95rem;
}

/* Compensar altura do header fixo — valor alinhado ao header compacto */
body.repo-home {
  padding-top: var(--repo-header-offset);
}

@media (max-width: 991px) {
  body.repo-home {
    /* Marca + toggler + ferramentas colapsadas (logo maior) */
    --repo-header-offset: 80px;
  }
}

/* Faixa de pesquisa — fundo suave (gradiente + luz), alinhado à marca UAN */
.repo-search-hero {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 100% 80% at 50% -35%, rgba(var(--repo-brand-light-rgb), 0.22) 0%, transparent 58%),
    radial-gradient(ellipse 70% 55% at 100% 20%, rgba(var(--repo-brand-rgb), 0.1) 0%, transparent 52%),
    radial-gradient(ellipse 55% 45% at 0% 85%, rgba(var(--repo-brand-light-rgb), 0.06) 0%, transparent 45%),
    linear-gradient(180deg, #f0f7fb 0%, #e9f2f8 38%, #e3edf5 100%);
  border-bottom: 1px solid rgba(var(--repo-brand-rgb), 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  margin-top: 0;
  padding: 1.5rem 0 2.6rem;
}

.repo-search-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--repo-brand-grad);
  opacity: 0.85;
  pointer-events: none;
}

/* Na home: puxar o hero para cima do padding-top do body para o gradiente cobrir toda a faixa até ao navbar */
body.repo-home .repo-search-hero {
  margin-top: calc(-1 * var(--repo-header-offset));
  padding-top: calc(var(--repo-header-offset) + 1.5rem);
}

.repo-search-hero-inner {
  max-width: 46rem;
  position: relative;
  z-index: 1;
}

.repo-hero-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-wrap: balance;
}

.repo-hero-accent {
  display: block;
  width: 3.25rem;
  height: 0.28rem;
  border-radius: 999px;
  background: var(--repo-brand-grad);
  box-shadow:
    0 2px 14px rgba(var(--repo-brand-rgb), 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

.repo-hero-title {
  font-size: clamp(1.15rem, 3.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.22;
  margin: 0;
  color: var(--repo-azul-escuro);
  text-transform: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .repo-hero-title {
    background: linear-gradient(
      120deg,
      #143c66 0%,
      var(--repo-brand-b) 42%,
      var(--repo-brand-a) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
  }
}

.repo-hero-subline {
  margin: 0;
  font-size: clamp(0.68rem, 1.35vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(var(--repo-brand-rgb), 0.72);
}

.repo-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.repo-hero-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  color: #475569;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.repo-hero-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
}

.repo-hero-badge--hotel {
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.95) 0%, rgba(254, 243, 199, 0.5) 100%);
  border-color: rgba(245, 158, 11, 0.2);
  color: #92400e;
}

.repo-hero-badge--phys {
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.95) 0%, rgba(209, 250, 229, 0.45) 100%);
  border-color: rgba(34, 197, 94, 0.22);
  color: #166534;
}

.repo-hero-badge--sport {
  background: linear-gradient(
    135deg,
    rgba(var(--repo-brand-light-rgb), 0.2) 0%,
    rgba(var(--repo-brand-rgb), 0.1) 100%
  );
  border-color: rgba(var(--repo-brand-rgb), 0.22);
  color: var(--repo-azul-escuro);
}

.repo-search-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 100%;
}

.repo-search-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0.35rem 0.4rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.04),
    0 8px 28px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Campo de pesquisa + botão sempre na mesma linha */
.repo-search-main-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  min-width: 0;
}

.repo-search-main-row .repo-search-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 1%;
}

.repo-search-main-row .repo-search-submit {
  flex: 0 0 auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.repo-search-input {
  border: 1px solid rgba(203, 213, 225, 0.65);
  border-radius: 10px !important;
  padding: 0.42rem 0.8rem;
  min-height: 2.25rem;
  font-size: 0.875rem;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.repo-search-input:focus {
  border-color: rgba(var(--repo-brand-rgb), 0.32);
  box-shadow: 0 0 0 3px rgba(var(--repo-brand-rgb), 0.08);
  outline: none;
}

.repo-search-input::placeholder {
  color: rgba(15, 23, 42, 0.4);
  font-weight: 400;
  opacity: 1;
}

.repo-search-submit {
  flex: 0 0 auto;
  background: var(--repo-brand-grad);
  color: #fff;
  font-weight: 600;
  font-size: 0.75rem;
  border: none;
  border-radius: 9px;
  padding: 0.32rem 0.65rem;
  min-height: 2.25rem;
  line-height: 1.2;
  box-shadow: 0 1px 6px rgba(var(--repo-brand-rgb), 0.22);
  transition: background 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.repo-search-submit:hover {
  filter: brightness(1.06);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 12px rgba(var(--repo-brand-rgb), 0.32);
}

/* Secção Comunidades (placeholder v1) */
.repo-communities-strip {
  background: #fff;
  border-bottom: 1px solid var(--repo-borda);
  padding: 1.75rem 0;
}

.repo-communities-strip h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--repo-cinza-escuro);
  margin-bottom: 0.35rem;
}

.repo-communities-strip p.lead {
  font-size: 0.95rem;
  color: var(--repo-cinza);
  margin-bottom: 1rem;
}

.repo-community-card {
  border: 1px solid var(--repo-borda);
  border-radius: 6px;
  padding: 1rem 1.15rem;
  background: var(--repo-fundo);
  height: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.repo-community-card:hover {
  border-color: var(--repo-azul);
  box-shadow: 0 2px 10px rgba(var(--repo-brand-rgb), 0.12);
}

.repo-community-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--repo-azul);
  margin: 0 0 0.35rem;
}

.repo-community-card p {
  font-size: 0.85rem;
  color: var(--repo-cinza);
  margin: 0;
}

/* Layout principal filtros + resultados */
.repo-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.repo-filters {
  background: #ffffff;
  border: 1px solid var(--repo-borda);
  border-radius: 8px;
  padding: 1rem;
  position: sticky;
  top: calc(var(--repo-header-offset) + 10px);
}

.repo-filters h2 {
  font-size: 0.95rem;
  color: var(--repo-cinza-escuro);
  margin-bottom: 1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--repo-borda);
  padding-bottom: 0.5rem;
}

.repo-results {
  background: linear-gradient(165deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--repo-borda);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  min-height: 200px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Mensagem de estado da pesquisa (ex.: «Resultados carregados: n») */
.repo-search-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.75rem 0.35rem 0.65rem;
  max-width: 100%;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: #64748b;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(6px);
}

.repo-search-status[hidden] {
  display: none !important;
}

.repo-search-status::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  opacity: 0.85;
}

.repo-search-status--success {
  color: #3f6212;
  background: rgba(236, 253, 245, 0.85);
  border-color: rgba(134, 239, 172, 0.55);
}

.repo-search-status--success::before {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.repo-search-status--info {
  color: var(--repo-azul-escuro);
  background: rgba(var(--repo-brand-light-rgb), 0.1);
  border-color: rgba(var(--repo-brand-rgb), 0.2);
}

.repo-search-status--info::before {
  background: var(--repo-brand-grad);
}

.repo-search-status--warning {
  color: #92400e;
  background: rgba(255, 251, 235, 0.9);
  border-color: rgba(253, 230, 138, 0.65);
}

.repo-search-status--warning::before {
  background: #f59e0b;
}

.repo-search-status--danger {
  color: #991b1b;
  background: rgba(254, 242, 242, 0.92);
  border-color: rgba(252, 165, 165, 0.55);
}

.repo-search-status--danger::before {
  background: #ef4444;
}

#repoItems,
.repo-uo-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Cartões genéricos (portal, etc.) — div.repo-card */
.repo-card {
  border: 1px solid var(--repo-borda);
  border-radius: 8px;
  padding: 1rem;
}

/* Apenas resultados da pesquisa (index) — article.repo-card */
article.repo-card {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

article.repo-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

article.repo-card .repo-card-body-wrap {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
}

article.repo-card .repo-card-thumb-col {
  flex: 0 0 auto;
  width: 120px;
  max-width: 32%;
}

article.repo-card .repo-card-thumb-link,
article.repo-card .repo-card-thumb-frame {
  display: block;
  padding: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
  line-height: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

article.repo-card .repo-card-thumb-link:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

article.repo-card .repo-card-thumb-link:focus-visible {
  outline: 2px solid rgba(var(--repo-brand-rgb), 0.55);
  outline-offset: 2px;
}

article.repo-card .repo-card-thumb-col--placeholder .repo-card-thumb-frame {
  opacity: 0.92;
}

article.repo-card .repo-card-thumb-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #0f172a;
  border-radius: 1px;
  vertical-align: top;
}

article.repo-card .repo-card-main {
  flex: 1 1 0;
  min-width: 0;
}

article.repo-card .repo-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem 0.75rem;
}

article.repo-card .repo-card-title {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.012em;
  /* Preto suave (legível, sem rigidez do #000) */
  color: #1c1917;
  min-width: 0;
}

/* Acesso aberto: logótipo OA + cadeado aberto + rótulo — laranja institucional OA (~#F68212 / #EA580C) */
.repo-oa-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  padding: 0.2rem 0.5rem 0.2rem 0.34rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.95) 0%, rgba(254, 215, 170, 0.35) 100%);
  border: 1px solid rgba(246, 130, 18, 0.28);
  box-shadow: 0 1px 2px rgba(234, 88, 12, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.repo-oa-pill:hover {
  background: linear-gradient(180deg, rgba(255, 250, 245, 0.98) 0%, rgba(254, 215, 170, 0.55) 100%);
  border-color: rgba(246, 130, 18, 0.45);
  box-shadow: 0 2px 8px rgba(246, 130, 18, 0.14);
}

.repo-oa-pill-svg {
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.95;
  filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.06));
}

.repo-oa-pill-fa {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  font-size: 0.52rem;
  color: #fff;
  /* Laranja oficial Acesso Aberto: #F68212 com profundidade #EA580C */
  background: linear-gradient(160deg, #fdba74 0%, #f68212 38%, #ea580c 100%);
  box-shadow:
    0 1px 3px rgba(234, 88, 12, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.repo-oa-pill:hover .repo-oa-pill-fa {
  transform: scale(1.04);
  box-shadow:
    0 2px 8px rgba(246, 130, 18, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.repo-oa-pill-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.015em;
  color: #c2410c;
  line-height: 1.25;
  padding-right: 0.08rem;
}

@media (prefers-reduced-motion: reduce) {
  .repo-oa-pill,
  .repo-oa-pill-fa {
    transition: none;
  }

  .repo-oa-pill:hover .repo-oa-pill-fa {
    transform: none;
  }
}

article.repo-card .repo-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin-top: 0.5rem;
}

article.repo-card .repo-meta-chip {
  display: inline-block;
  padding: 0.14rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
  border-radius: 5px;
  border: 1px solid #e2e8f0;
}

article.repo-card .repo-keywords {
  margin-top: 0.45rem;
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.4;
}

article.repo-card .repo-keywords-label {
  font-weight: 600;
  color: #475569;
}

article.repo-card .repo-resumo {
  color: #475569;
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
}

article.repo-card .repo-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid #f1f5f9;
}

article.repo-card .repo-result-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.26rem 0.65rem;
  border-radius: 999px;
  border: none;
  line-height: 1.25;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

article.repo-card .repo-result-actions .btn i {
  font-size: 0.65rem;
  opacity: 0.88;
}

article.repo-card .repo-result-actions .btn:active {
  transform: scale(0.98);
}

article.repo-card .repo-result-actions .btn:focus-visible {
  outline: 2px solid rgba(var(--repo-brand-rgb), 0.55);
  outline-offset: 2px;
}

article.repo-card .repo-btn-view {
  background: #fff;
  color: #64748b;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

article.repo-card .repo-btn-view:hover {
  background: #f8fafc;
  color: #334155;
  border-color: #cbd5e1 !important;
}

article.repo-card .repo-btn-download {
  background: #f8fafc;
  color: #64748b !important;
  border: 1px solid #e8ecf1 !important;
  box-shadow: none;
}

article.repo-card .repo-btn-download:hover {
  background: #f1f5f9;
  color: #475569 !important;
  border-color: #dce3eb !important;
}

article.repo-card .repo-btn-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Texto secundário em cartões (ex.: portal.php) */
.repo-meta {
  color: var(--repo-cinza);
  font-size: 0.92rem;
  margin-top: 6px;
}

.repo-empty {
  color: #64748b;
  text-align: center;
  padding: 26px 0;
}

@media (max-width: 992px) {
  .repo-layout {
    grid-template-columns: 1fr;
  }

  .repo-filters {
    position: static;
  }

  .repo-search-main-row {
    flex-wrap: nowrap;
  }

  .repo-search-main-row .repo-search-submit {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Footer estilo repositório institucional (duas camadas) */
.repo-footer {
  margin-top: 1rem;
  background: var(--repo-footer-bg);
  color: rgba(255, 255, 255, 0.88);
}

.repo-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.repo-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.repo-footer .repo-footer-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.65rem;
  font-weight: 600;
}

.repo-footer-main {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.repo-footer-brand-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0;
  width: 100%;
}

.repo-footer-insignia-wrap {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.repo-footer-insignia {
  width: auto;
  height: clamp(3.75rem, 6.5vw, 5.25rem);
  object-fit: contain;
  display: block;
}

.repo-footer-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.repo-footer-brand-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
}

.repo-footer-brand-sub {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
}

.repo-footer-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  margin: 0 0 0.55rem;
}

.repo-footer-list {
  margin: 0;
  padding: 0;
}

.repo-footer-list li {
  margin-bottom: 0.3rem;
}

.repo-footer-list li:last-child {
  margin-bottom: 0;
}

.repo-footer-list a {
  font-size: 0.875rem;
  font-weight: 450;
  letter-spacing: 0.02em;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, letter-spacing 0.2s ease;
}

.repo-footer-list a:hover {
  color: rgba(255, 255, 255, 0.96);
  text-decoration: none;
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.repo-footer-note {
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.repo-footer-contact {
  margin: 0;
  padding: 0;
}

.repo-footer-contact li {
  margin-bottom: 0.4rem;
}

.repo-footer-contact li:last-child {
  margin-bottom: 0;
}

.repo-footer-contact-link,
.repo-footer-contact-item {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.repo-footer-contact-link:hover {
  color: #fff;
}

.repo-footer-contact-link i,
.repo-footer-contact-item i {
  margin-top: 0.2rem;
  width: 1.1rem;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.85;
}

.repo-footer-social-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.repo-footer-legal {
  background: var(--repo-footer-legal);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.65rem 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.repo-footer-legal ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
}

.repo-footer-social {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.repo-footer-social li {
  margin: 0;
  padding: 0;
}

.repo-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.repo-footer-social a:hover {
  background: rgba(255, 255, 255, 0.22);
  text-decoration: none;
}

#repoPagination[hidden] {
  display: none !important;
}

.repo-pagination-modern {
  margin-top: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.repo-pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.65rem;
}

.repo-pg-nums {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.repo-pg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.35rem;
  padding: 0 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  color: #334155;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.repo-pg:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.repo-pg:focus-visible {
  outline: 2px solid rgba(var(--repo-brand-rgb), 0.45);
  outline-offset: 2px;
}

.repo-pg:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.repo-pg--nav {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.repo-pg--nav i {
  font-size: 0.65rem;
  opacity: 0.85;
}

.repo-pg--num {
  min-width: 2.35rem;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
  font-variant-numeric: tabular-nums;
}

.repo-pg--num.is-active {
  color: #fff;
  background: var(--repo-brand-grad);
  border-color: var(--repo-azul-escuro);
  box-shadow: 0 2px 12px rgba(var(--repo-brand-rgb), 0.32);
}

.repo-pg--num.is-active:hover {
  color: #fff;
  background: var(--repo-brand-grad);
  filter: brightness(1.05);
  border-color: var(--repo-azul-escuro);
}

.repo-pg-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  padding: 0 0.15rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
  user-select: none;
}

.repo-pagination-summary {
  margin: 0.65rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0.02em;
}

/* Paginação compacta — pesquisa pública (index, pesquisa-uo): menos altura para caber mais documentos */
.repo-pagination--compact .repo-pagination-modern {
  margin-top: 0.4rem;
  padding-top: 0.35rem;
}

.repo-pagination--compact .repo-pagination-bar {
  gap: 0.2rem 0.32rem;
}

.repo-pagination--compact .repo-pg-nums {
  gap: 0.08rem;
}

.repo-pagination--compact .repo-pg {
  min-height: 1.6rem;
  padding: 0 0.38rem;
  font-size: 0.7rem;
  border-radius: 7px;
  gap: 0.22rem;
}

.repo-pagination--compact .repo-pg--nav {
  padding-left: 0.42rem;
  padding-right: 0.42rem;
}

.repo-pagination--compact .repo-pg--nav i {
  font-size: 0.55rem;
}

.repo-pagination--compact .repo-pg--num {
  min-width: 1.55rem;
  padding-left: 0.28rem;
  padding-right: 0.28rem;
}

.repo-pagination--compact .repo-pg-dots {
  min-width: 1.05rem;
  font-size: 0.68rem;
  padding: 0 0.06rem;
}

.repo-pagination--compact .repo-pagination-summary {
  margin-top: 0.3rem;
  font-size: 0.66rem;
  line-height: 1.35;
}

@media (max-width: 420px) {
  .repo-pagination--compact .repo-pg--nav span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .repo-pagination--compact .repo-pg--nav {
    position: relative;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Wizard submissão — passos com linha e círculos numerados */
.repo-submissao-steps {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.repo-submissao-steps-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.repo-submissao-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 0;
  text-align: center;
}

.repo-submissao-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 1.125rem;
  left: calc(50% + 1.125rem);
  width: calc(100% - 2.25rem);
  height: 2px;
  background: #dee2e6;
  z-index: 0;
}

.repo-submissao-step.is-done:not(:last-child)::after {
  background: rgba(var(--repo-brand-rgb), 0.4);
}

.repo-submissao-step-circle {
  position: relative;
  z-index: 1;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  background: #fff;
  border: 2px solid #ced4da;
  color: #6c757d;
  flex-shrink: 0;
}

.repo-submissao-step.is-pending .repo-submissao-step-circle {
  background: #f8f9fa;
}

.repo-submissao-step.is-active .repo-submissao-step-circle {
  border-color: var(--repo-azul-escuro);
  background: var(--repo-brand-grad);
  color: #fff;
  box-shadow: 0 2px 10px rgba(var(--repo-brand-rgb), 0.25);
}

.repo-submissao-step.is-done .repo-submissao-step-circle {
  border-color: #198754;
  background: #198754;
  color: #fff;
}

.repo-submissao-step-label {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  color: #6c757d;
  padding: 0 0.2rem;
}

.repo-submissao-step.is-active .repo-submissao-step-label {
  color: var(--repo-azul-escuro);
}

.repo-submissao-step.is-done .repo-submissao-step-label {
  color: #198754;
}

@media (max-width: 575.98px) {
  .repo-submissao-step-label {
    font-size: 0.65rem;
  }
}

/* Dropdown Comunidade & Coleções — UO + hover (desktop) */
.repo-dropdown-menu-wide {
  min-width: min(22rem, calc(100vw - 2rem));
}

.repo-dropdown-header-muted {
  letter-spacing: 0.06em;
  color: #64748b !important;
  font-size: 0.65rem !important;
}

.repo-dropdown-scroll-li {
  list-style: none;
}

.repo-dropdown-uo-scroll {
  max-height: min(50vh, 18rem);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.15rem 0;
  scrollbar-width: thin;
  /* Firefox — polegar discreto, fundo integrado no dropdown claro */
  scrollbar-color: rgba(148, 163, 184, 0.32) transparent;
}

.repo-dropdown-uo-scroll::-webkit-scrollbar {
  width: 6px;
}

.repo-dropdown-uo-scroll::-webkit-scrollbar-track {
  background: transparent;
  margin: 0.2rem 0;
}

.repo-dropdown-uo-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.repo-dropdown-uo-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.42);
  background-clip: padding-box;
}

.repo-dropdown-item-uo {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  gap: 0.1rem;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  white-space: normal !important;
  border-radius: 8px !important;
  margin: 0 0.35rem;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.repo-dropdown-item-uo:hover,
.repo-dropdown-item-uo:focus {
  transform: translateX(2px);
}

.repo-uo-item-sigla {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--repo-azul-escuro);
  letter-spacing: 0.04em;
}

.repo-uo-item-nome {
  font-size: 0.78rem;
  line-height: 1.3;
  color: #64748b;
}

/* Pesquisa por unidade orgânica */
.repo-uo-page-form {
  display: block;
}

.repo-uo-search-hero {
  position: relative;
  z-index: 0;
  isolation: isolate;
  padding: 1.5rem 0 2rem;
  background: linear-gradient(165deg, #eef3f9 0%, #e4ecf6 38%, #dce6f3 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.04);
}

body.repo-page-uo-search .repo-uo-search-hero {
  margin-top: calc(-1 * var(--repo-header-offset));
  padding-top: calc(var(--repo-header-offset) + 1.35rem);
}

.repo-uo-search-hero-inner {
  max-width: 800px;
}

.repo-uo-hero-search-shell {
  max-width: 100%;
}

.repo-uo-search-title-sep {
  color: #94a3b8;
  font-weight: 400;
}

.repo-uo-search-title-name {
  color: #475569;
  font-weight: 500;
}

.repo-uo-search-scope {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
  max-width: 52ch;
}

.repo-filters--uo {
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

.repo-filters-uo-heading {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 0.35rem;
}

.repo-filters-uo-lead {
  margin-bottom: 1rem;
  line-height: 1.4;
}

.repo-uo-sidebar-apply {
  border-radius: 10px;
  font-weight: 600;
  margin-top: 0.25rem;
}

.repo-uo-breadcrumb a {
  color: #64748b;
}

.repo-uo-breadcrumb a:hover {
  color: var(--repo-azul);
}

.repo-uo-search-kicker {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.repo-uo-search-title {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1e3a5f;
}

.repo-uo-search-lead {
  max-width: 640px;
  font-size: 0.95rem;
}

.repo-layout-uo .repo-filters {
  align-self: flex-start;
}

.repo-uo-block {
  padding: 1.35rem 1.5rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 28px rgba(15, 23, 42, 0.055);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.25s ease;
}

.repo-uo-block:hover {
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.07);
}

.repo-uo-block--pipeline {
  background: linear-gradient(165deg, #f8fafc 0%, #fff 55%);
}

.repo-uo-block-title {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 600;
  color: #1e3a5f;
  letter-spacing: -0.02em;
}

.repo-uo-block-sub {
  line-height: 1.45;
}

.repo-card--pipeline {
  border-left: 3px solid rgba(var(--repo-brand-rgb), 0.35);
}

.repo-card-head-row {
  margin-bottom: 0.35rem;
}

.repo-estado-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(var(--repo-brand-rgb), 0.1);
  color: var(--repo-azul-escuro);
}

.repo-btn-primary-soft {
  border-radius: 10px;
  padding: 0.45rem 1.15rem;
  font-weight: 600;
  background: var(--repo-brand-grad);
  color: #fff;
  border: none;
  text-decoration: none;
  display: inline-block;
  transition: filter 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(var(--repo-brand-rgb), 0.22);
}

.repo-btn-primary-soft:hover {
  filter: brightness(0.94);
  color: #fff;
}

/* —— Página de login (estilo cápsula / referência moderna) —— */
body.repo-login-page .repo-login-main {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(90% 70% at 50% -10%, rgba(var(--repo-brand-rgb), 0.07) 0%, transparent 55%),
    radial-gradient(60% 50% at 100% 40%, rgba(var(--repo-brand-light-rgb), 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f4f7fb 55%, #eef2f7 100%);
}

body.repo-login-page .repo-login-container {
  max-width: 400px;
}

body.repo-login-page .repo-login-panel {
  max-width: 360px;
}

body.repo-login-page .repo-login-alert {
  margin-bottom: 1rem;
}

body.repo-login-page .repo-login-alert--error {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border-radius: 16px;
  border: 1px solid rgba(220, 38, 38, 0.28);
  background: linear-gradient(
    135deg,
    rgba(254, 242, 242, 0.98) 0%,
    rgba(255, 251, 235, 0.92) 100%
  );
  color: #7f1d1d;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 4px 22px rgba(185, 28, 28, 0.1),
    0 1px 3px rgba(15, 23, 42, 0.04);
  padding: 0.8rem 1rem 0.85rem;
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 550;
  letter-spacing: 0.01em;
}

body.repo-login-page .repo-login-alert--error .repo-login-alert-ico {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.14);
  color: #b91c1c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  margin-top: 0.05rem;
  box-shadow: 0 1px 2px rgba(185, 28, 28, 0.08);
}

body.repo-login-page .repo-login-alert--error .repo-login-alert-text {
  min-width: 0;
  padding-top: 0.15rem;
}

body.repo-login-page .repo-login-card {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.65);
  border-radius: 0;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 14px 36px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: box-shadow 0.4s ease;
}

@media (hover: hover) {
  body.repo-login-page .repo-login-card:hover {
    box-shadow:
      0 2px 6px rgba(15, 23, 42, 0.05),
      0 18px 42px rgba(15, 23, 42, 0.08);
  }
}

body.repo-login-page .repo-login-card-inner {
  padding: 1.65rem 1.35rem 1.5rem;
}

@media (min-width: 576px) {
  body.repo-login-page .repo-login-card-inner {
    padding: 1.85rem 1.65rem 1.65rem;
  }
}

/* Avatar circular (anel cinza + núcleo azul + silhueta branca) */
body.repo-login-page .repo-login-avatar-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(203, 213, 225, 0.95);
}

body.repo-login-page .repo-login-avatar-core {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.55rem;
  height: 3.55rem;
  border-radius: 50%;
  background: var(--repo-brand-grad);
  color: #ffffff;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(var(--repo-brand-rgb), 0.32);
}

/* Título com linhas (SIGN IN style) */
body.repo-login-page .repo-login-title-row {
  display: flex;
  width: 100%;
  max-width: 14rem;
  margin-left: auto;
  margin-right: auto;
}

body.repo-login-page .repo-login-title-line {
  flex: 1;
  min-width: 0.75rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cbd5e1 20%, #cbd5e1 80%, transparent);
  align-self: center;
}

body.repo-login-page .repo-login-title {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--repo-azul);
}

/* Campos em cápsula com ícone */
body.repo-login-page .repo-login-field {
  position: relative;
  display: flex;
  align-items: center;
}

body.repo-login-page .repo-login-field-icon {
  position: absolute;
  left: 0.45rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #94a3b8;
  color: #ffffff;
  font-size: 0.75rem;
  pointer-events: none;
  transition: background 0.2s ease;
}

body.repo-login-page .repo-login-field:focus-within .repo-login-field-icon {
  background: var(--repo-azul);
}

body.repo-login-page .repo-login-pill-input {
  border-radius: 0;
  border: 1px solid #d1d5db;
  padding: 0.55rem 0.85rem 0.55rem 2.85rem;
  font-size: 0.875rem;
  min-height: calc(2rem + 0.85rem);
  background: #fafbfc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.repo-login-page .repo-login-pill-input:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

body.repo-login-page .repo-login-pill-input:focus {
  border-color: rgba(var(--repo-brand-rgb), 0.45);
  background: #ffffff;
  box-shadow: 0 0 0 0.2rem rgba(var(--repo-brand-rgb), 0.12);
}

body.repo-login-page .repo-login-pill-input::placeholder {
  color: #9ca3af;
}

/* Lembrar-me + esqueceu */
body.repo-login-page .repo-login-remember-label {
  font-size: 0.8125rem;
  color: #64748b;
  padding-left: 0.15rem;
}

body.repo-login-page .repo-login-remember-input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.12rem;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  cursor: pointer;
}

body.repo-login-page .repo-login-remember-input:checked {
  background-color: var(--repo-azul);
  border-color: var(--repo-azul);
}

body.repo-login-page .repo-login-remember-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--repo-brand-rgb), 0.22);
}

body.repo-login-page .repo-login-forgot {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--repo-brand-a);
  text-decoration: none;
  transition: color 0.2s ease;
}

body.repo-login-page .repo-login-forgot:hover {
  color: var(--repo-azul-escuro);
  text-decoration: underline;
}

/* Botão LOGIN em cápsula */
body.repo-login-page .repo-login-submit-pill {
  border-radius: 999px;
  border: none;
  padding: 0.62rem 1.15rem;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--repo-brand-grad);
  box-shadow: 0 4px 14px rgba(var(--repo-brand-rgb), 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

body.repo-login-page .repo-login-submit-pill:hover {
  filter: brightness(1.04);
  box-shadow: 0 6px 18px rgba(var(--repo-brand-rgb), 0.34);
  color: #ffffff;
}

body.repo-login-page .repo-login-submit-pill:active {
  transform: translateY(1px);
}

body.repo-login-page .repo-login-footer-rule {
  height: 1px;
  margin-top: 1.35rem;
  background: linear-gradient(90deg, transparent, #e2e8f0 15%, #e2e8f0 85%, transparent);
}

body.repo-login-page .repo-login-register {
  font-size: 0.8125rem;
}

body.repo-login-page .repo-login-register-link {
  color: var(--repo-brand-a);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

body.repo-login-page .repo-login-register-link:hover {
  color: var(--repo-azul-escuro);
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  body.repo-login-page .repo-login-card,
  body.repo-login-page .repo-login-pill-input,
  body.repo-login-page .repo-login-field-icon,
  body.repo-login-page .repo-login-submit-pill,
  body.repo-login-page .repo-login-forgot,
  body.repo-login-page .repo-login-register-link {
    transition: none;
  }

  body.repo-login-page .repo-login-submit-pill:active {
    transform: none;
  }

  @media (hover: hover) {
    body.repo-login-page .repo-login-card:hover {
      box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 14px 36px rgba(15, 23, 42, 0.06);
    }
  }
}

/* —— Página pública Documentos (ficheiros institucionais) —— */
.repo-docs-hero {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(90% 80% at 50% -20%, rgba(var(--repo-brand-rgb), 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.repo-docs-hero-inner {
  max-width: 36rem;
}

.repo-docs-hero-title {
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.repo-docs-hero-lead {
  max-width: 32rem;
  line-height: 1.55;
  font-size: 0.95rem;
}

.repo-docs-main {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.repo-docs-alert {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.letter-spacing-wide {
  letter-spacing: 0.08em;
}

.repo-docs-empty {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px dashed rgba(148, 163, 184, 0.45);
}

.repo-docs-empty-icon {
  font-size: 2.5rem;
  color: #94a3b8;
}

.repo-docs-card {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.75);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 10px 28px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}

.repo-docs-card:hover {
  border-color: rgba(var(--repo-brand-rgb), 0.2);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07), 0 14px 36px rgba(var(--repo-brand-rgb), 0.06);
  transform: translateY(-2px);
}

.repo-docs-card-body {
  padding: 1.15rem 1.15rem 0.5rem;
}

.repo-docs-icon-wrap {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(var(--repo-brand-rgb), 0.12), rgba(var(--repo-brand-light-rgb), 0.1));
  color: var(--repo-azul);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.repo-docs-card-title {
  color: #0f172a;
  font-weight: 650;
}

.repo-docs-card-desc {
  line-height: 1.45;
}

.repo-docs-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.45rem;
  padding: 0 1rem 1rem;
  margin-top: auto;
}

/* Mesmos botões que article.repo-card .repo-result-actions (pesquisa index) */
article.repo-docs-card .repo-docs-card-footer .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.26rem 0.65rem;
  border-radius: 999px;
  border: none;
  line-height: 1.25;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

article.repo-docs-card .repo-docs-card-footer .btn i {
  font-size: 0.65rem;
  opacity: 0.88;
}

article.repo-docs-card .repo-docs-card-footer .btn:active {
  transform: scale(0.98);
}

article.repo-docs-card .repo-docs-card-footer .btn:focus-visible {
  outline: 2px solid rgba(var(--repo-brand-rgb), 0.45);
  outline-offset: 2px;
}

article.repo-docs-card .repo-btn-view {
  background: #fff;
  color: #64748b;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

article.repo-docs-card .repo-btn-view:hover {
  background: #f8fafc;
  color: #334155;
  border-color: #cbd5e1 !important;
}

article.repo-docs-card .repo-btn-download {
  background: #f8fafc;
  color: #64748b !important;
  border: 1px solid #e8ecf1 !important;
  box-shadow: none;
}

article.repo-docs-card .repo-btn-download:hover {
  background: #f1f5f9;
  color: #475569 !important;
  border-color: #dce3eb !important;
}

@media (prefers-reduced-motion: reduce) {
  .repo-docs-card {
    transition: none;
  }

  .repo-docs-card:hover {
    transform: none;
  }

  article.repo-docs-card .repo-docs-card-footer .btn {
    transition: none;
  }
}

/* —— Página Autores (painel suave, alinhado à marca UAN) —— */
.repo-autores-page {
  --repo-autores-heading: #1e293b;
  --repo-autores-slate: #64748b;
  --repo-autores-ico-bg-a: rgba(var(--repo-brand-light-rgb), 0.14);
  --repo-autores-ico-bg-b: rgba(var(--repo-brand-rgb), 0.1);
  --repo-autores-ico-fg: var(--repo-azul);
  --repo-autores-ring: rgba(var(--repo-brand-rgb), 0.22);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(
    168deg,
    rgba(var(--repo-brand-light-rgb), 0.06) 0%,
    #ffffff 42%,
    rgba(var(--repo-brand-rgb), 0.04) 100%
  );
}

.repo-autores-sidebar {
  position: relative;
}

@media (min-width: 992px) {
  .repo-autores-sidebar {
    padding-right: 0.75rem;
    border-right: 1px solid rgba(var(--repo-brand-rgb), 0.12);
  }
}

.repo-autores-dash-side-brand {
  display: flex;
  align-items: center;
}

.repo-autores-dash-side-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1rem;
  color: var(--repo-autores-ico-fg);
  background: linear-gradient(155deg, var(--repo-autores-ico-bg-a) 0%, var(--repo-autores-ico-bg-b) 100%);
  border: 1px solid rgba(var(--repo-brand-rgb), 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 2px 14px rgba(var(--repo-brand-rgb), 0.1);
}

.repo-autores-title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--repo-autores-heading);
  line-height: 1.2;
}

.repo-autores-sidebar .repo-autores-lead {
  line-height: 1.6;
  font-size: 0.9rem;
  color: #64748b;
}

.repo-autores-main-col {
  min-width: 0;
}

.repo-autores-centered {
  max-width: min(100%, 52rem);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.repo-autores-alert {
  margin: 0;
}

/* Cartões estilo painel */
.repo-autores-dash-card {
  background: #ffffff;
  border: 1px solid rgba(var(--repo-brand-rgb), 0.1);
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 32px rgba(var(--repo-brand-rgb), 0.08);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.repo-autores-dash-card:hover {
  border-color: rgba(var(--repo-brand-rgb), 0.16);
  box-shadow:
    0 2px 8px rgba(15, 23, 42, 0.05),
    0 14px 40px rgba(var(--repo-brand-rgb), 0.1);
}

.repo-autores-dash-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem 0.85rem;
  border-bottom: 1px solid rgba(var(--repo-brand-rgb), 0.08);
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    rgba(var(--repo-brand-light-rgb), 0.06) 100%
  );
}

.repo-autores-dash-card-head-left {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.repo-autores-dash-ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-size: 0.88rem;
  color: var(--repo-azul);
  background: linear-gradient(
    155deg,
    rgba(var(--repo-brand-light-rgb), 0.2) 0%,
    rgba(var(--repo-brand-rgb), 0.12) 100%
  );
  border: 1px solid rgba(var(--repo-brand-rgb), 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 1px 8px rgba(var(--repo-brand-rgb), 0.1);
}

.repo-autores-dash-ico--navy {
  background: linear-gradient(
    155deg,
    rgba(var(--repo-brand-light-rgb), 0.22) 0%,
    rgba(var(--repo-brand-rgb), 0.14) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 8px rgba(var(--repo-brand-rgb), 0.12);
}

.repo-autores-dash-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--repo-autores-heading);
}

.repo-autores-dash-card-sub {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 0.2rem;
  line-height: 1.45;
}

.repo-autores-dash-stat {
  color: var(--repo-autores-slate);
  font-weight: 700;
  margin-left: 0.15rem;
}

.repo-autores-dash-chevron {
  flex-shrink: 0;
  color: rgba(var(--repo-brand-rgb), 0.28);
  font-size: 0.85rem;
  padding-top: 0.15rem;
}

.repo-autores-dash-card-body {
  padding: 1.15rem 1.25rem 1.25rem;
}

.repo-autores-dash-card-body--flush {
  padding: 0;
}

.repo-autores-dash-card--table .repo-autores-table-scroll {
  overflow-x: auto;
}

.repo-autores-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.38rem;
}

.repo-autores-input {
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  font-size: 0.9rem;
  padding: 0.55rem 0.85rem;
  background: #f8fafc;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.repo-autores-input-mono {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.8125rem;
}

.repo-autores-input:focus {
  border-color: rgba(var(--repo-brand-rgb), 0.45) !important;
  background: #fff;
  box-shadow: 0 0 0 3px var(--repo-autores-ring) !important;
}

.repo-autores-btn-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  color: #fff;
  background-image: var(--repo-brand-grad);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 2px 12px rgba(var(--repo-brand-rgb), 0.28);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.repo-autores-btn-filter:hover {
  color: #fff;
  filter: brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 4px 18px rgba(var(--repo-brand-rgb), 0.32);
}

.repo-autores-btn-filter:active {
  transform: scale(0.98);
}

.repo-autores-btn-clear {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.repo-autores-btn-clear:hover {
  background: rgba(var(--repo-brand-light-rgb), 0.12);
  border-color: rgba(var(--repo-brand-rgb), 0.2);
  color: var(--repo-azul);
}

.repo-autores-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
  --bs-table-hover-bg: transparent;
}

.repo-autores-table thead th {
  padding: 0.72rem 1.05rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  color: var(--repo-autores-heading);
  background: linear-gradient(
    180deg,
    rgba(var(--repo-brand-rgb), 0.09) 0%,
    rgba(var(--repo-brand-light-rgb), 0.06) 100%
  );
  border-bottom: 1px solid rgba(var(--repo-brand-rgb), 0.14);
  white-space: nowrap;
}

.repo-autores-table thead th:first-child {
  padding-left: 1.2rem;
}

.repo-autores-table thead th:last-child {
  padding-right: 1.2rem;
}

.repo-autores-table tbody td {
  padding: 0.78rem 1.05rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(28, 36, 51, 0.055);
  color: #475569;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.repo-autores-table tbody td:first-child {
  padding-left: 1.2rem;
}

.repo-autores-table tbody td:last-child {
  padding-right: 1.2rem;
}

.repo-autores-table tbody tr.repo-autores-row:nth-child(even) td {
  background-color: rgba(var(--repo-brand-rgb), 0.03);
}

.repo-autores-table tbody tr.repo-autores-row:last-child td {
  border-bottom: none;
}

.repo-autores-table tbody tr.repo-autores-row {
  transition: background-color 0.18s ease;
}

.repo-autores-table tbody tr.repo-autores-row:hover td {
  background-color: rgba(var(--repo-brand-light-rgb), 0.14) !important;
  box-shadow:
    inset 0 0 0 1px rgba(var(--repo-brand-rgb), 0.07),
    inset 0 1px 20px rgba(var(--repo-brand-light-rgb), 0.12);
}

.repo-autores-row-empty td {
  border-bottom: none !important;
  padding: 0 !important;
}

.repo-autores-empty {
  text-align: center;
  padding: 2.75rem 1.5rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

.repo-autores-name {
  display: block;
  font-weight: 650;
  color: var(--repo-autores-heading);
  letter-spacing: -0.015em;
}

.repo-autores-meta-mobile {
  display: block;
  font-size: 0.78rem;
  margin-top: 0.25rem;
  line-height: 1.35;
}

.repo-autores-td-uo {
  font-size: 0.84rem;
  color: #64748b;
  max-width: 14rem;
}

.repo-autores-dash-emptymark {
  color: #cbd5e1;
}

.repo-autores-orcid-link {
  font-size: 0.78rem;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  color: var(--repo-autores-slate);
  text-decoration: none;
  word-break: break-all;
  font-weight: 500;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.repo-autores-orcid-link:hover {
  color: var(--repo-azul);
  text-decoration: underline;
}

.repo-autores-td-count {
  width: 1%;
  white-space: nowrap;
}

.repo-autores-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  min-height: 2.2rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--repo-azul);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(var(--repo-brand-rgb), 0.08) 100%
  );
  border: 1px solid rgba(var(--repo-brand-rgb), 0.2);
  box-shadow:
    0 1px 3px rgba(var(--repo-brand-rgb), 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.repo-autores-table tbody tr.repo-autores-row:hover .repo-autores-count {
  background: linear-gradient(
    165deg,
    rgba(var(--repo-brand-light-rgb), 0.22) 0%,
    rgba(var(--repo-brand-rgb), 0.12) 100%
  );
  border-color: rgba(var(--repo-brand-rgb), 0.32);
  box-shadow:
    0 3px 12px rgba(var(--repo-brand-rgb), 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.repo-autores-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
  padding: 0 0.15rem;
}

.repo-autores-total {
  font-size: 0.8125rem;
  color: #64748b;
}

.repo-autores-total strong {
  color: var(--repo-autores-heading);
  font-weight: 650;
}

.repo-autores-pag-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.repo-autores-page-link {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 1.05rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--repo-azul);
  background: #fff;
  border: 1px solid rgba(var(--repo-brand-rgb), 0.22);
  text-decoration: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.repo-autores-page-link:hover {
  background: rgba(var(--repo-brand-light-rgb), 0.12);
  border-color: rgba(var(--repo-brand-rgb), 0.35);
  color: var(--repo-azul-escuro);
  box-shadow: 0 2px 10px rgba(var(--repo-brand-rgb), 0.12);
}

.repo-autores-page-current {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
  padding: 0 0.35rem;
}

@media (max-width: 991.98px) {
  .repo-autores-sidebar {
    padding-bottom: 1.25rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(var(--repo-brand-rgb), 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .repo-autores-dash-card,
  .repo-autores-btn-filter,
  .repo-autores-table tbody tr.repo-autores-row,
  .repo-autores-table tbody td,
  .repo-autores-count,
  .repo-autores-page-link,
  .repo-autores-orcid-link {
    transition: none;
  }

  .repo-autores-btn-filter:active {
    transform: none;
  }
}

/* —— Página pública Sobre (hero + painel de leitura) —— */
.repo-sobre-page {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 22%, #ffffff 55%, #f8fafc 100%);
}

.repo-sobre-page ::selection {
  background: rgba(var(--repo-brand-rgb), 0.14);
  color: #0f172a;
}

.repo-sobre-hero {
  position: relative;
  padding: 2.25rem 0 2.75rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: linear-gradient(145deg, #eef2f7 0%, #e2e8f0 38%, #f8fafc 100%);
  overflow: hidden;
}

.repo-sobre-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(var(--repo-brand-rgb), 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(100, 116, 139, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.repo-sobre-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.repo-sobre-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.repo-sobre-kicker-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 10px;
  font-size: 0.8rem;
  color: #475569;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.9) 100%);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.repo-sobre-title {
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
  color: #1e293b;
  text-wrap: balance;
}

.repo-sobre-title-line {
  width: 3.5rem;
  height: 4px;
  margin-top: 1.15rem;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--repo-azul) 0%, rgba(var(--repo-brand-rgb), 0.35) 55%, transparent 100%);
}

.repo-sobre-main-wrap {
  margin-top: -1.35rem;
  position: relative;
  z-index: 2;
}

.repo-sobre-panel {
  position: relative;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  padding: 1.85rem 1.35rem 1.65rem;
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 22px 56px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset;
}

.repo-sobre-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(var(--repo-brand-rgb), 0.2) 22%,
    var(--repo-azul) 50%,
    rgba(var(--repo-brand-rgb), 0.2) 78%,
    transparent 100%
  );
  opacity: 0.85;
  pointer-events: none;
}

@media (min-width: 768px) {
  .repo-sobre-panel {
    padding: 2.35rem 2.35rem 2.1rem;
  }
}

.repo-sobre-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: none;
  margin-top: 0.35rem;
}

.repo-sobre-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.2rem;
  align-items: start;
  padding: 1.15rem 0.65rem;
  margin: 0 -0.35rem;
  border-radius: 14px;
  border: 1px solid transparent;
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.repo-sobre-block:hover {
  background-color: rgba(248, 250, 252, 0.95);
  border-color: rgba(226, 232, 240, 0.65);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.repo-sobre-block:nth-child(even):not(:hover) {
  background-color: rgba(248, 250, 252, 0.45);
}

.repo-sobre-block--lead {
  background: linear-gradient(135deg, rgba(var(--repo-brand-rgb), 0.04) 0%, rgba(248, 250, 252, 0.5) 55%, transparent 100%);
  border-color: rgba(var(--repo-brand-rgb), 0.07);
}

.repo-sobre-block--lead:hover {
  background: linear-gradient(135deg, rgba(var(--repo-brand-rgb), 0.06) 0%, rgba(248, 250, 252, 0.85) 50%, rgba(248, 250, 252, 0.95) 100%);
  border-color: rgba(var(--repo-brand-rgb), 0.1);
}

.repo-sobre-block-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 14px;
  font-size: 1rem;
  color: #5c6b7a;
  background: linear-gradient(155deg, #f1f5f9 0%, #e2e8f0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 2px 8px rgba(15, 23, 42, 0.05);
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.repo-sobre-block:hover .repo-sobre-block-mark {
  transform: scale(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 4px 14px rgba(15, 23, 42, 0.08);
}

.repo-sobre-block--lead .repo-sobre-block-mark {
  color: var(--repo-azul);
  background: linear-gradient(155deg, rgba(var(--repo-brand-rgb), 0.12) 0%, rgba(var(--repo-brand-rgb), 0.05) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 2px 12px rgba(var(--repo-brand-rgb), 0.1);
}

.repo-sobre-block-text {
  min-width: 0;
  padding-top: 0.15rem;
}

.repo-sobre-prose-p {
  margin: 0;
  line-height: 1.78;
  color: #475569;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

.repo-sobre-block--lead .repo-sobre-prose-p {
  font-size: 1.08rem;
  line-height: 1.82;
  color: #334155;
  font-weight: 450;
}

@media (max-width: 575.98px) {
  .repo-sobre-hero {
    padding: 1.75rem 0 2.25rem;
  }

  .repo-sobre-panel::before {
    left: 8%;
    right: 8%;
  }

  .repo-sobre-block {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 1rem 0.5rem;
  }

  .repo-sobre-block-mark {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .repo-sobre-block,
  .repo-sobre-block-mark {
    transition: none;
  }

  .repo-sobre-block:hover .repo-sobre-block-mark {
    transform: none;
  }
}

/* ——— Perguntas frequentes ——— */
.repo-faq-main {
  max-width: 760px;
}

.repo-faq-title {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--repo-cinza-escuro);
}

.repo-faq-lead {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--repo-cinza);
  max-width: 42rem;
}

.repo-faq-accordion {
  counter-reset: repo-faq;
  --bs-accordion-bg: transparent;
  --bs-accordion-border-width: 0;
  --bs-accordion-btn-focus-box-shadow: 0 0 0 3px rgba(var(--repo-brand-rgb), 0.22);
}

.repo-faq-accordion .accordion-item {
  margin-bottom: 0.7rem;
  border: 1px solid rgba(var(--repo-brand-rgb), 0.12);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(28, 36, 51, 0.04),
    0 8px 28px rgba(var(--repo-brand-rgb), 0.07);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.repo-faq-accordion .accordion-item:last-child {
  margin-bottom: 0;
}

.repo-faq-accordion .accordion-item:has(.accordion-button:not(.collapsed)) {
  border-color: rgba(var(--repo-brand-rgb), 0.22);
  box-shadow:
    0 2px 6px rgba(28, 36, 51, 0.05),
    0 12px 36px rgba(var(--repo-brand-rgb), 0.1);
}

.repo-faq-accordion .accordion-button {
  position: relative;
  padding: 1.05rem 2.85rem 1.05rem 3.35rem;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.4;
  color: #2d3748;
  background: linear-gradient(180deg, #fff 0%, rgba(var(--repo-brand-light-rgb), 0.05) 100%);
  box-shadow: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.repo-faq-accordion .accordion-button:not(.collapsed) {
  color: var(--repo-azul);
  background: linear-gradient(
    180deg,
    rgba(var(--repo-brand-light-rgb), 0.14) 0%,
    rgba(var(--repo-brand-rgb), 0.06) 100%
  );
}

.repo-faq-accordion .accordion-button::before {
  counter-increment: repo-faq;
  content: counter(repo-faq);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.85rem;
  text-align: center;
  color: #fff;
  background: var(--repo-brand-grad);
  box-shadow: 0 2px 8px rgba(var(--repo-brand-rgb), 0.25);
}

.repo-faq-accordion .accordion-button.collapsed::before {
  opacity: 0.92;
  box-shadow: 0 1px 4px rgba(var(--repo-brand-rgb), 0.18);
}

.repo-faq-accordion .accordion-button:hover {
  z-index: 1;
}

.repo-faq-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.repo-faq-accordion .accordion-button::after {
  filter: opacity(0.75);
}

.repo-faq-accordion .accordion-body {
  padding: 1.05rem 1.35rem 1.35rem 3.35rem;
  font-size: 0.94rem;
  line-height: 1.68;
  color: #475569;
  background: linear-gradient(180deg, rgba(var(--repo-brand-light-rgb), 0.07) 0%, #f8fafc 55%, #fff 100%);
  border-top: 1px solid rgba(var(--repo-brand-rgb), 0.09);
}

.repo-faq-accordion .accordion-body strong {
  color: #334155;
  font-weight: 600;
}

@media (max-width: 575.98px) {
  .repo-faq-accordion .accordion-button {
    padding-left: 3.1rem;
    padding-right: 2.5rem;
    font-size: 0.9rem;
  }

  .repo-faq-accordion .accordion-body {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .repo-faq-accordion .accordion-button::before {
    left: 0.75rem;
    width: 1.65rem;
    height: 1.65rem;
    line-height: 1.65rem;
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .repo-faq-accordion .accordion-item,
  .repo-faq-accordion .accordion-button {
    transition: none;
  }
}
