/* Reportagem longa — Podridão-salmão (Waitea zeae)
   Escopo: apenas páginas com .reportagem-waitea */

.reportagem-waitea {
  --rw-max: 1220px;
  --rw-read: 780px;
  --rw-side: 300px;
  --rw-gap: 36px;
  --rw-gold: #c4a15a;
  color: #1a2b24;
}

.reportagem-waitea .rw-wrap {
  width: min(calc(100% - 40px), var(--container, var(--rw-max)));
  margin-inline: auto;
  padding: 24px 0 72px;
}

.reportagem-waitea .rw-lead {
  margin: 0 0 28px;
  padding: 22px 28px 24px;
  border-radius: 20px;
  background: linear-gradient(165deg, #ffffff 0%, #f7faf8 100%);
  border: 1px solid rgba(15, 31, 24, 0.08);
  box-shadow: 0 10px 28px rgba(15, 31, 24, 0.04);
  box-sizing: border-box;
}

@media (min-width: 980px) {
  .reportagem-waitea .rw-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.9fr);
    grid-template-areas:
      "crumb crumb"
      "head hero";
    column-gap: 36px;
    row-gap: 18px;
    align-items: start;
    padding: 28px 32px 28px;
  }

  .reportagem-waitea .rw-lead > .rw-breadcrumb {
    grid-area: crumb;
  }

  .reportagem-waitea .rw-lead > .rw-header {
    grid-area: head;
    min-width: 0;
  }

  .reportagem-waitea .rw-lead > .rw-hero {
    grid-area: hero;
    margin: 0;
    position: sticky;
    top: 96px;
  }

  .reportagem-waitea .rw-lead .rw-deck {
    max-width: none;
  }

  .reportagem-waitea .rw-lead .rw-hero-stage {
    min-height: 320px;
    height: 100%;
    padding: 18px;
  }

  .reportagem-waitea .rw-lead .rw-hero img {
    max-width: min(100%, 560px);
    max-height: 360px;
  }
}

.reportagem-waitea .rw-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  font-size: 0.82rem;
  color: #5a7268;
  margin: 0 0 18px;
}

.reportagem-waitea .rw-breadcrumb a {
  color: var(--cg-green, #1a6b4a);
  text-decoration: none;
  font-weight: 600;
}

.reportagem-waitea .rw-breadcrumb a:hover {
  text-decoration: underline;
}

.reportagem-waitea .rw-breadcrumb span[aria-hidden="true"] {
  opacity: 0.55;
}

.reportagem-waitea .rw-kicker {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cg-green-soft, #e8f5ee);
  color: var(--cg-green-dark, #1a6b4a);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.reportagem-waitea .rw-header {
  width: 100%;
  max-width: none;
}

.reportagem-waitea .rw-header h1 {
  margin: 0 0 16px;
  font-size: clamp(1.65rem, 3.6vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  max-width: none;
  width: 100%;
  text-wrap: balance;
}

.reportagem-waitea .rw-deck {
  margin: 0 0 18px;
  font-size: clamp(1.02rem, 1.6vw, 1.14rem);
  line-height: 1.62;
  color: #3d5349;
  max-width: 48rem;
  width: 100%;
}

.reportagem-waitea .rw-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.9rem;
  color: #5a7268;
  margin: 0 0 18px;
  width: 100%;
}

.reportagem-waitea .rw-author {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 31, 24, 0.08);
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

.reportagem-waitea .rw-author strong {
  display: block;
  font-size: 0.98rem;
}

.reportagem-waitea .rw-author span,
.reportagem-waitea .rw-author a {
  display: block;
  font-size: 0.88rem;
  color: #5a7268;
  margin-top: 2px;
}

.reportagem-waitea .rw-author a {
  color: var(--cg-green, #1a6b4a);
  text-decoration: none;
  font-weight: 600;
}

.reportagem-waitea .rw-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}

.reportagem-waitea .rw-share button,
.reportagem-waitea .rw-share a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 31, 24, 0.12);
  background: #fff;
  color: #234036;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.reportagem-waitea .rw-share button:hover,
.reportagem-waitea .rw-share a:hover {
  border-color: rgba(26, 107, 74, 0.35);
  background: #f3faf6;
}

.reportagem-waitea .rw-share button:focus-visible,
.reportagem-waitea .rw-share a:focus-visible {
  outline: 2px solid var(--cg-green, #1a6b4a);
  outline-offset: 2px;
}

.reportagem-waitea .rw-hero {
  margin: 8px 0 0;
}

.reportagem-waitea .rw-hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(220px, 42vw, 420px);
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #dfe8e2;
}

.reportagem-waitea .rw-hero-stage::before {
  display: none;
}

.reportagem-waitea .rw-hero img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: none;
  max-height: none;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-inline: auto;
  border-radius: 16px;
  background: #e8eee9;
  box-shadow: none;
}

/* Hero ainda em baixa resolução no pacote (01): não esticar */
.reportagem-waitea .rw-hero.is-lowres .rw-hero-stage {
  padding: clamp(16px, 3vw, 28px);
  background:
    radial-gradient(120% 90% at 50% 40%, #eef5f0 0%, #d9e6de 58%, #c9d8cf 100%);
}

.reportagem-waitea .rw-hero.is-lowres .rw-hero-stage::before {
  display: block;
  content: "";
  position: absolute;
  inset: -8%;
  background-image: var(--rw-hero-bg);
  background-size: cover;
  background-position: center;
  filter: blur(22px) saturate(1.05);
  transform: scale(1.14);
  opacity: 0.42;
  pointer-events: none;
}

.reportagem-waitea .rw-hero.is-lowres img {
  width: auto;
  max-width: min(100%, 560px);
  max-height: min(52vh, 360px);
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 31, 24, 0.14);
}

.reportagem-waitea .rw-figure {
  margin: 28px 0;
  padding: 0;
  border-radius: 16px;
  background: transparent;
  border: none;
  box-sizing: border-box;
}

.reportagem-waitea .rw-figure img {
  display: block;
  width: 100%;
  max-width: none;
  max-height: none;
  height: auto;
  margin-inline: auto;
  border-radius: 14px;
  background: #e8eee9;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  box-shadow: none;
}

.reportagem-waitea .rw-figure--info img {
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #f3f7f4;
  padding: 8px;
  box-sizing: border-box;
}

.reportagem-waitea .rw-figure--wide img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.reportagem-waitea .rw-figure figcaption,
.reportagem-waitea .rw-hero figcaption {
  margin-top: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #5a7268;
  max-width: 48rem;
}

.reportagem-waitea .rw-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 14px;
  margin: 0 0 28px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fffdf7;
  border: 1px solid rgba(196, 161, 90, 0.35);
  border-left: 4px solid var(--rw-gold);
}

.reportagem-waitea .rw-callout--green {
  background: #f4faf6;
  border-color: rgba(26, 107, 74, 0.18);
  border-left-color: var(--cg-green, #1a6b4a);
}

.reportagem-waitea .rw-callout strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6a5420;
  margin-bottom: 4px;
}

.reportagem-waitea .rw-callout--green strong {
  color: var(--cg-green-dark, #1a6b4a);
}

.reportagem-waitea .rw-callout p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
}

.reportagem-waitea .rw-callout-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(196, 161, 90, 0.18);
  color: #6a5420;
  font-weight: 800;
  font-size: 0.9rem;
}

.reportagem-waitea .rw-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--rw-read)) minmax(240px, var(--rw-side));
  gap: var(--rw-gap);
  align-items: start;
  justify-content: space-between;
}

.reportagem-waitea .rw-main {
  min-width: 0;
}

.reportagem-waitea .rw-side {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 92px;
}

.reportagem-waitea .rw-side-card {
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 31, 24, 0.08);
  box-shadow: 0 10px 24px rgba(15, 31, 24, 0.04);
}

.reportagem-waitea .rw-side-card h2 {
  margin: 0 0 10px;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.reportagem-waitea .rw-side-card ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 8px;
  color: #3d5349;
  font-size: 0.88rem;
  line-height: 1.4;
}

.reportagem-waitea .rw-toc {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.reportagem-waitea .rw-toc a {
  color: var(--cg-green, #1a6b4a);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
}

.reportagem-waitea .rw-toc a:hover {
  text-decoration: underline;
}

.reportagem-waitea .rw-part {
  margin: 42px 0 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 31, 24, 0.08);
}

.reportagem-waitea .rw-part-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cg-green, #1a6b4a);
  margin-bottom: 8px;
}

.reportagem-waitea .rw-main h2 {
  margin: 34px 0 12px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -0.02em;
  scroll-margin-top: 96px;
}

.reportagem-waitea .rw-main h3 {
  margin: 22px 0 10px;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.reportagem-waitea .rw-main p {
  margin: 0 0 14px;
  font-size: 1.02rem;
  line-height: 1.72;
  color: #22342d;
}

.reportagem-waitea .rw-main ul,
.reportagem-waitea .rw-main ol {
  margin: 0 0 16px;
  padding-left: 1.2rem;
  display: grid;
  gap: 8px;
  color: #22342d;
  line-height: 1.55;
}

.reportagem-waitea .rw-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 24px;
}

.reportagem-waitea .rw-card {
  padding: 14px 14px;
  border-radius: 14px;
  background: #f7faf8;
  border: 1px solid rgba(15, 31, 24, 0.07);
  font-size: 0.92rem;
  line-height: 1.4;
  color: #2a4036;
}

.reportagem-waitea .rw-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 28px;
}

.reportagem-waitea .rw-split > div {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 31, 24, 0.08);
  background: #fff;
}

.reportagem-waitea .rw-split h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.reportagem-waitea .rw-split ul {
  margin: 0;
  font-size: 0.9rem;
}

.reportagem-waitea .rw-faq details {
  border: 1px solid rgba(15, 31, 24, 0.1);
  border-radius: 12px;
  background: #fff;
  margin: 0 0 8px;
  padding: 0;
}

.reportagem-waitea .rw-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.35;
}

.reportagem-waitea .rw-faq summary::-webkit-details-marker {
  display: none;
}

.reportagem-waitea .rw-faq summary::after {
  content: "+";
  float: right;
  color: var(--cg-green, #1a6b4a);
  font-weight: 800;
}

.reportagem-waitea .rw-faq details[open] summary::after {
  content: "–";
}

.reportagem-waitea .rw-faq summary:focus-visible {
  outline: 2px solid var(--cg-green, #1a6b4a);
  outline-offset: 2px;
}

.reportagem-waitea .rw-faq .rw-faq-body {
  padding: 0 16px 14px;
  color: #2a4036;
  font-size: 0.95rem;
  line-height: 1.6;
}

.reportagem-waitea .rw-refs {
  display: grid;
  gap: 18px;
  margin-top: 12px;
}

.reportagem-waitea .rw-refs h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.reportagem-waitea .rw-refs ul {
  margin: 0;
}

.reportagem-waitea .rw-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.reportagem-waitea .rw-related a {
  display: block;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 31, 24, 0.08);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 24px rgba(15, 31, 24, 0.04);
}

.reportagem-waitea .rw-related a:hover {
  border-color: rgba(26, 107, 74, 0.25);
}

.reportagem-waitea .rw-related .tag {
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cg-green, #1a6b4a);
  margin-bottom: 8px;
}

.reportagem-waitea .rw-related h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.reportagem-waitea .rw-related p {
  margin: 0;
  font-size: 0.9rem;
  color: #5a7268;
  line-height: 1.45;
}

.reportagem-waitea .rw-toc-mobile {
  display: none;
  margin: 0 0 28px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: #f7faf8;
  border: 1px solid rgba(15, 31, 24, 0.08);
}

.reportagem-waitea .rw-toc-mobile h2 {
  margin: 0 0 12px;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.reportagem-waitea .rw-toc-mobile .rw-toc {
  list-style: decimal;
  padding-left: 1.35rem;
  margin: 0;
  display: grid;
  gap: 8px;
}

.reportagem-waitea .rw-toc-mobile .rw-toc a {
  color: var(--cg-green, #1a6b4a);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.35;
}

.reportagem-waitea .rw-toc-mobile .rw-toc a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .reportagem-waitea .rw-layout {
    grid-template-columns: 1fr;
  }

  .reportagem-waitea .rw-side {
    position: static;
    order: 2;
  }

  .reportagem-waitea .rw-toc-mobile {
    display: block;
  }

  .reportagem-waitea .rw-side .rw-side-toc-desktop {
    display: none;
  }
}

@media (max-width: 720px) {
  .reportagem-waitea .rw-wrap {
    width: min(calc(100% - 24px), var(--rw-max));
    padding-top: 16px;
  }

  .reportagem-waitea .rw-lead {
    padding: 18px 16px 16px;
    border-radius: 16px;
  }

  .reportagem-waitea .rw-header h1 {
    max-width: none;
    font-size: clamp(1.45rem, 6.2vw, 1.9rem);
  }

  .reportagem-waitea .rw-deck {
    max-width: none;
  }

  .reportagem-waitea .rw-hero-stage {
    min-height: 200px;
    padding: 14px;
  }

  .reportagem-waitea .rw-cards,
  .reportagem-waitea .rw-split,
  .reportagem-waitea .rw-related {
    grid-template-columns: 1fr;
  }

  .reportagem-waitea .rw-callout {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reportagem-waitea {
    scroll-behavior: auto;
  }
}

html:has(.reportagem-waitea) {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html:has(.reportagem-waitea) {
    scroll-behavior: auto;
  }
}

/* ── Zoom por clique ── */
.reportagem-waitea figure.rw-zoomable {
  position: relative;
}

.reportagem-waitea figure.rw-zoomable img[data-rw-zoom] {
  cursor: zoom-in;
}

.reportagem-waitea figure.rw-zoomable::after {
  content: "Clique para ampliar";
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f2f22;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 31, 24, 0.1);
  box-shadow: 0 6px 16px rgba(15, 31, 24, 0.12);
  pointer-events: none;
}

.reportagem-waitea figure.rw-hero.rw-zoomable::after {
  top: 20px;
  right: 20px;
}

.reportagem-waitea .rw-lightbox img,
.reportagem-waitea img[data-rw-zoom] {
  -webkit-user-drag: none;
  user-drag: none;
}

/* ── Proteção editorial (deterrente) ── */
body.reportagem-waitea.rw-protect .rw-wrap,
body.reportagem-waitea.rw-protect .rw-wrap * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body.reportagem-waitea.rw-protect .rw-allow-copy,
body.reportagem-waitea.rw-protect .rw-allow-copy * {
  -webkit-user-select: text;
  user-select: text;
}

body.reportagem-waitea.rw-protect img {
  pointer-events: auto;
}
