/* Estilos vindos do index.html do site original */

      /* ---- Faixa "Engenharia de Investibilidade" -------------------------- */
      .rs-ie-strip {
        position: relative;
        overflow: hidden;
        isolation: isolate;
        background: linear-gradient(90deg, #fff 0%, #f8f9fa 55%, #f1f3f5 100%);
        border-bottom: 1px solid rgba(10, 31, 68, 0.08);
      }
      /* textura diagonal muito discreta */
      .rs-ie-texture {
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        background-image: repeating-linear-gradient(
          135deg,
          rgba(10, 31, 68, 0.035) 0 1px,
          transparent 1px 8px
        );
      }
      /* fio dourado inferior, esvaindo para a direita (identidade accent-gold) */
      .rs-ie-strip::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 2px;
        z-index: 1;
        background: linear-gradient(
          90deg,
          #c5a059 0%,
          rgba(197, 160, 89, 0.45) 26%,
          rgba(197, 160, 89, 0) 62%
        );
      }
      /* símbolo vazado à direita */
      .rs-ie-mark {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        height: 190%;
        width: auto;
        z-index: 0;
        color: #0a1f44;
        opacity: 0.11;
        pointer-events: none;
      }
      .rs-ie-inner {
        position: relative;
        z-index: 2;
        max-width: 80rem;
        margin: 0 auto;
        padding: 0.9rem 2rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.75rem 1.5rem;
      }
      .rs-ie-title {
        margin: 0;
        border-left: 4px solid #c5a059;
        padding-left: 1rem;
        font-family: Inter, sans-serif;
        font-weight: 700;
        font-size: 1rem;
        line-height: 1.35;
        color: #0a1f44;
        letter-spacing: 0.01em;
      }
      .rs-ie-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #0a1f44;
        color: #fff;
        font-family: Inter, sans-serif;
        font-weight: 700;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        white-space: nowrap;
        padding: 0.8rem 1.9rem;
        border-radius: 0.125rem;
        text-decoration: none;
        transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
      }
      .rs-ie-cta:hover {
        background: #162e5a;
        transform: translateY(-1px);
        box-shadow: 0 10px 25px -10px rgba(10, 31, 68, 0.5);
      }
      .rs-ie-cta:focus-visible {
        outline: 2px solid #c5a059;
        outline-offset: 2px;
      }
      @media (max-width: 767px) {
        .rs-ie-inner {
          padding: 0.85rem 1.5rem;
        }
        .rs-ie-title {
          font-size: 0.875rem;
          border-left-width: 3px;
          padding-left: 0.75rem;
        }
        .rs-ie-cta {
          font-size: 0.625rem;
          padding: 0.65rem 1.15rem;
          letter-spacing: 0.08em;
        }
        .rs-ie-mark {
          opacity: 0.08;
        }
      }
      @media (prefers-reduced-motion: reduce) {
        .rs-ie-cta {
          transition: none;
        }
        .rs-ie-cta:hover {
          transform: none;
        }
      }
    


      /* 5º card de "Contextos de Atuação": ocupa a linha inteira a partir do
         breakpoint em que a grade vira 2 colunas (sm:grid-cols-2 = 640px),
         para não sobrar um vão ao lado dele. */
      @media (min-width: 640px) {
        .rs-ctx-wide {
          grid-column: 1 / -1;
        }
      }

      /* Vitrine de livros (página do fundador): a capa nunca é cortada —
         altura fixa da caixa e a imagem se ajusta dentro dela. */
      .rs-livro-capa {
        width: 100%;
        height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .rs-livro-capa img {
        max-height: 100%;
        max-width: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        box-shadow: 0 12px 28px -14px rgba(10, 31, 68, 0.55);
      }
      @media (min-width: 768px) {
        .rs-livro-capa {
          height: 240px;
        }
      }

      .rs-unicamp-seal {
        margin-top: 2rem;
        display: flex;
        justify-content: center;
      }
      .rs-unicamp-seal img {
        height: 4.5rem;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        opacity: 0.95;
        transition: opacity 0.3s ease;
      }
      .rs-unicamp-seal img:hover {
        opacity: 1;
      }
      @media (min-width: 1024px) {
        .rs-unicamp-seal img {
          height: 5rem;
        }
      }
    


      /* Hide Google Translate native UI and frame banner completely */
      iframe.skiptranslate,
      .goog-te-banner-frame,
      .goog-te-banner-frame.skiptranslate,
      .goog-te-gadget-icon,
      .goog-te-gadget-simple,
      #google_translate_element {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
      }
      body {
        top: 0px !important;
        position: static !important;
      }
      .goog-tooltip,
      .goog-tooltip:hover {
        display: none !important;
        visibility: hidden !important;
      }
      .goog-text-highlight {
        background-color: transparent !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
      }
      summary::-webkit-details-marker {
        display: none !important;
      }
      summary {
        list-style: none !important;
      }
      /* Language switcher: open submenu on click/tap (focus-within), not only hover */
      nav .group.notranslate:hover > div.absolute,
      nav .group.notranslate:focus-within > div.absolute {
        display: block !important;
      }
      /* Bridge the gap between trigger and menu so hover doesn't drop */
      nav .group.notranslate > div.absolute {
        margin-top: 0 !important;
        padding-top: 0.5rem !important;
      }
      /* Utilities purged by the original Tailwind build, re-added for the mobile menu email */
      .min-w-0 { min-width: 0 !important; }
      .break-all { word-break: break-all !important; overflow-wrap: anywhere !important; }

      /* LinkedIn posts carousel: horizontal scroll-snap, swipeable on touch */
      .lk-carousel {
        display: flex;
        flex-wrap: nowrap;
        gap: 2rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        /* impede que a troca dos cards (fallback -> JSON) puxe o scroll
           para o fim: o carrossel deve sempre começar à esquerda */
        overflow-anchor: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1.25rem;
      }
      .lk-carousel > * {
        flex: 0 0 auto;
        width: 85%;
        scroll-snap-align: start;
      }
      @media (min-width: 768px)  { .lk-carousel > * { width: 46%; } }
      @media (min-width: 1024px) { .lk-carousel > * { width: 31.5%; } }
      /* Slim, subtle scrollbar that hints the row is scrollable */
      .lk-carousel::-webkit-scrollbar { height: 6px; }
      .lk-carousel::-webkit-scrollbar-track { background: transparent; }
      .lk-carousel::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 9999px; }
      .lk-carousel:hover::-webkit-scrollbar-thumb { background: rgba(0,0,0,.28); }
      .lk-carousel { scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.18) transparent; }

      /* "Ver todas as publicações" button below the carousel */
      .lk-allbtn-wrap { display: flex; justify-content: center; margin-top: 3rem; }
      .lk-allbtn {
        display: inline-flex; align-items: center; gap: .75rem;
        background: var(--color-primary, #0a1f44); color: #fff;
        font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em;
        padding: 1rem 2rem; border-radius: .125rem; text-decoration: none;
        transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
      }
      .lk-allbtn:hover { background: #13294f; transform: translateY(-1px); box-shadow: 0 10px 25px -10px rgba(10,31,68,.5); }
      .lk-allbtn .material-symbols-outlined { transition: transform .3s ease; }
      .lk-allbtn:hover .material-symbols-outlined { transform: translateX(4px); }
    
/* =========================================================================
   Ajustes especificos da versao WordPress
   ========================================================================= */

/* --- Menu principal (wp_nav_menu) -------------------------------------- */
.rs-menu ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rs-menu li {
  margin: 0;
}
.rs-menu a {
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 0.875rem;
  text-transform: uppercase;
  color: var(--color-on-surface-variant, #495057);
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}
.rs-menu a:hover {
  color: var(--color-primary, #0a1f44);
}
.rs-menu .current-menu-item > a,
.rs-menu .current_page_item > a {
  color: var(--color-primary, #0a1f44);
  border-bottom: 2px solid var(--color-primary, #0a1f44);
  padding-bottom: 0.25rem;
}

/* --- Seletor de idioma -------------------------------------------------- */
.rs-idiomas-lista {
  display: none;
}
.rs-idiomas:hover .rs-idiomas-lista,
.rs-idiomas:focus-within .rs-idiomas-lista {
  display: block;
}

/* --- Menu mobile -------------------------------------------------------- */
.rs-menu-mobile {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #fff;
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.rs-menu-mobile[hidden] {
  display: none;
}
.rs-menu-mobile-itens ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.rs-menu-mobile-itens a {
  font-size: 1.875rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #1b1b1b;
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
}
.rs-menu-mobile-itens a:hover,
.rs-menu-mobile-itens .current-menu-item > a,
.rs-menu-mobile-itens .current_page_item > a {
  color: var(--color-primary, #0a1f44);
}
@media (min-width: 768px) {
  .rs-menu-mobile {
    display: none !important;
  }
}

/* --- Menu do rodape ----------------------------------------------------- */
.rs-menu-rodape ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* nada centralizado, mesmo se vier do menu de emergencia */
  gap: 0.75rem;
  text-align: left;
}
.rs-menu-rodape li {
  margin: 0;
  width: 100%;
}
.rs-menu-rodape a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}
.rs-menu-rodape a:hover {
  color: var(--color-primary, #0a1f44);
}

/* --- Acordeoes (viraram <details>, sem JS) ------------------------------ */
.rs-acordeao > summary {
  list-style: none;
}
.rs-acordeao > summary::-webkit-details-marker,
.rs-acordeao > summary::marker {
  display: none;
  content: "";
}
.rs-acordeao .rs-acordeao-seta {
  transition: transform 0.3s ease;
}
.rs-acordeao[open] .rs-acordeao-seta {
  transform: rotate(180deg);
}

/* --- Conteudo livre de paginas comuns ----------------------------------- */
.rs-conteudo h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-primary, #0a1f44);
  margin: 2rem 0 1rem;
}
.rs-conteudo h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary, #0a1f44);
  margin: 1.5rem 0 0.75rem;
}
.rs-conteudo a {
  color: var(--color-primary, #0a1f44);
  text-decoration: underline;
}
.rs-conteudo ul {
  list-style: disc;
  padding-left: 1.25rem;
}

/* --- Barra do admin nao pode cobrir o menu fixo ------------------------- */
.admin-bar nav.fixed {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar nav.fixed {
    top: 46px;
  }
}
