@charset "UTF-8";

/* ── News Hero — tabs / article extras only (shell = wiki-hero) ── */

body.body--news {
  overflow-x: hidden;
}

body.body--news .news-hero + .section_news-page,
body.body--news .news-hero + .section_news-article {
  position: relative;
  z-index: 46;
  margin-top: 0 !important;
  padding-top: 1.5rem !important;
}

body.body--news .news-hero + .section_news-page::before,
body.body--news .news-hero + .section_news-article::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  height: clamp(24px, 4vw, 46px);
  pointer-events: none;
  background: linear-gradient(180deg, #0c0b0a 0%, rgba(12, 11, 10, 0.86) 44%, rgba(12, 11, 10, 0) 100%);
}

/* Extra bottom padding when tabs sit in afterTitle */
body.body--news .wiki-hero.news-hero .wiki-hero__container {
  padding-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
}

/* ── Subtitle row (replaces plain wiki subtitle + divider) ── */

.news-hero__subtitle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  width: min(42rem, 92%);
  margin: 0 0 clamp(1.25rem, 2.2vw, 1.75rem);
}

.news-hero__subtitle-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 169, 107, 0.35) 18%, rgba(240, 209, 138, 0.55) 50%, rgba(200, 169, 107, 0.35) 82%, transparent);
  box-shadow: 0 0 0.6rem rgba(200, 169, 107, 0.12);
}

.news-hero__subtitle {
  margin: 0;
  color: #d7c8a1;
  font-family: var(--font-0, "Open Sans", Arial, sans-serif);
  font-size: clamp(0.72rem, 1vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  opacity: 0.88;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Badge (artigo) — visual das tabs ativas ── */

.news-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
  padding: 0.55rem 1.15rem;
  border: 1px solid rgba(240, 209, 138, 0.65);
  border-radius: 999px;
  background: linear-gradient(180deg, #f0d18a 0%, #c8a96b 55%, #a88445 100%);
  box-shadow:
    0 0.25rem 1rem rgba(200, 169, 107, 0.35),
    inset 0 1px 0 rgba(255, 248, 220, 0.35);
  color: #0c0b0a;
  font-family: var(--font-1, "ChelseaCYR", serif);
  font-size: var(--site-hero-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Article title: keep wiki-hero__title look, only shrink for long headlines */
.news-hero__title--article {
  max-width: min(52rem, 92vw);
  margin-bottom: 22px;
  font-size: clamp(44px, 5.2vw, 72px);
  letter-spacing: 0.1em;
  line-height: 1.08;
  word-break: break-word;
}

.news-hero__date {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.news-hero__date svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: currentColor;
  opacity: 0.85;
}

.news-hero__center--article .news-hero__subtitle-row {
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .news-hero__title--article {
    font-size: clamp(36px, 7vw, 56px);
    letter-spacing: 0.08em;
  }
}

@media (max-width: 767.98px) {
  .news-hero__center--article .news-hero__subtitle {
    letter-spacing: 0.14em;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .news-hero__center--article .news-hero__badge,
  .news-hero__center--article .news-hero__title--article,
  .news-hero__center--article .news-hero__subtitle-row {
    animation: nh-enter 0.85s cubic-bezier(0.2, 1, 0.3, 1) both;
  }

  .news-hero__center--article .news-hero__title--article {
    animation-delay: 0.1s;
  }

  .news-hero__center--article .news-hero__subtitle-row {
    animation-delay: 0.18s;
  }
}

/* ── Category tabs ── */

.news-hero__tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1vw, 0.75rem);
  width: 100%;
  max-width: 68rem;
  margin-bottom: clamp(0.5rem, 1.2vw, 1rem);
}

body.body--news .news-hero__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 2.5rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid rgba(200, 169, 107, 0.28);
  border-radius: 999px;
  background: rgba(12, 11, 10, 0.52);
  appearance: none;
  cursor: pointer;
  color: #d7c8a1;
  font-family: var(--font-1, "ChelseaCYR", serif);
  font-size: var(--site-hero-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  outline: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease;
}

body.body--news .news-hero__tab:hover {
  border-color: rgba(199, 156, 77, 0.35);
  box-shadow: 0 0 20px rgba(199, 156, 77, 0.12);
  color: #ffffff;
  transform: translateY(-1px);
}

body.body--news .news-hero__tab:focus {
  width: auto;
  height: auto;
  min-height: 2.5rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid rgba(200, 169, 107, 0.28);
  border-radius: 999px;
  background: rgba(12, 11, 10, 0.52);
  color: #d7c8a1;
  font-family: var(--font-1, "ChelseaCYR", serif);
  font-size: var(--site-hero-label);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  outline: none;
  box-shadow: none;
}

body.body--news .news-hero__tab.is-active {
  border-color: rgba(240, 209, 138, 0.65);
  background: linear-gradient(180deg, #f0d18a 0%, #c8a96b 55%, #a88445 100%);
  box-shadow:
    0 0.25rem 1rem rgba(200, 169, 107, 0.35),
    inset 0 1px 0 rgba(255, 248, 220, 0.35);
  color: #0c0b0a;
}

body.body--news .news-hero__tab.is-active:focus {
  border-color: rgba(240, 209, 138, 0.65);
  background: linear-gradient(180deg, #f0d18a 0%, #c8a96b 55%, #a88445 100%);
  color: #0c0b0a;
  box-shadow:
    0 0.25rem 1rem rgba(200, 169, 107, 0.35),
    inset 0 1px 0 rgba(255, 248, 220, 0.35);
}

/* ── Responsive ── */

@media (max-width: 767.98px) {
  .news-hero__subtitle {
    letter-spacing: 0.14em;
    white-space: normal;
    text-align: center;
  }

  .news-hero__tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .news-hero__tabs::-webkit-scrollbar {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .news-hero__subtitle-row,
  .news-hero__tabs {
    animation: nh-enter 0.85s cubic-bezier(0.2, 1, 0.3, 1) both;
  }

  .news-hero__subtitle-row {
    animation-delay: 0.12s;
  }

  .news-hero__tabs {
    animation-delay: 0.22s;
  }
}

@keyframes nh-enter {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
