/**
 * Ritmo da HOME — não altera Destaques, matérias nem editorias de arquivo.
 */

body.home .ad-leader {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 0.8rem;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

body.home .ad-leader .ad-label {
  width: 100%;
  margin-bottom: 0.2rem;
  line-height: 1;
}

body.home .ad-leader .ad-unit {
  width: 100%;
  max-width: none;
}

body.home .ad-leader .ad-slot {
  width: 100%;
  max-width: 728px;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 728 / 40;
  margin-inline: auto;
  overflow: hidden;
  background: #fff;
}

body.home .ad-leader .ad-slot img,
body.home .ad-leader .ad-link img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
}

.ad-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

body.home div.page {
  margin-top: 0.8rem;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.home-lead-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 1.5rem;
  align-items: start;
}

.home-lead-band .sidebar,
.home-partner-rail {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
  width: 200px;
  padding-top: 2.15rem;
}

.home-partner-rail .ad-unit {
  margin: 0;
}

.home-partner-rail .ad-slot,
.ad-slot.ad-partner {
  width: 100%;
  max-width: 200px;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 200 / 90;
  margin-inline: auto;
  background: #fff;
  border: 1px solid #ececec;
  color: #8a9088;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.home-partner-rail .ad-slot img,
.ad-slot.ad-partner img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.home-lead-band .rjw-destaques {
  margin-bottom: 0;
}

.local-block {
  margin-top: 1.75rem;
}

.local-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
}

.local-grid #local-list {
  order: 1;
}

.local-grid #local-feature {
  order: 2;
}

.home-territorio {
  margin-top: 1.85rem;
}

.home-tc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.home-tc-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.home-tc-card img,
.home-tc-card .card-media {
  width: 100%;
  height: 132px;
  object-fit: cover;
  background: #ececec;
}

.home-tc-muni {
  display: inline-block;
  width: fit-content;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 1px;
}

.home-tc-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}

.home-tc-card:hover h3 {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-duo,
.home-trio {
  margin-top: 1.85rem;
  display: grid;
  gap: 1.6rem;
  align-items: start;
}

.home-duo,
.home-duo-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-duo-1,
.home-trio-1 {
  grid-template-columns: minmax(0, 1fr);
}

.home-trio,
.home-trio-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-trio-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-mid-ad {
  max-width: none;
  width: 100%;
  margin: 1.45rem 0 0;
  padding: 0;
}

body.home .ad-leader.home-mid-ad {
  margin-top: 1.45rem;
}

.home-ad-reserve {
  display: none;
}

body.home .radio-panel {
  margin-top: 2rem;
}

body.home .now-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

body.home .now-next {
  background: #f7f4ea;
}

.home-agora {
  margin-top: 1.85rem;
}

.home-agora-board {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: stretch;
}

.home-agora-lead {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--line);
}

.home-agora-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

.is-mundo .home-agora-kicker {
  color: var(--red);
}

.home-agora-lead .home-agora-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.7vw, 1.38rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}

.home-agora-lead:hover .home-agora-title,
.home-agora-item:hover .home-agora-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-agora-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.home-agora-source {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-agora-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1.4rem;
  min-width: 0;
}

.home-agora-item {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  min-width: 0;
  padding: 0.2rem 0 0.55rem;
  border-bottom: 1px solid var(--line);
}

.home-agora-item:first-child {
  padding-top: 0;
}

.home-agora-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.home-agora-item .home-agora-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--ink);
}

body.home .videos {
  margin-top: 2rem;
}

.home-video-wrap {
  position: relative;
}

.home-video-reel {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.home-video-card {
  flex: 0 0 calc((100% - 1.7rem) / 3);
  min-width: 0;
  scroll-snap-align: start;
}

.home-video-card__frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #111;
  border-radius: 2px;
}

.home-video-card__frame > img,
.home-video-card__frame > .card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-video-card__media {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.home-video-card__play {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  background: rgba(15, 89, 38, 0.88);
  box-shadow: 0 0 0 2px var(--yellow);
  pointer-events: none;
}

.home-video-card__play::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 15px;
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent var(--yellow);
}

.home-video-card__shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 2.4rem 0.7rem 0.65rem;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 8, 8, 0.88) 70%);
  color: #fff;
  pointer-events: none;
}

.home-video-card__cat {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
}

.home-video-card__title {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-video-card__more {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--yellow);
  text-decoration: none;
  pointer-events: auto;
}

.home-video-card__more:hover,
.home-video-card__more:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-video-card.is-playing .home-video-card__media,
.home-video-card.is-playing .home-video-card__shade {
  display: none;
}

.home-video-card__stage {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: #000;
}

.home-video-card__stage iframe,
.home-video-card__stage video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}

.home-video-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 89, 38, 0.92);
  color: var(--yellow);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.home-video-nav[hidden] {
  display: none;
}

.home-video-nav--prev {
  left: 0.25rem;
}

.home-video-nav--next {
  right: 0.25rem;
}

.home-video-wrap:not(.has-more) .home-video-nav {
  display: none;
}

.home-empty-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .home-tc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-agora-lead .home-agora-title {
    font-size: 1.18rem;
  }
}

@media (max-width: 900px) {
  body.home .ad-leader {
    margin-top: 0.7rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body.home .ad-leader .ad-slot {
    width: 100%;
    max-width: 728px;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 728 / 40;
    margin-inline: auto;
    font-size: 0.62rem;
  }

  body.home .ad-leader .ad-slot img,
  body.home .ad-leader .ad-link img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
  }

  body.home div.page {
    margin-top: 0.7rem;
  }

  body.home .ad-leader.home-mid-ad {
    margin-top: 1.2rem;
  }

  .local-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .local-grid #local-feature {
    order: 0;
  }

  .local-grid #local-list {
    order: 1;
  }

  .local-excerpt {
    display: none;
  }

  .local-list a:nth-child(n + 2) {
    display: none;
  }

  .story-card img,
  .story-card > .card-media {
    height: 168px;
  }

  .local-block .story-card h3 {
    font-size: 1.05rem;
    line-height: 1.28;
  }

  .home-lead-band {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  body.home aside.sidebar.home-partner-rail {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    padding: 0.85rem 0 0;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .home-partner-rail .ad-unit {
    flex: 0 0 168px;
  }

  .home-partner-rail .ad-slot,
  .ad-slot.ad-partner {
    width: 100%;
    max-width: 168px;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 200 / 90;
    margin-inline: auto;
  }

  body.home .mobile-ad[data-slot="home-mobile-1"] {
    display: none;
  }

  .home-duo,
  .home-duo-2,
  .home-trio,
  .home-trio-2,
  .home-trio-3,
  .home-agora-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-agora-lead {
    padding: 0 0 0.65rem;
    margin-bottom: 0;
  }

  .home-agora-lead .home-agora-title {
    font-size: 1.08rem;
  }

  .home-video-card {
    flex: 0 0 min(72vw, 260px);
  }

  .home-video-nav {
    display: none;
  }

  .home-mid-ad {
    margin-top: 1.2rem;
  }
}

@media (max-width: 640px) {
  .home-tc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
