/* Journal — overrides for main site global styles */

/* Site header (no lang switcher on journal pages) */
body.journal-body > header {
  position: relative;
  z-index: 3000;
  flex-wrap: nowrap;
}

body.journal-body > header > a {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

body.journal-body > header .nav-burger {
  margin-left: auto;
}

body.journal-body > header nav {
  flex-shrink: 1;
}

body.journal-body > header nav a.nav-active {
  color: var(--color-blue);
  font-weight: 700;
}

/* Breadcrumb must NOT inherit nav menu styles */
body.journal-body main nav.article-breadcrumb {
  display: block;
  position: static;
  background: transparent;
  padding: 0;
  margin-bottom: 2rem;
  box-shadow: none;
  max-height: none;
  overflow: visible;
  border-radius: 0;
  gap: 0;
}

body.journal-body main nav.article-breadcrumb a {
  display: inline;
  width: auto;
  text-align: left;
  padding: 0;
  border-bottom: none;
  font-weight: 500;
}

/* Main content */
main.journal-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  box-sizing: border-box;
  flex: 1;
}

main.journal-content--article {
  max-width: 900px;
}

main.journal-content--article > article {
  background: #fff;
  border: 1px solid rgba(10, 15, 44, 0.08);
  border-radius: 1.4rem;
  box-shadow: 0 16px 40px rgba(10, 15, 44, 0.08);
  padding: 3rem 3.5rem 2.5rem;
}

body.journal-body--article #particles-bg {
  opacity: 0.55;
}

.journal-hero {
  margin-bottom: 3rem;
  padding: 2.5rem 2rem;
  background: #fff;
  border: 1px solid rgba(10, 15, 44, 0.08);
  border-radius: 1.4rem;
  box-shadow: 0 16px 36px rgba(10, 15, 44, 0.06);
}

.journal-hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--color-blue);
  margin: 0 0 0.85rem;
}

.journal-hero__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.85rem;
  color: var(--color-dark);
}

.journal-hero__desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(10, 15, 44, 0.72);
  max-width: 560px;
  margin: 0;
}

.journal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.journal-filter {
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(10, 15, 44, 0.14);
  background: #fff;
  color: rgba(10, 15, 44, 0.7);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.journal-filter:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
  transform: translateY(-1px);
}

.journal-filter.is-active {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(36, 87, 245, 0.25);
}

.journal-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.journal-item {
  list-style: none;
}

.journal-item[hidden] {
  display: none;
}

.journal-item__link {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1.25rem;
  align-items: start;
  padding: 1.75rem 2rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(10, 15, 44, 0.08);
  border-radius: 1.2rem;
  box-shadow: 0 8px 24px rgba(10, 15, 44, 0.04);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.3s;
}

.journal-item__link:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 87, 245, 0.2);
  box-shadow: 0 16px 40px rgba(36, 87, 245, 0.12);
}

.journal-item__link:hover .journal-item__title {
  color: var(--color-blue);
}

.journal-item__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.journal-item__body {
  min-width: 0;
}

.journal-item__type {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-blue);
}

.journal-item__type--event {
  color: #16347e;
}

.journal-item__type--media {
  color: #b42318;
}

.journal-item__date {
  font-size: 0.82rem;
  color: rgba(10, 15, 44, 0.5);
}

.journal-item__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 0.45rem;
  transition: color 0.2s;
  color: var(--color-dark);
}

.journal-item__excerpt {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(10, 15, 44, 0.68);
  margin: 0;
}

.journal-item__arrow {
  font-size: 1.2rem;
  color: rgba(10, 15, 44, 0.25);
  align-self: center;
  transition: transform 0.25s, color 0.25s;
}

.journal-item__link:hover .journal-item__arrow {
  transform: translateX(6px);
  color: var(--color-blue);
}

/* Scroll-triggered animations */
body.journal-body .animate-fadein-up {
  opacity: 0;
  transform: translateY(28px);
  animation: none;
}

body.journal-body .animate-fadein-up.in-view {
  animation: fadein-up 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Article */
.article-breadcrumb {
  font-size: 0.85rem;
  color: rgba(10, 15, 44, 0.55);
}

.article-breadcrumb a {
  color: var(--color-blue);
  text-decoration: none;
}

.article-breadcrumb a:hover {
  text-decoration: underline;
}

.article-breadcrumb span {
  margin: 0 0.4rem;
  opacity: 0.4;
}

.article-header {
  margin-bottom: 0;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(10, 15, 44, 0.1);
}

.article-header__type {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-blue);
  margin: 0 0 1rem;
}

.article-header__title {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 1.25rem;
  color: var(--color-dark);
}

.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.88rem;
  color: rgba(10, 15, 44, 0.55);
}

.article-content {
  font-size: 1.08rem;
  line-height: 1.8;
  color: rgba(10, 15, 44, 0.92);
  padding-top: 2rem;
}

.article-content h2 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem;
  color: var(--color-dark);
}

.article-content p {
  margin: 0 0 1.25rem;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.25rem 1.25rem;
  padding: 0;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--color-blue);
  background: var(--color-bg);
  border-radius: 0 12px 12px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(10, 15, 44, 0.88);
}

.article-content blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-style: normal;
  color: rgba(10, 15, 44, 0.55);
}

.article-video {
  position: relative;
  width: 100%;
  margin: 2rem 0 2.5rem;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  background: #0a0f2c;
  box-shadow: 0 12px 32px rgba(10, 15, 44, 0.12);
}

.article-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.article-video__poster {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
}

.article-video__poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-video__poster:hover .article-video__play {
  transform: scale(1.06);
}

.article-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4.5rem;
  height: 4.5rem;
  margin: -2.25rem 0 0 -2.25rem;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.92);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.article-video__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.7rem 0 0.7rem 1.15rem;
  border-color: transparent transparent transparent #fff;
}

.article-video__label {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(10, 15, 44, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.article-cta {
  margin-top: 3rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(145deg, #16347e 0%, #1f4fbf 100%);
  border-radius: 1.4rem;
  text-align: center;
  color: #fff;
}

.article-cta h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  color: #fff;
}

.article-cta p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0 0 1.25rem;
}

.article-cta .cta-btn.cta-destaque {
  display: inline-block;
  background: #fff;
  color: var(--color-blue);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.85rem 2rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
}

.article-cta .cta-btn.cta-destaque:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.article-back {
  display: inline-flex;
  align-items: center;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-blue);
  text-decoration: none;
}

.article-back:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  body.journal-body > header {
    padding: 1rem;
  }

  body.journal-body > header .nav-burger {
    display: flex;
    order: 2;
  }

  body.journal-body > header > a {
    order: 0;
  }

  body.journal-body > header nav {
    order: 3;
  }

  main.journal-content {
    padding: 1.5rem 1rem 3rem;
  }

  main.journal-content--article > article {
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 1rem;
  }

  .journal-hero {
    padding: 1.75rem 1.25rem;
    border-radius: 1rem;
  }

  .journal-item__link {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.35rem 1.25rem;
  }

  .journal-item__arrow {
    display: none;
  }

  .journal-item__meta {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }

  body.journal-body > header nav a {
    font-size: 0.95rem;
  }
}

@media (min-width: 701px) {
  body.journal-body > header .nav-burger {
    display: none;
  }
}
