/* Página interna de notícia — não altera a HOME */

body.is-article {
  background: #ffffff;
}

.article-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;
  grid-template-areas:
    "head aside"
    "body aside"
    "related aside";
  column-gap: 4rem;
  row-gap: 0;
  align-items: start;
  justify-content: center;
}

.article-head {
  grid-area: head;
  min-width: 0;
}

.article-body {
  grid-area: body;
}

.article-related {
  grid-area: related;
}

.article-aside {
  grid-area: aside;
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.article-demo {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.article-kicker {
  display: inline-block;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, var(--green));
}

.article-kicker.tone-green {
  color: var(--green);
}

.article-kicker.tone-red {
  color: var(--red);
}

.article-kicker.tone-gold {
  color: var(--ink);
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 1px;
}

.article-title {
  margin: 0.55rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.15vw, 2.28rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}

.article-dek {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.55;
  color: #3a3a3a;
}

.article-byline {
  margin: 1.15rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}

.article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 1.2rem 0 0;
}

.article-share span {
  margin-right: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-share a,
.article-share button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #2a2a2a;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
}

.article-share a:hover,
.article-share a:focus-visible,
.article-share button:hover,
.article-share button:focus-visible {
  border-color: var(--green);
  color: var(--green);
}

.article-share svg {
  width: 15px;
  height: 15px;
  display: block;
}

.article-hero {
  margin: 1.6rem 0 0;
}

.article-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0f5926;
}

@media (min-width: 901px) {
  .article-hero img {
    aspect-ratio: 16 / 8.2;
    min-height: 420px;
  }
}

.article-caption {
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

.article-prose {
  max-width: none;
  width: 100%;
  margin: 1.85rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.78;
  color: #1a1a1a;
}

.article-prose p {
  margin: 0 0 1.28rem;
}

.article-prose h2 {
  margin: 2.1rem 0 0.8rem;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.article-prose ul {
  margin: 0 0 1.28rem;
  padding-left: 1.2rem;
}

.article-prose li {
  margin: 0.35rem 0;
}

.article-prose a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-prose blockquote {
  margin: 1.7rem 0 1.5rem;
  padding: 0.15rem 0 0.15rem 1.05rem;
  border-left: 3px solid var(--red);
  color: #2c2c2c;
  font-weight: 500;
}

.article-ad {
  margin: 2rem 0 2.1rem;
  padding: 1.1rem 0 0.2rem;
  border-top: 1px solid var(--line);
  max-width: none;
  width: 100%;
}

.article-ad .ad-slot {
  background: #fafafa;
  min-height: 90px;
}

.article-related {
  margin-top: 2.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.article-related .section-head {
  max-width: none;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem 1.2rem;
}

.related-card {
  min-width: 0;
}

.related-card img {
  width: 100%;
  height: 132px;
  object-fit: cover;
}

.related-card .label {
  display: block;
  margin: 0.65rem 0 0.28rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.related-card .label.tone-green,
.recent-item .label.tone-green {
  color: var(--green);
}

.related-card .label.tone-red,
.recent-item .label.tone-red {
  color: var(--red);
}

.related-card .label.tone-gold,
.recent-item .label.tone-gold {
  color: var(--ink);
}

.related-card p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.related-card:hover p {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.aside-recent h2 {
  margin: 0 0 0.85rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 0.4rem;
}

.recent-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.recent-item:first-of-type {
  padding-top: 0;
}

.recent-item img {
  width: 72px;
  height: 54px;
  object-fit: cover;
}

.recent-item .label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.18rem;
}

.recent-item p {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.recent-item:hover p {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 900px) {
  .article-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "body"
      "aside"
      "related";
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .article-aside {
    width: 100%;
    max-width: 28rem;
    margin: 2rem 0 0;
  }

  .article-aside .ad-skyscraper {
    min-height: 250px;
    height: 250px;
  }
}

@media (max-width: 430px) {
  .article-shell {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .article-title {
    font-size: 1.42rem;
  }

  .article-dek {
    font-size: 0.98rem;
  }

  .article-prose {
    font-size: 1.02rem;
  }

  .related-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .related-card img {
    height: 180px;
  }

  .article-hero img {
    aspect-ratio: 16 / 10;
  }
}
