/* Território dos Carnaubais — não altera HOME, notícia nem editoria */

body.is-territorio {
  background: #ffffff;
}

.tc-shell {
  max-width: var(--page-max);
  width: 100%;
  margin: 1.5rem auto 0;
  padding: 0 1.25rem 5.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  column-gap: 4rem;
  align-items: start;
  justify-content: center;
}

.tc-main {
  min-width: 0;
}

.tc-aside {
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tc-intro {
  margin: 0 0 1.5rem;
}

.tc-intro .tc-demo {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.tc-intro h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
  border-left: 4px solid var(--accent, var(--green));
  padding-left: 0.7rem;
}

.tc-intro .tc-desc {
  margin: 0.7rem 0 0 0.95rem;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 40rem;
}

.tc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.tc-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-width: 0;
  color: var(--white);
}

.tc-card img,
.tc-card .card-media {
  width: 100%;
  aspect-ratio: 5 / 3;
  height: auto;
  object-fit: cover;
  display: block;
  background: #16351f;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.tc-card:hover img,
.tc-card:focus-visible img,
.tc-card:hover .card-media,
.tc-card:focus-visible .card-media {
  transform: scale(1.045);
  filter: brightness(1.06);
}

.tc-card-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.1rem 0.75rem 0.7rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.tc-mobile-ad {
  display: none;
  margin: 1.35rem 0;
}

@media (max-width: 900px) {
  .tc-shell {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .tc-aside {
    display: none;
  }

  .tc-mobile-ad {
    display: block;
    margin: 1rem 0 1.2rem;
  }

  .tc-mobile-ad .ad-slot,
  .tc-mobile-ad .ad-box {
    width: 100%;
    max-width: 200px;
    min-height: 0;
    height: auto;
    max-height: none;
    aspect-ratio: 200 / 250;
    margin-inline: auto;
  }

  .tc-mobile-ad .ad-slot img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
  }

  .tc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  .tc-shell {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .tc-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tc-card-name {
    font-size: 1.02rem;
    padding: 2.4rem 0.85rem 0.8rem;
  }
}
