/* =====================================================
   JogaLeve – Visual Base (clean, leve, confiável)
   Header com IMAGEM de céu
   Conteúdo em wrapper único
===================================================== */

:root {
  --jl-bg: #f7f8fc;
  --jl-bg-soft: #ffffff;
  --jl-card: #ffffff;
  --jl-wrap: var(--jl-bg-soft);
  --jl-text: #1a1d2b;
  --jl-muted: #6b7280;
  --jl-border: #e6e8f0;
  --jl-placeholder: #b0b4c2;
  --jl-radius-lg: 22px;
  --jl-radius-md: 16px;
  --jl-radius-sm: 12px;
  --jl-header-bg-color: #4f7dff;
  --jl-header-bg-image: none;
  --jl-header-overlay-opacity: 0.35;
  --jl-sticky-top: 0px;
  --jl-topbar-offset: 0px;
  --jl-topbar-h: 96px;
  --jl-topbar-h-mobile: 88px;
  --jl-subbar-offset: 0px;
  --jl-topbar-h-current: var(--jl-topbar-h-mobile, 88px);
  --jl-header-h: calc(var(--jl-topbar-offset, 0px) + var(--jl-topbar-h-current));
  --jl-subbar-gap: 0px;
}

  /* Dark mode (reativa o tema escuro via data-theme="dark") */
[data-theme="dark"] {
  --jl-bg: #0b0d14;
  --jl-bg-soft: #161b2a;
  --jl-card: #20253a;
  --jl-wrap: var(--jl-bg-soft);
  --jl-text: #ffffff;
  --jl-muted: #9ca3af;
  --jl-border: #2a334d;

  --jl-primary: #4f7dff;

}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--jl-text);
  background: var(--jl-bg);
}

/* WP admin bar: remove the global top gap and offset only the sticky topbar */
html {
  margin-top: 0 !important;
}

body.admin-bar {
  margin-top: 0 !important;
  padding-top: 0 !important;
  --jl-sticky-top: 32px;
  --jl-topbar-offset: 32px;
}

@media (max-width: 782px) {
  body.admin-bar {
    --jl-sticky-top: 46px;
    --jl-topbar-offset: 46px;
  }
}

body.admin-bar .jl-topbar {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .jl-topbar {
    top: 46px;
  }
}

/* =====================================================
   HEADER
===================================================== */

.jl-header {
  position: relative;
  background: var(--jl-bg);
  overflow: visible;
}

.jl-header-stack {
  position: relative;
  z-index: 1000;
  overflow: visible;
  transform: none;
  filter: none;
  contain: none;
}

.jl-header-sky {
  position: absolute;
  inset: 0 0 auto 0;
  height: 96px;
  background-color: var(--jl-header-bg-color);
  background-image: var(--jl-header-bg-image);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.jl-header-sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--jl-header-overlay-opacity));
  pointer-events: none;
}

.jl-header-bar {
  position: relative;
  z-index: 1;
  background: var(--jl-header-bg-color);
  border-bottom: 1px solid rgba(230,232,240,.85);
}

.jl-header-topbar {
  position: sticky;
  top: var(--jl-topbar-offset, 0px);
  z-index: 1000;
  background: var(--jl-header-bg-color);
  transition: box-shadow .2s ease;
  will-change: auto;
}

.jl-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;

  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}


.jl-header--bg-color .jl-header-sky {
  background-image: none;
}

.jl-header--bg-image .jl-header-sky {
  background-image: var(--jl-header-bg-image);
}

/* Sky layer removed from header to prevent extra blue strip. */
.jl-header-sky,
.jl-header-sky::after {
  display: none !important;
}

.jl-header-topbar-inner {
  min-height: var(--jl-topbar-h, 96px);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  transition: none;
}

.jl-topbar-row {
  display: contents;
}

.jl-topbar-search {
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
}

.jl-header-topbar .jl-brand {
  order: 1;
}

.jl-header-topbar .jl-header-actions {
  order: 3;
  margin-left: 0;
}

.jl-header-topbar.jl-topbar--stuck {
  box-shadow: 0 6px 18px rgba(20,30,50,.14);
}

.jl-header-actions {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}

.jl-sticky-stack {
  position: relative;
  z-index: auto;
  overflow: visible;
  transform: none;
}

.jl-header-subbar {
  position: relative;
  top: auto;
  margin-top: var(--jl-subbar-gap, 0px);
  z-index: 900;
  background: var(--jl-bg-soft);
  border-bottom: 1px solid rgba(230,232,240,.85);
  box-shadow: none;
  overflow: visible;
  opacity: 1;
  transform: none;
  visibility: visible;
  display: block;
  transition: none;
}

.jl-header-subbar .jl-subbar-title,
.jl-header-subbar .jl-subbar-link,
.jl-header-subbar .jl-chip,
.jl-header-subbar .jl-chip--link {
  color: #1a1d2b !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-indent: 0 !important;
}

.jl-header-subbar .jl-chip,
.jl-header-subbar .jl-chip--link {
  font-size: 12px !important;
  line-height: 1.2 !important;
}

.jl-subbar {
  position: relative;
  top: auto;
  z-index: 900;
}

.jl-header-subbar-inner {
  padding: 12px 20px;
  gap: 12px;
}

.jl-subbar-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--jl-muted);
  white-space: nowrap;
}

.jl-subbar-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.jl-subbar-link {
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: var(--jl-primary, #4f7dff);
  white-space: nowrap;
}

.jl-subbar-empty {
  font-size: 12px;
  color: var(--jl-muted);
}

.jl-chip--link {
  text-decoration: none;
  color: var(--jl-text);
  font-size: 12px;
  padding: 4px 10px;
}

.jl-chip--link:hover {
  border-color: #4f7dff;
}

.jl-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--jl-text);
  min-width: 160px;
  line-height: 0;
  flex: 0 0 auto;
}

.jl-logo-img {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  line-height: 0;
}

.jl-logo-img .custom-logo-link {
  display: flex;
  align-items: center;
}

.jl-logo-img img,
.jl-logo-img .custom-logo {
  height: 30px;
  width: auto;
  display: block;
  margin: 0;
  object-fit: contain;
  object-position: left center;
}

.jl-logo-img img {
  height: 30px;
}

.jl-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 32px;
  border-radius: 10px;
  background: #eef1fb;
  color: #1a1d2b;
  font-size: 12px;
  font-weight: 800;
}

.jl-brand-text strong {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.jl-brand-text small {
  display: block;
  font-size: 12px;
  color: var(--jl-muted);
}

.jl-brand-text {
  display: none;
}

.jl-search {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-start;
  min-width: 0;
}

.jl-header-actions {
  margin-left: auto;
}

.jl-search-form {
  width: 100%;
  max-width: none;
}

.jl-search input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--jl-border);
  background: #f6f7fb;
  font-size: 14px;
}

.jl-header-topbar .jl-search,
.jl-header-topbar .jl-brand,
.jl-header-topbar .jl-header-actions {
  margin-top: 0;
  margin-bottom: 0;
}

.jl-header-topbar .jl-brand {
  display: flex;
  align-items: center;
  line-height: 0;
}

.jl-header-topbar .jl-brand,
.jl-header-topbar .jl-brand__inner,
header .jl-topbar .jl-brand,
header .jl-topbar .jl-brand__inner {
  display: flex;
  align-items: center;
  line-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.jl-header-topbar .jl-brand__img,
header .jl-topbar .jl-brand__img {
  display: block !important;
  height: 40px !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: middle !important;
}

header .jl-header-topbar .navbar-brand,
header .jl-topbar .navbar-brand {
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0 !important;
}

header .jl-header-topbar .navbar img,
header .jl-header-topbar .navbar a img,
header .jl-topbar .navbar img,
header .jl-topbar .navbar a img {
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0 !important;
  vertical-align: middle !important;
}

.jl-header-topbar .jl-brand svg,
.jl-header-topbar .jl-brand img {
  display: block;
  position: static;
  top: auto;
  margin: 0;
  vertical-align: middle;
}


.jl-header-topbar .jl-brand__imgwrap {
  height: 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
  line-height: 0;
  padding: 0;
}

.jl-header-topbar .jl-brand__imgwrap img {
  height: 40px;
  width: auto;
  display: block;
  margin: 0;
  vertical-align: middle;
  object-fit: contain;
  object-position: center center;
  transform: none;
}
.jl-header-topbar .jl-btn-primary,
.jl-header-topbar .jl-btn-secondary {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

@media (max-width: 768px) {
  .jl-sticky-stack {
    position: relative;
    top: auto;
    z-index: auto;
  }

  .jl-header-topbar {
    position: sticky;
    top: var(--jl-topbar-offset, 0px);
    z-index: 1000;
  }

  .jl-header-topbar-inner {
    min-height: var(--jl-topbar-h-mobile, 88px);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .jl-topbar-row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .jl-topbar-search {
    order: 0;
    width: 100%;
    margin-top: 2px;
  }

  .jl-topbar-search .jl-search,
  .jl-topbar-search .jl-search-form,
  .jl-topbar-search .jl-search input {
    width: 100%;
    max-width: 100%;
  }

  .jl-header-actions {
    margin-left: 0;
    gap: 0;
    flex: 0 0 auto;
  }

  .jl-header-topbar .jl-brand {
    min-width: 0;
    max-width: calc(100% - 48px);
  }

  .jl-header-topbar .jl-brand__img,
  .jl-header-topbar .jl-brand__imgwrap img {
    height: 34px !important;
    max-height: 34px !important;
    width: auto !important;
  }

  .jl-header-topbar .jl-brand__imgwrap {
    height: 34px;
  }

  .jl-icon-btn.jl-theme-toggle {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  .jl-theme-icon::before,
  [data-theme="dark"] .jl-theme-icon::before {
    font-size: 16px;
  }

  .jl-header-subbar {
    position: relative;
    top: auto;
    margin-top: 0;
    z-index: 900;
  }

  .jl-header,
  .site-header {
    z-index: 1100;
  }

  .jl-header-subbar-inner {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
    overscroll-behavior-x: contain;
    white-space: nowrap;
  }

  .jl-header-subbar-inner::-webkit-scrollbar {
    display: none;
  }

  .jl-subbar-title,
  .jl-subbar-list,
  .jl-subbar-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .jl-subbar-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: max-content;
  }

  .jl-subbar-list .jl-chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

.jl-nav {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.jl-nav a {
  font-size: 14px;
  text-decoration: none;
  color: var(--jl-muted);
}

.jl-icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--jl-border);
  background: rgba(255,255,255,.65);
  color: var(--jl-text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.jl-icon-btn:hover {
  background: rgba(0,0,0,.04);
}

[data-theme="dark"] .jl-icon-btn {
  background: rgba(255,255,255,.04);
}

[data-theme="dark"] .jl-icon-btn:hover {
  background: rgba(255,255,255,.08);
}

.jl-icon-btn:focus-visible {
  outline: 2px solid var(--jl-primary, #4f7dff);
  outline-offset: 2px;
}

.jl-categories-toggle {
  border: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.jl-categories-toggle:hover,
.jl-categories-toggle:focus-visible {
  background: transparent !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

.jl-theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 1;
}

.jl-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 1;
}

.jl-menu-icon::before {
  content: "\2630";
  font-size: 22px;
  line-height: 1;
}

.jl-theme-icon::before {
  content: "🌙";
  font-size: 16px;
}

[data-theme="dark"] .jl-theme-icon::before {
  content: "☀️";
  font-size: 16px;
}

.jl-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =====================================================
   HEADER NAV RESET + DRAWER MOBILE
   Sticky/subbar antigos desativados de forma definitiva.
===================================================== */

:root {
  --scrollbar-compensation: 0px;
}

body.admin-bar .jl-topbar {
  top: auto;
}

@media (max-width: 782px) {
  body.admin-bar .jl-topbar {
    top: auto;
  }
}

.jl-header-stack {
  z-index: 40;
}

.jl-header-topbar,
.jl-header-topbar.jl-topbar--stuck {
  position: relative;
  top: auto;
  z-index: 40;
  box-shadow: none;
}

.jl-header-subbar,
.jl-subbar {
  display: none !important;
}

.jl-header-topbar-inner {
  min-height: var(--jl-topbar-h, 96px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.jl-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.jl-topbar-search {
  width: 100%;
}

.jl-nav-desktop {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.jl-nav-desktop-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.jl-nav-desktop-list li {
  margin: 0;
  padding: 0;
}

.jl-nav-desktop-list a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--jl-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.jl-nav-desktop-list a:hover,
.jl-nav-desktop-list a:focus-visible {
  color: #ffffff;
}

.jl-categories-dropdown > summary:hover,
.jl-categories-dropdown > summary:focus-visible {
  color: #ffffff;
}

.jl-categories-dropdown {
  position: relative;
}

.jl-categories-dropdown > summary {
  display: inline-flex;
  align-items: center;
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--jl-text);
  line-height: 1.2;
}

.jl-categories-dropdown > summary::-webkit-details-marker {
  display: none;
}

.jl-categories-dropdown > summary::after {
  content: "▾";
  font-size: 11px;
  margin-left: 8px;
}

.jl-categories-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  min-width: 260px;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  z-index: 1250;
  background: var(--jl-card);
  border: 1px solid var(--jl-border);
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(12, 20, 40, 0.16);
  list-style: none;
  margin: 0;
  padding: 8px;
}

.jl-categories-dropdown-menu li {
  margin: 0;
}

.jl-categories-dropdown-menu a,
.jl-categories-empty {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--jl-text);
  font-size: 14px;
  font-weight: 600;
}

.jl-categories-dropdown-menu a small {
  color: var(--jl-muted);
  font-size: 12px;
  font-weight: 500;
}

.jl-categories-dropdown-menu a:hover,
.jl-categories-dropdown-menu a:focus-visible {
  background: #eef2ff;
  color: #2f57d8;
}

.jl-categories-more {
  font-weight: 700 !important;
}

.jl-nav-toggle {
  display: none;
}

.jl-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 25, 0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 1200;
}

.jl-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(320px, 85vw);
  background: var(--jl-bg-soft);
  border-left: 1px solid var(--jl-border);
  box-shadow: -16px 0 40px rgba(12, 20, 40, 0.22);
  transform: translateX(100%);
  transition: transform .22s ease;
  z-index: 1210;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.jl-nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.jl-nav-drawer-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.jl-nav-close {
  border: 1px solid var(--jl-border);
}

.jl-nav-mobile {
  display: block;
}

.jl-nav-mobile-categories {
  margin-top: 14px;
}

.jl-nav-mobile-categories-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--jl-muted);
}

.jl-nav-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.jl-nav-drawer-list li {
  margin: 0;
}

.jl-nav-drawer-list a {
  display: block;
  text-decoration: none;
  color: var(--jl-text);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--jl-border);
  background: var(--jl-card);
}

.jl-nav-drawer-list a:hover,
.jl-nav-drawer-list a:focus-visible {
  border-color: #4f7dff;
  color: #4f7dff;
}

html.jl-nav-open .jl-nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

html.jl-nav-open .jl-nav-drawer {
  transform: translateX(0);
}

html.jl-nav-open,
body.jl-nav-open {
  overflow: hidden;
}

body.jl-nav-open {
  padding-right: var(--scrollbar-compensation, 0px);
}

@media (max-width: 900px) {
  .jl-nav-desktop {
    display: none;
  }

  .jl-categories-dropdown {
    display: none;
  }

  .jl-nav-toggle {
    display: inline-flex;
  }

  .jl-header-topbar-inner {
    min-height: var(--jl-topbar-h-mobile, 88px);
  }
}

@media (min-width: 901px) {
  /* Desktop order fix: logo + search + menu + dark mode (same row). */
  .jl-header-topbar-inner {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
  }

  .jl-topbar-row {
    display: contents;
    width: auto;
  }

  .jl-brand {
    order: 1;
    min-width: 0;
  }

  .jl-topbar-search {
    order: 2;
    flex: 1 1 420px;
    max-width: 720px;
  }

  .jl-nav-desktop {
    order: 3;
    width: auto;
    flex: 0 0 auto;
  }

  .jl-header-actions {
    order: 4;
    margin-left: 0;
    flex: 0 0 auto;
    gap: 0;
  }
}

@media (min-width: 901px) {
  .jl-nav-overlay,
  .jl-nav-drawer {
    display: none;
  }
}

.jl-icon-btn.jl-theme-toggle {
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  transition: background .16s ease, transform .16s ease;
}

.jl-icon-btn.jl-theme-toggle:hover,
.jl-icon-btn.jl-theme-toggle:focus-visible {
  background: rgba(255,255,255,.2);
  border-color: transparent;
  transform: translateY(-1px);
}

.jl-header-banner {
  position: relative;
  top: auto;
  z-index: 1;
  background: var(--jl-bg);
  border-bottom: 1px solid var(--jl-border);
  max-height: 240px;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition: max-height .25s ease, opacity .2s ease, transform .25s ease, border-color .2s ease;
}

.jl-header-banner--hidden {
  display: none;
}

html.jl-scrolled .jl-header-banner {
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  border-bottom-color: transparent;
}

.offcanvas-backdrop:not(.show),
.modal-backdrop:not(.show) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.offcanvas-backdrop,
.modal-backdrop {
  z-index: 950;
}

.jl-wrap,
main,
.site-main {
  overflow: visible;
  transform: none;
}

@media (max-width: 768px) {
  .jl-header-banner {
    transition: none;
    transform: none;
  }

  html.jl-scrolled .jl-header-banner {
    max-height: 240px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    border-bottom-color: var(--jl-border);
  }
}

.jl-header-banner-card {
  width: 100%;
  position: relative;
  padding: 16px 20px;
  border-radius: var(--jl-radius-md);
  border: 1px solid var(--jl-border);
  background: linear-gradient(120deg, rgba(79,125,255,.18), rgba(247,248,252,.98));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.jl-header-banner-card--has-bg {
  border-color: rgba(255,255,255,.22);
  color: #ffffff;
}

.jl-header-banner-card--has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10,16,36,.75), rgba(79,125,255,.35));
  z-index: 0;
}

.jl-header-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.jl-header-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.jl-header-banner-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.jl-header-banner-title img {
  display: block;
  max-height: 36px;
  width: auto;
}

.jl-header-banner-minicopy {
  margin: 0;
  font-size: 12px;
  color: var(--jl-muted);
}

.jl-header-banner-card--has-bg .jl-header-banner-minicopy {
  color: rgba(255,255,255,.82);
}

.jl-header-banner-actions {
  flex: 0 0 auto;
}

.jl-header-banner-cta {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 10px 18px rgba(20,30,50,.12);
  border-color: transparent;
}

.jl-header-banner-card--has-bg .jl-header-banner-cta {
  background: #4f7dff;
  color: #ffffff;
  border-color: #4f7dff;
}

.jl-categories-drawer .offcanvas-header {
  border-bottom: 1px solid var(--jl-border);
}

.jl-categories-drawer .offcanvas-title {
  font-weight: 800;
}

.jl-categories-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.jl-categories-grid {
  margin-top: 8px;
}

.jl-category-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-md);
  background: var(--jl-card);
  color: var(--jl-text);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.jl-category-card:hover {
  border-color: #4f7dff;
  color: var(--jl-text);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(20,30,50,.08);
}

.jl-category-card__name {
  font-weight: 700;
  font-size: 14px;
}

.jl-category-card__count {
  font-size: 12px;
  color: var(--jl-muted);
}

.jl-categories-item {
  display: block;
  text-decoration: none;
  color: var(--jl-text);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--jl-border);
  background: #ffffff;
  font-size: 14px;
}

.jl-categories-item:hover {
  border-color: #4f7dff;
  color: #1a1d2b;
}

[data-theme="dark"] .jl-categories-item {
  background: rgba(255,255,255,.04);
  color: #ffffff;
}

.jl-categories-all {
  display: inline-flex;
  margin-top: 6px;
}

/* =====================================================
   WRAPPER PRINCIPAL
===================================================== */

.jl-wrap {
  max-width: 1200px;
  margin: 24px auto;
  padding: 24px;

  background: var(--jl-bg-soft);
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-lg);
  box-shadow: 0 10px 30px rgba(20,30,50,.06);
}


@media (max-width: 768px) {
  .jl-wrap {
    margin: 16px;
    padding: 16px;
  }
}

/* =====================================================
   SECTIONS
===================================================== */

.jl-section {
  padding: 20px 0;
}

.jl-section + .jl-section {
  border-top: 1px solid var(--jl-border);
}

.jl-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
}

.jl-section-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}

.jl-section-sub {
  font-size: 13px;
  color: var(--jl-muted);
}

/* =====================================================
   PAGES
===================================================== */

.jl-page .jl-section-head {
  margin-bottom: 18px;
}

.jl-page-content {
  font-size: 15px;
  line-height: 1.7;
  color: var(--jl-text);
}

.jl-page-content > * {
  margin-top: 0;
  margin-bottom: 14px;
}

.jl-page-content h1,
.jl-page-content h2,
.jl-page-content h3,
.jl-page-content h4,
.jl-page-content h5,
.jl-page-content h6 {
  margin: 18px 0 10px;
  font-weight: 800;
  line-height: 1.25;
}

.jl-page-content a {
  color: var(--jl-primary, #4f7dff);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jl-page-content ul,
.jl-page-content ol {
  padding-left: 20px;
}

.jl-page-content blockquote {
  border-left: 3px solid var(--jl-border);
  padding-left: 12px;
  color: var(--jl-muted);
}

/* =====================================================
   ADS
===================================================== */

.jl-ad {
  position: relative;
  margin: 18px 0;
  height: auto;
  min-height: 0;
  text-align: center;
  overflow: hidden;
}

.jl-ad[data-jl-ad-slot]:not(.is-live) {
  min-height: 0 !important;
}

.jl-ad--single-top {
  margin-top: 0;
  margin-bottom: 22px;
}

.jl-ad--single-mid {
  margin: 22px 0;
}

.jl-ad--single-bottom {
  margin-top: 24px;
}

.jl-ad--archive-top {
  margin: 12px 0 20px;
  height: auto;
  min-height: 0;
  overflow: visible;
}

.jl-ad--archive-top > * {
  height: auto;
  min-height: 0;
  margin: 0;
}

.jl-ad--archive-top:not(.is-live) {
  min-height: 0;
}

.jl-ad--archive-top.is-live {
  min-height: 90px;
}

.jl-ad--single-top.is-live,
.jl-ad--single-mid.is-live,
.jl-ad--single-bottom.is-live {
  min-height: 280px;
}

.jl-ad iframe,
.jl-ad img,
.jl-ad ins {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.jl-ad iframe,
.jl-ad ins {
  width: 100%;
  min-height: 0;
}

.jl-ad img {
  height: auto;
}

@media (min-width: 992px) {
  .jl-ad--single-top,
  .jl-ad--single-mid,
  .jl-ad--single-bottom {
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .jl-ad--archive-top.is-live {
    min-height: 60px;
  }
}

/* =====================================================
   TAXONOMY (Categorias de jogos)
===================================================== */

.jl-taxonomy-header {
  margin-bottom: 12px;
}

.jl-taxonomy-title {
  letter-spacing: -0.03em;
  margin: 0 0 4px;
}

.jl-taxonomy-desc {
  color: var(--jl-muted);
  max-width: 68ch;
}

.jl-taxonomy-empty {
  color: var(--jl-muted);
}

/* =====================================================
   CARDS
===================================================== */

.jl-card-link {
  text-decoration: none;
  color: inherit;
}

.jl-card {
  background: var(--jl-card);
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-md);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(20,30,50,.06);
  transition: transform .15s ease;
}

.jl-card:hover {
  transform: translateY(-2px);
}

.jl-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(180deg, #dbe6ff, #f7f8fc);
  overflow: hidden;
}

.jl-card-thumb {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

/* Skeleton / fallback */
.jl-skel {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 25% 40%, rgba(255,255,255,.9) 0 22%, transparent 24%),
    radial-gradient(circle at 55% 45%, rgba(255,255,255,.8) 0 20%, transparent 22%),
    linear-gradient(180deg, #dbe6ff, #f7f8fc);
}

/* =====================================================
   BADGES (sobre imagem)
===================================================== */

.jl-thumb-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.jl-thumb-badge {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.6);
  backdrop-filter: blur(8px);
  color: #1a1d2b;
  box-shadow: 0 6px 14px rgba(20,30,50,.12);
}

/* =====================================================
   CARD BODY
===================================================== */

.jl-card-body {
  padding: 12px 14px 14px;
}

.jl-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.jl-card-actions {
  margin-top: 10px;
}

.jl-card-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--jl-primary);
}

/* =====================================================
   PAGINATION
===================================================== */

.jl-pagination {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.jl-pagination .page-numbers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
}

.jl-pagination .page-numbers a,
.jl-pagination .page-numbers span {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--jl-border);
  background: var(--jl-card);
  color: var(--jl-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.jl-pagination .page-numbers .current {
  background: #4f7dff;
  border-color: #4f7dff;
  color: #ffffff;
}

.jl-pagination .page-numbers .dots {
  border: none;
  background: transparent;
  min-width: auto;
}

/* =====================================================
   FOOTER
===================================================== */

.jl-footer {
  margin-top: 30px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--jl-border);
}

.jl-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.jl-footer a {
  font-size: 13px;
  color: var(--jl-muted);
  text-decoration: none;
}

.jl-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.jl-footer-menu a:hover,
.jl-footer-menu a:focus-visible {
  color: var(--jl-text);
}

/* =====================================================
   ESPECIAIS
===================================================== */

.jl-special-block {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--jl-border);
}

.jl-special-mini-hero {
  margin-bottom: 22px;
}

.jl-special-hero {
  position: relative;
  padding: 26px 22px 24px;
  border-radius: var(--jl-radius-md);
  border: 1px solid var(--jl-border);
  background: var(--jl-card);
  overflow: hidden;
  min-height: clamp(180px, 26vw, 240px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.jl-special-hero.has-bg {
  background-image: var(--jl-hero-bg);
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.jl-special-hero.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,18,32,0.25), rgba(15,18,32,0.05));
  z-index: 0;
}

.jl-special-hero.has-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,18,32,0) 55%, var(--jl-bg) 100%);
  z-index: 0;
}

.jl-special-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  max-width: 680px;
}

.jl-special-section {
  padding-top: 8px;
}

.jl-special-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.jl-special-hero .jl-special-title {
  font-size: clamp(24px, 3.2vw, 34px);
}

.jl-special-title-link {
  color: inherit;
  text-decoration: none;
}

.jl-special-title-image {
  max-width: 320px;
  height: auto;
  display: block;
}

.jl-special-hero .jl-special-title-image {
  max-width: 360px;
}

.jl-special-minicopy {
  margin: 0;
  color: var(--jl-muted);
  max-width: 64ch;
}

.jl-special-hero.has-bg .jl-special-minicopy {
  color: rgba(255,255,255,.88);
}

.jl-special-hero.has-bg .jl-special-label {
  color: rgba(255,255,255,.75);
}

[data-theme="dark"] .jl-special-hero.has-bg::before {
  background: linear-gradient(180deg, rgba(9,11,20,0.65), rgba(9,11,20,0.2));
}

.jl-special-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
  color: var(--jl-muted);
}

.jl-special-game-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.jl-special-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.jl-special-card {
  border-radius: var(--jl-radius-md);
  border: 1px solid var(--jl-border);
  background: var(--jl-card);
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(20,30,50,.05);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.jl-special-card-hero {
  border-radius: 0;
  border: 0;
  padding: 14px 16px;
  min-height: 140px;
  display: flex;
  align-items: flex-end;
}

.jl-special-card-body {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jl-special-meta {
  font-size: 12px;
  color: var(--jl-muted);
}

.jl-special-card-link {
  align-self: flex-start;
  text-decoration: none;
}

.jl-special-empty {
  color: var(--jl-muted);
  padding: 8px 0;
}

@media (max-width: 720px) {
  .jl-special-hero {
    padding: 22px 18px;
    min-height: 180px;
  }

  .jl-special-title-image {
    max-width: 240px;
  }
}

/* =====================================================
   SINGLE GAME
===================================================== */

.jl-game {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.jl-game-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jl-game-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.jl-game-microcopy {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--jl-muted);
}

.jl-game-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.jl-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--jl-border);
  background: #f6f7fb;
  color: var(--jl-text);
}

[data-theme="dark"] .jl-chip {
  background: rgba(255,255,255,.06);
}

.jl-game-player-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jl-game-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--jl-radius-md);
  border: 1px solid var(--jl-border);
  overflow: hidden;
  background: #0f1321;
}

.jl-game-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.jl-game-unavailable {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jl-muted);
  font-size: 14px;
  padding: 16px;
  text-align: center;
}

.jl-game-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.jl-btn-primary,
.jl-btn-secondary {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--jl-border);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.jl-btn-primary {
  background: #4f7dff;
  border-color: #4f7dff;
  color: #ffffff;
}

.jl-btn-secondary {
  background: #ffffff;
  color: var(--jl-text);
}

[data-theme="dark"] .jl-btn-secondary {
  background: rgba(255,255,255,.04);
  border-color: #2a334d;
  color: #ffffff;
}

.jl-btn-primary:hover,
.jl-btn-secondary:hover {
  transform: translateY(-1px);
}

.jl-btn-primary:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.jl-ad {
  width: 100%;
  max-width: min(100%, calc(var(--jl-ad-w, 970) * 1px));
  margin-inline: auto;
}

.jl-ad__link {
  display: block;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid #e6e8f0;
  background: #fff;
  aspect-ratio: calc(var(--jl-ad-w, 970) / var(--jl-ad-h, 250));
}

.jl-ad__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.jl-ad__adsense-box {
  width: 100%;
  max-width: min(100%, calc(var(--jl-ad-w, 970) * 1px));
  min-height: calc(var(--jl-ad-h, 250) * 1px);
  margin-inline: auto;
  overflow: hidden;
}

.jl-ad__adsense-box iframe,
.jl-ad__adsense-box ins {
  max-width: 100%;
}

@media (max-width: 767px) {
  .jl-ad {
    max-width: min(100%, calc(var(--jl-ad-mw, 320) * 1px));
  }

  .jl-ad__link {
    aspect-ratio: calc(var(--jl-ad-mw, 320) / var(--jl-ad-mh, 100));
  }

  .jl-ad__adsense-box {
    max-width: min(100%, calc(var(--jl-ad-mw, 320) * 1px));
    min-height: calc(var(--jl-ad-mh, 100) * 1px);
  }
}

@media (max-width: 768px) {
  .jl-wrap h1,
  .jl-page-content h1,
  .jl-game-title {
    font-size: 26px;
    line-height: 1.2;
  }

  .jl-wrap h2,
  .jl-page-content h2,
  .jl-special-title,
  .jl-section-title {
    font-size: 21px;
    line-height: 1.25;
  }

  .jl-wrap h3,
  .jl-page-content h3 {
    font-size: 19px;
    line-height: 1.3;
  }

  .jl-wrap p,
  .jl-page-content,
  .jl-page-content p {
    font-size: 15px;
    line-height: 1.6;
  }

  .jl-wrap .subtitle,
  .jl-wrap .lead,
  .jl-wrap .jl-section-subtitle,
  .jl-wrap .jl-section-sub,
  .jl-game-microcopy,
  .jl-special-minicopy {
    font-size: 15px;
    line-height: 1.45;
  }
}

@media (min-width: 900px) {
  .jl-game-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
  }

  .jl-game-player-block {
    gap: 14px;
  }
}
