/*
Theme Name: 5dbet Atlas KTgSzAiC
Theme URI: https://5dbet.buzz/
Author: 5dbet Guia Brasil
Description: Tema editorial independente criado para a execução run-KTgSzAiC.
Version: 1.0.0
Text Domain: guia5dbet
*/

:root {
  --bg: #07111f;
  --surface: #0e1c30;
  --module: #13263e;
  --module-strong: #183450;
  --text: #f6f8fc;
  --muted: #bdc9d8;
  --line: #36536f;
  --cyan: #68d8f4;
  --violet: #9ba5ff;
  --coral: #ff9a7d;
  --focus: #a8eeff;
  --content: 1220px;
  --reading: 790px;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 85% 5%, rgba(123,140,255,.12), transparent 28rem), var(--bg);
  color: var(--text);
  font: 400 17px/1.72 "Noto Sans", "DejaVu Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}
body.admin-bar .site-header { top: 32px; }
a { color: var(--cyan); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: #a8ecff; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  background: rgba(7,17,31,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; }
.brand img { width: 230px; max-height: 58px; object-fit: contain; }
.brand-text { color: var(--text); font-weight: 800; text-decoration: none; font-size: 1.2rem; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: flex; min-height: 48px; align-items: center; padding: 8px 10px; color: var(--text); text-decoration: none; border-radius: 10px; font-size: .86rem; font-weight: 650; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: var(--module-strong); color: #fff; }
.menu-toggle { display: none; margin-left: auto; min-width: 48px; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--module); color: var(--text); font: inherit; font-weight: 700; }

.site-main { min-height: 60vh; }
.article-shell { padding: clamp(42px, 7vw, 92px) 0 clamp(70px, 9vw, 118px); }
.article-head { max-width: 980px; margin-bottom: 40px; }
.eyebrow { margin: 0 0 12px; color: var(--coral); font-weight: 750; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
h1, h2, h3 { line-height: 1.14; letter-spacing: -.025em; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2.35rem, 5.2vw, 4.15rem); max-width: 980px; }
h2 { margin: clamp(58px, 8vw, 92px) 0 18px; font-size: clamp(1.8rem, 3.3vw, 2.7rem); }
h3 { margin: 34px 0 14px; font-size: clamp(1.25rem, 2.2vw, 1.65rem); color: #eef3ff; }
p, .article-content > ul, .article-content > ol { max-width: var(--reading); }
p { margin: 0 0 1.25em; }
strong { color: #fff; }
.article-content > p:first-of-type { font-size: clamp(1.12rem, 1.5vw, 1.32rem); line-height: 1.58; color: #edf4fb; }
.article-content > p:nth-of-type(2) { color: var(--muted); }

.home .article-shell { padding-top: clamp(38px, 6vw, 80px); }
.home .article-head { display: grid; grid-template-columns: minmax(0, 8fr) minmax(240px, 4fr); gap: 30px; align-items: end; }
.home .article-head::after { content: "Guia editorial independente"; display: grid; min-height: 170px; place-items: end start; padding: 24px; border: 1px solid var(--line); border-radius: 24px; color: var(--cyan); background: radial-gradient(circle at 75% 24%, rgba(104,216,244,.24), transparent 30%), linear-gradient(145deg, var(--module), #0b1728); font-size: 1.05rem; font-weight: 750; box-shadow: var(--shadow); }
.home .article-content { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 0 24px; }
.home .article-content > * { grid-column: 1 / span 8; min-width: 0; }
.home .article-content > h2, .home .article-content > figure, .home .article-content > .faq-section, .home .article-content > table { grid-column: 1 / -1; }

.editorial-figure { margin: clamp(30px, 5vw, 58px) 0; border-radius: 24px; overflow: hidden; background: var(--module); box-shadow: var(--shadow); border: 1px solid var(--line); }
.editorial-figure img { width: 100%; max-height: 670px; object-fit: cover; }
.editorial-figure.portrait { width: min(100%, 660px); }
.editorial-figure.portrait img { max-height: 760px; object-position: center; }
.editorial-figure figcaption { padding: 14px 18px 16px; color: var(--muted); font-size: .92rem; }

table { width: 100%; margin: 28px 0 46px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
th, td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--module-strong); color: #fff; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
ol, ul { padding-left: 1.35rem; }
li { margin-bottom: .58rem; }
blockquote { max-width: 850px; margin: 34px 0; padding: 22px 24px; border-left: 4px solid var(--coral); background: var(--module); border-radius: 0 var(--radius) var(--radius) 0; }

.faq-section { margin-top: 72px; padding: clamp(24px, 5vw, 44px); border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, var(--surface), var(--module)); }
.faq-section h2, .faq-section h3 { margin-top: 0; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { min-height: 56px; padding: 15px 36px 15px 0; cursor: pointer; font-weight: 700; color: #fff; }
.faq-answer { max-width: var(--reading); padding: 0 0 18px; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); background: #050c16; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 40px; padding: 54px 0 28px; }
.footer-title { font-size: 1.18rem; font-weight: 800; margin-bottom: 12px; }
.footer-note { max-width: 590px; color: var(--muted); }
.email-address { white-space: nowrap; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 18px; align-content: start; }
.footer-links a { min-height: 44px; display: flex; align-items: center; }
.footer-bottom { padding: 20px 0 34px; color: var(--muted); font-size: .88rem; border-top: 1px solid rgba(54,83,111,.55); }

@media (max-width: 1199px) {
  .wrap { width: min(calc(100% - 40px), var(--content)); }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { display: none; position: absolute; inset: 72px 20px auto; padding: 14px; background: #0b1728; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; gap: 2px; }
  .primary-nav a { font-size: 1rem; padding-inline: 14px; }
  .home .article-head { grid-template-columns: 1fr; }
  .home .article-head::after { min-height: 110px; }
  .home .article-content { display: block; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .wrap { width: min(calc(100% - 32px), var(--content)); }
  .brand img { width: 205px; }
  .article-shell { padding-top: 34px; }
  h1 { font-size: clamp(2.05rem, 10vw, 3rem); }
  h2 { margin-top: 52px; font-size: 1.75rem; }
  .editorial-figure { margin-inline: 0; border-radius: 14px; }
  .editorial-figure img { max-height: 430px; }
  .editorial-figure.portrait { width: 100%; }
  table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { min-width: 168px; padding: 13px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 390px) {
  .brand img { width: 185px; }
  .wrap { width: min(calc(100% - 32px), var(--content)); }
  .primary-nav { inset-inline: 16px; }
  .footer-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
