@layer pages {
  .article-detail-page {
    --ad-ink: #f4f6fb;
    --ad-muted: rgb(233 239 255 / 72%);
    --ad-border: rgb(244 199 106 / 18%);
    --ad-border-soft: rgb(255 255 255 / 10%);
    --ad-panel: linear-gradient(135deg, rgb(30 25 45 / 88%), rgb(18 14 28 / 96%));
    --ad-panel-soft: rgb(255 255 255 / 3.5%);
    --ad-accent: #f4c76a;
    --ad-accent-soft: rgb(244 199 106 / 14%);
    --ad-accent-strong: #f59e0b;
    --ad-pro: #34d399;
    --ad-pro-soft: rgb(52 211 153 / 10%);
    --ad-con: #f87171;
    --ad-con-soft: rgb(248 113 113 / 10%);
    --ad-stage-bg: #f3f4f6;
    --ad-shadow: 0 20px 45px rgb(5 4 11 / 45%);

    min-height: 80vh;
    margin-top: calc(-1 * var(--space-05));
    padding: 0.5rem 0 4.5rem;
    color: var(--ad-ink);
  }

  /* Breadcrumb e disclosure FTC no topo */
  .article-top-bar {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
  }

  .article-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.84rem;
    color: var(--ad-muted);
  }

  .article-breadcrumb a {
    color: var(--ad-accent);
    text-decoration: none;
    transition: opacity 0.18s ease;
  }

  .article-breadcrumb a:hover {
    text-decoration: underline;
    opacity: 0.9;
  }

  .article-breadcrumb .separator {
    opacity: 0.45;
  }

  .article-breadcrumb .current {
    color: var(--ad-ink);
  }

  .article-disclosure-top {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.15rem 0;
    color: var(--ad-muted);
    font-size: 0.79rem;
    line-height: 1.45;
  }

  .article-disclosure-top svg,
  .article-disclosure-top i {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    color: var(--ad-accent);
  }

  /* Split Hero assimétrico direto no fundo da página (sem caixote) */
  .article-split-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem 2.25rem;
    margin-bottom: 1.5rem;
    padding: 0.65rem 0 1.6rem;
    border-bottom: 1px solid var(--ad-border-soft);
  }

  .article-split-hero--no-media {
    grid-template-columns: 1fr;
  }

  .article-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
  }

  .article-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--ad-border);
    background: var(--ad-accent-soft);
    color: var(--ad-accent);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .article-hero-title {
    margin: 0;
    font-size: clamp(1.6rem, 2.8vw, 2.35rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--ad-ink);
    letter-spacing: -0.015em;
  }

  .article-hero-lead {
    margin: 0;
    max-width: 66ch;
    color: var(--ad-muted);
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .article-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem 1.25rem;
    color: var(--ad-muted);
    font-size: 0.84rem;
  }

  .article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }

  .article-meta-item svg,
  .article-meta-item i {
    width: 15px;
    height: 15px;
    color: var(--ad-accent);
  }

  /* Bloco de decisão no topo (Wirecutter/RTINGS) */
  .article-cta {
    margin-top: 0.35rem;
  }

  .cta-inline {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.65rem 0.85rem 0.65rem 1.05rem;
    border-radius: 14px;
    border: 1px solid var(--ad-border);
    background: rgb(255 255 255 / 3.5%);
  }

  .cta-info {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
  }

  .cta-label {
    color: var(--ad-muted);
    font-size: 0.82rem;
  }

  .cta-price {
    color: var(--ad-ink);
    font-size: 1.25rem;
    font-weight: 800;
  }

  .cta-store {
    color: var(--ad-muted);
    font-size: 0.86rem;
  }

  .btn-cta-inline,
  .article-sidebar .btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.68rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgb(244 199 106 / 55%);
    background: linear-gradient(135deg, #f4c76a, #f59e0b);
    color: #14111d;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    white-space: nowrap;
  }

  .btn-cta-inline:hover,
  .article-sidebar .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgb(244 199 106 / 26%);
    filter: brightness(1.04);
  }

  .btn-cta-inline svg,
  .btn-cta-inline i,
  .article-sidebar .btn-cta svg,
  .article-sidebar .btn-cta i {
    width: 16px;
    height: 16px;
  }

  /* Mídia do hero: abraça a proporção natural da foto, sem paredão branco ou cinza */
  .article-hero-stage {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    max-width: 360px;
    max-height: 360px;
    border-radius: 16px;
    background: rgb(10 8 18 / 65%);
    border: 1px solid rgb(255 255 255 / 12%);
    box-shadow: 0 14px 32px rgb(0 0 0 / 35%);
    overflow: hidden;
  }

  .article-hero-stage img {
    display: block;
    max-width: 360px;
    max-height: 360px;
    width: auto;
    height: auto;
    object-fit: cover;
  }

  .article-stage-store {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgb(17 24 39 / 86%);
    color: #f9fafb;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
  }

  .article-stage-store svg,
  .article-stage-store i {
    width: 13px;
    height: 13px;
    color: var(--ad-accent);
  }

  /* Corpo 2 colunas: leitura (68ch) + sidebar sticky */
  .article-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 1.75rem;
  }

  .article-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
  }

  /* Prós & Contras em 2 colunas (padrão RTINGS) */
  .article-verdict-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .article-verdict-grid--single {
    grid-template-columns: 1fr;
  }

  .article-verdict-card {
    padding: 1.15rem 1.25rem;
    border-radius: 18px;
    border: 1px solid var(--ad-border-soft);
    background: var(--ad-panel);
  }

  .article-verdict-card--pros {
    border-color: rgb(52 211 153 / 28%);
    background: linear-gradient(135deg, var(--ad-pro-soft), rgb(18 14 28 / 92%));
  }

  .article-verdict-card--cons {
    border-color: rgb(248 113 113 / 28%);
    background: linear-gradient(135deg, var(--ad-con-soft), rgb(18 14 28 / 92%));
  }

  .article-verdict-card h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    font-size: 0.98rem;
    font-weight: 700;
  }

  .article-verdict-card--pros h2 {
    color: var(--ad-pro);
  }

  .article-verdict-card--cons h2 {
    color: var(--ad-con);
  }

  .article-verdict-card h2 svg,
  .article-verdict-card h2 i {
    width: 17px;
    height: 17px;
  }

  .article-verdict-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }

  .article-verdict-list li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--ad-ink);
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .article-verdict-card--pros .article-verdict-list li::before {
    content: '+';
    position: absolute;
    left: 0;
    font-weight: 800;
    color: var(--ad-pro);
  }

  .article-verdict-card--cons .article-verdict-list li::before {
    content: '−';
    position: absolute;
    left: 0;
    font-weight: 800;
    color: var(--ad-con);
  }

  /* Conteúdo principal: direto no fundo da página (sem caixote), 82ch centralizado */
  .article-body-card {
    padding: 0.35rem 0;
  }

  .article-prose {
    max-width: 82ch;
    margin-inline: auto;
    color: var(--ad-ink);
    font-size: 1.02rem;
    line-height: 1.75;
  }

  .article-prose h2 {
    margin: 2.2rem 0 0.85rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--ad-border);
    color: var(--ad-ink);
    font-size: 1.38rem;
    font-weight: 750;
    line-height: 1.28;
    scroll-margin-top: 90px;
  }

  .article-prose h2:first-child {
    margin-top: 0;
  }

  .article-prose h3 {
    margin: 1.5rem 0 0.6rem;
    color: var(--ad-accent);
    font-size: 1.12rem;
    font-weight: 700;
  }

  .article-prose p {
    margin: 0 0 1.1rem;
    color: rgb(233 239 255 / 86%);
  }

  .article-prose ul,
  .article-prose ol {
    margin: 0 0 1.2rem;
    padding-left: 1.35rem;
    color: rgb(233 239 255 / 86%);
  }

  .article-prose li {
    margin-bottom: 0.45rem;
  }

  .article-prose a:not(.btn-cta-inline, .btn) {
    color: var(--ad-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .article-prose .article-cta {
    margin: 1.25rem 0;
  }

  .article-prose blockquote {
    margin: 1.4rem 0;
    padding: 0.9rem 1.15rem;
    border-left: 4px solid var(--ad-accent);
    border-radius: 0 12px 12px 0;
    background: var(--ad-accent-soft);
    color: var(--ad-ink);
  }

  .article-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    font-size: 0.92rem;
  }

  .article-prose th,
  .article-prose td {
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--ad-border-soft);
    text-align: left;
  }

  .article-prose th {
    color: var(--ad-accent);
    font-weight: 700;
  }

  .article-inline-image {
    margin: 1.5rem 0;
    text-align: center;
  }

  .article-inline-image img {
    max-width: 100%;
    max-height: 460px;
    border-radius: 14px;
    object-fit: contain;
  }

  .article-inline-image figcaption {
    margin-top: 0.5rem;
    color: var(--ad-muted);
    font-size: 0.82rem;
  }

  /* Callout de Dicas para Cosplay */
  .article-tips-callout {
    padding: 1.25rem 1.4rem;
    border-radius: 16px;
    border: 1px solid var(--ad-border);
    border-left: 4px solid var(--ad-accent);
    background: linear-gradient(135deg, var(--ad-accent-soft), rgb(18 14 28 / 92%));
  }

  .article-tips-callout h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    color: var(--ad-accent);
    font-size: 1.05rem;
    font-weight: 700;
  }

  .article-tips-callout h2 svg,
  .article-tips-callout h2 i {
    width: 18px;
    height: 18px;
  }

  .article-tips-callout ul {
    margin: 0;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--ad-ink);
    font-size: 0.92rem;
    line-height: 1.55;
  }

  /* Vídeos relacionados */
  .article-related-videos {
    padding-top: 1.5rem;
    border-top: 1px solid var(--ad-border-soft);
  }

  .article-related-videos h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    font-size: 1.15rem;
    color: var(--ad-ink);
  }

  .related-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1rem;
  }

  /* Sidebar sticky com rolagem própria quando ultrapassar a viewport */
  .article-sidebar {
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    scrollbar-width: thin;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 0.3rem;
  }

  .article-sidebar-card {
    padding: 0.9rem 0 0;
    border-top: 1px solid var(--ad-border-soft);
  }

  .article-sidebar-card--offer {
    padding: 1.1rem 1.15rem;
    border-radius: 16px;
    border: 1px solid var(--ad-border);
    background: var(--ad-panel);
    box-shadow: var(--ad-shadow);
  }

  .article-sidebar-card h2,
  .article-sidebar-card h3 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ad-ink);
  }

  .article-sidebar-card h2 svg,
  .article-sidebar-card h2 i,
  .article-sidebar-card h3 svg,
  .article-sidebar-card h3 i {
    width: 16px;
    height: 16px;
    color: var(--ad-accent);
  }

  .article-sidebar-offer-price {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 0.9rem;
  }

  .article-sidebar-offer-price .offer-label {
    color: var(--ad-muted);
    font-size: 0.78rem;
  }

  .article-sidebar-offer-price .offer-value {
    color: var(--ad-ink);
    font-size: 1.35rem;
    font-weight: 800;
  }

  .article-sidebar-offer-store {
    margin: 0 0 0.95rem;
    color: var(--ad-muted);
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .article-sidebar .btn-cta {
    width: 100%;
  }

  /* Sumário (TOC) */
  .article-toc-card.is-hidden {
    display: none;
  }

  .article-toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .article-toc-list a {
    display: block;
    padding: 0.38rem 0.65rem;
    border-radius: 8px;
    color: var(--ad-muted);
    font-size: 0.84rem;
    line-height: 1.35;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
  }

  .article-toc-list a:hover {
    background: var(--ad-accent-soft);
    color: var(--ad-ink);
  }

  /* Ficha do Produto */
  .info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .info-item {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--ad-border-soft);
  }

  .info-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .info-label {
    color: var(--ad-muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .info-value {
    color: var(--ad-ink);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
  }

  .info-value--accent {
    color: var(--ad-accent);
    font-weight: 700;
  }

  /* Footer de navegação */
  .editorial-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.5rem;
  }

  .article-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.58rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--ad-border-soft);
    background: rgb(255 255 255 / 4%);
    color: var(--ad-ink);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease;
  }

  .article-nav-btn:hover {
    border-color: var(--ad-accent);
    background: var(--ad-accent-soft);
  }

  .article-nav-btn svg,
  .article-nav-btn i {
    width: 15px;
    height: 15px;
  }

  @media (width <= 1080px) {
    .article-shell {
      grid-template-columns: 1fr;
    }

    .article-sidebar {
      position: static;
      max-height: none;
      overflow-y: visible;
      padding-right: 0;
    }
  }

  @media (width <= 860px) {
    .article-split-hero {
      grid-template-columns: 1fr;
      padding: 0.5rem 0 1.25rem;
      gap: 1.25rem;
    }

    .article-hero-stage {
      justify-self: center;
      max-width: 100%;
      max-height: 300px;
    }

    .article-hero-stage img {
      max-width: 100%;
      max-height: 300px;
    }

    .article-verdict-grid {
      grid-template-columns: 1fr;
    }

    .article-body-card {
      padding: 1.25rem;
    }
  }
}

@layer theme {
  .light-mode .article-detail-page {
    --ad-ink: #111827;
    --ad-muted: #4b5563;
    --ad-border: rgb(180 83 9 / 22%);
    --ad-border-soft: rgb(15 23 42 / 10%);
    --ad-panel: linear-gradient(135deg, rgb(255 255 255 / 98%), rgb(248 250 252 / 96%));
    --ad-accent: #b45309;
    --ad-accent-soft: rgb(217 119 6 / 10%);
    --ad-pro: #059669;
    --ad-pro-soft: rgb(16 185 129 / 8%);
    --ad-con: #dc2626;
    --ad-con-soft: rgb(239 68 68 / 8%);
    --ad-stage-bg: #f8fafc;
    --ad-shadow: 0 14px 32px rgb(15 23 42 / 8%);
  }

  .light-mode .article-hero-stage {
    border-color: rgb(15 23 42 / 10%);
  }

  .light-mode .article-hero-stage img {
    filter: none;
  }

  .light-mode .article-prose p,
  .light-mode .article-prose ul,
  .light-mode .article-prose ol {
    color: #1f2937;
  }

  .light-mode .article-verdict-card--pros {
    background: linear-gradient(135deg, rgb(16 185 129 / 8%), #fff);
  }

  .light-mode .article-verdict-card--cons {
    background: linear-gradient(135deg, rgb(239 68 68 / 8%), #fff);
  }

  .light-mode .article-tips-callout {
    background: linear-gradient(135deg, rgb(217 119 6 / 10%), #fff);
  }

  .light-mode .cta-inline {
    background: rgb(217 119 6 / 5%);
  }

  .light-mode .btn-cta-inline,
  .light-mode .article-sidebar .btn-cta {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
  }

  .light-mode .article-nav-btn {
    background: #fff;
  }
}
