:root {
  --news-red: #c81d11;
  --news-red-dark: #8f120c;
  --news-wine: #4a0f12;
  --news-ink: #151515;
  --news-muted: #626262;
  --news-paper: #fffdfa;
  --news-cream: #fff5ef;
  --news-line: #e7e1dc;
  --news-success: #147a46;
  --news-shadow: 0 18px 50px rgba(54, 20, 17, .12);
}

html { scroll-padding-top: 74px; }

body.editorial-v2 {
  background:
    radial-gradient(circle at 8% 2%, rgba(200, 29, 17, .05), transparent 25rem),
    #f6f3f1 !important;
  color: var(--news-ink) !important;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

.editorial-v2 .container { max-width: 1220px !important; }

.editorial-v2 .top-bar {
  background: var(--news-ink) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.editorial-v2 .site-header,
.editorial-v2 .header {
  background: rgba(255, 255, 255, .97) !important;
  color: var(--news-ink) !important;
  border-bottom: 4px solid var(--news-red) !important;
  box-shadow: 0 8px 26px rgba(37, 19, 17, .08);
  padding: 12px 0 !important;
}

.editorial-v2 .site-header .container,
.editorial-v2 .header .container,
.editorial-v2 .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.editorial-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 11px;
  color: var(--news-ink) !important;
  text-decoration: none !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(19px, 2.2vw, 29px) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: -.04em !important;
}

.editorial-brand img {
  width: 50px !important;
  height: 50px !important;
  flex: 0 0 50px;
  border-radius: 50%;
  object-fit: contain;
}

.editorial-brand b { color: var(--news-red); }

.editorial-v2 .search-box {
  border: 1px solid #d8d0cb;
  border-radius: 999px !important;
  min-width: min(330px, 34vw);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .03);
}

.editorial-v2 .search-box input { padding: 11px 16px !important; }
.editorial-v2 .search-box button {
  background: var(--news-red) !important;
  min-width: 48px;
}

.editorial-v2 .sub-bar {
  top: 0;
  box-shadow: 0 5px 18px rgba(23, 14, 13, .05);
}

.editorial-v2 .sub-bar .container { gap: 28px !important; }

.editorial-v2 main.container {
  background: var(--news-paper) !important;
  margin-top: 18px !important;
  border: 1px solid var(--news-line);
  border-radius: 18px;
  box-shadow: var(--news-shadow);
  padding: 34px 34px 50px !important;
}

.editorial-v2 .content-grid {
  grid-template-columns: minmax(0, 1fr) 330px !important;
  gap: 42px !important;
}

.editorial-v2 .content-grid > *,
.editorial-v2 article,
.editorial-v2 .article-body { min-width: 0; }

.editorial-v2 .article-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.editorial-v2 .article-chapeu,
.editorial-v2 .kicker,
.editorial-v2 .tag {
  color: var(--news-red) !important;
  font-weight: 900 !important;
  letter-spacing: .12em !important;
}

.editorial-v2 h1.article-title,
.editorial-v2 article > h1,
.editorial-v2 .headline {
  max-width: 920px;
  color: var(--news-ink) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(38px, 4.2vw, 58px) !important;
  line-height: 1.04 !important;
  letter-spacing: -.045em !important;
  text-wrap: balance;
}

.editorial-v2 .article-subtitle,
.editorial-v2 .subtitle,
.editorial-v2 .dek {
  color: #423f3c !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(18px, 2vw, 22px) !important;
  line-height: 1.45 !important;
}

.editorial-v2 .byline {
  background: linear-gradient(90deg, #fff8f4, #fff);
  border: 1px solid #eee4df !important;
  border-left: 4px solid var(--news-red) !important;
  border-radius: 10px;
  padding: 13px 15px !important;
}

.editorial-v2 .byline .avatar {
  background: var(--news-red) !important;
  box-shadow: 0 5px 14px rgba(200, 29, 17, .25);
}

.editorial-v2 .hero-image,
.editorial-v2 .editorial-photo {
  position: relative;
  overflow: hidden;
  margin: 26px 0 30px !important;
  border-radius: 18px !important;
  background: var(--news-wine);
  box-shadow: 0 18px 38px rgba(53, 19, 16, .2);
}

.editorial-v2 .hero-image img,
.editorial-v2 .editorial-photo img {
  width: 100% !important;
  aspect-ratio: 16 / 9;
  object-fit: cover !important;
  border-radius: 0 !important;
}

.editorial-v2 .hero-image .caption,
.editorial-v2 .editorial-photo figcaption {
  background: #1d1715 !important;
  color: #ddd3cf !important;
  border: 0 !important;
  padding: 10px 14px !important;
  font: 12px/1.45 Inter, Arial, sans-serif !important;
}

.editorial-v2 .article-body {
  color: #282320 !important;
  font-size: 19px !important;
  line-height: 1.75 !important;
}

.editorial-v2 .article-body > p:first-child::first-letter {
  color: var(--news-red);
  float: left;
  font: 700 72px/.78 Georgia, serif;
  padding: 11px 10px 0 0;
}

.editorial-v2 .article-body h2 {
  color: var(--news-ink) !important;
  font-size: clamp(27px, 3vw, 36px) !important;
  line-height: 1.14 !important;
  margin-top: 48px !important;
  text-wrap: balance;
}

.editorial-v2 .article-body h2::before {
  width: 72px !important;
  height: 5px !important;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--news-red), #f06c4f) !important;
}

.editorial-v2 .info-box,
.editorial-v2 .warning-box,
.editorial-v2 .highlight-box {
  background: var(--news-cream) !important;
  border: 1px solid #f2d8ce !important;
  border-left: 5px solid var(--news-red) !important;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(90, 36, 28, .06);
}

.editorial-v2 .cta-inline,
.editorial-v2 .sidebar-banner {
  background: linear-gradient(135deg, #3e0d10 0%, var(--news-red-dark) 48%, var(--news-red) 100%) !important;
  border-radius: 14px !important;
  box-shadow: 0 15px 34px rgba(110, 18, 13, .22);
}

.editorial-v2 .cta-inline a,
.editorial-v2 .btn,
.editorial-v2 .btn-sidebar,
.editorial-v2 .btn-banner {
  border-radius: 999px !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.editorial-v2 .cta-inline a:hover,
.editorial-v2 .btn:hover,
.editorial-v2 .btn-sidebar:hover,
.editorial-v2 .btn-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(95, 16, 13, .22);
  text-decoration: none !important;
}

.editorial-v2 .sidebar { position: relative; }
.editorial-v2 .sidebar > :first-child { position: sticky; top: 72px; }

.editorial-v2 .sidebar-cta {
  background: linear-gradient(180deg, #fff9f5, #fff) !important;
  border: 1px solid #efcfc4 !important;
  border-top: 5px solid var(--news-red) !important;
  border-radius: 14px !important;
  box-shadow: 0 14px 34px rgba(69, 24, 19, .1);
  padding: 18px !important;
}

.editorial-v2 .sidebar-cta img {
  max-height: 250px;
  object-fit: contain;
  background: #fff;
}

.editorial-v2 .sidebar-block,
.editorial-v2 .related-card,
.editorial-v2 .card {
  border: 1px solid var(--news-line) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 28px rgba(49, 27, 24, .07);
}

.editorial-v2 .sidebar-title {
  background: var(--news-ink) !important;
  border-left: 5px solid var(--news-red);
}

.editorial-v2 .sidebar-news-item img,
.editorial-v2 .related-card img,
.editorial-v2 .card img {
  object-fit: cover !important;
}

.editorial-v2 .related-card,
.editorial-v2 .card { transition: transform .2s ease, box-shadow .2s ease; }
.editorial-v2 .related-card:hover,
.editorial-v2 .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(49, 27, 24, .12);
}

.editorial-v2 .news-disclosure {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0 26px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8f5f3;
  color: #615a56;
  font-size: 13px;
  line-height: 1.5;
}

.editorial-v2 .news-disclosure strong { color: var(--news-ink); }

.editorial-v2 .mobile-story-cta { display: none; }

.editorial-v2 :focus-visible {
  outline: 3px solid #ffb29f !important;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  html { scroll-padding-bottom: 92px; }
  body.editorial-v2 { padding-bottom: 82px; }
  .editorial-v2 .site-header .container,
  .editorial-v2 .header .container,
  .editorial-v2 .header-inner { gap: 12px; }
  .editorial-v2 .editorial-brand img { width: 42px !important; height: 42px !important; flex-basis: 42px; }
  .editorial-v2 .search-box { min-width: 0; width: 48px !important; }
  .editorial-v2 .search-box input { width: 0; padding: 0 !important; opacity: 0; }
  .editorial-v2 main.container {
    margin-top: 8px !important;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 24px 18px 38px !important;
  }
  .editorial-v2 .content-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 28px !important; }
  .editorial-v2 h1.article-title,
  .editorial-v2 article > h1,
  .editorial-v2 .headline { font-size: clamp(34px, 10.5vw, 46px) !important; }
  .editorial-v2 .article-body { font-size: 18px !important; line-height: 1.68 !important; }
  .editorial-v2 .hero-image,
  .editorial-v2 .editorial-photo { margin-left: -18px !important; margin-right: -18px !important; border-radius: 0 !important; }
  .editorial-v2 .hero-image img,
  .editorial-v2 .editorial-photo img { aspect-ratio: 4 / 3; }
  .editorial-v2 .sidebar > :first-child { position: static; }
  .editorial-v2 .mobile-story-cta {
    position: fixed;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    padding: 11px 12px 11px 16px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px;
    background: rgba(24, 16, 15, .97);
    color: #fff;
    box-shadow: 0 18px 42px rgba(0,0,0,.35);
    backdrop-filter: blur(12px);
  }
  .editorial-v2 .mobile-story-cta span { font-size: 12px; line-height: 1.25; }
  .editorial-v2 .mobile-story-cta strong { display: block; font-size: 14px; }
  .editorial-v2 .mobile-story-cta a {
    flex: 0 0 auto;
    padding: 11px 17px;
    border-radius: 999px;
    background: var(--news-red);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
