/* ==========================================================================
   HOME — CSS CONSOLIDADO
   Arquivo carregado somente na Home.
   Sem regras duplicadas, sem hacks de especificidade e sem alterar as internas.
   Breakpoints e preferências responsivas ficam exclusivamente em:
   assets/css/responsive/site.css
   ========================================================================== */

/* ==========================================================================
   01. EIXO DE ENCAIXE
   ========================================================================== */
.gr-page-home main .gr-container,
.gr-page-home .gr-flag-nav-wrap .gr-container,
.gr-page-home .gr-closing .gr-container {
  width: var(--gr-container-wide);
}

/* ==========================================================================
   02. HEADER
   Estado inicial transparente sobre o hero e estado fixo branco.
   O header alterna entre os arquivos reais do logo branco e colorido.
   ========================================================================== */
.gr-page-home {
  --gr-header-height: 6.15rem;
}

/* Fundo inicial: cada cor do gradiente mantém transparência própria. */
.gr-page-home .gr-site-header::before {
  background:
    linear-gradient(
      90deg,
      rgba(3, 24, 66, 0.78) 0%,
      rgba(6, 39, 95, 0.68) 54%,
      rgba(12, 69, 155, 0.58) 100%
    );
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px rgba(3, 24, 66, 0.10);
  backdrop-filter: blur(7px) saturate(112%);
  -webkit-backdrop-filter: blur(7px) saturate(112%);
  transition:
    background 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    backdrop-filter 260ms ease;
}

/* Depois do scroll: branco puro, sem aparência acinzentada. */
.gr-page-home .gr-site-header.is-scrolled::before {
  background: #ffffff;
  border-bottom-color: rgba(12, 69, 155, 0.12);
  box-shadow: 0 10px 30px rgba(4, 27, 77, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.gr-page-home .gr-header__inner {
  gap: clamp(1.45rem, 2.4vw, 2.6rem);
  padding-block: 0.72rem;
}

.gr-page-home .gr-nav {
  gap: clamp(1.05rem, 1.7vw, 1.75rem);
}

/* Aumenta somente a fonte do menu, sem alterar os botões do header. */
.gr-page-home .gr-nav a {
  font-size: clamp(1.02rem, 0.88vw, 1.12rem);
  font-weight: 700;
  line-height: 1;
}

.gr-page-home .gr-site-header:not(.is-scrolled) .gr-nav a {
  color: rgba(255, 255, 255, 0.96);
}

.gr-page-home .gr-site-header.is-scrolled .gr-nav a {
  color: var(--gr-blue-950);
}

.gr-page-home .gr-header__actions {
  gap: 0.9rem;
}

/* As duas versões reais permanecem sobrepostas para a troca de estado. */
.gr-page-home .gr-logo__white,
.gr-page-home .gr-logo__blue {
  transition: opacity 240ms ease;
}

.gr-page-home .gr-site-header:not(.is-scrolled) .gr-logo__white {
  opacity: 1;
}

.gr-page-home .gr-site-header:not(.is-scrolled) .gr-logo__blue {
  opacity: 0;
}

.gr-page-home .gr-site-header.is-scrolled .gr-logo__white {
  opacity: 0;
}

.gr-page-home .gr-site-header.is-scrolled .gr-logo__blue {
  opacity: 1;
}

/* ==========================================================================
   03. HERO
   Bloco textual centralizado verticalmente no próprio container,
   independente da altura da imagem. Títulos longos recebem escala própria.
   ========================================================================== */
.gr-page-home .gr-hero,
.gr-page-home .gr-hero__inner {
  min-height: clamp(41rem, 82vh, 49rem);
}

.gr-page-home .gr-hero__inner {
  grid-template-columns: minmax(0, 1.04fr) minmax(23rem, 0.96fr);
  align-items: stretch;
  gap: clamp(1rem, 2.2vw, 2.6rem);
  padding-top: calc(var(--gr-header-height) + 1.4rem);
}

.gr-page-home .gr-hero__content {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 46rem;
  padding-block: clamp(2.5rem, 5vh, 4rem) clamp(5.2rem, 9vh, 7rem);
  transform: none;
}

/* O badge acompanha apenas o conteúdo, mesmo dentro do flex vertical. */
.gr-page-home .gr-hero__badge {
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
}

.gr-page-home .gr-hero__title {
  max-width: 100%;
  font-size: clamp(3.25rem, 4.85vw, 4.7rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.gr-page-home .gr-hero__title > span {
  display: block;
  text-wrap: balance;
}

/* Aparecida do Taboado, São Gabriel do Oeste e nomes equivalentes. */
.gr-page-home .gr-hero__title.has-long-city {
  font-size: clamp(3rem, 4.35vw, 4.25rem);
}

/* Rio Verde de Mato Grosso e nomes muito extensos. */
.gr-page-home .gr-hero__title.has-very-long-city {
  font-size: clamp(2.72rem, 3.95vw, 3.9rem);
  letter-spacing: -0.03em;
}

.gr-page-home .gr-hero__text {
  max-width: 38rem;
}

.gr-page-home .gr-hero__person {
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-width: 0;
}

.gr-page-home .gr-hero__person img {
  width: min(37.5rem, 108%);
  max-width: none;
  transform: translateX(1.15rem);
}

/* Fala institucional posicionada junto ao bolso e centralizada pela imagem. */
.gr-page-home .gr-hero__quote {
  --gr-hero-quote-bg: linear-gradient(
    135deg,
    rgba(4, 27, 77, 0.88) 0%,
    rgba(12, 69, 155, 0.68) 100%
  );

  position: absolute;
  top: 59%;
  left: 50%;
  z-index: 3;
  width: min(17rem, 58%);
  margin: 0;
  padding: 1.05rem 1.15rem 0.95rem 3.45rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 1.25rem;
  color: var(--gr-white);
  background: var(--gr-hero-quote-bg);
  box-shadow: 0 18px 40px rgba(4, 27, 77, 0.24);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  transform: translate(-50%, -50%);
}

/* Ponteiro acima do balão, usando o mesmo gradiente do bloco. */
.gr-page-home .gr-hero__quote::after {
  content: "";
  position: absolute;
  top: -0.76rem;
  left: 68%;
  width: 1.35rem;
  height: 0.8rem;
  background: var(--gr-hero-quote-bg);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: translateX(-50%);
}

.gr-page-home .gr-hero__quote-mark {
  position: absolute;
  top: 0.65rem;
  left: 1rem;
  color: var(--gr-yellow-500);
  font-family: Georgia, serif;
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1;
}

.gr-page-home .gr-hero__quote p {
  margin: 0;
  color: var(--gr-white);
  font-family: var(--gr-font-quote);
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.32;
}

.gr-page-home .gr-hero__quote cite {
  display: block;
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--gr-font-badge);
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================================
   04. NAVEGAÇÃO RÁPIDA DAS BANDEIRAS
   Inicial claro, hover azul-claro e active com gradiente.
   ========================================================================== */
.gr-page-home .gr-flag-nav__item {
  color: var(--gr-blue-900);
  background: var(--gr-white);
  font-weight: 700;
  cursor: pointer;
  transition:
    color 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    transform 220ms ease;
}

.gr-page-home .gr-flag-nav__item strong,
.gr-page-home .gr-flag-nav__item small {
  font-weight: 700;
  transition: color 220ms ease;
}

.gr-page-home .gr-flag-nav__icon {
  color: var(--gr-blue-900);
  background: var(--gr-surface-2);
  transition:
    color 220ms ease,
    background-color 220ms ease;
}

/* Hover: azul mais claro, textos brancos e círculo do ícone branco. */
.gr-page-home .gr-flag-nav__item:hover {
  color: var(--gr-white);
  background: var(--gr-blue-700);
}

.gr-page-home .gr-flag-nav__item:hover strong,
.gr-page-home .gr-flag-nav__item:hover small,
.gr-page-home .gr-flag-nav__item:hover > i {
  color: var(--gr-white);
}

.gr-page-home .gr-flag-nav__item:hover .gr-flag-nav__icon {
  color: var(--gr-blue-800);
  background: var(--gr-white);
}

/* Active: gradiente azul, textos brancos e círculo do ícone branco. */
.gr-page-home .gr-flag-nav__item.is-active {
  color: var(--gr-white);
  background:
    linear-gradient(
      135deg,
      var(--gr-blue-900) 0%,
      var(--gr-blue-700) 100%
    );
}

.gr-page-home .gr-flag-nav__item.is-active strong,
.gr-page-home .gr-flag-nav__item.is-active small,
.gr-page-home .gr-flag-nav__item.is-active > i {
  color: var(--gr-white);
}

.gr-page-home .gr-flag-nav__item.is-active .gr-flag-nav__icon {
  color: var(--gr-blue-900);
  background: var(--gr-white);
}

.gr-page-home .gr-flag-nav__item:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(24, 189, 229, 0.45);
  outline-offset: -3px;
}

.gr-page-home .gr-flag-nav[data-count="6"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--gr-border);
}

.gr-page-home .gr-flag-nav[data-count="8"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--gr-border);
}

.gr-page-home .gr-flag-nav[data-count="6"] .gr-flag-nav__item {
  min-height: 5.45rem;
  border: 0;
  background-color: var(--gr-white);
}

.gr-page-home .gr-flag-nav[data-count="8"] .gr-flag-nav__item {
  min-height: 5.45rem;
  border: 0;
  background-color: var(--gr-white);
}

.gr-page-home .gr-flag-nav[data-count="6"] .gr-flag-nav__item:hover,
.gr-page-home .gr-flag-nav[data-count="6"] .gr-flag-nav__item.is-active {
  background:
    linear-gradient(
      135deg,
      var(--gr-blue-900) 0%,
      var(--gr-blue-700) 100%
    );
}

.gr-page-home .gr-flag-nav[data-count="8"] .gr-flag-nav__item:hover,
.gr-page-home .gr-flag-nav[data-count="8"] .gr-flag-nav__item.is-active {
  background:
    linear-gradient(
      135deg,
      var(--gr-blue-900) 0%,
      var(--gr-blue-700) 100%
    );
}

@media (max-width: 920px) {
  .gr-page-home .gr-flag-nav[data-count="6"],
  .gr-page-home .gr-flag-nav[data-count="8"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   05. CIDADE + RESULTADOS MUNICIPAIS
   ========================================================================== */
.gr-page-home .gr-city-overview {
  background:
    radial-gradient(circle at 94% 8%, rgba(24, 189, 229, 0.09), transparent 24rem),
    linear-gradient(180deg, #f7faff 0%, #edf3f9 100%);
}

/* ==========================================================================
   CIDADE + RESULTADOS
   Cada coluna cresce conforme o próprio conteúdo.
   ========================================================================== */

.gr-page-home .gr-city-overview__grid {
  display: grid;
  grid-template-columns:
    minmax(20rem, 0.72fr)
    minmax(0, 1.28fr);

  gap: 1.5rem;

  /* Não iguala mais a altura das colunas */
  align-items: start;
}

.gr-page-home .gr-panel-equal {
  height: auto;
  min-height: 0;

  padding: clamp(1.15rem, 2vw, 1.6rem);

  border: 1px solid var(--gr-border);
  border-radius: var(--gr-radius-lg);

  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--gr-shadow-md);
}


/* ==========================================================================
   PERFIL DA CIDADE
   Estrutura: select → imagem → badge/título → descrição/quote
   ========================================================================== */

.gr-page-home .gr-city-profile {
  position: sticky;
  top: calc(var(--gr-header-height) + 1rem);

  display: flex;
  flex-direction: column;
  gap: 0.82rem;
}

/* Título e select */
.gr-page-home .gr-city-profile__select {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.35rem;
}

.gr-page-home .gr-city-profile__select label {
  margin: 0;
  color: var(--gr-blue-950);
  font-family: var(--gr-font-callout);
  font-size: clamp(1.28rem, 1.45vw, 1.55rem);
  font-weight: 700;
  line-height: 1.08;
}

.gr-page-home .gr-city-profile__select select {
  width: 100%;
  min-height: 3.45rem;
  padding: 0.8rem 3.25rem 0.8rem 1.15rem;
  border: 1px solid rgba(12, 69, 155, 0.24);
  border-radius: 999px;
  color: var(--gr-blue-950);
  background-color: var(--gr-white);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gr-blue-800) 50%),
    linear-gradient(135deg, var(--gr-blue-800) 50%, transparent 50%);
  background-position:
    calc(100% - 1.45rem) 50%,
    calc(100% - 1.1rem) 50%;
  background-size:
    0.42rem 0.42rem,
    0.42rem 0.42rem;
  background-repeat: no-repeat;
  font-family: var(--gr-font-light);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 8px 22px rgba(4, 27, 77, 0.07);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.gr-page-home .gr-city-profile__select select:hover {
  border-color: rgba(12, 69, 155, 0.48);
}

.gr-page-home .gr-city-profile__select select:focus-visible {
  outline: none;
  border-color: var(--gr-blue-700);
  box-shadow:
    0 0 0 3px rgba(24, 189, 229, 0.14),
    0 10px 24px rgba(4, 27, 77, 0.1);
}

/* Imagem */
.gr-page-home .gr-city-profile__image {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 18.6rem;
  min-height: 18.6rem;
  border: 1px solid rgba(12, 69, 155, 0.18);
  border-radius: 1.3rem;
  background: var(--gr-surface-2);
  box-shadow: var(--gr-shadow-sm);
}

.gr-page-home .gr-city-profile__image::before {
  display: none;
}

.gr-page-home .gr-city-profile__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  filter: none;
  transition:
    transform 420ms ease,
    opacity 220ms ease;
}

.gr-page-home .gr-city-profile:hover .gr-city-profile__image img {
  transform: scale(1.025);
}

/* Badge e título abaixo da imagem */
.gr-page-home .gr-city-profile__overlay {
  position: static;
  inset: auto;
  z-index: auto;
  display: grid;
  justify-items: start;
  gap: 0.82rem;
  width: 100%;
  padding: 0;
  color: var(--gr-blue-950);
  background: transparent;
}

.gr-page-home .gr-city-profile__overlay .gr-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: fit-content;
  min-height: 2rem;
  padding: 0.38rem 0.82rem;
  border: 0;
  border-radius: 999px;
  color: var(--gr-blue-950);
  background: var(--gr-yellow-500);
  font-family: var(--gr-font-badge);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.gr-page-home .gr-city-profile__overlay h2 {
  width: 100%;
  margin: 0;
  color: var(--gr-blue-950);
  font-family: var(--gr-font-callout);
  font-size: clamp(1.22rem, 1.55vw, 1.58rem);
  font-weight: 700;
  line-height: 1.12;
}

/* Descrição e quote */
.gr-page-home .gr-city-profile__body {
  display: grid;
  gap: 0.9rem;
}

.gr-page-home .gr-city-profile__body > p {
  margin: 0;
  color: var(--gr-muted);
  font-family: var(--gr-font-light);
  line-height: 1.5;
}

/* Quote */
.gr-page-home .gr-profile-quote-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(237, 204, 35, 0.55);
  border-radius: 1.15rem;
  background: #fff8db;
}

.gr-page-home .gr-profile-quote-card__person {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.72rem 0.95rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
}

.gr-page-home .gr-profile-quote-card__person img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: var(--gr-surface-2);
}

.gr-page-home .gr-profile-quote-card__person strong {
  display: block;
  color: var(--gr-blue-950);
  font-size: 1.15rem;
  line-height: 1.05;
}

.gr-page-home .gr-profile-quote-card__person span {
  display: block;
  margin-top: 0.12rem;
  color: var(--gr-muted);
  font-size: 0.9rem;
}

.gr-page-home .gr-profile-quote-card__quote {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: start;
}

.gr-page-home .gr-profile-quote-card__icon {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gr-blue-800);
  background: rgba(255, 255, 255, 0.92);
}

.gr-page-home .gr-profile-quote-card__quote p {
  margin: 0;
  color: var(--gr-blue-950);
  font-family: var(--gr-font-quote);
  font-size: clamp(1.02rem, 1.15vw, 1.18rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.12;
}

.gr-page-home .gr-profile-quote-card .gr-btn {
  min-height: 2.8rem;
  justify-self: start;
}


/* Cabeçalho e abas dos resultados */
.gr-page-home .gr-city-results-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gr-page-home .gr-city-results__head--stacked {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 1rem;
}

.gr-page-home .gr-city-results__head-copy,
.gr-page-home .gr-city-results__head-copy .gr-lead {
  max-width: 100%;
}

/* Estado inicial das abas: claras, borda azul e aparência clicável */
.gr-page-home .gr-city-results-panel .gr-tab,
.gr-page-home .gr-region .gr-tab {
  min-height: 2.45rem;
  padding: 0.55rem 0.82rem;
  border: 1px solid var(--gr-blue-700);
  border-radius: 999px;
  color: var(--gr-blue-800);
  background: var(--gr-white);
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition:
    color 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    transform 220ms ease;
}

.gr-page-home .gr-city-results-panel .gr-tab:hover,
.gr-page-home .gr-region .gr-tab:hover {
  transform: translateY(-1px);
  border-color: var(--gr-blue-900);
  color: var(--gr-white);
  background: var(--gr-blue-900);
}

.gr-page-home .gr-city-results-panel .gr-tab.is-active,
.gr-page-home .gr-region .gr-tab.is-active {
  border-color: var(--gr-blue-900);
  color: var(--gr-white);
  background: var(--gr-blue-900);
}

.gr-page-home .gr-city-results-panel .gr-tab:focus-visible,
.gr-page-home .gr-region .gr-tab:focus-visible {
  outline: 3px solid rgba(24, 189, 229, 0.36);
  outline-offset: 3px;
}

/* ==========================================================================
   CARDS DE RESULTADOS DA CIDADE — DISTRIBUIÇÃO POR QUANTIDADE

   1 card  → 1 coluna
   2 cards → 2 colunas
   3 cards → 3 colunas
   4 cards → 2 em cima + 2 embaixo
   5 cards → 2 em cima + 3 embaixo
   6+      → 3 por linha
   ========================================================================== */

.gr-page-home .gr-city-card-grid--two {
  grid-auto-rows: max-content;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: stretch;
}

.gr-city-results__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.25rem, 2vw, 2rem);
}


/* Um único conteúdo ocupa a largura completa. */

.gr-page-home
.gr-city-card-grid--two:has(> .gr-city-story-card:first-child:last-child) {
  grid-template-columns: minmax(0, 1fr);
}


/* Três conteúdos ficam na mesma linha. */

.gr-page-home
.gr-city-card-grid--two:has(> .gr-city-story-card:nth-child(3):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}


/*
 * Quatro conteúdos permanecem no grid-base:
 * duas colunas e duas linhas.
 */


/* Cinco conteúdos: dois na primeira linha e três na segunda. */

.gr-page-home
.gr-city-card-grid--two:has(> .gr-city-story-card:nth-child(5):last-child) {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
}

.gr-page-home
.gr-city-card-grid--two:has(> .gr-city-story-card:nth-child(5):last-child)
> .gr-city-story-card:nth-child(-n + 2) {
  grid-column: span 3;
}

.gr-page-home
.gr-city-card-grid--two:has(> .gr-city-story-card:nth-child(5):last-child)
> .gr-city-story-card:nth-child(n + 3) {
  grid-column: span 2;
}


/* Seis ou mais conteúdos: três cards por linha. */

.gr-page-home
.gr-city-card-grid--two:has(> .gr-city-story-card:nth-child(6)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}


/* ==========================================================================
   CARD
   ========================================================================== */

.gr-page-home .gr-city-story-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  /*
   * min-height: min-content (em vez de "auto", o padrão) é a forma prevista
   * pela especificação para impedir que um item de flex/grid com overflow
   * diferente de "visible" tenha seu tamanho mínimo automático resolvido
   * para 0 — o que permite (por spec) que ele encolha abaixo do conteúdo
   * quando a linha do grid é medida menor do que o necessário. O Chrome
   * raramente aciona esse caso porque mede a linha corretamente; o Safari,
   * nesta combinação de grid + flex column + "-webkit-line-clamp" no
   * parágrafo, mede errado e a especificação permite que o card encolha até
   * cortar o link. "min-content" desliga esse encolhimento nos dois
   * motores, sem remover o overflow: hidden (necessário para o canto
   * arredondado da imagem).
   */
  min-height: min-content;
  overflow: hidden;
  border: 1px solid var(--gr-border);
  border-radius: 1.55rem;
  background: var(--gr-white);
  box-shadow: var(--gr-shadow-sm);
  transition:
    transform var(--gr-transition),
    box-shadow var(--gr-transition);
}

.gr-page-home .gr-city-story-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--gr-shadow-md);
}


/* ==========================================================================
   IMAGEM
   ========================================================================== */

.gr-page-home .gr-city-story-card__media {
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--gr-surface-2);
}


/* Cards que ocupam um terço da linha recebem imagem mais horizontal. */

.gr-page-home
.gr-city-card-grid--two:has(> .gr-city-story-card:nth-child(3):last-child)
.gr-city-story-card__media,
.gr-page-home
.gr-city-card-grid--two:has(> .gr-city-story-card:nth-child(5):last-child)
> .gr-city-story-card:nth-child(n + 3)
.gr-city-story-card__media,
.gr-page-home
.gr-city-card-grid--two:has(> .gr-city-story-card:nth-child(6))
.gr-city-story-card__media {
  aspect-ratio: 16 / 9;
}

.gr-page-home .gr-city-story-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 420ms ease;
}

.gr-page-home .gr-city-story-card:hover .gr-city-story-card__media img {
  transform: scale(1.04);
}


/* ==========================================================================
   CONTEÚDO
   ========================================================================== */

.gr-page-home .gr-city-story-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.62rem;
  padding: 1rem 1rem 1.05rem;
}

.gr-page-home .gr-city-story-card__body > small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2rem;
  padding: 0.35rem 0.78rem;
  border: 0;
  border-radius: 999px;
  color: var(--gr-blue-950);
  background: var(--gr-yellow-500);
  font-family: var(--gr-font-light);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.gr-page-home .gr-city-story-card__body h3 {
  margin: 0;
  color: var(--gr-blue-950);
  font-family: var(--gr-font-callout);
  line-height: 1.06;
}

.gr-page-home .gr-city-story-card__body p {
  margin: 0;
  color: var(--gr-muted);
  line-height: 1.45;
}

.gr-page-home .gr-city-story-card__body .gr-link-arrow {
  margin-top: auto;
}


/* ==========================================================================
   VARIANTE COM CARDS DE UM TERÇO DA LINHA
   ========================================================================== */

.gr-page-home
.gr-city-card-grid--two:has(> .gr-city-story-card:nth-child(3):last-child)
.gr-city-story-card__body,
.gr-page-home
.gr-city-card-grid--two:has(> .gr-city-story-card:nth-child(5):last-child)
> .gr-city-story-card:nth-child(n + 3)
.gr-city-story-card__body,
.gr-page-home
.gr-city-card-grid--two:has(> .gr-city-story-card:nth-child(6))
.gr-city-story-card__body {
  gap: 0.52rem;
  padding: 0.9rem;
}

.gr-page-home
.gr-city-card-grid--two:has(> .gr-city-story-card:nth-child(3):last-child)
.gr-city-story-card__body h3,
.gr-page-home
.gr-city-card-grid--two:has(> .gr-city-story-card:nth-child(5):last-child)
> .gr-city-story-card:nth-child(n + 3)
.gr-city-story-card__body h3,
.gr-page-home
.gr-city-card-grid--two:has(> .gr-city-story-card:nth-child(6))
.gr-city-story-card__body h3 {
  font-size: clamp(1rem, 1.05vw, 1.18rem);
  line-height: 1.06;
}

.gr-page-home
.gr-city-card-grid--two:has(> .gr-city-story-card:nth-child(3):last-child)
.gr-city-story-card__body p,
.gr-page-home
.gr-city-card-grid--two:has(> .gr-city-story-card:nth-child(5):last-child)
> .gr-city-story-card:nth-child(n + 3)
.gr-city-story-card__body p,
.gr-page-home
.gr-city-card-grid--two:has(> .gr-city-story-card:nth-child(6))
.gr-city-story-card__body p {
  font-size: 0.88rem;
  line-height: 1.42;
}

.gr-page-home
.gr-city-card-grid--two:has(> .gr-city-story-card:nth-child(3):last-child)
.gr-city-story-card__body .gr-link-arrow,
.gr-page-home
.gr-city-card-grid--two:has(> .gr-city-story-card:nth-child(5):last-child)
> .gr-city-story-card:nth-child(n + 3)
.gr-city-story-card__body .gr-link-arrow,
.gr-page-home
.gr-city-card-grid--two:has(> .gr-city-story-card:nth-child(6))
.gr-city-story-card__body .gr-link-arrow {
  font-size: 0.88rem;
}

/* ==========================================================================
   06. BANDEIRAS + CONTEÚDOS RELACIONADOS
   ========================================================================== */
.gr-page-home .gr-flags {
  color: var(--gr-white);
  background:
    radial-gradient(circle at 95% 0%, rgba(24, 175, 87, 0.28), transparent 26rem),
    radial-gradient(circle at 8% 100%, rgba(24, 189, 229, 0.16), transparent 30rem),
    linear-gradient(135deg, #031842 0%, #06275f 56%, #0c459b 100%);
}

.gr-page-home .gr-flags .gr-section-label,
.gr-page-home .gr-flags .gr-title,
.gr-page-home .gr-flags .gr-accordion__button strong {
  color: var(--gr-white);
}

.gr-section-label {
  text-transform: uppercase;
}

.gr-page-home .gr-flags .gr-lead,
.gr-page-home .gr-flags .gr-accordion__button small,
.gr-page-home .gr-flags .gr-accordion__content-inner {
  color: rgba(255, 255, 255, 0.78);
}

.gr-page-home .gr-flags__grid--news {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.gr-page-home .gr-flags__grid--news > * {
  min-width: 0;
}

/* Accordion */
.gr-page-home .gr-flags .gr-accordion {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.gr-page-home .gr-flags .gr-accordion__item {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.35rem;
  background: rgba(117, 12, 12, 0.08);
  box-shadow: 0 16px 34px rgba(1, 15, 48, 0.12);
  transition: background-color 220ms ease, border-color 220ms ease;
}

.gr-page-home .gr-flags .gr-accordion__item.is-open {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(117, 12, 12, 0.08);
}

.gr-page-home .gr-flags .gr-accordion__button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  width: 100%;
  padding: 1rem 1.1rem;
  border: 0;
  color: var(--gr-white);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.gr-page-home .gr-flags .gr-accordion__button > span:nth-child(2) {
  display: grid;
  gap: 0.15rem;
}

.gr-page-home .gr-flags .gr-accordion__icon {
  width: 3.1rem;
  height: 3.1rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  color: var(--gr-blue-950);
  background: var(--gr-yellow-500);
}

.gr-page-home .gr-flags .gr-accordion__toggle {
  width: 2.55rem;
  height: 2.55rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gr-blue-800);
  background: var(--gr-white);
  transition: transform var(--gr-transition);
}

.gr-page-home .gr-flags .gr-accordion__item.is-open .gr-accordion__toggle {
  transform: rotate(45deg);
}

.gr-page-home .gr-flags .gr-accordion__content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms ease;
}

.gr-page-home .gr-flags .gr-accordion__content-inner {
  overflow: hidden;
  padding: 0 4.9rem;
  line-height: 1.5;
  transition: padding 320ms ease;
}

.gr-page-home .gr-flags .gr-accordion__item.is-open .gr-accordion__content {
  grid-template-rows: 1fr;
}

.gr-page-home .gr-flags .gr-accordion__item.is-open .gr-accordion__content-inner {
  padding-bottom: 1.25rem;
}

.gr-page-home .gr-flags .gr-accordion__button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: -3px;
}

/* ==========================================================================
   07. LEGADO REGIONAL — TIMELINE HORIZONTAL
   Reaproveita a mesma anatomia visual da trajetória da página Geraldo.
   Usa abas regionais locais e não conflita com o estado territorial global.
   ========================================================================== */

.gr-page-home .gr-region-history {
  position: relative;
  overflow: hidden;
  color: var(--gr-blue-950);
  background:
    radial-gradient(circle at 94% 10%, rgba(24, 189, 229, 0.08), transparent 24rem),
    linear-gradient(180deg, #f5f8fc 0%, #edf3f8 100%);
}

.gr-page-home .gr-region-history .gr-section-label,
.gr-page-home .gr-region-history .gr-title,
.gr-page-home .gr-region-history .gr-lead {
  color: var(--gr-blue-950);
}

.gr-page-home .gr-region-history .gr-section-heading {
  max-width: 55rem;
  margin: 0;
}

.gr-page-home .gr-region-history .gr-section-heading .gr-lead {
  max-width: 53rem;
  margin-top: 0.8rem;
  color: var(--gr-muted);
}

.gr-page-home .gr-region-history__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.gr-page-home .gr-region-history__tabs button {
  min-height: 2.55rem;
  padding: 0.62rem 1rem;
  border: 1px solid rgba(12, 69, 155, 0.16);
  border-radius: 999px;
  color: var(--gr-blue-800);
  background: rgba(255, 255, 255, 0.84);
  font-family: var(--gr-font-badge);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(4, 27, 77, 0.045);
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.gr-page-home .gr-region-history__tabs button:hover {
  transform: translateY(-1px);
  border-color: rgba(12, 69, 155, 0.34);
  background: var(--gr-white);
}

.gr-page-home .gr-region-history__tabs button.is-active {
  border-color: var(--gr-blue-800);
  color: var(--gr-white);
  background: var(--gr-blue-800);
  box-shadow: 0 12px 24px rgba(12, 69, 155, 0.18);
}

.gr-page-home .gr-region-history__tabs button.is-active::before {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--gr-yellow-500);
  vertical-align: 0.05rem;
}

.gr-page-home .gr-region-history__tabs button:focus-visible {
  outline: 3px solid rgba(24, 189, 229, 0.42);
  outline-offset: 3px;
}

.gr-page-home .gr-region-history .gr-history-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-bottom: 1.6rem;
}

.gr-page-home .gr-region-history__tools {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  gap: 0.85rem;
}






.gr-page-home .gr-region-history .gr-history-section__navigation {
  display: grid;
  justify-items: end;
  gap: 0.55rem;
}

.gr-page-home .gr-region-history .gr-history-section__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gr-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.gr-page-home .gr-region-history .gr-history-section__controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.gr-page-home .gr-region-history .gr-history-section__controls button {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(12, 69, 155, 0.22);
  border-radius: 50%;
  color: var(--gr-blue-900);
  background: var(--gr-white);
  cursor: pointer;
  transition:
    color 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    opacity 220ms ease,
    transform 220ms ease;
}

.gr-page-home .gr-region-history .gr-history-section__controls button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--gr-blue-900);
  color: var(--gr-white);
  background: var(--gr-blue-900);
}

.gr-page-home .gr-region-history .gr-history-section__controls button:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.gr-page-home .gr-region-history .gr-history-section__controls span {
  min-width: 4.5rem;
  color: var(--gr-blue-950);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.gr-page-home .gr-region-history .gr-history-track-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  margin-inline: -0.75rem;
  padding: 0.25rem 0.75rem 2rem;
  background: transparent;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.gr-page-home .gr-region-history .gr-history-track-viewport::-webkit-scrollbar {
  display: none;
}

.gr-page-home .gr-region-history .gr-history-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3rem) / 4);
  gap: 1rem;
  min-width: 100%;
  background: transparent;
}

.gr-page-home .gr-region-history .gr-history-card {
  min-width: 0;
  scroll-snap-align: start;
}

.gr-page-home .gr-region-history .gr-history-card__open {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 24rem;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(12, 69, 155, 0.11);
  border-radius: 1rem;
  color: var(--gr-blue-950);
  background: var(--gr-white);
  text-align: left;
  box-shadow: var(--gr-shadow-sm);
  transition:
    transform var(--gr-transition),
    box-shadow var(--gr-transition),
    border-color var(--gr-transition);
}

.gr-page-home .gr-region-history .gr-history-card__open:hover {
  transform: translateY(-3px);
  border-color: rgba(12, 69, 155, 0.2);
  box-shadow: var(--gr-shadow-md);
}

.gr-page-home .gr-region-history .gr-history-card__media {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gr-blue-950);
}

.gr-page-home .gr-region-history .gr-history-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(4, 27, 77, 0.72) 100%);
}

.gr-page-home .gr-region-history .gr-history-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.gr-page-home .gr-region-history .gr-history-card__open:hover .gr-history-card__media img {
  transform: scale(1.04);
}

.gr-page-home .gr-region-history .gr-history-card__action {
  position: absolute;
  right: 0.6rem;
  bottom: 0.5rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--gr-white);
  font-size: 0.64rem;
  font-weight: 700;
}

.gr-page-home .gr-region-history .gr-history-card__rail {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: 0.22rem;
  background: var(--gr-yellow-500);
}

.gr-page-home .gr-region-history .gr-history-card__rail::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.95rem;
  width: 0.68rem;
  height: 0.68rem;
  border: 0.14rem solid var(--gr-white);
  border-radius: 50%;
  background: var(--gr-yellow-500);
  box-shadow: 0 0 0 1px rgba(12, 69, 155, 0.08);
  transform: translateY(-50%);
}

.gr-page-home .gr-region-history .gr-history-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 0.9rem 1.05rem;
}

.gr-page-home .gr-region-history .gr-history-card__period {
  color: var(--gr-blue-700);
  font-family: var(--gr-font-badge);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.gr-page-home .gr-region-history .gr-history-card__body strong {
  color: var(--gr-blue-950);
  font-family: var(--gr-font-callout);
  font-size: clamp(1rem, 1.06vw, 1.16rem);
  line-height: 1.04;
}

.gr-page-home .gr-region-history .gr-history-card__body > span:last-child {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gr-muted);
  font-size: 0.8rem;
  line-height: 1.46;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.gr-page-home .gr-region-history .gr-history-card__open:focus-visible {
  outline: 3px solid rgba(24, 189, 229, 0.48);
  outline-offset: 3px;
}

.gr-page-home .gr-region-history .gr-history-progress {
  position: relative;
  width: 100%;
  height: 0.2rem;
  overflow: hidden;
  margin-top: 0.1rem;
  border-radius: 999px;
  background: rgba(12, 69, 155, 0.12);
}



/* ==========================================================================
   08. AGENDA + GALERIA
   O componente visual do evento fica em components.css.
   Aqui permanecem apenas a distribuição específica da Home.
   ========================================================================== */

.gr-page-home .gr-agenda__grid--refined {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 1.25rem;
  align-items: start;
}

.gr-page-home .gr-agenda__more {
  margin-top: 1.25rem;
}

/* Quatro colunas: data, cidade, conteúdo e seta. */
.gr-page-home .gr-event--city {
  grid-template-columns:
    3.6rem
    minmax(5.7rem, 0.38fr)
    minmax(0, 1fr)
    auto;

  column-gap: 0.75rem;
}

/* Variante visual da data na Home: sem caixa de fundo. */
.gr-page-home .gr-event__date {
  min-height: 3.5rem;
  padding: 0;
  border-radius: 0.75rem;
  background: var(--gr-surface-2);
}
 
/* Coluna da cidade, exclusiva da Home. */
.gr-page-home .gr-event__city {
  display: grid;
  align-content: center;
  min-height: 3.2rem;
  padding-right: 0.65rem;
  border-right: 1px solid var(--gr-border);
}

.gr-page-home .gr-event__city strong {
  color: var(--gr-blue-900);
  font-family: var(--gr-font-callout);
  line-height: 1;
}

.gr-page-home .gr-event__city span {
  margin-top: 0.15rem;
  color: var(--gr-muted);
  font-family: var(--gr-font-light);
  font-size: 0.7rem;
  line-height: 1.15;
}

/* ==========================================================================
   09. ESCUTA + FORMULÁRIO
   ========================================================================== */
.gr-page-home .gr-listen__grid--form-first {
  grid-template-columns: minmax(16rem, 0.68fr) minmax(0, 1.12fr);
  align-items: center;
}

.gr-page-home .gr-form--integrated {
  max-width: 56rem;
  margin-left: auto;
  padding: clamp(1.3rem, 2.3vw, 1.8rem);
}

.gr-page-home .gr-field__legend {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--gr-blue-950);
  font-family: var(--gr-font-callout);
  font-size: clamp(1.28rem, 1.45vw, 1.55rem);
  font-weight: 700;
  line-height: 1.08;
}

.gr-page-home .gr-form-topic-grid--main {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.gr-page-home .gr-form-topic-grid--main[data-topic-count="7"] {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.gr-page-home .gr-form-topic-grid--main[data-topic-count="7"] > .gr-topic {
  grid-column: span 3;
}

.gr-page-home .gr-form-topic-grid--main[data-topic-count="7"] > .gr-topic:nth-child(n + 5) {
  grid-column: span 4;
}

/* Estado inicial: claro, borda azul e texto azul */
.gr-page-home .gr-form--integrated .gr-topic {
  min-width: 0;
  min-height: 4.8rem;
  padding: 0.8rem 0.85rem;
  border: 1px solid rgba(12, 69, 155, 0.42);
  border-radius: 1.1rem;
  color: var(--gr-blue-950);
  background: #f6f9fd;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
}

.gr-page-home .gr-form--integrated .gr-topic strong {
  display: block;
  overflow: visible;
  color: var(--gr-blue-950);
  font-size: clamp(0.92rem, 1vw, 1.04rem);
  font-weight: 700;
  line-height: 1.12;
  overflow-wrap: normal;
  white-space: normal;
}

.gr-page-home .gr-form--integrated .gr-topic[data-topic-size="long"] strong,
.gr-page-home .gr-form--integrated .gr-topic[data-topic-size="medium"] strong {
  font-size: clamp(0.92rem, 1vw, 1.04rem);
}

.gr-page-home .gr-form--integrated .gr-topic small {
  display: none;
  color: var(--gr-muted);
  font-weight: 700;
}

/* Hover: continua claro e mantém texto azul */
.gr-page-home .gr-form--integrated .gr-topic:hover {
  transform: translateY(-2px);
  border-color: var(--gr-blue-900);
  color: var(--gr-blue-950);
  background: rgba(24, 189, 229, 0.1);
}

/* Ativo: destaque claro, borda forte e fonte original preservada */
.gr-page-home .gr-form--integrated .gr-topic.is-selected,
.gr-page-home .gr-form--integrated .gr-topic[aria-pressed="true"] {
  transform: none;
  border-color: var(--gr-blue-900);
  color: var(--gr-blue-950);
  background: rgba(24, 189, 229, 0.14);
  box-shadow: 0 0 0 3px rgba(24, 189, 229, 0.08);
}

.gr-page-home .gr-form--integrated .gr-topic__icon,
.gr-page-home .gr-form--integrated .gr-topic:hover .gr-topic__icon,
.gr-page-home .gr-form--integrated .gr-topic.is-selected .gr-topic__icon,
.gr-page-home .gr-form--integrated .gr-topic[aria-pressed="true"] .gr-topic__icon {
  width: 2.45rem;
  height: 2.45rem;
  color: var(--gr-blue-950);
  background: var(--gr-yellow-500);
}

.gr-page-home .gr-form--integrated .gr-topic:focus-visible {
  outline: 3px solid rgba(24, 189, 229, 0.36);
  outline-offset: 3px;
}

/* Consentimento */
.gr-page-home .gr-consent {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid var(--gr-border);
  border-radius: 0.95rem;
  background: #f8fbff;
  cursor: pointer;
}

.gr-page-home .gr-consent input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gr-page-home .gr-consent__box {
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(7, 43, 112, 0.32);
  border-radius: 0.38rem;
  color: transparent;
  background: var(--gr-white);
  transition: background var(--gr-transition), color var(--gr-transition), border-color var(--gr-transition);
}

.gr-page-home .gr-consent input:checked + .gr-consent__box {
  color: var(--gr-white);
  border-color: var(--gr-green-600);
  background: var(--gr-green-600);
}

.gr-page-home .gr-consent input:focus-visible + .gr-consent__box {
  outline: 3px solid rgba(24, 189, 229, 0.36);
  outline-offset: 3px;
}

.gr-page-home .gr-consent a {
  color: var(--gr-blue-700);
  text-decoration: underline;
}

.gr-page-home .gr-social-swipe-hint {
  display: none;
}

/* ==========================================================================
   10. ÚLTIMAS NOTÍCIAS — LOOP ESTADUAL
   Bloco global: não responde aos filtros de cidade, região ou bandeira.
   ========================================================================== */

.gr-page-home .gr-latest-news {
  position: relative;
  overflow: hidden;
  color: var(--gr-blue-950);
  background:
    radial-gradient(circle at 100% 0%, rgba(24, 189, 229, 0.08), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.gr-page-home .gr-latest-news__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.4rem, 2.4vw, 2rem);
  padding-bottom: 0;
  border-bottom: 0;
}

.gr-page-home .gr-latest-news__head-copy {
  max-width: 48rem;
}

.gr-page-home .gr-latest-news__head .gr-title {
  margin-top: 0.45rem;
  color: var(--gr-blue-950);
}

.gr-page-home .gr-latest-news__head .gr-lead {
  max-width: 42rem;
  margin-top: 0.65rem;
  color: var(--gr-muted);
}

.gr-page-home .gr-latest-news__head .gr-btn {
  flex: 0 0 auto;
}

.gr-page-home .gr-latest-news__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(19rem, 0.66fr);
  gap: 1rem;
  align-items: stretch;
}

/* Notícia principal */
.gr-page-home .gr-latest-news__featured {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--gr-border);
  border-radius: 1.45rem;
  background: var(--gr-white);
  box-shadow: var(--gr-shadow-sm);
  transition:
    transform 240ms ease,
    box-shadow 240ms ease;
}

.gr-page-home .gr-latest-news__featured:hover {
  transform: translateY(-3px);
  box-shadow: var(--gr-shadow-md);
}

.gr-page-home .gr-latest-news__featured > a {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(17rem, 0.92fr);
  min-height: 31rem;
  height: 100%;
  color: inherit;
}

.gr-page-home .gr-latest-news__featured-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 31rem;
  background: var(--gr-blue-950);
}

.gr-page-home .gr-latest-news__featured-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 500ms ease;
}

.gr-page-home .gr-latest-news__featured:hover .gr-latest-news__featured-media img {
  transform: scale(1.035);
}

.gr-page-home .gr-latest-news__featured-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(4, 27, 77, 0.02) 35%, rgba(4, 27, 77, 0.62) 100%);
  pointer-events: none;
}

.gr-page-home .gr-latest-news__featured-meta {
  position: absolute;
  inset: auto 1rem 1rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.gr-page-home .gr-latest-news__featured-meta span,
.gr-page-home .gr-latest-news__featured-meta time {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  font-family: var(--gr-font-badge);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.gr-page-home .gr-latest-news__featured-meta span {
  color: var(--gr-blue-950);
  background: var(--gr-yellow-500);
}

.gr-page-home .gr-latest-news__featured-meta time {
  color: var(--gr-white);
  background: rgba(4, 27, 77, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gr-page-home .gr-latest-news__featured-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  background:
    radial-gradient(circle at 100% 0%, rgba(24, 189, 229, 0.08), transparent 13rem),
    var(--gr-white);
}

.gr-page-home .gr-latest-news__featured-content::before {
  content: "";
  position: absolute;
  inset: 1.6rem auto 1.6rem 0;
  width: 0.28rem;
  border-radius: 999px;
  background: var(--gr-yellow-500);
}

.gr-page-home .gr-latest-news__kicker {
  color: var(--gr-blue-700);
  font-family: var(--gr-font-badge);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gr-page-home .gr-latest-news__featured-content h3 {
  margin: 0.75rem 0 0;
  color: var(--gr-blue-950);
  font-family: var(--gr-font-callout);
  font-size: clamp(1.55rem, 2.2vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.gr-page-home .gr-latest-news__featured-content p {
  margin: 0.9rem 0 0;
  color: var(--gr-muted);
  font-family: var(--gr-font-light);
  line-height: 1.5;
}

.gr-page-home .gr-latest-news__featured-content .gr-link-arrow {
  margin-top: 1.25rem;
  color: var(--gr-blue-800);
}

.gr-page-home .gr-latest-news__featured-content .gr-link-arrow i {
  color: var(--gr-yellow-600, var(--gr-yellow-500));
}

/* Lista lateral */
.gr-page-home .gr-latest-news__list {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  min-width: 0;
}

.gr-page-home .gr-latest-news__item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--gr-border);
  border-radius: 1.2rem;
  background: var(--gr-white);
  box-shadow: var(--gr-shadow-sm);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.gr-page-home .gr-latest-news__item:hover {
  transform: translateY(-2px);
  border-color: rgba(12, 69, 155, 0.22);
  box-shadow: var(--gr-shadow-md);
}

.gr-page-home .gr-latest-news__item > a {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  height: 100%;
  min-height: 10.4rem;
  color: inherit;
}

.gr-page-home .gr-latest-news__item-media {
  overflow: hidden;
  background: var(--gr-surface-2);
}

.gr-page-home .gr-latest-news__item-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.gr-page-home .gr-latest-news__item:hover .gr-latest-news__item-media img {
  transform: scale(1.045);
}

.gr-page-home .gr-latest-news__item-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 1rem 2.8rem 1rem 1rem;
}

.gr-page-home .gr-latest-news__item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  color: var(--gr-muted);
  font-family: var(--gr-font-badge);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.gr-page-home .gr-latest-news__item-meta span {
  color: var(--gr-blue-800);
}

.gr-page-home .gr-latest-news__item-meta time::before {
  content: "•";
  margin-right: 0.45rem;
  color: var(--gr-yellow-500);
}

.gr-page-home .gr-latest-news__item h3 {
  margin: 0.62rem 0 0;
  color: var(--gr-blue-950);
  font-family: var(--gr-font-callout);
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  line-height: 1.08;
}

.gr-page-home .gr-latest-news__item-link {
  position: absolute;
  top: 50%;
  right: 0.9rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gr-blue-800);
  background: var(--gr-surface-2);
  transform: translateY(-50%);
  transition:
    color 220ms ease,
    background-color 220ms ease,
    transform 220ms ease;
}

.gr-page-home .gr-latest-news__item:hover .gr-latest-news__item-link {
  color: var(--gr-blue-950);
  background: var(--gr-yellow-500);
  transform: translateY(-50%) rotate(4deg);
}

.gr-page-home .gr-latest-news a:focus-visible {
  outline: 3px solid rgba(24, 189, 229, 0.38);
  outline-offset: 3px;
}


/* ==========================================================================
   MODAL SOCIAL
   ========================================================================== */

.gr-page-home .gr-modal--social {
  width: min(94vw, 58rem);
}

.gr-page-home .gr-social-modal__image {
  display: block;
  width: 100%;
  max-height: 60vh;
  margin: 1rem 0;
  object-fit: cover;
  border-radius: 1.2rem;
}

/* O seletor da primeira dobra reutiliza o mesmo ícone e chevron do header. */
.gr-page-home .gr-city-profile__select .gr-location-select select {
  padding: 0.8rem 3.15rem;
  background-color: var(--gr-white);
  background-image: none;
  background-position: initial;
  background-size: initial;
  background-repeat: no-repeat;
}

.gr-btn--instagram {
  color: #ffffff;
  border-color: transparent;
  background:
    linear-gradient(
      135deg,
      #feda75 0%,
      #fa7e1e 25%,
      #d62976 50%,
      #962fbf 75%,
      #4f5bd5 100%
    );

  box-shadow:
    0 12px 26px rgba(214, 41, 118, 0.28);

  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
}

.gr-btn.gr-btn--instagram {
  border: 0;

  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      #ffb347 0%,
      #ff633f 28%,
      #d62976 55%,
      #962fbf 78%,
      #5b4ddd 100%
    );

  box-shadow:
    0 14px 30px rgba(214, 41, 118, 0.26);

  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
}

.gr-btn.gr-btn--instagram i,
.gr-btn.gr-btn--instagram span {
  color: #ffffff;
}

.gr-btn.gr-btn--instagram:hover {
  border: 0;

  color: #ffffff;

  transform: translateY(-2px);
  filter: saturate(1.08) brightness(1.03);

  box-shadow:
    0 16px 32px rgba(214, 41, 118, 0.36);
}

.gr-btn.gr-btn--instagram:hover i {
  color: #ffffff;
}

.gr-btn.gr-btn--instagram:focus-visible {
  border: 0;

  outline: 3px solid rgba(214, 41, 118, 0.28);
  outline-offset: 3px;
}


/* ==========================================================================
   HOME — PLANO DE ATUAÇÃO PARLAMENTAR | VERSÃO CLARA
   Substitua o CSS anterior do painel estadual por este arquivo.

   Objetivo visual:
   - criar contraste real com a coluna azul das bandeiras;
   - manter o painel prioritariamente branco;
   - usar cinzas claros, azul institucional e amarelo como destaque;
   - preservar a estrutura e a responsividade do HTML atual.
   ========================================================================== */


/* ==========================================================================
   01. DISTRIBUIÇÃO DA SEÇÃO
   ========================================================================== */

.gr-page-home .gr-flags__grid--news {
  display: grid;
  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(0, 1.1fr);
  gap: clamp(1.4rem, 2.4vw, 2.2rem);
  align-items: stretch;
}

.gr-page-home .gr-flags__grid--news > * {
  min-width: 0;
}


/* ==========================================================================
   02. PAINEL PRINCIPAL
   Fundo branco para romper visualmente com a coluna azul da esquerda.
   ========================================================================== */

.gr-page-home .gr-state-plan {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  gap: 1rem;

  min-width: 0;
  min-height: 100%;
  padding: clamp(1.3rem, 2vw, 1.8rem);

  border: 1px solid rgba(12, 69, 155, 0.16);
  border-radius: 1.7rem;

  color: var(--gr-blue-950);

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(24, 189, 229, 0.11),
      transparent 17rem
    ),
    radial-gradient(
      circle at 0% 100%,
      rgba(237, 204, 35, 0.08),
      transparent 20rem
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f7f9fc 100%
    );

  box-shadow:
    0 28px 58px rgba(1, 15, 48, 0.2),
    0 3px 10px rgba(1, 15, 48, 0.07);
}

/* Marca d'água discreta. */
.gr-page-home .gr-state-plan::before {
  content: "MS";

  position: absolute;
  top: -2.1rem;
  right: -0.7rem;
  z-index: -1;

  color: rgba(12, 69, 155, 0.035);

  font-family: var(--gr-font-callout);
  font-size: clamp(8rem, 14vw, 13rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.08em;

  pointer-events: none;
}

/* Faixa superior com amarelo e fechamento azul. */
.gr-page-home .gr-state-plan::after {
  content: "";

  position: absolute;
  inset: 0 0 auto;
  z-index: 4;

  height: 0.34rem;

  background:
    linear-gradient(
      90deg,
      var(--gr-yellow-500) 0%,
      var(--gr-yellow-500) 58%,
      var(--gr-blue-700) 100%
    );

  pointer-events: none;
}

.gr-page-home .gr-state-plan > * {
  position: relative;
  z-index: 1;
}


/* ==========================================================================
   03. CABEÇALHO
   ========================================================================== */

.gr-page-home .gr-state-plan__header {
  display: grid;
  grid-template-columns:
    minmax(0, 1.28fr)
    minmax(11.2rem, 0.72fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: center;
}

.gr-page-home .gr-state-plan__intro {
  min-width: 0;
}

.gr-page-home .gr-state-plan__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;

  width: fit-content;
  min-height: 2.1rem;
  padding: 0.42rem 0.78rem;

  border: 1px solid rgba(237, 204, 35, 0.72);
  border-radius: 999px;

  color: var(--gr-blue-950);
  background: var(--gr-yellow-500);

  font-family: var(--gr-font-badge);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.045em;
  text-transform: uppercase;

  box-shadow: 0 8px 18px rgba(4, 27, 77, 0.1);
}

.gr-page-home .gr-state-plan__eyebrow i {
  font-size: 0.88rem;
}

.gr-page-home .gr-state-plan__intro h3 {
  max-width: 38rem;
  margin: 0.9rem 0 0;

  color: var(--gr-blue-950);

  font-family: var(--gr-font-callout);
  font-size: clamp(1.8rem, 2.35vw, 2.55rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.gr-page-home .gr-state-plan__intro p {
  max-width: 38rem;
  margin: 0.85rem 0 0;

  color: #607087;

  font-family: var(--gr-font-light);
  font-size: 0.96rem;
  line-height: 1.5;
}


/* ==========================================================================
   04. CAPA DO DOCUMENTO
   Continua clara, mas recebe profundidade e moldura azul para não desaparecer
   sobre o painel branco.
   ========================================================================== */

.gr-page-home .gr-state-plan__visual {
  position: relative;

  display: grid;
  justify-items: end;
  align-items: center;

  min-width: 0;
  min-height: 14rem;
  padding: 0.55rem 0.35rem 1rem 1.2rem;
}

.gr-page-home .gr-state-plan__cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  width: min(100%, 11.6rem);
  aspect-ratio: 0.78;
  padding: 1.15rem;

  border: 1px solid rgba(12, 69, 155, 0.16);
  border-radius: 1.1rem;

  color: var(--gr-blue-950);

  background:
    radial-gradient(
      circle at 88% 15%,
      rgba(24, 189, 229, 0.18),
      transparent 6rem
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      #edf3f8 100%
    );

  box-shadow:
    0 20px 38px rgba(4, 27, 77, 0.19),
    0 0 0 0.4rem rgba(12, 69, 155, 0.035);

  transform: rotate(2.5deg);
}

.gr-page-home .gr-state-plan__cover::before {
  content: "";

  position: absolute;
  inset: 0 0 auto;
  z-index: -1;

  height: 0.5rem;

  background:
    linear-gradient(
      90deg,
      var(--gr-yellow-500) 0%,
      var(--gr-yellow-500) 68%,
      var(--gr-blue-700) 100%
    );
}

.gr-page-home .gr-state-plan__cover::after {
  content: "";

  position: absolute;
  top: 1.25rem;
  right: -2.1rem;
  z-index: -1;

  width: 7rem;
  height: 7rem;

  border: 1.35rem solid rgba(12, 69, 155, 0.075);
  border-radius: 50%;
}

.gr-page-home .gr-state-plan__cover-kicker {
  margin-bottom: auto;

  color: var(--gr-blue-700);

  font-family: var(--gr-font-badge);
  font-size: 0.67rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gr-page-home .gr-state-plan__cover-ms {
  display: block;

  color: var(--gr-blue-900);

  font-family: var(--gr-font-callout);
  font-size: 3.8rem;
  line-height: 0.82;
  letter-spacing: -0.07em;
}

.gr-page-home .gr-state-plan__cover-title {
  display: block;
  margin-top: 0.55rem;

  color: var(--gr-blue-950);

  font-family: var(--gr-font-callout);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.02;
}

.gr-page-home .gr-state-plan__cover-line {
  display: block;
  height: 0.22rem;
  margin-top: 0.52rem;

  border-radius: 999px;

  background: rgba(12, 69, 155, 0.14);
}

.gr-page-home .gr-state-plan__cover-line--one {
  width: 84%;
}

.gr-page-home .gr-state-plan__cover-line--two {
  width: 66%;
}

.gr-page-home .gr-state-plan__cover-line--three {
  width: 42%;
}


/* Selo dos 79 municípios. */
.gr-page-home .gr-state-plan__territory {
  position: absolute;
  left: 0;
  bottom: 0.35rem;
  z-index: 3;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem;
  align-items: center;

  min-width: 10.8rem;
  max-width: calc(100% - 0.1rem);
  padding: 0.72rem 0.82rem;

  border: 1px solid rgba(12, 69, 155, 0.14);
  border-radius: 1rem;

  color: var(--gr-blue-950);
  background: rgba(255, 255, 255, 0.98);

  box-shadow: 0 15px 28px rgba(4, 27, 77, 0.16);

  transform: rotate(-2deg);
}

.gr-page-home .gr-state-plan__territory-icon {
  width: 2.15rem;
  height: 2.15rem;

  display: grid;
  place-items: center;

  border-radius: 0.72rem;

  color: var(--gr-blue-950);
  background: var(--gr-yellow-500);
}

.gr-page-home .gr-state-plan__territory strong,
.gr-page-home .gr-state-plan__territory small {
  display: block;
  overflow-wrap: break-word;
}

.gr-page-home .gr-state-plan__territory strong {
  color: var(--gr-blue-950);

  font-family: var(--gr-font-callout);
  font-size: 0.9rem;
  line-height: 1;
}

.gr-page-home .gr-state-plan__territory small {
  margin-top: 0.18rem;

  color: #6c7889;

  font-family: var(--gr-font-light);
  font-size: 0.68rem;
  line-height: 1.1;
}


/* ==========================================================================
   05. COMPROMISSO CENTRAL
   O amarelo aparece como sinal de prioridade, sem dominar o painel.
   ========================================================================== */

.gr-page-home .gr-state-plan__commitment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;

  padding: 1rem 1.05rem;

  border: 1px solid rgba(237, 204, 35, 0.58);
  border-left: 0.28rem solid var(--gr-yellow-500);
  border-radius: 1.15rem;

  background:
    linear-gradient(
      135deg,
      #fff8d8 0%,
      #fffdf4 100%
    );

  box-shadow: 0 10px 22px rgba(4, 27, 77, 0.06);
}

.gr-page-home .gr-state-plan__commitment-icon {
  width: 2.75rem;
  height: 2.75rem;

  display: grid;
  place-items: center;

  border-radius: 0.88rem;

  color: var(--gr-blue-950);
  background: var(--gr-yellow-500);

  font-size: 1.15rem;
}

.gr-page-home .gr-state-plan__commitment small {
  display: block;

  color: var(--gr-blue-700);

  font-family: var(--gr-font-badge);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.gr-page-home .gr-state-plan__commitment h4 {
  margin: 0.28rem 0 0;

  color: var(--gr-blue-950);

  font-family: var(--gr-font-callout);
  font-size: clamp(1.08rem, 1.3vw, 1.28rem);
  line-height: 1.05;
}

.gr-page-home .gr-state-plan__commitment p {
  margin: 0.42rem 0 0;

  color: #66758a;

  font-family: var(--gr-font-light);
  font-size: 0.88rem;
  line-height: 1.42;
}


/* ==========================================================================
   06. EIXOS DO PLANO
   Cards cinza-claro com títulos azuis e ícones amarelos.
   ========================================================================== */

.gr-page-home .gr-state-plan__axes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.78rem;
}

.gr-page-home .gr-state-plan__axis {
  position: relative;
  overflow: hidden;

  min-width: 0;
  padding: 0.95rem;

  border: 1px solid #dbe3ec;
  border-radius: 1.05rem;

  background:
    linear-gradient(
      145deg,
      #f3f6f9 0%,
      #eef2f6 100%
    );

  box-shadow: 0 9px 20px rgba(4, 27, 77, 0.055);

  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.gr-page-home .gr-state-plan__axis::before {
  content: "";

  position: absolute;
  inset: 0 0 auto;

  height: 0.2rem;

  background:
    linear-gradient(
      90deg,
      var(--gr-blue-800) 0%,
      var(--gr-blue-700) 72%,
      var(--gr-yellow-500) 100%
    );
}

.gr-page-home .gr-state-plan__axis:hover {
  transform: translateY(-2px);

  border-color: rgba(12, 69, 155, 0.28);
  background: #ffffff;

  box-shadow: 0 14px 28px rgba(4, 27, 77, 0.1);
}

.gr-page-home .gr-state-plan__axis-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.gr-page-home .gr-state-plan__axis-number {
  color: var(--gr-blue-800);

  font-family: var(--gr-font-callout);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}

.gr-page-home .gr-state-plan__axis-icon {
  width: 2.35rem;
  height: 2.35rem;

  display: grid;
  place-items: center;

  border: 1px solid rgba(237, 204, 35, 0.72);
  border-radius: 0.76rem;

  color: var(--gr-blue-950);
  background: var(--gr-yellow-500);
}

.gr-page-home .gr-state-plan__axis h4 {
  margin: 0.72rem 0 0;

  color: var(--gr-blue-950);

  font-family: var(--gr-font-callout);
  font-size: 1rem;
  line-height: 1.06;
}

.gr-page-home .gr-state-plan__axis p {
  margin: 0.42rem 0 0;

  color: #68778b;

  font-family: var(--gr-font-light);
  font-size: 0.8rem;
  line-height: 1.42;
}


/* ==========================================================================
   07. AÇÕES
   ========================================================================== */

.gr-page-home .gr-state-plan__footer {
  display: grid;
  gap: 0.9rem;

  margin-top: auto;
  padding-top: 1rem;

  border-top: 1px solid #dfe6ee;
}

.gr-page-home .gr-state-plan__actions {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);
  gap: 0.7rem;
}

.gr-page-home .gr-state-plan__actions .gr-btn {
  min-width: 0;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;

  border-radius: 0.9rem;

  font-size: 0.86rem;
  line-height: 1.1;
  text-align: center;
}

.gr-page-home .gr-state-plan__primary,
.gr-page-home .gr-state-plan__primary:hover {
  border-color: var(--gr-yellow-500);

  color: var(--gr-blue-950);
  background: var(--gr-yellow-500);

  box-shadow: 0 12px 24px rgba(4, 27, 77, 0.12);
}

.gr-page-home .gr-state-plan__primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.025);
}

.gr-page-home .gr-state-plan__download {
  border-color: rgba(12, 69, 155, 0.42);

  color: var(--gr-blue-800);
  background: #ffffff;
}

.gr-page-home .gr-state-plan__download:hover {
  transform: translateY(-2px);

  border-color: var(--gr-blue-900);
  color: var(--gr-white);
  background: var(--gr-blue-900);
}

.gr-page-home .gr-state-plan__actions .gr-btn:focus-visible {
  outline: 3px solid rgba(24, 189, 229, 0.28);
  outline-offset: 3px;
}


/* ==========================================================================
   TRAJETÓRIA REGIONAL — ARRASTE HORIZONTAL

   - preserva a barra visual de progresso;
   - esconde a scrollbar nativa;
   - permite clicar e arrastar no desktop;
   - mantém o scroll horizontal no mobile;
   ========================================================================== */


/* Área navegável da trajetória. */
.gr-page-home .gr-region-history .gr-history-track-viewport {
    position: relative;

    overflow-x: auto;
    overflow-y: hidden;

    cursor: grab;

    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;

    /* Permite rolagem vertical da página no touch.
       O movimento horizontal será controlado pelo JavaScript. */
    touch-action: pan-y;

    /* Esconde a scrollbar no Firefox e navegadores antigos. */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Esconde a scrollbar no Chrome, Edge e Safari. */
.gr-page-home
.gr-region-history
.gr-history-track-viewport::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Estado enquanto a pessoa está arrastando. */
.gr-page-home
.gr-region-history
.gr-history-track-viewport.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
    user-select: none;
}

/* Evita seleção de texto durante o movimento. */
.gr-page-home
.gr-region-history
.gr-history-track-viewport.is-dragging * {
    user-select: none;
}

/* Evita que o navegador tente arrastar a imagem isoladamente. */
.gr-page-home
.gr-region-history
.gr-history-card img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Cada card continua sendo um ponto de encaixe. */
.gr-page-home
.gr-region-history
.gr-history-card {
    scroll-snap-align: start;
}


/* ==========================================================================
   HOME — AJUSTE DO BLOCO DE NOTÍCIAS
   Colar no final de assets/css/pages/home.css
   ========================================================================== */

/* Resumo dos três cards laterais. */
.gr-page-home .gr-latest-news__item p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.45rem 0 0;
  color: var(--gr-muted);
  font-family: var(--gr-font-light);
  font-size: 0.78rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}




/* ==========================================================================
   HOME — FEED SOCIAL POR TIPO DE MÍDIA
   --------------------------------------------------------------------------
   A grade exibe apenas a miniatura. Imagem, vídeo e carrossel compartilham a
   mesma proporção; o tipo da publicação é indicado por um ícone discreto.
   O conteúdo completo é apresentado no modal já existente da Home.
   ========================================================================== */

.gr-page-home .gr-social-card {
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(12, 69, 155, 0.12);
  background: var(--gr-surface-2);
}

.gr-page-home .gr-social-card::after {
  display: none;
}

.gr-page-home .gr-social-card__type {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  color: var(--gr-white);
  background: rgba(4, 27, 77, 0.72);
  box-shadow: 0 8px 22px rgba(4, 27, 77, 0.24);
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.gr-page-home .gr-social-card__type--carousel {
  top: 0.85rem;
  right: 0.85rem;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1rem;
}

.gr-page-home .gr-social-card__type--image {
  top: 0.85rem;
  right: 0.85rem;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1rem;
}

.gr-page-home .gr-social-card__type--video {
  top: 50%;
  left: 50%;
  width: 4rem;
  height: 4rem;
  font-size: 1.65rem;
  transform: translate(-50%, -50%);
}

.gr-page-home .gr-social-modal__media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(62vh, 38rem);
  overflow: hidden;
  border-radius: var(--gr-radius-md);
  background: #020817;
}

.gr-page-home .gr-social-modal__image,
.gr-page-home .gr-social-modal__video {
  display: block;
  width: 100%;
  height: min(62vh, 38rem);
  object-fit: contain;
}

.gr-page-home .gr-social-modal__video[hidden],
.gr-page-home .gr-social-modal__image[hidden] {
  display: none;
}

.gr-page-home .gr-social-modal__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: var(--gr-white);
  background: rgba(4, 27, 77, 0.7);
  cursor: pointer;
  transform: translateY(-50%);
}

.gr-page-home .gr-social-modal__nav--prev {
  left: 0.85rem;
}

.gr-page-home .gr-social-modal__nav--next {
  right: 0.85rem;
}

.gr-page-home .gr-social-modal__nav[hidden] {
  display: none;
}

.gr-page-home .gr-social-modal__status {
  width: fit-content;
  margin: 0.7rem auto 0;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  color: var(--gr-blue-800);
  background: var(--gr-surface-2);
  font-size: 0.76rem;
  font-weight: 700;
}

.gr-page-home .gr-social-modal__status[hidden] {
  display: none;
}

@media (max-width: 680px) {
  .gr-page-home .gr-social-card__type--video {
    width: 3.3rem;
    height: 3.3rem;
    font-size: 1.4rem;
  }

  .gr-page-home .gr-social-modal__media,
  .gr-page-home .gr-social-modal__image,
  .gr-page-home .gr-social-modal__video {
    height: min(56vh, 30rem);
    min-height: 0;
  }
}

/* Título do painel municipal sem estilo inline. */
.gr-city-results__title {
    margin-top: 0.8rem;
}

/* Modal do Instagram: espaçamento entre título/imagem e legenda real
   acima do texto padrão, separadas por linha divisória. */
.gr-page-home .gr-modal--social .gr-modal__head {
  margin-bottom: 1.25rem;
}

.gr-page-home .gr-social-modal__caption {
  margin-top: 1.25rem;
  margin-bottom: 0;
  color: var(--gr-blue-950);
  line-height: 1.5;
  white-space: pre-line;
}

.gr-page-home .gr-social-modal__copy-line {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(4, 27, 77, 0.12);
}

/* Modal do Instagram: cabeçalho fixo, só o conteúdo abaixo rola. Isso
   garante que a barra de rolagem nunca cubra a altura inteira do modal,
   em qualquer navegador (sem depender de truque de borda em scrollbar). */
.gr-page-home .gr-modal--social {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gr-page-home .gr-modal--social .gr-modal__head {
  flex: 0 0 auto;
}

.gr-page-home .gr-social-modal__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-right: -0.5rem;
  scrollbar-color: var(--gr-blue-700) rgba(4, 27, 77, 0.06);
  scrollbar-width: thin;
}

.gr-page-home .gr-social-modal__scroll::-webkit-scrollbar {
  width: 0.5rem;
}

.gr-page-home .gr-social-modal__scroll::-webkit-scrollbar-track {
  background: rgba(4, 27, 77, 0.06);
  border-radius: 1rem;
}

.gr-page-home .gr-social-modal__scroll::-webkit-scrollbar-thumb {
  background: var(--gr-blue-700);
  border-radius: 1rem;
}

/* Modal de seleção de território: mesmo padrão do modal do Instagram —
   cabeçalho (breadcrumb + "Você está em") fixo, só o conteúdo (mapa +
   lista de municípios) rola quando a região tem muitas cidades. */
.gr-page-home .gr-modal.gr-territory-modal {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gr-page-home .gr-territory-modal__head {
  flex: 0 0 auto;
}

.gr-page-home .gr-territory-modal__grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-right: -0.5rem;
  scrollbar-color: var(--gr-blue-700) rgba(4, 27, 77, 0.06);
  scrollbar-width: thin;
}

.gr-page-home .gr-territory-modal__grid::-webkit-scrollbar {
  width: 0.5rem;
}

.gr-page-home .gr-territory-modal__grid::-webkit-scrollbar-track {
  background: rgba(4, 27, 77, 0.06);
  border-radius: 1rem;
}

.gr-page-home .gr-territory-modal__grid::-webkit-scrollbar-thumb {
  background: var(--gr-blue-700);
  border-radius: 1rem;
}

/* Trilha de anos/marcos acima dos cards de "O legado do trabalho em [região]".
   Substitui visualmente a barrinha fina de progresso por uma linha do tempo
   com bolinhas e anos, no padrão pedido (like image 2 do briefing). */
.gr-page-home .gr-region-history .gr-history-timeline {
  position: relative;
  clip-path: inset(-10px 0 -200px 0);
  margin-bottom: 1.5rem;
  padding: 0 0.9rem;
}

.gr-page-home .gr-region-history .gr-history-timeline__row {
  display: flex;
  align-items: flex-start;
}

.gr-page-home .gr-region-history .gr-history-timeline::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(4, 27, 77, 0.15);
  z-index: 0;
}

.gr-page-home .gr-region-history .gr-history-timeline__marker {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  flex: 1 1 0;
}

.gr-page-home .gr-region-history .gr-history-timeline__dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--gr-white);
  border: 2px solid var(--gr-blue-700);
}

.gr-page-home .gr-region-history .gr-history-timeline__marker.is-active .gr-history-timeline__dot {
  background: var(--gr-blue-800);
  border-color: var(--gr-blue-800);
  box-shadow: 0 0 0 4px rgba(23, 104, 202, 0.18);
}

.gr-page-home .gr-region-history .gr-history-timeline__marker.is-active .gr-history-timeline__year {
  color: var(--gr-blue-800);
}

.gr-page-home .gr-region-history .gr-history-timeline__year {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gr-blue-700);
}

.gr-page-home .gr-region-history .gr-history-timeline__marker:not(.is-active) .gr-history-timeline__year {
  color: var(--gr-blue-700);
}


/* Ajustes finos da trilha: espaçamento maior antes dela, badges/navegador
   com mais respiro em relação à descrição, e linha vertical curta ligando
   cada marco ao card correspondente logo abaixo. */
.gr-page-home .gr-region-history__tabs {
  margin-top: 1.5rem;
}

.gr-page-home .gr-region-history__tools {
  margin-top: 1.5rem;
}

.gr-page-home .gr-region-history .gr-history-timeline {
  margin-top: 2rem;
}

.gr-page-home .gr-region-history .gr-history-timeline__marker::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0;
  height: 1.5rem;
  border-left: 2px dashed rgba(4, 27, 77, 0.25);
  transform: translateX(-50%);
}

.gr-page-home .gr-region-history .gr-history-timeline__marker.is-active::after {
  border-left-color: var(--gr-blue-800);
}

/* Paginação em blocos retangulares (substitui a barra contínua): um bloco
   por "página" de cards, com o ativo preenchido em azul e os demais só
   com borda. */
.gr-page-home .gr-region-history .gr-history-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: auto;
  height: auto;
  overflow: visible;
  margin-top: 1.5rem;
  border-radius: 0;
  background: none;
}

.gr-page-home .gr-region-history .gr-history-progress__segment {
  display: block;
  width: 3.5rem;
  height: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(4, 27, 77, 0.25);
  background: transparent;
  transition: background 220ms ease, border-color 220ms ease;
}

.gr-page-home .gr-region-history .gr-history-progress__segment.is-active {
  background: var(--gr-blue-700);
  border-color: var(--gr-blue-700);
}

/* Correção: os blocos ficam dentro do <span data-region-history-progress>,
   não direto na <div>. É esse span que precisa ser flex. */
.gr-page-home .gr-region-history [data-region-history-progress] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Marco de ano dentro de cada card (substitui a trilha separada de cima —
   agora o ano fica preso ao próprio card, rolando junto, sempre alinhado
   certo, mostrando só o que está visível). */
.gr-page-home .gr-region-history .gr-history-card__marker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.gr-page-home .gr-region-history .gr-history-card__marker .gr-history-timeline__dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--gr-white);
  border: 2px solid var(--gr-blue-700);
  flex: 0 0 auto;
}

.gr-page-home .gr-region-history .gr-history-card__marker .gr-history-timeline__year {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gr-blue-950);
}
/* Correções finais: zera o fundo "trilho" antigo que ainda vazava, marca
   os marcos como position:relative (necessário pro conector funcionar), e
   deixa os botões de navegação bem maiores e visuais. */
.gr-page-home .gr-region-history .gr-history-progress {
  background: none !important;
}

.gr-page-home .gr-region-history .gr-history-timeline__marker {
  position: relative;
  cursor: pointer;
}

.gr-page-home .gr-region-history [data-region-history-progress] {
  cursor: default;
}

.gr-page-home .gr-region-history .gr-history-progress__segment {
  cursor: pointer;
}

/* Mobile: fonte do ano menor, e a trilha mostra 1 marco por vez (a JS já
   ajusta a largura/deslocamento — aqui só a fonte). Barra de blocos some. */
@media (max-width: 640px) {
  .gr-page-home .gr-region-history .gr-history-timeline__year {
    font-size: 1rem;
  }

  .gr-page-home .gr-region-history .gr-history-progress {
    display: none;
  }
}

/* Mobile: navegador (setas+contador) e o marco/data centralizados. */
@media (max-width: 640px) {
  .gr-page-home .gr-region-history .gr-history-section__navigation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
  }

  .gr-page-home .gr-region-history .gr-history-section__controls {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gr-page-home .gr-region-history .gr-history-timeline__marker {
    justify-content: center;
    width: 100% !important;
  }
}

/* Mobile: card ocupa a tela toda, sem espiar o próximo, sem gap.
   Troca grid por flex aqui — porcentagem em grid-auto-columns é pouco
   confiável em colunas implícitas; flex com largura fixa é garantido. */
@media (max-width: 640px) {
  .gr-page-home .gr-region-history .gr-history-track {
    display: flex;
    gap: 0;
  }

  .gr-page-home .gr-region-history .gr-history-track-viewport {
    scroll-snap-type: x mandatory;
    padding-right: 0;
  }

  .gr-page-home .gr-region-history .gr-history-card {
    flex: 0 0 100%;
    width: calc(100% - 5rem - 20px);
    margin: 0 auto;
    scroll-snap-align: center;
    scroll-snap-align: center;
  }
}

/* Reduz o espaço vazio entre o fim do Legado regional e Últimas notícias — mobile */
@media (max-width: 640px) {
  .gr-page-home .gr-region-history {
    padding-bottom: 2rem;
  }

  .gr-page-home .gr-latest-news {
    padding-top: 2rem;
  }
}
