/* Páginas editoriais — deriva de home.css / tokens --jz-* (sem design paralelo) */

body.jz-editorial-page {
  margin: 0;
  min-height: 100dvh;
  color: var(--jz-white, #fff);
  font-family: var(--jz-font-ui, "Fredoka", system-ui, sans-serif);
  background: linear-gradient(
    180deg,
    var(--jz-page-from, #441858) 0%,
    var(--jz-page-to, #090414) 55%,
    #090414 100%
  );
}

.jz-editorial-wrap {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  /* igual à Home: não clipar glow/blur do SVG */
  overflow: visible;
}

.jz-editorial-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.jz-editorial-bg-art,
.jz-editorial-page .jz-home-background {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  /* fill como na Home desktop — nunca cover (corta o SVG) */
  object-fit: fill !important;
  object-position: top center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.jz-editorial-layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow: visible;
}

/* Nav editorial: mesmo esquema da Home, layout em fluxo (sem coords absolutas do frame 1920) */
.jz-nav--editorial {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  width: min(var(--jz-nav-max, 1920px), 100%);
  min-height: 82px;
  /* padding-top extra: evita cortar sparkles/? do logo SVG */
  padding: 1.35rem var(--jz-gutter, 32px) 1.1rem;
  box-sizing: border-box;
  overflow: visible;
}

.jz-editorial-page,
.jz-editorial-page img {
  overflow: visible;
}

.jz-nav--editorial .jz-nav-logo {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  display: block;
  text-decoration: none;
  overflow: visible;
}

.jz-nav--editorial .jz-logo-img {
  display: block;
  width: min(322px, 52vw);
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: left center;
}

.jz-nav--editorial .jz-nav-links {
  position: relative;
  inset: auto;
  left: auto;
  right: auto;
  top: auto;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin: 0;
  padding: 0;
  z-index: 2;
}

.jz-nav--editorial .jz-nav-links a {
  font-family: var(--jz-font-caps, "Fredoka One", "Fredoka", system-ui, sans-serif);
  font-weight: 400;
  font-size: 15px;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.jz-nav--editorial .jz-nav-links a:hover,
.jz-nav--editorial .jz-nav-links a:focus-visible {
  color: var(--jz-orange-soft, #ff8161);
  text-decoration: none;
  outline: none;
}

.jz-nav--editorial .jz-nav-actions {
  position: relative;
  inset: auto;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  z-index: 2;
  overflow: visible;
  pointer-events: auto;
}

/* Botões da Home usam coords absolutas do frame 1920 — na editorial ficam no fluxo */
.jz-nav--editorial .jz-btn-ghost,
.jz-nav--editorial .jz-btn-cta {
  position: static;
  left: auto;
  top: auto;
  width: auto;
  min-width: 0;
  max-width: none;
  flex: 0 0 auto;
  padding: 0 1rem;
  text-decoration: none;
  color: #fff;
}

.jz-nav--editorial .jz-btn-cta {
  padding: 0 1.1rem;
}

.jz-nav--editorial .jz-nav-burger {
  position: relative;
  right: auto;
  top: auto;
  transform: none;
}

.jz-editorial-page a {
  text-decoration: none;
}

.jz-editorial-page a:hover,
.jz-editorial-page a:focus-visible {
  text-decoration: none;
}

.jz-editorial-main {
  flex: 1;
  padding: 0.5rem 0 2.5rem;
  overflow: visible;
}

.jz-editorial-panel {
  box-sizing: border-box;
  padding: 1.5rem 1.35rem 1.75rem;
  border-radius: 16px;
  border: 3px solid var(--jz-border-purple, #4b3875);
  background: linear-gradient(180deg, #440049 0%, #330136 100%);
  box-shadow: 0 10px 0 var(--jz-border-purple, #4b3875);
  /* sombra do painel e CTAs não podem ser clipadas */
  overflow: visible;
}

.jz-editorial-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jz-mute, #a29dbe);
}

.jz-editorial-title {
  margin: 0 0 1rem;
  font-family: var(--jz-font-caps, "Fredoka One", "Fredoka", system-ui, sans-serif);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--jz-white, #fff);
}

.jz-editorial-body {
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.jz-editorial-body h2 {
  margin: 1.5rem 0 0.5rem;
  font-family: var(--jz-font-caps, "Fredoka One", "Fredoka", system-ui, sans-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--jz-white, #fff);
}

.jz-editorial-body h3 {
  margin: 1.15rem 0 0.4rem;
  font-size: 1.05rem;
  font-family: var(--jz-font-display, "Fredoka", system-ui, sans-serif);
  font-weight: 600;
  color: var(--jz-white, #fff);
}

.jz-editorial-body p,
.jz-editorial-body li {
  margin: 0 0 0.85rem;
}

.jz-editorial-body ul,
.jz-editorial-body ol {
  padding-left: 1.25rem;
  margin: 0 0 0.85rem;
}

/* Links: mesmo esquema do footer/nav da Home — teal, sem sublinhado */
.jz-editorial-body a,
.jz-editorial-aside a,
.jz-editorial-breadcrumbs a,
.jz-editorial-post-list a,
.jz-editorial-faq-item a,
.jz-editorial-tip a,
.jz-editorial-example a {
  color: var(--jz-teal, #07cdc3);
  font-weight: 600;
  text-decoration: none;
}

.jz-editorial-body a:hover,
.jz-editorial-body a:focus-visible,
.jz-editorial-aside a:hover,
.jz-editorial-aside a:focus-visible,
.jz-editorial-breadcrumbs a:hover,
.jz-editorial-breadcrumbs a:focus-visible,
.jz-editorial-post-list a:hover,
.jz-editorial-post-list a:focus-visible,
.jz-editorial-faq-item a:hover,
.jz-editorial-faq-item a:focus-visible,
.jz-editorial-tip a:hover,
.jz-editorial-tip a:focus-visible,
.jz-editorial-example a:hover,
.jz-editorial-example a:focus-visible {
  color: #8ef0ea;
  text-decoration: none;
  outline: none;
}

.jz-editorial-cta-row {
  margin: 1rem 0 1.25rem;
  overflow: visible;
}

.jz-editorial-cta-row .jz-btn,
.jz-editorial-body .jz-btn {
  position: static;
  left: auto;
  top: auto;
  width: auto;
  min-width: 0;
  max-width: none;
  text-decoration: none;
}

.jz-editorial-aside {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1.5px solid rgba(255, 255, 255, 0.12);
}

.jz-editorial-aside ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.jz-editorial-aside li {
  margin: 0 0 0.4rem;
}

.jz-editorial-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.25rem;
}

.jz-editorial-game-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, #2a1544 0%, #1a0d2e 100%);
  text-decoration: none;
  color: var(--jz-white, #fff);
  transition: border-color 0.15s ease, transform 0.15s ease;
  overflow: visible;
}

.jz-editorial-game-card:hover,
.jz-editorial-game-card:focus-visible {
  border-color: rgba(201, 184, 232, 0.5);
  transform: translateY(-2px);
  outline: none;
  text-decoration: none;
  color: var(--jz-white, #fff);
}

.jz-editorial-game-card img {
  display: block;
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

.jz-editorial-game-card h2 {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
}

.jz-editorial-game-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--jz-mute, #a29dbe);
}

.jz-editorial-post-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.jz-editorial-post-list li {
  margin: 0 0 1.15rem;
  padding: 0.85rem 0 0;
  border-top: 1.5px solid rgba(255, 255, 255, 0.12);
}

.jz-editorial-post-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.jz-editorial-post-list time {
  display: block;
  margin: 0 0 0.25rem;
  color: var(--jz-mute, #a29dbe);
  font-size: 0.82rem;
  font-weight: 600;
}

.jz-editorial-post-list p {
  margin: 0.35rem 0 0;
  color: var(--jz-mute, #a29dbe);
}

.jz-editorial-footer {
  margin-top: auto;
  padding: 2rem var(--jz-gutter, 32px) 2.5rem;
  overflow: visible;
}

.jz-editorial-footer .jz-footer-logo {
  display: block;
  width: 147px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.jz-editorial-footer .jz-footer-links {
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.jz-editorial-footer .jz-footer-links a {
  text-decoration: none;
}

.jz-editorial-byline {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--jz-mute, #a29dbe);
}

.jz-editorial-breadcrumbs {
  margin: 0 0 0.85rem;
}

.jz-editorial-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--jz-mute, #a29dbe);
}

.jz-editorial-breadcrumbs li:not(:last-child)::after {
  content: ">";
  margin-left: 0.35rem;
  opacity: 0.7;
}

.jz-editorial-tip,
.jz-editorial-example {
  margin: 1rem 0 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, #2a1544 0%, #1a0d2e 100%);
  overflow: visible;
}

.jz-editorial-tip-title,
.jz-editorial-example-title {
  margin: 0 0 0.4rem;
  font-family: var(--jz-font-caps, "Fredoka One", "Fredoka", system-ui, sans-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--jz-badge-yellow, #ffd23f);
}

.jz-editorial-tip-body > :last-child,
.jz-editorial-example-body > :last-child {
  margin-bottom: 0;
}

.jz-editorial-table-wrap {
  margin: 1rem 0 1.25rem;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
}

.jz-editorial-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.jz-editorial-table caption {
  caption-side: top;
  text-align: left;
  padding: 0.75rem 0.9rem 0.35rem;
  color: var(--jz-mute, #a29dbe);
  font-size: 0.85rem;
}

.jz-editorial-table th,
.jz-editorial-table td {
  padding: 0.65rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  vertical-align: top;
}

.jz-editorial-table thead th {
  background: rgba(0, 0, 0, 0.22);
  color: var(--jz-white, #fff);
  font-weight: 700;
  border-top: 0;
}

.jz-editorial-table tbody th {
  font-weight: 700;
  color: var(--jz-white, #fff);
  white-space: nowrap;
}

.jz-editorial-shot {
  margin: 1rem 0 1.25rem;
  overflow: visible;
}

.jz-editorial-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: #1a0d2e;
  /* mostra a captura inteira — não corta */
  object-fit: contain;
  object-position: top center;
}

.jz-editorial-shot figcaption {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  color: var(--jz-mute, #a29dbe);
}

.jz-editorial-faq-item {
  margin: 0 0 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.jz-editorial-faq-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  font-family: var(--jz-font-display, "Fredoka", system-ui, sans-serif);
  font-weight: 600;
  color: var(--jz-white, #fff);
}

.jz-editorial-faq-item > div > :last-child {
  margin-bottom: 0.5rem;
}

.jz-editorial-body code {
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
}

@media (max-width: 960px) {
  .jz-nav--editorial .jz-nav-links {
    display: none;
  }

  .jz-nav--editorial .jz-logo-img {
    width: min(240px, 48vw);
  }
}

@media (max-width: 640px) {
  .jz-editorial-panel {
    padding: 1.15rem 1rem 1.35rem;
  }

  .jz-editorial-table {
    min-width: 460px;
    font-size: 0.86rem;
  }

  .jz-nav--editorial .jz-logo-img {
    width: min(200px, 52vw);
  }

  .jz-nav--editorial .jz-nav-actions .jz-btn-ghost {
    display: none;
  }
}
